CN103684908A - Delay measuring method, delay measuring device and delay measuring system - Google Patents

Delay measuring method, delay measuring device and delay measuring system Download PDF

Info

Publication number
CN103684908A
CN103684908A CN201310632422.6A CN201310632422A CN103684908A CN 103684908 A CN103684908 A CN 103684908A CN 201310632422 A CN201310632422 A CN 201310632422A CN 103684908 A CN103684908 A CN 103684908A
Authority
CN
China
Prior art keywords
value
network website
frame
mark value
website
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.)
Granted
Application number
CN201310632422.6A
Other languages
Chinese (zh)
Other versions
CN103684908B (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

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a delay measuring method, a delay measuring device and a delay measuring system, and belongs to the field of network monitoring. The delay measuring method includes adding a flag value in a data frame which is sent to a second website and meets flagging conditions, and starting a first timer when the flag value is sent; when detecting that the received data frame sent by the second website has the flag value, acquiring a first timing value timed by the first timer; acquiring a second timing value sent by the second website; determining delay of an unidirectional transmission path between a first website and the second website. By the delay measuring method, the delay measuring device and the delay measuring system, the delay between the first website and the second website is calculated according to the first timing value recorded at the first website and the second timing value recorded at the second website, so that the problem of inaccurate delay measurement in the prior art is solved, and the effect of improving delay measurement accuracy is achieved.

Description

Time delay measurement method, Apparatus and system
Technical field
The present invention relates to network monitoring field, particularly a kind of Time delay measurement method, Apparatus and system.
Background technology
At OTN(Optical Transport Network, optical transport network) in, because different business is different to the requirement of network delay, conventionally need to carry out Time delay measurement to the transmission path between the website in OTN.
At present, OTN G.709 in agreement to ODUk(Optical channel Data Unit-k) frame definition one for supporting that path monitoring PM layer and serial line interface are monitored to TCMi(i=1~6) layer carries out the overhead byte PM & TCM of Time delay measurement, wherein overhead byte PM & TCM comprises DMP(Delay Measurement of ODUk path, PM layer Time delay measurement) and DMTi(i=1~6) (Delay Measurement of TCMi, TCMi layer Time delay measurement), DMP is for testing the time delay of PM layer, DMTi is respectively used to test TCMi(i=1~6) layer time delay.Due to PM layer and TCMi(i=1~6) Time delay measurement of layer is similar, take PM layer below as example, the Time delay measurement of transmission path between first network website and second network website is described.
Between first network website and second network website, there is a two-way approach, the path of the both direction of this two-way approach is isometric, in the ODUk frame that the ODUk frame that first network website sends to second network website and second network website send to first network website, DMP overhead value is all set to identical value, such as being 0.Time delay measurement method to transmission path between this first network website and this second network website, can comprise: at the sending direction of first network website, DMP overhead value in one of them ODUk frame in the continuous ODUk frame that taking-up sends to second network website, to after this DMP overhead value negate (this DMP overhead value changes to 1), insert in this ODUk frame, and send this ODUk frame to second network website, start Time delay measurement, the timer in first network website starts timing; Corresponding, second network website receives the continuous ODUk frame sending from first network website, when often receiving an ODUk frame, DMP overhead value in the ODUk frame that extraction receives, when the DMP overhead value generation saltus step extracting (the DMP overhead value extracting is different from the DMP overhead value in front extraction), this DMP overhead value is inserted in the ODUk frame of the inserted DMP overhead value that sends to first network website; Corresponding, first network website receives the ODUk frame that second network website sends, when from these ODUk frames, extract DMP overhead value generation saltus step time, Time delay measurement finishes, timer finishes timing, and value when this timer finishes is the time delay size of transmission path between first network website and second network website divided by 2 quotients that obtain.
In realizing process of the present invention, inventor finds that prior art at least exists following problem: because OTN is an asynchronous network, in existing Time delay measurement method, the frame head of the up-downgoing ODUk business of second network website (the ODUk business receiving from first network website and the ODUk business sending to first network website) cannot align, there is certain deviation (maximum deviation may be an ODUk frame), therefore cause the DMP overhead value that second network website extracts from descending ODUk frame can not be inserted at once in the transmission data flow of upgoing O DUk business, thereby make Time delay measurement inaccurate, there is certain error.Such as, when this Time delay measurement method is applied to ODU0 business, ODU0 frame of the most about 90us(of error of the time delay of obtaining is about 90us).
Summary of the invention
In order to solve the inaccurate problem of Time delay measurement in prior art, the embodiment of the present invention provides a kind of Time delay measurement method, Apparatus and system.Described technical scheme is as follows:
First aspect, provides a kind of Time delay measurement method, is applied to include in the first network website of the first timer, and described method comprises:
In the continuous data frame sending to second network website, meet in the Frame of flag condition and add mark value, when described mark value is sent out, start described the first timer, described in meet flag condition first Frame of being not yet sent out for monitoring overhead byte of Frame;
In the Frame that the described second network website that detection receives sends, whether there is described mark value;
If there is described mark value in the Frame that testing result is the described second network website that receives to be sent, obtain the first clocking value that described the first timer timing obtains;
Obtain the second clocking value that described second network website sends, described the second clocking value be by described second network website receive that described first network website sends there is the described Frame of described mark value time, start the second timer, described mark value is being added in the Frame that meets flag condition that sends to described first network website to the clocking value that described the second timer timing getting obtains when described mark value is sent out;
According to described the first clocking value and described the second clocking value, determine the time delay in one-way transmission path between described first network website and described second network website.
In the possible execution mode of the first of first aspect, in the described continuous data frame sending to second network website, meet in the Frame of flag condition and add mark value, when being sent out, described mark value starts described the first timer, comprising:
Determine the Frame that meets flag condition in the continuous data frame sending to described second network website;
The value of monitoring overhead byte described in the described Frame that meets flag condition is revised as to described mark value;
When the described monitoring overhead byte that is modified to described mark value is sent out, start described the first timer.
In conjunction with the possible execution mode of the first of first aspect or first aspect, in the possible execution mode of the second, in the Frame that the described second network website that described detection receives sends, whether there is described mark value, comprising:
Receive the continuous data frame that described second network website sends;
Extract successively the value of monitoring overhead byte in described continuous data frame;
Whether the value of the described monitoring overhead byte of Detection and Extraction is described mark value successively.
In conjunction with the possible execution mode of the second of the possible execution mode of the first of first aspect, first aspect or first aspect, in the third possible execution mode, described in obtain the second clocking value that described second network website sends, comprising:
The value of the predetermined reserve bytes in the Frame that the described second network website that extraction receives sends, described predetermined reserve bytes is for for depositing the byte of described the second clocking value that described second network station for acquiring arrives;
Whether the value that detects described predetermined reserve bytes is greater than zero;
If the value that testing result is described predetermined reserve bytes is greater than zero, the value of described predetermined reserve bytes is defined as to described the second clocking value.The third possible execution mode in conjunction with the possible execution mode of the second of the possible execution mode of the first of first aspect, first aspect, first aspect or first aspect, in the 4th kind of possible execution mode, the described time delay of determining one-way transmission path between described first network website and described second network website according to described the first clocking value and described the second clocking value, comprising:
Described the first clocking value is deducted to described the second clocking value, obtain difference;
Described difference, divided by 2, is obtained to quotient;
Described quotient is regarded as to the time delay in one-way transmission path between described first network website and described second network website.
Second aspect, provides a kind of Time delay measurement method, is applied to include in the second network website of the second timer, and described method comprises:
Detect and whether receive the Frame with mark value that first network website sends;
If testing result be receive that first network website sends there is the Frame of mark value time, start described the second timer;
Described mark value is added in the Frame that meets flag condition that sends to described first network website, when described mark value is sent out, obtain the second clocking value that described the second timer timing obtains, described in meet flag condition first Frame of being not yet sent out for monitoring overhead byte of Frame;
Described the second clocking value is sent to described first network website, the time delay that the first clocking value being obtained by described first network website basis and described the second clocking value are determined one-way transmission path between described first network website and described second network website, described the first clocking value is by described first network website, in the continuous data frame sending to second network website, to be met in the Frame of flag condition to add mark value, when being sent out, described mark value starts the first timer, while thering is described mark value in the Frame sending at the described second network website receiving, obtain the clocking value that described the first timer timing obtains.
In the possible execution mode of the first of second aspect, describedly described mark value is added in the Frame that meets flag condition that sends to described first network website, when described mark value is sent out, obtain the second clocking value that described the second timer timing obtains, comprising:
Determine the Frame that meets flag condition sending to described first network website;
The value of monitoring overhead byte described in the described Frame that meets flag condition is revised as to described mark value;
When the described monitoring overhead byte that is modified to described mark value is sent out, obtain the second clocking value that described the second timer timing obtains.
In conjunction with the possible execution mode of the first of second aspect or second aspect, in the possible execution mode of the second, whether described detection receives the Frame with mark value that first network website sends, and comprising:
Receive the continuous data frame that described first network website sends;
Extract successively the value of the monitoring overhead byte in described Frame;
Whether the value of the described monitoring overhead byte of Detection and Extraction is described mark value successively.
In conjunction with the possible execution mode of the second of the possible execution mode of the first of second aspect, second aspect or second aspect, in the third possible execution mode, described described the second clocking value is sent to described first network website, comprising:
Described the second clocking value is added into the predetermined reserve bytes of one of them Frame after the Frame with described mark value sending to described first network website;
The described Frame that adds described the second clocking value is sent to described first network website.
The third aspect, provides a kind of Time delay measurement device, is applied to include in the first network website of the first timer, and described device comprises:
First adds module, for the continuous data frame sending to second network website, meet in the Frame of flag condition and add mark value, when described mark value is sent out, start described the first timer, described in meet flag condition first Frame of being not yet sent out for monitoring overhead byte of Frame;
Whether first detection module, have described mark value in the Frame sending for detection of the described second network website receiving;
The first acquisition module, is Frame that the described second network website that receives sends while having described mark value for the testing result at described first detection module, obtains the first clocking value that described the first timer timing obtains;
The second acquisition module, the second clocking value sending for obtaining described second network website, described the second clocking value be by described second network website receive that described first network website sends there is the described Frame of described mark value time, start the second timer, described mark value is being added in the Frame that meets flag condition that sends to described first network website to the clocking value that described the second timer timing getting obtains when described mark value is sent out;
The first determination module, described the second clocking value obtaining for described the first clocking value of obtaining according to described the first acquisition module and described the second acquisition module is determined the time delay in one-way transmission path between described first network website and described second network website.
In the possible execution mode of the first of the third aspect, described first adds module, comprising:
The first determining unit, for determining that the continuous data frame sending to described second network website meets the Frame of flag condition;
First revises unit, and the value of monitoring overhead byte for meeting described in described the first determining unit is determined described in the Frame of flag condition is revised as described mark value;
Start unit, while being sent out for the described monitoring overhead byte being revised as described mark value by described the first modification unit, starts described the first timer.
In conjunction with the possible execution mode of the first of the third aspect or the third aspect, in the possible execution mode of the second, described first detection module, comprising:
The first receiving element, the continuous data frame sending for receiving described second network website;
The first extraction unit, monitors the value of overhead byte for extracting successively described continuous data frame;
Whether the first detecting unit is described mark value for the value of the described monitoring overhead byte of Detection and Extraction successively.
In conjunction with the possible execution mode of the second of the possible execution mode of the first of the third aspect, the third aspect or the third aspect, in the third possible execution mode, described the second acquisition module, comprising:
The second extraction unit, for extracting the value of the predetermined reserve bytes of the Frame that the described second network website that receives sends, described predetermined reserve bytes is for for depositing the byte of described the second clocking value that described second network station for acquiring arrives;
Whether the second detecting unit, be greater than zero for detection of the value of described predetermined reserve bytes;
The second determining unit, when the value that is described predetermined reserve bytes for the testing result at described detecting unit is greater than zero, is defined as described the second clocking value by the value of described predetermined reserve bytes.
In conjunction with the third possible execution mode of the possible execution mode of the second of the possible execution mode of the first of the third aspect, the third aspect, the third aspect or the third aspect, in the 4th kind of possible execution mode, described the first determination module, comprising:
Difference computational unit, for described the first clocking value is deducted to described the second clocking value, obtains difference;
Quotient computing unit, for by described difference divided by 2, obtain quotient;
Assert unit, for described quotient being regarded as to the time delay in one-way transmission path between described first network website and described second network website.
Fourth aspect, provides a kind of Time delay measurement device, is applied to include in the second network website of the second timer, and described device comprises:
The second detection module, for detection of the Frame with mark value that whether receives first network website and send;
Start module, for the testing result at described the second detection module be receive that first network website sends there is the Frame of mark value time, start described the second timer;
Second adds module, for described mark value is added into the Frame that meets flag condition that sends to described first network website, when described mark value is sent out, obtain the second clocking value that described the second timer timing obtains, described in meet flag condition first Frame of being not yet sent out for monitoring overhead byte of Frame;
Sending module, for described the second clocking value is sent to described first network website, the time delay that the first clocking value being obtained by described first network website basis and described the second clocking value are determined one-way transmission path between described first network website and described second network website, described the first clocking value is by described first network website, in the continuous data frame sending to second network website, to be met in the Frame of flag condition to add mark value, when being sent out, described mark value starts the first timer, while thering is described mark value in the Frame sending at the described second network website receiving, obtain the clocking value that described the first timer timing obtains.
In the possible execution mode of the first of fourth aspect, described second adds module, comprising:
The 3rd determining unit, for determining the Frame that meets flag condition sending to described first network website;
Second revises unit, and the value of monitoring overhead byte for meeting described in described the 3rd determining unit is determined described in the Frame of flag condition is revised as described mark value;
Acquiring unit, while being sent out for the described monitoring overhead byte being revised as described mark value by described the second modification unit, obtains the second clocking value that described the second timer timing obtains.In conjunction with the possible execution mode of the first of fourth aspect or fourth aspect, in the possible execution mode of the second, described the second detection module, comprising:
The second receiving element, the continuous data frame sending for receiving described first network website;
The 3rd extraction unit, for extracting successively the value of the monitoring overhead byte of described Frame;
Whether the 3rd detecting unit is described mark value for the value of the described monitoring overhead byte of Detection and Extraction successively.
In conjunction with the possible execution mode of the second of the possible execution mode of the first of fourth aspect, fourth aspect or fourth aspect, in the third possible execution mode, described sending module, comprising:
Adding device, for being added into described the second clocking value the predetermined reserve bytes of one of them Frame after the Frame with described mark value sending to described first network website;
Transmitting element, sends to described first network website for adding the described Frame of described the second clocking value.
The 5th aspect, provides a kind of website, and described website comprises as the Time delay measurement device described in the various possible execution mode of the third aspect and the third aspect.
The 6th aspect, provides a kind of website, and described website comprises as the Time delay measurement device described in the various possible execution mode of fourth aspect and fourth aspect.
The 7th aspect, provides a kind of Time delay measurement system, and described Time delay measurement system comprises first network website and second network website, between described first network website and described second network website, has two-way isometric transmission path;
Described first network website provides described website for the 5th aspect;
Described second network website provides described website for the 6th aspect.
Eight aspect, provides a kind of website, and described website comprises receiver and processor, described processor and the coupling of described receiver;
Described processor, for the continuous data frame sending to second network website, meet in the Frame of flag condition and add mark value, when described mark value is sent out, start described the first timer, described in meet flag condition first Frame of being not yet sent out for monitoring overhead byte of Frame;
Whether described processor, have described mark value in the Frame that the described second network website that detection receives sends;
Described processor, in testing result being Frame that the described second network website that receives sends while having described mark value, obtains the first clocking value that described the first timer timing obtains;
Described processor, the second clocking value sending for obtaining described second network website, described the second clocking value be by described second network website receive that described first network website sends there is the described Frame of described mark value time, start the second timer, described mark value is being added in the Frame that meets flag condition that sends to described first network website to the clocking value that described the second timer timing getting obtains when described mark value is sent out;
Described processor, for determining the time delay in one-way transmission path between described first network website and described second network website according to described the first clocking value and described the second clocking value.
In the possible execution mode of the first of eight aspect, described processor, also for determining that the continuous data frame sending to described second network website meets the Frame of flag condition;
Described processor, also for being revised as described mark value by the value of monitoring overhead byte described in the described Frame that meets flag condition;
Described processor, while being also sent out for the described monitoring overhead byte being modified to described mark value, starts described the first timer.
In conjunction with the possible execution mode of the first of eight aspect or eight aspect, in the possible execution mode of the second, described receiver, the continuous data frame sending for receiving described second network website;
Described processor, monitors the value of overhead byte for extracting successively described continuous data frame;
Whether described processor is described mark value for the value of the described monitoring overhead byte of Detection and Extraction successively.
The possible execution mode of the second in conjunction with the possible execution mode of the first of eight aspect, eight aspect or eight aspect, in the third possible execution mode, described processor, also for extracting the value of the predetermined reserve bytes of the Frame that the described second network website that receives sends, described predetermined reserve bytes is for for depositing the byte of described the second clocking value that described second network station for acquiring arrives;
Described processor, also whether the value for detection of described predetermined reserve bytes is greater than zero;
Described processor, while being also greater than zero for the value that is described predetermined reserve bytes in testing result, is defined as described the second clocking value by the value of described predetermined reserve bytes.
In conjunction with the possible execution mode of the second of the possible execution mode of the first of eight aspect, eight aspect, eight aspect or the third possible execution mode of eight aspect, in the 4th kind of possible execution mode, described processor, also, for described the first clocking value is deducted to described the second clocking value, obtain difference;
Described processor, also for by described difference divided by 2, obtain quotient;
Described processor, also for regarding as described quotient the time delay in one-way transmission path between described first network website and described second network website.
The 9th aspect, provides a kind of website, and described website comprises receiver, processor and transmitter, and described processor is coupled with described receiver and described transmitter respectively;
Described processor, for detection of the Frame with mark value that whether receives first network website and send;
Described processor, in testing result, be receive that first network website sends there is the Frame of mark value time, start described the second timer;
Described processor, for described mark value is added into the Frame that meets flag condition that sends to described first network website, when described mark value is sent out, obtain the second clocking value that described the second timer timing obtains, described in meet flag condition first Frame of being not yet sent out for monitoring overhead byte of Frame;
Described transmitter, for described the second clocking value is sent to described first network website, the time delay that the first clocking value being obtained by described first network website basis and described the second clocking value are determined one-way transmission path between described first network website and described second network website, described the first clocking value is by described first network website, in the continuous data frame sending to second network website, to be met in the Frame of flag condition to add mark value, when being sent out, described mark value starts the first timer, while thering is described mark value in the Frame sending at the described second network website receiving, obtain the clocking value that described the first timer timing obtains.
In the possible execution mode of the first aspect the 9th, described processor, also for determining the Frame that meets flag condition sending to described first network website;
Described processor, also for being revised as described mark value by the value of monitoring overhead byte described in the described Frame that meets flag condition;
Described processor, while being also sent out for the described monitoring overhead byte being modified to described mark value, obtains the second clocking value that described the second timer timing obtains.
In conjunction with the possible execution mode of the first of the 9th aspect or the 9th aspect, in the possible execution mode of the second, described receiver, the continuous data frame sending for receiving described first network website;
Described processor, also for extracting successively the value of the monitoring overhead byte of described Frame;
Whether described processor is also described mark value for the value of the described monitoring overhead byte of Detection and Extraction successively.
The possible execution mode of the second in conjunction with the possible execution mode of the first of the 9th aspect, the 9th aspect or the 9th aspect, in the third possible execution mode, described processor, also for being added into described the second clocking value the predetermined reserve bytes of one of them Frame after the Frame with described mark value sending to described first network website;
Described transmitter, also for sending to described first network website by the described Frame that adds described the second clocking value.
The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought is:
By at first network site record from sending mark value to the first clocking value obtaining between this mark value that second network website sends, and obtain second network site record from getting this mark value to the second clocking value that sends this mark value, according to the first clocking value and the second clocking value, calculate the time delay between first network website and second network website; Solved the inaccurate problem of Time delay measurement in prior art; Owing to can obtaining in second network website from getting mark value to the error time that inserts mark value process, therefore, when computation delay size, can deduct this error time, reached the effect that can improve the accuracy of Time delay measurement.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing of required use during embodiment is described is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Figure 1A is the schematic diagram of the ODUk frame structure that provides in part embodiment of the present invention;
Figure 1B is the schematic diagram of the ODUk overhead area that provides in part embodiment of the present invention;
Fig. 1 C is the schematic diagram of one section of OTN network providing in part embodiment of the present invention;
Fig. 2 is the method flow diagram of the Time delay measurement method that provides in one embodiment of the invention;
Fig. 3 is the method flow diagram of the Time delay measurement method that provides in another embodiment of the present invention;
Fig. 4 A is the method flow diagram of the Time delay measurement method that provides in another embodiment of the present invention;
Fig. 4 B is the schematic diagram at first network website transmission Frame providing in one embodiment of the invention;
Fig. 4 C is the schematic diagram at first network website transmission Frame providing in another embodiment of the present invention;
Fig. 4 D is the schematic diagram at second network website transmission Frame providing in one embodiment of the invention;
Fig. 4 E is the schematic diagram at second network website transmission Frame providing in another embodiment of the present invention;
Fig. 4 F is the schematic diagram of the second network station for acquiring error time that provides in part embodiment of the present invention;
Fig. 5 is the schematic diagram that the time delay between first network website and second network website that provides in part embodiment of the present invention is measured;
Fig. 6 is the structural representation of the Time delay measurement device that provides in one embodiment of the invention;
Fig. 7 is the structural representation of the Time delay measurement device that provides in another embodiment of the present invention;
Fig. 8 is the structural representation of the Time delay measurement device that provides in another embodiment of the present invention;
Fig. 9 is the structural representation of the Time delay measurement device that provides in another embodiment of the present invention;
Figure 10 is the structural representation of the website that provides in one embodiment of the invention;
Figure 11 is the structural representation of the website that provides in another embodiment of the present invention;
Figure 12 is the schematic diagram of the Time delay measurement system that provides in one embodiment of the invention.
Embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
For clearer description the present invention, before describing each embodiment of the present invention, the part technical scheme that OTN is related to is enumerated:
In OTN, client's business is mapped in the OPUk territory of ODUk frame structure to be transmitted.Refer to shown in Figure 1A, it shows the schematic diagram of ODUk frame structure in part embodiment of the present invention.ODUk frame length is that 4(is capable) * 3824(row) individual byte, wherein 1~7 of the 1st row classify frame alignment overhead area as, 8~14 of the 1st row is classified OTUk overhead area as, and the 2nd walks to 1~14 of the 4th row classifies ODUk overhead area as, 15~16 classify OPUk overhead area as, and all the other classify OPUk payload area as.
Refer to shown in Figure 1B, schematic diagram of the ODUk overhead area providing in part embodiment of the present invention is provided for it.At OTN G.709 in agreement, in ODUk frame structure, defined specially an expense PM & TCM, this expense is for supporting PM layer and TCMi(i=1~6) layer carries out the overhead byte PM & TCM of Time delay measurement, wherein overhead byte PM & TCM comprises DMP and DMTi(i=1~6), DMP is for testing the time delay of PM layer, and DMTi is respectively used to test TCMi(i=1~6) time delay of layer.By way of example, please participate in shown in Fig. 1 C, schematic diagram of the one section of OTN network providing in part embodiment of the present invention is provided for it, between source A and egress D, may there is other website, such as website B and website C, in actual applications, in the time need to testing the time delay of the transmission path between source A and egress D, can carry out Time delay measurement by DMP, in the time need to carrying out delay test to the layering between source A and egress D, can test by DMT1 the time delay of transmission path between source A and website B, by the time delay of transmission path between DMT2 test station B and website C, by the time delay of transmission path between DMT3 test station C and egress D.
Due to PM layer and TCMi(i=1~6) Time delay measurement of layer is similar, and the present invention only be take PM layer as example, and Time delay measurement is described.
Shown in Figure 2, method flow diagram of the Time delay measurement method providing in one embodiment of the invention is provided for it.Take the transmission path between first network website and second network website is carried out to Time delay measurement as example, this Time delay measurement method can be applied in first network website.This Time delay measurement method can comprise:
201, in the continuous data frame sending to second network website, meet in the Frame of flag condition and add mark value, when being sent out, this mark value starts the first timer;
In actual applications, what first network website can be continuous sends Frame to second network website, first Frame that the Frame that meets flag condition said here is not yet sent out for monitoring overhead byte.That is to say, in the continuous data frame that first network website sends to second network website, monitor first Frame that overhead byte is not yet sent out.
Here the Frame said can be ODUk frame, and the byte in the overhead byte PM & TCM that G.709 monitoring overhead byte can define for OTN in ODUk frame head, such as DMP or DMTi(i=1~6).
Generally, the byte that ODUk frame comprises is many, therefore website completes the time of an ODUk frame transmission long at transmitting terminal, in order to calculate more accurately the time delay between first network website and second network website, the moment that can be sent out at the monitoring overhead byte that adds mark value, start the first timer, open time delay is measured.General, first network website can add mark value in being about to the monitoring overhead byte sending, and after this monitoring overhead byte has been added mark value, first network website can send this mark value at once, now starts the first timer.Due in this case, the moment that mark value is added into monitoring overhead byte is very approaching with the moment that this monitoring overhead byte is sent out, and can be therefore after mark value being added into monitoring overhead byte, startup the first timer.
202, in the Frame that the second network website that detection receives sends, whether there is this mark value;
Generally, second network website can send Frame to first network website continuously by another path, corresponding, first network website can receive the Frame that second network website sends continuously.After first network website receives the Frame of second network website transmission, these Frames are analyzed, can determine this mark value whether in these Frames with insertion in step 201.
203, if there is this mark value in the Frame that testing result is the second network website that receives to be sent, obtain the first clocking value that the first timer timing obtains;
While having this mark value in the Frame that the second network website that goes out to receive in first network site analysis sends, finish the timing (finishing Time delay measurement) of the first timer, now the value of the first timer is defined as the first clocking value.
204, obtain the second clocking value that second network website sends, the second clocking value be by second network website receive that first network website sends there is the Frame of mark value time, start the second timer, in mark value being added into the Frame that meets flag condition that sends to first network website, the clocking value that the second timer timing getting when this mark value is sent out obtains;
205, according to the first clocking value and the second clocking value, determine the time delay in one-way transmission path between first network website and second network website.
In sum, the Time delay measurement method providing in the embodiment of the present invention, by at first network site record from sending mark value to the first clocking value obtaining between this mark value that second network website sends, and obtain second network site record from getting this mark value to the second clocking value that sends this mark value, according to the first clocking value and the second clocking value, calculate the time delay between first network website and second network website; Solved the inaccurate problem of Time delay measurement in prior art; Owing to can obtaining in second network website from getting mark value to the error time that inserts mark value process, therefore, when computation delay size, can deduct this error time, reached the effect that can improve the accuracy of Time delay measurement.
Shown in Figure 3, method flow diagram of the Time delay measurement method providing in another embodiment of the present invention is provided for it.Still take the transmission path between first network website and second network website is carried out to Time delay measurement as example, this Time delay measurement method can be applied in second network website.This Time delay measurement method can comprise:
301, detect and whether receive the Frame with mark value that first network website sends;
This mark value is the value that first network website adds in the some Frames that send.Such as, the mark value of adding in the Frame that first network website is being chosen is 1, this mark value receiving is 1.
Generally, this mark value is the value that first network website and second network website consult.
302, if testing result be receive that first network website sends there is the Frame of mark value time, start the second timer;
303, mark value is added in the Frame that meets flag condition that sends to first network website, when this mark value is sent out, obtain the second clocking value that the second timer timing obtains, the Frame that meets flag condition is first Frame that monitoring overhead byte is not yet sent out;
Generally, second network website is added into mark value at transmitting terminal in the monitoring overhead byte of the Frame that meets flag condition that is about to send to first network website, after mark value has been added, directly this can be monitored to overhead byte and send, now obtain the second clocking value that the second timer timing obtains.
According to OTN, G.709 agreement is known, and this mark value is in the monitoring overhead byte (such as DMP overhead byte) providing in agreement, therefore this mark value need to be added in first Frame that not yet sends monitoring overhead byte.
304, the second clocking value is sent to first network website, the time delay that the first clocking value being obtained by first network website basis and the second clocking value are determined one-way transmission path between first network website and second network website, the first clocking value is by first network website, in the continuous data frame sending to second network website, to be met in the Frame of flag condition to add mark value, this mark value starts the first timer while being sent out, while thering is mark value in the Frame sending at the second network website receiving, obtain the clocking value that the first timer timing obtains.
Because the time limit requirement of this second clocking value of first network stations aware is not high, therefore second network website can add the second clocking value in the rear some Frames that send to first network website, such as inserting this second clocking value in the predetermined reserve bytes of this Frame.Here for carrying the predetermined reserve bytes of the second clocking value, be also that first network website and second network website consult, like this, when first network website receives Frame, can parse the second clocking value in corresponding predetermined reserve bytes.
In sum, the Time delay measurement method providing in the embodiment of the present invention, by second network site record from getting this mark value to send the second clocking value of this mark value to first network website, and this second clocking value is sent to first network website, so that first network website can calculate the time delay first network website and second network website from send this mark value to first network website to the first clocking value and this second clocking value that receive this mark value according to what record; Solved the inaccurate problem of Time delay measurement in prior art; Owing to can obtaining in second network website from getting mark value to the error time that inserts mark value process, therefore, when computation delay size, can deduct this error time, reached the effect that can improve the accuracy of Time delay measurement.
Take to the Time delay measurement in one-way transmission path between first network website and second network website is example, first network website sends Frame (being ODUk frame) to second network website successively through the first transmission path, second network website sends Frame (being ODUk frame) to first network website successively through the second transmission path, wherein the first transmission path and the second transmission path are the two-way isometric transmission path between first network website and second network website, incorporated by reference to Fig. 4 A to Fig. 4 F, the Time delay measurement in one-way transmission path between first network website and second network website is schematically illustrated below.
Refer to shown in Fig. 4 A, method flow diagram of the Time delay measurement method providing in another embodiment of the present invention is provided for it.This Time delay measurement method can comprise:
401, first network website meets in the Frame of flag condition and adds mark value in the continuous data frame sending to second network website, starts the first timer when this mark value is sent out;
Here the Frame said can be ODUk frame, and the byte in the overhead byte PM & TCM that G.709 monitoring overhead byte can define for OTN in ODUk frame head, such as DMP or DMTi(i=1~6).
First network website meets in the Frame of flag condition and adds mark value in the continuous data frame sending to second network website, starts the first timer when this mark value is sent out, and can comprise:
S11, determines the Frame that meets flag condition in the continuous data frame sending to second network website;
Conventionally, first network website is determined the Frame that meets flag condition in the continuous data frame sending to second network website, can comprise: whether the monitoring overhead byte in the Frame that judgement is sending to second network website sends; If judgment result is that, the predetermined monitoring overhead byte in the Frame sending to second network website does not also send, and is defined as Frame to meet the Frame of flag condition; If judgment result is that, the predetermined monitoring overhead byte in the Frame sending to second network website sends, and is defined as next Frame adjacent with Frame to meet the Frame of flag condition.
Because a Frame may need the transmitting time of growing very much, so that guarantee the accuracy of Time delay measurement, just therefore only start the first timer when the byte that can add mark value is sent out.In the first situation, refer to shown in Fig. 4 B, schematic diagram at first network website transmission Frame providing in one embodiment of the invention is provided for it, monitoring overhead byte in the Frame (i frame) sending to second network website has sent, therefore will send to the Frame (i+1 frame) of second network website as the Frame that meets flag condition the next one, when the monitoring overhead byte of i+1 frame is about to be sent out, to this monitoring overhead byte, insert mark value, start the first timer; In the second situation, refer to shown in Fig. 4 C, schematic diagram at first network website transmission Frame providing in another embodiment of the present invention is provided for it, monitoring overhead byte in the Frame (j frame) sending to second network website is not yet sent out, now using this Frame (j frame) as the Frame that meets flag condition, when the monitoring overhead byte of j frame is about to be sent out, to this monitoring overhead byte, insert mark value, start the first timer.
S12, is revised as mark value by meeting the value of monitoring overhead byte in the Frame of flag condition;
In actual applications, monitoring overhead byte takies a byte conventionally, and when initial, the monitoring overhead byte in all Frames that need to send is all set to identical numerical value, such as 0 or 1.Therefore when the value of monitoring overhead byte in meeting the Frame of flag condition is revised as to mark value, can, by meeting the value negate of monitoring overhead byte in the Frame of flag condition, then the value value of serving as a mark after negate be added in the monitoring overhead byte of this Frame.Such as, when the value of monitoring overhead byte in the Frame that meets flag condition is 0, now 1 value of serving as a mark can be added in the monitoring overhead byte of this Frame.Obviously, when if monitoring overhead byte is a byte incessantly (such as being two or more bytes), the value of monitoring overhead byte in meeting the Frame of flag condition can be revised as to a predefined mark value, this mark value is all different from the value of monitoring overhead byte in all Frames of monitoring.
Here it should be noted that, in all Frames of transmission, shared byte number is all identical, and when initial, monitor overhead byte and be also provided with identical numerical value in all Frames.By way of example, the value of the monitoring overhead byte in all Frames that first network website sends to second network website can be all 0, only meets the value of monitoring overhead byte in the Frame of flag condition and is modified to 1.
S13, when the monitoring overhead byte that is modified to mark value is sent out, starts the first timer.
Generally, the byte that ODUk frame has is many, therefore website completes the time of an ODUk frame transmission long at transmitting terminal, in order to calculate more accurately the time delay between first network website and second network website, the moment that can only be sent out at the monitoring overhead byte that adds mark value, start the first timer, open time delay is measured.General, can in being about to the monitoring overhead byte sending, add mark value, after this monitoring overhead byte has been added mark value, first network website can send this mark value at once, therefore now starts the first timer.
402, first network website sends the Frame with mark value to second network website;
Here it should be noted that, in actual applications, because monitoring overhead byte is usually located at the position that the second row the 4th in Frame is listed as, and the byte of Frame is many, when therefore first network website adds mark value in this Frame, the byte of this overhead byte previous section is sent out away, and can send to second network website the byte of this overhead byte and this overhead byte aft section subsequently.That is to say, between step 401 and step 402, there is no proper sequencing, step 402 is only for representing that first network website can send to second network website by the Frame with mark value.
403, second network website detects whether receive the Frame with mark value that first network website sends;
General, first network website sends Frame to second network website continuously, corresponding, second network website can receive the contact data frame that first network website sends, and now, second network website can be analyzed these Frames that receive.
Second network website detects whether receive the Frame with mark value that first network website sends, and can comprise: receive the continuous data frame that first network website sends; Extract successively the value of the monitoring overhead byte in Frame; Whether the value of the monitoring overhead byte of Detection and Extraction is mark value successively.
Because second network website can constantly receive the Frame that first network website sends, therefore in order to carry out Time delay measurement, second network website need to obtain out the value of monitoring overhead byte in each Frame.By way of example, after first network website and second network website consult mark value, at first network website, this mark value can be inserted in the some Frames that send to second network website, corresponding, second network website is when the value of the monitoring overhead byte of extraction Frame, if when the value of extracting is the mark value consulting in advance, can determines and receive the Frame with mark value.Again by way of example, when in all Frames, the value of initial monitoring overhead byte is 0, if first network website is revised as the monitoring overhead byte in one of them Frame at 1 o'clock through step 401, when second network website changes (being 1 from 0 saltus step) in the value of the monitoring overhead byte obtaining successively, monitor the Frame that the value of overhead byte changes and be the Frame with mark value.
404, if testing result be receive that first network website sends there is the Frame of mark value time, second network website starts the second timer;
Owing to conventionally thering is a lot of bytes in Frame, therefore when definite overhead byte is mark value, possible this Frame is not also received completely, therefore in order to reduce error as far as possible, second network website, when receiving the overhead byte with mark value, starts the second timer.
405, second network website is added into mark value in the Frame that meets flag condition that sends to first network website, obtains the second clocking value that the second timer timing obtains when this mark value is sent out;
Generally, second network website is after receiving mark value, in order to shorten the time of Time delay measurement, should this mark value be added in the shortest time in the Frame sending to first network website, the Frame that meets flag condition therefore said here can be first Frame that sends to the monitoring overhead byte of first network website to be not yet sent out conventionally.
Second network website is added into mark value in the Frame that meets flag condition that sends to first network website, obtains the second clocking value that the second timer timing obtains, and can comprise:
S21, determines the Frame that meets flag condition sending to first network website;
Second network website is determined the Frame that meets flag condition in the continuous data frame sending to first network website, can comprise: whether the monitoring overhead byte in the Frame that judgement is sending to first network website sends; If judgment result is that, the predetermined monitoring overhead byte in the Frame sending to first network website does not also send, and is defined as Frame to meet the Frame of flag condition; If judgment result is that, the predetermined monitoring overhead byte in the Frame sending to first network website sends, and is defined as next Frame adjacent with Frame to meet the Frame of flag condition.
In the first situation, refer to shown in Fig. 4 D, schematic diagram at second network website transmission Frame providing in one embodiment of the invention is provided for it, monitoring overhead byte in the Frame (m frame) sending to first network website has sent, and therefore will send to the Frame (m+1 frame) of first network website as the Frame that meets flag condition the next one; In the second situation, refer to shown in Fig. 4 E, schematic diagram at second network website transmission Frame providing in another embodiment of the present invention is provided for it, monitoring overhead byte in the Frame (n frame) sending to first network website is not yet sent out, now using this Frame (n frame) as the Frame that meets flag condition.
Here it should be noted that, first network website can send through the first transmission path while sending Frame to second network website, second network website sends Frame to first network website and can send through the second transmission path, and wherein the first transmission path and the second transmission path are the two-way isometric transmission path between first network website and second network website.Also, first network website constantly sends continuous Frame to second network website by the first transmission path, and meanwhile, second network website constantly sends continuous Frame to first network website by the second transmission path.
S22, is revised as this mark value by meeting the value of monitoring overhead byte in the Frame of flag condition;
By way of example, when the value of monitoring overhead byte only takies a byte, conventionally when being revised as to this mark value, the value of monitoring overhead byte in meeting the Frame of flag condition can will meet the value negate of monitoring overhead byte in the Frame of flag condition, also be, when the value of monitoring overhead byte in the Frame that meets flag condition is 0, the value of this control overhead byte is set to 1.Again by way of example, when the value of monitoring overhead byte takies two or more byte, can also be directly by meeting the value of monitoring overhead byte in the Frame of flag condition, extract, then mark value is added in this Frame that meets flag condition and monitors in overhead byte.
S23, when the monitoring overhead byte that is modified to mark value is sent out, obtains the second clocking value that the second timer timing obtains.
In a possible implementation, refer to Fig. 4 F, schematic diagram of the second network station for acquiring error time providing in part embodiment of the present invention is provided for it, when second network website is at t 1while constantly receiving the monitoring overhead byte with mark value, start the second timer; Determine the Frame that meets flag condition sending to first network website, the mark value of obtaining is added in this Frame that meets flag condition, at t 2constantly send this mark value, now obtaining the second clocking value that the second timer timing obtains is t 2-t 1.
406, second network website sends the Frame with mark value to first network website;
407, in the Frame that the second network website that the detection of first network website receives sends, whether there is this mark value;
In the Frame that the second network website that the detection of first network website receives sends, whether there is mark value, can comprise: receive the continuous data frame that second network website sends; Extract successively the value of monitoring overhead byte in continuous data frame; Whether the value of the monitoring overhead byte of Detection and Extraction is mark value successively.
That is to say, what in step 401, add when first network website is some mark value, in step 407, also needs to detect in the Frame that the second network website that receives sends whether have this mark value.
408, if there is this mark value, the first clocking value that the first timer timing of first network station for acquiring obtains in the Frame that testing result is the second network website that receives to be sent;
In like manner, owing to conventionally thering is a lot of bytes in Frame, therefore when determining that the overhead byte receiving is mark value, possible this Frame is not also received completely, therefore in order to reduce error as far as possible, first network website, when receiving the overhead byte with mark value, finishes the first timer.
That is to say, to be this mark value start when being sent by first network website the first clocking value that the first timer timing obtains finishes the needed time when being received by first network website.
409, second network website sends to first network website by the second clocking value;
Second network website sends to first network website by the second clocking value, can comprise: the predetermined reserve bytes that the second clocking value is added into one of them Frame after the Frame with mark value sending to first network website; The Frame that adds the second clocking value is sent to first network website.Predetermined reserve bytes wherein can be the RES as shown in Figure 1B of the RES(in Frame) in some bytes or a plurality of continuous byte.
Because the second clocking value is that second network website is in the value of the second timer obtaining when first network website sends the Frame that is added with mark value, second clocking value that therefore the second timer can be obtained is added in the some Frames after this Frame, in a certain predetermined reserve bytes being inserted in Frame.
410, the second clocking value that first network station for acquiring second network website sends;
The second clocking value that first network station for acquiring second network website sends, can comprise: extract the value of the predetermined reserve bytes in the Frame that the second network website receive sends, predetermined reserve bytes is for for depositing the byte of the second clocking value that second network station for acquiring arrives; Whether the value that detects predetermined reserve bytes is greater than zero; If the value that testing result is predetermined reserve bytes is greater than zero, the value of predetermined reserve bytes is defined as to the second clocking value.
411, first network website is determined the time delay in one-way transmission path between first network website and second network website according to the first clocking value and the second clocking value.
First network website is determined the time delay in one-way transmission path between first network website and second network website according to the first clocking value and the second clocking value, can comprise: the first clocking value is deducted to the second clocking value, obtain difference; Difference, divided by 2, is obtained to quotient; Quotient is regarded as to the time delay in one-way transmission path between first network website and second network website.
It should be added that, it in the Frame that meets flag condition of saying in step 401, can also be any Frame that sends to the monitoring overhead byte of second network website to be not yet sent out, in this case, if first network website is added into mark value in transmit queue in Frame more backward, for the transmission of first network website, bring in and say whether the value of the monitoring overhead byte in the Frame that need to detect successively soon transmission is mark value, until when the monitoring overhead byte be about to sending being detected and thering is mark value, open the first timer, because the transmitting terminal of first network website all needs Frame to monitor the detection of the value of overhead byte when sending each Frame, therefore can affect the speed that sends data flow to second network website.It in the Frame that meets flag condition of in like manner saying in step 405, can be also any Frame that sends to the monitoring overhead byte of second network website to be not yet sent out, just in this case, because not being adds mark value in first Frame of being not yet sent out of monitoring overhead byte to, and the byte of Frame is many, the time of waiting for is long, therefore the time of Time delay measurement also can be long, and can affect equally the speed that sends data flow to first network website.So when specific implementation, for the Frame of avoiding the impact of the data flow on sending and shorten time of Time delay measurement, only take in the present embodiment meeting flag condition is illustrated as first Frame that monitoring overhead byte is not yet sent out as far as possible.
In sum, the Time delay measurement method providing in the embodiment of the present invention, by adding mark value at first network website, and starts Time delay measurement; In second network station for acquiring, after this mark value, start error measure, this mark value is inserted in the Frame that meets flag condition that sends to first network website, round-off error is measured; At first network station for acquiring second network website, send there is the Frame of mark value time, finish Time delay measurement, according to Time delay measurement and the definite Time Calculation of error measure, obtain the time delay between first network website and second network website; Solved the inaccurate problem of Time delay measurement in prior art; Owing to can obtaining in second network website from getting mark value to the error time that inserts mark value process, therefore, when computation delay size, can deduct this error time, reached the effect that can improve the accuracy of Time delay measurement.
In a kind of possible implementation, shown in Figure 5, the schematic diagram that the time delay between first network website and second network website that it shows provides in part embodiment of the present invention is measured, between this first network website and second network website, there is two-way the first isometric transmission path L1 and the second transmission path L2, wherein the transmitting terminal A of the first transmission path L1 is arranged in first network website, receiving terminal B is arranged in second network website, the transmitting terminal C of the second transmission path L2 is arranged in second network website, and receiving terminal D is arranged in first network website.Transmitting terminal A carries out mark to the Frame that meets flag condition 1 sending to second network website through the first transmission path L1, in this Frame 1, adds mark value, starts the first timer in first network website; Corresponding, the Frame that the receiving terminal B receiving end/sending end A in second network website sends, when receiving the Frame 1 that carries mark value, opens the second timer in second network website; Transmitting terminal C in second network website is inserted into this mark value in the Frame that meets flag condition 2 sending to first network website, when this mark value is sent out away, finishes the second timer; Receiving terminal C in first network website receives the Frame 2 that includes this mark value, finishes the first timer.The first clocking value that the first timer timing is obtained deducts the second clocking value that the second timer timing obtains and obtains difference, and this difference is obtained to quotient divided by 2, and this quotient is the time delay between first network website and second network website.
It should be added that, in actual applications, the first timer of mentioning in above-mentioned each embodiment and the second timer can be counter, and counter is for recording the number of pulse of transmission, determine the time according to the frequency of the pulse number obtaining and pulse or cycle etc.
Shown in Figure 6, structural representation of the Time delay measurement device providing in one embodiment of the invention is provided for it.This Time delay measurement device can comprise: first adds module 602, first detection module 604, the first acquisition module 606, the second acquisition module 608 and the first determination module 610.
First adds module 602, can add mark value for meeting in the continuous data frame sending to second network website in the Frame of flag condition, when this mark value is sent out, start the first timer, the Frame that meets flag condition is first Frame that monitoring overhead byte is not yet sent out;
Whether first detection module 604, have mark value in the Frame that can send for detection of the second network website receiving;
The first acquisition module 606 can be, while having mark value in the Frame that sends of the second network website that receives, to obtain the first clocking value that the first timer timing obtains for the testing result at first detection module 604;
The second acquisition module 608, second clocking value that can send for obtaining second network website, the second clocking value be by second network website receive that first network website sends there is the Frame of mark value time, start the second timer, in the time of in mark value being added into the Frame that meets flag condition that sends to first network website, the clocking value that the second timer timing getting when mark value is sent out obtains;
The first determination module 610, the second clocking value obtaining for the first clocking value of obtaining according to the first acquisition module 606 and the second acquisition module is determined the time delay in one-way transmission path between first network website and second network website.
In sum, the Time delay measurement device providing in the embodiment of the present invention, by at first network site record from sending mark value to the first clocking value obtaining between this mark value that second network website sends, and obtain second network site record from getting this mark value to the second clocking value that sends this mark value, according to the first clocking value and the second clocking value, calculate the time delay between first network website and second network website; Solved the inaccurate problem of Time delay measurement in prior art; Owing to can obtaining in second network website from getting mark value to the error time that inserts mark value process, therefore, when computation delay size, can deduct this error time, reached the effect that can improve the accuracy of Time delay measurement.
Shown in Figure 7, structural representation of the Time delay measurement device providing in another embodiment of the present invention is provided for it.This Time delay measurement device can comprise: first adds module 702, first detection module 704, the first acquisition module 706, the second acquisition module 708 and the first determination module 710.
First adds module 702, can add mark value for meeting in the continuous data frame sending to second network website in the Frame of flag condition, when this mark value is sent out, start the first timer, the Frame that meets flag condition is first Frame that monitoring overhead byte is not yet sent out;
Whether first detection module 704, have mark value in the Frame that can send for detection of the second network website receiving;
The first acquisition module 706 can be, while having mark value in the Frame that sends of the second network website that receives, to obtain the first clocking value that the first timer timing obtains for the testing result at first detection module 704;
The second acquisition module 708, second clocking value that can send for obtaining second network website, the second clocking value be by second network website receive that first network website sends there is the Frame of mark value time, start the second timer, in the time of in mark value being added into the Frame that meets flag condition that sends to first network website, the clocking value that the second timer timing getting when mark value is sent out obtains;
The first determination module 710, second clocking value that can obtain for the first clocking value of obtaining according to the first acquisition module 706 and the second acquisition module is determined the time delay in one-way transmission path between first network website and second network website.
In the possible implementation of the first of the present embodiment, first adds module 702, can comprise: the first determining unit 702a, first revises unit 702b and start unit 702c.
The first determining unit 702a, can be for determining the Frame that meets flag condition in the continuous data frame sending to second network website;
First revises unit 702b, can be revised as mark value for monitoring the value of overhead byte in the Frame that meets flag condition that the first determining unit 702a is determined;
Start unit 702c, in the time of can being sent out for the monitoring overhead byte be revised as mark value by the first modification unit 702b, starts the first timer.
In the possible implementation of the second of the present embodiment, first detection module 704, can comprise: the first receiving element 704a, the first extraction unit 704b and the first detecting unit 704c.
The first receiving element 704a, the continuous data frame that can send for receiving second network website;
The first extraction unit 704b, can be for extracting the value of monitoring overhead byte in continuous data frame successively;
Whether the first detecting unit 704c can be mark value for the value of the monitoring overhead byte of Detection and Extraction successively.
In the third possible implementation of the present embodiment, the second acquisition module 708, can comprise: the second extraction unit 708a, the second detecting unit 708b and the second determining unit 708c.
The second extraction unit 708a, can be for extracting the value of the predetermined reserve bytes in the Frame that the second network website receive sends, and predetermined reserve bytes is for for depositing the byte of the second clocking value that second network station for acquiring arrives;
Whether the second detecting unit 708b, can be greater than for detection of the value of predetermined reserve bytes zero;
The second determining unit 708c, when the value that can be predetermined reserve bytes for the testing result at detecting unit is greater than zero, is defined as the second clocking value by the value of predetermined reserve bytes.
In the 4th kind of possible implementation of the present embodiment, the first determination module 710, can comprise: difference computational unit 710a, quotient computing unit 710b and identification unit 710c.
Difference computational unit 710a, can, for the first clocking value is deducted to the second clocking value, obtain difference;
Quotient computing unit 710b, can, for difference that difference computational unit 710a is calculated divided by 2, obtain quotient;
Assert unit 710c, can regard as for the quotient that quotient computing unit 710b is calculated the time delay in one-way transmission path between first network website and second network website.
In sum, the Time delay measurement device providing in the embodiment of the present invention, by at first network site record from sending mark value to the first clocking value obtaining between this mark value that second network website sends, and obtain second network site record from getting this mark value to the second clocking value that sends this mark value, according to the first clocking value and the second clocking value, calculate the time delay between first network website and second network website; Solved the inaccurate problem of Time delay measurement in prior art; Owing to can obtaining in second network website from getting mark value to the error time that inserts mark value process, therefore, when computation delay size, can deduct this error time, reached the effect that can improve the accuracy of Time delay measurement.
Shown in Figure 8, structural representation of the Time delay measurement device providing in another embodiment of the present invention is provided for it.This Time delay measurement device can comprise: the second detection module 802, startup module 804, second are added module 806 and sending module 808.
The second detection module 802, can be for detection of the Frame with mark value that whether receives first network website and send;
Start module 804, can for the testing result at the second detection module 802 be receive that first network website sends there is the Frame of mark value time, start the second timer;
Second adds module 806, can be for mark value being added in the Frame that meets flag condition that sends to first network website, when this mark value sends, obtain the second clocking value that the second timer timing obtains, the Frame that meets flag condition is first Frame that monitoring overhead byte is not yet sent out;
Sending module 808, can be for the second clocking value be sent to first network website, the time delay that the first clocking value being obtained by first network website basis and the second clocking value are determined one-way transmission path between first network website and second network website, the first clocking value is by first network website, in the continuous data frame sending to second network website, to be met in the Frame of flag condition to add mark value, when sending, this mark value starts the first timer, while thering is mark value in the Frame sending at the second network website receiving, obtain the clocking value that the first timer timing obtains.
In sum, the Time delay measurement device providing in the embodiment of the present invention, by second network site record from getting this mark value to send the second clocking value of this mark value to first network website, and this second clocking value is sent to first network website, so that first network website can calculate the time delay first network website and second network website from send this mark value to first network website to the first clocking value and this second clocking value that receive this mark value according to what record; Solved the inaccurate problem of Time delay measurement in prior art; Owing to can obtaining in second network website from getting mark value to the error time that inserts mark value process, therefore, when computation delay size, can deduct this error time, reached the effect that can improve the accuracy of Time delay measurement.
Shown in Figure 9, structural representation of the Time delay measurement device providing in another embodiment of the present invention is provided for it.This Time delay measurement device can comprise: the second detection module 902, startup module 904, second are added module 906 and sending module 908.
The second detection module 902, can be for detection of the Frame with mark value that whether receives first network website and send;
Start module 904, can for the testing result at the second detection module 902 be receive that first network website sends there is the Frame of mark value time, start the second timer;
Second adds module 906, can be for mark value being added in the Frame that meets flag condition that sends to first network website, when this mark value sends, obtain the second clocking value that the second timer timing obtains, the Frame that meets flag condition is first Frame that monitoring overhead byte is not yet sent out;
Sending module 908, can be for the second clocking value be sent to first network website, the time delay that the first clocking value being obtained by first network website basis and the second clocking value are determined one-way transmission path between first network website and second network website, the first clocking value is by first network website, in the continuous data frame sending to second network website, to be met in the Frame of flag condition to add mark value, when sending, this mark value starts the first timer, while thering is mark value in the Frame sending at the second network website receiving, obtain the clocking value that the first timer timing obtains.
In the possible implementation of the first of the present embodiment, second adds module 906, can comprise: the 3rd determining unit 906a, second revises unit 906b and acquiring unit 906c.
The 3rd determining unit 906a, can be for determining the Frame that meets flag condition sending to first network website;
Second revises unit 906b, can be revised as mark value for monitoring the value of overhead byte in the Frame that meets flag condition that the 3rd determining unit 906a is determined;
Acquiring unit 906c, in the time of can being sent out for the monitoring overhead byte be revised as mark value by the second modification unit 906b, obtains the second clocking value that the second timer timing obtains.
In the possible implementation of the second of the present embodiment, the second detection module 902, can comprise: the second receiving element 902a, the 3rd extraction unit 902b and the 3rd detecting unit 902c.
The second receiving element 902a, the continuous data frame that can send for receiving first network website;
The 3rd extraction unit 902b, can be for extracting the value of the monitoring overhead byte in Frame successively;
Whether the 3rd detecting unit 902c can be mark value for the value of the monitoring overhead byte of Detection and Extraction successively.
In the third possible implementation of the present embodiment, sending module 908, can comprise: adding device 908a and transmitting element 908b.
Adding device 908a, can be for being added into the second clocking value the predetermined reserve bytes of one of them Frame after the Frame with mark value sending to first network website;
Transmitting element 908b, can send to first network website for adding the Frame of the second clocking value.
In sum, the Time delay measurement device providing in the embodiment of the present invention, by second network site record from getting this mark value to send the second clocking value of this mark value to first network website, and this second clocking value is sent to first network website, so that first network website can calculate the time delay first network website and second network website from send this mark value to first network website to the first clocking value and this second clocking value that receive this mark value according to what record; Solved the inaccurate problem of Time delay measurement in prior art; Owing to can obtaining in second network website from getting mark value to the error time that inserts mark value process, therefore, when computation delay size, can deduct this error time, reached the effect that can improve the accuracy of Time delay measurement.
It should be noted that: the Time delay measurement device that above-described embodiment provides is when carrying out Time delay measurement, only the division with above-mentioned each functional module is illustrated, in practical application, can above-mentioned functions be distributed and by different functional modules, completed as required, the internal structure that is about to first network website and second network website is divided into different functional modules, to complete all or part of function described above.In addition, Time delay measurement device and Time delay measurement embodiment of the method that above-described embodiment provides belong to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
Shown in Figure 10, structural representation of the website providing in one embodiment of the invention is provided for it.This first network website can comprise: transmitter 1002, processor 1004, memory 1006 and receiver 1008, wherein, processor 1004 is coupled with transmitter 1002, memory 1006 and receiver 1008 respectively, in memory 1006, store one or more computer applied algorithms, processor 1004 can carry out relevant treatment according to the computer applied algorithm of storage in memory 1006.With the transmission path between first network website and second network website, carry out Time delay measurement while being illustrated, the website shown in Figure 10 can be first network website.
Processor 1004, can add mark value for meeting in the continuous data frame sending to second network website in the Frame of flag condition, when this mark value is sent out, start the first timer, the Frame that meets flag condition is first Frame that monitoring overhead byte is not yet sent out;
Transmitter 1002, can be for sending to second network website by the Frame that is added with mark value;
Whether processor 1004, have mark value in the Frame that can also send for detection of the second network website receiving;
Processor 1004, can also, in testing result being Frame that the second network website that receives sends while having mark value, obtain the first clocking value that the first timer timing obtains;
Processor 1004, second clocking value that can also send for obtaining second network website, the second clocking value be by second network website receive that first network website sends there is the Frame of mark value time, start the second timer, in mark value being added into the Frame that meets flag condition that sends to first network website, the clocking value that the second timer timing getting when this mark value is sent out obtains;
Processor 1004, the second clocking value that first clocking value that can also obtain for basis and the second acquisition module obtain is determined the time delay in one-way transmission path between first network website and second network website.
In the possible implementation of the first of the present embodiment, processor 1004, can also be for determining that the continuous data frame sending to second network website meets the Frame of flag condition;
Processor 1004, can also be revised as mark value for the Frame that meets flag condition of determining being monitored to the value of overhead byte;
Processor 1004, in the time of can also being sent out for the monitoring overhead byte being revised as mark value, starts the first timer.
In the possible implementation of the second of the present embodiment, receiver 1008, the continuous data frame that can send for receiving second network website;
Processor 1004, can also monitor for extracting successively continuous data frame the value of overhead byte;
Whether processor 1004 can also be mark value for the value of the monitoring overhead byte of Detection and Extraction successively.
In the third possible implementation of the present embodiment, processor 1004, can also be for extracting the value of the predetermined reserve bytes of the Frame that the second network website that receives sends, predetermined reserve bytes is for for depositing the byte of the second clocking value that second network station for acquiring arrives;
Whether processor 1004, can also be greater than for detection of the value of predetermined reserve bytes zero;
Processor 1004, when the value that can also be predetermined reserve bytes for the testing result at detecting unit is greater than zero, is defined as the second clocking value by the value of predetermined reserve bytes.
In the 4th kind of possible implementation of the present embodiment, processor 1004, can also, for the first clocking value is deducted to the second clocking value, obtain difference;
Processor 1004, can also for by difference divided by 2, obtain quotient;
Processor 1004, can also be for regarding as quotient the time delay in one-way transmission path between first network website and second network website.
In sum, the first network website providing in the embodiment of the present invention, by at first network site record from sending mark value to the first clocking value obtaining between this mark value that second network website sends, and obtain second network site record from getting this mark value to the second clocking value that sends this mark value, according to the first clocking value and the second clocking value, calculate the time delay between first network website and second network website; Solved the inaccurate problem of Time delay measurement in prior art; Owing to can obtaining in second network website from getting mark value to the error time that inserts mark value process, therefore, when computation delay size, can deduct this error time, reached the effect that can improve the accuracy of Time delay measurement.
Shown in Figure 11, structural representation of the website providing in another embodiment of the present invention is provided for it.This website can comprise: transmitter 1102, processor 1104, memory 1106 and receiver 1108, wherein, processor 1104 is coupled with transmitter 1102, memory 1106 and receiver 1108 respectively, in memory 1106, store one or more computer applied algorithms, processor 1104 can carry out relevant treatment according to the computer applied algorithm of storage in memory 1106.With the transmission path between first network website and second network website, carry out Time delay measurement while being illustrated, the website shown in Figure 11 can be second network website.
Processor 1104, can be for detection of the Frame with mark value that whether receives first network website and send;
Processor 1104, can also in testing result, be receive that first network website sends there is the Frame of mark value time, start the second timer;
Processor 1104, can also be for mark value being added into the Frame that meets flag condition that sends to first network website, when mark value is sent out, obtain the second clocking value that the second timer timing obtains, the Frame that meets flag condition is first Frame that monitoring overhead byte is not yet sent out;
Transmitter 1102, can be for the second clocking value be sent to first network website, the time delay that the first clocking value being obtained by first network website basis and the second clocking value are determined one-way transmission path between first network website and second network website, the first clocking value is by first network website, in the continuous data frame sending to second network website, to be met in the Frame of flag condition to add mark value, when being sent out, mark value starts the first timer, while thering is mark value in the Frame sending at the second network website receiving, obtain the clocking value that the first timer timing obtains.
In the possible implementation of the first of the present embodiment, processor 1104, can also be for determining the Frame that meets flag condition sending to first network website;
Processor 1104, can also be revised as mark value for the Frame that meets flag condition of determining being monitored to the value of overhead byte;
Processor 1104, in the time of can also being sent out for the monitoring overhead byte being revised as mark value, obtains the second clocking value that the second timer timing obtains.
In the possible implementation of the second of the present embodiment, receiver 1108, the continuous data frame that can send for receiving first network website;
Processor 1104, can also be for extracting the value of the monitoring overhead byte of Frame successively;
Whether processor 1104 can also be mark value for the value of the monitoring overhead byte of Detection and Extraction successively.
In the third possible implementation of the present embodiment, processor 1104, can be for being added into the second clocking value the predetermined reserve bytes of one of them Frame after the Frame with mark value sending to first network website;
Transmitter 1102, can send to first network website for adding the Frame of the second clocking value.
In sum, the second network website providing in the embodiment of the present invention, by second network site record from getting this mark value to send the second clocking value of this mark value to first network website, and this second clocking value is sent to first network website, so that first network website can calculate the time delay first network website and second network website from send this mark value to first network website to the first clocking value and this second clocking value that receive this mark value according to what record; Solved the inaccurate problem of Time delay measurement in prior art; Owing to can obtaining in second network website from getting mark value to the error time that inserts mark value process, therefore, when computation delay size, can deduct this error time, reached the effect that can improve the accuracy of Time delay measurement.
Shown in Figure 12, schematic diagram of the Time delay measurement system providing in one embodiment of the invention is provided for it.This Time delay measurement system can comprise: first network website 1202 and second network website 1204, exist two-way isometric transmission path between described first network website 1202 and described second network website 1204.
First network website 1202 can comprise the Time delay measurement device described in Fig. 6 or Fig. 7, can be maybe website described in Figure 10.
Second network website 1204 can comprise the Time delay measurement device described in Fig. 8 or Fig. 9, can be maybe website described in Figure 11.
In sum, the Time delay measurement system providing in the embodiment of the present invention, by adding mark value at first network website, and starts Time delay measurement; In second network station for acquiring, after this mark value, start error measure, this mark value is inserted in the Frame that meets flag condition that sends to first network website, round-off error is measured; At first network station for acquiring second network website, send there is the Frame of mark value time, finish Time delay measurement, according to Time delay measurement and the definite Time Calculation of error measure, obtain the time delay between first network website and second network website; Solved the inaccurate problem of Time delay measurement in prior art; Owing to can obtaining in second network website from getting mark value to the error time that inserts mark value process, therefore, when computation delay size, can deduct this error time, reached the effect that can improve the accuracy of Time delay measurement.
Those of ordinary skills can recognize, unit and the algorithm steps of each example of describing in conjunction with embodiment disclosed herein, can realize with the combination of electronic hardware or computer software and electronic hardware.These functions are carried out with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel can specifically should be used for realizing described function with distinct methods to each, but this realization should not thought and exceeds scope of the present invention.
Those skilled in the art can be well understood to, and for convenience and simplicity of description, the specific works process of the system of foregoing description, device and unit, can, with reference to the corresponding process in preceding method embodiment, not repeat them here.
In the several embodiment that provide in the application, should be understood that disclosed system, apparatus and method can realize by another way.For example, device embodiment described above is only schematic, for example, the division of described unit, can be only that a kind of logic function is divided, during actual realization, can have other dividing mode, for example a plurality of unit or assembly can in conjunction with or can be integrated into another system, or some features can ignore, or do not carry out.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, indirect coupling or the communication connection of device or unit can be electrically, machinery or other form.
The described unit as separating component explanation can or can not be also physically to separate, and the parts that show as unit can be or can not be also physical locations, can be positioned at a place, or also can be distributed in a plurality of network element.Can select according to the actual needs some or all of unit wherein to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can be also that the independent physics of unit exists, and also can be integrated in a unit two or more unit.
If described function usings that the form of SFU software functional unit realizes and during as production marketing independently or use, can be stored in a computer read/write memory medium.Understanding based on such, the part that technical scheme of the present invention contributes to prior art in essence in other words or the part of this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprise that some instructions are with so that a computer equipment (can be personal computer, server, or the network equipment etc.) carry out all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: various media that can be program code stored such as USB flash disk, portable hard drive, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disc or CDs.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited to this, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; can expect easily changing or replacing, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion by the described protection range with claim.

Claims (21)

1. a Time delay measurement method, is applied to include in the first network website of the first timer, it is characterized in that, described method comprises:
In the continuous data frame sending to second network website, meet in the Frame of flag condition and add mark value, when described mark value is sent out, start described the first timer, described in meet flag condition first Frame of being not yet sent out for monitoring overhead byte of Frame;
In the Frame that the described second network website that detection receives sends, whether there is described mark value;
If there is described mark value in the Frame that testing result is the described second network website that receives to be sent, obtain the first clocking value that described the first timer timing obtains;
Obtain the second clocking value that described second network website sends, described the second clocking value be by described second network website receive that described first network website sends there is the described Frame of described mark value time, start the second timer, described mark value is being added in the Frame that meets flag condition that sends to described first network website to the clocking value that described the second timer timing getting obtains when described mark value is sent out;
According to described the first clocking value and described the second clocking value, determine the time delay in one-way transmission path between described first network website and described second network website.
2. method according to claim 1, is characterized in that, meets in the Frame of flag condition and add mark value in the described continuous data frame sending to second network website, starts described the first timer when described mark value is sent out, and comprising:
Determine the Frame that meets flag condition in the continuous data frame sending to described second network website;
The value of monitoring overhead byte described in the described Frame that meets flag condition is revised as to described mark value;
When the described monitoring overhead byte that is modified to described mark value is sent out, start described the first timer.
3. method according to claim 2, is characterized in that, in the Frame that the described second network website that described detection receives sends, whether has described mark value, comprising:
Receive the continuous data frame that described second network website sends;
Extract successively the value of monitoring overhead byte in described continuous data frame;
Whether the value of the described monitoring overhead byte of Detection and Extraction is described mark value successively.
4. method according to claim 1, is characterized in that, described in obtain the second clocking value that described second network website sends, comprising:
The value of the predetermined reserve bytes in the Frame that the described second network website that extraction receives sends, described predetermined reserve bytes is for for depositing the byte of described the second clocking value that described second network station for acquiring arrives;
Whether the value that detects described predetermined reserve bytes is greater than zero;
If the value that testing result is described predetermined reserve bytes is greater than zero, the value of described predetermined reserve bytes is defined as to described the second clocking value.
5. according to arbitrary described method in claim 1 to 4, it is characterized in that, the described time delay of determining one-way transmission path between described first network website and described second network website according to described the first clocking value and described the second clocking value, comprising:
Described the first clocking value is deducted to described the second clocking value, obtain difference;
Described difference, divided by 2, is obtained to quotient;
Described quotient is regarded as to the time delay in one-way transmission path between described first network website and described second network website.
6. a Time delay measurement method, is applied to include in the second network website of the second timer, it is characterized in that, described method comprises:
Detect and whether receive the Frame with mark value that first network website sends;
If testing result be receive that first network website sends there is the Frame of mark value time, start described the second timer;
Described mark value is added in the Frame that meets flag condition that sends to described first network website, when described mark value is sent out, obtain the second clocking value that described the second timer timing obtains, described in meet flag condition first Frame of being not yet sent out for monitoring overhead byte of Frame;
Described the second clocking value is sent to described first network website, the time delay that the first clocking value being obtained by described first network website basis and described the second clocking value are determined one-way transmission path between described first network website and described second network website, described the first clocking value is by described first network website, in the continuous data frame sending to second network website, to be met in the Frame of flag condition to add mark value, when being sent out, described mark value starts the first timer, while thering is described mark value in the Frame sending at the described second network website receiving, obtain the clocking value that described the first timer timing obtains.
7. method according to claim 6, it is characterized in that, described described mark value being added in the Frame that meets flag condition that sends to described first network website obtained the second clocking value that described the second timer timing obtains when described mark value is sent out, and comprising:
Determine the Frame that meets flag condition sending to described first network website;
The value of monitoring overhead byte described in the described Frame that meets flag condition is revised as to described mark value;
When the described monitoring overhead byte that is modified to described mark value is sent out, obtain the second clocking value that described the second timer timing obtains.
8. method according to claim 6, is characterized in that, whether described detection receives the Frame with mark value that first network website sends, and comprising:
Receive the continuous data frame that described first network website sends;
Extract successively the value of the monitoring overhead byte in described Frame;
Whether the value of the described monitoring overhead byte of Detection and Extraction is described mark value successively.
9. according to arbitrary described method in claim 6 to 8, it is characterized in that, described described the second clocking value sent to described first network website, comprising:
Described the second clocking value is added into the predetermined reserve bytes of one of them Frame after the Frame with described mark value sending to described first network website;
The described Frame that adds described the second clocking value is sent to described first network website.
10. a Time delay measurement device, is applied to include in the first network website of the first timer, it is characterized in that, described device comprises:
First adds module, for the continuous data frame sending to second network website, meet in the Frame of flag condition and add mark value, when described mark value is sent out, start described the first timer, described in meet flag condition first Frame of being not yet sent out for monitoring overhead byte of Frame;
Whether first detection module, have described mark value in the Frame sending for detection of the described second network website receiving;
The first acquisition module, is Frame that the described second network website that receives sends while having described mark value for the testing result at described first detection module, obtains the first clocking value that described the first timer timing obtains;
The second acquisition module, the second clocking value sending for obtaining described second network website, described the second clocking value be by described second network website receive that described first network website sends there is the described Frame of described mark value time, start the second timer, described mark value is being added in the Frame that meets flag condition that sends to described first network website to the clocking value that described the second timer timing getting obtains when described mark value is sent out;
The first determination module, described the second clocking value obtaining for described the first clocking value of obtaining according to described the first acquisition module and described the second acquisition module is determined the time delay in one-way transmission path between described first network website and described second network website.
11. devices according to claim 10, is characterized in that, described first adds module, comprising:
The first determining unit, for determining that the continuous data frame sending to described second network website meets the Frame of flag condition;
First revises unit, and the value of monitoring overhead byte for meeting described in described the first determining unit is determined described in the Frame of flag condition is revised as described mark value;
Start unit, while being sent out for the described monitoring overhead byte being revised as described mark value by described the first modification unit, starts described the first timer.
12. devices according to claim 11, is characterized in that, described first detection module, comprising:
The first receiving element, the continuous data frame sending for receiving described second network website;
The first extraction unit, monitors the value of overhead byte for extracting successively described continuous data frame;
Whether the first detecting unit is described mark value for the value of the described monitoring overhead byte of Detection and Extraction successively.
13. devices according to claim 10, is characterized in that, described the second acquisition module, comprising:
The second extraction unit, for extracting the value of the predetermined reserve bytes of the Frame that the described second network website that receives sends, described predetermined reserve bytes is for for depositing the byte of described the second clocking value that described second network station for acquiring arrives;
Whether the second detecting unit, be greater than zero for detection of the value of described predetermined reserve bytes;
The second determining unit, when the value that is described predetermined reserve bytes for the testing result at described detecting unit is greater than zero, is defined as described the second clocking value by the value of described predetermined reserve bytes.
14. according to claim 10 to arbitrary described device in 13, it is characterized in that, described the first determination module, comprising:
Difference computational unit, for described the first clocking value is deducted to described the second clocking value, obtains difference;
Quotient computing unit, for by described difference divided by 2, obtain quotient;
Assert unit, for described quotient being regarded as to the time delay in one-way transmission path between described first network website and described second network website.
15. 1 kinds of Time delay measurement devices, are applied to include in the second network website of the second timer, it is characterized in that, described device comprises:
The second detection module, for detection of the Frame with mark value that whether receives first network website and send;
Start module, for the testing result at described the second detection module be receive that first network website sends there is the Frame of mark value time, start described the second timer;
Second adds module, for described mark value is added into the Frame that meets flag condition that sends to described first network website, when described mark value is sent out, obtain the second clocking value that described the second timer timing obtains, described in meet flag condition first Frame of being not yet sent out for monitoring overhead byte of Frame;
Sending module, for described the second clocking value is sent to described first network website, the time delay that the first clocking value being obtained by described first network website basis and described the second clocking value are determined one-way transmission path between described first network website and described second network website, described the first clocking value is by described first network website, in the continuous data frame sending to second network website, to be met in the Frame of flag condition to add mark value, when being sent out, described mark value starts the first timer, while thering is described mark value in the Frame sending at the described second network website receiving, obtain the clocking value that described the first timer timing obtains.
16. devices according to claim 15, is characterized in that, described second adds module, comprising:
The 3rd determining unit, for determining the Frame that meets flag condition sending to described first network website;
Second revises unit, and the value of monitoring overhead byte for meeting described in described the 3rd determining unit is determined described in the Frame of flag condition is revised as described mark value;
Acquiring unit, while being sent out for the described monitoring overhead byte being revised as described mark value by described the second modification unit, obtains the second clocking value that described the second timer timing obtains.
17. devices according to claim 15, is characterized in that, described the second detection module, comprising:
The second receiving element, the continuous data frame sending for receiving described first network website;
The 3rd extraction unit, for extracting successively the value of the monitoring overhead byte of described Frame;
Whether the 3rd detecting unit is described mark value for the value of the described monitoring overhead byte of Detection and Extraction successively.
18. according to claim 15 to arbitrary described device in 17, it is characterized in that, described sending module, comprising:
Adding device, for being added into described the second clocking value the predetermined reserve bytes of one of them Frame after the Frame with described mark value sending to described first network website;
Transmitting element, sends to described first network website for adding the described Frame of described the second clocking value.
19. 1 kinds of websites, is characterized in that, described website comprises arbitrary described Time delay measurement device in claim 10 to 14.
20. 1 kinds of websites, is characterized in that, described web-site comprises as the Time delay measurement device as described in arbitrary in claim 15 to 18.
21. 1 kinds of Time delay measurement systems, is characterized in that, described Time delay measurement system comprises first network website and second network website, between described first network website and described second network website, have two-way isometric transmission path;
Described first network website is the website described in claim 19;
Described second network website is the website described in claim 20.
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 true CN103684908A (en) 2014-03-26
CN103684908B 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)

Cited By (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

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2965686A1 (en) * 2010-10-05 2012-04-06 France Telecom TECHNIQUE FOR DETERMINING A TIME OF PROPAGATION OF AN OPTICAL SIGNAL BETWEEN TWO OPTICAL EQUIPMENT USING AN OPTICAL LINK
WO2012092903A2 (en) * 2012-02-14 2012-07-12 华为技术有限公司 Delay measurement method and optical transport network device

Cited By (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

Also Published As

Publication number Publication date
CN103684908B (en) 2017-06-06

Similar Documents

Publication Publication Date Title
JP7434417B2 (en) Topology processing method, device, and system
EP3329292B1 (en) Pps tagging of acoustic sample data
CN107037978A (en) Data Migration bearing calibration and system
US8639986B2 (en) Firmware tracing in a storage data communication system
CN103684908A (en) Delay measuring method, delay measuring device and delay measuring system
CN103095492A (en) Data collection method and data collection device
CN106374993A (en) Full-automatic unattended satellite telemetering monitoring platform and data processing method
CN109976975A (en) A kind of disk size prediction technique, device, electronic equipment and storage medium
US20130198362A1 (en) System for Identifying a Server to be Decommissioned
CN103257857A (en) System for managing buffers of time-stamped events
WO2016062154A1 (en) Information acquisition method and device, and communication system
CN107870663A (en) The information recording method and device of a kind of power module
CN113679395B (en) Multichannel parallel real-time brain nerve spike potential signal detection method, device and system
CN103532786A (en) Server synchronization detector as well as synchronous detection method and system
CN104407927A (en) Circuit and method for monitoring synchronous running state of processor
CN110248205B (en) Method and device for packing video recording data
CN108920346A (en) Web server interface time-consuming statistical method and device
US9367821B2 (en) System and method for profiling requests in service systems
CN114520773A (en) Service request response method, device, server and storage medium
US20130202289A1 (en) Method and device for providing on-board failure logging for pluggable optical modules
CN106649352A (en) Data processing method and apparatus
CN112311452B (en) Clock deviation calculation method and device and calculation equipment
CN203911536U (en) Battery management system
CN104980699B (en) A kind of splice displaying system and image-signal processing method therein and device
WO2017202241A1 (en) Crosstalk detection method and apparatus, and operation maintenance server

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