CN112636825A - Method, device and system for measuring time delay in optical transport network - Google Patents

Method, device and system for measuring time delay in optical transport network Download PDF

Info

Publication number
CN112636825A
CN112636825A CN202011586630.3A CN202011586630A CN112636825A CN 112636825 A CN112636825 A CN 112636825A CN 202011586630 A CN202011586630 A CN 202011586630A CN 112636825 A CN112636825 A CN 112636825A
Authority
CN
China
Prior art keywords
counter
loopback
value
sending
count value
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.)
Pending
Application number
CN202011586630.3A
Other languages
Chinese (zh)
Inventor
陈江峰
刘春艳
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.)
Gw Delight Technology Co ltd
Beijing Gw Technologies Co ltd
Original Assignee
Gw Delight Technology Co ltd
Beijing Gw Technologies Co ltd
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 Gw Delight Technology Co ltd, Beijing Gw Technologies Co ltd filed Critical Gw Delight Technology Co ltd
Priority to CN202011586630.3A priority Critical patent/CN112636825A/en
Publication of CN112636825A publication Critical patent/CN112636825A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/07Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems
    • H04B10/075Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal
    • H04B10/079Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal using measurements of the data signal
    • H04B10/0793Network aspects, e.g. central monitoring of transmission parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q2011/0079Operation or maintenance aspects
    • H04Q2011/0083Testing; Monitoring

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application provides a method, a device and a system for measuring time delay in an optical transport network, wherein the method comprises the following steps: the sending end sends the measured value and starts a first counter to count; when the loopback end receives the measured value, a second counter is started to count; when the measured value is sent back to the sending end, stopping counting of the second counter, and sending the count value of the second counter to the sending end; when the transmitting end receives the measured value returned by the loopback end, stopping counting of the first counter; and when the count value of the second counter returned by the loopback end is received, calculating the count value of the second counter and the count value of the first counter to calculate the service time delay between the sending end and the loopback end. The method can improve the accuracy of measuring the service time delay in the OTN network.

Description

Method, device and system for measuring time delay in optical transport network
Technical Field
The present invention relates to the field of data communication technologies, and in particular, to a method, an apparatus, and a system for measuring delay in an optical transport network.
Background
An Optical Transport Network (OTN) has the characteristics of large bandwidth, low time delay, multi-service transparent transmission, high-precision synchronization, safety, reliability, easy maintenance and the like, and is a mainstream technology of the current Transport Network. The transmission delay index is one of the key indexes of the transmission network, and the end-to-end delay index is an important index for verifying the Service Level (SLA) between the user and the operator, so that the transmission network needs to have the measurement function of delay, and the rapid acquisition of high-precision transmission delay data is very important.
The characteristic of delay measurement is introduced into the updated standard of ITU-T G.709/Y.1331, and the delay of an end-to-end optical channel data unit k (ODUk) or any serial connection monitoring i (TCMi) can be measured by defining a new overhead byte method, which is called as the standard delay measurement means of OTN.
In order to provide a delay performance index for a service, the g.709/y.1331 specification specifies that a sink needs to loop a received signal within 100us, and in addition, since the bit position is fixed in an ODUk, an error of 1 ODU frame period at maximum is brought due to the influence of a frame period at the loop-back end, taking ODU0 as an example, the period of the ODU0 is about 98.354us, so that for the test of ODU0, an error of 200us is introduced at maximum at the loop-back end, and the test accuracy is relatively low.
Disclosure of Invention
In view of this, the present application provides a method, an apparatus, and a system for measuring delay in an optical transport network, which can improve the accuracy of measuring service delay in an OTN network.
In order to solve the technical problem, the technical scheme of the application is realized as follows:
in one embodiment, there is provided a method for measuring delay in an optical transport network, the method comprising:
the sending end sends the measured value and starts a first counter to count;
when the loopback end receives the measured value, a second counter is started to count;
when the loopback end sends the measured value back to the sending end, stopping counting of the second counter and sending the count value of the second counter to the sending end;
when the sending end receives the measured value returned by the loopback end, stopping counting of the first counter;
and when the sending end receives the count value of the second counter returned by the loopback end, calculating the count value of the second counter and the count value of the first counter and calculating the service time delay between the sending end and the loopback end.
In another embodiment, a method for measuring delay in an optical transport network is provided, which is applied to a transmitting end, and the method includes:
sending a measured value, and starting a second counter to count when a loopback end receives the measured value; stopping counting of the second counter and returning a count value of the second counter when returning the measurement value; starting a first counter to count;
stopping counting of the first counter when the measured value returned by the loopback end is received;
and when the count value of the second counter returned by the loopback end is received, calculating the count value of the second counter and the count value of the first counter to calculate the service time delay between the sending end and the loopback end.
In another embodiment, there is provided a delay measuring apparatus in an optical transport network, applied to a transmitting end, the apparatus including: the device comprises a sending unit, a counting unit, a receiving unit and a calculating unit;
the sending unit is used for sending the measured value, so that the loopback end starts a second counter to count when receiving the measured value; stopping counting of the second counter and returning a count value of the second counter when returning the measurement value;
the counting unit is used for starting a first counter to count when the sending unit sends the measured value; when the receiving unit receives the measured value returned by the loopback end, stopping counting of the first counter;
the receiving unit is used for receiving the measurement value returned by the loopback end; receiving a count value of a second counter sent by the loopback end;
the calculating unit is configured to calculate a count value of the second counter and a count value of the first counter obtained by the counting unit to calculate a service delay between the sending end and the loopback end when the receiving unit receives the count value of the second counter returned by the loopback end.
In another embodiment, there is provided a delay measurement system in an optical transport network, the system comprising: a sending end and a loopback end;
the transmitting end is used for starting the first counter to count when transmitting the measured value; stopping counting of the first counter when the measured value returned by the loopback end is received; when the count value of a second counter returned by the loopback end is received, calculating the count value of the second counter and the count value of the first counter and calculating the service time delay between the sending end and the loopback end;
the loopback end is used for starting a second counter to count when the measured value is received; and when the measured value is returned to the sending end, stopping counting of the second counter, and sending the count value of the second counter to the sending end.
In another embodiment, an electronic device is provided, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method for delay measurement in an optical transport network when executing the program.
In another embodiment, a computer readable storage medium is provided, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method for delay measurement in an optical transport network.
It can be seen from the above technical solution that, in the above embodiment, by adding a counter to the loopback end, recording a count value between the reception of the measurement value and the loopback measurement value by the loopback end, and sending the count value to the sending end, the sending end calculates the service delay between the sending end and the loopback end according to the count value recorded by the local timer and the received count value sent by the loopback end, and can improve the accuracy of measuring the service delay in the OTN network.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive labor.
Fig. 1 is a schematic diagram illustrating a delay measurement process in an optical transport network according to an embodiment of the present application;
fig. 2 is a schematic diagram illustrating a delay measurement process in an optical transport network according to a second embodiment of the present application;
fig. 3 is a schematic diagram of a delay measurement process in an optical transport network according to a third embodiment of the present application;
FIG. 4 is a schematic diagram of a delay measurement system in an optical transmission network according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a delay measuring device in an optical transport network according to an embodiment of the present application;
fig. 6 is a schematic physical structure diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are, for example, capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprising" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements explicitly listed, but may include other steps or elements not explicitly listed or inherent to such process, method, article, or apparatus.
The technical solution of the present invention will be described in detail with specific examples. Several of the following embodiments may be combined with each other and some details of the same or similar concepts or processes may not be repeated in some embodiments.
The embodiment of the application provides a method for measuring delay in an optical transport network, which includes adding a counter at a loopback end, recording a count value between a measured value received by the loopback end and a loopback measured value, and sending the count value to a sending end, so that the sending end calculates service delay between the sending end and the loopback end according to the count value recorded by a local timer and the received count value sent by the loopback end, and the accuracy of measuring the service delay in an OTN network can be improved.
In the embodiment of the application, a source end mode and a sink end mode are used at a sending end and a loopback end, the sending end is used as the source end, the loopback end is used as the sink end, and an intermediate network element is in a transparent transmission mode; and uses the definition of the delay measurement overhead of the OTN. In the g.709/y.1331 specification, for latency measurement overhead, 1 bit is transmitted per ODUk frame period.
Example one
Referring to fig. 1, fig. 1 is a schematic diagram illustrating a delay measurement process in an optical transport network according to an embodiment of the present application. The method comprises the following specific steps:
step 101, the transmitting end sends the measured value and starts a first counter to count.
And 102, starting a second counter to count when the loopback end receives the measured value.
And 103, when the loopback end sends the measured value back to the sending end, stopping counting of the second counter, and sending the count value of the second counter to the sending end.
And 104, stopping counting of the first counter when the transmitting end receives the measurement value returned by the loopback end.
And 105, when the sending end receives the count value of the second counter returned by the loopback end, calculating the count value of the second counter and the count value of the first counter and calculating the service time delay between the sending end and the loopback end.
In this embodiment, calculating the count value of the second counter and the count value of the first counter to calculate the service delay between the sending end and the loopback end includes:
calculating the service time delay between the sending end and the loopback end according to the following formula:
C1×t1–C2×t2;
where C1 is the count value of the first counter, and t1 is the time represented by each count value of the first counter; c2 is the count value of the second counter, and t2 is the time represented by each count value of the second counter.
During the implementation, the loopback end sends the count value of the second counter to the sending end, and at this time, the time represented by each count value of the second counter needs to be set at the sending end;
in specific implementation, the time delay C2 × t2 may be calculated at the loopback end, and the time delay may be directly sent to the transmitting end.
In the embodiment of the application, a counter is implemented as an example, the change of the existing implementation is less, and a timer can be used to replace the counter, so that the implementation mode is that the time delay from sending the measured value to receiving the measured value is directly obtained at the sending end, and the time delay from receiving the measured value to returning the measured value is directly obtained at the loopback end.
The service delay from the sending end to the loopback end is the sum of the delays from the sending end to the loopback end and from the loopback end to the sending end.
In the embodiment of the application, the counter is added at the loopback end, the count value between the measured value received by the loopback end and the loopback measured value is recorded, and the count value is sent to the sending end, so that the sending end calculates the service time delay between the sending end and the loopback end according to the count value recorded by the local timer and the received count value sent by the loopback end, and the accuracy of measuring the service time delay in the OTN can be improved.
Example two
Referring to fig. 2, fig. 2 is a schematic diagram of a delay measurement process in an optical transport network according to a second embodiment of the present application. The method comprises the following specific steps:
in step 201, the transmitting end transmits a specified value.
A specified value, such as 0 or 1, is sent until the measurement is started, where the specified value is not limiting.
Step 202, when the sending end initiates measurement, the specified value is inverted to be used as a measurement value, and a first counter is started to count.
When the measurement is actually started, the specified value is inverted, and if the specified value is 0, 1 is used as the measurement value for transmission.
And the transmitting end sends the measured value all the time in the following process, and if the operation is not carried out, the loopback end can be executed only when the sequence value changes for the first time and is not executed any more when the sequence value changes.
And starting a first counter to count at the same time of transmitting the measured value.
Step 203, the loopback end receives the sequence value sent by the sending end, and when the received sequence value is determined to be changed, the second counter is started to count when the measured value is determined to be received.
The loopback end always receives the sequence value sent by the sending end, when the received sequence value is determined to be changed, if the received sequence value is always the designated value 0, when the received sequence value is 1, the measured value is determined to be received, and at the moment, the second counter is started to count.
And 204, when the loopback end sends the measured value back to the sending end, stopping counting of the second counter, and sending the count value of the second counter to the sending end.
Due to the influence of the frame period, the loopback terminal cannot loopback the measurement value without time delay when the measurement value is received, and the loopback of the measurement value can not be carried out until the corresponding frame period.
In this embodiment of the present application, when the count value of the second counter is sent to the sending end, the count value of the second counter is sent to the sending end in serial within N consecutive ODUk frame periods, where N is the number of bits of the second counter.
If the second counter is a 32-bit counter, then N is 32.
In this embodiment of the application, in order to enable the sending end to determine the count value of the second counter sent by the loopback end, the sending end and the loopback end need to agree to set a frame period interval between the loopback measurement value and the count value of the second counter.
The loopback terminal waits for the frame period interval to send the count value of the second counter after the measured value is looped back;
step 205, the sending end receives the sequence value returned by the loopback end, and when it is determined that the received sequence value changes, it is determined that the measured value returned by the loopback end is received, and the counting of the first counter is stopped.
And the sending end always receives the sequence value returned by the loopback end, when the received sequence value is determined to be changed, if the always received sequence value is the designated value 0, when the always received sequence value is received 1, the sending end determines to receive the measured value, and at the moment, the counting of the first counter is stopped.
And after receiving the measured value, the receiving end waits for the frame period interval to receive the count value of the second counter.
The frame period interval set here may be 0, or may be an integer greater than 0, which is not limited in the embodiment of the present application.
Step 206, when the sending end receives the count value of the second counter returned by the loopback end, the sending end calculates the count value of the second counter and the count value of the first counter and calculates the service time delay between the sending end and the loopback end.
In this embodiment, calculating the count value of the second counter and the count value of the first counter to calculate the service delay between the sending end and the loopback end includes:
calculating the service time delay between the sending end and the loopback end according to the following formula:
C1×t1–C2×t2;
where C1 is the count value of the first counter, and t1 is the time represented by each count value of the first counter; c2 is the count value of the second counter, and t2 is the time represented by each count value of the second counter.
During the implementation, the loopback end sends the count value of the second counter to the sending end, and at this time, the time represented by each count value of the second counter needs to be set at the sending end;
in specific implementation, the time delay C2 × t2 may be calculated at the loopback end, and the time delay may be directly sent to the transmitting end.
In the embodiment of the application, a counter is implemented as an example, the change of the existing implementation is less, and a timer can be used to replace the counter, so that the implementation mode is that the time delay from sending the measured value to receiving the measured value is directly obtained at the sending end, and the time delay from receiving the measured value to returning the measured value is directly obtained at the loopback end.
The service delay from the sending end to the loopback end is the sum of the delays from the sending end to the loopback end and from the loopback end to the sending end.
In the embodiment of the application, the counter is added at the loopback end, the count value between the measured value received by the loopback end and the loopback measured value is recorded, and the count value is sent to the sending end, so that the sending end calculates the service time delay between the sending end and the loopback end according to the count value recorded by the local timer and the received count value sent by the loopback end, and the accuracy of measuring the service time delay in the OTN can be improved.
EXAMPLE III
Referring to fig. 3, fig. 3 is a schematic diagram of a delay measurement process in an optical transport network according to a third embodiment of the present application. The method comprises the following specific steps:
step 301, sending a measurement value to enable a loopback end to start a second counter to count when receiving the measurement value; stopping counting of the second counter and returning a count value of the second counter when returning the measurement value; and starts the first counter to count.
The present embodiment transmits the specified value before transmitting the measured value; and when the measurement is started, sending a measurement value, wherein the measurement value is the value obtained by inverting the specified value.
How to determine that the loopback end receives the measurement value is specifically realized as follows:
when the loopback end determines that the received sequence value changes, the measured value is determined to be received;
the loopback terminal sends the count value of the second counter to the sending terminal, and the method comprises the following steps:
and in consecutive N ODUk frame periods, sending the count of the second counter to the sending end in series, where N is the number of bits of the second counter.
The loopback terminal designates a frame period interval between loopback measurement values and a count value of a second counter, and is used for waiting for the time corresponding to the frame period interval to loop back the count value of the second counter after loopback the measurement values.
Step 302, when the measured value returned by the loopback end is received, stopping counting of the first counter.
How to determine that the sending end receives the measurement value returned by the loopback end is specifically realized as follows:
and when the transmitting end determines that the received sequence value changes, the transmitting end determines to receive the measured value returned by the loopback end.
And the sending end designates a frame period interval between the loopback measurement value and the count value of the second counter, and is used for waiting for the time corresponding to the frame period interval to receive the count value of the second counter after receiving the measurement value.
Step 303, when receiving the count value of the second counter returned by the loopback end, calculating the count value of the second counter and the count value of the first counter, and calculating the service delay between the sending end and the loopback end.
In this embodiment, calculating the count value of the second counter and the count value of the first counter to calculate the service delay between the sending end and the loopback end includes:
calculating the service time delay between the sending end and the loopback end according to the following formula:
C1×t1–C2×t2;
where C1 is the count value of the first counter, and t1 is the time represented by each count value of the first counter; c2 is the count value of the second counter, and t2 is the time represented by each count value of the second counter.
During the implementation, the loopback end sends the count value of the second counter to the sending end, and at this time, the time represented by each count value of the second counter needs to be set at the sending end;
in specific implementation, the time delay C2 × t2 may be calculated at the loopback end, and the time delay may be directly sent to the transmitting end.
In the embodiment of the application, a counter is implemented as an example, the change of the existing implementation is less, and a timer can be used to replace the counter, so that the implementation mode is that the time delay from sending the measured value to receiving the measured value is directly obtained at the sending end, and the time delay from receiving the measured value to returning the measured value is directly obtained at the loopback end.
The service delay from the sending end to the loopback end is the sum of the delays from the sending end to the loopback end and from the loopback end to the sending end.
The foregoing embodiment takes the sending end as an example, and provides a process for implementing delay measurement in an optical transport network. In a specific implementation, a device in the optical transport network may be used as both a sending end and a loopback end, or only as the sending end or the loopback end.
The following provides the implementation process when the device in the optical transport network serves as two roles, namely the sending end and the loopback end:
the device is used as a sending end, sends a measured value and starts a first counter to count;
the equipment is used as a loopback end, and when a measured value sent by a sending end is received, a second counter is started to count; stopping counting of the second counter and returning a count value of the second counter when returning the measurement value;
the equipment serves as a sending end, and stops counting of the first counter when receiving the measured value returned by the loopback end; and when the count value of a second counter returned by the loopback end is received, calculating the count value of the second counter and the count value of the first counter to calculate the service time delay between the sending end and the loopback end.
In the embodiment of the application, the counter is added at the loopback end, the count value between the measured value received by the loopback end and the loopback measured value is recorded, and the count value is sent to the sending end, so that the sending end calculates the service time delay between the sending end and the loopback end according to the count value recorded by the local timer and the received count value sent by the loopback end, and the accuracy of measuring the service time delay in the OTN can be improved.
Based on the same inventive concept, the embodiment of the application also provides a delay measurement system in the optical transport network. Referring to fig. 4, fig. 4 is a schematic diagram of a delay measurement system in an optical transmission network according to an embodiment of the present application. The system comprises: a sending end and a loopback end;
the transmitting end is used for starting the first counter to count when transmitting the measured value; stopping counting of the first counter when the measured value returned by the loopback end is received; when the count value of a second counter returned by the loopback end is received, calculating the count value of the second counter and the count value of the first counter and calculating the service time delay between the sending end and the loopback end;
the loopback end is used for starting a second counter to count when the measured value is received; and when the measured value is returned to the sending end, stopping counting of the second counter, and sending the count value of the second counter to the sending end.
Preferably, the first and second electrodes are formed of a metal,
before the sending end sends the measured value, sending a specified value; wherein the measured value is a value after the specified value is inverted; when the received sequence value is determined to be changed, the measured value returned by the loopback end is determined to be received;
when the loopback end determines that the received sequence value changes, the measured value is determined to be received;
preferably, the first and second electrodes are formed of a metal,
the loopback end specifically sends the count value of the second counter to the sending end in a serial manner within N consecutive ODUk frame periods when the count value of the second counter is sent to the sending end, where N is the number of bits of the second counter.
Preferably, the first and second electrodes are formed of a metal,
the loopback terminal is used for appointing a frame period interval between loopback measurement values and a count value of a second counter, and is used for waiting for loopback of the count value of the second counter at a time corresponding to the frame period interval after loopback of the measurement values;
the sending end is configured to designate a frame period interval between a loopback measurement value and a count value of a second counter, and wait for a time corresponding to the frame period interval to receive the count value of the second counter after receiving the measurement value.
Preferably, the first and second electrodes are formed of a metal,
the method for calculating the count value of the second counter and the count value of the first counter by the sending end to calculate the service time delay between the sending end and the loopback end comprises the following steps:
calculating the service time delay between the sending end and the loopback end according to the following formula:
C1×t1–C2×t2;
where C1 is the count value of the first counter, and t1 is the time represented by each count value of the first counter; c2 is the count value of the second counter, and t2 is the time represented by each count value of the second counter.
Based on the same inventive concept, the embodiment of the application also provides a delay measuring device in the optical transport network. Referring to fig. 5, fig. 5 is a schematic structural diagram of a delay measuring device in an optical transport network according to an embodiment of the present application. The device comprises: a transmitting unit 501, a counting unit 502, a receiving unit 503, and a calculating unit 504;
a sending unit 501, configured to send a measurement value, so that when the loopback end receives the measurement value, the second counter is started to count; stopping counting of the second counter and returning a count value of the second counter when returning the measurement value;
a counting unit 502, configured to start the first counter to count when the sending unit 501 sends the measurement value; when the receiving unit 503 receives the measured value sent back by the loopback end, stopping counting by the first counter;
a receiving unit 503, configured to receive the measurement value sent back by the loopback end; receiving a count value of a second counter sent by the loopback end;
a calculating unit 504, configured to calculate, when the receiving unit 503 receives the count value of the second counter returned by the loopback terminal, the count value of the second counter and the count value of the first counter obtained by the counting unit 502 to calculate the service delay between the sending end and the loopback terminal.
Preferably, the first and second electrodes are formed of a metal,
the calculating unit 504 is specifically configured to calculate the service delay between the sending end and the loopback end according to the following formula: c1 × t 1-C2 × t 2; where C1 is the count value of the first counter, and t1 is the time represented by each count value of the first counter; c2 is the count value of the second counter, and t2 is the time represented by each count value of the second counter.
The units of the above embodiments may be integrated into one body, or may be separately deployed; may be combined into one unit or further divided into a plurality of sub-units.
In another embodiment, an electronic device is also provided, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and the processor executes the program to implement the steps of the delay measuring apparatus method in the optical transport network.
In another embodiment, a computer readable storage medium is also provided, having stored thereon computer instructions, which when executed by a processor, implement the steps in the delay measuring device method in the optical transport network.
In the embodiment of the present application, the implementation of delay measurement in an optical transport network may also be implemented on a chip through circuit integration.
Fig. 6 is a schematic physical structure diagram of an electronic device according to an embodiment of the present invention. As shown in fig. 6, the electronic device may include: a Processor (Processor)610, a communication interface (communication interface)620, a Memory (Memory)630 and a communication bus 640, wherein the Processor 610, the communication interface 620 and the Memory 630 complete communication with each other through the communication bus 640. The processor 610 may call logic instructions in the memory 630 to perform the following method:
sending a measured value, and starting a second counter to count when a loopback end receives the measured value; stopping counting of the second counter and returning a count value of the second counter when returning the measurement value; starting a first counter to count;
stopping counting of the first counter when the measured value returned by the loopback end is received;
and when the count value of the second counter returned by the loopback end is received, calculating the count value of the second counter and the count value of the first counter to calculate the service time delay between the sending end and the loopback end.
In addition, the logic instructions in the memory 630 may be implemented in software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (10)

1. A method for measuring delay in an optical transport network, the method comprising:
the sending end sends the measured value and starts a first counter to count;
when the loopback end receives the measured value, a second counter is started to count;
when the loopback end sends the measured value back to the sending end, stopping counting of the second counter and sending the count value of the second counter to the sending end;
when the sending end receives the measured value returned by the loopback end, stopping counting of the first counter;
and when the sending end receives the count value of the second counter returned by the loopback end, calculating the count value of the second counter and the count value of the first counter and calculating the service time delay between the sending end and the loopback end.
2. The method of claim 1, further comprising:
before the sending end sends the measured value, sending a specified value; wherein the measured value is a value after the specified value is inverted;
the loopback end receives the measurement value and comprises:
when the loopback end determines that the received sequence value changes, the measured value is determined to be received;
the receiving, by the sending end, the measurement value returned by the loopback end includes:
and when the sending end determines that the received sequence value changes, the sending end determines to receive the measured value returned by the loopback end.
3. The method of claim 1, wherein the sending the count value of the second counter to the sender comprises:
and in consecutive N ODUk frame periods, sending the count of the second counter to the sending end in series, where N is the number of bits of the second counter.
4. The method of claim 1, further comprising:
the loopback terminal designates a frame period interval between loopback measurement values and a count value of a second counter, and is used for waiting for the time corresponding to the frame period interval to loop back the count value of the second counter after loopback the measurement values;
and the sending end appoints a frame period interval between the loopback measurement value and the count value of a second counter, and is used for waiting for the time corresponding to the frame period interval to receive the count value of the second counter after receiving the measurement value.
5. The method according to any one of claims 1 to 4, wherein the calculating the count value of the second counter and the count value of the first counter to calculate the traffic delay between the sending end and the loopback end comprises:
calculating the service time delay between the sending end and the loopback end according to the following formula:
C1×t1–C2×t2;
where C1 is the count value of the first counter, and t1 is the time represented by each count value of the first counter; c2 is the count value of the second counter, and t2 is the time represented by each count value of the second counter.
6. A method for measuring delay in an optical transport network is applied to a transmitting end, and the method comprises the following steps:
sending a measured value, and starting a second counter to count when a loopback end receives the measured value; stopping counting of the second counter and returning a count value of the second counter when returning the measurement value; starting a first counter to count;
stopping counting of the first counter when the measured value returned by the loopback end is received;
and when the count value of the second counter returned by the loopback end is received, calculating the count value of the second counter and the count value of the first counter to calculate the service time delay between the sending end and the loopback end.
7. A delay measuring apparatus in an optical transport network, applied to a transmitting end, the apparatus comprising: the device comprises a sending unit, a counting unit, a receiving unit and a calculating unit;
the sending unit is used for sending the measured value, so that the loopback end starts a second counter to count when receiving the measured value; stopping counting of the second counter and returning a count value of the second counter when returning the measurement value;
the counting unit is used for starting a first counter to count when the sending unit sends the measured value; when the receiving unit receives the measured value returned by the loopback end, stopping counting of the first counter;
the receiving unit is used for receiving the measurement value returned by the loopback end; receiving a count value of a second counter sent by the loopback end;
the calculating unit is configured to calculate a count value of the second counter and a count value of the first counter obtained by the counting unit to calculate a service delay between the sending end and the loopback end when the receiving unit receives the count value of the second counter returned by the loopback end.
8. A delay measurement system in an optical transport network, the system comprising: a sending end and a loopback end;
the transmitting end is used for starting the first counter to count when transmitting the measured value; stopping counting of the first counter when the measured value returned by the loopback end is received; when the count value of a second counter returned by the loopback end is received, calculating the count value of the second counter and the count value of the first counter and calculating the service time delay between the sending end and the loopback end;
the loopback end is used for starting a second counter to count when the measured value is received; and when the measured value is returned to the sending end, stopping counting of the second counter, and sending the count value of the second counter to the sending end.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method according to claim 6 when executing the program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method of claim 6.
CN202011586630.3A 2020-12-29 2020-12-29 Method, device and system for measuring time delay in optical transport network Pending CN112636825A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011586630.3A CN112636825A (en) 2020-12-29 2020-12-29 Method, device and system for measuring time delay in optical transport network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011586630.3A CN112636825A (en) 2020-12-29 2020-12-29 Method, device and system for measuring time delay in optical transport network

Publications (1)

Publication Number Publication Date
CN112636825A true CN112636825A (en) 2021-04-09

Family

ID=75286204

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011586630.3A Pending CN112636825A (en) 2020-12-29 2020-12-29 Method, device and system for measuring time delay in optical transport network

Country Status (1)

Country Link
CN (1) CN112636825A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114513196A (en) * 2022-01-17 2022-05-17 烽火通信科技股份有限公司 Time delay compensation value calculation method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005244597A (en) * 2004-02-26 2005-09-08 Nec Saitama Ltd Mobile radio communication system
CN103441795A (en) * 2013-08-29 2013-12-11 成都泰富通信有限公司 Online monitoring method for optical fiber transmission delay in optical communication network
CN103684908A (en) * 2013-11-29 2014-03-26 华为技术有限公司 Delay measuring method, delay measuring device and delay measuring system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005244597A (en) * 2004-02-26 2005-09-08 Nec Saitama Ltd Mobile radio communication system
CN103441795A (en) * 2013-08-29 2013-12-11 成都泰富通信有限公司 Online monitoring method for optical fiber transmission delay in optical communication network
CN103684908A (en) * 2013-11-29 2014-03-26 华为技术有限公司 Delay measuring method, delay measuring device and delay measuring system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114513196A (en) * 2022-01-17 2022-05-17 烽火通信科技股份有限公司 Time delay compensation value calculation method and device

Similar Documents

Publication Publication Date Title
EP2242236B1 (en) Method for measuring frame loss, system for measuring frame loss, and device for measuring frame loss
JP5833253B2 (en) Method and related network element for providing delay measurement of an optical transmission network
EP2434673A2 (en) Network synchronization method and apparatus for performing time synchronization between nodes
US20200195363A1 (en) Packet Processing Method and Network Device
EP3022874B1 (en) Triangle loopback
US20150326387A1 (en) Communication systems and methods for distributed power system measurement
WO2014076596A1 (en) Time-based link fault localization
CN108809617B (en) Time delay compensation method and terminal
EP3955528B1 (en) Delay measurement method, system and storage medium
CN112636825A (en) Method, device and system for measuring time delay in optical transport network
CN111464252B (en) Communication method and optical module
CN105323053B (en) The method and device of business clock transparent transmission
CN109194393A (en) A kind of multi tate error code testing device and its test method
CN102025571A (en) Method and device for measuring packet loss in multi-point link
CN114844804A (en) Network measurement method, system, electronic device and computer readable storage medium
JP3694864B2 (en) Test method for Ethernet (registered trademark) transmission apparatus and its line quality monitoring function
JPH04241547A (en) Line quality check method
CN112398560A (en) Measuring method, measuring device and storage medium
CN113541776B (en) Method for implementing optical fiber detection and clock synchronization and related equipment
EP4351036A1 (en) Abnormal positioning method, device and system, and storage medium
US20070064614A1 (en) Transmission path latency measurement method
CN112825493A (en) Timestamp configuration method and device and clock synchronization method and device
CN117749664A (en) Time delay measuring method, electronic device and computer readable medium
KR20130056820A (en) Apparatus and method for measuring delay
CN118018454A (en) Time delay calibration method, device and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20210409

RJ01 Rejection of invention patent application after publication