WO2008080263A1 - A method for measuring relative time delay of data service in optical transmitting network - Google Patents

A method for measuring relative time delay of data service in optical transmitting network Download PDF

Info

Publication number
WO2008080263A1
WO2008080263A1 PCT/CN2006/003824 CN2006003824W WO2008080263A1 WO 2008080263 A1 WO2008080263 A1 WO 2008080263A1 CN 2006003824 W CN2006003824 W CN 2006003824W WO 2008080263 A1 WO2008080263 A1 WO 2008080263A1
Authority
WO
WIPO (PCT)
Prior art keywords
data packet
delay
identifier
virtual container
timestamp
Prior art date
Application number
PCT/CN2006/003824
Other languages
French (fr)
Chinese (zh)
Inventor
Zhiyong Yu
Original Assignee
Zte Corporation
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 Zte Corporation filed Critical Zte Corporation
Priority to PCT/CN2006/003824 priority Critical patent/WO2008080263A1/en
Priority to CN2006800517793A priority patent/CN101336520B/en
Publication of WO2008080263A1 publication Critical patent/WO2008080263A1/en

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
    • 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
    • H04JMULTIPLEX COMMUNICATION
    • H04J2203/00Aspects of optical multiplex systems other than those covered by H04J14/05 and H04J14/07
    • H04J2203/0001Provisions for broadband connections in integrated services digital network using frames of the Optical Transport Network [OTN] or using synchronous transfer mode [STM], e.g. SONET, SDH
    • H04J2203/0089Multiplexing, e.g. coding, scrambling, SONET
    • H04J2203/0094Virtual Concatenation

Definitions

  • the present invention relates to a time delay measurement technique in an optical transmission network, and more particularly to a method for providing data service delay measurement on an SDH/SONET network optical transmission device.
  • MSTP Multi-service transport platform
  • SDH Synchronous Digital Hierarchy
  • SONET Synchronous Optical Network
  • test methods cannot calculate the actual delay value of each priority service in the current network.
  • the delay can be determined in various ways, such as the method described in the patent WO2004068750 or directly using the fiber delay plus the node. Delay, so the key to measuring the delay of carrying data services in SDH/SONET is to get its delay relative to the network. Summary of the invention
  • the technical problem to be solved by the present invention is to provide a method for measuring the relative delay of data services in an optical transmission network, and to solve the problem that the relative delay of the one-way data service cannot be accurately obtained in the optical transmission network.
  • the invention provides a method for measuring a relative delay of a data service in an optical transmission network.
  • the source end periodically sends a time stamp identifier carried on the virtual container overhead to the sink end, and the source time stamp identifier is added one time after each transmission.
  • the timing interval when performing the relative time delay measurement, includes the following steps:
  • the source end After receiving the data packet, the source end adds the current timestamp identifier to the data packet, performs related processing, and sends the packet to the sink end after being encapsulated;
  • the sink After receiving the data packet, the sink performs related processing and decapsulation, extracts a timestamp identifier in the data packet at the time of output, and obtains a timestamp identifier that is carried on the virtual container overhead at this time;
  • the source end has a time stamp generating device, which is generated at a fixed timing interval.
  • the stamp indicates that when the source timing continues to transmit the timestamp identifier, a count of the timing interval is incremented each time the timestamp identifier is sent.
  • the timestamp generating device is a timer at the source end, and the timer is incremented by 1 at the frame header of each synchronous digital series SDH frame, and the value of the timestamp identifier is updated once every time the source end is sent, and is updated to be timed. The current count value of the device.
  • the virtual container overhead of the bearer timestamp identifier is a virtual container overhead that has been defined for use.
  • H4 or Jl, or J2 either retain unused virtual container overhead, or the overhead of multiframe.
  • step S1 the step of adding a current timestamp identifier to the data packet is to add the current timestamp identifier to a reserved byte in the original data packet, or add an additional value in the data packet to the arbitrary location. byte.
  • step S2 the time at which the sink end extracts the timestamp identifier in the data packet at the time of output is when the first bit of the data packet is output, or when the last bit of the data packet is output.
  • step S2 the step of obtaining the time stamp identifier on the virtual container overhead in step S2 is performed before or after the alignment of the virtual container VC members of the virtual container group VCG.
  • the relative delay calculated in step S3 includes the VCG delay compensation time of the virtual container group. If the timestamp identifier is taken, each VC member is taken. The time stamp in the middle identifies the maximum value, and the relative delay calculated in step 3 does not include the virtual container group VCG delay compensation time;
  • the timestamp identifier takes the timestamp identifier in the VC member of any virtual container, and the relative delay calculated in step 3 does not include the virtual container group VCG delay time.
  • step S3 the relative time delay is calculated. If the time stamp identifier obtained from the virtual container overhead is subtracted, less than the time stamp identifier obtained from the sink packet as the subtraction, 3'j is subtracted. The complement should be used, or the resulting negative result is added to the maximum timestamp identification count value.
  • the data packet is any data packet having a packet structure, and the data packet type includes an ATM cell, or an Ethernet frame, or a multi-protocol label switching MPLS frame, or an elastic packet ring. RPR frame, or IP packet.
  • the relative delay of the data service of the SDH/SONET network can be measured in real time without loss, and since it can provide the relative delay data of a single data packet, it can be used to monitor the delay variation of different priority services.
  • the situation is convenient for users to compare and verify the QoS guarantee of the network.
  • the delay data can be displayed on the network management system directly after being collected by the device.
  • the test process is non-destructive to the business and convenient for engineering application and testing.
  • FIG. 1 is a network model diagram for performing relative time delay measurement of a data service according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of an application example networking according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of an Ethernet frame in an application example according to an embodiment of the present invention. Preferred embodiment of the invention
  • the present invention proposes a method for measuring the relative delay of a unidirectional data service in real time on an SDH/SONET optical transmission network, with the aim of monitoring the delay of each service data packet relative to the SDH/SONET network in real time.
  • the networking diagram of the measurement data service delay in the optical transmission network including the source (source), the sink (sink), and the SDH/SONET light connected between the source end and the sink end. transporting network.
  • the service data enters the source end from the receiving port (ingress), is transmitted to the sink end through the SDH network, and is sent out by the output port (egress) at the sink end.
  • the data service one-way delay of the MSTP (Multi-Service Transport Platform) device includes the following three parts:
  • the present invention utilizes a time division (TDM) based transmission mechanism of the SDH/SONET optical transport network and a rich overhead to measure the relative delay of the carried service.
  • TDM time division
  • the time stamp is used to identify the time information of the system. It is timed by the SDH/SONET clock, and the time stamp is carried by the SDH frame or the SONET frame.
  • the source is continuously and periodically through SDH/SONET. For the transmission to the sink, each time a frame is sent, a time interval is added, and the count of the time interval is used as a time stamp identifier.
  • the source uses the virtual container VC (Virtual Container) overhead of the SDH frame or the SONET frame to carry the timestamp identifier as the reference time.
  • VC Virtual Container
  • a timestamp identifier is added to each individual data packet of the data service (new overhead can be added to the packet or the original reserved byte in the packet) can be used as the measurement start time.
  • the sink uses the obtained timestamp identifier to calculate the delay.
  • the time stamp (Time Stamp) is a general term, and is a method for representing time information. Its specific value is written here as a time stamp identifier, and the time stamp identifier can be used for recording and calculation.
  • the relative delay of the data traffic relative to the optical transport network can be represented by T1.
  • T12 to indicate the delay from the source to the packet sent to the VCG (Virtual Concatenation Group);
  • T23 to indicate the SDH network delay;
  • T34 to indicate the sink from the SDH virtual The delay in recovering the packet from the container and sending it out. Since the present invention calculates the relative delay, the delay of the SDH network is not included in T1, that is, T1 does not include T23. It can be considered that ⁇ 23 is the network delay of SDH. Since there is a problem of calculating the virtual cascade compensation time at the position of position 3, the boundary of this point is relatively vague, and whether the T23 includes the position of the position 3 The compensation time needs to be treated differently.
  • the source end uses the virtual container VC overhead to transmit the timestamp identifier, and the system transmits one frame (125us),
  • the timestamp identifier increments the count of a timed interval and, at the same time, updates the current timestamp identifier to the VC overhead.
  • the source end periodically sends a timestamp identifier (FIG. 1, 2) carrying the reference time to the sink end, and the timestamp identifier is used to indicate the current time and time.
  • the frame transmitted by the system may be an SDH frame or a SONET frame.
  • the SDH frame is a complete frame
  • VC is the payload in the SDH frame, so VC open silver is naturally included in the SDH frame.
  • Step 1 After the source receives the service data packet from the receiving port (Ingress), it needs to immediately add the current time stamp to the data packet ( Figure 1, location 1). After completing other processing, the data packet is encapsulated into SDH. Issued in /SONET VCG.
  • the timestamp identifier added to the packet can either use the reserved bytes in the original packet or use the extra overhead bytes added anywhere in the packet.
  • the timestamp identifier added here is used to indicate the start time information when starting to receive data services.
  • Step 2 The sink receives the data packet, recovers and processes the data packet, and extracts the time stamp identifier in the data packet when outputting to the Egress output port (Fig. 1, position 4); meanwhile, the sink needs The timestamp identifier carried in the current VC overhead is solved (Fig. 1, position 3).
  • the time at which the timestamp identifier in the data packet is extracted may be at the time of outputting the first bit of the data packet or at the time of outputting the last bit.
  • the time stamp identifier in the packet is extracted, and the start time information of the data service is obtained.
  • the timestamp identifier included in the VC is extracted at the sink end, and since it is periodically continued during the data service transmission and processing, the timestamp identifier extracted by the sink from the VC is used to indicate the end of the data service. Time information. When extracting, it can be performed before the VC members of VCG are aligned, or after each member is aligned.
  • the timestamp identifier can take the minimum or maximum value of each VC member. If the minimum value is taken, the relative delay T1 includes the VCG delay compensation time. The calculation of the total time delay only needs to increase the shortest path delay of the SDH/SONET network. If the maximum value is taken, the relative delay T1 does not include the VCG. Delay compensation time, calculate the total time delay only need to increase the longest path delay of the SDH/SONET network.
  • the timestamp identifier can take the timestamp identifier of any VC member.
  • the relative delay T1 does not include the VCG delay compensation time. The calculation of the total time delay only needs to increase the longest path delay of the SDH/SONET network. .
  • the timestamp identifier and the service data packet described above are all carried by the VCG.
  • VCG there are five SDH VCG members: VC-11, VC-12, VC-2, VC-3, VC-4.
  • SONET There are 4 VCG members: VC-11, VC-2, VC-12, VC-3.
  • all VC members in a VCG must be the same VC.
  • Different VCGs can include different types of VCs, which can ensure that all data packets are encapsulated in the same VC. type container for transmission.
  • the VC described in the present invention may be any one of them, and each VC carries an overhead and also has a reserved overhead.
  • the third step using the end time stamp identifier contained in the recovered VC minus the start time stamp identifier contained in the recovered data packet, the additional delay Tl of the data packet relative to the SDH/SONET network can be obtained.
  • the subtraction is less than the subtraction, it indicates that the timestamp counter has overflowed, and the complement should be used or the negative result should be added to the timestamp identifier maximum value TSmax.
  • the specific time value of the relative delay can be obtained by multiplying the time stamp difference by the set timing duration.
  • the time stamp identifier described above is a specific timing information, and the number of bits required to transmit the time stamp identifier (TSbits) is determined by the maximum value TSmax of the time stamp identifier, TSmax ⁇ 2 A TSbits - 1; the maximum measurable
  • the above-mentioned data packet is a generic term, and may actually be any packet with a packet structure, such as an ATM cell, an Ethernet frame, an MPLS (Multi-Protocol Label Switching) frame, and an RPR (Resilient Packet). Ring, flexible packet ring) Frames, IP packets, etc.
  • a packet structure such as an ATM cell, an Ethernet frame, an MPLS (Multi-Protocol Label Switching) frame, and an RPR (Resilient Packet). Ring, flexible packet ring) Frames, IP packets, etc.
  • the VC overhead for transmitting the timestamp may be a defined VC overhead (such as H4, Jl, J2, etc.), or reserved unused VC overhead, or may be composed of a multiframe method. Overhead (such as MFI (Multi Frame Indicator), etc.).
  • MFI Multi Frame Indicator
  • the data payload When virtual concatenation technology is used, the data payload will be split and composed into VCGs, which are transmitted in SDH network through two or more paths. Because the distance between the two or more paths and the number of network elements included in the path are not the same, VCG members cannot reach the end point at the same time; the sink receiving device must compensate for the delay difference and then reassemble the payload.
  • FIG. 2 is a schematic diagram of networking of an optical transmission network.
  • the network is an SDH network, which includes two SDH sites, namely, Site A and Site B.
  • Ethernet FE Fast Ethernet
  • a virtual container VC-4 is used to carry the service.
  • the H4 byte overhead of VC-4 is used to pass the timestamp flag, and the multiframe structure is not used.
  • TSbits 8bits
  • TSmax ⁇ 2 A TSbits - 1
  • the timestamp identifier uses only 8bits (as shown in Figure 3). '
  • a timestamp needs to be established at the source end.
  • a source counter can be used to generate the timestamp identifier.
  • the source end timing continues to send the SDH frame to the sink through the SDH network. When transmitting, it is at the head of each SDH frame. Counter is incremented by 1, that is, a timing interval is added. For each SDH frame sent by point A, the H4 overhead changes once, and the time stamp value passed is the current value of the timer.
  • the source When performing relative delay measurement, the source can select a normal data service packet to monitor its delay condition, or it can send a dedicated data packet for measuring relative delay.
  • the processing flow of measuring the data service delay is as follows:
  • Step 1 When Point A receives an Ethernet frame from the FE port, it immediately returns Counter.
  • the time stamp is added to the data packet to carry the current timestamp identifier.
  • a new type of overhead is added, indicating that the frame carries a time stamp identifier. In this case, the new overhead is used.
  • the original reserved overhead can also be used to carry the timestamp identifier or to carry the time stamp in the identifier frame.
  • GFP Generic framing procedure
  • Step 2 Point B receives the VC-4 through its SDH interface, and recovers the Ethernet frame through GFP decapsulation. After corresponding processing, it is sent to the FE port of point B. When output by the FE port, the Ethernet is extracted and stripped.
  • the present invention can measure the relative delay of the data service of the SDH/SONET network in real time and without loss, and can provide the delay variation of the service of the different priority services of the blue control, which is convenient for the blue network to control the delay of the different priority services.
  • the user compares and verifies the QoS guarantee of the network. ' .
  • the delay data can be directly displayed on the network management device, and the test process is non-destructive to the business, facilitating engineering application and testing.
  • the invention provides a method for measuring the relative delay of a data service in an optical transmission network, and uses the time stamp identification to realize the relative delay of the data service, and can measure the relative time of the data service of the SDH/SONET network in real time without loss.
  • Delay because it can provide relative delay data of a single data packet, it can be used to monitor the delay variation of different priority services, facilitate user comparison, and verify the QoS guarantee of the network.
  • the delay data can be displayed on the network management device after being directly collected by the device.
  • the test process is non-destructive to the business and convenient for engineering application and testing.

Landscapes

  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

A method for measuring relative time delay of data service in optical transmitting network, the relative time delay of data service is realized by transferring a timestamp identification; the timestamp identification bearing on the virtual container overhead is transmitted from the source to the sink timely and continually; after each transmission, the timestamp identification increases a timing interval; when the relative time delay is measuring, the source, after receiving a data packet, adds a current timestamp identification to said data packet immediately, after relatively processing and encapsulating, transmits the data packet to the sink; the sink receives the data packet, then relatively processes and decapsulates it, when it is output, the timestamp is extracted from the data packet, at the same time, the timestamp currently bearing on the virtual container overhead is got; the timestamp identification got from the data packet of the sink is subtracted from the timestamp identification got from the virtual container overhead to calculate the relative time delay. The present invention can provide an on-line, real-time and undamaged measure which measures the relative time delay of SDH/SONET network data service to get the relative time delay of single data packet.

Description

一种在光传输网络中测量数据业备相对时延的方法  Method for measuring relative delay of measuring data in optical transmission network
技术领域 Technical field
本发明涉及光传输网络中的时延测量技术,尤其涉及在 SDH/SONET网 络光传输设备上提供数据业务时延测量的方法。  The present invention relates to a time delay measurement technique in an optical transmission network, and more particularly to a method for providing data service delay measurement on an SDH/SONET network optical transmission device.
背景技术 Background technique
随着数据业务的飞速发展, 在同步数字系列 (Synchronous Digital Hierarchy, SDH )或同步光纤网(Synchronous Optical Network, SONET ) 的 传输设备上, 通过采用 MSTP ( Multi-service transport platform, 多服务传输 平台)技术提供数据业务的接入, 目前已在城域网中得到了广泛的应用。  With the rapid development of data services, MSTP (Multi-service transport platform) is adopted on the transmission equipment of Synchronous Digital Hierarchy (SDH) or Synchronous Optical Network (SONET). The technology provides access to data services and has been widely used in metropolitan area networks.
MSTP传送数据业务的优点, 主要表现在相对较高的 QoS ( Quality of Service, 服务质量)保障和低成本。 而 QoS 中一个比较重要的指标就是业 务的时延和时延抖动, 这些指标随着语音和视频逐步采用 IP技术进行传送 会越来越重要。 普通的上网浏览等应用一般基于 TCP/IP协议, 而 TCP/IP协 议是一种基于请求 -应答(Request - Respond )的模式, 这种模式决定了用 户实际可用带宽对时延是敏感的, 当传输网时延较大时, 使用 TCP/IP协议 的业务将可能无法达到其最大速率, 造成带宽的浪费。  The advantages of MSTP to transmit data services are mainly reflected in relatively high QoS (Quality of Service) and low cost. A more important indicator of QoS is the delay and delay jitter of the service. These indicators will become more and more important as voice and video are gradually transmitted using IP technology. Applications such as ordinary Internet browsing are generally based on the TCP/IP protocol, and the TCP/IP protocol is a Request-Respond-based mode that determines the actual available bandwidth of the user is sensitive to delay. When the transmission network delay is large, services using TCP/IP may fail to reach its maximum rate, resulting in wasted bandwidth.
作为 QoS的一个重要指标, 如何进行时延测量一直是业界关心的话题。 目前设备标称的时延一般都是通过专用仪表进行测试,测试时也不是实际在 线测试, 其结果往往仅供参考, 无法体现实际网络运行时的时延情况。 实际 使用中, 用户一般会使用 ping命令的方式验证网络的实际时延, 但精确度 不高, 受软件运行情况影响较大, 无法从网管实时监.视, 而且也较难判断是 由于 MSTP传输时延过大, 还是数据设备出现问题导致时延增大。  As an important indicator of QoS, how to perform delay measurement has always been a topic of concern to the industry. At present, the nominal delay of the equipment is generally tested by special instruments, and the actual test is not actual. The results are often for reference only and cannot reflect the delay of the actual network operation. In actual use, users generally use the ping command to verify the actual delay of the network, but the accuracy is not high, and it is greatly affected by the software operation. It cannot be monitored from the network management in real time, and it is difficult to judge because of MSTP transmission. The delay is too large, or the data device has a problem causing the delay to increase.
ITU-T和 IEEE等标准化组织现在已关注到这个问题, 在有关数据传送 网的新标准中, 已开始将时延测量(Delay Measurement )的相关内容引入以 太网 OAM ( Operation, administration and maintenance, 操作管理保持)。 其 基本思想是通过发送专用的时延测量 0AM帧,帧中携带时戳 ( Time Stamp ), 宿端回送该带时戳的 OAM帧, 源端再接收后通过时戳相减确认双向时延, 标准也支持发送特定 OAM帧进行单向时延的测量, 但由于其要求源端和宿 端在时间上的同步, 应用中难以实现, 所以主要是用于测量双向时延。 Standardization organizations such as ITU-T and IEEE have now paid attention to this issue. In the new standards for data transmission networks, the content of Delay Measurement has been introduced into Ethernet OAM (Operation, Administration and Maintenance, Operation). Management keeps). The basic idea is to measure the 0AM frame by sending a dedicated delay, which carries a Time Stamp. The sink sends back the OAM frame with the timestamp, and the source end receives the time delay and confirms the two-way delay. The standard also supports sending a specific OAM frame for the measurement of the one-way delay, but because it requires the source and the sink. Synchronization in time is difficult to implement in applications, so it is mainly used to measure two-way delay.
但在实际网络中,数据业务两个方向的时延往往并不一样, 插入的新的 测试包由于经历的流程并不完全相同, 无法体现实际业务的真实时延。  However, in the actual network, the delay in the two directions of the data service is often different. The new test packets inserted are not exactly the same, and cannot reflect the real delay of the actual service.
因此, 目前较常见的利用网络分析仪、 ping命令以及 OAM帧测量时延 的方法, 都各有其无法解决的问题, 而且这些测试的方法都不是真实的反映 出真正的数据包的时延, 当业务中混合不同优先级业务时, 这些测试方法也 无法实时统计出当前网络中各优先级业务的实际时延值。  Therefore, the more common methods of using network analyzers, ping commands, and OAM frame measurement delays have their own problems, and the methods of these tests do not truly reflect the true packet delay. When the service is mixed with different priority services, the test methods cannot calculate the actual delay value of each priority service in the current network.
由于 SDH/SONET光传输网络单向时延基本固定,和节点传输时延以及 光纤时延相关,可以利用多种方式确定其时延,如专利 WO2004068750所述 方法或直接利用光纤时延加上节点时延,所以测量 SDH/SONET中承载数据 业务时延的关键是得到其相对于网络的时延。 发明内容  Since the one-way delay of the SDH/SONET optical transmission network is basically fixed, and is related to the node transmission delay and the fiber delay, the delay can be determined in various ways, such as the method described in the patent WO2004068750 or directly using the fiber delay plus the node. Delay, so the key to measuring the delay of carrying data services in SDH/SONET is to get its delay relative to the network. Summary of the invention
本发明所要解决的技术问题在于,提供一种在光传输网络中测量数据业 务相对时延的方法,解决光传输网络中不能准确获取单向数据业务相对时延 的问题。  The technical problem to be solved by the present invention is to provide a method for measuring the relative delay of data services in an optical transmission network, and to solve the problem that the relative delay of the one-way data service cannot be accurately obtained in the optical transmission network.
本发明提供一种在光传输网络中测量数据业务相对时延的方法,源端定 时持续地向宿端发送承载于虚容器开销上的时戳标识,每次发送后源端时戳 标识增加一个定时间隔, 在进行相对时延测'量时, 包括如下步骤:  The invention provides a method for measuring a relative delay of a data service in an optical transmission network. The source end periodically sends a time stamp identifier carried on the virtual container overhead to the sink end, and the source time stamp identifier is added one time after each transmission. The timing interval, when performing the relative time delay measurement, includes the following steps:
. Sl、 源端收到数据包后, 立刻向所述数据包添加当前时戳标识, 进行相 关处理及封装后向宿端发送;  After receiving the data packet, the source end adds the current timestamp identifier to the data packet, performs related processing, and sends the packet to the sink end after being encapsulated;
52、 宿端接收所述数据包后, 进行相关处理及解包封, 在输出时提取数 据包内时戳标识, 同时获取此时承载于虚容器开销上的时戳标识;  After receiving the data packet, the sink performs related processing and decapsulation, extracts a timestamp identifier in the data packet at the time of output, and obtains a timestamp identifier that is carried on the virtual container overhead at this time;
53、 用从虚容器开销上所得时戳标识减去从宿端数据包获得的时戳标 识, 计算出数据包相对光传输网絡的相对时延。  53. Subtract the time stamp identification obtained from the virtual container overhead by subtracting the time stamp identifier obtained from the sink data packet, and calculate the relative delay of the data packet relative to the optical transmission network.
进一步地, 所述源端具有一个时戳产生装置, 以固定的计时间隔产生时 戳标识, 源端定时持续发送时戳标识时,每发送一次时戳标识增加一个计时 间隔的计数。 所述时戳产生装置是源端的一个定时器, 该定时器在每个同步 数字系列 SDH帧的帧头处加 1, 源端每发送一次, 所述时戳标识的数值更 新一次, 更新为定时器的当前计数值。 Further, the source end has a time stamp generating device, which is generated at a fixed timing interval. The stamp indicates that when the source timing continues to transmit the timestamp identifier, a count of the timing interval is incremented each time the timestamp identifier is sent. The timestamp generating device is a timer at the source end, and the timer is incremented by 1 at the frame header of each synchronous digital series SDH frame, and the value of the timestamp identifier is updated once every time the source end is sent, and is updated to be timed. The current count value of the device.
进一步地,所述承载时戳标识的虚容器开销是已定义使用的虛容器开销 Further, the virtual container overhead of the bearer timestamp identifier is a virtual container overhead that has been defined for use.
H4、 或 Jl、 或 J2, 或者是保留未使用的虛容器开销, 或者是通过复帧方式 组成的开销。 H4, or Jl, or J2, either retain unused virtual container overhead, or the overhead of multiframe.
进一步地, 步骤 S1 中, 向所述数据包添加当前时戳标识的步骤, 是将 所述当前时戳标识加入原有数据包中的保留字节、或加入数据包中在任意位 置额外增加的字节。  Further, in step S1, the step of adding a current timestamp identifier to the data packet is to add the current timestamp identifier to a reserved byte in the original data packet, or add an additional value in the data packet to the arbitrary location. byte.
进一步地, 步骤 S2中, 宿端在输出时提取数据包内时戳标识的时刻, 是在输出数据包第一个比特时, 或在输出数据包最后一个比特时。  Further, in step S2, the time at which the sink end extracts the timestamp identifier in the data packet at the time of output is when the first bit of the data packet is output, or when the last bit of the data packet is output.
进一步地, 步骤 S2中获取虛容器开销上的时戳标识步骤, 是在虛容器 组 VCG的各个虚容器 VC成员对齐之前或对齐之后进行,  Further, the step of obtaining the time stamp identifier on the virtual container overhead in step S2 is performed before or after the alignment of the virtual container VC members of the virtual container group VCG.
如对齐之前进行,若时戳标识取各虚容器 VC成员中的时戳标识最小偉, 步骤 S3中计算所得相对时延包含了虚容器组 VCG时延补偿时间,若时戳标 识取各 VC成员中的时戳标识最大值, 步骤 3计算所得相对时延未包含虚容 器组 VCG时延补偿时间;  If the timestamp identifier is the smallest, the timestamp identifier in the VC member of each virtual container is the smallest. The relative delay calculated in step S3 includes the VCG delay compensation time of the virtual container group. If the timestamp identifier is taken, each VC member is taken. The time stamp in the middle identifies the maximum value, and the relative delay calculated in step 3 does not include the virtual container group VCG delay compensation time;
如对齐之后进行, 该时戳标识取任意虚容器 VC成员中的时戳标识, 步 骤 3计算所得相对时延未包含虚容器组 VCG时延补 时间。  If the alignment is performed, the timestamp identifier takes the timestamp identifier in the VC member of any virtual container, and the relative delay calculated in step 3 does not include the virtual container group VCG delay time.
进一步地, 步骤 S3中, 计算相对时延时, 如果从虛容器开销上所得时 戳标识作为被减数, 小于作为减数的从宿端数据包获得的时戳标识, 3'j被减 数应使用补码, 或将所得负值结果与最大时戳标识计数值相加。  Further, in step S3, the relative time delay is calculated. If the time stamp identifier obtained from the virtual container overhead is subtracted, less than the time stamp identifier obtained from the sink packet as the subtraction, 3'j is subtracted. The complement should be used, or the resulting negative result is added to the maximum timestamp identification count value.
进一步地,所述时戳标识在被传递时所需比特数 TSbits是由时戳标识最 大值 TSmax决定, 两者满足 TSmax < 2ATSbits - 1 , 对应时戳标识最大值 TSmax的最大相对时延 DMmax = TSmax x计时间隔。 Further, the number of bits required for the timestamp identifier to be transmitted is determined by the timestamp identifier maximum value TSmax, which satisfies TSmax < 2 A TSbits - 1 , and the maximum relative delay of the corresponding time stamp identifier maximum value TSmax DMmax = TSmax x timing interval.
进一步地, 所述数据包是任意具有分组结构的数据包, 所述数据包类型 包括 ATM信元、 或以太网帧、 或多协议标记交换 MPLS帧、 或弹性分组环 RPR帧、 或 IP包。 Further, the data packet is any data packet having a packet structure, and the data packet type includes an ATM cell, or an Ethernet frame, or a multi-protocol label switching MPLS frame, or an elastic packet ring. RPR frame, or IP packet.
采用本发明所述的方法,可在线实时无损的测量 SDH/SONET网络的数 据业务相对时延, 由于其可以提供单个数据包的相对时延数据, 因此可用于 监控不同优先级业务的时延变化情况, 方便用户进行比较, 并验证网络的 QoS保障情况。 时延数据由设备直接采集后可以在网管上显示, 测试过程对 于业务无损, 方便工程应用和测试。 附图概述  By adopting the method of the invention, the relative delay of the data service of the SDH/SONET network can be measured in real time without loss, and since it can provide the relative delay data of a single data packet, it can be used to monitor the delay variation of different priority services. The situation is convenient for users to compare and verify the QoS guarantee of the network. The delay data can be displayed on the network management system directly after being collected by the device. The test process is non-destructive to the business and convenient for engineering application and testing. BRIEF abstract
图 1是本发明实施例中进行数据业务相对时延测量的网络模型图; 图 2是本发明实施例的应用实例组网示意图;  1 is a network model diagram for performing relative time delay measurement of a data service according to an embodiment of the present invention; FIG. 2 is a schematic diagram of an application example networking according to an embodiment of the present invention;
图 3是本发明实施例的应用实例中以太网帧示意图。 本发明的较佳实施方式  FIG. 3 is a schematic diagram of an Ethernet frame in an application example according to an embodiment of the present invention. Preferred embodiment of the invention
下面结合附图及具体实施例对本发明技术方案的实施作进一步的详细 描述。 '  The implementation of the technical solution of the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. '
本发明提出了一种在 SDH/SONET 光传输网络上实时测量单向数据业 务相对时延的方法, 目的在于实时监控各业务数据包相对于 SDH/SONET网 络的时延。  The present invention proposes a method for measuring the relative delay of a unidirectional data service in real time on an SDH/SONET optical transmission network, with the aim of monitoring the delay of each service data packet relative to the SDH/SONET network in real time.
如图 1所示, 显示了光传输网络中测量数据业务时延的组网示意图, 包 括源端( source )、宿端( sink )、以及连接于源端和宿端之间的 SDH/SONET 光传输网络。 业务数据从接收端口 (ingress )进入源端, 经 SDH 网络传输 至宿端, 在宿端由输出端口 (egress )送出。  As shown in Figure 1, the networking diagram of the measurement data service delay in the optical transmission network is shown, including the source (source), the sink (sink), and the SDH/SONET light connected between the source end and the sink end. transporting network. The service data enters the source end from the receiving port (ingress), is transmitted to the sink end through the SDH network, and is sent out by the output port (egress) at the sink end.
通常, MSTP (多服务传输平台)设备的数据业务单向时延, 包括如下 3个部分:  Generally, the data service one-way delay of the MSTP (Multi-Service Transport Platform) device includes the following three parts:
( 1 ) 从源端开始接受数据包到发送到 VCG ( Virtual Concatenation (1) Receive packets from the source to send to VCG (Virtual Concatenation
Group, 虚级联组) 的时延; Time delay of Group, virtual concatenation group;
( 2 ) SDH网络时延; ( 3 )宿端从 SDH虚容器中恢复出数据包并发送出来的时延。. 由于 MSTP设备传送的数据业务承载层为 SDH/SONET网络,本发明利 用 SDH/SONET光传输网络基于时分(TDM ) 的传送机制以及丰富的开销, 来测量所承载业务的相对时延。 (2) SDH network delay; (3) The delay at which the sink recovers the packet from the SDH virtual container and sends it out. Since the data service bearer layer transmitted by the MSTP device is an SDH/SONET network, the present invention utilizes a time division (TDM) based transmission mechanism of the SDH/SONET optical transport network and a rich overhead to measure the relative delay of the carried service.
首先, 引入 SDH/SONET时戳概念, 该时戳用于标识系统的时间信息, 由 SDH/SONET时钟进行计时, 利用 SDH帧或 SONET帧携带时戳标识, 定 时持续地通过 SDH/SONET进行源端到宿端的发送, 每发送一帧, 增加一个 计时间隔, 将计时间隔的计数作为时戳标识。  First, the SDH/SONET time stamp concept is introduced. The time stamp is used to identify the time information of the system. It is timed by the SDH/SONET clock, and the time stamp is carried by the SDH frame or the SONET frame. The source is continuously and periodically through SDH/SONET. For the transmission to the sink, each time a frame is sent, a time interval is added, and the count of the time interval is used as a time stamp identifier.
发送时, 在 SDH/SONET中, 源端利用 SDH帧或 SONET帧的虛容器 VC ( Virtual Container )开销携带该时戳标识, 作为基准时间。 同时, 在数 据业务的每个单独的数据包中增加一个时戳标识(可以在包中新增开销或使 用包中原保留的字节), 作为测量起始时间。 接收时, 宿端利用获得的时戳 标识来计算时延。 这里所述时戳(Time Stamp )是一个笼统的叫法, 是一种 表示时间信息的方法, 它的具体值这里写为时戳标识, 时戳标识可以用于记 录和计算。  When sending, in SDH/SONET, the source uses the virtual container VC (Virtual Container) overhead of the SDH frame or the SONET frame to carry the timestamp identifier as the reference time. At the same time, a timestamp identifier is added to each individual data packet of the data service (new overhead can be added to the packet or the original reserved byte in the packet) can be used as the measurement start time. When receiving, the sink uses the obtained timestamp identifier to calculate the delay. The time stamp (Time Stamp) is a general term, and is a method for representing time information. Its specific value is written here as a time stamp identifier, and the time stamp identifier can be used for recording and calculation.
基于图 1所示的测试组网, 可以用 T1表示数据业务相对于光传输网络 ( SDH/SONET ) 的相对时延。 为了便于理解, 我们可以用 T12表示从源端 开始接受数据包到发送到 VCG ( Virtual Concatenation Group, 虚级联组)的 时延; 用 T23表示 SDH网络时延; 用 T34表示宿端从 SDH虚容器中恢复出 数据包并发送出来的时延。 由于本发明计算的是相对时延, 所以 T1中不包 括 SDH网络的时延, 即 T1不包括 T23。 可以认为 Τ23就是 SDH的网络时 延, 由于在位置 3这个点来说, 存在着是否计算虛级联补偿时间的问题, 所 以这个点的界限比较模糊,对于 T23是否包括位置 3这个点的虚级联补偿时 间需要区别对待。  Based on the test networking shown in Figure 1, the relative delay of the data traffic relative to the optical transport network (SDH/SONET) can be represented by T1. For the sake of understanding, we can use T12 to indicate the delay from the source to the packet sent to the VCG (Virtual Concatenation Group); T23 to indicate the SDH network delay; T34 to indicate the sink from the SDH virtual The delay in recovering the packet from the container and sending it out. Since the present invention calculates the relative delay, the delay of the SDH network is not included in T1, that is, T1 does not include T23. It can be considered that Τ23 is the network delay of SDH. Since there is a problem of calculating the virtual cascade compensation time at the position of position 3, the boundary of this point is relatively vague, and whether the T23 includes the position of the position 3 The compensation time needs to be treated differently.
为了测量数据业务的相对时延, 首先, 要在源端建立时戳, 在图 1所示 的位置 1 处, 源端利用虛容器 VC 开销传递时戳标识, 系统每发送一帧 ( 125us ) , 时戳标识增加一个计时间隔的计数, 并同时, 将当前的时戳标 识更新到该 VC开销中。这样源端就定时持续地向宿端发送携带有表示基准 时间的时戳标识(图 1 , 2处) , 该时戳标识用于表示当前的时 Ι¾Η言息。 系 统发送的帧可以是 SDH帧或 SONET帧。 SDH帧是一个完整的帧, VC是 SDH帧中的净荷, 所以 VC开银自然也包括在 SDH帧中。 In order to measure the relative delay of the data service, first, to establish a time stamp at the source end, at the position 1 shown in FIG. 1, the source end uses the virtual container VC overhead to transmit the timestamp identifier, and the system transmits one frame (125us), The timestamp identifier increments the count of a timed interval and, at the same time, updates the current timestamp identifier to the VC overhead. In this way, the source end periodically sends a timestamp identifier (FIG. 1, 2) carrying the reference time to the sink end, and the timestamp identifier is used to indicate the current time and time. Department The frame transmitted by the system may be an SDH frame or a SONET frame. The SDH frame is a complete frame, and VC is the payload in the SDH frame, so VC open silver is naturally included in the SDH frame.
在测量具体数据业务的相对时延时, 包括如下步骤:  In measuring the relative time delay of a specific data service, the following steps are included:
第一步: 源端从接收端口 (Ingress )收到业务数据包后, 需要立即在数 据包中添加当前时戳(图 1 , 位置 1处) , 在完成其它处理后, 将数据包封 装到 SDH/SONET VCG中发出。 向数据包中添加的时戳标识, 可以利用原 有数据包中的保留字节,也可以利用在数据包的任意位置增加的额外开销字 节。此处此添加的时戳标识,用于表示开始接收数据业务时的开始时间信息。  Step 1: After the source receives the service data packet from the receiving port (Ingress), it needs to immediately add the current time stamp to the data packet (Figure 1, location 1). After completing other processing, the data packet is encapsulated into SDH. Issued in /SONET VCG. The timestamp identifier added to the packet can either use the reserved bytes in the original packet or use the extra overhead bytes added anywhere in the packet. The timestamp identifier added here is used to indicate the start time information when starting to receive data services.
第二步: 宿端收到数据包, 对数据包进行恢复和处理, 在输出到 Egress 输出端口时, 提取数据包中的时戳标识(图 1 , 位置 4处) ;, 同时, 宿端需 要解出当前 VC开销中携带的时戳标识(图 1 , 位置 3处) 。  Step 2: The sink receives the data packet, recovers and processes the data packet, and extracts the time stamp identifier in the data packet when outputting to the Egress output port (Fig. 1, position 4); meanwhile, the sink needs The timestamp identifier carried in the current VC overhead is solved (Fig. 1, position 3).
提取数据包中时戳标识的时刻,可以是在输出数据包第一个 bit的时刻, 也可以是在输出最后一个 bit的时刻。 提取出包中的时戳标识, 即可获得数 据业务的开始时间信息。  The time at which the timestamp identifier in the data packet is extracted may be at the time of outputting the first bit of the data packet or at the time of outputting the last bit. The time stamp identifier in the packet is extracted, and the start time information of the data service is obtained.
与此同时,在宿端提取出 VC中所含时戳标识,由于其在数据业务传输、 处理期间是定时持续进行的, 该宿端从 VC提取的时戳标识, 用于表示数据 业务的结束时间信息。 提取时, 可以在 VCG各 VC成员对齐之前进行, 也 可以是各成员对齐后进行。  At the same time, the timestamp identifier included in the VC is extracted at the sink end, and since it is periodically continued during the data service transmission and processing, the timestamp identifier extracted by the sink from the VC is used to indicate the end of the data service. Time information. When extracting, it can be performed before the VC members of VCG are aligned, or after each member is aligned.
如对齐前进行, 该时戳标识可以取各 VC成员中的最小值或最大值。 如 果取最小值, 则相对时延 T1 包含了 VCG时延补偿时间, 计算总时延时只 需要增加 SDH/SONET 网络的最短路径时延; 如果取最大值, 则相对时延 T1未包含 VCG时延补偿时间,计算总时延时只需要增加 SDH/SONET网絡 的最长路径时延。  If done before alignment, the timestamp identifier can take the minimum or maximum value of each VC member. If the minimum value is taken, the relative delay T1 includes the VCG delay compensation time. The calculation of the total time delay only needs to increase the shortest path delay of the SDH/SONET network. If the maximum value is taken, the relative delay T1 does not include the VCG. Delay compensation time, calculate the total time delay only need to increase the longest path delay of the SDH/SONET network.
如对齐后进行, 该时戳标识可以取任意 VC成员中的时戳标识, 相对时 延 T1 未包含 VCG时延补偿时间, 计算总时延时只需要增加 SDH/SONET 网络的最长路径时延。  If the alignment is performed, the timestamp identifier can take the timestamp identifier of any VC member. The relative delay T1 does not include the VCG delay compensation time. The calculation of the total time delay only needs to increase the longest path delay of the SDH/SONET network. .
上面所述的时戳标识与业务数据包都是由 VCG承载的,其中, SDH VCG 成员有 5种: VC-11的, VC-12的, VC-2的, VC-3的, VC-4的, 而 SONET VCG成员有 4种: VC-11的, VC-2的, VC-12的, VC-3的。根据标准要求, 一个 VCG中所有 VC成员必须都是同一种 VC, 不同 VCG间可以是包括不 同种类 VC,可以保证所有的数据包均封装到同一种 VC.类型的容器中传输。 在本发明中所述的 VC, 可以是其中任何一种, 每一种 VC都会携带开销, 也都有保留的开销。 The timestamp identifier and the service data packet described above are all carried by the VCG. Among them, there are five SDH VCG members: VC-11, VC-12, VC-2, VC-3, VC-4. And SONET There are 4 VCG members: VC-11, VC-2, VC-12, VC-3. According to the standard requirements, all VC members in a VCG must be the same VC. Different VCGs can include different types of VCs, which can ensure that all data packets are encapsulated in the same VC. type container for transmission. The VC described in the present invention may be any one of them, and each VC carries an overhead and also has a reserved overhead.
第三步: 用恢复的 VC中所含结束时戳标识减去恢复的数据包所含的开 始时戳标识, 即可得到该数据包相对于 SDH/SONET网络的额外时延 Tl。 当被减数小于减数时, 说明时戳计数器已溢出, 应使用补码或将负值结果与 时戳标识最大值 TSmax相加。 其相对时延的具体时间值可以通过时戳差值 乘以设定的定时时长即可得到。  The third step: using the end time stamp identifier contained in the recovered VC minus the start time stamp identifier contained in the recovered data packet, the additional delay Tl of the data packet relative to the SDH/SONET network can be obtained. When the subtraction is less than the subtraction, it indicates that the timestamp counter has overflowed, and the complement should be used or the negative result should be added to the timestamp identifier maximum value TSmax. The specific time value of the relative delay can be obtained by multiplying the time stamp difference by the set timing duration.
以上所述时戳标识, 是一个特定的计时信息,传递时戳标识所需的比特 位数(TSbits ) , 由时戳标识的最大值 TSmax决定, TSmax≤ 2ATSbits - 1; 可测的最大相对时延(DMmax )为: DMmax = TSmax* 125us, 超过 DMmax 的相对时延将可能导致最终第三步减法运算的结果不正确。 The time stamp identifier described above is a specific timing information, and the number of bits required to transmit the time stamp identifier (TSbits) is determined by the maximum value TSmax of the time stamp identifier, TSmax ≤ 2 A TSbits - 1; the maximum measurable The relative delay (DMmax) is: DMmax = TSmax* 125us, and the relative delay exceeding DMmax may result in incorrect result of the final third step subtraction.
以上所述的数据包,是一个通称,实际可以是任意有分组结构的数据包, 例如 ATM信元、 以太网帧、 MPLS ( Multi-Protocol Label Switching, 多协议 标记交换)帧、 RPR ( Resilient Packet Ring, 弹性分组环) 帧、 IP包等。  The above-mentioned data packet is a generic term, and may actually be any packet with a packet structure, such as an ATM cell, an Ethernet frame, an MPLS (Multi-Protocol Label Switching) frame, and an RPR (Resilient Packet). Ring, flexible packet ring) Frames, IP packets, etc.
在所述第一步中, 用于传递时戳的 VC开销可以是已定义使用的 VC开 销 (如 H4、 Jl、 J2等) 、 或保留未使用的 VC开销, 也可以是通过复帧方 式组成的开销 (如 MFI ( Multi Frame Indicator )等)。 在使用复帧方式传递 时戳标识时, 恢复出来的时戳需要减去插入和解出时戳所需的复帧组成时 间。  In the first step, the VC overhead for transmitting the timestamp may be a defined VC overhead (such as H4, Jl, J2, etc.), or reserved unused VC overhead, or may be composed of a multiframe method. Overhead (such as MFI (Multi Frame Indicator), etc.). When the timestamp is passed using the multiframe mode, the recovered timestamp needs to be subtracted from the multiframe time required to insert and decompose the timestamp.
采用虚级联技术时, 数据净荷将被分拆, 组成 VCG, 经过两个或多个 路径在 SDH网络中传输。 因为这两个或多个路径的距离和其路径所包括的 网元数量均不可能相同, 故 VCG成员不可能同时到达终点; 宿端接收设备 必须补偿其时延差后再重组净荷。  When virtual concatenation technology is used, the data payload will be split and composed into VCGs, which are transmitted in SDH network through two or more paths. Because the distance between the two or more paths and the number of network elements included in the path are not the same, VCG members cannot reach the end point at the same time; the sink receiving device must compensate for the delay difference and then reassemble the payload.
应用实例: 如图 2所示的光传输网的组网示意图。 该组网为 SDH网络, 包括两个 SDH站点, 即站点 A和站点 B, 在站点 A和站点 B之间, 存在一条需要监 控的以太网业务。 从 A站点的以太网 FE ( Fast Ethernet )端口到 B站点的 FE端口, 采用一个虚容器 VC-4来承载该业务。 Applications: FIG. 2 is a schematic diagram of networking of an optical transmission network. The network is an SDH network, which includes two SDH sites, namely, Site A and Site B. There is an Ethernet service to be monitored between Site A and Site B. From the Ethernet FE (Fast Ethernet) port of Site A to the FE port of Site B, a virtual container VC-4 is used to carry the service.
在图 2所示的实例中, 采用 VC-4的 H4字节开销来传递时戳标记, 不 使用复帧结构, 假定时戳标识需要 8bits进行传递, 则可知 TSbits = 8bits, 由 TSmax < 2ATSbits - 1 , 可知时戳最大值 TSmax = 255 , 由 DMmax = TSmax*125us, 可知最大可测时延 DMmax = 255 x 125us = 31,875ms。 In the example shown in Figure 2, the H4 byte overhead of VC-4 is used to pass the timestamp flag, and the multiframe structure is not used. Assuming that the timestamp identifier needs to be transmitted by 8 bits, TSbits = 8bits, TSmax < 2 A TSbits - 1 , the timestamp maximum value TSmax = 255, from DMmax = TSmax * 125us, the maximum measurable delay DMmax = 255 x 125us = 31,875ms.
' 假定传递的数据包为以太网帧,在以太网帧中增加新开销字节以实现在 数据包中传递时戳标识, 当然, 在其它实例中也可以采用以太网帧中原保留 的开销字节来传递时戳标识。 时 #1标识的位置位于帧头, 通过新增类型域标 识该携带时戳的帧。所述新增的类型域是专门用来表示帧中是否携带时戳标 志的, 除了需要类型域表示本帧带时戳外, 还有一个真正承载时戳的开销, 测试时延用的,凡是要测试时延的包都需要增加新的开销或使用原有保留开 销。 只有加了时戳的数据包才能测试其时延, 没有加的包其时延就不可知。 本实施例中, 时戳标识只使用 8bits (如图 3 ) 。 '  ' Assume that the data packet passed is an Ethernet frame, and a new overhead byte is added to the Ethernet frame to implement the timestamp identifier in the data packet. Of course, in other instances, the original reserved overhead byte in the Ethernet frame can also be used. To pass the timestamp identifier. The location of the #1 identifier is located at the frame header, and the frame carrying the timestamp is identified by adding a type field. The newly added type field is specifically used to indicate whether the time stamp is carried in the frame. In addition to the type field indicating that the frame has a time stamp, there is also an overhead of actually carrying the time stamp, and the test delay is used. Packets that are to be tested for latency need to add new overhead or use the original retention overhead. Only time-stamped packets can be tested for their delay, and the delay without adding packets is unknown. In this embodiment, the timestamp identifier uses only 8bits (as shown in Figure 3). '
基于上面的 SDH组网及参数配置, 在图 2所示的实例中,  Based on the SDH networking and parameter configuration above, in the example shown in Figure 2,
首先, 需要在源端建立时戳, 可以采用一个源端计数器 Counter来产生 时戳标识, 源端定时持续向宿端通过 SDH网络发送 SDH帧, 发送时, 就在 每一个 SDH帧头处, 计数器 Counter加 1 , 即增加一个定时间隔,. A点每发 送一个 SDH帧, H4开销变化一次, 其传递的时戳值为计时器 Counter的当 前值  First, a timestamp needs to be established at the source end. A source counter can be used to generate the timestamp identifier. The source end timing continues to send the SDH frame to the sink through the SDH network. When transmitting, it is at the head of each SDH frame. Counter is incremented by 1, that is, a timing interval is added. For each SDH frame sent by point A, the H4 overhead changes once, and the time stamp value passed is the current value of the timer.
假定计数器初始值为 1 , 则发送第 100个帧时, 对应帧中的当前时戳标 识 TS=100, 所述定时间隔为帧长 125us。  Assuming that the initial value of the counter is 1, the current time stamp in the corresponding frame is TS=100 when the 100th frame is transmitted, and the timing interval is 125us.
在进行相对时延测量时,源端可以选择正常数据业务包以监测其时延状 况, 也可以发送利用专门的用于测量相对时延的数据包。在发送作为基准时 间的时戳标识过程中, 测量数据业务时延的处理流程如下:  When performing relative delay measurement, the source can select a normal data service packet to monitor its delay condition, or it can send a dedicated data packet for measuring relative delay. In the process of transmitting the time stamp identification as the reference time, the processing flow of measuring the data service delay is as follows:
步骤 1: 当 A点从 FE端口收到一个以太网帧后, 立即将 Counter当前 值(如本例: TS=100 )插入以太网帧中, 如图 3 所示, 采用新增开销的方 法, 在数据包加入了一个时戳(time stamp )开销, 用于携带当前时戳标识, 同时再新增一个类型的开销, 表示帧中携带有时戳标识。 此处, 都采用新增 开销的方式, 当然在其它实时方式中, 也可以利用原有保留的开销来携带时 戳标识或用于标识帧中携带有时戳; 在对以太网帧完成相关的交换、 GFP ( Generic framing procedure,通用帧处理程序)封装、映射等处理后,从 SDH 接口发出, 经 SDH网絡发送给作为宿端的 B点; Step 1: When Point A receives an Ethernet frame from the FE port, it immediately returns Counter. The value (such as this example: TS=100) is inserted into the Ethernet frame. As shown in Figure 3, the time stamp is added to the data packet to carry the current timestamp identifier. At the same time, a new type of overhead is added, indicating that the frame carries a time stamp identifier. In this case, the new overhead is used. In other real-time modes, the original reserved overhead can also be used to carry the timestamp identifier or to carry the time stamp in the identifier frame. After GFP (Generic framing procedure) encapsulation, mapping, etc., it is sent from the SDH interface and sent to the B point as the sink end via the SDH network;
步骤 2: B点利用其 SDH接口接收该 VC-4, 通过 GFP解封装恢复出以 太网帧, 进行相应处理后, 发送到 B点的 FE端口, 在由 FE端口输出时, 提取并剥离该以太网帧中携带的时戳标识, 由于该帧即为步骤 1 中 A点接 收的以太网帧, 因此, 提取得到包中携带的时戳标识 TS=100; 同时, B点 解出刻在 SDH接口上接收的 VC-4中 H4携带的时戳标 i。、 (如本例: 得到 TS=135 ) ;  Step 2: Point B receives the VC-4 through its SDH interface, and recovers the Ethernet frame through GFP decapsulation. After corresponding processing, it is sent to the FE port of point B. When output by the FE port, the Ethernet is extracted and stripped. The timestamp identifier carried in the network frame, since the frame is the Ethernet frame received at point A in step 1, the timestamp identifier TS=100 carried in the packet is extracted, and the point B is extracted and engraved on the SDH interface. The time stamp i carried by H4 in the received VC-4. (as in this example: get TS = 135);
步骤 3:用宿端从 VC-4中提取的 TS = 135减去从以太网帧中提取的 TS = 100, 可以得到 35, 表示该以太网帧相对于 SDH网络的额外时延为 35 x
Figure imgf000011_0001
Step 3: Subtract the TS = 100 extracted from the VC-4 by the sink to subtract TS = 100 from the Ethernet frame. You can get 35, indicating that the extra delay of the Ethernet frame relative to the SDH network is 35 x.
Figure imgf000011_0001
通过上面的 3 个步骤, 就可以测量出单个数据包相对于传输网絡的时 延。  Through the above three steps, you can measure the delay of a single packet relative to the transmission network.
如需要得到该以太网帧的完整时延, 只需要再加上 SDH网络的单向固 定时延即可。  If you need to get the full delay of the Ethernet frame, you only need to add the one-way fixed delay of the SDH network.
同时,本发明可在线实时无损的测量 SDH/SONET网络的数据业务相对 时延, 由于其可以提供单个数据包的相对时延数据, 因此可用于蓝控不同优 先级业务的时延变化情况, 方便用户进行比较, 并验证网络的 QoS保障情 况。 ' .  At the same time, the present invention can measure the relative delay of the data service of the SDH/SONET network in real time and without loss, and can provide the delay variation of the service of the different priority services of the blue control, which is convenient for the blue network to control the delay of the different priority services. The user compares and verifies the QoS guarantee of the network. ' .
进一步地, 时延数据由设备直接采集后可以在网管上显示, 测试过程对 于业务无损, 方便工程应用和测试。  Further, the delay data can be directly displayed on the network management device, and the test process is non-destructive to the business, facilitating engineering application and testing.
从上面可以看到通过这种方法达到了测试各个实际的数据包相对于 SDH/SONET网络单向时延的目的, 可以指示出实际业务各数据包的时延变 化情况, 有利于比较各优先级业务的实际时延。 工业实用性 It can be seen from the above that the purpose of testing each actual data packet relative to the one-way delay of the SDH/SONET network is achieved by this method, and the delay of each data packet of the actual service can be indicated. The situation is beneficial to compare the actual delay of each priority service. Industrial applicability
本发明所提供的一种在光传输网络中测量数据业务相对时延的方法,利 用传递时戳标识来实现数据业务的相对时延, 可在线实时无损的测量 SDH/SONET网络的数据业务相对时延, 由于其可以提供单个数据包的相对 时延数据, 因此可用于监控不同优先级业务的时延变化情况, 方便用户进行 比较, 并验证网络的 QoS保障情况。 时延数据由设备直接采集后可以在网 管上显示, 测试过程对于业务无损, 方便工程应用和测试。  The invention provides a method for measuring the relative delay of a data service in an optical transmission network, and uses the time stamp identification to realize the relative delay of the data service, and can measure the relative time of the data service of the SDH/SONET network in real time without loss. Delay, because it can provide relative delay data of a single data packet, it can be used to monitor the delay variation of different priority services, facilitate user comparison, and verify the QoS guarantee of the network. The delay data can be displayed on the network management device after being directly collected by the device. The test process is non-destructive to the business and convenient for engineering application and testing.

Claims

权 利 要 求 书 Claim
1、 一种光传输网络中测量数据业务相对时延的方法, 其特征在于, 源 端定时持续地向宿端发送承载于虚容器开销上的时戳标识,每次发送后源端 时戳标识增加一个定时间隔, 在进行相对时延测量时, 包括如下步驟:  A method for measuring a relative delay of a data service in an optical transmission network, characterized in that: the source end periodically sends a timestamp identifier carried on the virtual container overhead to the sink end, and the source end time stamp identifier is sent after each transmission. Add a timing interval. When performing relative delay measurement, include the following steps:
Sl、 源端收到数据包后, 立刻向所述数据包添加当前时戳标识, 进行相 关处理及封装后向宿端发送;  After receiving the data packet, the source end adds the current timestamp identifier to the data packet, performs related processing, and sends the packet to the sink end after being encapsulated;
S2、 宿端接收所述数据包后, 进行相关处理及解包封, 在输出时提取数 据包内时戳标识, 同时获取此时承载于虛容器开销上的时戳标识;  S2: After receiving the data packet, the sink performs related processing and decapsulation, extracts a timestamp identifier in the data packet at the time of output, and acquires a timestamp identifier that is carried on the virtual container overhead at this time;
识, 计算出数据包相对光传输网絡的相对时延。 Knowledge, calculate the relative delay of the data packet relative to the optical transport network.
2、 如权利要求 1所述的方法, 其特征在于, 所述源端具有一个时戳产 生装置, 以固定的计时间隔产生时戳标识, 源端定时持续发送时戳标识时, 每发送一次时戳标识增加一个计时间隔的计数。  2. The method according to claim 1, wherein the source end has a time stamp generating device that generates a time stamp identifier at a fixed timing interval, and each time the source end timing continuously transmits the time stamp identifier. The stamp identifies a count of a timed interval.
3、 如权利要求 2所述的方法, 其特征在于, 所述时戳产生装置是源端 的一个定时器, 该定时器在每个同步数字系列 SDH帧的帧头处加 1, 源端 每发送一次, 所述时戳标识的数值更新一次, 更新为定时器的当前计数值。  3. The method according to claim 2, wherein the time stamp generating means is a timer at the source end, the timer is incremented at the frame header of each synchronous digital series SDH frame, and the source end transmits each Once, the value of the timestamp identifier is updated once and updated to the current count value of the timer.
4、 如权利要求 1所述的方法, 其特征在于, 所述承载时戳标识的虚容 器开销是已定义使用的虛容器开销 H4、 或 Jl、 或 J2, 或者是保留未使用的 虚容器开销, 或者是通过复帧方式组成的开销。  4. The method according to claim 1, wherein the virtual container overhead of the bearer timestamp identifier is a defined virtual container overhead H4, or J1, or J2, or the unused virtual container overhead is reserved. , or the overhead of multiframe.
5、 如权利要求 1所迷的方法, 其特征在于, 步骤 S1 中, 向所述数据 包添加当前时戳标识的步驟,是将所述当前时戳标识加入原有数据包中的保 留字节、 或加入数据包中在任意位置额外增加的字节。  5. The method of claim 1, wherein in step S1, the step of adding a current timestamp identifier to the data packet is to add the current timestamp identifier to a reserved byte in an original data packet. , or add extra bytes in the packet anywhere.
6、 如权利要求 1所述的方法, 其特征在于, 步骤 S2中,.宿端在输出 时提取数据包内时戳标识的时刻,是在输出数择包第一个比特时, .或在输出 数据包最后一个比特时。  The method according to claim 1, wherein, in step S2, the time at which the sink end extracts the timestamp identifier in the data packet when outputting is when the first bit of the output packet is selected, or When the last bit of the packet is output.
7、 如权利要求 I所迷的方法, 其特征在于, 步骤 S2中获取虛容器开 销上的时戳标识步骤, 是在虛容器组 VCG的各个虛容器 VC成员对齐之前 或对齐之后进行, 如对齐之前进行,若时戳标识取各虚容器 VC成员中的时戳标识最小值, 步骤 S3中计算所得相对时延包含了虚容器组 VCG时延补偿时间,若时戳标 识取各 VC成员中的时戳标识最大值, 步骤 3计算所得相对时延未 '包含虚容 器组 VCG时延补偿时间; 7. The method of claim 1, wherein the step of identifying the time stamp on the virtual container overhead in step S2 is performed before or after the alignment of the virtual container VC members of the virtual container group VCG. If the timestamp identifier is the value of the timestamp identifier in the VC member of each virtual container, the relative delay calculated in step S3 includes the VCG delay compensation time of the virtual container group, and the time stamp identifier is taken as each VC member. The time stamp in the middle identifies the maximum value, and the calculated relative delay in step 3 does not include the virtual container group VCG delay compensation time;
如对齐之后进行, 该时戳标识取任意虚容器 VC成员中的时戳标识, 步 骤 3计算所得相对时延未包含虚容器组 VCG时延补偿时间。  If the alignment is performed, the timestamp identifier takes the timestamp identifier in the VC member of any virtual container, and the relative delay calculated in step 3 does not include the virtual container group VCG delay compensation time.
8、 如权利要求 1所述的方法, 其特征在于, 步骤 S3中计算相对时延 时, 如果从虚容器开销上所得时戳标识作为被减数, 小于作为减数的从宿端 数据包获得的时戳标识, 则被减数应使用补码, 或将所得负值结果与最大时 戳标识计数值相加。  8. The method according to claim 1, wherein the relative time delay is calculated in step S3, if the time stamp identifier obtained from the virtual container overhead is subtracted, less than the slave data packet obtained as the subtraction number. For the timestamp identifier, the subtraction should use the complement, or add the resulting negative result to the maximum timestamp identifier count value.
9、 如权利要求 1所述的方法, 其特征在于, 所述时戳标识在被传递时 所需比特数 TSbits是由时戳标识最大值 TSmax决定, 两者满足 TSmax < 2ATSbits - 1 ,对应时戳标识最大值 TSmax的最大相对时延 DMmax = TSmax χ计时间隔。 The method according to claim 1, wherein the number of bits required to be transmitted when the time stamp is transmitted is determined by a time stamp identification maximum value TSmax, and both satisfy TSmax < 2 A TSbits - 1 . Corresponding time stamp identification maximum value TSmax maximum relative delay DMmax = TSmax χ timing interval.
10、 如权利要求 1所述的方法,其特征在于, 所述数据包是任意具有分 组结构的数据包, 所述数据包类型包括 ATM信元、 或以太网帧、 或多协议 标记交换 MPLS帧、 或弹性分组环 RPR帧、 或 IP包。  10. The method according to claim 1, wherein the data packet is any data packet having a packet structure, and the data packet type comprises an ATM cell, or an Ethernet frame, or a multi-protocol label switching MPLS frame. , or resilient packet ring RPR frames, or IP packets.
PCT/CN2006/003824 2006-12-31 2006-12-31 A method for measuring relative time delay of data service in optical transmitting network WO2008080263A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2006/003824 WO2008080263A1 (en) 2006-12-31 2006-12-31 A method for measuring relative time delay of data service in optical transmitting network
CN2006800517793A CN101336520B (en) 2006-12-31 2006-12-31 A method for measuring relative time delay of data service in optical transmitting network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2006/003824 WO2008080263A1 (en) 2006-12-31 2006-12-31 A method for measuring relative time delay of data service in optical transmitting network

Publications (1)

Publication Number Publication Date
WO2008080263A1 true WO2008080263A1 (en) 2008-07-10

Family

ID=39588115

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2006/003824 WO2008080263A1 (en) 2006-12-31 2006-12-31 A method for measuring relative time delay of data service in optical transmitting network

Country Status (2)

Country Link
CN (1) CN101336520B (en)
WO (1) WO2008080263A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102984030A (en) * 2012-12-06 2013-03-20 盛科网络(苏州)有限公司 Chip-level method and device for realizing Ethernet OAM frame delay measurement
WO2017193308A1 (en) * 2016-05-11 2017-11-16 广东欧珀移动通信有限公司 Communication method and communication device
WO2022174672A1 (en) * 2021-02-19 2022-08-25 中兴通讯股份有限公司 Delay measurement method and apparatus, device, and computer readable storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101729240B (en) * 2009-11-13 2012-10-10 北京中创信测科技股份有限公司 Method and device for realizing time synchronization

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004165975A (en) * 2002-11-13 2004-06-10 Nec Saitama Ltd Radio base station apparatus and search window correction method
CN1614939A (en) * 2003-11-06 2005-05-11 华为技术有限公司 Realizing method for time-delaying test
CN1698295A (en) * 2003-01-30 2005-11-16 三星电子株式会社 Apparatus and method for measuring and compensating delay between main base station and remote base station interconnected by an optical cable

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE602005026482D1 (en) * 2004-06-14 2011-04-07 Broadcom Corp Compensation and measurement of the differential delay in bound systems

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004165975A (en) * 2002-11-13 2004-06-10 Nec Saitama Ltd Radio base station apparatus and search window correction method
CN1698295A (en) * 2003-01-30 2005-11-16 三星电子株式会社 Apparatus and method for measuring and compensating delay between main base station and remote base station interconnected by an optical cable
CN1614939A (en) * 2003-11-06 2005-05-11 华为技术有限公司 Realizing method for time-delaying test

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102984030A (en) * 2012-12-06 2013-03-20 盛科网络(苏州)有限公司 Chip-level method and device for realizing Ethernet OAM frame delay measurement
WO2017193308A1 (en) * 2016-05-11 2017-11-16 广东欧珀移动通信有限公司 Communication method and communication device
US10931555B2 (en) 2016-05-11 2021-02-23 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Communication method and communication device for acquiring latency
WO2022174672A1 (en) * 2021-02-19 2022-08-25 中兴通讯股份有限公司 Delay measurement method and apparatus, device, and computer readable storage medium

Also Published As

Publication number Publication date
CN101336520A (en) 2008-12-31
CN101336520B (en) 2011-11-23

Similar Documents

Publication Publication Date Title
KR101443237B1 (en) Measurement on a data flow in a communication network
KR101597255B1 (en) Performing a time measurement in a communication network
US8023505B2 (en) Circuit emulation service method and telecommunication system for implementing the method
WO2012062089A1 (en) A method for realizing time and clock synchronization and a transmission device thereof
US20030021287A1 (en) Communicating data between TDM and packet based networks
US20070097865A1 (en) Method for measuring end-to-end delay in asynchronous packet transfer network, and asynchronous packet transmitter and receiver
WO2020173175A1 (en) Timestamp correction method and system, clock synchronization method and system
WO2006102840A1 (en) A method for monitoring the packet loss rate
WO2019071598A1 (en) Method and device for transmitting and receiving clock synchronization message
WO2007095801A1 (en) A method, apparatus, and system for measuring the network performance
CN106330579B (en) Packet loss statistical method and device for PTN (packet transport network) equipment
JP5597765B2 (en) Method, apparatus and system for transmitting SDH / SONET section overhead bytes
US20140369218A1 (en) Measurement on a data flow in a communication network
EP2068471A1 (en) Method for emulating digital trunk TDM services over synchronous ethernet packets
Vainshtein et al. Structure-agnostic time division multiplexing (TDM) over packet (SAToP)
CA2377093C (en) Method, equipment and system for signaling in a network including ethernet
WO2008080263A1 (en) A method for measuring relative time delay of data service in optical transmitting network
EP3432493B1 (en) Method, device and system for data processing in ethernet
EP3513529B1 (en) Performance measurement in a packet-switched communication network
KR101492747B1 (en) Method for time distribution in synchronous ethernet and sonet/sdh domains
Vainshtein et al. Structure-aware time division multiplexed (TDM) circuit emulation service over packet switched network (CESoPSN)
WO2014013303A1 (en) Network service testing
Cisco Multichannel STM-1 Port Adapter
JP2002176408A (en) Multi-frame multiplex transmission device
JP2013012868A (en) Network control system and network control method

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 200680051779.3

Country of ref document: CN

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 06840854

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 06840854

Country of ref document: EP

Kind code of ref document: A1