[go: up one dir, main page]

CN103563307B - Method and apparatus for traceroute_delay diagnostic command - Google Patents

Method and apparatus for traceroute_delay diagnostic command Download PDF

Info

Publication number
CN103563307B
CN103563307B CN201280012788.7A CN201280012788A CN103563307B CN 103563307 B CN103563307 B CN 103563307B CN 201280012788 A CN201280012788 A CN 201280012788A CN 103563307 B CN103563307 B CN 103563307B
Authority
CN
China
Prior art keywords
message
probe message
probe
time
timestamp
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201280012788.7A
Other languages
Chinese (zh)
Other versions
CN103563307A (en
Inventor
D·T·布伊
帕莱克 M·勒
M·勒帕莱克
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alcatel Lucent SAS
Original Assignee
Alcatel Lucent SAS
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alcatel Lucent SAS filed Critical Alcatel Lucent SAS
Publication of CN103563307A publication Critical patent/CN103563307A/en
Application granted granted Critical
Publication of CN103563307B publication Critical patent/CN103563307B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/04Processing captured monitoring data, e.g. for logfile generation
    • H04L43/045Processing captured monitoring data, e.g. for logfile generation for graphical visualisation of monitoring data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • H04L43/106Active monitoring, e.g. heartbeat, ping or trace-route using time related information in packets, e.g. by adding timestamps
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/12Network monitoring probes

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Data Mining & Analysis (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

A method for measuring a residence time of a probe message in at least a network node comprised in a network path, the probe message having a time-to-live value, the method comprising the steps of: -registering a reception timestamp of the probe message; -writing a receive timestamp into a specified field in the received probe message; -detecting a time-to-live value of the probe message; -if the time-to-live value is not empty, reducing the time-to-live value by 1. -if the time-to-live value is equal to 1, so that: registering a transmission timestamp of the probe message; subtracting the registered sending time from the registered receiving timestamp to calculate the residence time of the detection message in the network node; writing the calculated dwell time into a field in the probe message; the flag value of the received probe message is changed in order to protect the dwell time from being overwritten by subsequent actions on the probe message.

Description

用于跟踪路由_延迟诊断命令的方法和设备Method and apparatus for traceroute_delay diagnostic command

技术领域technical field

概括地,本发明涉及网络延迟/等待时间管理的技术领域。In general, the present invention relates to the technical field of network delay/latency management.

背景技术Background technique

网络引入的延迟在最重要的网络性能度量中,这是因为它们直接影响多个广域网应用,从诸如VoIP、交互式网络游戏的实时应用到时间关键的财务应用和定位系统。Network-induced latencies are among the most important network performance metrics because they directly affect multiple WAN applications, from real-time applications such as VoIP, interactive network games, to time-critical financial applications and location systems.

因此,监测网络中数据传输延迟的性能必须包括详细了解这些延迟是如何引入的以及在哪里引入的。Therefore, monitoring the performance of data transfer delays in a network must include a detailed understanding of how and where these delays are introduced.

在传统的TDM技术中,通过TDM交换之间的确定的过渡时间(例如,根据系统时钟过渡的数量)可以预测网络延迟。然而,随着带宽要求的极大增加,TDM逐渐被分组交换网络(PSN)所代替,其中分组交换网络中的分组抖动,也被称为分组延迟变量(主要由分组排队引入的随机过程),使得网络节点中的分组驻留(resident)时间(从现在起将其称为网络节点驻留时间)不可预测。In conventional TDM techniques, network delays can be predicted by deterministic transition times between TDM exchanges (eg, in terms of the number of system clock transitions). However, with the enormous increase in bandwidth requirements, TDM is gradually being replaced by packet-switched networks (PSNs), where packet jitter, also known as packet delay variation (a stochastic process mainly introduced by packet queuing), The packet resident time in a network node (from now on it will be called network node resident time) is made unpredictable.

因此,PSN网络运营商需要更多的工具以监测网络延迟或网络等待时间,以便能够采取合适的动作(例如,网络重新设计/重新配置),其旨在根据网络延迟/等待时间来考虑服务等级协定(SLA)和校正SLA违规。Therefore, PSN network operators need more tools to monitor network latency or network latency to be able to take appropriate actions (e.g. network redesign/reconfiguration), which are aimed at taking service level into account in terms of network latency/latency Agreement (SLA) and correction of SLA violations.

为了解决这些问题,网络运营商通常依赖于各种端到端时间延迟测量工具,例如To address these issues, network operators typically rely on various end-to-end time delay measurement tools such as

-通过互联网控制消息协议(ICMPv4-RFC 792和ICMPv6-RFC4443)定义的PING命令,其中PING命令允许对IP网络中从源到目的地主机的端到端往返行程延迟的测量;- the PING command defined by the Internet Control Message Protocol (ICMPv4-RFC 792 and ICMPv6-RFC4443), where the PING command allows the measurement of the end-to-end round-trip delay from a source to a destination host in an IP network;

-由RFC 2679描述的单向延迟测量方法。该方法可根据网络延迟/等待时间的值、测量所要求的精度和两端的时钟精度来要求时间同步;- One-way delay measurement method described by RFC 2679. This method can require time synchronization according to the value of network delay/latency, the accuracy required for the measurement, and the clock accuracy at both ends;

-允许沿着从源到目的地主机的网络路径确定每个网络节点(也就是说,每个网络层设备)地址的跟踪路由(或tracert)命令。跟踪路由还返回分别从网络路径中的源到每个所经过的节点的端到端延迟。- A traceroute (or tracert) command that allows the address of each network node (that is, each network layer device) to be determined along a network path from a source to a destination host. Traceroute also returns the end-to-end delays from the source in the network path to each node traversed separately.

然而,这些工具返回与网络节点驻留时间(或等待时间)相关的没有任何精度的整个端到端延迟。换句话说,将由这些工具返回的延迟值视为单一的统一部分,已包括与其相关的没有任何精度的网络节点驻留时间。However, these tools return the overall end-to-end delay related to network node dwell time (or latency) without any precision. In other words, treat the latency values returned by these tools as a single unified part that includes the network node dwell times associated with it without any precision.

可概括地将网络引入的延迟分为:The delay introduced by the network can be broadly divided into:

-由网络节点处理(处理延迟)分组并准备进行(重新)传输所需要的时间。处理延迟主要根据协议栈复杂度、在每个节点处可利用的计算能力(也就是,可利用的硬件)和卡驱动器(或接口卡逻辑);和- The time required for a packet to be processed (delayed) by a network node and ready for (re)transmission. Processing latency is primarily a function of protocol stack complexity, available computing power (ie, available hardware) and card drivers (or interface card logic) at each node; and

-排队延迟,也就是网络节点的缓冲器中分组在处理和/或传输前的整个等待时间,其中排队延迟可取决于网络节点切换(或低层切换)的细节- Queuing delay, i.e. the overall waiting time of a packet in a network node's buffer before being processed and/or transmitted, where the queuing delay may depend on the details of the network node handover (or lower layer handover)

-传输延迟:发送全部分组(从第一比特到最后一个比特)、或者更基本的从第一网络节点的输出端口到第二网络节点的输入端口发送单一比特所需要的时间。- Transmission delay: the time required to send a complete packet (from first bit to last bit), or more basically a single bit from an output port of a first network node to an input port of a second network node.

因此,通过没有给出与其部分相关的任何细节的单一值中返回整个端到端延迟,最新的端到端延迟测量工具不允许运营商计算出应当应用校正动作以解决等待时间预算超出问题的(多个)网络片段或(多个)网络节点。Thus, by returning the overall end-to-end delay in a single value that does not give any details related to its part, the latest end-to-end delay measurement tools do not allow operators to calculate ( network segment(s) or network node(s).

现有技术的另一问题是现有的网络诊断工具不允许确定整个传递等待时间的哪一部分归因于网络节点驻留时间。Another problem with the prior art is that existing network diagnostic tools do not allow determining what portion of the overall delivery latency is due to network node dwell time.

本发明的一个目的是解决相关现有技术的上述和其它问题。It is an object of the present invention to solve the above and other problems of the related prior art.

本发明的另一目的是确定在网络路径中的何处引入主要延迟。Another object of the invention is to determine where in the network path a major delay is introduced.

本发明的另一目的是提供网络引入延迟的精细粒度的组成。Another object of the present invention is to provide a fine-grained composition of network-introduced delays.

本发明的另一目的是提出一种允许确定每个节点等待时间的方法。Another object of the invention is to propose a method that allows determining the waiting time of each node.

本发明的另一目的是提供一种命令,所述命令通过控制探测(probe)消息的内容提供该分组经历的端到端延迟的精细粒度图。Another object of the present invention is to provide a command that provides a fine-grained picture of the end-to-end delay experienced by the packet by controlling the content of the probe message.

本发明的另一目的是将端到端延迟分成区分沿着IP网络中从源到目的地路径的节点驻留时间的部分。Another object of the present invention is to divide the end-to-end delay into parts that differentiate the dwell times of nodes along the path from source to destination in an IP network.

本发明的另一目的是允许运营商根据网络等待时间对SLA违规问题(不考虑所承诺的服务质量)进行快速和精确的诊断。Another object of the present invention is to allow operators to perform fast and accurate diagnosis of SLA violation problems (regardless of the promised quality of service) based on network latency.

本发明的另一目的是提供允许精确地确定互联网应用中重要延迟的源的诊断命令。Another object of the present invention is to provide diagnostic commands that allow to precisely determine the sources of important delays in Internet applications.

本发明的另一目的是揭示引入大部分等待时间和对延迟退化负责的主要的网络跳。Another object of the invention is to reveal the main network hops that introduce most of the latency and are responsible for delay degradation.

附图说明Description of drawings

通过下面的说明书和权利要求,本发明的目的、优点和其它特征会变得更加明显。给出的优选实施方式的下列非限制性描述仅是关于附图的示例,其中Objects, advantages and other features of the present invention will become more apparent from the following description and claims. The following non-limiting description of preferred embodiments is given as an example with respect to the accompanying drawings only, in which

-图1是描述根据现有技术的探测报头格式的框图;- Figure 1 is a block diagram describing the format of a probe header according to the prior art;

-图2是描述根据第一实施方式的探测报头格式的框图;- Figure 2 is a block diagram describing the format of the probe header according to the first embodiment;

-图3是描述现有技术的诊断命令traceroute()的实施方式的框图;- Figure 3 is a block diagram describing an implementation of the prior art diagnostic command traceroute();

-图4是描述诊断命令的功能性实施方式的框图;- Figure 4 is a block diagram depicting a functional implementation of a diagnostic command;

-图5是描述根据第二实施方式的探测报头格式的框图。- Fig. 5 is a block diagram describing a probe header format according to a second embodiment.

发明内容Contents of the invention

本发明旨在解决上面提出的一个或多个问题的影响。下面给出了本发明的简单概述,以便提供对本发明一些方面的基本了解。这种概述不是对本发明穷尽式的概括。不是意在标识本发明的关键元素或描绘本发明的范围。其唯一的目的是以简化的形式给出一些概念,以作为下面更详细描述的前序。The present invention seeks to address effects of one or more of the problems set forth above. A brief overview of the invention is presented below in order to provide a basic understanding of some aspects of the invention. This summary is not an exhaustive overview of the invention. It is not intended to identify key elements of the invention or to delineate the scope of the invention. Its sole purpose is to present some concepts in a simplified form as a prelude to the more detailed description that is described later.

本发明涉及一种用于在网络路径中包括的至少网络节点中测量探测消息的驻留(resident)时间的方法,所述探测消息具有生存时间值,所述方法包括下列步骤:The invention relates to a method for measuring the resident time of a probe message having a time-to-live value in at least a network node comprised in a network path, said method comprising the following steps:

-注册探测消息的接收时间戳;- the receipt timestamp of the registration probe message;

-将接收时间戳写入到接收的探测消息中的专用字段中;- write the received timestamp into a dedicated field in the received probe message;

-检查探测消息的生存时间值;- check the time-to-live value of the probe message;

-如果生存时间值不为空,则将生存时间值缩减1;- If the time-to-live value is not empty, reduce the time-to-live value by 1;

-如果生存时间值等于1,那么:- If the time-to-live value is equal to 1, then:

○注册探测消息的发送时间戳;○Register the sending timestamp of the detection message;

○通过将注册的接收时间戳减去注册的发送时间戳,计算网络节点中的探测消息驻留时间;○ Calculate the probe message dwell time in the network node by subtracting the registered receive timestamp from the registered send timestamp;

○将计算的驻留时间写入到探测消息的字段中;○ write the calculated dwell time into the field of the probe message;

○改变接收的探测消息的标志的值,以便保护驻留时间免于被针对探测消息的后续动作所重写。o Change the value of the flag of a received probe message in order to protect the dwell time from being overwritten by subsequent actions on the probe message.

根据一个宽泛的方面,所引用的上述方法进一步包括下列步骤:According to a broad aspect, the above-referenced method further comprises the steps of:

-如果生存时间值为空,则在缩减后,于是- if the time-to-live value is empty, after the reduction, then

○创建探测答复消息,所述探测答复消息中具有从探测消息复制的计算的驻留时间,探测答复消息的相关的标志值和探测消息标识符;o create a probe reply message with the calculated dwell time copied from the probe message, the associated flag value of the probe reply message and the probe message identifier;

○将创建的探测答复消息传送回探测消息的发起方。o Transmit the created Probe Reply message back to the originator of the Probe message.

根据一个宽泛的方面,探测消息是经修改的互联网控制消息协议(ICMP)消息。According to one broad aspect, the probe message is a modified Internet Control Message Protocol (ICMP) message.

根据另一个宽泛的方面,探测消息是经修改的操作管理维护(OAM)消息,例如MPLS-TP/MPLS OAM消息或以太网OAM消息。According to another broad aspect, the probe message is a modified Operations Administration and Maintenance (OAM) message, such as an MPLS-TP/MPLS OAM message or an Ethernet OAM message.

优选地,网络节点中探测消息的计算的驻留时间等于其在主协议层/栈中的驻留时间,其中主协议层/栈负责探测消息处理(也就是,编码/解码)。因此,在不同协议层使用探测消息允许分析不同协议层在每个节点延迟预算上的影响。Preferably, the calculated residence time of the probe message in the network node is equal to its residence time in the main protocol layer/stack responsible for the probe message processing (ie encoding/decoding). Therefore, using probe messages at different protocol layers allows analysis of the impact of different protocol layers on each node's delay budget.

本发明进一步涉及一种网络节点,包括:The invention further relates to a network node comprising:

-用于注册探测消息的接收时间戳的设备;- a device for registering the reception timestamp of the probe message;

-用于将接收时间戳写入所接收的探测消息中的指定字段的设备;- means for writing a reception timestamp into a specified field in a received probe message;

-用于检查探测消息的生存时间值的设备;- means for checking the time-to-live value of probe messages;

-用于注册探测消息的发送时间戳的设备;- the device used to register the sending timestamp of the probe message;

-用于计算探测消息驻留时间、并且随后将探测消息驻留时间写入探测消息的字段中的设备,其中探测消息驻留时间是注册的发送时间戳和所写入的接收时间戳之间的差;- means for calculating and subsequently writing a probe message dwell time in a field of a probe message, wherein the probe message dwell time is between the registered send timestamp and the written receive timestamp difference;

-用于改变探测消息中的标志的值以便保护所计算的驻留时间值免于被其它节点或当前节点自身针对探测消息的后续动作所重写;- used to change the value of the flag in the probe message in order to protect the calculated dwell time value from being overwritten by other nodes or the current node's own subsequent actions on the probe message;

-用于缩减并比较探测消息的生存时间值的设备。- A facility for reducing and comparing the time-to-live values of probe messages.

本发明进一步涉及适于执行上述方法的计算机程序产品。The invention further relates to a computer program product adapted to perform the above method.

虽然本发明易于进行各种修改和采用可替换的形式,但其特定实施方式通过实施例在附图中给出。然而,可以理解的是,这里特定实施方式的描述不意在将本发明限定到所公开的特定形式。While the invention is susceptible to various modifications and alternate forms, specific embodiments thereof are shown by way of example in the drawings. It should be understood, however, that the description herein of specific embodiments is not intended to limit the invention to the particular forms disclosed.

当然可以理解的是,在任何实际的实施方式的开发中,为实现开发者的特定目标可进行特定实现方式的决定,例如与系统相关和商业相关的限制相兼容。可以理解的是,这样的开发努力会是耗时的,但是对于那些从本申请受益的普通技术人员来说是可以理解的例程。It will of course be appreciated that in the development of any actual implementation, implementation-specific decisions may be made to achieve the developer's specific goals, such as compatibility with system-related and business-related constraints. It will be appreciated that such a development effort would be time consuming, but would nevertheless be a routine of ordinary skill for those having the benefit of this application.

具体实施方式detailed description

提供下面表示为traceroute_delay()的诊断命令。该名称仅用于命名的目的,相当于通常涉及传统的traceroute()命令(例如,RFC 1393)和延迟测量问题。显然,可以起任何其它的名字。A diagnostic command denoted traceroute_delay() below is provided. This name is used for naming purposes only, and is equivalent to conventional traceroute() commands (eg, RFC 1393) and latency measurement issues in general. Obviously, any other name can be given.

通过控制探测消息报头,traceroute_delay()命令除了收集所经过的节点的地址,还收集所经过的节点的驻留时间和最终所经过的链路的传播延迟。By controlling the probe message header, the traceroute_delay() command not only collects the address of the node it passes through, but also collects the residence time of the node it passes through and the propagation delay of the final link it passes through.

在一个实施方式中,探测消息是经修改的ICMP消息。事实上,traceroute_delay()命令利用ICMP时间戳、和与对它们的期望所不同的ICMP时间戳答复消息(RFC 972)的一些字段(给这些现有的字段提供新的语义)。In one embodiment, the probe message is a modified ICMP message. In fact, the traceroute_delay() command makes use of ICMP timestamps, and some fields of ICMP timestamp reply messages (RFC 972) differently from what is expected of them (providing new semantics to these existing fields).

参照图1和图2,根据traceroute_delay()命令,可分别将传统的ICMP时间戳和时间戳答复消息(RFC 972)(图1)的字段“源时间戳”、“接收时间戳”和“发送时间戳”替换为“出站(outbound)驻留时间”、“接收时间戳”和“返回驻留时间”字段。此外,标志“L”与“出站驻留时间”和“返回驻留时间”字段中的每一个相关联。Referring to Fig. 1 and Fig. 2, according to the traceroute_delay () command, the fields "source timestamp", "received timestamp" and "sent timestamp" of the traditional ICMP timestamp and timestamp reply message (RFC 972) (Fig. Timestamp" is replaced with the "Outbound Dwell Time", "Received Timestamp" and "Return Dwell Time" fields. Additionally, a flag "L" is associated with each of the "Outbound Dwell Time" and "Return Dwell Time" fields.

因此,根据traceroute_delay()命令,探测报头包括Therefore, according to the traceroute_delay() command, the probe header includes

-具有ICMP时间戳和时间戳答复消息的公共字段,例如字段“类型”、“代码”、“校验和”、“标识符”和“序列号”(图1和图2)根据这些字段各自的现有技术所识别的功能来使用这些字段(也就是说,它们标准的解释,例如“校验和”确定数据块的损坏,或者“标识符”字段允许标识消息);- Common fields with ICMP Timestamp and Timestamp Reply messages, such as the fields "Type", "Code", "Checksum", "Identifier" and "Serial Number" (Figure 1 and Figure 2) according to these fields respectively The functions recognized by the prior art to use these fields (that is, their standard interpretation, such as "checksum" to determine the corruption of a data block, or "identifier" field allows to identify the message);

-“出站驻留时间”字段:该字段是网络节点在出站方向中的分组驻留时间(微秒);- "outbound dwell time" field: this field is the packet dwell time (in microseconds) of the network node in the outbound direction;

-“接收时间戳”字段:该字段是将分组接收时间戳记录在每个所经过的节点的占位符(placeholder)。这允许节点通过将该时间戳减去发送时间戳来计算发送时的分组驻留时间;- "Received Timestamp" field: This field is a placeholder for recording the received timestamp of the packet at each passed node. This allows a node to calculate the packet residence time when sending by subtracting the sending timestamp from that timestamp;

-“返回驻留时间”字段:该字段是路由器在返回方向上的分组驻留时间(微秒)- "Return dwell time" field: This field is the packet dwell time (in microseconds) of the router in the return direction

-“L”比特:锁定相应字段(出站/返回驻留时间)并防止所述字段被其它节点或当前节点自身进行的分组后续处理所改写。- "L" bit: locks the corresponding field (outbound/return dwell time) and prevents said field from being overwritten by other nodes or subsequent processing of the packet by the current node itself.

需要说明的是,使用经修改的ICMP时间戳或时间戳答复消息仅是为了利用这些已有标准的优点,而不是未使用的消息,这样导致快速实现和配置。It should be noted that the use of modified ICMP timestamps or timestamp reply messages is only to take advantage of these existing standards, not unused messages, which leads to quick implementation and configuration.

可替换地,可以定义上述探测格式,而不对ICMP时间戳和/或时间戳答复消息进行任何考虑。从而,可设想探测报头包括“出站驻留时间”、“接收时间戳”、“返回驻留时间”字段,和与“出站驻留时间”和“返回驻留时间”字段中的每一个相关联的保护标志“L”。可为上述任务对这些字段进行编程。Alternatively, the above probe format can be defined without any consideration of ICMP timestamp and/or timestamp reply messages. Thus, it is conceivable that the probe header includes the "Outbound Dwell Time", "Received Timestamp", "Return Dwell Time" fields, and Associated protection sign "L". These fields can be programmed for the tasks described above.

traceroute_delay()命令具有下列语法:The traceroute_delay() command has the following syntax:

traceroute_delay(目的地址,[QoS,模式]) traceroute_delay (destination address, [QoS, mode])

其中in

-“目的地址”是目的地网络节点的地址;- "destination address" is the address of the destination network node;

-“QoS”指定服务质量(QoS)或服务级别(CoS)值,以标记在其发起点处传输traceroute_delay()命令的相关协议探测消息。默认的或在缺少由运营商指定的值时,将“QoS”值设置为“最大努力”值;- "QoS" specifies the Quality of Service (QoS) or Class of Service (CoS) value to mark the relevant protocol probe message at its originating point for the transmission of the traceroute_delay() command. Set the "QoS" value to a "best effort" value by default or in the absence of a value specified by the operator;

-“模式”指示命令的操作模式,意味着单向(也就是,值0)或双向(也就是,值1)模式。默认的或在缺少由运营商指定的值时,将值设置为1。- "Mode" indicates the mode of operation of the command, meaning unidirectional (ie, value 0) or bidirectional (ie, value 1 ) mode. Sets the value to 1 by default or in the absence of a value specified by the operator.

“目的地地址”的格式取决于用于传输traceroute_delay()命令的技术和协议。例如,其可以是The format of the "destination address" depends on the technique and protocol used to transmit the traceroute_delay() command. For example, it could be

-IP地址(或主机名称),如果该命令通过ICMP的扩展(RFC 4884&5837)进行发送的话;或- IP address (or host name), if the command is sent via extensions to ICMP (RFC 4884 &5837); or

-NSAP(网络服务接入点)地址,如果该命令通过非IP网络中的多协议标签交换传输简档(MPLS-TP)OAM协议(操作和维护,也被称为操作管理和维护)(RFC 5860)发送的话。- NSAP (Network Services Access Point) address, if the command is via the Multiprotocol Label Switching Transport Profile (MPLS-TP) OAM protocol (Operation and Maintenance, also known as Operations Administration and Maintenance) in non-IP networks (RFC 5860) to send words.

输入“QoS”是可被设置为下列内容的值:The input "QoS" is a value that can be set to the following:

-如果使用诸如ICMP的基于IP的协议,则是用于IP报头中的差分服务代码点(DSCP);- the Differentiated Services Code Point (DSCP) used in the IP header if an IP-based protocol such as ICMP is used;

-如果使用MPLS OAM或伪线(PW)OAM,则是用于通用多协议标签交换(MPLS)标签中实验使用(experimental use)的3比特保留字段;或- a 3-bit reserved field for experimental use in generic Multiprotocol Label Switching (MPLS) labels if MPLS OAM or Pseudowire (PW) OAM is used; or

-如果以太网OAM用于传输不同的traceroute_delay()消息,则为用于由IEEE 802.1p涉及的3比特优先级别代码点(PCP)。- 3-bit priority code point (PCP) for reference by IEEE 802.1p if Ethernet OAM is used to transport different traceroute_delay() messages.

实际上,根据在每个所经过节点上应用的差分服务处理,数据分组延迟通常取决于其被分配的“QoS”(在发起/离开点),并且数据分组延迟通常取决于所配置的相关调度。In fact, the data packet delay usually depends on its assigned "QoS" (at the origin/departure point) according to the differential services processing applied at each node traversed, and the data packet delay usually depends on the associated schedule configured .

对于“模式”输入,根据分组抖动幅度在每个通信方向(出站方向和返回方向)上不同,分组驻留时间通常因每个方向而不同。因此,提供两个模式,即单向模式和双向模式。“标识符”字段最重要的比特允许在单向(值为0)和往返行程延迟(值为1)测量模式之间进行隔离。For the "mode" input, the packet dwell time is generally different for each direction depending on the packet jitter magnitude being different in each communication direction (outbound direction and return direction). Therefore, two modes are provided, a unidirectional mode and a bidirectional mode. The most significant bit of the "identifier" field allows isolation between one-way (value 0) and round-trip delay (value 1) measurement modes.

更一般地,还可考虑其它输入参数以定义traceroute_delay()命令的调用,例如:More generally, other input parameters can also be considered to define the call of the traceroute_delay() command, for example:

-“协议”,涉及诸如UDP(默认)、ICMP或TCP的探测分组协议;- "protocol", referring to a probe packet protocol such as UDP (default), ICMP or TCP;

-“p”,指示每个网络节点的探测分组的数量。- "p", indicating the number of probe packets per network node.

为了介绍traceroute_delay()命令的行为,在图3中描述了传统traceroute命令的基本算法的简要提示。To introduce the behavior of the traceroute_delay() command, a brief hint of the basic algorithm of the traditional traceroute command is depicted in Figure 3.

关于ICMPv4,传统的traceroute()命令通过促使沿着对节点进行链接(从1到n)的网络路径的每个节点(从2到n)返回ICMP错误消息进行工作。探测通过逐跳地、从源离开到一系列往返行程11-13中的目的地i(i=2,…,n)来进行。生存时间或跳数从1开始,并在每个往返行程11-13后增加,直到到达目的地节点n为止,或者直到应用另一停止条件为止。With ICMPv4, the traditional traceroute() command works by causing each node (from 2 to n) along the network path linking the nodes (from 1 to n) to return an ICMP error message. Probing takes place by hop-by-hop departure from the source to destination i (i=2,...,n) in a series of round trips 11-13. The time-to-live or hop count starts at 1 and increases after each round trip 11-13 until destination node n is reached, or until another stopping condition is applied.

实际上,传统的traceroute()传送其分组的第一组,其中TTL=1(生存时间)。沿着路径的第一路由器(节点2)从而丢弃分组(它们的TTL缩减到0),并返回ICMP“TTL超出”错误消息(往返行程11)。因此,traceroute()可注册第一路由器(节点2)的地址。然后,可传送具有TTL=2(往返行程12)、并且接下来TTL=3等(往返行程13)的分组,导致沿着路径的每个路由器返回错误,为traceroute()命令(位于源路由器或主机)进行标识。最终,或者到达最后的目的地(节点n),或者到达最大的TTL值(默认值为30),并且traceroute()结束。在最后的目的地,返回不同的错误。In fact, a conventional traceroute() transmits the first set of its packets with TTL=1 (time to live). The first router along the path (node 2) thus drops the packets (their TTLs shrink to 0) and returns an ICMP "TTL exceeded" error message (round trip 11). Thus, traceroute( ) can register the address of the first router (node 2). Then, a packet with TTL=2 (round trip 12), and then TTL=3, etc. (round trip 13) can be transmitted, causing each router along the path to return an error for the traceroute() command (located at the source router or host) for identification. Eventually, either the final destination (node n) is reached, or the maximum TTL value (30 by default) is reached, and traceroute() ends. At the final destination, a different error is returned.

一些实现方式可通过将UDP数据报传送给一些随机的高编号的端口(端口不监听任何数据)来实现。一些其它实现方式使用ICMP回声分组(echo packet)。Some implementations can be implemented by sending UDP datagrams to some random high-numbered ports (ports not listening for any data). Some other implementations use ICMP echo packets.

现在参照图4,与传统的traceroute()命令相似,traceroute_delay()连续地将具有TTL=1(往返行程11)、TTL=2(往返行程12)等(往返行程13)的ICMP时间戳消息传送给目的地网关(节点n)。将这种朝向节点n的方向称为出站方向。将相反的方向称为返回方向。Referring now to FIG. 4, similar to the conventional traceroute() command, traceroute_delay() sequentially transmits ICMP timestamp messages with TTL=1 (round trip 11), TTL=2 (round trip 12), etc. (round trip 13) to the destination gateway (node n). Call this direction toward node n the outbound direction. The opposite direction is referred to as the return direction.

对于出站方向,每个所经过的节点i(i=2,…,n)实现下列操作:For the outbound direction, each passing node i (i=2,...,n) implements the following operations:

-(图4的步骤21):- (step 21 of Figure 4):

○一旦负责的协议检测到分组的存在,对时间戳分组接收时间进行注册(例如,在使用硬件时间戳的输入端口)(其标记由网络节点中相关协议栈(例如,IP协议、以太网协议等)接收的该分组的时刻),并将时间戳值写入到分组“接收时间戳”字段(步骤21);o Once the responsible protocol detects the presence of the packet, it registers (e.g., at an input port using hardware time stamping) the timestamp packet reception time (which is marked by the relevant protocol stack in the network node (e.g., IP protocol, Ethernet protocol etc.) the moment of the packet received), and the timestamp value is written to the packet "received timestamp" field (step 21);

○将TTL缩减1;○ Reduce TTL by 1;

-(图4的步骤22):如果TTL=1,从而在分组发送过程(例如,在输出端口),- (step 22 of Fig. 4): if TTL=1, thus in the packet sending process (for example, at the output port),

○注册分组发送时间戳,标记该分组离开相关协议栈进行传送的时刻(例如,对于IP栈,这是IP栈把ICMP分组转移到传输层的时刻,例如用于传送的以太网层);o Register a packet send timestamp, marking the moment when the packet leaves the associated protocol stack for delivery (e.g. for the IP stack, this is the moment when the IP stack transfers the ICMP packet to the transport layer, e.g. the Ethernet layer for delivery);

○根据节点上测量的分组传送时间戳和接收时间戳之间的差别,计算节点i中的分组驻留时间;○ Calculate the packet residence time in node i based on the difference between the packet transmission timestamp and the reception timestamp measured at the node;

○将所计算的驻留时间值写入分组“出站驻留时间”字段;○Write the calculated dwell time value into the packet "outbound dwell time" field;

○将该字段的L比特设为1,以便保护其不会被后续动作所重写(如果L比特已经被设置,则会由错误情况:或者之前的节点忘记缩减TTL值,或者其错误地设置L比特;从而动作不会转发分组,而是返回具有设置为0的“出站驻留时间”字段和被设置为1的相关L比特的“时间戳答复”消息);○ Set the L bit of this field to 1, in order to protect it from being overwritten by subsequent actions (if the L bit is already set, there will be an error case: either the previous node forgot to shrink the TTL value, or it set it wrongly L bits; thus the action does not forward the packet, but returns a "Timestamp Reply" message with the "Outbound Dwell Time" field set to 0 and the associated L bit set to 1);

或者如果目的地已经到达,或者TTL=0(图4中的步骤31)or if the destination has been reached, or TTL=0 (step 31 in Figure 4)

○利用其“出站驻留时间”字段和从“时间戳”消息复制/拷贝的相关L比特创建“时间戳答复”消息。对于“标识符”字段也是如此。将“时间戳答复”消息返回给“时间戳消息”的发起方;o Create a "Timestamp Reply" message with its "Outbound Dwell Time" field and the associated L bits copied/copied from the "Timestamp" message. The same is true for the "Identifier" field. Return a "Timestamp Reply" message to the originator of the "Timestamp Message";

○如果TTL=0并且没有到达目的地,将ICMP“TTL超过”错误消息返回给发起方。o If TTL = 0 and the destination is not reached, return an ICMP "TTL exceeded" error message to the originator.

对于返回方向,每个节点实现下列操作:For the return direction, each node implements the following operations:

-(步骤4的步骤23):- (step 23 of step 4):

○一旦其检测到分组(例如,在其输入端口),注册时间戳答复分组接收时间戳;和o Once it detects a packet (e.g. at its input port), registers a timestamp reply packet receipt timestamp; and

○将接收时间戳值写入到分组“接收时间戳”字段;○Write the received timestamp value into the packet "received timestamp" field;

-(步骤4的步骤24),如果设置“标识符”字段的最重要的比特(双向模式,也就是,值为1),并且然后在其输出端口没有设置“返回驻留时间”相关的L比特,- (step 24 of step 4), if the most significant bit of the "identifier" field is set (bidirectional mode, that is, with a value of 1), and then the "return dwell time" associated L is not set at its output port bit,

○根据接收时间戳:发送时间戳和接收时间戳之间的差别,计算分组驻留时间;和o Compute the packet dwell time based on the receive timestamp: the difference between the send timestamp and the receive timestamp; and

○将所计算的值写入分组“返回驻留时间”字段;○ Write the calculated value into the packet "Return Dwell Time" field;

○将相关的L比特设置为1,以便保护“返回驻留时间”字段以免被后续动作所重写。o Set the relevant L bit to 1 in order to protect the "Return Dwell Time" field from being overwritten by subsequent actions.

在图4中示出了上述算法应用的具有TTL=2的示例性实施例(往返行程12)。在该实施例中:An exemplary embodiment of the application of the above algorithm with TTL=2 is shown in FIG. 4 (round trip 12). In this example:

-一旦其检测到来自输入端口的分组,节点2将接收时间戳值写入到接收探测消息的字段“接收时间戳字段”中(图4的步骤21);- as soon as it detects a packet from an input port, node 2 writes the received timestamp value into the field "Received timestamp field" of the received probe message (step 21 of figure 4);

-节点2将TTL缩减1。当TTL=1时,节点2于是计算驻留时间,并将其写入“出站驻留时间戳”中,并将L比特设置为1,以保护该字段免于被重写(图4的步骤22);- Node 2 reduces the TTL by 1. When TTL=1, node 2 then calculates the dwell time and writes it into the "outbound dwell timestamp" and sets the L bit to 1 to protect this field from being rewritten (Fig. 4 step 22);

-节点3将TTL缩减到0。在丢弃“出站驻留时间戳”前,节点3将合适的字段复制到新近创建的时间戳答复消息中的相关字段中。节点3将后一消息返回到源路由器或源主机(图4的步骤31);- Node 3 shrinks the TTL to 0. Node 3 copies the appropriate fields into the relevant fields in the newly created Timestamp Reply message before discarding the "Outbound Resident Timestamp". Node 3 returns the latter message to the source router or source host (step 31 of Figure 4);

-节点2注册分组接收时间戳,并将后者写入到“接收时间戳”字段中- Node 2 registers the packet reception timestamp and writes the latter into the "reception timestamp" field

-如果将“标识符”字段的最重要比特设置为双向模式,则在其输出端口,节点2计算返回驻留时间,并更新时间戳答复消息的字段“返回驻留时间”。从而,将与该后一字段相关的L比特设置为1,以便保护其免于被重写(图4的步骤24)。- If the most significant bit of the "identifier" field is set to bidirectional mode, then at its output port node 2 calculates the return dwell time and updates the field "return dwell time" of the timestamp reply message. Thus, the L bit associated with this latter field is set to 1 in order to protect it from being overwritten (step 24 of Figure 4).

更一般地,在TTL=i(i=1,…,n-1)中的每个往返行程11-13,在单向模式和/或双向模式中,对节点i中的驻留时间进行测量,然后将其存储在探测消息报头中。因此,可在汇总表中为运营商显示每个节点的不同单向驻留时间(或单向等待时间)。More generally, at each round trip 11-13 in TTL=i (i=1,...,n-1), a dwell time in node i is measured in one-way mode and/or in two-way mode , which is then stored in the probe message header. Thus, different one-way dwell times (or one-way wait times) for each node can be displayed for operators in a summary table.

为此,网络节点i(i=2,…,n)包括To this end, a network node i (i=2,...,n) consists of

-用于一旦其检测到探测分组(也就是,由相关协议栈检测的)对来自其输入端口的探测分组的接收时间戳进行注册的设备;- a device for registering the receipt timestamp of a probe packet from its input port once it detects a probe packet (i.e. detected by the relevant protocol stack);

-用于将接收时间戳写入到探测分组的字段中的设备;- means for writing a reception timestamp into a field of the probe packet;

-用于检查并比较探测分组的生存时间的值的设备;- means for checking and comparing the value of the time-to-live of the probe packets;

-用于注册探测分组的发送时间戳(也就是,在分组离开相关协议栈进行发送的时刻)的设备;- a device for registering the sending timestamp of the probe packet (that is, the moment at which the packet leaves the relevant protocol stack for sending);

-用于计算并将分组单向驻留时间(注册的发送时间戳和接收时间戳之间的差别)写入到探测分组中的字段的设备;- means for calculating and writing the packet one-way dwell time (difference between the registered transmit and receive timestamps) to a field in the probe packet;

-用于改变探测分组中标志的值以便保护计算的驻留时间值免于被针对探测消息的后续动作(被其它网络节点或所述节点自身)重写的设备;- means for changing the value of a flag in a probe packet in order to protect the calculated dwell time value from being overwritten by subsequent actions on the probe message (by other network nodes or by the node itself);

-用于减小并比较探测分组的生存时间值的设备。- Means for reducing and comparing time-to-live values of probe packets.

需要说明的是,如果节点接收到具有TTL在缩减1后严格地大于1的探测分组,则在无需驻留时间测量步骤情况下转发探测分组。It should be noted that, if a node receives a probe packet whose TTL is strictly greater than 1 after being decremented by 1, the probe packet is forwarded without the dwell time measurement step.

除了上述算法,关于MPLS-TP OAM的另一实施方式利用IETF文档“在环回模式(loopback mode)中操作MPLS传输简档LSP”,2010年3月。In addition to the above algorithm, another implementation regarding MPLS-TP OAM makes use of the IETF document "Operating MPLS Transport Profile LSP in loopback mode", March 2010.

通过传送具有将TTL从1开始增加的源维持端点(MEP)直到到达远程/目的地MEP为止,执行不同的OAM环回。A different OAM loopback is performed by transmitting a source maintaining endpoint (MEP) with TTL incremented from 1 until the remote/destination MEP is reached.

为此目的定义MPLS-TP OAM嵌入的traceroute_delay(跟踪路由_延迟)消息。其格式(MPLS-TP traceroute_delay)如图4所示,并且其中:The MPLS-TP OAM embedded traceroute_delay message is defined for this purpose. Its format (MPLS-TP traceroute_delay) is shown in Figure 4, and where:

-“出站/返回”指明消息方向:出站(值为0x00-等效于之前的“时间戳”消息)方向或返回方向(值为0x01-等效于之前的“时间戳答复”消息);- "Outbound/Return" indicates message direction: outbound (value 0x00 - equivalent to previous "Timestamp" message) direction or return direction (value 0x01 - equivalent to previous "Timestamp Reply" message) ;

-“L比特”具有与之前在ICMP实施方式中描述相同的语义;- "L bits" have the same semantics as previously described in the ICMP implementation;

-“出站驻留时间”具有与之前在ICMP实施方式中描述相同的语义;- "outbound dwell time" has the same semantics as previously described in the ICMP implementation;

-“接收时间戳”具有与之前在ICMP实施方式中描述相同的目的;- "received timestamp" has the same purpose as previously described in the ICMP implementation;

-“返回驻留时间”具有与之前在ICMP实施方式中描述相同的语义;- "return dwell time" has the same semantics as previously described in the ICMP implementation;

-“发起方发送时间戳”指示在源/发起方(根据发起方本地时钟)发送分组时的分组时间戳;- "initiator send timestamp" indicates the packet timestamp when the source/initiator (according to the originator's local clock) sent the packet;

-“单向接收时间戳”指示在目的地节点(根据目的地节点本地时钟)接收分组时的分组时间戳。- "One-way reception timestamp" indicates the packet timestamp when the packet was received by the destination node (according to the destination node local clock).

最后两个字段允许traceroute_delay()命令计算端到端的单向延迟(也就是,“单向接收时间戳”-“发起方发送时间戳”)。这假设目的地节点的时钟与发起方的时钟同步,其中精度符合测量要求。The last two fields allow the traceroute_delay() command to calculate the end-to-end one-way delay (that is, "one-way receive timestamp" - "initiator send timestamp"). This assumes that the destination node's clock is synchronized with the initiator's clock, where the accuracy meets the measurement requirements.

“发起方发送时间戳”允许发起方在接收到返回消息时计算往返行程延迟。这强制地将“出站”消息(该消息等效于之前实施方式中的“时间戳”消息)的“发起方发送时间戳”字段拷贝到“返回”消息(该消息等效于之前实施方式中的“时间戳答复”消息)的“发起方发送时间戳”字段。"Originator Sent Timestamp" allows the originator to calculate the round-trip delay when the return message is received. This forcibly copies the "Originator Sent Timestamp" field of the "outbound" message (which is equivalent to the "timestamp" message in the previous implementation) to the "return" message (which is equivalent to the previous implementation's The "Initiator Sent Timestamp" field of the "Timestamp Reply" message in the .

需要说明的是,在之前的ICMP实施方式中,发起方甚至在缺少“发起方发送时间戳”的情况下仍可测量往返行程延迟。例如,其可为每个消息标识符(也就是,“标识符”字段)值在本地(也就是,在其本地的上下文存储器中)记录相关的发送时间戳,并记录具有相同标识符的“时间戳答复”消息的接收时间戳。It should be noted that in previous ICMP implementations, the initiator could measure the round-trip delay even in the absence of an "initiator sent timestamp". For example, it may record locally (i.e., in its local context memory) the associated send timestamp for each message identifier (i.e., "identifier" field) value, and record the " Timestamp Reply" message received timestamp.

需要说明的是,测量的连续往返行程时间允许traceroute_delay()命令通过从往返行程时间减去节点驻留时间(假设链路延迟是对称的)来计算全部链路延迟。As a caveat, the measured continuous round trip time allows the traceroute_delay() command to calculate the total link delay by subtracting the node dwell time from the round trip time (assuming the link delay is symmetric).

在每个协议层,独立于其它层地监测网络节点驻留时间。例如,在IP/以太网络中:At each protocol layer, the network node residence time is monitored independently of the other layers. For example, in an IP/Ethernet network:

-ICMP/IP协议层记录分组接收时间(接收时间戳),以作为其可检测(从IP协议栈的角度)来自进入以太网MAC接口的进入分组的时刻;并且其记录分组发送时间(发送时间戳),以作为其将分组提交给外出以太网MAC接口的时刻;- The ICMP/IP protocol layer records the packet reception time (received timestamp) as the moment at which it can detect (from the perspective of the IP protocol stack) an incoming packet from the Ethernet MAC interface; and it records the packet transmission time (transmission time stamp) as the moment when it submits the packet to the outgoing Ethernet MAC interface;

-以太网OAM层记录分组接收时间(接收时间戳),以作为其可检测来自进入物理接口的进入分组的帧开始的时刻;并且其记录分组发送时间(发送时间戳),以作为当将分组提交给外出物理接口的时刻。- The Ethernet OAM layer records the packet reception time (reception timestamp) as the moment at which it can detect the frame start of an incoming packet from the incoming physical interface; and it records the packet transmission time (transmission timestamp) as the moment when the packet is The moment of submission to the outgoing physical interface.

因此,对于指定的网络节点,在ICMP/IP层报告的平均驻留时间小于由以太网OAM层报告的平均驻留时间。对于后者(协议栈中最低的协议),可实现硬件时间戳记录。这种方式允许在指定节点内,分析对网络节点等待时间影响最大的协议层。在节点中每个层上的驻留时间测量方法是具体的实现,并且不在本发明的范围内。Therefore, for a given network node, the average dwell time reported at the ICMP/IP layer is less than the average dwell time reported by the Ethernet OAM layer. For the latter (the lowest protocol in the protocol stack), hardware time-stamping is possible. This approach allows, within a given node, to analyze the protocol layers that have the greatest impact on network node latency. The method of dwell time measurement at each layer in a node is implementation specific and is outside the scope of the present invention.

需要说明的是,“时间戳答复”消息IP源地址不会给traceroute_delay()提供节点的IP地址(其中在该节点处测量外出和返回驻留时间),而提供出站路径上的下一节点的IP地址。为了获得节点IP地址,命令应当涉及之前的“时间戳答复”消息。To clarify, the Timestamp Reply message IP source address does not give traceroute_delay() the IP address of the node where the outbound and return dwell times are measured, but the next node on the outbound path IP address. In order to obtain the node IP address, the command should refer to the previous "Timestamp Reply" message.

traceroute_delay()可使用传送探测消息的不同方法,例如traceroute_delay() can use different methods of delivering probe messages, for example

-逐个分组的:作为传统的跟踪路由(traceroute),也就是,传送探测消息,等待回答或超时,传送后续探测消息,等等;- packet-by-packet: as a traditional traceroute, i.e., transmit a probe message, wait for a reply or timeout, transmit a subsequent probe message, etc.;

-逐个节点的:为指定的节点传送多于一个的探测消息,其中在两个探测消息之间具有可配置的延迟(由运营商输入或由默认值指定),等待回答或超时,并且为下一节点重复相同的过程。- node-by-node: transmit more than one probe message for the specified node with a configurable delay (entered by operator or specified by default) between two probe messages, wait for reply or timeout, and A node repeats the same process.

需要说明的是,命令可以是为诊断目的按要求执行,但也可在主动的方式中以定期的时间间隔自动执行,以便在客户检测到问题前快速反应。It should be noted that commands can be executed on demand for diagnostic purposes, but can also be executed automatically at regular intervals in a proactive manner to allow quick reaction before a customer detects a problem.

traceroute_delay()命令还可包括在操作系统中,或封装到网络工具(诸如NetTools)中。The traceroute_delay() command may also be included in the operating system, or encapsulated into a network tool such as NetTools.

需要说明的是,由于其涉及网络节点驻留时间测量,因此当驻留时间较小时,意味着小于几个ms的数量级,实际上没有需要进行节点时钟的同步。传统的低成本的100ppm(百万分率)精度时钟(例如,以太网接口时钟)在自由运行时在10ms的驻留时间上带来1μs的测量误差(100×10-6×10×10-3)(并且对于典型的10个节点的级联,分别是最大测量误差低于10μs)。It should be noted that since it involves the measurement of the dwell time of network nodes, when the dwell time is small, it means that it is less than several ms, and there is actually no need to synchronize the node clocks. Conventional low-cost 100ppm (parts per million) precision clocks (e.g., Ethernet interface clocks) introduce a measurement error of 1μs at a dwell time of 10ms when free running (100×10 -6 ×10×10 - 3 ) (and for a typical cascade of 10 nodes, respectively, the maximum measurement error is below 10 μs).

优选地,网络路径中节点驻留时间的知识允许识别不能提供可接受的延迟界限的节点。此外,其允许确定的和精确的将引入的延迟分配给网络链路或节点。Preferably, knowledge of the dwell times of nodes in the network path allows identification of nodes that do not provide acceptable delay bounds. Furthermore, it allows a deterministic and precise distribution of introduced delays to network links or nodes.

优选地,上述方法允许将端到端时间延迟分为2部分:网络片段(或链路)上的发送延迟和节点驻留时间。因此,当端到端单向(分别为双向)延迟超过SLA门限时,traceroute_delay()命令提供对允许指出(多个)网络片段或(多个)网络节点重新工作/重新设计的端到端单向(分别为双向)延迟的详细视图和分配。Preferably, the above method allows splitting the end-to-end time delay into 2 parts: transmission delay and node dwell time on a network segment (or link). Thus, the traceroute_delay() command provides end-to-end unidirectional delays that allow pointing out network segment(s) or network node(s) rework/redesign when end-to-end one-way (respectively two-way) delay exceeds the SLA threshold. Detailed view and assignment of delays to (respectively bi-directional).

Claims (23)

1.一种用于至少在网络路径内包括的网络节点中测量探测消息的驻留时间的方法,所述探测消息具有生存时间值,所述方法包括下列步骤:1. A method for measuring the residence time of a probe message having a time-to-live value at least in a network node comprised in a network path, said method comprising the steps of: -注册探测消息的接收时间戳;- the receipt timestamp of the registration probe message; -将接收时间戳写入到接收的探测消息内的专用字段;- writing the reception timestamp into a dedicated field within the received probe message; -检查探测消息的生存时间值;- check the time-to-live value of the probe message; -如果生存时间值不为空,则将生存时间值缩减1;- If the time-to-live value is not empty, reduce the time-to-live value by 1; -如果生存时间值等于1,那么:- If the time-to-live value is equal to 1, then: ○注册探测消息的发送时间戳;○Register the sending timestamp of the detection message; ○通过将注册的接收时间戳减去注册的发送时间戳,计算网络节点中的探测消息驻留时间;○ Calculate the probe message dwell time in the network node by subtracting the registered receive timestamp from the registered send timestamp; ○将计算的驻留时间写入探测消息内的字段中;o write the calculated dwell time into a field within the probe message; ○改变接收的探测消息内的标志值,以便保护驻留时间免于被针对探测消息的后续动作所重写。o Alter flag values within received probe messages in order to protect the dwell time from being overwritten by subsequent actions on probe messages. 2.根据权利要求1所述的方法,进一步包括下列步骤:2. The method according to claim 1, further comprising the steps of: -如果生存时间值为空,则在缩减后- If the time-to-live value is empty, after the reduction ○创建探测答复消息,在所述探测答复消息中具有从探测消息复制的计算的驻留时间,其相关的标志值和探测消息标识符;o create a probe reply message with the calculated dwell time copied from the probe message, its associated flag value and the probe message identifier; ○将创建的探测答复消息传送回探测消息的发起方。o Transmit the created Probe Reply message back to the originator of the Probe message. 3.根据权利要求1或2所述的方法,其中探测消息包括:3. The method according to claim 1 or 2, wherein the probe message comprises: -第一字段,用于携带在第一通信方向上所经过的网络节点中的探测消息驻留时间;- a first field, used to carry the residence time of the probe message in the network node passed in the first communication direction; -占位符,记录来自网络节点的输入端口的探测消息接收时间戳;- a placeholder to record the receipt timestamp of the probe message from the input port of the network node; -第一标志,防止针对探测消息的任何后续动作对第一字段的重写。- A first flag, preventing rewriting of the first field for any subsequent action on the probe message. 4.根据权利要求3所述的方法,其中探测消息进一步包括4. The method of claim 3, wherein the probe message further comprises -第二字段,用于携带其在与第一通信方向相对的第二通信方向上所经过的网络节点内的驻留时间;- a second field for carrying the dwell time in the network nodes it passes through in a second communication direction opposite to the first communication direction; -第二标志,防止针对探测消息的任何后续动作对第二字段的重写。- A second flag preventing rewriting of the second field for any subsequent action on the probe message. 5.根据权利要求3所述的方法,其中至少由探测消息中传递的字段来指示与通信方向相关的用于所经过的网络节点的信息。5. The method according to claim 3, wherein the information for the network nodes traversed is indicated in relation to the communication direction at least by a field conveyed in the probe message. 6.根据权利要求4所述的方法,其中至少由探测消息中传递的字段来指示与通信方向相关的用于所经过的网络节点的信息。6. The method according to claim 4, wherein at least the information for the network nodes traversed is indicated in relation to the communication direction by a field conveyed in the probe message. 7.根据权利要求1-2和4-6中任一项所述的方法,其中探测消息是经修改的互联网控制消息协议的消息。7. A method according to any of claims 1-2 and 4-6, wherein the probe message is a modified Internet Control Message Protocol message. 8.根据权利要求1-2和4-6中任一项所述的方法,其中探测消息是经修改的操作管理维护消息。8. A method according to any of claims 1-2 and 4-6, wherein the probe message is a modified operations management maintenance message. 9.一种网络节点,包括:9. A network node comprising: -用于注册探测消息的接收时间戳的设备;- a device for registering the reception timestamp of the probe message; -用于将接收时间戳写入接收的探测消息内的专用字段的设备;- means for writing a reception timestamp into a dedicated field within a received probe message; -用于检查探测消息的生存时间值的设备;- means for checking the time-to-live value of probe messages; -用于注册探测消息的发送时间戳的设备;- the device used to register the sending timestamp of the probe message; -用于计算、随后将探测消息驻留时间写入探测消息内的字段中的设备,其中探测消息驻留时间是注册的发送时间戳和所写入的接收时间戳之间的差;- means for calculating and subsequently writing a probe message dwell time in a field within the probe message, wherein the probe message dwell time is the difference between the registered send timestamp and the written receive timestamp; -用于改变探测消息内的标志值以便保护所计算的驻留时间值免于被其它节点或当前节点自身针对探测消息的后续动作所重写;- used to change the flag value within the probe message in order to protect the calculated dwell time value from being overwritten by other nodes or the current node's own subsequent actions on the probe message; -用于缩减并比较探测消息的生存时间值的设备。- A facility for reducing and comparing the time-to-live values of probe messages. 10.根据权利要求9所述的网络节点,进一步包括用于创建探测答复消息的设备,其中在探测答复消息中是从探测消息复制的信息。10. A network node according to claim 9, further comprising means for creating a probe reply message, wherein in the probe reply message is information copied from the probe message. 11.根据权利要求10所述的网络节点,其中复制的信息包括所计算的驻留时间和探测消息的标识符。11. A network node according to claim 10, wherein the replicated information comprises the calculated dwell time and an identifier of the probe message. 12.一种用于至少在网络路径内包括的网络节点中测量探测消息的驻留时间的设备,所述探测消息具有生存时间值,所述设备包括:12. An apparatus for measuring a dwell time of a probe message having a time-to-live value at least in a network node comprised within a network path, the apparatus comprising: -用于注册探测消息的接收时间戳的装置;- means for registering the reception time stamp of the probe message; -用于将接收时间戳写入到接收的探测消息内的专用字段的装置;- means for writing a reception timestamp into a dedicated field within a received probe message; -用于检查探测消息的生存时间值的装置;- means for checking the time-to-live value of the probe message; -用于如果生存时间值不为空,则将生存时间值缩减1的装置;- means for reducing the time-to-live value by 1 if the time-to-live value is not null; -用于如果生存时间值等于1,那么:- for if the time-to-live value is equal to 1, then: ○注册探测消息的发送时间戳;○Register the sending timestamp of the detection message; ○通过将注册的接收时间戳减去注册的发送时间戳,计算网络节点中的探测消息驻留时间;○ Calculate the probe message dwell time in the network node by subtracting the registered receive timestamp from the registered send timestamp; ○将计算的驻留时间写入探测消息内的字段中;o write the calculated dwell time into a field within the probe message; ○改变接收的探测消息内的标志值,以便保护驻留时间免于被针对探测消息的后续动作所重写的装置。o Means for changing the value of a flag within a received probe message in order to protect the dwell time from being overwritten by subsequent actions on the probe message. 13.根据权利要求12所述的设备,进一步包括:13. The apparatus of claim 12, further comprising: -用于如果生存时间值为空,则在缩减后- used if time-to-live value is empty, after reduction ○创建探测答复消息,在所述探测答复消息中具有从探测消息复制的计算的驻留时间,其相关的标志值和探测消息标识符;o create a probe reply message with the calculated dwell time copied from the probe message, its associated flag value and the probe message identifier; ○将创建的探测答复消息传送回探测消息的发起方的装置。o Transmit the created Probe Reply message back to the device of the originator of the Probe message. 14.根据权利要求12或13所述的设备,其中探测消息包括:14. The device according to claim 12 or 13, wherein the probe message comprises: -第一字段,用于携带在第一通信方向上所经过的网络节点中的探测消息驻留时间;- a first field, used to carry the residence time of the probe message in the network node passed in the first communication direction; -占位符,记录来自网络节点的输入端口的探测消息接收时间戳;- a placeholder to record the receipt timestamp of the probe message from the input port of the network node; -第一标志,防止针对探测消息的任何后续动作对第一字段的重写。- A first flag, preventing rewriting of the first field for any subsequent action on the probe message. 15.根据权利要求14所述的设备,其中探测消息进一步包括15. The apparatus of claim 14, wherein the probe message further comprises -第二字段,用于携带其在与第一通信方向相对的第二通信方向上所经过的网络节点内的驻留时间;- a second field for carrying the dwell time in the network nodes it passes through in a second communication direction opposite to the first communication direction; -第二标志,防止针对探测消息的任何后续动作对第二字段的重写。- A second flag preventing rewriting of the second field for any subsequent action on the probe message. 16.根据权利要求14所述的设备,其中至少由探测消息中传递的字段来指示与通信方向相关的用于所经过的网络节点的信息。16. The device according to claim 14, wherein the information for the network nodes traversed is indicated in relation to the communication direction at least by a field conveyed in the probe message. 17.根据权利要求15所述的设备,其中至少由探测消息中传递的字段来指示与通信方向相关的用于所经过的网络节点的信息。17. The device according to claim 15, wherein the information for the network nodes traversed is indicated in relation to the communication direction at least by a field conveyed in the probe message. 18.根据权利要求12-13和15-17中任一项所述的设备,其中探测消息是经修改的互联网控制消息协议的消息。18. The apparatus according to any one of claims 12-13 and 15-17, wherein the probe message is a modified Internet Control Message Protocol message. 19.根据权利要求12-13和15-17中任一项所述的设备,其中探测消息是经修改的操作管理维护消息。19. The apparatus according to any one of claims 12-13 and 15-17, wherein the probe message is a modified operations management maintenance message. 20.根据权利要求12所述的设备,其中探测消息包括网络节点的目的地地址。20. The apparatus of claim 12, wherein the probe message includes a destination address of the network node. 21.根据权利要求12或20所述的设备,其中探测消息包括服务质量或用于传输探测消息和相关的探测答复消息的服务规定类别。21. An apparatus as claimed in claim 12 or 20, wherein the Probe message includes a Quality of Service or Class of Service provision for transmission of the Probe message and the associated Probe Reply message. 22.根据权利要求12和20中任一项所述的设备,其中探测消息包括单向模式或双向模式的指示。22. Apparatus according to any one of claims 12 and 20, wherein the probe message includes an indication of a unidirectional mode or a bidirectional mode. 23.根据权利要求12和20中任一项所述的设备,进行编程以显示至少在网络路径内的、由权利要求1-8所要求的探测消息和相关的探测答复消息所经过的网络节点中的单向或双向驻留时间。23. Apparatus according to any one of claims 12 and 20 programmed to display at least network nodes within the network path traversed by probe messages and associated probe reply messages as claimed in claims 1-8 One-way or two-way dwell time in .
CN201280012788.7A 2011-01-12 2012-01-03 Method and apparatus for traceroute_delay diagnostic command Expired - Fee Related CN103563307B (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
EP11290011.3A EP2477357B1 (en) 2011-01-12 2011-01-12 Traceroute delay diagnostic command
EP11290011.3 2011-01-12
PCT/EP2012/050055 WO2012095335A1 (en) 2011-01-12 2012-01-03 Traceroute_delay diagnostic command

Publications (2)

Publication Number Publication Date
CN103563307A CN103563307A (en) 2014-02-05
CN103563307B true CN103563307B (en) 2016-11-23

Family

ID=43799472

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201280012788.7A Expired - Fee Related CN103563307B (en) 2011-01-12 2012-01-03 Method and apparatus for traceroute_delay diagnostic command

Country Status (6)

Country Link
US (1) US9509582B2 (en)
EP (1) EP2477357B1 (en)
JP (1) JP5646090B2 (en)
KR (1) KR101459252B1 (en)
CN (1) CN103563307B (en)
WO (1) WO2012095335A1 (en)

Families Citing this family (27)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US12192084B2 (en) 2012-07-05 2025-01-07 Accedian Networks Inc. Method for devices in a network to participate in an end-to-end measurement of latency
US8830860B2 (en) 2012-07-05 2014-09-09 Accedian Networks Inc. Method for devices in a network to participate in an end-to-end measurement of latency
US10999171B2 (en) 2018-08-13 2021-05-04 Accedian Networks Inc. Method for devices in a network to participate in an end-to-end measurement of latency
US9185578B2 (en) 2012-08-24 2015-11-10 Ascom Network Testing Ab Systems and methods for measuring available bandwidth in mobile telecommunications networks
US8792380B2 (en) * 2012-08-24 2014-07-29 Accedian Networks Inc. System for establishing and maintaining a clock reference indicating one-way latency in a data network
US9344320B1 (en) * 2012-10-18 2016-05-17 Amazon Technologies, Inc. Return path trace
JP2015095680A (en) * 2013-11-08 2015-05-18 株式会社日立製作所 Communication device and communication system
CN103634157B (en) * 2013-12-18 2016-08-31 东南大学 parallel message routing detection method
US9621448B2 (en) * 2014-04-08 2017-04-11 AppDynamics, Inc. Network analysis and monitoring tool
US10979332B2 (en) 2014-09-25 2021-04-13 Accedian Networks Inc. System and method to measure available bandwidth in ethernet transmission system using train of ethernet frames
US10432545B2 (en) * 2015-12-28 2019-10-01 Juniper Networks, Inc. Apparatus, system, and method for timely detection of increases in the maximum transmission unit of paths within networks
JP6572136B2 (en) * 2016-01-13 2019-09-04 エヌ・ティ・ティ・コミュニケーションズ株式会社 COMMUNICATION SYSTEM, COMMUNICATION DEVICE, SECOND DEVICE, COMMUNICATION METHOD, AND COMPUTER PROGRAM
CN105703974A (en) * 2016-03-24 2016-06-22 国网江西省电力公司检修分公司 Residence time error testing device of residence time calibration switch
US10404548B2 (en) 2016-08-29 2019-09-03 Cisco Technology, Inc. Control of network nodes in computer network systems
US10355978B2 (en) 2017-06-19 2019-07-16 Hewlett Packard Enterprise Development Lp Calculating times to live for transaction requests
US10616085B2 (en) 2017-08-31 2020-04-07 Zte Corporation Residence time measurement for optimizing network services
US11477100B2 (en) 2017-09-26 2022-10-18 Zte Corporation Residence time measurement for traffic engineered network
CN111602376B (en) * 2017-11-13 2023-05-30 瑞典爱立信有限公司 Method and apparatus for managing transmission of delay sensitive packets
US10742555B1 (en) * 2017-12-11 2020-08-11 Amazon Technologies, Inc. Network congestion detection and resolution
US11349587B2 (en) * 2018-03-30 2022-05-31 Intel Corporation Generating a timestamp
JP6977668B2 (en) * 2018-06-04 2021-12-08 日本電信電話株式会社 Measurement system and measurement method
US11182181B2 (en) 2018-09-25 2021-11-23 International Business Machines Corporation Virtual environments generator
US11044618B2 (en) * 2019-04-18 2021-06-22 At&T Intellectual Property I, L.P. Facilitating automatic latency discovery and dynamic network selection using data analytics in advanced networks
CN112787873B (en) * 2019-11-01 2022-08-02 烽火通信科技股份有限公司 IOAM time delay measurement performance sequencing method and system
CN111340529B (en) * 2020-02-14 2023-10-13 Oppo广东移动通信有限公司 Lottery method, lottery device, storage media and electronic equipment
CN112995025B (en) * 2021-02-05 2023-02-28 杭州迪普科技股份有限公司 Path tracking method, device, equipment and computer readable storage medium
CN115623580A (en) * 2022-09-30 2023-01-17 蔚来软件科技(上海)有限公司 Time synchronization method, system, control device and medium for cross-terminal communication

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5793976A (en) * 1996-04-01 1998-08-11 Gte Laboratories Incorporated Method and apparatus for performance monitoring in electronic communications networks
US6868068B1 (en) * 2000-06-30 2005-03-15 Cisco Technology, Inc. Method and apparatus for estimating delay and jitter between network routers
WO2002095609A1 (en) * 2001-05-24 2002-11-28 Cqos, Inc. Network metric system
AU2003247635A1 (en) * 2002-06-24 2004-01-06 Paradyne Corporation Determination of network performance characteristics
US7729268B2 (en) * 2002-06-28 2010-06-01 Ntt Docomo, Inc. Method and apparatus for quality of service determination
US7881214B2 (en) * 2002-10-25 2011-02-01 General Instrument Corporation Method for performing remote testing of network using IP measurement protocol packets
US7385937B2 (en) * 2003-07-23 2008-06-10 International Business Machines Corporation Method and system for determining a path between two points of an IP network over which datagrams are transmitted
WO2005013567A1 (en) * 2003-08-05 2005-02-10 Fujitsu Limited Communication interval quality analysis system
US20080259813A1 (en) 2004-03-09 2008-10-23 Johnny Mikhael Matta Method and apparatus for quality of service determination
US7596096B2 (en) * 2004-04-29 2009-09-29 Avaya Inc Method and apparatus for providing trace route and timing information for media streams
FR2877177B1 (en) * 2004-10-22 2006-12-15 Cit Alcatel LOCAL PARAMETER CONTROL DEVICE (S) OF A CONNECTION TO BE ESTABLISHED, FOR AN ELEMENT OF A GMPLS CONTROL PLAN ETHERNET COMMUNICATION NETWORK
AR055163A1 (en) * 2005-09-13 2007-08-08 Iwics Inc DETERMINATION OF THE POSITION OF MOBILE STATIONS IN A WIRELESS NETWORK
US8208389B2 (en) * 2006-07-20 2012-06-26 Cisco Technology, Inc. Methods and apparatus for improved determination of network metrics
US20090161569A1 (en) * 2007-12-24 2009-06-25 Andrew Corlett System and method for facilitating carrier ethernet performance and quality measurements

Also Published As

Publication number Publication date
EP2477357A1 (en) 2012-07-18
KR20130125804A (en) 2013-11-19
US9509582B2 (en) 2016-11-29
JP2014506069A (en) 2014-03-06
CN103563307A (en) 2014-02-05
EP2477357B1 (en) 2014-06-25
JP5646090B2 (en) 2014-12-24
WO2012095335A1 (en) 2012-07-19
KR101459252B1 (en) 2014-11-07
US20140043992A1 (en) 2014-02-13

Similar Documents

Publication Publication Date Title
CN103563307B (en) Method and apparatus for traceroute_delay diagnostic command
US11848757B2 (en) In-situ passive performance measurement in a network environment
US11843535B2 (en) Key performance indicators (KPI) for tracking and correcting problems for a network-under-test
US7817568B2 (en) Method for measuring characteristics of path between nodes by using active testing packets based on priority
US8208389B2 (en) Methods and apparatus for improved determination of network metrics
US9413625B2 (en) Automatic capture of the network delay components
KR102430960B1 (en) Performance measurement in packet-switched communication networks
WO2006102840A1 (en) A method for monitoring the packet loss rate
CN103959713B (en) Measurement to the data flow in communication network
CN103797756B (en) Measurement of data traffic in communication networks
EP3513529B1 (en) Performance measurement in a packet-switched communication network
US7944840B2 (en) Method for facilitating latency measurements using intermediate network devices between endpoint devices connected by a computer network
US10334322B1 (en) System and method for media delivery on broadcast video networks
EP2768187B1 (en) Method for measuring traffic performance indicator and transmission side device
CN113812119B (en) Network node for performance measurement
EP1879349A1 (en) Method of measuring packet loss
KR100708589B1 (en) Method of measuring available hop speed by time stamp message in IP6 packet network
US20230396525A1 (en) One-way delay measurement in a packet-switched communication network
KR20130085488A (en) Oam frame handling apparatus and method for packet transport network

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20161123

Termination date: 20180103

CF01 Termination of patent right due to non-payment of annual fee