CN103684908B - Time delay measurement method, apparatus and system - Google Patents

Time delay measurement method, apparatus and system Download PDF

Info

Publication number
CN103684908B
CN103684908B CN201310632422.6A CN201310632422A CN103684908B CN 103684908 B CN103684908 B CN 103684908B CN 201310632422 A CN201310632422 A CN 201310632422A CN 103684908 B CN103684908 B CN 103684908B
Authority
CN
China
Prior art keywords
website
value
data frame
sent
mark
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.)
Active
Application number
CN201310632422.6A
Other languages
Chinese (zh)
Other versions
CN103684908A (en
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201310632422.6A priority Critical patent/CN103684908B/en
Publication of CN103684908A publication Critical patent/CN103684908A/en
Application granted granted Critical
Publication of CN103684908B publication Critical patent/CN103684908B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of Time delay measurement method, apparatus and system, belong to network monitoring field.The Time delay measurement method includes:Mark value is added in the data frame for meeting flag condition sent to the second website, the first timer is started when the mark value is sent;When there is the mark value in the data frame that the second website that detection is received sends, the first clocking value obtained during the first timer is obtained;Obtain the second clocking value of the second website transmission;The time delay of one-way transmission path between first network website and the second website is determined according to the first clocking value and the second clocking value.The present invention is calculated the time delay between first network website and the second website by the first clocking value in first network site record and in the second clocking value that the second website is recorded;Solve the problems, such as that Time delay measurement is inaccurate in the prior art;The effect of the accuracy that can improve Time delay measurement is reached.

Description

Time delay measurement method, apparatus and system
Technical field
The present invention relates to network monitoring field, more particularly to a kind of Time delay measurement method, apparatus and system.
Background technology
In OTN(Optical Transport Network, optical transport network)In, because different business is to network delay Requirement it is different, it usually needs Time delay measurement is carried out to the transmission path between the website in OTN.
At present, to ODUk in OTN G.709 agreement(Optical channel Data Unit-k)Frame definition one For supporting to path monitoring PM layers and serial line interface monitoring TCMi(I=1~6)Layer carries out the overhead byte PM& of Time delay measurement TCM, wherein overhead byte PM&TCM include DMP(Delay Measurement of ODUk path, PM layer Time delay measurements)With DMTi(I=1~6)(Delay Measurement of TCMi, TCMi layer Time delay measurements), DMP is used to test PM layers of time delay, DMTi is respectively used to test TCMi(I=1~6)The time delay of layer.Due to PM layers and TCMi(I=1~6)The Time delay measurement phase of layer Seemingly, below as a example by PM layers, the Time delay measurement to transmission path between first network website and the second website is illustrated.
There is a two-way approach, the both direction of the two-way approach between first network website and the second website Path be isometric, ODUk frames that first network website sends to the second website and the second website are to the first net DMP overhead values are disposed as identical value in the ODUk frames that network website sends, such as be 0.To the first network website and should The Time delay measurement method of transmission path, can include between second website:In the sending direction of first network website, take out To the DMP overhead values in the one of ODUk frames in the continuous ODUk frames that the second website sends, the DMP overhead values are taken Instead(I.e. the DMP overhead values are changed to 1)After insert the ODUk frames, and send the ODUk frames to the second website, startup is prolonged When measure, the timer in first network website starts timing;Corresponding, the second website is received from first network website hair The continuous ODUk frames for sending, when an ODUk frame is often received, the DMP overhead values in the ODUk frames that extraction is received work as extraction There is saltus step in the DMP overhead values for going out(The DMP overhead values for extracting are different from the DMP overhead values in preceding extraction)When, then should DMP overhead values are inserted into the ODUk frames of the pluggable DMP overhead values for being sent to first network website;It is corresponding, first network Website receives the ODUk frames that the second website sends, when there is saltus step in the DMP overhead values extracted from these ODUk frames, Then Time delay measurement terminates, and timer terminates timing, and the value at the end of the timer is divided by 2 quotients for obtaining as first network station The time delay size of transmission path between point and the second website.
Realize it is of the invention during, inventor find prior art at least there is problems with:Because OTN is one Asynchronous network, in existing Time delay measurement method, the up-downgoing ODUk business of the second website(I.e. from first network website The ODUk business for receiving and the ODUk business sent to first network website)Frame head cannot align, there is certain deviation (Maximum deviation may be an ODUk frame), therefore cause the DMP expenses that the second website extracts from descending ODUk frames Value can not be inserted into the transmission data flow of upgoing O DUk business at once, so that Time delay measurement is inaccurate, there is certain mistake Difference.Such as, when this Time delay measurement method is applied to ODU0 business, the error the largest of about 90us of the time delay of acquisition(One ODU0 frames are about 90us).
The content of the invention
In order to solve the problems, such as that Time delay measurement is inaccurate in the prior art, a kind of Time delay measurement is the embodiment of the invention provides Method, apparatus and system.The technical scheme is as follows:
A kind of first aspect, there is provided Time delay measurement method, is applied to include the first network website of the first timer In, methods described includes:
Mark value is added in the data frame for meeting flag condition in the continuous data frame sent to the second website, The mark value starts first timer when being sent, the data frame for meeting flag condition is to monitor overhead byte still First data frame not sent;
Whether there is the mark value in the data frame that second website that detection is received sends;
If testing result is have the mark value in the data frame that second website that receives sends, obtain Take the first clocking value obtained during first timer;
The second clocking value that second website sends is obtained, second clocking value is by second network station Point starts the second timer when the data frame with the mark value that the first network website sends is received, The mark value is added to be sent to the first network website meet the data frame of flag condition, in the mark value The clocking value obtained during second timer got when being sent;
The first network website and second net are determined according to first clocking value and second clocking value The time delay of one-way transmission path between network website.
It is described in the continuous data sent to the second website in the first possible implementation method of first aspect Mark value is added in the data frame for meeting flag condition in frame, first timer is started when the mark value is sent, Including:
It is determined that meeting the data frame of flag condition in the continuous data frame sent to second website;
The value that overhead byte is monitored described in the data frame for meeting flag condition is revised as the mark value;
When the monitoring overhead byte for being modified to the mark value is sent, start first timer.
With reference to the first possible implementation method of first aspect or first aspect, in second possible implementation method In, it is described to detect in the data frame that second website for receiving sends whether there is the mark value, including:
Receive the continuous data frame that second website sends;
The value of monitoring overhead byte in the continuous data frame is extracted successively;
Whether the value of the monitoring overhead byte of Detection and Extraction is the mark value successively.
It is possible with reference to the first possible implementation method of first aspect, first aspect or second of first aspect Implementation method, it is described to obtain the second clocking value that second website sends, bag in the third possible implementation method Include:
The value of the predetermined reserve bytes in the data frame that second website that extraction is received sends, it is described predetermined Reserve bytes are the byte for depositing second clocking value that second website gets;
Detect the value of the predetermined reserve bytes whether more than zero;
If the value that testing result is the predetermined reserve bytes is more than zero, the value of the predetermined reserve bytes is defined as Second clocking value.Second of the first possible implementation method, first aspect with reference to first aspect, first aspect can The implementation method of energy or the third possible implementation method of first aspect, it is described in the 4th kind of possible implementation method According to first clocking value and second clocking value determine the first network website and second website it Between one-way transmission path time delay, including:
First clocking value is subtracted into second clocking value, difference is obtained;
By the difference divided by 2, quotient is obtained;
The quotient is regarded as into one-way transmission path between the first network website and second website Time delay.
A kind of second aspect, there is provided Time delay measurement method, is applied to include the second website of the second timer In, methods described includes:
Detect whether to receive the data frame with mark value that first network website sends;
If testing result is when receiving the data frame with mark value of first network website transmission, to start described second Timer;
The mark value is added to be sent to the first network website meet the data frame of flag condition, in institute State the second clocking value for being obtained when mark value is sent and being obtained during second timer, the data for meeting flag condition Frame is to monitor first data frame that overhead byte is not yet sent;
Second clocking value is sent to the first network website, by the first network website according to for obtaining One clocking value and second clocking value determine one-way transmission between the first network website and second website The time delay in path, first clocking value is in the continuous data frame sent to the second website from the first network website In to meet and add mark value in the data frame of flag condition, the first timer is started when the mark value is sent, receiving To second website send data frame in have the mark value when, obtain first timer when obtain Clocking value.
In the first possible implementation method of second aspect, it is described by the mark value added to being sent to described the One website meets the data frame of flag condition, when obtaining second timer when the mark value is sent The second clocking value for obtaining, including:
It is determined that the data frame for meeting flag condition sent to the first network website;
The value that overhead byte is monitored described in the data frame for meeting flag condition is revised as the mark value;
When the monitoring overhead byte for being modified to the mark value is sent, when obtaining second timer The second clocking value for obtaining.
With reference to the first possible implementation method of second aspect or second aspect, in second possible implementation method In, the data frame with mark value for detecting whether to receive the transmission of first network website, including:
Receive the continuous data frame that the first network website sends;
The value of the monitoring overhead byte in the data frame is extracted successively;
Whether the value of the monitoring overhead byte of Detection and Extraction is the mark value successively.
It is possible with reference to the first possible implementation method of second aspect, second aspect or second of second aspect Implementation method, it is described that second clocking value is sent to the first network website in the third possible implementation method, Including:
By second clocking value added to the data frame with the mark value sent to the first network website The predetermined reserve bytes of one of data frame below;
The data frame for adding second clocking value is sent to the first network website.
A kind of third aspect, there is provided Time delay measurement device, is applied to include the first network website of the first timer In, described device includes:
First add module, the data for meeting flag condition in the continuous data frame sent to the second website Mark value is added in frame, first timer, the data for meeting flag condition are started when the mark value is sent Frame is to monitor first data frame that overhead byte is not yet sent;
First detection module, for detecting in the data frame that second website for receiving sends whether there is institute State mark value;
First acquisition module, for being second network station for receiving in the testing result of the first detection module When there is the mark value in the data frame that point sends, the first clocking value obtained during first timer is obtained;
Second acquisition module, for obtaining the second clocking value that second website sends, second clocking value Be by second website when the data frame with the mark value that the first network website sends is received, Start the second timer, the data for meeting flag condition of the first network website are sent to the mark value is added to In frame, the clocking value obtained during second timer got when the mark value is sent;
First determining module, for first clocking value and described second obtained according to first acquisition module Second clocking value that acquisition module is obtained determines unidirectionally to be passed between the first network website and second website The time delay in defeated path.
In the first possible implementation method of the third aspect, first add module, including:
First determining unit, for determining to meet flag condition in the continuous data frame to second website transmission Data frame;
First modification unit, for meeting institute in the data frame of flag condition described in first determining unit is determined The value for stating monitoring overhead byte is revised as the mark value;
Start unit, for being revised as the monitoring overhead byte quilt of the mark value by the described first modification unit During transmission, start first timer.
With reference to the first possible implementation method of the third aspect or the third aspect, in second possible implementation method In, the first detection module, including:
First receiving unit, for receiving the continuous data frame that second website sends;
First extraction unit, the value for extracting monitoring overhead byte in the continuous data frame successively;
First detection unit, whether the value for the monitoring overhead byte of Detection and Extraction successively is the mark value.
It is possible with reference to the first possible implementation method of the third aspect, the third aspect or second of the third aspect Implementation method, in the third possible implementation method, second acquisition module, including:
Second extraction unit, for extracting the predetermined reservation in the data frame that second website for receiving sends The value of byte, the predetermined reserve bytes are the word for depositing second clocking value that second website gets Section;
Second detection unit, for detecting the value of the predetermined reserve bytes whether more than zero;
Second determining unit, for being more than zero in the value that the testing result of the detection unit is the predetermined reserve bytes When, the value of the predetermined reserve bytes is defined as second clocking value.
Second possible reality of the first possible implementation method, the third aspect with reference to the third aspect, the third aspect The third possible implementation method of mode or the third aspect is applied, in the 4th kind of possible implementation method, described first is true Cover half block, including:
Difference computational unit, for first clocking value to be subtracted into second clocking value, obtains difference;
Quotient computing unit, divided by 2, quotient is obtained for by the difference;
Assert unit, it is single between the first network website and second website for the quotient to be regarded as To the time delay of transmission path.
A kind of fourth aspect, there is provided Time delay measurement device, is applied to include the second website of the second timer In, described device includes:
Second detection module, for detecting whether receiving the data frame with mark value of first network website transmission;
Starting module, for being the tool for receiving the transmission of first network website in the testing result of second detection module When having the data frame of mark value, start second timer;
Second add module, for the mark value is added to be sent to the first network website meet slug In the data frame of part, the second clocking value obtained when obtaining second timer when the mark value is sent is described The data frame for meeting flag condition is to monitor first data frame that overhead byte is not yet sent;
Sending module, for second clocking value to be sent into the first network website, by the first network station Point determines the first network website and second network station according to the first clocking value and second clocking value that obtain The time delay of one-way transmission path between point, first clocking value is sent out to the second website from the first network website Mark value is added in the data frame for meeting flag condition in the continuous data frame for sending, first is started when the mark value is sent Timer, when having the mark value in the data frame that second website for receiving sends, obtains described first The clocking value obtained during timer.
In the first possible implementation method of fourth aspect, second add module, including:
3rd determining unit, for the data frame for meeting flag condition for determining to be sent to the first network website;
Second modification unit, for meeting institute in the data frame of flag condition described in the 3rd determining unit is determined The value for stating monitoring overhead byte is revised as the mark value;
Acquiring unit, for being revised as the monitoring overhead byte quilt of the mark value by the described second modification unit During transmission, the second clocking value obtained during second timer is obtained.With reference to the first of fourth aspect or fourth aspect Possible implementation method is planted, in second possible implementation method, second detection module, including:
Second receiving unit, for receiving the continuous data frame that the first network website sends;
3rd extraction unit, the value for extracting the monitoring overhead byte in the data frame successively;
3rd detection unit, whether the value for the monitoring overhead byte of Detection and Extraction successively is the mark value.
It is possible with reference to the first possible implementation method of fourth aspect, fourth aspect or second of fourth aspect Implementation method, in the third possible implementation method, the sending module, including:
Adding device, for second clocking value to be added to first network website transmission with the mark The predetermined reserve bytes of the one of data frame behind the data frame of note value;
Transmitting element, the data frame for adding second clocking value is sent to the first network website.
5th aspect, there is provided a kind of website, the website is included such as the third aspect and the third aspect Time delay measurement device described in various possible implementation methods.
6th aspect, there is provided a kind of website, the website is included such as fourth aspect and fourth aspect Time delay measurement device described in various possible implementation methods.
7th aspect, there is provided a kind of delay measurement system, the delay measurement system includes first network website and the , there is two-way isometric transmission path between the first network website and second website in two websites;
The first network website provides described website for the 5th aspect;
Second website provides described website for the 6th aspect.
A kind of eighth aspect, there is provided website, the website includes receiver and processor, the processor Coupled with the receiver;
The processor, the data frame for meeting flag condition in the continuous data frame sent to the second website Middle addition mark value, first timer, the data frame for meeting flag condition are started when the mark value is sent For first data frame that monitoring overhead byte is not yet sent;
Whether the processor, have the mark in the data frame that second website that detection is received sends Value;
The processor, for having in the data frame that testing result is second website transmission for receiving During the mark value, the first clocking value obtained during first timer is obtained;
The processor, for obtaining the second clocking value that second website sends, second clocking value is By second website when the data frame with the mark value that the first network website sends is received, open Dynamic second timer, the mark value is being added to the data frame for meeting flag condition that is sent to the first network website In, the clocking value obtained during second timer got when the mark value is sent;
The processor, for determining the first network station according to first clocking value and second clocking value The time delay of one-way transmission path between point and second website.
In the first possible implementation method of eighth aspect, the processor is additionally operable to determine to second net Meet the data frame of flag condition in the continuous data frame that network website sends;
The processor, is additionally operable to be monitored described in the data frame for meeting flag condition the value modification of overhead byte It is the mark value;
The processor, is additionally operable to, when the monitoring overhead byte for being modified to the mark value is sent, start First timer.
With reference to the first possible implementation method of eighth aspect or eighth aspect, in second possible implementation method In, the receiver, for receiving the continuous data frame that second website sends;
The processor, the value for extracting monitoring overhead byte in the continuous data frame successively;
The processor, whether the value for the monitoring overhead byte of Detection and Extraction successively is the mark value.
It is possible with reference to the first possible implementation method of eighth aspect, eighth aspect or second of eighth aspect Implementation method, in the third possible implementation method, the processor is additionally operable to extract second network station for receiving The value of the predetermined reserve bytes in the data frame that point sends, the predetermined reserve bytes are for depositing second website The byte of second clocking value for getting;
Whether the processor, be additionally operable to detect the value of the predetermined reserve bytes more than zero;
The processor, is additionally operable to when the value that testing result is the predetermined reserve bytes is more than zero, will be described predetermined The value of reserve bytes is defined as second clocking value.
Second possible reality of the first possible implementation method, eighth aspect with reference to eighth aspect, eighth aspect The third possible implementation method of mode or eighth aspect is applied, in the 4th kind of possible implementation method, the processor, It is additionally operable to for first clocking value to subtract second clocking value, obtains difference;
The processor, is additionally operable to the difference divided by 2, obtains quotient;
The processor, be additionally operable to by the quotient regard as the first network website and second website it Between one-way transmission path time delay.
9th aspect, there is provided a kind of website, the website includes receiver, processor and transmitter, institute Processor is stated to be coupled with the receiver and the transmitter respectively;
The processor, for detecting whether receiving the data frame with mark value of first network website transmission;
The processor, for being the data frame with mark value for receiving the transmission of first network website in testing result When, start second timer;
The processor, for the mark value is added to be sent to the first network website meet flag condition Data frame in, the second clocking value obtained when obtaining second timer when the mark value is sent, the symbol The data frame for closing flag condition is to monitor first data frame that overhead byte is not yet sent;
The transmitter, for second clocking value to be sent into the first network website, by the first network Website determines the first network website and second network according to the first clocking value and second clocking value that obtain The time delay of one-way transmission path between website, first clocking value is to the second website from the first network website Mark value is added in the data frame for meeting flag condition in the continuous data frame of transmission, is started when the mark value is sent One timer, when having the mark value in the data frame that second website that receives sends, obtains described the The clocking value obtained during one timer.
In the first possible implementation method of the 9th aspect, the processor is additionally operable to determine to first net The data frame for meeting flag condition that network website sends;
The processor, is additionally operable to be monitored described in the data frame for meeting flag condition the value modification of overhead byte It is the mark value;
The processor, is additionally operable to, when the monitoring overhead byte for being modified to the mark value is sent, obtain The second clocking value obtained during second timer.
With reference to the 9th aspect or the first possible implementation method of the 9th aspect, in second possible implementation method In, the receiver, for receiving the continuous data frame that the first network website sends;
The processor, the value of the monitoring overhead byte for being additionally operable to extract successively in the data frame;
The processor, whether the value for being additionally operable to the monitoring overhead byte of Detection and Extraction successively is the mark value.
Second with reference to the 9th aspect, the first possible implementation method of the 9th aspect or the 9th aspect is possible Implementation method, in the third possible implementation method, the processor is additionally operable to be added to second clocking value to institute State the predetermined reserve bytes of the one of data frame behind the data frame with the mark value of first network website transmission;
The transmitter, is additionally operable to for the data frame for adding second clocking value to be sent to the first network station Point.
The beneficial effect that technical scheme provided in an embodiment of the present invention is brought is:
By first network site record from send mark value to obtain the second website send the mark value it Between the first clocking value, and obtain the second website record from get the mark value to send the mark value second meter Duration, prolonging between first network website and the second website is calculated according to the first clocking value and the second clocking value When;Solve the problems, such as that Time delay measurement is inaccurate in the prior art;Due to that can obtain in the second website from acquisition To mark value to the error time of insertion mark value process, therefore in computation delay size, the error time can be subtracted, reached To the effect of the accuracy that can improve Time delay measurement.
Brief description of the drawings
Technical scheme in order to illustrate more clearly the embodiments of the present invention, below will be to that will make needed for embodiment description Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings Accompanying drawing.
Figure 1A is the schematic diagram of the ODUk frame structures of offer in section Example of the present invention;
Figure 1B is the schematic diagram of the ODUk overhead areas of offer in section Example of the present invention;
Fig. 1 C are one section of schematic diagrames of OTN networks of offer in section Example of the present invention;
Fig. 2 is the method flow diagram of the Time delay measurement method of offer in one embodiment of the invention;
Fig. 3 is the method flow diagram of the Time delay measurement method of offer in another embodiment of the present invention;
Fig. 4 A are the method flow diagrams of the Time delay measurement method of offer in further embodiment of the present invention;
Fig. 4 B are the schematic diagrames that data frame is sent in first network website of offer in one embodiment of the invention;
Fig. 4 C are the schematic diagrames that data frame is sent in first network website of offer in another embodiment of the present invention;
Fig. 4 D are the schematic diagrames that data frame is sent in the second website of offer in one embodiment of the invention;
Fig. 4 E are the schematic diagrames that data frame is sent in the second website of offer in another embodiment of the present invention;
Fig. 4 F are the schematic diagrames of the second website acquisition error time of offer in section Example of the present invention;
Fig. 5 is entering to the time delay between first network website and the second website of providing in section Example of the present invention The schematic diagram of row measurement;
Fig. 6 is the structural representation of the Time delay measurement device of offer in one embodiment of the invention;
Fig. 7 is the structural representation of the Time delay measurement device of offer in another embodiment of the present invention;
Fig. 8 is the structural representation of the Time delay measurement device of offer in further embodiment of the present invention;
Fig. 9 is the structural representation of the Time delay measurement device of offer in another embodiment of the invention;
Figure 10 is the structural representation of the website of offer in one embodiment of the invention;
Figure 11 is the structural representation of the website of offer in another embodiment of the present invention;
Figure 12 is the schematic diagram of the delay measurement system of offer in one embodiment of the invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention Formula is described in further detail.
For the clearer description present invention, before describing various embodiments of the present invention, the part skill being related to OTN Art scheme is enumerated:
In OTN, client traffic is transmitted in being mapped to the OPUk domains of ODUk frame structures.Refer to shown in Figure 1A, its Show the schematic diagram of ODUk frame structures in section Example of the present invention.ODUk frame lengths are 4(OK)*3824(Row)Individual byte, its In the 1st row 1~7 be classified as frame alignment overhead area, the 8~14 of the 1st row is classified as OTUk overhead areas, the 2nd row to the 1 of the 4th row ~14 are classified as ODUk overhead areas, and 15~16 are classified as OPUk overhead areas, and remaining is classified as OPUk payload areas.
Refer to shown in Figure 1B, it illustrates the schematic diagram of the ODUk overhead areas provided in section Example of the present invention. In OTN G.709 agreement, special expense PM&TCM defined in ODUk frame structures, the expense is used to support to PM layers And TCMi(I=1~6)Layer carries out the overhead byte PM&TCM of Time delay measurement, and wherein overhead byte PM&TCM includes DMP and DMTi (I=1~6), DMP is used to test PM layer of time delay, and DMTi is respectively used to test TCMi(I=1~6)The time delay of layer.For example, Please participate in shown in Fig. 1 C, it illustrates the one section of schematic diagram of OTN networks provided in section Example of the present invention, in source A and Other websites, such as website B and website C are there may be between egress D, in actual applications, when need test source A and place During the time delay of the transmission path between the D of end, then Time delay measurement can be carried out by DMP, when needing between source A and egress D Layering when carrying out delay test, then the time delay of transmission path between source A and website B can be tested by DMT1, pass through The time delay of transmission path between DMT2 test stations B and website C, by transmission path between DMT3 test stations C and egress D Time delay.
Due to PM layers and TCMi(I=1~6)The Time delay measurement of layer is similar, and the present invention is surveyed only as a example by PM layers to time delay Amount is illustrated.
It is shown in Figure 2, it illustrates the method flow of the Time delay measurement method provided in one embodiment of the invention Figure.As a example by carrying out Time delay measurement to the transmission path between first network website and the second website, the Time delay measurement side Method can apply in first network website.The Time delay measurement method can include:
201, addition mark in the data frame of flag condition is met in the continuous data frame sent to the second website Value, the first timer is started when the mark value is sent;
In actual applications, first network website continuous can send data frame to the second website, be said here The data frame for meeting flag condition is to monitor first data frame that overhead byte is not yet sent.That is, first network First data frame that overhead byte is not yet sent is monitored in the continuous data frame that website is sent to the second website.
Here the data frame said can be ODUk frames, and monitoring overhead byte can be OTN G.709 in ODUk frame heads Byte in the overhead byte PM&TCM of definition, such as DMP or DMTi(I=1~6).
Generally, the byte that ODUk frames are included is relatively more, therefore website completes to send an ODUk frame in transmitting terminal Time it is long, in order to the more accurate time delay calculated between first network website and the second website, Ke Yi The moment that the monitoring overhead byte of mark value is sent is added, starts the first timer, i.e. open time delay measurement.General, the One website can add mark value in the monitoring overhead byte that will be sent, and mark has been added in the monitoring overhead byte After value, first network website at once can send the mark value, now start the first timer.Due to such case Under, the moment that mark value is sent added to moment and the monitoring overhead byte of monitoring overhead byte closely, therefore Can added to after monitoring overhead byte, start the first timer by mark value.
202, whether there is the mark value in the data frame that the second website that detection is received sends;
Under normal circumstances, the second website can send data frame by the way that another path is continuous to first network website, Corresponding, first network website can then continuously receive the data frame of the second website transmission.Received in first network website To the second website send data frame after, these data frames are analyzed, then can determine be in these data frames No mark value with insertion in step 201.
203, if testing result is have the mark value in the data frame that the second website for receiving sends, obtain The first clocking value obtained during the first timer;
There is the mark value in the data frame for going out the second website transmission for receiving in first network site analysis When, then terminate the timing of the first timer(Terminate Time delay measurement), now the value of the first timer is to be defined as the first timing Value.
204, the second clocking value that the second website sends is obtained, the second clocking value is being received by the second website During the data frame with mark value that first network website sends, start the second timer, be sent to mark value is added to First network website meets the data frame of flag condition, during the second timer got when the mark value is sent The clocking value for obtaining;
205, determined according to the first clocking value and the second clocking value single between first network website and the second website To the time delay of transmission path.
In sum, the Time delay measurement method for being provided in the embodiment of the present invention, by first network site record from hair First clocking value of the mark value to obtaining between the mark value that the second website sends is sent, and obtains the second website note Record from get the mark value to send the mark value the second clocking value, according to the first clocking value and the second clocking value meter Calculation obtains the time delay between first network website and the second website;Solve that Time delay measurement in the prior art is inaccurate to ask Topic;Due to can obtain in the second website from get mark value to insertion mark value process error time, because This can subtract the error time in computation delay size, reach the effect of the accuracy that can improve Time delay measurement.
It is shown in Figure 3, it illustrates the method stream of the Time delay measurement method provided in another embodiment of the present invention Cheng Tu.Still as a example by carrying out Time delay measurement to the transmission path between first network website and the second website, the time delay is surveyed Amount method can apply in the second website.The Time delay measurement method can include:
301, detect whether to receive the data frame with mark value of first network website transmission;
The mark value is the value that first network website is added in some data frame for sending.Such as, first network is worked as The mark value that website is added in the data frame chosen is 1, then the mark value for receiving is 1.
Generally, the mark value is the value that first network website and the second website are consulted.
302, if testing result is when receiving the data frame with mark value of first network website transmission, to start second Timer;
303, mark value is added to be sent to first network website meet the data frame of flag condition, in the mark When value is sent, the second clocking value obtained during the second timer is obtained, it is monitoring expense to meet the data frame of flag condition First data frame that byte is not yet sent;
Generally, be added to for mark value in transmitting terminal will be sent to the symbol of first network website by the second website In the monitoring overhead byte of the data frame for closing flag condition, after mark value addition is completed, then directly can be by the monitoring expense Byte sends, and now obtains the second clocking value obtained during the second timer.
It can be seen from OTN G.709 agreement, the mark value is the monitoring overhead byte provided in agreement(Such as DMP is opened Pin byte)In, it is therefore desirable to during the mark value is monitored into first data frame of overhead byte added to not yet transmission.
304, the second clocking value is sent to first network website, by first network website according to the first clocking value for obtaining And second clocking value determine the time delay of one-way transmission path between first network website and the second website, the first clocking value It is addition in the data frame for met in the continuous data frame sent to the second website flag condition from first network website Mark value, the mark value starts the first timer when being sent, have in the data frame that the second website for receiving sends When having mark value, the clocking value obtained during the first timer is obtained.
Because the time limit of first network stations aware second clocking value requires not high, therefore the second website can be with Add the second clocking value in some data frame sent then to first network website, such as can be to the pre- of the data frame Determine to insert second clocking value in reserve bytes.Here the predetermined reserve bytes for the second clocking value of carrying are also the first net What network website and the second website were consulted, so, when first network website receives data frame, correspondence can be parsed Predetermined reserve bytes in the second clocking value.
In sum, in the embodiment of the present invention provide Time delay measurement method, by recorded in the second website from The mark value is got to sending the second clocking value of the mark value to first network website, and second clocking value is sent to First network website, so that first network website can send the mark value to reception according to record to first network website The first clocking value and second clocking value to the mark value are calculated between first network website and the second website Time delay;Solve the problems, such as that Time delay measurement is inaccurate in the prior art;Due to can obtain in the second website from Mark value to the error time of insertion mark value process is got, therefore in computation delay size, when can subtract the error Between, reach the effect of the accuracy that can improve Time delay measurement.
As a example by the Time delay measurement of one-way transmission path between first network website and the second website, first network Website sends data frame to the second website successively by the first transmission path(That is ODUk frames), the second website is by Two transmission paths send data frame to first network website successively(That is ODUk frames), wherein the first transmission path and the second transmission road Footpath is two-way isometric transmission path between first network website and the second website, below incorporated by reference to Fig. 4 A to Fig. 4 F couples The Time delay measurement of one-way transmission path is schematically illustrated between first network website and the second website.
Refer to shown in Fig. 4 A, it illustrates the method stream of the Time delay measurement method provided in further embodiment of the present invention Cheng Tu.The Time delay measurement method can include:
401, first network website meets the data of flag condition in the continuous data frame sent to the second website Mark value is added in frame, the first timer is started when the mark value is sent;
Here the data frame said can be ODUk frames, and monitoring overhead byte can be OTN G.709 in ODUk frame heads Byte in the overhead byte PM&TCM of definition, such as DMP or DMTi(I=1~6).
In the data frame that first network website meets flag condition in the continuous data frame sent to the second website Addition mark value, the first timer is started when the mark value is sent, and can be included:
S11, it is determined that meeting the data frame of flag condition in the continuous data frame sent to the second website;
Generally, first network website determines to meet the number of flag condition in the continuous data frame sent to the second website According to frame, can include:Judge whether the monitoring overhead byte in the data frame for being sent to the second website has sent; If judged result is not sent also to the predetermined monitoring overhead byte in the data frame of the second website transmission, will Data frame is defined as meeting the data frame of flag condition;If judged result is in the data frame of the second website transmission Predetermined monitoring overhead byte sent, then the next data frame adjacent with data frame is defined as meeting flag condition Data frame.
Because a data frame may need transmission time for growing very much, in order to ensure the accuracy of Time delay measurement, therefore only Just start the first timer when the byte that can add mark value is sent.In the first scenario, refer to shown in Fig. 4 B, It illustrates the schematic diagram that data frame is sent in first network website provided in one embodiment of the invention, to the second net The data frame that network website sends(I-th frame)In monitoring overhead byte sent, therefore will be sent to second by next The data frame of website(I+1 frame)As the data frame for meeting flag condition, when the monitoring overhead byte of i+1 frame will When being sent, mark value is inserted to the monitoring overhead byte, start the first timer;In the latter case, Fig. 4 C are referred to It is shown, it illustrates in another embodiment of the present invention provide first network website send data frame schematic diagram, To the data frame that the second website sends(Jth frame)In monitoring overhead byte not yet sent, now by the data frame(The J frames)As the data frame for meeting flag condition, when the monitoring overhead byte of jth frame will be sent, to the monitoring expense word Section insertion mark value, starts the first timer.
S12, the value that will meet monitoring overhead byte in the data frame of flag condition is revised as mark value;
In actual applications, monitoring overhead byte generally take up a byte, when initial, transmission in need data Monitoring overhead byte in frame is disposed as identical numerical value, such as 0 or 1.Therefore the data frame of flag condition will met When the value of middle monitoring overhead byte is revised as mark value, can will meet the value of monitoring overhead byte in the data frame of flag condition Negate, then value of the inverted is added in the monitoring overhead byte of the data frame as mark value.Such as, when meeting mark When the value that overhead byte is monitored in the data frame of condition is 0, now can be using 1 monitoring as mark value added to the data frame In overhead byte.If it will be apparent that when monitoring overhead byte is a byte incessantly(Such as it is two or more words Section), the value that overhead byte can be monitored in the data frame that will meet flag condition is revised as a mark value set in advance, The mark value is different from the value for monitoring monitoring overhead byte in all data frames.
Explanation is needed exist for, shared byte number is identical in all data frames of transmission, and initial When, overhead byte is monitored in all data frames and is also provided with identical numerical value.For example, first network website is to the second net The value of the monitoring overhead byte in all data frames that network website sends may each be 0, only meet the data frame of flag condition The value of middle monitoring overhead byte is modified to 1.
S13, when the monitoring overhead byte for being modified to mark value is sent, starts the first timer.
Generally, the byte that ODUk frames have is relatively more, therefore website is completed to an ODUk frames hair in transmitting terminal The time sent is long, in order to the more accurate time delay calculated between first network website and the second website, can be with Only when the monitoring overhead byte for adding mark value is sent, start the first timer, i.e. open time delay measurement.Typically , mark value can be added in the monitoring overhead byte that will be sent, after the monitoring overhead byte has been added mark value, First network website at once can send the mark value, therefore now start the first timer.
402, first network website sends the data frame with mark value to the second website;
Explanation is needed exist for, in actual applications, in data frame second is usually located at due to monitoring overhead byte The position of the row of row the 4th, and the byte of data frame is relatively more, therefore first network website in the data frame when adding mark value, The byte of the overhead byte previous section has been transmitted, and then can to the second website send the overhead byte with And the byte of the overhead byte aft section.That is, not proper between step 401 and step 402 Sequencing, step 402 is only for representing that the data frame with mark value can be sent to the second network by first network website Website.
403, the second website detects whether to receive the data frame with mark value of first network website transmission;
General, first network website is continuous to send data frame, corresponding, the second website meeting to the second website The contact data frame of first network website transmission is received, now, the second website then can be to these data for receiving Frame is analyzed.
Second website detects whether to receive the data frame with mark value of first network website transmission, can wrap Include:Receive the continuous data frame that first network website sends;The value of the monitoring overhead byte in data frame is extracted successively;Examine successively Whether the value for surveying the monitoring overhead byte for extracting is mark value.
The data frame of first network website transmission can be constantly received due to the second website, therefore in order to be prolonged When measure, the second website needs to obtain out the value that overhead byte is monitored in each data frame.For example, first network station Point and the second website are consulted after mark value, can be inserted to the second website the mark value in first network website Send some data frame in, it is corresponding, the second website extract data frame monitoring overhead byte value when, if When the value of extraction is the mark value for consulting in advance, then can determine to have received the data frame with mark value.Illustrate again For, when the value of monitoring overhead byte initial in all data frames is 0, if first network website is by step 401 When monitoring overhead byte in one of data frame is revised as into 1, then the second website is in the monitoring expense for obtaining successively The value of byte changes(It is 1 i.e. from 0 saltus step)When, then the data frame that the value of monitoring overhead byte changes is with mark The data frame of note value.
404, if testing result is when receiving the data frame with mark value of first network website transmission, the second network Website starts the second timer;
Due to generally having many bytes in data frame, therefore when it is determined that overhead byte is mark value, the possible number It is not received completely also according to frame, therefore in order to reduce error as far as possible, the second website is being received with mark value During overhead byte, that is, start the second timer.
405, mark value is added to the second website the data for meeting flag condition for being sent to first network website In frame, the second clocking value obtained when obtaining the second timer when the mark value is sent;
Under normal circumstances, the second website is after mark value is received, in order to shorten the time of Time delay measurement, should The most short time by the mark value added to first network website send data frame in, therefore said here meet mark The data frame of note condition is typically sent to the first number that the monitoring overhead byte of first network website is not yet sent According to frame.
Second website mark value is added to be sent to first network website meet the data frame of flag condition, The second clocking value obtained during the second timer is obtained, can be included:
S21, it is determined that the data frame for meeting flag condition sent to first network website;
Second website determines to meet the data frame of flag condition in the continuous data frame sent to first network website, Can include:Judge whether the monitoring overhead byte in the data frame for being sent to first network website has sent;If sentencing Disconnected result is not sent also to the predetermined monitoring overhead byte in the data frame of first network website transmission, then by data Frame is defined as meeting the data frame of flag condition;If judged result is to pre- in the data frame of first network website transmission Fixed monitoring overhead byte has been sent, then the next data frame adjacent with data frame is defined as meeting the data of flag condition Frame.
In the first scenario, refer to shown in Fig. 4 D, it illustrates in one embodiment of the invention provide second Website sends the schematic diagram of data frame, the data frame for being sent to first network website(M frames)In monitoring expense Byte has sent, therefore by next data frame that will be sent to first network website(M+1 frames)As meeting mark The data frame of condition;In the latter case, refer to shown in Fig. 4 E, it illustrates what is provided in another embodiment of the present invention The schematic diagram of data frame is sent in the second website, the data frame for being sent to first network website(N-th frame)In prison Control overhead byte is not yet sent, now by the data frame(N-th frame)As the data frame for meeting flag condition.
Explanation is needed exist for, can be by first when first network website is to the second website transmission data frame What transmission path sent, it can be sent by the second transmission path that the second website sends data frame to first network website , wherein the first transmission path and the second transmission path are two-way isometric between first network website and the second website Transmission path.That is, first network website constantly sends continuous data by the first transmission path to the second website Frame, meanwhile, the second website constantly sends continuous data frame by the second transmission path to first network website.
S22, the value that will meet monitoring overhead byte in the data frame of flag condition is revised as the mark value;
For example, when the value for monitoring overhead byte only takes up a byte, the number of flag condition will generally met Overhead byte is monitored in the data frame that can will meet flag condition when being revised as the mark value according to the value that overhead byte is monitored in frame Value negate, that is, when in the data frame for meeting flag condition monitor overhead byte value be 0 when, by the control overhead byte Value is set to 1.Again for example, when the value for monitoring overhead byte takes two or more bytes, will directly can also meet The value that overhead byte is monitored in the data frame of flag condition is extracted, and mark value then is met into flag condition added to this In data frame in monitoring overhead byte.
S23, when the monitoring overhead byte for being modified to mark value is sent, obtains the obtained during the second timer Two clocking values.
In a possible implementation, Fig. 4 F are referred to, it illustrates the provided in section Example of the present invention Two websites obtain the schematic diagram of error time, when the second website is in t1Reception is opened to the monitoring with mark value During pin byte, start the second timer;It is determined that the data frame for meeting flag condition sent to first network website, by what is obtained In the data frame that mark value meets flag condition added to this, in t2Moment sends the mark value, now obtains the second timer The second clocking value that timing is obtained is t2-t1
406, the second website sends the data frame with mark value to first network website;
407, whether with the mark in the data frame that the second website that the detection of first network website is received sends Value;
Whether there is mark value in the data frame that first network website the second website for receiving of detection sends, can be with Including:Receive the continuous data frame of the second website transmission;The value of monitoring overhead byte in continuous data frame is extracted successively;According to Whether the value of the monitoring overhead byte of secondary Detection and Extraction is mark value.
That is, what is added in step 401 when first network website is some mark value, then in step 407 Whether it is also required to there is the mark value in the data frame for detect the second website transmission for receiving.
408, if testing result is have the mark value, the first net in the data frame that the second website for receiving sends The first clocking value obtained during network the first timer of station for acquiring;
Similarly, due to generally having many bytes in data frame, therefore it is determined that the overhead byte for receiving is mark During value, the possible data frame is not received also completely, therefore in order to reduce error as far as possible, first network website is being received During overhead byte with mark value, that is, terminate the first timer.
That is, the first clocking value obtained during the first timer is the mark value being sent from by first network website When start when being received by first network website to terminate the required time.
409, the second clocking value is sent to first network website by the second website;
Second clocking value is sent to first network website by the second website, can be included:By the addition of the second clocking value The predetermined reserve bytes of the one of data frame behind to the data frame with mark value sent to first network website;Will The data frame for adding the second clocking value is sent to first network website.Predetermined reserve bytes therein can be in data frame RES(RES as shown in Figure 1B)In some byte or multiple continuous byte.
Because the second clocking value is that the second website is sending the data frame for being added with mark value to first network website When the value of the second timer that obtains, therefore the second clocking value that can be obtained the second timer is added to behind the data frame Some data frame in, such as be inserted into a certain predetermined reserve bytes in data frame.
410, the second clocking value that the website of first network station for acquiring second sends;
The second clocking value that the website of first network station for acquiring second sends, can include:Extraction receive the The value of the predetermined reserve bytes in the data frame that two websites send, predetermined reserve bytes are for depositing the second website The byte of the second clocking value for getting;Detect the value of predetermined reserve bytes whether more than zero;If testing result is predetermined reservation The value of byte is more than zero, then the value of predetermined reserve bytes is defined as into the second clocking value.
411, first network website determines first network website and the second net according to the first clocking value and the second clocking value The time delay of one-way transmission path between network website.
First network website determines first network website and the second network station according to the first clocking value and the second clocking value The time delay of one-way transmission path, can include between point:First clocking value is subtracted into the second clocking value, difference is obtained;By difference Divided by 2, quotient is obtained;Quotient is regarded as the time delay of one-way transmission path between first network website and the second website.
It should be added that, can also be to be sent in the data frame for meeting flag condition said in step 401 Any one data frame that the monitoring overhead byte of the second website is not yet sent, in this case, if first network Be added in transmit queue mark value in the data frame for comparing backward by website, is needed for the transmitting terminal of first network website Whether the value that detect the monitoring overhead byte in the data frame that will be sent successively is mark value, until detect to send Monitoring overhead byte when there is mark value, open the first timer, the transmitting terminal due to first network website is sending each The detection of the value for being required to be monitored data frame overhead byte during individual data frame, therefore can influence to be sent out to the second website Send the speed of data flow.Can also be to be sent to second in the data frame for meeting flag condition similarly said in step 405 Any one data frame that the monitoring overhead byte of website is not yet sent, simply in this case, due to not being to mark Value is added in monitoring first data frame not yet being sent of overhead byte, and the byte of data frame is relatively more, wait when Between it is long, therefore the time of Time delay measurement also can be long, and can equally influence to send data flow to first network website Speed.So when implementing, in order to avoid influence and the time of shortening Time delay measurement of the data flow to sending as far as possible, this Only to meet the data frame of flag condition it is to monitor first data frame not yet being sent of overhead byte to be lifted in embodiment Example explanation.
In sum, the Time delay measurement method for being provided in the embodiment of the present invention, is marked by being added in first network website Value, and start-up study measurement;After the second website gets the mark value, start error measure, by mark value insertion Meet the data frame of flag condition to be sent to first network website, round-off error measurement;In first network station for acquiring During the data frame with mark value that the second website sends, terminate Time delay measurement, according to Time delay measurement and error measure The Time Calculation of determination obtains the time delay between first network website and the second website;Solve the survey of time delay in the prior art The inaccurate problem of amount;Due to that can obtain in the second website from getting mark value to insertion mark value process Error time, therefore in computation delay size, the error time can be subtracted, having reached can improve the accurate of Time delay measurement The effect of degree.
It is shown in Figure 5 in a kind of possible implementation, it illustrates what is provided in section Example of the present invention The schematic diagram measured to the time delay between first network website and the second website, the first network website and the second net There is two-way isometric the first transmission path L1 and the second transmission path L2 between network website, wherein the hair of the first transmission path L1 Sending end A is located in first network website, and receiving terminal B is located in the second website, and the transmitting terminal C of the second transmission path L2 is located at In second website, receiving terminal D is located in first network website.Transmitting terminal A to by the first transmission path L1 to the second net The data frame 1 for meeting flag condition of network website transmission is marked, i.e., to mark value is added in the data frame 1, start first The first timer in website;It is corresponding, the data frame that the receiving terminal B receiving end/sending ends A in the second website sends, When the data frame 1 for carrying mark value is received, the second timer in the second website is opened;In second website Transmitting terminal C the mark value is inserted into meet the data frame 2 of flag condition to what first network website sent, when the mark When value is transmitted, terminate the second timer;Receiving terminal C in first network website receives the number for including the mark value According to frame 2, terminate the first timer.The first clocking value obtained during by the first timer subtracts what is obtained during the second timer Second timing is worth to difference, and the difference is obtained into quotient divided by 2, and the quotient is first network website and the second website Between time delay.
It should be added that, in actual applications, the first timer and second referred in above-mentioned each embodiment Timer can be counter, and counter is used to record the number of the pulse for sending, according to the pulse number and pulse that obtain Frequency or cycle etc. determine the time.
It is shown in Figure 6, it illustrates the structural representation of the Time delay measurement device provided in one embodiment of the invention Figure.The Time delay measurement device can include:First add module 602, first detection module 604, the first acquisition module 606, Two acquisition modules 608 and the first determining module 610.
First add module 602, can be used for meeting slug in the continuous data frame sent to the second website Mark value is added in the data frame of part, the first timer is started when the mark value is sent, meet the data frame of flag condition For first data frame that monitoring overhead byte is not yet sent;
Whether first detection module 604, can be used for detecting have in the data frame that the second website for receiving sends There is mark value;
First acquisition module 606, the testing result that can be used in first detection module 604 is the second network for receiving When there is mark value in the data frame that website sends, the first clocking value obtained during the first timer is obtained;
Second acquisition module 608, can be used for obtaining the second clocking value that the second website sends, and the second clocking value is By the second website when the data frame with mark value that first network website sends is received, start the second timer, By mark value added to be sent in the data frame for meeting flag condition of first network website when, obtained when mark value is sent The clocking value obtained during the second timer got;
First determining module 610, mould is obtained for the first clocking value obtained according to the first acquisition module 606 and second The second clocking value that block is obtained determines the time delay of one-way transmission path between first network website and the second website.
In sum, the Time delay measurement device for being provided in the embodiment of the present invention, by first network site record from hair First clocking value of the mark value to obtaining between the mark value that the second website sends is sent, and obtains the second website note Record from get the mark value to send the mark value the second clocking value, according to the first clocking value and the second clocking value meter Calculation obtains the time delay between first network website and the second website;Solve that Time delay measurement in the prior art is inaccurate to ask Topic;Due to can obtain in the second website from get mark value to insertion mark value process error time, because This can subtract the error time in computation delay size, reach the effect of the accuracy that can improve Time delay measurement.
Shown in Figure 7, the structure it illustrates the Time delay measurement device provided in another embodiment of the present invention is shown It is intended to.The Time delay measurement device can include:First add module 702, first detection module 704, the first acquisition module 706, Second acquisition module 708 and the first determining module 710.
First add module 702, can be used for meeting slug in the continuous data frame sent to the second website Mark value is added in the data frame of part, the first timer is started when the mark value is sent, meet the data frame of flag condition For first data frame that monitoring overhead byte is not yet sent;
Whether first detection module 704, can be used for detecting have in the data frame that the second website for receiving sends There is mark value;
First acquisition module 706, the testing result that can be used in first detection module 704 is the second network for receiving When there is mark value in the data frame that website sends, the first clocking value obtained during the first timer is obtained;
Second acquisition module 708, can be used for obtaining the second clocking value that the second website sends, and the second clocking value is By the second website when the data frame with mark value that first network website sends is received, start the second timer, By mark value added to be sent in the data frame for meeting flag condition of first network website when, obtained when mark value is sent The clocking value obtained during the second timer got;
First determining module 710, can be used for being obtained according to the first clocking value of the acquisition of the first acquisition module 706 and second The second clocking value that modulus block is obtained determines the time delay of one-way transmission path between first network website and the second website.
In the first possible implementation of the present embodiment, the first add module 702 can include:First determines Unit 702a, the first modification unit 702b and start unit 702c.
First determining unit 702a, is determined for meeting mark in the continuous data frame sent to the second website The data frame of condition;
First modification unit 702b, can be used for the data frame for meeting flag condition for determining the first determining unit 702a The value of middle monitoring overhead byte is revised as mark value;
Start unit 702c, can be used for being revised as the monitoring overhead byte quilt of mark value by the first modification unit 702b During transmission, start the first timer.
In second possible implementation of the present embodiment, first detection module 704 can include:First receives Unit 704a, the first extraction unit 704b and the first detection unit 704c.
First receiving unit 704a, can be used for receiving the continuous data frame that the second website sends;
First extraction unit 704b, can be used for extracting successively the value of monitoring overhead byte in continuous data frame;
First detection unit 704c, whether the value that can be used for the monitoring overhead byte of Detection and Extraction successively is mark value.
In the third possible implementation of the present embodiment, the second acquisition module 708 can include:Second extracts Unit 708a, the second detection unit 708b and the second determining unit 708c.
Second extraction unit 708a, can be used for predetermined in the data frame for extract the second website transmission for receiving The value of reserve bytes, predetermined reserve bytes are the byte for depositing the second clocking value that the second website gets;
Whether second detection unit 708b, can be used for detecting the value of predetermined reserve bytes more than zero;
Second determining unit 708c, the testing result that can be used in detection unit is that the value of predetermined reserve bytes is more than zero When, the value of predetermined reserve bytes is defined as the second clocking value.
In the 4th kind of possible implementation of the present embodiment, the first determining module 710 can include:Mathematic interpolation Unit 710a, quotient computing unit 710b and identification unit 710c.
Difference computational unit 710a, can be used for for the first clocking value subtracting the second clocking value, obtain difference;
Quotient computing unit 710b, can be used for the difference for being calculated difference computational unit 710a divided by 2, obtain business Value;
Assert unit 710c, can be used for for the quotient that quotient computing unit 710b is calculated regarding as first network station The time delay of one-way transmission path between point and the second website.
In sum, the Time delay measurement device for being provided in the embodiment of the present invention, by first network site record from hair First clocking value of the mark value to obtaining between the mark value that the second website sends is sent, and obtains the second website note Record from get the mark value to send the mark value the second clocking value, according to the first clocking value and the second clocking value meter Calculation obtains the time delay between first network website and the second website;Solve that Time delay measurement in the prior art is inaccurate to ask Topic;Due to can obtain in the second website from get mark value to insertion mark value process error time, because This can subtract the error time in computation delay size, reach the effect of the accuracy that can improve Time delay measurement.
Shown in Figure 8, the structure it illustrates the Time delay measurement device provided in further embodiment of the present invention is shown It is intended to.The Time delay measurement device can include:Second detection module 802, starting module 804, the second add module 806 and transmission Module 808.
Second detection module 802, can be used for detecting whether receiving the transmission of first network website with mark value Data frame;
Starting module 804, can be used for the testing result in the second detection module 802 to receive first network website hair During the data frame with mark value for sending, start the second timer;
Second add module 806, can be used for being added to mark value be sent to first network website meet slug In the data frame of part, the second clocking value obtained when obtaining the second timer when the mark value sends meets flag condition Data frame be to monitor first data frame not yet being sent of overhead byte;
Sending module 808, can be used for for the second clocking value being sent to first network website, by first network website according to The first clocking value and the second clocking value for obtaining determine one-way transmission path between first network website and the second website Time delay, the first clocking value is to meet slug in the continuous data frame sent to the second website from first network website Mark value is added in the data frame of part, the first timer is started when the mark value sends, in the second website for receiving When there is mark value in the data frame of transmission, the clocking value obtained during the first timer is obtained.
In sum, in the embodiment of the present invention provide Time delay measurement device, by recorded in the second website from The mark value is got to sending the second clocking value of the mark value to first network website, and second clocking value is sent to First network website, so that first network website can send the mark value to reception according to record to first network website The first clocking value and second clocking value to the mark value are calculated between first network website and the second website Time delay;Solve the problems, such as that Time delay measurement is inaccurate in the prior art;Due to can obtain in the second website from Mark value to the error time of insertion mark value process is got, therefore in computation delay size, when can subtract the error Between, reach the effect of the accuracy that can improve Time delay measurement.
Shown in Figure 9, the structure it illustrates the Time delay measurement device provided in another embodiment of the invention is shown It is intended to.The Time delay measurement device can include:Second detection module 902, starting module 904, the second add module 906 and transmission Module 908.
Second detection module 902, can be used for detecting whether receiving the transmission of first network website with mark value Data frame;
Starting module 904, can be used for the testing result in the second detection module 902 to receive first network website hair During the data frame with mark value for sending, start the second timer;
Second add module 906, can be used for being added to mark value be sent to first network website meet slug In the data frame of part, the second clocking value obtained when obtaining the second timer when the mark value sends meets flag condition Data frame be to monitor first data frame not yet being sent of overhead byte;
Sending module 908, can be used for for the second clocking value being sent to first network website, by first network website according to The first clocking value and the second clocking value for obtaining determine one-way transmission path between first network website and the second website Time delay, the first clocking value is to meet slug in the continuous data frame sent to the second website from first network website Mark value is added in the data frame of part, the first timer is started when the mark value sends, in the second website for receiving When there is mark value in the data frame of transmission, the clocking value obtained during the first timer is obtained.
In the first possible implementation of the present embodiment, the second add module 906 can include:3rd determines Unit 906a, the second modification unit 906b and acquiring unit 906c.
3rd determining unit 906a, is determined for the data for meeting flag condition sent to first network website Frame;
Second modification unit 906b, can be used for the data frame for meeting flag condition for determining the 3rd determining unit 906a The value of middle monitoring overhead byte is revised as mark value;
Acquiring unit 906c, can be used for being revised as the monitoring overhead byte quilt of mark value by the second modification unit 906b During transmission, the second clocking value obtained during the second timer is obtained.
In second possible implementation of the present embodiment, the second detection module 902 can include:Second receives Unit 902a, the 3rd extraction unit 902b and the 3rd detection unit 902c.
Second receiving unit 902a, can be used for receiving the continuous data frame that first network website sends;
3rd extraction unit 902b, can be used for extracting successively the value of the monitoring overhead byte in data frame;
3rd detection unit 902c, whether the value that can be used for the monitoring overhead byte of Detection and Extraction successively is mark value.
In the third possible implementation of the present embodiment, sending module 908 can include:Adding device 908a With transmitting element 908b.
Adding device 908a, can be used for being added to the second clocking value to the transmission of first network website with mark value Data frame behind one of data frame predetermined reserve bytes;
Transmitting element 908b, the data frame that can be used for adding the second clocking value is sent to first network website.
In sum, in the embodiment of the present invention provide Time delay measurement device, by recorded in the second website from The mark value is got to sending the second clocking value of the mark value to first network website, and second clocking value is sent to First network website, so that first network website can send the mark value to reception according to record to first network website The first clocking value and second clocking value to the mark value are calculated between first network website and the second website Time delay;Solve the problems, such as that Time delay measurement is inaccurate in the prior art;Due to can obtain in the second website from Mark value to the error time of insertion mark value process is got, therefore in computation delay size, when can subtract the error Between, reach the effect of the accuracy that can improve Time delay measurement.
It should be noted that:The Time delay measurement device that above-described embodiment is provided when Time delay measurement is carried out, only with above-mentioned each The division of functional module is carried out for example, in practical application, as needed can distribute by different work(above-mentioned functions Can module complete, will the internal structure of first network website and the second website be divided into different functional modules, with complete Into all or part of function described above.In addition, the Time delay measurement device and Time delay measurement method of above-described embodiment offer Embodiment belongs to same design, and it implements process and refers to embodiment of the method, repeats no more here.
It is shown in Figure 10, it illustrates the structural representation of the website provided in one embodiment of the invention. The first network website can include:Transmitter 1002, processor 1004, memory 1006 and receiver 1008, wherein, treatment Device 1004 is coupled with transmitter 1002, memory 1006 and receiver 1008 respectively, is stored with memory 1,006 one or many Individual computer applied algorithm, processor 1004 can carry out related place according to the computer applied algorithm stored in memory 1006 Reason.When being illustrated with to the transmission path between first network website and the second website carrying out Time delay measurement, figure Website shown in 10 can be first network website.
Processor 1004, can be used for meeting in the continuous data frame sent to the second website the number of flag condition According to mark value is added in frame, the first timer is started when the mark value is sent, it is monitoring to meet the data frame of flag condition First data frame that overhead byte is not yet sent;
Transmitter 1002, the data frame that can be used for being added with mark value is sent to the second website;
Whether processor 1004, can be also used for having mark in the data frame for detect the second website transmission for receiving Note value;
Processor 1004, can be also used for the tool in testing result is the data frame that the second website for receiving sends When having mark value, the first clocking value obtained during the first timer is obtained;
Processor 1004, can be also used for obtain the second website send the second clocking value, the second clocking value be by Second website starts the second timer when the data frame with mark value that first network website sends is received, and is inciting somebody to action Mark value be added to be sent to first network website meet the data frame of flag condition, obtain when the mark value is sent To the second timer when the clocking value that obtains;
Processor 1004, can be also used for the second meter obtained according to the first clocking value and the second acquisition module for obtaining Duration determines the time delay of one-way transmission path between first network website and the second website.
In the first possible implementation of the present embodiment, processor 1004 can be also used for determining to the second net Meet the data frame of flag condition in the continuous data frame that network website sends;
Processor 1004, the value that can be also used for monitoring overhead byte in the data frame for meeting flag condition that will be determined is repaiied It is changed to mark value;
Processor 1004, can be also used for, when the monitoring overhead byte for being revised as mark value is sent, starting first and counting When device.
In second possible implementation of the present embodiment, receiver 1008 can be used for receiving the second network station The continuous data frame that point sends;
Processor 1004, can be also used for extracting successively the value of monitoring overhead byte in continuous data frame;
Processor 1004, whether the value that can be also used for the monitoring overhead byte of Detection and Extraction successively is mark value.
In the third possible implementation of the present embodiment, processor 1004 can be also used for extracting what is received The value of the predetermined reserve bytes in the data frame that the second website sends, predetermined reserve bytes are for depositing the second network station The byte of the second clocking value that point gets;
Whether processor 1004, can be also used for detecting the value of predetermined reserve bytes more than zero;
Processor 1004, the testing result that can be also used in detection unit be predetermined reserve bytes value be more than zero when, The value of predetermined reserve bytes is defined as the second clocking value.
In the 4th kind of possible implementation of the present embodiment, processor 1004 can be also used for the first clocking value The second clocking value is subtracted, difference is obtained;
Processor 1004, can be also used for difference divided by 2, obtain quotient;
Processor 1004, can be also used for regarding as quotient unidirectionally to be passed between first network website and the second website The time delay in defeated path.
In sum, the first network website for being provided in the embodiment of the present invention, by first network site record from hair First clocking value of the mark value to obtaining between the mark value that the second website sends is sent, and obtains the second website note Record from get the mark value to send the mark value the second clocking value, according to the first clocking value and the second clocking value meter Calculation obtains the time delay between first network website and the second website;Solve that Time delay measurement in the prior art is inaccurate to ask Topic;Due to can obtain in the second website from get mark value to insertion mark value process error time, because This can subtract the error time in computation delay size, reach the effect of the accuracy that can improve Time delay measurement.
It is shown in Figure 11, it illustrates the structural representation of the website provided in another embodiment of the present invention Figure.The website can include:Transmitter 1102, processor 1104, memory 1106 and receiver 1108, wherein, treatment Device 1104 is coupled with transmitter 1102, memory 1106 and receiver 1108 respectively, is stored with memory 1,106 one or many Individual computer applied algorithm, processor 1104 can carry out related place according to the computer applied algorithm stored in memory 1106 Reason.When being illustrated with to the transmission path between first network website and the second website carrying out Time delay measurement, figure Website shown in 11 can be the second website.
Processor 1104, can be used for the data with mark value for detecting whether to receive the transmission of first network website Frame;
Processor 1104, can be also used for testing result be receive first network website transmission with mark value During data frame, start the second timer;
Processor 1104, can be also used for that mark value is added to the flag condition that meets for being sent to first network website In data frame, the second clocking value obtained when obtaining the second timer when mark value is sent meets the number of flag condition It is to monitor first data frame that overhead byte is not yet sent according to frame;
Transmitter 1102, can be used for for the second clocking value being sent to first network website, by first network website according to The first clocking value and the second clocking value for obtaining determine one-way transmission path between first network website and the second website Time delay, the first clocking value is to meet slug in the continuous data frame sent to the second website from first network website Mark value is added in the data frame of part, the first timer is started when mark value is sent, in the second website for receiving When there is mark value in the data frame of transmission, the clocking value obtained during the first timer is obtained.
In the first possible implementation of the present embodiment, processor 1104 can be also used for determining to the first net The data frame for meeting flag condition that network website sends;
Processor 1104, the value that can be also used for monitoring overhead byte in the data frame for meeting flag condition that will be determined is repaiied It is changed to mark value;
Processor 1104, can be also used for, when the monitoring overhead byte for being revised as mark value is sent, obtaining second and counting When the second clocking value for obtaining of device timing.
In second possible implementation of the present embodiment, receiver 1108 can be used for receiving first network station The continuous data frame that point sends;
Processor 1104, can be also used for extracting successively the value of the monitoring overhead byte in data frame;
Processor 1104, whether the value that can be also used for the monitoring overhead byte of Detection and Extraction successively is mark value.
In the third possible implementation of the present embodiment, processor 1104 can be used for adding the second clocking value Add to the predetermined reserve bytes of the one of data frame behind the data frame with mark value sent to first network website;
Transmitter 1102, the data frame that can be used for adding the second clocking value is sent to first network website.
In sum, in the embodiment of the present invention provide the second website, by recorded in the second website from The mark value is got to sending the second clocking value of the mark value to first network website, and second clocking value is sent to First network website, so that first network website can send the mark value to reception according to record to first network website The first clocking value and second clocking value to the mark value are calculated between first network website and the second website Time delay;Solve the problems, such as that Time delay measurement is inaccurate in the prior art;Due to can obtain in the second website from Mark value to the error time of insertion mark value process is got, therefore in computation delay size, when can subtract the error Between, reach the effect of the accuracy that can improve Time delay measurement.
It is shown in Figure 12, it illustrates the schematic diagram of the delay measurement system provided in one embodiment of the invention. The delay measurement system can include:The website 1204 of first network website 1202 and second, the first network website There is two-way isometric transmission path between 1202 and second website 1204.
First network website 1202 can include the Time delay measurement device described in Fig. 6 or Fig. 7, or can be such as Figure 10 Described in website.
Second website 1204 can include the Time delay measurement device described in Fig. 8 or Fig. 9, or can be such as Figure 11 Described in website.
In sum, the delay measurement system for being provided in the embodiment of the present invention, is marked by being added in first network website Value, and start-up study measurement;After the second website gets the mark value, start error measure, by mark value insertion Meet the data frame of flag condition to be sent to first network website, round-off error measurement;In first network station for acquiring During the data frame with mark value that the second website sends, terminate Time delay measurement, according to Time delay measurement and error measure The Time Calculation of determination obtains the time delay between first network website and the second website;Solve the survey of time delay in the prior art The inaccurate problem of amount;Due to that can obtain in the second website from getting mark value to insertion mark value process Error time, therefore in computation delay size, the error time can be subtracted, having reached can improve the accurate of Time delay measurement The effect of degree.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein Unit and algorithm steps, can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually Performed with hardware or software mode, depending on the application-specific and design constraint of technical scheme.Professional and technical personnel Described function, but this realization can be realized it is not considered that exceeding using distinct methods to each specific application The scope of the present invention.
It is apparent to those skilled in the art that, for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed system, apparatus and method, can be with Realize by another way.For example, device embodiment described above is only schematical, for example, the unit Divide, can be only a kind of division of logic function, can there is other dividing mode when actually realizing, such as multiple units or Component can be combined or be desirably integrated into another system, or some features can be ignored, or not performed.It is another, show The coupling each other shown or discuss or direct-coupling or communication connection can be by some interfaces, between device or unit Connect coupling or communicate to connect, can be electrical, mechanical or other forms.
The unit that is illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit The part for showing can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be according to the actual needs selected to realize the mesh of this embodiment scheme 's.
In addition, during each functional unit in each embodiment of the invention can be integrated in a processing unit, it is also possible to It is that unit is individually physically present, it is also possible to which two or more units are integrated in a unit.
If the function is to realize in the form of SFU software functional unit and as independent production marketing or when using, can be with Storage is in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words The part contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter Calculation machine software product is stored in a storage medium, including some instructions are used to so that a computer equipment(Can be individual People's computer, server, or network equipment etc.)Perform all or part of step of each embodiment methods described of the invention. And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage(Read-Only Memory, ROM), arbitrary access deposits Reservoir(Random Access Memory, RAM), magnetic disc or CD etc. are various can be with the medium of store program codes.
The above, specific embodiment only of the invention, but protection scope of the present invention is not limited thereto, and it is any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all contain Cover within protection scope of the present invention.Therefore, protection scope of the present invention described should be defined by scope of the claims.

Claims (17)

1. a kind of Time delay measurement method, is applied in the first network website for include the first timer, it is characterised in that described Method includes:
Mark value is added in the data frame for meeting flag condition in the continuous data frame sent to the second website, described Mark value starts first timer when being sent, the data frame for meeting flag condition for monitoring overhead byte not yet by First data frame for sending;
Whether there is the mark value in the data frame that second website that detection is received sends;
If testing result is have the mark value in the data frame that second website that receives sends, institute is obtained State the first clocking value obtained during the first timer;
The second clocking value that second website sends is obtained, second clocking value is existed by second website When receiving the data frame with the mark value that the first network website sends, start the second timer, by institute State mark value be added to be sent to the first network website meet the data frame of flag condition, sent out in the mark value The clocking value obtained during second timer got when sending;
The first network website and second network station are determined according to first clocking value and second clocking value The time delay of one-way transmission path between point;
Wherein, mark is added in the data frame that flag condition is met in the continuous data frame sent to the second website Value, first timer is started when the mark value is sent, including:
It is determined that meeting the data frame of flag condition in the continuous data frame sent to second website;
The value that overhead byte is monitored described in the data frame for meeting flag condition is revised as the mark value;
When the monitoring overhead byte for being modified to the mark value is sent, start first timer.
2. method according to claim 1, it is characterised in that second website that the detection is received sends Data frame in whether have the mark value, including:
Receive the continuous data frame that second website sends;
The value of monitoring overhead byte in the continuous data frame is extracted successively;
Whether the value of the monitoring overhead byte of Detection and Extraction is the mark value successively.
3. method according to claim 1, it is characterised in that the second meter that acquisition second website sends Duration, including:
The value of the predetermined reserve bytes in the data frame that second website that extraction is received sends, the predetermined reservation Byte is the byte for depositing second clocking value that second website gets;
Detect the value of the predetermined reserve bytes whether more than zero;
If the value that testing result is the predetermined reserve bytes is more than zero, the value of the predetermined reserve bytes is defined as described Second clocking value.
4. according to any described method in claims 1 to 3, it is characterised in that it is described according to first clocking value and Second clocking value determines the time delay of one-way transmission path between the first network website and second website, bag Include:
First clocking value is subtracted into second clocking value, difference is obtained;
By the difference divided by 2, quotient is obtained;
The quotient is regarded as the time delay of one-way transmission path between the first network website and second website.
5. a kind of Time delay measurement method, is applied in the second website for include the second timer, it is characterised in that described Method includes:
Detect whether to receive the data frame with mark value that first network website sends;
If testing result is when receiving the data frame with mark value of first network website transmission, to start second timing Device;
The mark value is added to be sent to the first network website meet the data frame of flag condition, in the mark Note value obtains the second clocking value obtained during second timer when being sent, it is described meet flag condition data frame be First data frame that monitoring overhead byte is not yet sent;
Second clocking value is sent to the first network website, by the first network website according to the first meter for obtaining Duration and second clocking value determine one-way transmission path between the first network website and second website Time delay, first clocking value is accorded with the continuous data frame sent to the second website from the first network website Mark value is added in the data frame for closing flag condition, the first timer is started when the mark value is sent, what is received When there is the mark value in the data frame that second website sends, the meter obtained during first timer is obtained Duration;
Wherein, it is described that the mark value is added to the data frame for meeting flag condition for being sent to the first network website In, the second clocking value obtained when obtaining second timer when the mark value is sent, including:
It is determined that the data frame for meeting flag condition sent to the first network website;
The value that overhead byte is monitored described in the data frame for meeting flag condition is revised as the mark value;
When the monitoring overhead byte for being modified to the mark value is sent, obtained when obtaining second timer The second clocking value.
6. method according to claim 5, it is characterised in that described to detect whether to receive the transmission of first network website Data frame with mark value, including:
Receive the continuous data frame that the first network website sends;
The value of the monitoring overhead byte in the data frame is extracted successively;
Whether the value of the monitoring overhead byte of Detection and Extraction is the mark value successively.
7. the method according to claim 5 or 6, it is characterised in that described that second clocking value is sent to described One website, including:
Second clocking value is added to behind the data frame with the mark value sent to the first network website One of data frame predetermined reserve bytes;
The data frame for adding second clocking value is sent to the first network website.
8. a kind of Time delay measurement device, is applied in the first network website for include the first timer, it is characterised in that described Device includes:
First add module, for meet flag condition in the continuous data frame sent to the second website data frame in Addition mark value, starts first timer when the mark value is sent, it is described meet flag condition data frame be First data frame that monitoring overhead byte is not yet sent;
First detection module, for detecting in the data frame that second website for receiving sends whether there is the mark Note value;
First acquisition module, for being second website hair for receiving in the testing result of the first detection module When there is the mark value in the data frame for sending, the first clocking value obtained during first timer is obtained;
Second acquisition module, for obtaining the second clocking value that second website sends, second clocking value be by Second website starts when the data frame with the mark value that the first network website sends is received Second timer, the data frame for meeting flag condition of the first network website is sent to the mark value is added to In, the clocking value obtained during second timer got when the mark value is sent;
First determining module, first clocking value and described second for being obtained according to first acquisition module are obtained Second clocking value that module is obtained determines one-way transmission road between the first network website and second website The time delay in footpath;
Wherein, first add module, including:
First determining unit, for meeting the number of flag condition in the continuous data frame that determines to be sent to second website According to frame;
First modification unit, for will first determining unit determine described in meet and supervised described in the data frame of flag condition The value for controlling overhead byte is revised as the mark value;
Start unit, for being sent in the monitoring overhead byte that the mark value is revised as by the described first modification unit When, start first timer.
9. device according to claim 8, it is characterised in that the first detection module, including:
First receiving unit, for receiving the continuous data frame that second website sends;
First extraction unit, the value for extracting monitoring overhead byte in the continuous data frame successively;
First detection unit, whether the value for the monitoring overhead byte of Detection and Extraction successively is the mark value.
10. device according to claim 8, it is characterised in that second acquisition module, including:
Second extraction unit, for extracting the predetermined reserve bytes in the data frame that second website for receiving sends Value, the predetermined reserve bytes are the byte for depositing second clocking value that second website gets;
Second detection unit, for detecting the value of the predetermined reserve bytes whether more than zero;
Second determining unit, for the value that the testing result of the detection unit is the predetermined reserve bytes be more than zero when, The value of the predetermined reserve bytes is defined as second clocking value.
11. according to any described device in claim 8 to 10, it is characterised in that first determining module, including:
Difference computational unit, for first clocking value to be subtracted into second clocking value, obtains difference;
Quotient computing unit, divided by 2, quotient is obtained for by the difference;
Unit is assert, for regarding as the quotient unidirectionally to be passed between the first network website and second website The time delay in defeated path.
A kind of 12. Time delay measurement devices, are applied in the second website for include the second timer, it is characterised in that institute Stating device includes:
Second detection module, for detecting whether receiving the data frame with mark value of first network website transmission;
Starting module, for the testing result of second detection module be receive first network website transmission with mark During the data frame of note value, start second timer;
Second add module, the flag condition that meets of the first network website is sent to for the mark value to be added to In data frame, the second clocking value obtained when obtaining second timer when the mark value is sent is described to meet The data frame of flag condition is to monitor first data frame that overhead byte is not yet sent;
Sending module, for second clocking value to be sent into the first network website, by the first network website root According to the first clocking value and second clocking value that obtain determine the first network website and second website it Between one-way transmission path time delay, first clocking value be from the first network website to the second website send Mark value is added in the data frame for meeting flag condition in continuous data frame, the first timing is started when the mark value is sent Device, when having the mark value in the data frame that second website for receiving sends, obtains first timing The clocking value that device timing is obtained;
Wherein, second add module, including:
3rd determining unit, for the data frame for meeting flag condition for determining to be sent to the first network website;
Second modification unit, for will the 3rd determining unit determine described in meet described in the data frame of flag condition The value for monitoring overhead byte is revised as the mark value;
Acquiring unit, for being sent in the monitoring overhead byte that the mark value is revised as by the described second modification unit When, obtain the second clocking value obtained during second timer.
13. devices according to claim 12, it is characterised in that second detection module, including:
Second receiving unit, for receiving the continuous data frame that the first network website sends;
3rd extraction unit, the value for extracting the monitoring overhead byte in the data frame successively;
3rd detection unit, whether the value for the monitoring overhead byte of Detection and Extraction successively is the mark value.
14. device according to claim 12 or 13, it is characterised in that the sending module, including:
Adding device, for second clocking value to be added to first network website transmission with the mark value Data frame behind one of data frame predetermined reserve bytes;
Transmitting element, the data frame for adding second clocking value is sent to the first network website.
15. a kind of websites, it is characterised in that the website includes any described time delay in claim 8 to 11 Measurement apparatus.
16. a kind of websites, it is characterised in that the website includes prolonging as described in any in claim 12 to 14 When measurement apparatus.
17. a kind of delay measurement systems, it is characterised in that the delay measurement system includes first network website and the second network , there is two-way isometric transmission path between the first network website and second website in website;
The first network website is the website described in claim 15;
Second website is the website described in claim 16.
CN201310632422.6A 2013-11-29 2013-11-29 Time delay measurement method, apparatus and system Active CN103684908B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310632422.6A CN103684908B (en) 2013-11-29 2013-11-29 Time delay measurement method, apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310632422.6A CN103684908B (en) 2013-11-29 2013-11-29 Time delay measurement method, apparatus and system

Publications (2)

Publication Number Publication Date
CN103684908A CN103684908A (en) 2014-03-26
CN103684908B true CN103684908B (en) 2017-06-06

Family

ID=50321287

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310632422.6A Active CN103684908B (en) 2013-11-29 2013-11-29 Time delay measurement method, apparatus and system

Country Status (1)

Country Link
CN (1) CN103684908B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112636825A (en) * 2020-12-29 2021-04-09 北京格林威尔科技发展有限公司 Method, device and system for measuring time delay in optical transport network
CN114513196A (en) * 2022-01-17 2022-05-17 烽火通信科技股份有限公司 Time delay compensation value calculation method and device
CN115484369A (en) * 2022-08-04 2022-12-16 新石器慧通(北京)科技有限公司 Video frame delay time determination method, device, medium, and remote driving system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102687526A (en) * 2012-02-14 2012-09-19 华为技术有限公司 Delay measurement method and optical transport network device
CN103238284A (en) * 2010-10-05 2013-08-07 法国电信公司 Technique for determining propagation delay of optical signal between two optical devices via optical link

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103238284A (en) * 2010-10-05 2013-08-07 法国电信公司 Technique for determining propagation delay of optical signal between two optical devices via optical link
CN102687526A (en) * 2012-02-14 2012-09-19 华为技术有限公司 Delay measurement method and optical transport network device

Also Published As

Publication number Publication date
CN103684908A (en) 2014-03-26

Similar Documents

Publication Publication Date Title
CN106817225A (en) POE method and apparatus
CN103684908B (en) Time delay measurement method, apparatus and system
CN107302450A (en) A kind of data acquisition session variation and device
CN102880990B (en) Fault processing system
CN105917314A (en) Application error detection method for cloud streaming service, and apparatus and system therefor
CN101834664B (en) SDH (Synchronous Digital Hierarchy) multi-domain comprehensive test device and test method thereof
CN109819352B (en) Optical fiber data processing system architecture and processing method
EP2713270A1 (en) Resource scheduling method and device
CN109472231A (en) Substation's harmonic source location method and device, computer readable storage medium
CN106253950A (en) A kind of bandwidth carrier platform district's recognition methods
CN110535654A (en) Parallel system dispositions method, device and computer equipment based on block chain
CN107231266A (en) The detection method and device of message passage
CN107767588A (en) A kind of cash box condition detection method and atm device
CN110503297A (en) Business scenario acquisition methods, device, electronic equipment and medium
CN107741949A (en) Integration method, device, storage medium and processor
CN104038388B (en) Based on distributed Internet of Things Auto-Test System and method of testing
CN108920346A (en) Web server interface time-consuming statistical method and device
CN107133047A (en) A kind of project operation measure of criterions method and device
CN106849346A (en) A kind of system for testing power distribution automation equipment time adjustment function and timekeeping performance
CN207718361U (en) PCM signal harvester and system
CN102025571A (en) Method and device for measuring packet loss in multi-point link
CN101336520A (en) A method for measuring relative time delay of data service in optical transmitting network
CN105337784B (en) A kind of loss packet test method, test device and system
CN107144417A (en) A kind of method of testing and system of waveguide coaxial converter insertion loss
CN107204892A (en) Power telecom network service data processing method and processing device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant