CN109120469A - A kind of line transmission delay calculating method and device - Google Patents

A kind of line transmission delay calculating method and device Download PDF

Info

Publication number
CN109120469A
CN109120469A CN201710495000.7A CN201710495000A CN109120469A CN 109120469 A CN109120469 A CN 109120469A CN 201710495000 A CN201710495000 A CN 201710495000A CN 109120469 A CN109120469 A CN 109120469A
Authority
CN
China
Prior art keywords
message
network element
line
delay
time
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
CN201710495000.7A
Other languages
Chinese (zh)
Other versions
CN109120469B (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 CN201710495000.7A priority Critical patent/CN109120469B/en
Publication of CN109120469A publication Critical patent/CN109120469A/en
Application granted granted Critical
Publication of CN109120469B publication Critical patent/CN109120469B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/06Generation of reports

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Optical Communication System (AREA)

Abstract

The embodiment of the present application discloses a kind of line transmission delay calculating method and device.The program is applied to the first network element or the second network element, and first line and the second route are respectively arranged between the first network element and the second network element.First network element sends first message with first wave length to the second network element by first line, first message is back to the first network element by the second route by the second network element, first network element sends second message with second wave length to the second network element by the second route, second message is back to first network element by first line by the second network element, T11, T12, T21 and T22 should be obtained in the process, and calculate the line transmission delay of first message and the line transmission delay of the second message accordingly.With this solution, the line transmission delay of first wave length and second wave length can be calculated, improve the accuracy for obtaining line transmission delay, and the fiber informations such as abbe number without using optical fiber and fiber lengths.

Description

A kind of line transmission delay calculating method and device
Technical field
This application involves the communications field more particularly to a kind of line transmission delay calculating methods and device.
Background technique
In current Transmission system, the two-way mode of single line is generallyd use between two station network elements and transmits information, it is such as single Fine bidirectional mode.The connection relationship diagram of first network element and the second network element shown in Figure 1, the first network element and in the figure Two network elements transmit information using single fiber bi-directional mode, wherein by an optical fiber connection between the first network element and the second network element, and And the optical fiber is by supporting the optical line interface plate of synchronizing information transmission (English: fiber interface unit for Sync timing, abbreviation: SFIU) it is connected with the first network element and the second network element.In addition, can obtain after simplifying processing to Fig. 1 To Fig. 2, referring to fig. 2, emission port TX and receiving port RX are provided in the first network element and the second network element, the first network element can lead to Cross the message information that itself emission port sends first wave length to the receiving port of the second network element, also, the second network element can The message information for sending second wave length to the receiving port of the first network element by the emission port of itself, realizes the letter of single fiber bi-directional Breath transmitting.
In addition, when transmitting information by the two-way mode of single line, it is sometimes desirable to calculate separately first wave length and second The line transmission of wavelength is delayed, and it is online that line transmission delay refers to that the message of first wave length and the message of second wave length are distinguished The time expended in road.The prior art generallys use following two method and calculates line transmission delay:
First method utilizes 1588 clock synchronization protocol, calculates line transmission delay by timestamp, also, calculating In the process, it is assumed that the delay of the line transmission of first wave length and second wave length is identical.Information interactive process shown in Figure 3, In, in the calculating process of route transmission delay, set the clock of the first network element as the first clock, the clock of the second network element is the Two clocks, also, the wavelength of message that the first network element is sent to the second network element is first wave length, the second network element is sent out to the first network element The wavelength of the message sent is second wave length, and the first network element sends the synchronous report of Sync to the second network element at the t1 moment of the first clock Text includes the t1 moment in the Sync sync message, alternatively, after sending the Sync sync message, the first network element is to second Network element sends the Follow_up comprising the t1 moment and follows message;Second network element second clock t2 reception to should Sync sync message sends Delay_Req request message to the first network element then at the t3 moment of second clock;First network element The first clock t4 reception to the Delay_Req request message, later, the first network element to the second network element send include t4 The Delay_Resp at moment replys message, so that the second network element determines that the first network element receives the reality of the Delay_Req request message The border time.In this case, the second network element can acquisition time stab data t1, t2, t3 and t4, due to assuming first in this method Wavelength and the delay of the line transmission of second wave length are identical, then following formula: t2-t1=Delay+Offset, t4-t3=can be obtained Delay-Offset.In the formula, Offset indicates the time deviation of the first clock and second clock, and 2Delay indicates first wave The total time-consuming of the message of long message and second wave length in the line, and using Delay as the line of first wave length and second wave length Road transmission delay.Accordingly, can be calculated first wave length and second wave length line transmission delay Delay=[(t2-t1)+ (t4-t3)]/2.Further, the time deviation of the first clock and second clock can also be calculated by this way Offset=[(t2-t1)-(t4-t3)]/2.
In the second approach, information is transmitted according to single fiber bi-directional mode, needs to obtain fiber information, the fiber information Abbe number and fiber lengths including optical fiber, are then calculated the delay of first wave length and second wave length according to fiber information Difference determines the line transmission delay of first wave length and the line transmission delay of second wave length further according to the delay inequality.For example, if One wavelength is 1491nm, and second wave length is 1511nm wavelength, i.e. the wavelength interval of first wave length and second wave length is 20nm, if light Fine length is 100km, and the optical fiber for connecting the first network element and the second network element is that G.652 optical fiber, the abbe number of the optical fiber are 15ps/nm/km, then the delay inequality of first wave length and second wave length is about are as follows: 20 × 15 × 100=30ns.According to the delay inequality, then It further calculates to obtain the line transmission delay of first wave length and the line transmission of second wave length is delayed.
But inventor has found in the research process of the application, prolongs if calculating line transmission by first method, by In the real process for transmitting information in the way of single fiber bi-directional, the line transmission of first wave length and second wave length delay not phase Together, there is delay inequality therebetween, therefore line transmission delay is calculated and is inaccurate, or even to be unable to satisfy clock sometimes same The accuracy requirement of step.For example, calculating route by first method if the delay inequality of first wave length and second wave length is 30ns When transmission delay, the error that the first network element and the second network element have 15ns or so about will lead to, and drilling with wireless technology The exhibition of setting out needs the clock synchronisation requirement of each network element to keep the precision of 5ns in some cases, this method is caused to be unable to satisfy nothing The line cooperation service accuracy requirement synchronous to clock.And line transmission delay is calculated by second method, it needs to obtain optical fiber Information, but in practical applications, fiber information can not be often got, so that first wave length and second wave length can not be calculated Line transmission delay.
Summary of the invention
This application provides a kind of line transmission delay calculating method and devices, to solve to be calculated by the prior art Line transmission delay inaccuracy, or fiber information must be got, the problem of line transmission is delayed could be calculated.
In a first aspect, this application provides a kind of line transmission delay calculating methods, which is characterized in that be applied to the One network element, first network element passes through first line respectively and the second route is connected with the second network element, and the line transmission prolongs When calculation method include:
First network element sends first message with first wave length to second network element by first line;
First network element receives second network element and passes through first message that the second route returns, according to described the The sending time and receiving time of one message determine total delay time T11 of first message, and connect from second network element First message is received in the residence time T12 of second network element;
First network element sends second message with second wave length to second network element by the second route;
First network element receives second message that second network element is returned by first line, according to described The sending time and receiving time of two messages determine total delay time T21 of second message, and connect from second network element Second message is received in the residence time T22 of second network element;
First network element calculates the line transmission delay and second of first message according to T11, T12, T21 and T22 The line transmission of message is delayed.
Disclosed line transmission delay calculating method through the embodiment of the present invention, can be calculated the route of first wave length Transmission delay and the line transmission of second wave length delay, compared with the existing technology in first method for, can be improved and obtain The accuracy of line taking road transmission delay.Also, the fiber informations such as abbe number and fiber lengths without using optical fiber, solve In the presence of second method in the prior art, in the case where fiber information can not be obtained, line transmission cannot be obtained The problem of delay.
With reference to first aspect, in a first possible implementation of that first aspect, first network element according to T11, The line transmission of T12, T21 and T22, the line transmission delay and the second message that calculate first message are delayed, comprising:
The difference for calculating the T11 and the T12 takes the difference as the first message in first line and the second route In transmission time T13;
The difference for calculating the T21 and the T22 takes the difference as the second message in first line and the second route In transmission time T23;
The time ratios for calculating the T23 Yu the T13, using the time ratios as the first message and the second message Velocity ratio V1/V2;
According to the V1/V2, determine that the line transmission of first message and the second message respectively in first line prolongs When ratio T1 (L1)/T2 (L1);
According to the total time-consuming and the T1 (L1)/T2 (L1) of first message and the second message in first line, Calculate first message the line transmission of first line be delayed T1 (L1) and second message first line route Transmission delay T2 (L1), and/or, according to total time-consuming in the second route of first message and the second message and described T1 (L1)/T2 (L1) calculates first message and exists in line transmission delay T1 (L2) of the second route and second message The line transmission of second route is delayed T2 (L2).
With reference to first aspect, in a second possible implementation of that first aspect, further includes:
The clock of first network element is set as the first clock, the clock of the second network element is second clock, first net Member transmits the third message with first wave length to the second network element by first line at the t10 moment of the first clock;
First network element receives the 4th message comprising the t20 moment from second network element, and the t20 moment is described At the time of second network element described by reception that second clock records third message;
First network element receives the 5th message with second wave length of the second network element transmission by first line, It and at the time of receiving five message by first clock log is the t40 moment;
First network element receives the 6th message comprising the t30 moment from second network element, and the t30 moment is described At the time of second network element described by transmission that second clock records five message;
First message is being calculated in the line transmission delay of first line and the second message in first network element After the line transmission delay of first line, the delay inequality of first message and the second message is calculated;
Using t10, t20, t30 and t40 as timestamp information, first network element according to the delay inequality, to it is described when Between the object time stamp that stabs in information carry out compensation of delay, wherein object time stamp is smaller to be delayed by line transmission Wavelength transmission information when corresponding timestamp;
First network element calculates between first network element and the second network element according to the timestamp information after compensation of delay Time deviation.
Through the above steps, the time deviation between the first network element and the second network element, also, this method can be calculated Compared with the first method disclosed in the prior art, the precision for calculating time deviation is improved.
With reference to first aspect, the first possible implementation with reference to first aspect, with reference to first aspect second may Implementation, in first aspect in the third possible implementation, further includes:
If the first line is optical fiber, the first message is being calculated after the line transmission delay of first line, meter The ratio for calculating the light velocity and refractive index of first message in first line, using the ratio as first message described The transmission speed of first line;
Calculate first message the first line transmission speed and first message first line line The product of road transmission delay, using the product as the length of the first line.
By the step, route ranging can be realized.
The third possible implementation with reference to first aspect, in the 4th kind of possible implementation of first aspect, also Include:
If the first line is optical fiber, in the line transmission delay and the second message that first message is calculated After line transmission delay, according to the line transmission delay inequality of first message and the second message, the length of the first line The wavelength interval of degree and the first wave length and second wave length, calculates the abbe number of the first line.
Through the above steps, the abbe number that can obtain route meets the diversified demand of staff.
Second aspect, present invention also provides a kind of line transmission delay calculating method,
Applied to the first network element, first network element passes through first line respectively and the second route is connected with the second network element It connects, the line transmission delay calculating method includes:
First network element sends first message with first wave length to second network element by first line;
First network element receives second network element and passes through first message that the second route returns, according to described the The sending time and receiving time of one message determine total delay time T11 of first message;
First network element sends second message with second wave length to second network element by the second route;
First network element receives second message that second network element is returned by first line, according to described The sending time and receiving time of two messages determine total delay time T21 of second message;
T11 and T21 are transmitted to the second network element by first network element.
Disclosed line transmission delay calculating method through the embodiment of the present invention, can be calculated the route of first wave length Transmission delay and the line transmission of second wave length delay, compared with the existing technology in first method for, can be improved and obtain The accuracy of line taking road transmission delay.Also, the fiber informations such as abbe number and fiber lengths without using optical fiber, solve In the presence of second method in the prior art, in the case where fiber information can not be obtained, line transmission cannot be obtained The problem of delay.
The third aspect is applied to the second network element present invention also provides a kind of line transmission delay calculating method, and described the Two network elements pass through first line respectively and the second route is connected with the first network element, the line transmission delay calculating method packet It includes:
Second network element receives the first message with first wave length that first network element is transmitted by first line;
First message is back to first network element by the second route by second network element, records described first Message and receives from first network element total delay time of first message in the residence time T12 of second network element T11;
Second network element receives the second message with second wave length that first network element passes through the second line transmission;
Second message is back to first network element by first line by second network element, records described second Message and receives from first network element total delay time of second message in the residence time T22 of second network element T21;
Second network element calculates the line transmission delay and second of first message according to T11, T12, T21 and T22 The line transmission of message is delayed.
Disclosed line transmission delay calculating method through the embodiment of the present invention, can be calculated the route of first wave length Transmission delay and the line transmission of second wave length delay, compared with the existing technology in first method for, can be improved and obtain The accuracy of line taking road transmission delay.Also, the fiber informations such as abbe number and fiber lengths without using optical fiber, solve In the presence of second method in the prior art, in the case where fiber information can not be obtained, line transmission cannot be obtained The problem of delay.
In conjunction with the third aspect, in the third aspect in the first possible implementation, second network element according to T11, The line transmission of T12, T21 and T22, the line transmission delay and the second message that calculate first message are delayed, comprising:
The difference for calculating the T11 and the T12 takes the difference as the first message in first line and the second route In transmission time T13;
The difference for calculating the T21 and the T22 takes the difference as the second message in first line and the second route In transmission time T23;
The time ratios for calculating the T23 Yu the T13, using the time ratios as the first message and the second message Velocity ratio V1/V2;
According to the V1/V2, determine that the line transmission of first message and the second message respectively in first line prolongs When ratio T1 (L1)/T2 (L1);
According to the total time-consuming and the T1 (L1)/T2 (L1) of first message and the second message in first line, Calculate first message the line transmission of first line be delayed T1 (L1) and second message first line route Transmission delay T2 (L1), and/or, according to total time-consuming in the second route of first message and the second message and described T1 (L1)/T2 (L1) calculates first message and exists in line transmission delay T1 (L2) of the second route and second message The line transmission of second route is delayed T2 (L2).
In conjunction with the third aspect, in second of the third aspect possible implementation, further includes:
The clock of first network element is set as the first clock, the clock of the second network element is second clock, second net Member receives the third message with first wave length that first network element is transmitted by first line, and passes through the second clock Record receives the t20 moment of the third message;
Second network element receives the 7th message comprising the t10 moment from first network element, and the t10 moment is described At the time of first network element described by the transmission of first clock log third message;
Second network element has the 5th message of second wave length to first network element transmission by first line, and leads to Spend the t30 moment that the second clock record transmits the 5th message;
Second network element receives the 8th message comprising the t40 moment from first network element, and the t40 moment is described First network element passes through at the time of receiving five message of the first clock log;
Line transmission of second network element in line transmission delay and the second message that first message is calculated After delay, the delay inequality of first message and the second message is calculated;
Using t10, t20, t30 and t40 as timestamp information, second network element according to the delay inequality, to it is described when Between the object time stamp that stabs in information carry out compensation of delay, wherein object time stamp is smaller to be delayed by line transmission Wavelength transmission information when the timestamp that obtains;
Second network element calculates between first network element and the second network element according to the timestamp information after compensation of delay Time deviation.
In conjunction with the third aspect, the first possible implementation in conjunction with the third aspect may in conjunction with second of second aspect Implementation, in second aspect in the third possible implementation, further includes:
If the first line is optical fiber, the first message is being calculated after the line transmission delay of first line, meter The light velocity and the first message are calculated in the ratio of the refractive index of first line, using the ratio as the first message in the first line Transmission speed;
First message is calculated to pass in the transmission speed of the first line and the first message in the route of first line The product of defeated delay, using the product as the length of the first line.
By the step, route ranging can be realized.
The third possible implementation in conjunction with the third aspect, in the 4th kind of possible implementation of second aspect, also Include:
If the first line is optical fiber, in the line transmission delay and the second message that first message is calculated After line transmission delay, according to the line transmission delay inequality of first message and the second message, the length of the first line The wavelength interval of degree and the first wave length and second wave length, calculates the abbe number of the first line.
Through the above steps, the abbe number that can obtain route meets the diversified demand of staff.
Fourth aspect is applied to the second network element present invention also provides a kind of line transmission delay calculating method, and described the Two network elements pass through first line respectively and the second route is connected with the first network element, the line transmission delay calculating method packet It includes:
Second network element receives the first message with first wave length that first network element is transmitted by first line;
First message is back to first network element by the second route by second network element, and records described Residence time T12 of one message in second network element;
Second network element receives the second message with second wave length that first network element passes through the second line transmission;
Second message is back to first network element by first line by second network element, and records described Residence time T22 of two messages in second network element;
T12 and T22 are transmitted to the first network element by second network element.
Disclosed line transmission delay calculating method through the embodiment of the present invention, can be calculated the route of first wave length Transmission delay and the line transmission of second wave length delay, compared with the existing technology in first method for, can be improved and obtain The accuracy of line taking road transmission delay.Also, the fiber informations such as abbe number and fiber lengths without using optical fiber, solve In the presence of second method in the prior art, in the case where fiber information can not be obtained, line transmission cannot be obtained The problem of delay.
5th aspect, present invention also provides a kind of line transmission delay computing device, the line transmission delay is calculated Device includes the module for executing method and step in the various implementations of first aspect.
6th aspect, present invention also provides a kind of line transmission delay computing device, the line transmission delay is calculated Device includes the module for executing method and step in the various implementations of second aspect.
7th aspect, present invention also provides a kind of line transmission delay computing device, the line transmission delay is calculated Device includes the module for executing method and step in the various implementations of the third aspect.
Eighth aspect, present invention also provides a kind of line transmission delay computing device, the line transmission delay is calculated Device includes the module for executing method and step in the various implementations of fourth aspect.
9th aspect, present invention also provides a kind of line transmission delay computing systems, comprising:
First network element and the second network element, first network element pass through first line and the second route and second net respectively Member is connected;
Wherein, first network element sends first report with first wave length by first line to second network element Text;
First message is back to institute after receiving first message, through the second route by second network element The first network element is stated, and records first message in the residence time T12 of second network element;
T12 is transmitted to the first network element by second network element;
First network element receives second network element and passes through first message that the second route returns, according to described the The sending time and receiving time of one message determine total delay time T11 of first message, and connect from second network element First message is received in the residence time T12 of second network element;
First network element sends second message with second wave length to second network element by the second route;
Second message is back to institute after receiving second message, through first line by second network element The first network element is stated, and records second message in the residence time T22 of second network element;
T22 is transmitted to the first network element by second network element;
First network element receives second message that second network element is returned by first line, according to described The sending time and receiving time of two messages determine total delay time T21 of second message, and connect from second network element Second message is received in the residence time T22 of second network element;
First network element calculates the line transmission delay and second of first message according to T11, T12, T21 and T22 The line transmission of message is delayed.
Tenth aspect, present invention also provides a kind of line transmission delay computing systems, comprising:
First network element and the second network element, first network element pass through first line and the second route and second net respectively Member is connected;
Wherein, first network element sends first report with first wave length by first line to second network element Text;
First message is back to institute after receiving first message, through the second route by second network element The first network element is stated, and records first message in the residence time T12 of second network element;
First network element receives second network element and passes through first message that the second route returns, according to described the The sending time and receiving time of one message determine total delay time T11 of first message;
First network element sends second message with second wave length to second network element by the second route;
Second message is back to institute after receiving second message, through first line by second network element The first network element is stated, and records second message in the residence time T22 of second network element;
First network element receives second message that second network element is returned by first line, according to described The sending time and receiving time of two messages determine total delay time T21 of second message;
T11 and T21 are transmitted to the second network element by first network element;
Second network element calculates the line transmission delay and second of first message according to T11, T12, T21 and T22 The line transmission of message is delayed.
Tenth on the one hand, and present invention also provides a kind of network elements, comprising: transceiver, processor and memory;The transmitting-receiving Device is used to carry out the transmitting-receiving of message between other network elements, and will be from the received message transmissions of other network elements to processor;It is described Processor is used to obtain the message of the transceiver transmission, and executes the program or instruction stored in the memory, thus It realizes with line transmission delay calculating method described in the various implementations of first aspect.
12nd aspect, present invention also provides a kind of network elements, comprising: transceiver, processor and memory;The transmitting-receiving Device is used to carry out the transmitting-receiving of message between other network elements, and will be from the received message transmissions of other network elements to processor;It is described Processor is used to obtain the message of the transceiver transmission, and executes the program or instruction stored in the memory, thus It realizes with line transmission delay calculating method described in the various implementations of second aspect.
13rd aspect, present invention also provides a kind of network elements, comprising: transceiver, processor and memory;The transmitting-receiving Device is used to carry out the transmitting-receiving of message between other network elements, and will be from the received message transmissions of other network elements to processor;It is described Processor is used to obtain the message of the transceiver transmission, and executes the program or instruction stored in the memory, thus It realizes with line transmission delay calculating method described in the various implementations of the third aspect.
Fourteenth aspect, present invention also provides a kind of network elements, comprising: transceiver, processor and memory;The transmitting-receiving Device is used to carry out the transmitting-receiving of message between other network elements, and will be from the received message transmissions of other network elements to processor;It is described Processor is used to obtain the message of the transceiver transmission, and executes the program or instruction stored in the memory, thus It realizes with line transmission delay calculating method described in the various implementations of fourth aspect.
15th aspect, the embodiment of the invention also provides a kind of computer program products, including instruction, when instruction is being counted When being run on calculation machine, so that the method that computer executes first aspect.
16th aspect, the embodiment of the invention also provides a kind of computer program products, including instruction, when instruction is being counted When being run on calculation machine, so that the method that computer executes second aspect.
17th aspect, the embodiment of the invention also provides a kind of computer program products, including instruction, when instruction is being counted When being run on calculation machine, so that the method that computer executes the third aspect.
18th aspect, the embodiment of the invention also provides a kind of computer program products, including instruction, when instruction is being counted When being run on calculation machine, so that the method that computer executes fourth aspect.
19th aspect, the embodiment of the invention also provides a kind of computer storage mediums, which can It is stored with program, which can realize the portion in each embodiment of line transmission delay calculating method that first aspect provides when executing Point or Overall Steps.
20th aspect, the embodiment of the invention also provides a kind of computer storage mediums, which can It is stored with program, which can realize the portion in each embodiment of line transmission delay calculating method that second aspect provides when executing Point or Overall Steps.
20th on the one hand, and the embodiment of the invention also provides a kind of computer storage medium, the computer storage mediums It can be stored with program, which can realize when executing in each embodiment of line transmission delay calculating method that the third aspect provides Part or all of step.
22nd aspect, the embodiment of the invention also provides a kind of computer storage medium, the computer storage mediums It can be stored with program, which can realize when executing in each embodiment of line transmission delay calculating method that fourth aspect provides Part or all of step.
Line transmission delay and the second wave of first wave length can be calculated in disclosed scheme through the embodiment of the present invention Long line transmission delay, compared with the existing technology in first method for, can be improved and obtain line transmission delay Accuracy.Also, the fiber informations such as abbe number and fiber lengths without using optical fiber solve in the prior art second In the presence of kind method, in the case where fiber information can not be obtained, the problem of line transmission is delayed cannot be obtained.
Detailed description of the invention
In order to illustrate more clearly of the technical solution of the application, letter will be made to attached drawing needed in the embodiment below Singly introduce, it should be apparent that, for those of ordinary skills, without any creative labor, It is also possible to obtain other drawings based on these drawings.
Fig. 1 is the connection relationship diagram of the first network element and the second network element disclosed in the prior art;
Fig. 2 is the connection relationship diagram for simplifying the first network element and the second network element that obtain after processing to Fig. 1;
Fig. 3 is a kind of information interactive process schematic diagram disclosed in the prior art;
Fig. 4 is the application scenarios schematic diagram in a kind of line transmission delay calculating method disclosed in the embodiment of the present application;
Fig. 5 is a kind of workflow schematic diagram of line transmission delay calculating method disclosed in the embodiment of the present application;
Fig. 6 is the connection relationship diagram for simplifying the first network element and the second network element that obtain after processing to Fig. 4;
Fig. 7 is to calculate the route of first wave length in a kind of line transmission delay calculating method disclosed in the embodiment of the present application The workflow schematic diagram of transmission delay and the delay of the line transmission of second wave length;
Fig. 8 is the information interactive process signal in a kind of line transmission delay calculating method disclosed in the embodiment of the present application Figure;
Fig. 9 is to calculate the work of time deviation in a kind of line transmission delay calculating method disclosed in the embodiment of the present application Flow diagram;
A kind of application scenarios schematic diagram of line transmission delay calculating method disclosed in Figure 10 the embodiment of the present application;
Figure 11 is the workflow schematic diagram of another line transmission delay calculating method disclosed in the embodiment of the present application;
Figure 12 is the workflow schematic diagram of another line transmission delay calculating method disclosed in the embodiment of the present application;
Figure 13 is the information interactive process signal in a kind of line transmission delay calculating method disclosed in the embodiment of the present application Figure;
Figure 14 is to calculate the work of time deviation in a kind of line transmission delay calculating method disclosed in the embodiment of the present application Flow diagram;
Figure 15 is the workflow schematic diagram of another line transmission delay calculating method disclosed in the embodiment of the present application;
Figure 16 is a kind of structural schematic diagram of line transmission delay computing device disclosed in the embodiment of the present application;
Figure 17 is the structural schematic diagram of the delay computing device of another line transmission disclosed in the embodiment of the present application;
Figure 18 is the structural schematic diagram of the delay computing device of another line transmission disclosed in the embodiment of the present application;
Figure 19 is the structural schematic diagram of the delay computing device of another line transmission disclosed in the embodiment of the present application.
Specific embodiment
With reference to the accompanying drawing, the embodiment of the present invention is described.
The embodiment of the present invention discloses a kind of line transmission delay calculating method and device, to solve through prior art calculating The problem of obtaining line transmission delay inaccuracy, or fiber information must be got, line transmission delay could be calculated.
First embodiment of the invention discloses a kind of line transmission delay calculating method.Application scenarios shown in Figure 4 show It is intended to, first network element passes through first line respectively and the second route is connected with the second network element, wherein first line and the Two routes can be with the message information of transmitting transceiver both direction.In addition, if first line and the second route are optical fiber, First Line Road and the second route can be by supporting the optical line interface plate of synchronizing information transmission (English: fiber interface unit For sync timing, abbreviation: SFIU) or other component be connected with the first network element and the second network element, pass through First Line Road and the second route form two sets of Optical Supervisory Channels (English: optical supervisory channel, abbreviation: OSC).
Line transmission delay calculating method disclosed by the embodiments of the present invention is applied to the first network element, work shown in Figure 5 Make flow diagram, the line transmission delay calculating method the following steps are included:
Step S11, described first network element, which is sent by first line to second network element, has the first of first wave length Message.
For first network element after sending the first message, the second network element receives institute by the receiving port being connected with first line The first message is stated, and passes through the receiving port for the controller of first message transmissions to the second network element;The control of second network element After device processed receives first message, by the first message transmissions to the sending port that is connected with the second route, then by with First message is back to the first network element by the sending port that the second route is connected.
Therefore, the first message can be resident a period of time in the second network element, and the second network element records the first message described the The residence time T12 of two network elements.
Step S12, described first network element receives second network element and passes through first message that the second route returns, root Determine total delay time T11 of first message according to the sending time and receiving time of first message, and from described Two network elements receive first message in the residence time T12 of second network element.
First network element is when sending the first message to the second network element by first line, when will record the transmission of the first message Between, and by the second line receiver arrive first message when, record the first message receiving time.In this case, institute State difference of the total delay time T11 of the first message between the receiving time and sending time of the first message.
Second network element is recording the first message after the residence time T12 of the second network element, and T12 can be transmitted to the first net Member, so that the first network element be made to obtain residence time of first message in second network element of second network element transmission T12。
Step S13, described first network element, which is sent by the second route to second network element, has the second of second wave length Message.
After sending the second message, the second network element is received first network element by the receiving port being connected with the second route Second message, and pass through the receiving port for the controller of second message transmissions to the second network element;Second network element After controller receives second message, by the second message transmissions to the sending port being connected with first line, then pass through Second message is back to the first network element by the sending port being connected with first line.
In this case, the second message can also be resident a period of time in the second network element, and the second network element will record the second report Residence time T22 of the text in second network element.
Step S14, described first network element receives second message that second network element is returned by first line, root Determine total delay time T21 of second message according to the sending time and receiving time of second message, and from described Two network elements receive second message in the residence time T22 of second network element.
First network element is when sending the second message to the second network element by the second route, when will record the transmission of the second message Between, and when receiving second message by first line, record the receiving time of the second message.In this case, institute State difference of the total delay time T21 of the second message between the receiving time and sending time of the second message.
Second network element is recording the second message after the residence time T22 of the second network element, and T22 can be transmitted to the first net Member, so that the first network element be made to obtain residence time of second message in second network element of second network element transmission T22。
Step S15, according to T11, T12, T21 and T22, the line transmission for calculating first message prolongs described first network element When and the second message line transmission delay.
First network element is obtaining total delay time T11 of first message, the first message staying in the second network element Stay time T12, total delay time T21 of second message and second message in the residence time T22 of the second network element, i.e., It can be calculated accordingly, to respectively obtain the line transmission delay of first wave length and the line transmission delay of second wave length.
The embodiment of the present invention discloses a kind of line transmission delay calculating method.Compared with the existing technology, which discloses Line transmission delay calculating method be applied to the first network element, and be respectively arranged with First Line between the first network element and the second network element Road and the second route.In the line transmission delay calculating method, the first network element, which is sent by first line to the second network element, to be had Have the first message of first wave length, after the second network element receives the first message, record the first message the second network element it is resident when Between T12, and the first message is back to first network element by the second route;First network element passes through described in the second line receiver After first message, total delay time T11 of the first message is determined, and obtain the T12 of the second network element transmission;In addition, the first network element By the second route to the second network element send have second wave length the second message, the second network element after receiving the second message, The second message is recorded in the residence time T22 of second network element, and the second message is back to by the first line One network element;After first network element receives the second message by first line, total delay time T21 of the second message is determined, and obtain The T22 of second network element transmission;Then, the line of first wave length can be calculated according to T11, T12, T21 and T22 in the first network element Road transmission delay and the delay of the line transmission of second wave length.
Disclosed line transmission delay calculating method through the embodiment of the present invention, can be calculated the route of first wave length Transmission delay and the line transmission of second wave length delay, compared with the existing technology in first method for, can be improved and obtain The accuracy of line taking road transmission delay.Also, the fiber informations such as abbe number and fiber lengths without using optical fiber, solve In the presence of second method in the prior art, in the case where fiber information can not be obtained, line transmission cannot be obtained The problem of delay.
In order to elaborate the first network element how T11, T12, T21 and T22, the line transmission for calculating first message prolongs When and the second message line transmission delay, as the refinement of Fig. 4 method, the invention discloses second embodiments, pass through second Embodiment has carried out further instruction to step S15.
Also, in order to deepen the understanding to step S15, application scenarios schematic diagram further progress disclosed in Fig. 4 is refined, Obtain Fig. 6.Referring to Fig. 6, the first line between the first network element and the second network element is L1, between the first network element and the second network element Second route is L2, wherein L1 and L2 can transmit information using single fiber bi-directional mode.
Workflow schematic diagram shown in Figure 7, in second embodiment of the invention, first network element according to T11, The line transmission of T12, T21 and T22, the line transmission delay and the second message that calculate first message are delayed, including following Step:
Step S151, the difference for calculating the T11 and the T12, takes the difference as the first message in first line With the transmission time T13 in the second route.
That is, T13=T11-T12.
Step S152, the difference for calculating the T21 and the T22, takes the difference as the second message in first line With the transmission time T23 in the second route.
That is, T23=T21-T22.
Step S153, the time ratios for calculating the T23 and the T13, using the time ratios as the first message with The velocity ratio V1/V2 of second message.
Since the first message and the second message are identical by path length, be first line and the second route length it With then T13 × V1=T23 × V2, hence, it can be determined that V1/V2=T23/T13.
Step S154, according to the V1/V2, first message and the second message line in first line respectively are determined The ratio T1 (L1) of road transmission delay/T2 (L1).
Due to T1 (L1) × V1=L1, also, T2 (L1) × V2=L1, then can determine T1 (L1) × V1=T2 (L1) × V2.Hence, it can be determined that T1 (L1)/T2 (L1)=V2/V1.Wherein, L1 is the length of first line.
Step S155, the total time-consuming according to first message and the second message in first line and the T1 (L1)/T2 (L1), calculates that first message is delayed T1 (L1) in the line transmission of first line and second message is the The line transmission of one route is delayed T2 (L1), and/or, according to the total consumption of first message and the second message in the second route When and the T1 (L1)/T2 (L1), the line transmission delay for calculating first message in the second route it is T1 (L2) and described Second message is delayed T2 (L2) in the line transmission of the second route.
In addition, the specific value of the total time-consuming of the first message and the second message in first line or the first message and The specific value of total time-consuming of second message in the second route, can be by carrying out information biography between the first network element and the second network element Timestamp when passing obtains.
Specifically, information interactive process shown in Figure 2, wherein set the clock of the first network element as the first clock, The clock of two network elements is second clock, and the wavelength for the message that the first network element is sent to the second network element is first wave length, the second network element The wavelength of the message sent to the first network element is second wave length, also, in the information interactive process, the first network element is to the second network element The identical route that the route used when sending message uses when sending message to the first network element with the second network element (is First Line Road is the second route).First network element sends Sync sync message, the Sync to the second network element at the t1 moment of the first clock It include the t1 moment in sync message, alternatively, the first network element sends to the second network element and wraps after sending the Sync sync message Follow_up containing the t1 moment follows message;Second network element is reported in the t2 reception of second clock to the Sync is synchronous Text sends Delay_Req message to the first network element then at the t3 moment of second clock;T4 of first network element in the first clock Reception is to the Delay_Req request message, and later, the first network element sends the Delay_ comprising the t4 moment to the second network element Resp replies message, so that the second network element determines that the first network element receives the real time of the Delay_Req request message.This feelings Under condition, the second network element can acquisition time stab information t1, t2, t3 and t4, accordingly, can determine 2 × Delay=[(t2-t1)+ (t4-t3)].If the route that the first network element uses when sending message to the second network element is first line, according to timestamp information 2 × Delay that t1, t2, t3 and t4 are obtained is the total time-consuming in first line.If the first network element sends message to the second network element The route of Shi Caiyong is the second route, then 2 × the Delay obtained according to timestamp information t1, t2, t3 and t4 is in the second route In total time-consuming.
In this case, since the wavelength of the first message is first wave length, the wavelength of the second message is second wave length, then root According to the specific value for 2 × Delay that above-mentioned steps are calculated, which is total consumption of the first message and the second message When.Wherein, if 2 × Delay is the total time-consuming in first line, the first message and the second message are total in first line Time-consuming specific value is 2 × Delay;If 2 × Delay is the total time-consuming in the second route, the first message and the second report The specific value of total time-consuming of the text in the second route is 2 × Delay.
In addition, set the length of the second route as L2, due to V1/V2=T23/T13, and T1 (L2) × V1=L2, T1 (L2) × V2=L2 can determine T1 (L2)/T2 (L2)=V2/V1, that is to say, that the first message and the second message are respectively The ratio of line transmission delay in two routes is similarly V2/V1, and the first message and the second message are respectively in the second route The ratio of line transmission delay and the first message and the second message ratio phase that the line transmission in first line is delayed respectively Together.In this case, the total time-consuming according to the first message and the second message in the second route and the first message and the second report Ratio T1 (L1)/T2 (L1) of the text line transmission delay in first line respectively, can be calculated first wave length the Two routes line transmission delay T1 (L2) and second wave length the second route line transmission delay T2 (L2).
For line transmission delay calculating method clearly disclosed by the embodiments of the present invention and prior art first method Advantage, below by way of a specific example, respectively to line transmission delay calculating method disclosed by the embodiments of the present invention, and First method in the prior art is illustrated.
Application scenarios schematic diagram shown in Figure 6, wherein assuming that the second clock of the second network element is relative to the first network element The fast 10ns of the first clock, the first network element sends first message with first wave length to the second network element, and the second network element is to first Network element sends second message with second wave length, first wave length 1511nm, second wave length 1491nm, and the first message First line line transmission be delayed T1 (L1)=80ns, the second message first line line transmission delay T2 (L1)= 100ns。
When calculating the line transmission delay of the first message and the second message by first method disclosed in the prior art, First network element is sent at Ta (assuming that Ta=20, the time of the second network element the is Tb=Ta+10=30 this moment) moment to the second network element First message of 1511nm wavelength, then t1=20.Second network element receives the first message at the t2 moment, then t2=Tb+T1 (L1)= Ta+10+T1 (L1)=20+10+80=110.Assuming that the second network element sends protocol massages to the first network element at the Tb+200 moment, then T3=Tb+200=Ta+10+200=20+10+200=230.First network element receives the protocol massages at the t4 moment, then t4= T3-10+T2 (L1)=230-10+100=320.
In this case, according to formula: t2-t1=Delay+Offset, t4-t3=Delay-Offset can be obtained: Offset=[(t2-t1)-(t4-t3)]/2, Delay=[(t2-t1)+(t4-t3)]/2, so that first wave length be calculated Line transmission delay and the line transmission delay of second wave length are 90ns, the time deviation of the first clock and second clock Offset is 0ns, and there are errors with actual conditions for this.That is, calculating route by first method in the prior art If transmission delay, there are error, accuracy is lower.
And use line transmission delay calculating method disclosed by the embodiments of the present invention, it is also assumed that the second network element second when First clock fast 10ns of the clock relative to the first network element, the first network element pass through the first wave length that first line is sent to the second network element Message, and the message of first wave length that the first network element is returned by second the second network element of line receiver, the first network element passes through Second route sends the message of second wave length to the second network element, and the first network element receives the second net by the first light receiver second The message of the second wave length of member passback, first wave length 1511nm, second wave length 1491nm, and first wave length is in First Line The line transmission on road is delayed T1 (L1)=80ns, and second wave length is delayed T2 (L1)=100ns in the line transmission of first line, the Line transmission delay T1 (L2)=100ns of one wavelength in the second route, line transmission delay of the second wave length in the second route T2 (L2)=125ns.Simultaneously for ease of calculation, setting T12 and T22 is 0.
In this case, in first line, the first method according to disclosed in the prior art, can determine t1=20, T2=110, t3=230 and t4=320, according to formula Delay=[(t2-t1)+(t4-t3)]/2, it is known that 2 × Delay= [(t2-t1)+(t4-t3)]=180.
Then, it is calculated using line transmission delay calculating method disclosed by the embodiments of the present invention.Wherein, first wave length Message pass through path are as follows: A1- > B1- > B2- > A2;The path that the message of second wave length passes through are as follows: A2- > B2- > B1- > A1. Accordingly it is found that transmission time T13=T1 (L1)+T1 (the L2)=80ns+ of the first message in first line and the second route 100ns=180ns;Transmission time T23=T2 (L1)+T2 (L2) in first line and the second route of second message= 100ns+125ns=225ns.And disclosed line transmission delay calculating method through the embodiment of the present invention, following meter can be obtained Calculation process:
V1/V2=T23/T13=> V1/V2=225/180;
T1 (L1) × V1=T2 (L1) × V2=> T1 (L1)/T2 (L1)=V2/V1=180/225;
T1 (L1)+T2 (L1)=2 × Delay=> T1 (L1)+T2 (L1)=180.
According to above-mentioned calculating process, can be calculated first wave length first line line transmission delay T1 (L1)= 80ns, second wave length are consistent in line transmission delay T2 (L1)=100ns of first line with hypothesis.With pass through the prior art The calculated result that disclosed first method obtains is compared, and the method increase the precision for calculating line transmission delay.
Further, information interactive process schematic diagram shown in Figure 8 and workflow schematic diagram shown in Fig. 9, In this embodiment or some other embodiment of the present invention, the method can with the following steps are included:
Step S91, the clock of first network element is set as the first clock, and the clock of the second network element is second clock, institute The t10 moment that the first network element is stated in the first clock transmits the third report with first wave length to the second network element by first line Text.
Wherein, the first network element will record the t10 moment.
Step S92, described first network element received from second network element include the t20 moment the 4th message, when the t20 It carves at the time of be reception that second network element is recorded by the second clock third message.
After second network element receives third message, at the time of reception third message can be recorded according to the second clock of itself, That is then the t20 moment includes the 4th message at t20 moment to the transmission of the first network element, so that the first network element obtains the t20 moment.
Step S93, described first network element by first line receive second network element transmission with second wave length 5th message, and be the t40 moment at the time of receive five message by first clock log.
Second network element has the 5th message of second wave length by first line to the transmission of the first network element, in the 5th message At the time of the transmission recorded comprising the second network element by second clock five message, i.e. t30 moment.
After first network element receives the 5th message, can according to the first clock log of itself receive the 5th message when It carves, i.e. the t40 moment.
Step S94, described first network element received from second network element include the t30 moment the 6th message, when the t30 It carves at the time of be transmission that second network element is recorded by second clock, five message.
Second network element includes the 6th message at t30 moment after recording the t30 moment, to the transmission of the first network element, so that the One network element obtains the t30 moment.
Step S95, described first network element be calculated first message first line line transmission delay and Second message calculates the delay inequality of first message and the second message after the line transmission delay of first line.
Step S96, using t10, t20, t30 and t40 as timestamp information, first network element according to the delay inequality, Compensation of delay is carried out to the object time stamp in the timestamp information, wherein the object time stamp is to pass through line transmission Corresponding timestamp when the lesser wavelength transmission information that is delayed.
Step S97, described first network element calculates first network element and second according to the timestamp information after compensation of delay Time deviation between network element.
In above-mentioned steps, delay benefit can be carried out to timestamp according to the delay inequality of first wave length and second wave length It repays, specifically, being carried out according to delay inequality to the corresponding timestamp in the lesser path of line transmission delay when carrying out compensation of delay Compensation.
For example, taking the above example as an example, setting t10=t1=20, t20=t2=110, t30=t3=230 and t40= T4=320, line transmission delay T1 (L1)=80ns of the first wave length in first line, route of the second wave length in first line Transmission delay T2 (L1)=100ns, then first wave length is smaller in the line transmission delay of first line, due to passing through first wave length When first line transmits information, the timestamp got is t20, it is determined that t20 is object time stamp, is needed for t20 progress Compensation of delay.In this case, t20 (compensation)=t20+ delay inequality=110+20=130.
Then, according to the timestamp information after compensation of delay, the time deviation between the first network element and the second network element is calculated, Then Offset=[(t20 (compensation)-t10)-(t40-t30)]/2=[(130-20)-(320-230)]/2=10 (ns), thus First clock fast 10ns of the second clock relative to the first network element that can determine the second network element is consistent with situation is assumed.
Through the above steps, the time deviation between the first network element and the second network element, also, this method can be calculated Compared with the first method disclosed in the prior art, the precision for calculating time deviation is improved.
Further, in the present embodiment or other embodiments of the invention, the method can with the following steps are included:
Firstly, being delayed if the first line is optical fiber line transmission of first message in first line is calculated Afterwards, the ratio for calculating the light velocity and refractive index of first message in first line, using the ratio as first message In the transmission speed of the first line;
Then, first message is calculated in the transmission speed of the first line and first message in first line Line transmission delay product, using the product as the length of the first line.
Furthermore it is also possible to calculate the light velocity and the first message in the ratio of the refractive index of the second route, using the ratio as Then one message calculates the first message in the transmission speed of the second route and the first message the in the transmission speed of the second route The product of the line transmission delay of two routes, which is the length of the second route.
Using above-mentioned steps, it is delayed according to the line transmission being calculated before, can calculates separately to obtain first line With the length of the second route.That is, can be realized route ranging by the step.
Further, in addition, in the present embodiment or other embodiments of the invention, the method can also include following step It is rapid:
If the first line is optical fiber, in the line transmission delay and the second message that first message is calculated After line transmission delay, according to the line transmission delay inequality of first message and the second message, the length of the first line The wavelength interval of degree and the first wave length and second wave length, calculates the abbe number of the first line.
In the calculating process of abbe number, following calculation formula can be used: delay inequality=wavelength interval × route color Dissipate the length of coefficient × route.In this case, according to the formula and the delay inequality of first wave length and second wave length, first The length and first wave length of route and the wavelength interval of second wave length, can be calculated the abbe number of first line.
Wherein, the wavelength interval of the first wave length and second wave length refers to the difference of first wave length and second wave length. For example, then the difference of first wave length and second wave length is 20nm if first wave length is 1511nm, second wave length 1491nm.
Furthermore it is also possible to according to the calculation formula: delay inequality=wavelength interval × route abbe number × route length Degree and the delay inequality of first wave length and second wave length, the second route length and first wave length and the wavelength of second wave length between Every the abbe number of the second route of calculating.
Through the above steps, the abbe number that can obtain route meets the diversified demand of staff.
Pass through the above-mentioned introduction to line transmission delay calculating method disclosed in each embodiment of the present invention, it is known that by this The route of wavelength can be calculated when network element transmits information by single fiber bi-directional mode in line transmission delay calculating method Transmission delay can also further realize route ranging, and obtain the abbe number of route.It is disclosed compared with the existing technology For the first calculation method, line transmission delay calculating method disclosed in each embodiment of the present invention, which improves, calculates route biography The accuracy of defeated delay, also, compared with the second method disclosed in the prior art, this method does not need pre- in calculating process Fiber information (such as abbe number and fiber lengths of optical fiber) first is obtained, therefore, the case where can not get line information Under, remain to the line transmission delay that first wave length and second wave length is calculated.
Also, line transmission delay calculating method disclosed by the embodiments of the present invention can be applied to a variety of communication networks, example Such as, application scenarios schematic diagram shown in Figure 10, this method can be applied to the forward pass net and passback net of 5G system.In the figure, BC is the abbreviation of boundary clock, indicates boundary clock;BBU is the abbreviation of building base band unit, is indicated Baseband processing unit;RRU is the abbreviation of radio remote unit, indicates Remote Radio Unit.
In addition, line transmission delay calculating method disclosed by the embodiments of the present invention is not limited only to the applied field of single fiber bi-directional Scape can also be applied to any other transmission medium, if the transmission medium can transmit the message information of different wave length, and And support two-way signal transmission.In this case, first line and the second route can be optical fiber, can also be wireless Transmission line etc., it is not limited in the embodiment of the present invention.
Another embodiment of the present invention discloses a kind of line transmission delay calculating method, and this method is applied to the first network element, institute State that the first network element passes through first line respectively and the second route is connected with the second network element.Workflow shown in Figure 11 is shown Be intended to, line transmission delay calculating method disclosed by the embodiments of the present invention the following steps are included:
Step S21, described first network element, which is sent by first line to second network element, has the first of first wave length Message.
For first network element after sending the first message, the second network element receives institute by the receiving port being connected with first line The first message is stated, and passes through the receiving port for the controller of first message transmissions to the second network element;The control of second network element After device processed receives first message, by the first message transmissions to the sending port that is connected with the second route, then by with First message is back to the first network element by the sending port that the second route is connected.
Therefore, the first message can be resident a period of time in the second network element, and the second network element records the first message described the The residence time T12 of two network elements.
Step S22, described first network element receives second network element and passes through first message that the second route returns, root Total delay time T11 of first message is determined according to the sending time and receiving time of first message.
First network element is when sending the first message to the second network element by first line, when will record the transmission of the first message Between, and by the second line receiver arrive first message when, record the first message receiving time.In this case, institute State difference of the total delay time T11 of the first message between the receiving time and sending time of the first message.
Step S23, described first network element, which is sent by the second route to second network element, has the second of second wave length Message.
After sending the second message, the second network element is received first network element by the receiving port being connected with the second route Second message, and pass through the receiving port for the controller of second message transmissions to the second network element;Second network element After controller receives second message, by the second message transmissions to the sending port being connected with first line, then pass through Second message is back to the first network element by the sending port being connected with first line.
In this case, the second message can also be resident a period of time in the second network element, and the second network element will record the second report Residence time T22 of the text in second network element.
Step S24, described first network element receives second message that second network element is returned by first line, root Total delay time T21 of second message is determined according to the sending time and receiving time of second message.
First network element is when sending the second message to the second network element by the second route, when will record the transmission of the second message Between, and when receiving second message by first line, record the receiving time of the second message.In this case, institute State difference of the total delay time T21 of the second message between the receiving time and sending time of the second message.
Step S25, T11 and T21 are transmitted to the second network element by described first network element.
Second network element is according to the first message in the residence time T12 of second network element, the second message described The line transmission of residence time T22, T11 and T21 of two network elements, the line transmission delay and the second message that calculate the first message prolong When.
First wave can be calculated in disclosed line transmission delay calculating method, the second network element through the embodiment of the present invention The line transmission of long line transmission delay and second wave length is delayed, compared with the existing technology in first method for, energy It is enough to improve the accuracy for obtaining line transmission delay.Also, the optical fiber such as abbe number and fiber lengths without using optical fiber are believed Breath, in the presence of solving second method in the prior art, in the case where that can not obtain fiber information, cannot obtain The problem of line transmission is delayed.
In above-mentioned each embodiment, a kind of line transmission delay calculating method applied to the first network element is disclosed.Phase It answers, a kind of line transmission delay calculating method is disclosed in another embodiment of the present invention, this method is applied to the second network element, described Second network element passes through first line respectively and the second route is connected with the first network element, and application scenarios schematic diagram can be found in Fig. 4 And Fig. 6.
Workflow schematic diagram shown in Figure 12, line transmission delay calculating method packet disclosed by the embodiments of the present invention Include following steps:
Step S31, described second network element receive first network element by first line transmit with first wave length First message.
Step S32, first message is back to first network element by the second route by described second network element, record First message and receives the total of first message from first network element in the residence time T12 of second network element Delay time T11.
Second network element receives first message by the receiving port being connected with first line, and passes through the receiving end Mouthful by the controller of first message transmissions to the second network element;After the controller of second network element receives first message, By the first message transmissions to the sending port being connected with the second route, then the sending port by being connected with the second route will First message is back to the first network element.
Therefore, the first message can be resident a period of time in the second network element, and the second network element will record the first message described The residence time T12 of second network element.
In addition, the first network element is receiving after the first message that the second route returns, it can be according to the transmission of the first message Time and receiving time determine total delay time T11 of the first message, and T11 is transmitted to the second network element.
Step S33, described second network element receives first network element by the second line transmission with second wave length Second message.
Step S34, second message is back to first network element by first line by described second network element, record Second message and receives the total of second message from first network element in the residence time T22 of second network element Delay time T21.
Second network element receives second message by the receiving port being connected with the second route, and passes through the receiving end Mouthful by the controller of second message transmissions to the second network element;After the controller of second network element receives second message, By the second message transmissions to the sending port being connected with first line, then the sending port by being connected with first line will Second message is back to the first network element.
In this case, the second message can also be resident a period of time in the second network element, and the second network element will record the second report Residence time T22 of the text in second network element.
In addition, the first network element is receiving after the second message that first line returns, it can be according to the transmission of the second message Time and receiving time determine total delay time T21 of the second message, and T21 is transmitted to the second network element.
Step S35, according to T11, T12, T21 and T22, the line transmission for calculating first message prolongs described second network element When and the second message line transmission delay.
The embodiment of the present invention discloses a kind of line transmission delay calculating method.Compared with the existing technology, which discloses Line transmission delay calculating method be applied to the second network element, and be respectively arranged with First Line between the first network element and the second network element Road and the second route.Disclosed line transmission delay calculating method through the embodiment of the present invention, can be calculated first wave length Line transmission delay and second wave length line transmission be delayed, compared with the existing technology in first method for, can Improve the accuracy for obtaining line transmission delay.Also, the fiber informations such as abbe number and fiber lengths without using optical fiber, In the presence of solving second method in the prior art, in the case where fiber information can not be obtained, line cannot be obtained The problem of road transmission delay.
In order to how elaborate the second network element according to T11, T12, T21 and T22, calculate the route of the first wave length Transmission delay and the delay of the line transmission of second wave length, as the refinement of Figure 12 method, the invention discloses another embodiments, lead to It crosses the embodiment and further instruction has been carried out to step S35.Wherein, the application scenarios schematic diagram of the embodiment can be such as Fig. 6 institute Show.
In the embodiment, according to T11, T12, T21 and T22, the route for calculating first message passes second network element The line transmission of defeated delay and the second message is delayed, comprising the following steps:
The difference for calculating the T11 and the T12 takes the difference as the first message in first line and the second route In transmission time T13, that is to say, that T13=T11-T12.
The difference for calculating the T21 and the T22 takes the difference as the second message in first line and the second route In transmission time T23, that is to say, that T23=T21-T22.
The time ratios for calculating the T23 Yu the T13, using the time ratios as the first message and the second message Velocity ratio V1/V2.It is first line and the second route since the first message and the second message are identical by path length The sum of length, then T13 × V1=T23 × V2, hence, it can be determined that V1/V2=T23/T13.
According to the V1/V2, determine that the line transmission of first message and the second message respectively in first line prolongs When ratio T1 (L1)/T2 (L1).Due to T1 (L1) × V1=L1, also, T2 (L1) × V2=L1, then can determine T1 (L1) × V1=T2 (L1) × V2.Hence, it can be determined that T1 (L1)/T2 (L1)=V2/V1.Wherein, L1 is the length of first line.
According to the total time-consuming and the T1 (L1)/T2 (L1) of first message and the second message in first line, Calculate first message the line transmission of first line be delayed T1 (L1) and second message first line route Transmission delay T2 (L1), and/or, according to total time-consuming in the second route of first message and the second message and described T1 (L1)/T2 (L1) calculates first message and exists in line transmission delay T1 (L2) of the second route and second message The line transmission of second route is delayed T2 (L2).
In above-mentioned steps, the specific value or first of the total time-consuming of the first message and the second message in first line The specific value of the total time-consuming of message and the second message in the second route, can be by carrying out between the first network element and the second network element Timestamp when information is transmitted obtains.
Specifically, information interactive process shown in Figure 2, wherein set the clock of the first network element as the first clock, The clock of two network elements is second clock, and the wavelength for the message that the first network element is sent to the second network element is first wave length, the second network element The wavelength of the message sent to the first network element is second wave length, also, in the information interactive process, the first network element is to the second network element The identical route that the route used when sending message uses when sending message to the first network element with the second network element (is First Line Road is the second route).First network element sends Sync sync message, the Sync to the second network element at the t1 moment of the first clock It include the t1 moment in sync message, alternatively, the first network element sends to the second network element and wraps after sending the Sync sync message Follow_up containing the t1 moment follows message;Second network element is reported in the t2 reception of second clock to the Sync is synchronous Text sends Delay_Req message to the first network element then at the t3 moment of second clock;T4 of first network element in the first clock Reception is to the Delay_Req request message, and later, the first network element sends the Delay_ comprising the t4 moment to the second network element Resp replies message, so that the second network element determines that the first network element receives the real time of the Delay_Req request message.This feelings Under condition, the second network element can acquisition time stab information t1, t2, t3 and t4, accordingly, can determine 2 × Delay=[(t2-t1)+ (t4-t3)].If the route that the first network element uses when sending message to the second network element is first line, according to timestamp information 2 × Delay that t1, t2, t3 and t4 are obtained is the total time-consuming in first line.If the first network element sends message to the second network element The route of Shi Caiyong is the second route, then 2 × the Delay obtained according to timestamp information t1, t2, t3 and t4 is in the second route In total time-consuming.
In this case, since the wavelength of the first message is first wave length, the wavelength of the second message is second wave length, then root According to the specific value for 2 × Delay that above-mentioned steps are calculated, which is total consumption of the first message and the second message When.Wherein, if 2 × Delay is the total time-consuming in first line, the first message and the second message are total in first line Time-consuming specific value is 2 × Delay;If 2 × Delay is the total time-consuming in the second route, the first message and the second report The specific value of total time-consuming of the text in the second route is 2 × Delay.
In addition, set the length of the second route as L2, due to V1/V2=T23/T13, and T1 (L2) × V1=L2, T1 (L2) × V2=L2 can determine T1 (L2)/T2 (L2)=V2/V1, that is to say, that the first message and the second message are respectively The ratio of line transmission delay in two routes is similarly V2/V1, and the first message and the second message are respectively in the second route The ratio of line transmission delay and the first message and the second message ratio phase that the line transmission in first line is delayed respectively Together.In this case, the total time-consuming according to the first message and the second message in the second route and the first message and the second report Ratio T1 (L1)/T2 (L1) of the text line transmission delay in first line respectively, can be calculated first wave length the Two routes line transmission delay T1 (L2) and second wave length the second route line transmission delay T2 (L2).
Further, workflow shown in information interactive process schematic diagram and Figure 14 shown in Figure 13 is illustrated Figure, in this embodiment or some other embodiment of the present invention, the method can with the following steps are included:
Step S141, the clock of first network element is set as the first clock, and the clock of the second network element is second clock, institute It states the second network element and receives the third message with first wave length that first network element is transmitted by first line, and by described Second clock records the t20 moment for receiving the third message.
Step S142, described second network element receives the 7th message comprising the t10 moment, the t10 from first network element At the time of moment is first network element described by the transmission of first clock log third message.
First network element is when transmitting third message to the second network element, at the time of will record transmission third message, i.e. when t10 It carves, and by transmitting the 7th message to the second network element, the second network element is made to obtain the t10 moment.
Step S143, described second network element has the 5th of second wave length to first network element transmission by first line Message, and pass through the t30 moment of second clock record transmission the 5th message.
Step S144, described second network element receives the 8th message comprising the t40 moment, the t40 from first network element Moment is that first network element passes through at the time of receiving five message of the first clock log.
First network element will record at the time of receive five messages, i.e. the t40 moment when receiving five messages, and lead to It crosses to eightth message of the second network element transmission comprising the t40 moment, the second network element is made to obtain the t40 moment.
Step S145, described second network element is in the line transmission delay and the second message that first message is calculated After line transmission delay, the delay inequality of first message and the second message is calculated.
Step S146, using t10, t20, t30 and t40 as timestamp information, second network element according to the delay inequality, Compensation of delay is carried out to the object time stamp in the timestamp information, wherein the object time stamp is to pass through line transmission The timestamp obtained when the lesser wavelength transmission information that is delayed.
Step S147, described second network element calculates first network element and the according to the timestamp information after compensation of delay Time deviation between two network elements.
Through the above steps, the time deviation between the first network element and the second network element, also, this method can be calculated Compared with the first method disclosed in the prior art, the precision for calculating time deviation is improved.
Further, in the present embodiment or other embodiments of the invention, the method can with the following steps are included:
Firstly, being delayed if the first line is optical fiber line transmission of first message in first line is calculated Afterwards, the ratio for calculating the light velocity and refractive index of first message in first line, using the ratio as first message In the transmission speed of the first line;
Then, first message is calculated in the transmission speed of the first line and first message in first line Line transmission delay product, using the product as the length of the first line.
Furthermore it is also possible to calculate the light velocity and the first message in the ratio of the refractive index of the second route, using the ratio as Then one message calculates the first message in the transmission speed of the second route and the first message the in the transmission speed of the second route The product of the line transmission delay of two routes, which is the length of the second route.
Using above-mentioned steps, it is delayed according to the line transmission being calculated before, can calculates separately to obtain first line With the length of the second route.That is, can be realized route ranging by the step.
Further, in addition, in the present embodiment or other embodiments of the invention, the method can also include following step It is rapid:
If the first line is optical fiber, in the line transmission delay and the second message that first message is calculated After line transmission delay, according to the line transmission delay inequality of first message and the second message, the length of the first line The wavelength interval of degree and the first wave length and second wave length, calculates the abbe number of the first line.
In the calculating process of abbe number, following calculation formula can be used: delay inequality=wavelength interval × route color Dissipate the length of coefficient × route.In this case, according to the formula and the delay inequality of first wave length and second wave length, first The length and first wave length of route and the wavelength interval of second wave length, can be calculated the abbe number of first line.
Wherein, the wavelength interval of the first wave length and second wave length refers to the difference of first wave length and second wave length. For example, then the difference of first wave length and second wave length is 20nm if first wave length is 1511nm, second wave length 1491nm.
Furthermore it is also possible to according to the calculation formula: delay inequality=wavelength interval × route abbe number × route length Degree and the delay inequality of first wave length and second wave length, the second route length and first wave length and the wavelength of second wave length between Every the abbe number of the second route of calculating.
Through the above steps, the abbe number that can obtain route meets the diversified demand of staff.
Pass through the above-mentioned introduction to line transmission delay calculating method disclosed in each embodiment of the present invention, it is known that by this The route of wavelength can be calculated when network element transmits information by single fiber bi-directional mode in line transmission delay calculating method Transmission delay can also further realize route ranging, and obtain the abbe number of route.It is disclosed compared with the existing technology For the first calculation method, line transmission delay calculating method disclosed in each embodiment of the present invention, which improves, calculates route biography The accuracy of defeated delay, also, compared with the second method disclosed in the prior art, this method does not need pre- in calculating process Fiber information (such as abbe number and fiber lengths of optical fiber) first is obtained, therefore, the case where can not get line information Under, remain to the line transmission delay that first wave length and second wave length is calculated.
Also, line transmission delay calculating method disclosed by the embodiments of the present invention can be applied to a variety of communication networks, example Such as, application scenarios schematic diagram shown in Figure 10, this method can be applied to the forward pass net and passback net of 5G system.In the figure, BC is the abbreviation of boundary clock, indicates boundary clock;BBU is the abbreviation of building base band unit, is indicated Baseband processing unit;RRU is the abbreviation of radio remote unit, indicates Remote Radio Unit.
In addition, line transmission delay calculating method disclosed by the embodiments of the present invention is not limited only to the applied field of single fiber bi-directional Scape can also be applied to any other transmission medium, if the transmission medium can transmit the message information of different wave length, and And support two-way signal transmission.In this case, first line and the second route can be optical fiber, can also be wireless Transmission line etc., it is not limited in the embodiment of the present invention.
Another embodiment of the present invention discloses a kind of line transmission delay calculating method, and this method is applied to the second network element, institute State that the second network element passes through first line respectively and the second route is connected with the first network element.Workflow shown in Figure 15 is shown Be intended to, line transmission delay calculating method disclosed by the embodiments of the present invention the following steps are included:
Step S151, described second network element receive first network element by first line transmit with first wave length First message.
Step S152, first message is back to first network element by the second route by described second network element, and First message is recorded in the residence time T12 of second network element.
Second network element receives first message by the receiving port being connected with first line, and passes through the receiving end Mouthful by the controller of first message transmissions to the second network element;After the controller of second network element receives first message, By the first message transmissions to the sending port being connected with the second route, then the sending port by being connected with the second route will First message is back to the first network element.
Therefore, the first message can be resident a period of time in the second network element, and the second network element will record the first message described The residence time T12 of second network element.
Step S153, described second network element receives first network element by the second line transmission with second wave length Second message.
Step S154, second message is back to first network element by first line by described second network element, and Second message is recorded in the residence time T22 of second network element.
Second network element receives second message by the receiving port being connected with the second route, and passes through the receiving end Mouthful by the controller of second message transmissions to the second network element;After the controller of second network element receives second message, By the second message transmissions to the sending port being connected with first line, then the sending port by being connected with first line will Second message is back to the first network element.
In this case, the second message can also be resident a period of time in the second network element, and the second network element will record the second report Residence time T22 of the text in second network element.
Step S155, T12 and T22 are transmitted to the first network element by described second network element.
First network element according to total delay time T11 of the first message, total delay time T21, T12 of the second message and The line transmission of T22, the line transmission delay and the second message that calculate first message are delayed.
First wave can be calculated in disclosed line transmission delay calculating method, the first network element through the embodiment of the present invention The line transmission of long line transmission delay and second wave length is delayed, compared with the existing technology in first method for, energy It is enough to improve the accuracy for obtaining line transmission delay.Also, the optical fiber such as abbe number and fiber lengths without using optical fiber are believed Breath, in the presence of solving second method in the prior art, in the case where that can not obtain fiber information, cannot obtain The problem of line transmission is delayed.
Correspondingly, the embodiment of the present invention discloses a kind of line transmission delay computing device, which is applied to the first network element, First network element passes through first line respectively and the second route is connected with the second network element.Structural representation shown in Figure 16 Figure, the line transmission delay computing device include: that the first sending module 110, first obtains module 120, the second sending module 130, second module 140 and the first computing module 150 are obtained.
Wherein, first sending module 110 has first wave for sending by first line to second network element The first long message;
Described first obtains module 120, first report returned for receiving second network element by the second route Text, determines total delay time T11 of first message according to the sending time of first message and receiving time, and from institute It states the second network element and receives first message in the residence time T12 of second network element;
Second sending module 130 has second wave length for sending by the second route to second network element Second message;
Described second obtains module 140, second report returned for receiving second network element by first line Text, determines total delay time T21 of second message according to the sending time of second message and receiving time, and from institute It states the second network element and receives second message in the residence time T22 of second network element;
First computing module 150, for according to T11, T12, T21 and T22, the route for calculating first message to be passed The line transmission of defeated delay and the second message is delayed.
Disclosed line transmission delay computing device through the embodiment of the present invention, can be calculated the route of first wave length Transmission delay and the line transmission of second wave length delay, compared with the existing technology in first method for, can be improved and obtain The accuracy of line taking road transmission delay.Also, the fiber informations such as abbe number and fiber lengths without using optical fiber, solve In the presence of second method in the prior art, in the case where fiber information can not be obtained, line transmission cannot be obtained The problem of delay.
Further, in line transmission disclosed by the embodiments of the present invention delay computing device, first computing module 150 include:
First transmission time computing unit takes the difference as calculating the difference of the T11 and the T12 Transmission time T13 of one message in first line and the second route;
Second transmission time computing unit takes the difference as calculating the difference of the T21 and the T22 Transmission time T23 of two messages in first line and the second route;
First Speed ratio calculation unit, for calculating the time ratios of the T23 Yu the T13, by the time ratio It is worth the velocity ratio V1/V2 as the first message and the second message;
First delay ratio calculation unit, for determining first message and the second message difference according to the V1/V2 Ratio T1 (L1)/T2 (L1) of line transmission delay in first line;
First transmission delay computing unit, for total consumption according to first message and the second message in first line When and the T1 (L1)/T2 (L1), the line transmission delay for calculating first message in first line it is T1 (L1) and described Second message is delayed T2 (L1) in the line transmission of first line, and/or, according to first message and the second message second Total time-consuming and the T1 (L1)/T2 (L1) in route, the line transmission for calculating first message in the second route are delayed T1 (L2) and second message are delayed T2 (L2) in the line transmission of the second route.
Further, the clock of first network element is set as the first clock, the clock of the second network element is second clock, In line transmission delay computing device disclosed by the embodiments of the present invention, further includes:
Third message transmissions module is transmitted to the second network element by first line for the t10 moment in the first clock and is had There is the third message of first wave length;
4th message receiving module, for receiving the 4th message comprising the t20 moment, the t20 from second network element At the time of moment is reception that second network element is recorded by the second clock third message;
5th message receiving module, for by first line receive second network element transmission with second wave length 5th message, and be the t40 moment at the time of receive five message by first clock log;
6th message module, for receiving the 6th message comprising the t30 moment, the t30 moment from second network element At the time of the transmission recorded for second network element by second clock five message;
First delay inequality computing module, for first message to be calculated in the line transmission delay of first line With the second message after the line transmission delay of first line, the delay inequality of first message and the second message is calculated;
First delay compensation module, using t10, t20, t30 and t40 as timestamp information, the compensation of delay unit is used According to the delay inequality, compensation of delay is carried out to the object time stamp in the timestamp information, wherein the object time Stamp is corresponding timestamp when being delayed lesser wavelength transmission information by line transmission;
First time deviation computing module, for calculating first network element according to the timestamp information after compensation of delay And the second time deviation between network element.
By above-mentioned apparatus, the time deviation between the first network element and the second network element, also, this method can be calculated Compared with the first method disclosed in the prior art, the precision for calculating time deviation is improved.
Further, in line transmission disclosed by the embodiments of the present invention delay computing device, further includes:
The first message is being calculated in First Line if being optical fiber for the first line in First Speed computing module After the line transmission delay on road, the ratio of the light velocity and refractive index of first message in first line is calculated, by the ratio As first message the first line transmission speed;
First length computation module, for calculating first message in the transmission speed of the first line and described the The product that one message is delayed in the line transmission of first line, using the product as the length of the first line.
Furthermore it is also possible to calculate the light velocity and the first message in the ratio of the refractive index of the second route, using the ratio as Then one message calculates the first message in the transmission speed of the second route and the first message the in the transmission speed of the second route The product of the line transmission delay of two routes, which is the length of the second route.
Using above-mentioned module, it is delayed according to the line transmission being calculated before, can calculates separately to obtain first line With the length of the second route.That is, can be realized route ranging by the module.
Further, in line transmission disclosed by the embodiments of the present invention delay computing device, further includes:
First abbe number computing module;
If the first line is optical fiber, in the line transmission delay and the second message that first message is calculated After line transmission delay, the first abbe number computing module is used for the route according to first message and the second message The length of poor, the described first line of transmission delay and the wavelength interval of the first wave length and second wave length calculate described first The abbe number of route.
In the calculating process of abbe number, following calculation formula can be used: delay inequality=wavelength interval × route color Dissipate the length of coefficient × route.In this case, according to the formula and the delay inequality of first wave length and second wave length, first The length and first wave length of route and the wavelength interval of second wave length, can be calculated the abbe number of first line.
Wherein, the wavelength interval of the first wave length and second wave length refers to the difference of first wave length and second wave length. For example, then the difference of first wave length and second wave length is 20nm if first wave length is 1511nm, second wave length 1491nm.
In addition, the first abbe number computing module can also be according to the calculation formula: delay inequality=wavelength interval × route Abbe number × route length and the delay inequality of first wave length and second wave length, the second route length and first wave The long wavelength interval with second wave length, calculates the abbe number of the second route.
By above-mentioned apparatus, the abbe number of route can be obtained, meets the diversified demand of staff.
Correspondingly, in another embodiment of the present invention, a kind of line transmission delay computing device disclosed, which is applied to the One network element, first network element passes through first line respectively and the second route is connected with the second network element.Shown in Figure 17 Structural schematic diagram, the line transmission delay computing device includes: third sending module 210, the first determining module the 220, the 4th Sending module 230, the second determining module 240 and first time transmission module 250.
The third sending module 210 has first wave length for sending by first line to second network element First message;
First determining module 220, first report returned for receiving second network element by the second route Text determines total delay time T11 of first message according to the sending time of first message and receiving time;
4th sending module 230 has second wave length for sending by the second route to second network element Second message;
Second determining module 240, second report returned for receiving second network element by first line Text determines total delay time T21 of second message according to the sending time of second message and receiving time;
The first time transmission module 250, for T11 and T21 to be transmitted to the second network element.Second network element according to First message the residence time T12 of second network element, the second message second network element residence time T22, T11 and T21 calculates the line transmission delay of the first message and the line transmission of the second message is delayed.
First wave can be calculated in disclosed line transmission delay computing device, the second network element through the embodiment of the present invention The line transmission of long line transmission delay and second wave length is delayed, compared with the existing technology in first method for, energy It is enough to improve the accuracy for obtaining line transmission delay.Also, the optical fiber such as abbe number and fiber lengths without using optical fiber are believed Breath, in the presence of solving second method in the prior art, in the case where that can not obtain fiber information, cannot obtain The problem of line transmission is delayed.
Correspondingly, in another embodiment of the present invention, a kind of line transmission delay computing device disclosed, which is applied to the Two network elements, second network element passes through first line respectively and the second route is connected with the first network element.Shown in Figure 18 Structural schematic diagram, the line transmission delay computing device include: the 4th receiving module 310, third acquisition module the 320, the 5th Receiving module the 330, the 4th obtains module 340 and the 4th computing module 350.
Wherein, the 4th receiving module 310 has the by what first line was transmitted for receiving first network element First message of one wavelength;
The third obtains module 320, for first message to be back to first network element by the second route, First message is recorded in the residence time T12 of second network element, and receives first message from first network element Total delay time T11;
5th receiving module 330 has the second wave by the second line transmission for receiving first network element The second long message;
Described 4th obtains module 340, for second message to be back to first network element by first line, Second message is recorded in the residence time T22 of second network element, and receives second message from first network element Total delay time T21;
4th computing module 350, for according to T11, T12, T21 and T22, the route for calculating first message to be passed The line transmission of defeated delay and the second message is delayed.
Disclosed line transmission delay computing device through the embodiment of the present invention, can be calculated the route of first wave length Transmission delay and the line transmission of second wave length delay, compared with the existing technology in first method for, can be improved and obtain The accuracy of line taking road transmission delay.Also, the fiber informations such as abbe number and fiber lengths without using optical fiber, solve In the presence of second method in the prior art, in the case where fiber information can not be obtained, line transmission cannot be obtained The problem of delay.
Further, the 4th computing module 350 includes:
Third transmission time computing unit takes the difference as calculating the difference of the T11 and the T12 Transmission time T13 of one message in first line and the second route;
4th transmission time computing unit takes the difference as calculating the difference of the T21 and the T22 Transmission time T23 of two messages in first line and the second route;
Second speed ratio calculation unit, for calculating the time ratios of the T23 Yu the T13, by the time ratio It is worth the velocity ratio V1/V2 as the first message and the second message;
Second delay ratio calculation unit, for determining first message and the second message difference according to the V1/V2 Ratio T1 (L1)/T2 (L1) of line transmission delay in first line;
Second transmission delay computing unit, for total consumption according to first message and the second message in first line When and the T1 (L1)/T2 (L1), the line transmission delay for calculating first message in first line it is T1 (L1) and described Second message is delayed T2 (L1) in the line transmission of first line, and/or, according to first message and the second message second Total time-consuming and the T1 (L1)/T2 (L1) in route, the line transmission for calculating first message in the second route are delayed T1 (L2) and second message are delayed T2 (L2) in the line transmission of the second route.
Further, the clock of first network element is set as the first clock, the clock of the second network element is second clock, In line transmission delay computing device disclosed by the embodiments of the present invention, further includes:
Third message receiving module, for receive first network element by first line transmit with first wave length Third message, and the t20 moment for receiving the third message is recorded by the second clock;
7th message receiving module, for receiving the 7th message comprising the t10 moment, the t10 from first network element At the time of moment is first network element described by the transmission of first clock log third message;
5th message transmissions module, for having the 5th of second wave length to first network element transmission by first line Message, and pass through the t30 moment of second clock record transmission the 5th message;
8th message receiving module, for receiving the 8th message comprising the t40 moment, the t40 from first network element Moment is that first network element passes through at the time of receiving five message of the first clock log;
Second delay inequality computing module, in the line transmission delay that first message is calculated and the second message Line transmission delay after, calculate the delay inequality of first message and the second message;
Second delay compensation module, using t10, t20, t30 and t40 as timestamp information, the second compensation of delay mould Block is used for according to the delay inequality, carries out compensation of delay to the object time stamp in the timestamp information, wherein the target Timestamp is the timestamp obtained when being delayed lesser wavelength transmission information by line transmission;
Second time deviation computing module, for calculating first network element according to the timestamp information after compensation of delay And the second time deviation between network element.
By above-mentioned apparatus, the time deviation between the first network element and the second network element, also, this method can be calculated Compared with the first method disclosed in the prior art, the precision for calculating time deviation is improved.
Further, in line transmission disclosed by the embodiments of the present invention delay computing device, further includes:
The first message is being calculated in First Line if being optical fiber for the first line in second speed computing module After the line transmission delay on road, calculate the light velocity and the first message in the ratio of the refractive index of first line, using the ratio as Transmission speed of first message in the first line;
Second length computation module, for calculating first message in the transmission speed and the first report of the first line The product that text is delayed in the line transmission of first line, using the product as the length of the first line.
Furthermore it is also possible to calculate the light velocity and the first message in the ratio of the refractive index of the second route, using the ratio as Then one message calculates the first message in the transmission speed of the second route and the first message the in the transmission speed of the second route The product of the line transmission delay of two routes, which is the length of the second route.
Using above-mentioned module, it is delayed according to the line transmission being calculated before, can calculates separately to obtain first line With the length of the second route.That is, can be realized route ranging by the module.
Further, in line transmission disclosed by the embodiments of the present invention delay computing device, further includes:
Second abbe number computing module;
If the first line is optical fiber, in the line transmission delay and the second message that first message is calculated After line transmission delay, the second abbe number computing module is used for the route according to first message and the second message The length of poor, the described first line of transmission delay and the wavelength interval of the first wave length and second wave length calculate described first The abbe number of route.
In the calculating process of abbe number, following calculation formula can be used: delay inequality=wavelength interval × route color Dissipate the length of coefficient × route.In this case, according to the formula and the delay inequality of first wave length and second wave length, first The length and first wave length of route and the wavelength interval of second wave length, can be calculated the abbe number of first line.
Wherein, the wavelength interval of the first wave length and second wave length refers to the difference of first wave length and second wave length. For example, then the difference of first wave length and second wave length is 20nm if first wave length is 1511nm, second wave length 1491nm.
In addition, the first abbe number computing module can also be according to the calculation formula: delay inequality=wavelength interval × route Abbe number × route length and the delay inequality of first wave length and second wave length, the second route length and first wave The long wavelength interval with second wave length, calculates the abbe number of the second route.
By above-mentioned apparatus, the abbe number of route can be obtained, meets the diversified demand of staff.
Correspondingly, in another embodiment of the present invention, a kind of line transmission delay computing device disclosed, which is applied to the Two network elements, second network element passes through first line respectively and the second route is connected with the first network element.Shown in Figure 19 Structural schematic diagram, the line transmission delay computing device includes: the 6th receiving module 410, the first logging modle the 420, the 7th Receiving module 430, the second logging modle 440 and the second time tranfer module 450.
Wherein, the 6th receiving module 410 has the by what first line was transmitted for receiving first network element First message of one wavelength;
First logging modle 420, for first message to be back to first network element by the second route, And first message is recorded in the residence time T12 of second network element;
7th receiving module 430 has the second wave by the second line transmission for receiving first network element The second long message;
Second logging modle 440, for second message to be back to first network element by first line, And second message is recorded in the residence time T22 of second network element;
T12 and T22 are transmitted to the first network element for the second network element by the second time tranfer module 450.
First network element according to total delay time T11 of the first message, total delay time T21, T12 of the second message and The line transmission of T22, the line transmission delay and the second message that calculate first message are delayed.
First wave can be calculated in disclosed line transmission delay computing device, the first network element through the embodiment of the present invention The line transmission of long line transmission delay and second wave length is delayed, compared with the existing technology in first method for, energy It is enough to improve the accuracy for obtaining line transmission delay.Also, the optical fiber such as abbe number and fiber lengths without using optical fiber are believed Breath, in the presence of solving second method in the prior art, in the case where that can not obtain fiber information, cannot obtain The problem of line transmission is delayed.
Correspondingly, another embodiment of the present invention discloses a kind of line transmission delay computing system, which includes:
First network element and the second network element, first network element pass through first line and the second route and second net respectively Member is connected;
Wherein, first network element sends first report with first wave length by first line to second network element Text;
First message is back to institute after receiving first message, through the second route by second network element The first network element is stated, and records first message in the residence time T12 of second network element;
T12 is transmitted to the first network element by second network element;
First network element receives second network element and passes through first message that the second route returns, according to described the The sending time and receiving time of one message determine total delay time T11 of first message, and connect from second network element First message is received in the residence time T12 of second network element;
First network element sends second message with second wave length to second network element by the second route;
Second message is back to institute after receiving second message, through first line by second network element The first network element is stated, and records second message in the residence time T22 of second network element;
T22 is transmitted to the first network element by second network element;
First network element receives second message that second network element is returned by first line, according to described The sending time and receiving time of two messages determine total delay time T21 of second message, and connect from second network element Second message is received in the residence time T22 of second network element;
First network element calculates the line transmission delay and second of first message according to T11, T12, T21 and T22 The line transmission of message is delayed.
First wave can be calculated in disclosed line transmission delay computing system, the first network element through the embodiment of the present invention The line transmission of long line transmission delay and second wave length is delayed, compared with the existing technology in first method for, energy It is enough to improve the accuracy for obtaining line transmission delay.Also, the optical fiber such as abbe number and fiber lengths without using optical fiber are believed Breath, in the presence of solving second method in the prior art, in the case where that can not obtain fiber information, cannot obtain The problem of line transmission is delayed.
Correspondingly, another embodiment of the present invention discloses a kind of line transmission delay computing system, which includes:
First network element and the second network element, first network element pass through first line and the second route and second net respectively Member is connected;
Wherein, first network element sends first report with first wave length by first line to second network element Text;
First message is back to institute after receiving first message, through the second route by second network element The first network element is stated, and records first message in the residence time T12 of second network element;
First network element receives second network element and passes through first message that the second route returns, according to described the The sending time and receiving time of one message determine total delay time T11 of first message;
First network element sends second message with second wave length to second network element by the second route;
Second message is back to institute after receiving second message, through first line by second network element The first network element is stated, and records second message in the residence time T22 of second network element;
First network element receives second message that second network element is returned by first line, according to described The sending time and receiving time of two messages determine total delay time T21 of second message;
T11 and T21 are transmitted to the second network element by first network element;
Second network element calculates the line transmission delay and second of first message according to T11, T12, T21 and T22 The line transmission of message is delayed.
First wave can be calculated in disclosed line transmission delay computing system, the second network element through the embodiment of the present invention The line transmission of long line transmission delay and second wave length is delayed, compared with the existing technology in first method for, energy It is enough to improve the accuracy for obtaining line transmission delay.Also, the optical fiber such as abbe number and fiber lengths without using optical fiber are believed Breath, in the presence of solving second method in the prior art, in the case where that can not obtain fiber information, cannot obtain The problem of line transmission is delayed.
In the specific implementation, the embodiment of the present invention also provides a kind of network element, transceiver, processor and memory;The transmitting-receiving Device is used to carry out the transmitting-receiving of message between other network elements, and will be from the received message transmissions of other network elements to processor;It is described Processor is used to obtain the message of the transceiver transmission, and executes the program or instruction stored in the memory, thus Realize line transmission delay calculating method of the Fig. 5 into Figure 10 disclosed method embodiment.
The embodiment of the present invention also provides a kind of network element, transceiver, processor and memory;The transceiver is used for and other The transmitting-receiving of message is carried out between network element, and will be from the received message transmissions of other network elements to processor;The processor is for obtaining The message of the transceiver transmission is taken, and executes the program or instruction stored in the memory, to realize that Figure 11 institute is public Line transmission delay calculating method in extraction of root embodiment.
The embodiment of the present invention also provides a kind of network element, transceiver, processor and memory;The transceiver is used for and other The transmitting-receiving of message is carried out between network element, and will be from the received message transmissions of other network elements to processor;The processor is for obtaining The message of the transceiver transmission is taken, and executes the program or instruction stored in the memory, to realize Figure 12 to figure Line transmission delay calculating method in 14 disclosed method embodiments.
The embodiment of the present invention also provides a kind of network element, transceiver, processor and memory;The transceiver is used for and other The transmitting-receiving of message is carried out between network element, and will be from the received message transmissions of other network elements to processor;The processor is for obtaining The message of the transceiver transmission is taken, and executes the program or instruction stored in the memory, to realize that Figure 15 institute is public Line transmission delay calculating method in extraction of root embodiment.
In addition, the embodiment of the present invention also provides a kind of computer program product, including instruction, when instruction is transported on computers When row, so that computer executes line transmission delay calculating method disclosed in above-mentioned each embodiment.
The embodiment of the present invention also provides a kind of computer program product, including instruction, when instruction is run on computers, So that computer executes line transmission delay calculating method of the Fig. 5 into Figure 10 disclosed method embodiment.
The embodiment of the present invention also provides a kind of computer program product, including instruction, when instruction is run on computers, So that computer executes the line transmission delay calculating method in Figure 11 disclosed method embodiment.
The embodiment of the present invention also provides a kind of computer program product, including instruction, when instruction is run on computers, So that computer executes line transmission delay calculating method of the Figure 12 into Figure 14 disclosed method embodiment.
The embodiment of the present invention also provides a kind of computer program product, including instruction, when instruction is run on computers, So that computer executes the line transmission delay calculating method in Figure 15 disclosed method embodiment.
In the specific implementation, the embodiment of the present invention also provides a kind of computer storage medium, wherein the computer storage medium It can be stored with program, which can realize that line transmission delay of the Fig. 5 into Figure 10 disclosed method embodiment calculates when executing Step some or all of in method.The storage medium can be magnetic disk, CD, read-only memory (read-only Memory, abbreviation ROM) or random access memory (random access memory, abbreviation RAM) etc..
The embodiment of the present invention also provides a kind of computer storage medium, wherein the computer storage medium can be stored with journey Sequence, the program can realize the part or complete in the line transmission delay calculating method in Figure 11 disclosed method embodiment when executing Portion's step.The storage medium can for magnetic disk, CD, read-only memory (read-only memory, abbreviation ROM) or Random access memory (random access memory, abbreviation RAM) etc..
The embodiment of the present invention also provides a kind of computer storage medium, wherein the computer storage medium can be stored with journey Sequence, the program can realize portion of the Figure 12 in the line transmission delay calculating method into Figure 14 disclosed method embodiment when executing Point or Overall Steps.The storage medium can be magnetic disk, CD, read-only memory (read-only memory, abbreviation ) or random access memory (random access memory, abbreviation RAM) etc. ROM.
The embodiment of the present invention also provides a kind of computer storage medium, wherein the computer storage medium can be stored with journey Sequence, the program can realize the part or complete in the line transmission delay calculating method in Figure 15 disclosed method embodiment when executing Portion's step.The storage medium can for magnetic disk, CD, read-only memory (read-only memory, abbreviation ROM) or Random access memory (random access memory, abbreviation RAM) etc..
It is required that those skilled in the art can be understood that the technology in the embodiment of the present invention can add by software The mode of general hardware platform realize.Based on this understanding, the technical solution in the embodiment of the present invention substantially or Say that the part that contributes to existing technology can be embodied in the form of software products, which can deposit Storage is in storage medium, such as ROM/RAM, magnetic disk, CD, including some instructions are used so that computer equipment (can be with It is personal computer, server or the network equipment etc.) execute certain part institutes of each embodiment of the present invention or embodiment The method stated.
Same and similar part may refer to each other between each embodiment in this specification.Especially for ... implement For example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring in embodiment of the method Explanation.
Invention described above embodiment is not intended to limit the scope of the present invention..

Claims (26)

1. a kind of line transmission delay calculating method, which is characterized in that be applied to the first network element, first network element passes through respectively First line and the second route are connected with the second network element, and the line transmission delay calculating method includes:
First network element sends first message with first wave length to second network element by first line;
First network element receives second network element and passes through first message that the second route returns, according to first report The sending time and receiving time of text determine total delay time T11 of first message, and receive institute from second network element The first message is stated in the residence time T12 of second network element;
First network element sends second message with second wave length to second network element by the second route;
First network element receives second message that second network element is returned by first line, according to second report The sending time and receiving time of text determine total delay time T21 of second message, and receive institute from second network element The second message is stated in the residence time T22 of second network element;
First network element calculates line transmission delay and the second message of first message according to T11, T12, T21 and T22 Line transmission delay.
2. line transmission delay calculating method according to claim 1, which is characterized in that first network element according to T11, The line transmission of T12, T21 and T22, the line transmission delay and the second message that calculate first message are delayed, comprising:
The difference for calculating the T11 and the T12 takes the difference as the first message in first line and the second route Transmission time T13;
The difference for calculating the T21 and the T22 takes the difference as the second message in first line and the second route Transmission time T23;
The time ratios for calculating the T23 Yu the T13, using the time ratios as the speed of the first message and the second message Ratio V1/V2;
According to the V1/V2, the line transmission delay of first message and the second message respectively in first line is determined Ratio T1 (L1)/T2 (L1);
According to the total time-consuming and the T1 (L1)/T2 (L1) of first message and the second message in first line, calculate First message the line transmission of first line be delayed T1 (L1) and second message first line line transmission It is delayed T2 (L1), and/or, according to total time-consuming in the second route of first message and the second message and the T1 (L1)/T2 (L1), calculates that first message is delayed T1 (L2) in the line transmission of the second route and second message is the The line transmission of two routes is delayed T2 (L2).
3. line transmission delay calculating method according to claim 1, which is characterized in that further include:
The clock of first network element is set as the first clock, the clock of the second network element is second clock, and first network element exists The t10 moment of first clock has the third message of first wave length by first line to the transmission of the second network element;
First network element receives the 4th message comprising the t20 moment from second network element, and the t20 moment is described second At the time of network element described by reception that second clock records third message;
First network element receives the 5th message with second wave length of the second network element transmission by first line, and leads to Crossing at the time of first clock log receives five message is the t40 moment;
First network element receives the 6th message comprising the t30 moment from second network element, and the t30 moment is described second At the time of network element described by transmission that second clock records five message;
First message is being calculated in the line transmission delay of first line and the second message the in first network element After the line transmission delay of one route, the delay inequality of first message and the second message is calculated;
Using t10, t20, t30 and t40 as timestamp information, first network element is according to the delay inequality, to the timestamp Object time stamp in information carries out compensation of delay, wherein the object time stamp is the lesser wave that is delayed by line transmission Corresponding timestamp when long transmission information;
First network element according to the timestamp information after compensation of delay, calculate between first network element and the second network element when Between deviation.
4. line transmission delay calculating method according to any one of claims 1 to 3, which is characterized in that further include:
If the first line is optical fiber, the first message is being calculated after the line transmission delay of first line, is calculating light The fast ratio with refractive index of first message in first line, using the ratio as first message described first The transmission speed of route;
First message is calculated to pass in the transmission speed of the first line and first message in the route of first line The product of defeated delay, using the product as the length of the first line.
5. line transmission delay calculating method according to claim 4, which is characterized in that further include:
If the first line is optical fiber, in the route of line transmission delay and the second message that first message is calculated After transmission delay, according to the line transmission delay inequality of first message and the second message, the first line length and The wavelength interval of the first wave length and second wave length calculates the abbe number of the first line.
6. a kind of line transmission delay calculating method, which is characterized in that be applied to the first network element, first network element passes through respectively First line and the second route are connected with the second network element, and the line transmission delay calculating method includes:
First network element sends first message with first wave length to second network element by first line;
First network element receives second network element and passes through first message that the second route returns, according to first report The sending time and receiving time of text determine total delay time T11 of first message;
First network element sends second message with second wave length to second network element by the second route;
First network element receives second message that second network element is returned by first line, according to second report The sending time and receiving time of text determine total delay time T21 of second message;
T11 and T21 are transmitted to the second network element by first network element.
7. a kind of line transmission delay calculating method, which is characterized in that be applied to the second network element, second network element passes through respectively First line and the second route are connected with the first network element, and the line transmission delay calculating method includes:
Second network element receives the first message with first wave length that first network element is transmitted by first line;
First message is back to first network element by the second route by second network element, records first message In the residence time T12 of second network element, and receive from first network element total delay time T11 of first message;
Second network element receives the second message with second wave length that first network element passes through the second line transmission;
Second message is back to first network element by first line by second network element, records second message In the residence time T22 of second network element, and receive from first network element total delay time T21 of second message;
Second network element calculates line transmission delay and the second message of first message according to T11, T12, T21 and T22 Line transmission delay.
8. line transmission delay calculating method according to claim 7, which is characterized in that second network element according to T11, The line transmission of T12, T21 and T22, the line transmission delay and the second message that calculate first message are delayed, comprising:
The difference for calculating the T11 and the T12 takes the difference as the first message in first line and the second route Transmission time T13;
The difference for calculating the T21 and the T22 takes the difference as the second message in first line and the second route Transmission time T23;
The time ratios for calculating the T23 Yu the T13, using the time ratios as the speed of the first message and the second message Ratio V1/V2;
According to the V1/V2, the line transmission delay of first message and the second message respectively in first line is determined Ratio T1 (L1)/T2 (L1);
According to the total time-consuming and the T1 (L1)/T2 (L1) of first message and the second message in first line, calculate First message the line transmission of first line be delayed T1 (L1) and second message first line line transmission It is delayed T2 (L1), and/or, according to total time-consuming in the second route of first message and the second message and the T1 (L1)/T2 (L1), calculates that first message is delayed T1 (L2) in the line transmission of the second route and second message is the The line transmission of two routes is delayed T2 (L2).
9. line transmission delay calculating method according to claim 7, which is characterized in that further include:
The clock of first network element is set as the first clock, the clock of the second network element is second clock, and second network element connects The third message with first wave length that first network element is transmitted by first line is received, and is recorded by the second clock Receive the t20 moment of the third message;
Second network element receives the 7th message comprising the t10 moment from first network element, and the t10 moment is described first At the time of network element described by the transmission of first clock log third message;
Second network element has the 5th message of second wave length to first network element transmission by first line, and passes through institute State the t30 moment that second clock record transmits the 5th message;
Second network element receives the 8th message comprising the t40 moment from first network element, and the t40 moment is described first Network element passes through at the time of receiving five message of the first clock log;
Second network element is delayed in the line transmission of line transmission delay and the second message that first message is calculated Later, the delay inequality of first message and the second message is calculated;
Using t10, t20, t30 and t40 as timestamp information, second network element is according to the delay inequality, to the timestamp Object time stamp in information carries out compensation of delay, wherein the object time stamp is the lesser wave that is delayed by line transmission The timestamp obtained when long transmission information;
Second network element according to the timestamp information after compensation of delay, calculate between first network element and the second network element when Between deviation.
10. line transmission delay calculating method according to any one of claims 7 to 9, which is characterized in that further include:
If the first line is optical fiber, the first message is being calculated after the line transmission delay of first line, is calculating light Speed with the first message the refractive index of first line ratio, using the ratio as the first message the first line biography Defeated speed;
Line transmission of the transmission speed with the first message in first line that first message is calculated in the first line prolongs When product, using the product as the length of the first line.
11. line transmission delay calculating method according to claim 10, which is characterized in that further include:
If the first line is optical fiber, in the route of line transmission delay and the second message that first message is calculated After transmission delay, according to the line transmission delay inequality of first message and the second message, the first line length and The wavelength interval of the first wave length and second wave length calculates the abbe number of the first line.
12. a kind of line transmission delay calculating method, which is characterized in that be applied to the second network element, second network element leads to respectively It crosses first line and the second route is connected with the first network element, the line transmission delay calculating method includes:
Second network element receives the first message with first wave length that first network element is transmitted by first line;
First message is back to first network element by the second route by second network element, and records first report Residence time T12 of the text in second network element;
Second network element receives the second message with second wave length that first network element passes through the second line transmission;
Second message is back to first network element by first line by second network element, and records second report Residence time T22 of the text in second network element;
T12 and T22 are transmitted to the first network element by second network element.
The computing device 13. a kind of line transmission is delayed, which is characterized in that be applied to the first network element, first network element leads to respectively It crosses first line and the second route is connected with the second network element, the line transmission delay computing device includes:
First sending module, for sending first message with first wave length to second network element by first line;
First obtains module, passes through first message that the second route returns for receiving second network element, according to described The sending time and receiving time of first message determine total delay time T11 of first message, and from second network element First message is received in the residence time T12 of second network element;
Second sending module, for sending second message with second wave length to second network element by the second route;
Second obtains module, second message returned for receiving second network element by first line, according to described The sending time and receiving time of second message determine total delay time T21 of second message, and from second network element Second message is received in the residence time T22 of second network element;
First computing module, for according to T11, T12, T21 and T22, calculating the line transmission delay and the of first message The line transmission of two messages is delayed.
The computing device 14. line transmission according to claim 13 is delayed, which is characterized in that the first computing module packet It includes:
First transmission time computing unit takes the difference as the first report for calculating the difference of the T11 and the T12 Transmission time T13 of the text in first line and the second route;
Second transmission time computing unit takes the difference as the second report for calculating the difference of the T21 and the T22 Transmission time T23 of the text in first line and the second route;
First Speed ratio calculation unit makees the time ratios for calculating the time ratios of the T23 Yu the T13 For the velocity ratio V1/V2 of the first message and the second message;
First delay ratio calculation unit, for according to the V1/V2, determining first message and the second message respectively the Ratio T1 (L1)/T2 (L1) of line transmission delay in one route;
First transmission delay computing unit, for the total time-consuming according to first message and the second message in first line, And the T1 (L1)/T2 (L1), it calculates first message and is delayed T1 (L1) and described the in the line transmission of first line Two messages are delayed T2 (L1) in the line transmission of first line, and/or, according to first message and the second message in the second line Total time-consuming and the T1 (L1)/T2 (L1) in road calculates first message in the line transmission delay T1 of the second route (L2) and second message the second route line transmission be delayed T2 (L2).
The computing device 15. line transmission according to claim 13 is delayed, which is characterized in that setting first network element Clock is the first clock, and the clock of the second network element is second clock, further includes:
Third message transmissions module has the to the transmission of the second network element by first line for the t10 moment in the first clock The third message of one wavelength;
4th message receiving module, for receiving the 4th message comprising the t20 moment, the t20 moment from second network element At the time of the reception recorded for second network element by second clock the third message;
5th message receiving module, for receiving the 5th with second wave length of the second network element transmission by first line Message, and be the t40 moment at the time of receive five message by first clock log;
6th message module, for receiving the 6th message comprising the t30 moment from second network element, the t30 moment is institute At the time of stating transmission that the second network element is recorded by second clock five message;
First delay inequality computing module, for first message to be calculated in the line transmission delay of first line and the Two messages calculate the delay inequality of first message and the second message after the line transmission delay of first line;
First delay compensation module, using t10, t20, t30 and t40 as timestamp information, the compensation of delay unit is used for root According to the delay inequality, compensation of delay is carried out to the object time stamp in the timestamp information, wherein the object time, which stabs, is By line transmission be delayed lesser wavelength transmission information when corresponding timestamp;
First time deviation computing module, for according to the timestamp information after compensation of delay, calculating first network element and the Time deviation between two network elements.
16. 3 to 15 described in any item line transmissions delay computing devices according to claim 1, which is characterized in that further include:
The first message is being calculated in first line if being optical fiber for the first line in First Speed computing module Line transmission delay after, calculate the light velocity and refractive index of first message in first line ratio, using the ratio as Transmission speed of first message in the first line;
First length computation module, for calculating transmission speed and first report of first message in the first line The product that text is delayed in the line transmission of first line, using the product as the length of the first line.
The computing device 17. line transmission according to claim 16 is delayed, which is characterized in that further include:
First abbe number computing module;
If the first line is optical fiber, in the route of line transmission delay and the second message that first message is calculated After transmission delay, the first abbe number computing module is used for the line transmission according to first message and the second message The wavelength interval of delay inequality, the length of the first line and the first wave length and second wave length, calculates the first line Abbe number.
The computing device 18. a kind of line transmission is delayed, which is characterized in that be applied to the first network element, first network element leads to respectively It crosses first line and the second route is connected with the second network element, the line transmission delay computing device includes:
Third sending module, for sending first message with first wave length to second network element by first line;
First determining module passes through first message that the second route returns for receiving second network element, according to described The sending time and receiving time of first message determine total delay time T11 of first message;
4th sending module, for sending second message with second wave length to second network element by the second route;
Second determining module, second message returned for receiving second network element by first line, according to described The sending time and receiving time of second message determine total delay time T21 of second message;
First time transmission module, for T11 and T21 to be transmitted to the second network element.
The computing device 19. a kind of line transmission is delayed, which is characterized in that be applied to the second network element, second network element leads to respectively It crosses first line and the second route is connected with the first network element, the line transmission delay computing device includes:
4th receiving module, the first report with first wave length transmitted for receiving first network element by first line Text;
Third obtains module, for first message to be back to first network element by the second route, records described the One message second network element residence time T12, and when receiving from first network element total delay of first message Between T11;
5th receiving module, for receiving second report with second wave length of first network element by the second line transmission Text;
4th obtains module, for second message to be back to first network element by first line, records described the Two messages second network element residence time T22, and when receiving from first network element total delay of second message Between T21;
4th computing module, for according to T11, T12, T21 and T22, calculating the line transmission delay and the of first message The line transmission of two messages is delayed.
The computing device 20. line transmission according to claim 19 is delayed, which is characterized in that the 4th computing module packet It includes:
Third transmission time computing unit takes the difference as the first report for calculating the difference of the T11 and the T12 Transmission time T13 of the text in first line and the second route;
4th transmission time computing unit takes the difference as the second report for calculating the difference of the T21 and the T22 Transmission time T23 of the text in first line and the second route;
Second speed ratio calculation unit makees the time ratios for calculating the time ratios of the T23 Yu the T13 For the velocity ratio V1/V2 of the first message and the second message;
Second delay ratio calculation unit, for according to the V1/V2, determining first message and the second message respectively the Ratio T1 (L1)/T2 (L1) of line transmission delay in one route;
Second transmission delay computing unit, for the total time-consuming according to first message and the second message in first line, And the T1 (L1)/T2 (L1), it calculates first message and is delayed T1 (L1) and described the in the line transmission of first line Two messages are delayed T2 (L1) in the line transmission of first line, and/or, according to first message and the second message in the second line Total time-consuming and the T1 (L1)/T2 (L1) in road calculates first message in the line transmission delay T1 of the second route (L2) and second message the second route line transmission be delayed T2 (L2).
The computing device 21. line transmission according to claim 19 is delayed, which is characterized in that setting first network element Clock is the first clock, and the clock of the second network element is second clock, further includes:
Third message receiving module, the third with first wave length transmitted for receiving first network element by first line Message, and the t20 moment for receiving the third message is recorded by the second clock;
7th message receiving module, for receiving the 7th message comprising the t10 moment, the t10 moment from first network element At the time of the third message described by the transmission of first clock log for first network element;
5th message transmissions module, for having the 5th report of second wave length to first network element transmission by first line Text, and pass through the t30 moment of second clock record transmission the 5th message;
8th message receiving module, for receiving the 8th message comprising the t40 moment, the t40 moment from first network element Pass through at the time of receiving five message of the first clock log for first network element;
Second delay inequality computing module, for the line in line transmission delay and the second message that first message is calculated After the transmission delay of road, the delay inequality of first message and the second message is calculated;
Second delay compensation module, using t10, t20, t30 and t40 as timestamp information, second delay compensation module is used According to the delay inequality, compensation of delay is carried out to the object time stamp in the timestamp information, wherein the object time Stamp is the timestamp obtained when being delayed lesser wavelength transmission information by line transmission;
Second time deviation computing module, for according to the timestamp information after compensation of delay, calculating first network element and the Time deviation between two network elements.
22. 9 to 21 described in any item line transmissions delay computing devices according to claim 1, which is characterized in that further include:
The first message is being calculated in first line if being optical fiber for the first line in second speed computing module After line transmission delay, the light velocity and the first message are calculated in the ratio of the refractive index of first line, using the ratio as first Transmission speed of the message in the first line;
Second length computation module exists for calculating first message in the transmission speed of the first line and the first message The product of the line transmission delay of first line, using the product as the length of the first line.
The computing device 23. line transmission according to claim 22 is delayed, which is characterized in that further include:
Second abbe number computing module;
If the first line is optical fiber, in the route of line transmission delay and the second message that first message is calculated After transmission delay, the second abbe number computing module is used for the line transmission according to first message and the second message The wavelength interval of delay inequality, the length of the first line and the first wave length and second wave length, calculates the first line Abbe number.
The computing device 24. a kind of line transmission is delayed, which is characterized in that be applied to the second network element, second network element leads to respectively It crosses first line and the second route is connected with the first network element, the line transmission delay computing device includes:
6th receiving module, the first report with first wave length transmitted for receiving first network element by first line Text;
First logging modle, for first message to be back to first network element by the second route, and described in record Residence time T12 of first message in second network element;
7th receiving module, for receiving second report with second wave length of first network element by the second line transmission Text;
Second logging modle, for second message to be back to first network element by first line, and described in record Residence time T22 of second message in second network element;
T12 and T22 are transmitted to the first network element for the second network element by the second time tranfer module.
The computing system 25. a kind of line transmission is delayed characterized by comprising
First network element and the second network element, first network element pass through first line and the second route and the second network element phase respectively Connection;
Wherein, first network element sends first message with first wave length to second network element by first line;
First message is back to described after receiving first message, through the second route by second network element One network element, and first message is recorded in the residence time T12 of second network element;
T12 is transmitted to the first network element by second network element;
First network element receives second network element and passes through first message that the second route returns, according to first report The sending time and receiving time of text determine total delay time T11 of first message, and receive institute from second network element The first message is stated in the residence time T12 of second network element;
First network element sends second message with second wave length to second network element by the second route;
Second message is back to described after receiving second message, through first line by second network element One network element, and second message is recorded in the residence time T22 of second network element;
T22 is transmitted to the first network element by second network element;
First network element receives second message that second network element is returned by first line, according to second report The sending time and receiving time of text determine total delay time T21 of second message, and receive institute from second network element The second message is stated in the residence time T22 of second network element;
First network element calculates line transmission delay and the second message of first message according to T11, T12, T21 and T22 Line transmission delay.
The computing system 26. a kind of line transmission is delayed characterized by comprising
First network element and the second network element, first network element pass through first line and the second route and the second network element phase respectively Connection;
Wherein, first network element sends first message with first wave length to second network element by first line;
First message is back to described after receiving first message, through the second route by second network element One network element, and first message is recorded in the residence time T12 of second network element;
First network element receives second network element and passes through first message that the second route returns, according to first report The sending time and receiving time of text determine total delay time T11 of first message;
First network element sends second message with second wave length to second network element by the second route;
Second message is back to described after receiving second message, through first line by second network element One network element, and second message is recorded in the residence time T22 of second network element;
First network element receives second message that second network element is returned by first line, according to second report The sending time and receiving time of text determine total delay time T21 of second message;
T11 and T21 are transmitted to the second network element by first network element;
Second network element calculates line transmission delay and the second message of first message according to T11, T12, T21 and T22 Line transmission delay.
CN201710495000.7A 2017-06-26 2017-06-26 Line transmission delay calculation method and device Active CN109120469B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710495000.7A CN109120469B (en) 2017-06-26 2017-06-26 Line transmission delay calculation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710495000.7A CN109120469B (en) 2017-06-26 2017-06-26 Line transmission delay calculation method and device

Publications (2)

Publication Number Publication Date
CN109120469A true CN109120469A (en) 2019-01-01
CN109120469B CN109120469B (en) 2021-11-30

Family

ID=64821737

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710495000.7A Active CN109120469B (en) 2017-06-26 2017-06-26 Line transmission delay calculation method and device

Country Status (1)

Country Link
CN (1) CN109120469B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111064507A (en) * 2019-12-25 2020-04-24 中国联合网络通信集团有限公司 Method and device for detecting length of optical fiber link and terminal equipment
WO2021098807A1 (en) * 2019-11-21 2021-05-27 华为技术有限公司 Method and device for updating mapping

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102394741A (en) * 2011-12-13 2012-03-28 杭州华三通信技术有限公司 Method for realizing precision time synchronization based on IEEE1588 and apparatus thereof
CN102412955A (en) * 2011-11-28 2012-04-11 华为技术有限公司 Method for obtaining time deviation between master device and slave device under condition of asymmetrical optical fibers and communication system
EP2528254A4 (en) * 2010-07-23 2013-01-23 Huawei Tech Co Ltd Method and device for time synchronization
CN103210690B (en) * 2011-09-09 2014-12-31 华为技术有限公司 Time synchronization method and system, and node device
CN105933085A (en) * 2016-04-27 2016-09-07 西南民族大学 Asymmetric fiber link transmission delay measuring method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2528254A4 (en) * 2010-07-23 2013-01-23 Huawei Tech Co Ltd Method and device for time synchronization
CN103210690B (en) * 2011-09-09 2014-12-31 华为技术有限公司 Time synchronization method and system, and node device
CN102412955A (en) * 2011-11-28 2012-04-11 华为技术有限公司 Method for obtaining time deviation between master device and slave device under condition of asymmetrical optical fibers and communication system
CN102394741A (en) * 2011-12-13 2012-03-28 杭州华三通信技术有限公司 Method for realizing precision time synchronization based on IEEE1588 and apparatus thereof
CN105933085A (en) * 2016-04-27 2016-09-07 西南民族大学 Asymmetric fiber link transmission delay measuring method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021098807A1 (en) * 2019-11-21 2021-05-27 华为技术有限公司 Method and device for updating mapping
CN111064507A (en) * 2019-12-25 2020-04-24 中国联合网络通信集团有限公司 Method and device for detecting length of optical fiber link and terminal equipment

Also Published As

Publication number Publication date
CN109120469B (en) 2021-11-30

Similar Documents

Publication Publication Date Title
CN103168440B (en) Time path compensation method and device
US8817823B2 (en) Method and device for time synchronization
CN107182123B (en) A kind of synchronous method and synchronization system of UWB positioning system
CN102932083B (en) A kind of method and apparatus during microwave synchronization pair
CN104113517A (en) Timestamp generation method, device and system
CN102111380A (en) Time synchronization method, device and system
CN103873179A (en) Device and method for making passive optical network possess ability of supporting time synchronization
CN108370614A (en) Method for converting protocol and device
CN106162860A (en) The method and system of a kind of time synchronized, the network equipment
CN102111258A (en) Clock synchronization method, equipment and system
CN103929293A (en) Asymmetrically-delayed time synchronization method and system
CN103905135A (en) Method, device and system for realizing time synchronization
CN102449940A (en) Network synchronization method and apparatus for performing time synchronization between nodes
CN102244603A (en) Method, equipment and system for transmitting message bearing time
CN103546268B (en) The compensation method of a kind of system time and equipment
CN109257133A (en) A kind of the whole network clock synchronizing method and device applied to LTE rail transit network
CN106850397A (en) Message delivery method and device in Internet of Things
WO2017024578A1 (en) Synchronization method and apparatus
CN108692726A (en) A kind of UWB indoor orientation methods
CN106027190B (en) A kind of clock synchronizing method and device
CN109120469A (en) A kind of line transmission delay calculating method and device
CN113300798A (en) Transmission certainty access method of asynchronous terminal
JP2021508210A (en) Flexible Ethernet Latency Measurement Methods and Related Devices
CN103299582B (en) A kind of delay compensation method and device
CN108781162A (en) A kind of network node, message transmitting method and network

Legal Events

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