CN111970759A - Time delay adjusting method and device of end-to-end service, storage medium and electronic device - Google Patents

Time delay adjusting method and device of end-to-end service, storage medium and electronic device Download PDF

Info

Publication number
CN111970759A
CN111970759A CN201910420730.XA CN201910420730A CN111970759A CN 111970759 A CN111970759 A CN 111970759A CN 201910420730 A CN201910420730 A CN 201910420730A CN 111970759 A CN111970759 A CN 111970759A
Authority
CN
China
Prior art keywords
time delay
value
average value
delay
service
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
CN201910420730.XA
Other languages
Chinese (zh)
Other versions
CN111970759B (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.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201910420730.XA priority Critical patent/CN111970759B/en
Priority to BR112021023358A priority patent/BR112021023358A2/en
Priority to PCT/CN2020/085694 priority patent/WO2020233313A1/en
Publication of CN111970759A publication Critical patent/CN111970759A/en
Application granted granted Critical
Publication of CN111970759B publication Critical patent/CN111970759B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • H04W56/004Synchronisation arrangements compensating for timing error of reception due to propagation delay
    • H04W56/005Synchronisation arrangements compensating for timing error of reception due to propagation delay compensating for timing error by adjustment in the receiver
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • H04W56/003Arrangements to increase tolerance to errors in transmission or reception timing
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Management Or Editing Of Information On Record Carriers (AREA)
  • Debugging And Monitoring (AREA)
  • Crushing And Grinding (AREA)
  • Networks Using Active Elements (AREA)
  • Logic Circuits (AREA)
  • Cable Transmission Systems, Equalization Of Radio And Reduction Of Echo (AREA)

Abstract

The invention provides a time delay adjusting method and device of an end-to-end service, a storage medium and an electronic device, wherein the method comprises the following steps: after an end-to-end service between first equipment and second equipment is established, determining a difference value of two-way time delay related to the end-to-end service of the first equipment; wherein, the difference value of the two-way time delay is the difference value of the forward time delay and the reverse time delay; obtaining an average value of the difference values of the two-way time delays in a preset period based on the difference values of the two-way time delays; and adjusting the time delay of the end-to-end service according to the average value. The invention solves the problems of large workload and low maintenance efficiency in a mode of realizing time delay adjustment through manual intervention in the related technology.

Description

Time delay adjusting method and device of end-to-end service, storage medium and electronic device
Technical Field
The present invention relates to the field of communications, and in particular, to a method and an apparatus for adjusting a delay of an end-to-end service, a storage medium, and an electronic apparatus.
Background
A conventional Base station is an integrated Base station, each module is generally integrated together, and a BBU (Building Base Band Unit) and an RRU (Radio Remote Unit) cannot be separated, so that capacity expansion is difficult, and resource waste and cost increase are caused by capacity expansion. The BBU and the RRU in the distributed base station are separated, so that the distributed base station has the advantages of flexible configuration, convenience in engineering construction, strong environmental adaptability, low cost and the like, and is more and more widely applied. In the 5G era, the density of the base station is increased by 10 to 20 times, and for BBUs and RRUs with short distances, a scheme of optical fiber direct drive can be adopted, as shown in fig. 1a, for BBUs and RRUs with 10 km long-distance transmission, transmission equipment can be added to save optical fiber resources, as shown in fig. 1 b; but the added transmission equipment needs to meet the characteristics of low jitter, low time delay and symmetrical time delay.
Flex Ethernet (hereinafter referred to as Flexe) technology is adopted between transmission devices to meet the low-delay characteristic. The Flexe technology enables the service interface rate to be no longer a fixed rate, the service layer and the physical layer are decoupled, and the service layer interface rate can be flexible. The FlexE standard is specified in OIF, which specifies a FlexE Shim layer supporting time division multiplexing, which is located in the PCS sublayer of the physical layer. The time slot crossing technology of the Flexe Shim layer can reduce the transmission delay.
The transmission device needs to achieve low jitter. The two-layer and three-layer forwarding technology is realized like the traditional switching chip, and low jitter cannot be realized based on packet switching and including firmware such as queues, buffers, token buckets and the like. To achieve low jitter, i.e. the same effect as with an optical fibre connection. The transmission device needs to remove the characteristics that the storage and forwarding of the data packet, the data frame or the bit block are carried out, namely, the hard pipeline and the line speed forwarding are realized.
The transmission device may provide delay compensation techniques based on providing low jitter. In the case of high jitter, it makes no sense to adjust the delay. The time delay symmetry refers to: for a certain end-to-end service, the difference between the forward delay and the reverse delay is within an expected range, where "forward" refers to a traffic flow direction from the local device to the peer device, and "reverse" refers to a traffic flow direction from the peer device to the local device, as shown in fig. 2; the delay is the delay between the U-side ports of the pe (provider edge) device, and includes the sum of all delays inside the device plus the delay of the optical fiber. The difference between the forward Delay (Delay _ F) and the reverse Delay (Delay _ B), i.e., | Delay _ F-Delay _ B |. The difference value is related to the requirements of RRU and BBU in the original network during optical fiber connection. Assuming that the local networking requirement target is | Delay _ F-Delay _ B | < ═ 3ns, that is, after the service is opened, the Delay difference needs to be stabilized within 3 ns.
The industry does not have a mature technology at present to solve the time delay symmetry of the forwarding network. The existing dm (delay measurement) technology can detect the bidirectional delay difference and provide the user with the bidirectional delay difference to view the bidirectional delay difference. The conceivable method is to manually trigger the time delay adjustment by a user, but in a large networking environment, there are thousands of network elements, the maintenance workload is huge, and the efficiency is very low.
In view of the above problems in the related art, no effective solution exists at present.
Disclosure of Invention
The embodiment of the invention provides a time delay adjusting method and device of an end-to-end service, a storage medium and an electronic device, which are used for at least solving the problems of large workload and low maintenance efficiency in a mode of realizing time delay adjustment through manual intervention in the related technology.
According to an embodiment of the present invention, a method for adjusting a delay of an end-to-end service is provided, including: after an end-to-end service between first equipment and second equipment is established, determining a difference value of two-way time delay related to the end-to-end service of the first equipment; wherein, the difference value of the two-way time delay is the difference value of the forward time delay and the reverse time delay; obtaining an average value of the difference values of the two-way time delays in a preset period based on the difference values of the two-way time delays; and adjusting the time delay of the end-to-end service according to the average value.
According to another embodiment of the present invention, there is provided a delay adjusting apparatus for an end-to-end service, including: the device comprises a determining module, a judging module and a judging module, wherein the determining module is used for determining the difference value of the two-way time delay related to the end-to-end service of the first device after the end-to-end service between the first device and the second device is established; wherein, the difference value of the two-way time delay is the difference value of the forward time delay and the reverse time delay; the processing module is used for obtaining the average value of the difference values of the two-way time delay in a preset period based on the difference values of the two-way time delay; and the adjusting module is used for adjusting the time delay of the end-to-end service according to the average value.
According to a further embodiment of the present invention, there is also provided a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
According to the invention, after the end-to-end service between the first device and the second device is established, the difference value of the two-way time delay related to the end-to-end service of the first device is determined, the average value of the difference value of the two-way time delay in the preset period is obtained based on the difference value of the two-way time delay, and then the time delay of the end-to-end service is adjusted according to the average value, so that the time delay of the end-to-end service can be automatically adjusted, the problems of large workload and low maintenance efficiency in a time delay adjusting mode realized by manual intervention in the related technology are solved, and the effects of reducing cost and maintaining high efficiency.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1a and 1b are schematic structural diagrams of a BBU and an RRU in the related art;
FIG. 2 is a diagram illustrating delay symmetry in the related art;
fig. 3 is a block diagram of a hardware structure of a device of a method for adjusting a delay of an end-to-end service according to an embodiment of the present invention;
fig. 4 is a flowchart of a delay adjustment method for an end-to-end service according to an embodiment of the present invention;
FIG. 5 is a diagram illustrating sampling of timestamp packets during mutual transmission between two U-side ports of an end-to-end service according to an embodiment of the present invention;
FIG. 6a is a diagram illustrating a timestamp message format in the prior art;
fig. 6b is a schematic diagram of a timestamp message format according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of an adjustment device according to an embodiment of the invention;
fig. 8 is a schematic diagram of an apparatus for automatically adjusting delay symmetry according to an embodiment of the present invention.
Fig. 9 is a schematic structural diagram of a delay adjustment apparatus for end-to-end service according to an embodiment of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
Example 1
The method provided by the first embodiment of the present application may be executed in an apparatus, a computer terminal, or a similar computing device. Taking the operation on the device as an example, fig. 3 is a hardware structure block diagram of a device of a method for adjusting a delay of an end-to-end service according to an embodiment of the present invention. As shown in fig. 3, the device 10 may include one or more (only one shown in fig. 3) processors 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, and optionally may also include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 3 is merely illustrative and not limiting to the structure of the apparatus described above. For example, device 10 may also include more or fewer components than shown in FIG. 3, or have a different configuration than shown in FIG. 3.
The memory 104 may be used to store a computer program, for example, a software program and a module of an application software, such as a computer program corresponding to the method for adjusting a delay of an end-to-end service in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, so as to implement the method described above. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, memory 104 may further include memory located remotely from processor 102, which may be connected to device 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of such networks may include wireless networks provided by the communication provider of the device 10. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In the present embodiment there is provided a method for adjusting the delay of an end-to-end service running on a device,
fig. 4 is a flowchart of a method for adjusting a delay of an end-to-end service according to an embodiment of the present invention, and as shown in fig. 4, the flowchart includes the following steps:
step S402, after the end-to-end service between the first device and the second device is established, determining the difference value of the two-way time delay related to the end-to-end service of the first device; wherein, the difference value of the two-way time delay is the difference value of the forward time delay and the reverse time delay;
it should be noted that the first device and the second device are two devices in a networking formed by multiple devices, and there may be one or more other devices in the networking in the traffic flow direction from the first device to the second device.
Step S404, obtaining an average value of the difference values of the two-way time delays in a preset period based on the difference values of the two-way time delays;
step S406, adjusting the time delay of the end-to-end service according to the average value.
Through the steps S202 to S206, after the end-to-end service between the first device and the second device is established, the difference value of the two-way time delay related to the end-to-end service of the first device is determined, the average value of the difference value of the two-way time delay in the preset period is obtained based on the difference value of the two-way time delay, and then the time delay of the end-to-end service is adjusted according to the average value, so that the time delay of the end-to-end service can be automatically adjusted, the problems of large workload and low maintenance efficiency in a mode of adjusting the time delay through manual intervention in the related art are solved, and the effects of reducing the cost and maintaining the efficiency.
In an optional implementation manner of this embodiment, the manner of determining the difference value of the two-way delays related to the end-to-end service of the first device, which is involved in step S402 of this embodiment, may be implemented by:
step S402-11, determining the time of generating the end-to-end service at the first equipment side as a first timestamp, determining the time of receiving the end-to-end service by the second equipment as a second timestamp, determining the time of responding to the end-to-end service and sending a response message by the second equipment as a third timestamp, and determining the time of receiving the response message by the first equipment as a fourth timestamp;
and step S402-12, subtracting the sum of the first timestamp and the fourth timestamp from the sum of the second timestamp and the third timestamp to obtain a difference value of the two-way time delay.
The above steps S402-11 and S402-12 are exemplified below with reference to specific application scenarios;
fig. 5 is a schematic diagram of sampling timestamp messages during a process of sending timestamp messages between two U-side ports of an end-to-end service according to an embodiment of the present invention, where, as shown in fig. 5, timestamp messages sent by U-side ports at two ends of the service are independent from each other and do not affect each other; the PE1 device corresponds to the first device mentioned in the embodiment of the present application, and the PE2 device corresponds to the second device mentioned in the embodiment of the present application.
Wherein, the transmission frequency is N times per second, and N is P/Q, wherein P, Q are positive integers. The choice of N value is evaluated at least from several aspects: firstly, time stamp message receiving and sending introduced extra overhead, namely occupied bandwidth; secondly, the frequency cannot be too low, otherwise the automatic adjustment speed is affected. In the present application, the value of N is preferably 16, that is, 16 timestamp messages are sent per second, and of course, other values of N are also possible, and may be adjusted accordingly according to actual situations.
The specific sampling process is as follows: the timestamp message is generated on a U-side port of the PE device of the service, and when the timestamp message is generated, a timestamp T1 (equivalent to the first timestamp referred to in the present application) is stamped in the message, the timestamp T1 is transmitted along the service direction and passes through all P-node devices of the service on the network, and finally the message is received on the U-side port of the PE device at the other end, and a timestamp T2 (equivalent to the second timestamp referred to in the present application) is received, and then a response message is immediately returned at the receiving end, and a timestamp T3 (equivalent to the third timestamp referred to in the present application) is stamped, and the message is received on the transmitting-side interface, and a timestamp T4 (equivalent to the fourth timestamp referred to in the present application) is received. The transmitting end can calculate the difference value of one forward delay and one reverse delay according to T1, T2, T3 and T4. The forward delay is referred to as Tf, the reverse delay is referred to as Tb, and T _ diff ═ Tf-Tb is referred to as one sample. If T _ diff is equal to 0, the forward delay is the same as the reverse delay; if T _ diff is greater than 0, the forward delay is greater than the reverse delay; if T _ diff <0, the forward delay is less than the reverse delay. It can be seen that N samples are available per second.
It should be noted that, in the present application, a specific format of the timestamp packet is not limited, as long as a difference between a forward delay and a reverse delay can be calculated, and the timestamp packet is required to be capable of being sent and received by a U-side port, transmitted along a service path, and capable of passing through a P node device. Fig. 6a is a schematic diagram of a timestamp message format in the prior art, and with the timestamp format shown in fig. 6a, the sender may calculate a specific forward delay value Tf-T2-T1, and a specific reverse delay value Tb-T4-T3. The delay difference is sampled once as T _ diff-Tf-Tb. However, this approach has the disadvantages: the bandwidth occupied by the message is large, and a timestamp occupies 8 bytes according to an empirical value, and the unit is ns. Fig. 6b is a schematic diagram of a timestamp message format according to an embodiment of the present invention, where the timestamp format shown in fig. 6b is used to make the message occupy a small bandwidth and a timestamp space. Only the delay difference T _ diff (T3+ T2-T1) -T4, i.e., T _ diff (T2-T1) - (T4-T3) -Tf-Tb can be calculated. The specific values of Tf, Tb cannot be calculated. As long as the two-way delay difference can be calculated, the 5G requirement is satisfied.
In another optional implementation manner of this embodiment, as to the manner that the average value of the difference values of the two-way delays in the preset period is obtained based on the difference values of the two-way delays, which is referred to in step S404 of this embodiment, the following manner is implemented:
s404-11, acquiring a difference value of a first number of bidirectional time delays in a preset period;
step S404-12, filtering the difference value of the bidirectional time delay of the first quantity to obtain the difference value of the bidirectional time delay of a second quantity, wherein the second quantity is smaller than the first quantity;
and S404-13, calculating the average value of the sum result of the difference values of the second number of time delays and a preset period to obtain the average value of the difference values of the two-way time delays.
For the above step S404-11 to step S404-13, the following description is made with reference to a specific application scenario;
the preset period is T _ diff _ initial, and is a parameter which can be preset or customized according to actual conditions, the unit is second, and the value is greater than or equal to 1. During the preset period, N samples are obtained every second, and N × T _ diff _ initial samples are obtained in total. And then filtering all the samples, wherein the filtering process mainly removes abnormal X (> < 0) samples caused by time delay jitter. The remaining M ═ N × T _ diff _ initial-X samples after filtering. And summing T _ total of the delay differences of the M samples. And finally, averaging T _ average which is T _ total/M and is a floating point number.
It should be noted that, in the present application, a specific filtering manner is not limited, as long as abnormal samples caused by delay jitter can be filtered out. Other ways may of course be used, such as removing a maximum and removing a minimum after 16 samples are obtained per second.
In an optional implementation manner of this embodiment, the manner of adjusting the time delay of the end-to-end service according to the average value, which is involved in step S406 of this embodiment, may be implemented by:
step S406-11, under the condition that the average value is smaller than zero and the absolute value of the average value is larger than a preset threshold, triggering the first equipment to enter a monitoring state, and triggering the second equipment to perform time delay adjustment so as to enable the absolute value of the average value to be smaller than the preset threshold;
and step S406-12, under the condition that the average value is greater than zero and the absolute value of the average value is greater than a preset threshold, triggering the second equipment to enter a monitoring state, and triggering the first equipment to perform time delay adjustment so as to enable the absolute value of the average value to be smaller than the preset threshold.
As can be seen from the above steps S406-11 and S406-12, in the present application, which end device of the service performs the delay adjustment is decided according to the average value T _ average of the delay differences; the specific decision mode is as follows: if T _ average | < ═ user target (the user target is a preset threshold), the difference between forward delay and reverse delay meets the user target, and the devices (the first device and the second device) at both ends of the service are not adjusted; if T _ average is greater than 0, it indicates that the forward delay is greater than the reverse delay, and it is necessary to adjust the end-to-end service in the local device (first device); otherwise, if T _ average is less than 0, it indicates that the forward delay is less than the reverse delay, and the end-to-end service needs to be adjusted at the opposite device (second device), and the local device (first device) does not adjust.
In addition, a user target, which may also be set according to a requirement and has a unit of nanosecond (ns), may also be set as T _ diff _ need. The user requirement in the networking requires that the absolute value of the difference value between the forward delay and the reverse delay of the end-to-end service is less than or equal to the value. In the present application, "user target", i.e., | T _ average | < ═ T _ diff _ need.
It should be noted that, in the present application, the description is made with reference to a first device as a view point, so in the present application, a local device is a first device, and an opposite device is a second device. If the explanation is performed by taking the second device as the visual angle, the local device is the second device, and the opposite device is the first device. The principle of the manner of adjustment for the time delay is unchanged, regardless of which device is the first perspective.
In another optional implementation manner of the present application, as to a manner that the second device is triggered to perform the delay adjustment so that the absolute value of the average value is smaller than the preset threshold when the average value is smaller than zero and the absolute value of the average value is larger than the preset threshold in step S406 of this embodiment, the following manner may be implemented: triggering the second equipment to increase the duration of reverse time delay until the average value is smaller than a preset threshold value;
as for the manner that the first device is triggered to perform the delay adjustment to make the absolute value of the average value smaller than the preset threshold value under the condition that the average value is larger than zero and the absolute value of the average value is larger than the preset threshold value, which is referred to in step S406 of this embodiment, the following manner may be implemented: and triggering the first device to increase the duration of the reverse time delay until the average value is less than a preset threshold value.
The manner involved in step S406 is illustrated below with reference to a specific application scenario;
if the local terminal equipment is used for adjusting, firstly, coarse adjustment is carried out, and then fine adjustment is carried out until the absolute value of the average value is smaller than a preset threshold value. The time delay adjusting method adopting the coarse adjustment comprises the following steps:
step S502, judging whether the time delay can be adjusted in a large step; if the determination result is yes, step S504 is executed, and if the determination result is no, step S506 is executed;
step S504, executing the operation of large-step time delay adjustment; then, step S512 is executed;
step S506 of determining whether the delay can be adjusted at small steps, and if yes, executing step S508, and if no, executing step S510;
step S508, performing a step-by-step delay adjustment operation; then, step S512 is executed;
step S510, requesting an opposite terminal to adjust time delay and detecting a local terminal;
step S512, sampling and calculating a stable time delay difference;
and step S514, judging whether the time delay difference meets the target, if so, executing step S510, and if not, executing step S502.
It should be noted that the adjustment referred to in this application may be performed by reading the minimum scale, the maximum scale and the current scale of the "adjustment device", and fig. 7 is a schematic diagram of the adjustment device according to the embodiment of the present invention, and as shown in fig. 7, the reverse time delay T nanoseconds may be reduced by moving the current scale one per scale in the direction of the minimum scale. Correspondingly, the reverse time delay T nanosecond can be fixedly increased every time the current scale is moved to the maximum scale direction. And adjusting the current scale of the adjusting device by using the T _ average value obtained in the last step. Specifically, when T _ average is greater than 0, the current scale is adjusted in the maximum scale direction, and the adjusted scale number N2 is (| T _ average | + 0.5)/T. Where the symbol/is tail-removed integer. Examples are: assuming that T _ average is 5.6ns and T is 2ns, N2 is (5.6+0.5)/2 is 6.1/2 is 3. Assuming that T _ average is 5.4ns and T is 2ns, N2 is (5.4+0.5)/2 is 5.9/2 is 2. Specifically, when T _ average is less than 0, the current scale is adjusted toward the minimum scale, and the adjusted scale number N2 is (| T _ average | + 0.5)/T. Examples are: assuming that T _ average is-5.6 ns and T is 2ns, N2 is (5.6+0.5)/2 is 6.1/2 is 3. Assuming that T _ average is-5.4 ns and T is 2ns, N2 is (5.4+0.5)/2 is 5.9/2 is 2. This process is referred to as "coarse tuning".
In addition, after the "coarse tuning" of the time delay, the "fine tuning" may be adopted in the present application, and the premise of the fine tuning is to filter the average value of the time delay difference, which is the same as the manner in step S404. That is, in a preset period, N samples are obtained every second, and N × T _ diff _ adjusting samples are obtained in total. All samples are then filtered, and the filtering process removes the abnormal X (> < 0) samples caused by the delay jitter. The remaining M after filtering is N X T diff adjusting X samples. And summing T _ total of the delay differences of the M samples. And finally, averaging T _ average which is T _ total/M and is a floating point number. The adjustment formula is the same as above, where N2 ═ T _ average | +0.5)/T, where the sign/is tail-out integer. And according to the T _ average value, the current scale of the adjusting device is adjusted by using the formula. The specific adjustment method is consistent with the mode of coarse adjustment. This process is called "fine tuning", and in this process, if N2 is 0, the user target is satisfied.
For the combination of "coarse adjustment" and "fine adjustment" referred to in the above application, for example, if the adjustment device has 2ns per scale and the delay difference has an average value of 10ns, and the first device increases the reverse delay, the coarse adjustment refers to increasing 10/2 to 5 scales at a time. Under normal conditions, the networking requirements of the user can be met after coarse adjustment. However, if there is jitter and it is possible to adjust, then the average value is again-2 ns, and fine adjustment is needed to adjust one scale. That is, fine adjustment is at most one scale, and coarse adjustment is greater than one scale.
In the adjustment related in the application, if the number of scales to be adjusted is not 0, and the current scale needs to be adjusted to the minimum scale, and the current scale overlaps with the minimum scale, the device where the service is located cannot complete the adjustment, and at this time, the device at the opposite end is requested to be adjusted. If the number of scales to be adjusted is not 0, and the current scale needs to be adjusted to the maximum scale, and the current scale overlaps with the maximum scale, the device where the service is located cannot complete adjustment, and at this time, adjustment of the opposite-end device is requested.
In an optional implementation manner of this embodiment, the method of this embodiment may further include:
and step S408, reporting alarm information under the condition that the average value is smaller than zero or larger than zero and the absolute value of the average value is larger than a preset threshold value.
That is, after the end-to-end service is successfully established, if it is counted that the average value of the forward delay and the reverse delay difference cannot meet the user target (the absolute value is smaller than the preset threshold), an alarm is reported. And if the average value of the forward delay and the reverse delay difference is counted to meet the user target, reporting the alarm to disappear. The detection point of the alarm is the service, the alarm description can express that the symmetry of the time delay is not satisfied, and optionally, the alarm description can also include the value of the current time delay difference.
Different statistical periods are selected in different steps of the adjustment process: a "decision" period T _ diff _ initial; the "stable" period T _ diff _ adjusting; the "monitor" period T _ diff _ monitor.
In an optional implementation manner of this embodiment, the method in this embodiment may further include:
step S410, under the condition that the connectivity of the end-to-end service is lost LOC, the time delay adjustment operation of the end-to-end service is stopped;
step S412, when the LOC disappears, the delay adjustment operation of the end-to-end service is continuously executed.
The present application is exemplified below with reference to alternative embodiments thereof;
in this alternative embodiment, a method for automatically adjusting symmetry of time delay is provided, and the principle of the method includes: after the end-to-end service is opened, timestamp messages are automatically sent between two U-side ports of the end-to-end service, the bidirectional delay difference of the service is calculated by sampling timestamp data, and the average value of the delay difference in a decision period is counted. And deciding whether the service is subjected to time delay adjustment on the local terminal PE equipment or the opposite terminal PE equipment according to the time delay difference average value. If the adjustment is performed by the opposite terminal device, the service only monitors the time delay difference at the local terminal device. If the local terminal equipment is used for adjusting, firstly, coarse adjustment is carried out, and then fine adjustment is carried out until the user target is met, and then the time delay difference is monitored. And if the service can not meet the user target when the local terminal equipment is adjusted to the hardware capability limit, requesting the opposite terminal PE equipment to continuously adjust the service, and only monitoring the delay difference by the local terminal.
It should be noted that, the "user target" T _ diff _ need referred to in this application, is a preset parameter, which is in nanoseconds (ns), and is a requirement of a user in a network (corresponding to the preset threshold referred to in this application), and an absolute value of a difference between a forward delay and a reverse delay of an end-to-end service is required to be less than or equal to this value. Namely "user target" | T _ average | < ═ T _ diff _ need.
The method of this alternative embodiment may further comprise: after the end-to-end service is opened, the delay adjustment can be automatically stopped after detecting the LOC (loss of connectivity) of the service. The method also comprises the step of automatically restarting the time delay adjustment process after the disappearance of the LOC is detected again, and the process is the same as the above. The automatic stopping of the delay adjustment means stopping sampling the service and not executing any delay adjustment process.
When the opposite terminal equipment is required to perform time delay adjustment, the step of requesting the opposite terminal equipment of the service to perform time delay adjustment comprises the following steps:
step S602, the local device sends a message of "request for adjustment" to the peer device.
Step S604, if the opposite end determines that it is adjustable, then respond with an "adjustable" message.
And if the local terminal receives the message of 'adjustable', the local terminal only monitors the time delay. After responding to the message of 'adjustable' to the opposite terminal, the subsequent 'adjusting time delay' process is carried out.
Step S606, if the opposite end is judged to be not adjustable, responding to the message of 'not adjustable'. If the local terminal receives the message that 'can not be adjusted', the local terminal only monitors the time delay. After the message of 'unable adjustment' is responded to the opposite terminal, no action is taken, and only the time delay is monitored.
It should be noted that, in the present application, it is determined whether the device itself can be adjusted, and if the current scale of the "adjusting device" does not coincide with the minimum scale, or does not coincide with the maximum scale, the device can be adjusted; otherwise no adjustment is possible.
In addition, the specific format of the request/response message is not limited in this application, as long as the type of "request" or "response" can be accurately expressed, and the request/response message is required to be capable of being sent and received by a U-side port, transmitted along a traffic path, and capable of passing through a P-node device. As shown in table 1 below, a message format is given.
Figure BDA0002065930690000131
TABLE 1
The negotiation messages are transmitted in O-codes, 66B blocks, defined by the 802.3 standard. The first row represents the bit position and the second row represents the specific field. Here a reserved field is used. The negotiation message is uniquely identified by 0x4B (bits 2-9) +0xF (bits 34-37) + type ═ 0x35 (bits 12-17).
Wherein Seq is the sequence number, used in multiframe, and fixed to 0. CRC4, the sending end performs CRC4 calculation on bits 2-61, and the result is filled in the field. And the receiving end carries out CRC4 calculation on bits 2-61, and if the calculation result is different from the received CRC4, the code block is judged to generate errors and discarded. Resv reservation. The sender fills in 0 and the receiver is not concerned.
Table 2 shows a request message requesting the peer device to perform delay adjustment, as shown in table 2,
Figure BDA0002065930690000132
TABLE 2
Wherein, R: fix fill 1.
As shown in Table 3, the message can be adjusted, the opposite end is responded, and the adjustment is performed by the local end
Figure BDA0002065930690000141
TABLE 3
Wherein a is fixed fill 1.
As shown in table 4, the message may not be adjusted, the opposite end is answered: the home terminal cannot be adjusted
Figure BDA0002065930690000142
TABLE 4
In addition, it should be noted that this optional embodiment can receive the customized parameter, modify the system behavior in real time according to the parameter, and the system executes the flow of delay adjustment according to the parameter. This alternative embodiment further includes storing the parameters in a non-volatile medium that is effective after the system is powered down and powered back up.
The customization parameters that this alternative embodiment can receive are as follows:
"user target" T _ diff _ need, in nanoseconds (ns). The user requirement in the networking requires that the absolute value of the difference value between the forward delay and the reverse delay of the end-to-end service is less than or equal to the value. And after the service is established, if the statistical actual delay difference is larger than the value, reporting an alarm. After less than this value, the alarm disappears. The alarm generation disappearance processing selects different statistical periods in different steps of the adjustment process:
a "decision" period T _ diff _ initial; the "stable" period T _ diff _ adjusting; the "monitor" period T _ diff _ monitor.
And (4) deciding a period T _ diff _ initial, wherein the unit is second, and the value is more than or equal to 1. And negotiating which system is adjusted and which system is not adjusted for the service end-to-end two systems. The two systems independently send and respond to the time stamp and calculate the bidirectional time delay difference. The result is decided in a 'decision' period.
The unit of the stable period T _ diff _ adjusting is second, and the value is more than or equal to 1. The system adjusts the acknowledgement time after the delay. And after the system adjusts the time delay, calculating the average value of the time delay difference in the time period. And according to the result, deciding the next adjustment action.
The monitoring period is T _ diff _ monitor, the unit is second, and the value is more than or equal to 1. And after the system is adjusted, calculating the average value of the time delay difference in the time period. The user can use manual commands to see the delay spread of the system in steady state.
Based on the method in this optional embodiment, this optional embodiment further provides a device for automatically adjusting symmetry of time delay, fig. 8 is a schematic diagram of a device for automatically adjusting symmetry of time delay according to an embodiment of the present invention, and as shown in fig. 8, the device includes:
a time synchronization module: for time synchronization of all devices in the network. Only the equipment which completes the time synchronization can measure the end-to-end one-way time delay.
A service module: and the system is responsible for managing the establishment, parameter modification and deletion of the end-to-end service. Responsible for end-to-end service connectivity management: when the connectivity is lost, "LOC generation" is sent, otherwise "LOC disappearance" is sent.
A timestamp module: and sending a time delay measurement message from the U-side port along the service direction at a certain period by using a synchronization result of the time synchronization module. 16 timestamps are sent per second. The module provides an 'enable' interface to the outside. When the module is enabled, the module sends a timestamp message. When the module is disabled, the module stops sending the timestamp message.
An adjusting module: providing adjusted minimum and maximum scales, and a current scale. Adjustable time delay difference of each scale. The system has a minimum scale 10, a maximum scale 255 and a current scale 10. The adjustable delay difference per scale is 2 ns.
A negotiation module: the method is used for sending and receiving the negotiation message of the automatic adjustment delay symmetry module.
The automatic adjustment time delay symmetry module is used for receiving the message of the service module: and completing service establishment and deleting service. LOC generation and disappearance; and receiving a message of "time synchronization module": the time synchronization is completed.
In addition, the module sets the enable of the timestamp module to turn on or off the timestamp function. When the module is started, the module reads the time stamp of the time stamp module and calculates the forward and reverse time delay difference. And adjusting the time delay according to the time delay difference, increasing or decreasing, and issuing a command to an adjusting module.
The negotiation message of the module is sent through a negotiation module and read through the negotiation module.
External interface module: and providing parameter configuration and module diagnosis of the automatic adjustment time delay symmetrical module. Diagnostic commands include-manual force stop: and forcibly returning the state machine to a starting state.
And (3) manually restarting: the state machine jumps from starting to initial.
The module also transmits the alarm generated by the automatic adjustment delay symmetry module to the outside of the system.
The custom parameter defaults referred to in the application are as follows:
- "decision" period T _ diff _ initial for 20 seconds
- "Stable" period T _ diff _ adjusting for 10 seconds
- "monitor" period T _ diff _ monitor for 10 seconds.
The filtering method adopted by the equipment comprises the following steps: a maximum value is removed and a minimum value is removed for 16 time stamp samples per second.
The device maintains a state machine for each U-side port of the end-to-end traffic.
Starting state: the "timestamp module" does not enable the timestamp function of this port.
Initial: initializing the state, enabling a 'timestamp module', and deciding which end equipment to adjust.
Idle state: only the forward delay and the reverse delay difference are counted, and no adjustment is carried out.
adjusting state: and adjusting, namely calculating whether the scale is increased or decreased according to the average value T _ average of the time delay difference and the current scale of the adjusting module, and setting the current scale of the adjusting module.
The Waiting state: when the device is in the adjusting state, the scale needing to be adjusted exceeds the minimum and maximum scales of the adjusting module. Then sending an adjustment request to the opposite terminal equipment, and enabling the local terminal to be in the waiting state.
Monitor state: the difference from the staring state is that the "timestamp module" enables the timestamp functionality of this port.
The present alternative embodiment described above is illustrated with reference to specific embodiments.
Alternative embodiment 1
In this optional embodiment 1, the user networking is 3 devices, two PEs, and one P. Assume that the times of 3 devices are synchronized. "user target" T _ diff _ need < ═ 3 ns.
An end-to-end service 1 is established. Assume that PE1 forward delay is 50ns and PE1 reverse delay is 60 ns. Assuming that the minimum scale of the 'adjustment device' is 10 and the maximum scale is 255, each scale can adjust the time delay by 2ns, and the current scale is 10.
Service establishment, the steps of the alternative embodiment include:
step S11: PE1 service 1 state machine starts as "starting". PE2 service 1 state machine starts as "starting".
Step S12: PE1, Business 1 State machine transitions to initial, enabling the "timestamp Module". PE2, Business 1 State machine transitions to initial, enabling the "timestamp Module".
Step S13: PE1, the "automatic adjustment delay symmetry module" reads the samples of the "timestamp module", and counts the average delay difference value of the "decision" period T _ diff _ initial, and because of the delay jitter, the average value is close to the true value, but not necessarily equal to the true value. Assume that the calculated T average is-8 ns.
Similarly, PE2 assumes that T _ average is 9ns as the average value of the statistical delay differences.
Step S14: PE1, service 1 reports that the alarm-delay symmetry is not satisfied, and current | T _ average | ═ 8ns, reverse delay is large.
PE2, service 1 reports that the alarm-delay symmetry does not satisfy, and current | T _ average | ═ 9ns, the forward delay is large.
Step S15: upon decision, PE1, the service 1 state machine jumps to the monitor state. PE2, the service 1 state machine jumps to the adapting state.
Step S16: PE2, adjust the current scale of the "adjust device" to 14, adding 8ns of delay in the reverse-in direction.
Step S17: PE2, the "automatic adjustment delay symmetry module" reads the samples of the "timestamp module", and calculates the average value of the delay difference in the "stable" period T _ diff _ adjustment, assuming that T _ average is 1 ns. The target of | T _ average | < ═ 3ns has been met.
Similarly, the average value of the delay differences calculated by PE1 for the last 10 seconds is assumed to be T _ average — 1 ns.
Step S18: PE2, service 1, jumps to monitor state.
Step S19: PE2, service 1 reports that the alarm disappears, and the symmetry of time delay is not satisfied.
PE1, service 1 reports that the alarm disappears, and the symmetry of time delay is not satisfied.
Step S20: PE1, PE2 and service 1 are all in monitor state, only time stamps are read, and bidirectional delay difference in a monitoring period T _ diff _ monitor is counted without adjustment.
At the moment, the bidirectional delay difference of the newly-built service is automatically compensated, and the target of Tf-Tb | < ═ 3ns is met. User operation is not needed, and maintenance cost is reduced.
Alternative embodiment 2
In this optional embodiment, the user networking is 3 devices, two PEs, and one P. Assume that the times of 3 devices are synchronized. "user target" T _ diff _ need < ═ 3 ns.
End-to-end service 1 is established assuming that PE1 has a forward delay of 60ns and PE1 has a reverse delay of 50 ns. Assuming that the minimum scale of the 'adjustment device' is 10 and the maximum scale is 255, each scale can adjust the time delay by 2ns, and the current scale is 10.
The service establishment, the steps of this optional embodiment include:
step S11: PE1 service 1 state machine starts as "starting". PE2 service 1 state machine starts as "starting".
Step S12: PE1, Business 1 State machine transitions to initial, enabling the "timestamp Module". PE2, Business 1 State machine transitions to initial, enabling the "timestamp Module".
Step S13: PE1, the "automatic adjustment delay symmetry module" reads the samples of the "timestamp module", and counts the average delay difference value of the "decision" period T _ diff _ initial, and because of the delay jitter, the average value is close to the true value, but not necessarily equal to the true value. Let T average calculated be 8 ns.
Similarly, PE2 calculates the average value of the delay differences, which is assumed to be T _ average ═ 9 ns.
Step S14: PE1, service 1 reports that the alarm-delay symmetry does not satisfy, and current | T _ average | ═ 8ns, the forward delay is large.
PE2, service 1 reports that the alarm-delay symmetry does not satisfy, and current | T _ average | ═ 9ns, reverse delay is large.
Step S15: upon decision, PE2, the service 1 state machine jumps to the monitor state. PE1, the service 1 state machine jumps to the adapting state.
Step S16: PE1, adjust the current scale of the "adjust device" to 14, adding 8ns of delay in the reverse-in direction.
Step S17: PE1, the "automatic adjustment delay symmetry module" reads the samples of the "timestamp module", and calculates the average value of the delay difference in the "stable" period T _ diff _ adjustment, assuming that T _ average is 1 ns. The target of | T _ average | < ═ 3ns has been met.
Similarly, the average value of the delay differences calculated by PE2 for the last 10 seconds is assumed to be T _ average — 1 ns.
Step S18: PE1, service 1, jumps to monitor state.
Step S19: PE1, service 1 reports that the alarm disappears, and the symmetry of time delay is not satisfied.
PE2, service 1 reports that the alarm disappears, and the symmetry of time delay is not satisfied.
Step 20: PE1, PE2 and service 1 are all in monitor state, only time stamps are read, and bidirectional delay difference in a monitoring period T _ diff _ monitor is counted without adjustment.
At the moment, the bidirectional delay difference of the newly-built service is automatically compensated, and the target of Tf-Tb | < ═ 3ns is met. User operation is not needed, and maintenance cost is reduced.
Alternative embodiment 3
In this optional embodiment, the user networking is 3 devices, two PEs, and one P. Assume that the times of 3 devices are synchronized. "user target" T _ diff _ need < ═ 3 ns.
An end-to-end service 1 is established. Assume that PE1 forward delay is 60ns and PE1 reverse delay is 50 ns. Assuming that the minimum scale of the 'adjustment device' is 10 and the maximum scale is 255, each scale can adjust the time delay by 2ns, and the current scale is 10.
After automatic adjustment, PE1 and PE2, service 1, the state machine are all monitor states. PE1, service 1, "adjust device" currently scales as 14. PE1 counts forward and reverse delay differences to meet the user objective, and similarly PE2 counts forward and reverse delay differences to meet the user objective.
At this time, the optical fiber between PE1 and P is broken, and the method steps of this alternative embodiment include:
step S11: PE1, service 1, service module detects LOC, informs "automatic adjustment delay symmetry module", jumps to starting state, resumes "adjustment device" current scale as 10. Similarly, PE2, service 1, jumps to the starting state, and resumes the current scale of "adjusting device" as 10.
The fiber between PE1 and P recovers.
Step S12: PE1, service 1, service module, notify module of automatic adjustment delay symmetry LOC disappear, jump to initial state, enable timestamp module. Meanwhile, PE2, Business 1, jumps to initial state, enables "timestamp Module".
Step S13: PE1, the "automatic adjustment delay symmetry module" reads the samples of the "timestamp module", and counts the average delay difference value of the "decision" period T _ diff _ initial, and because of the delay jitter, the average value is close to the true value, but not necessarily equal to the true value. Let T average calculated be 8 ns.
Similarly, PE2 calculates the average value of the delay differences, which is assumed to be T _ average ═ 9 ns.
Step S14: PE1, service 1 reports that the alarm-delay symmetry does not satisfy, and current | T _ average | ═ 8ns, the forward delay is large.
PE2, service 1 reports that the alarm-delay symmetry does not satisfy, and current | T _ average | ═ 9ns, reverse delay is large.
Step S15: upon decision, PE2, the service 1 state machine jumps to the monitor state. PE1, the service 1 state machine jumps to the adapting state.
Step S16: PE1, adjust the current scale of the "adjust device" to 14, adding 8ns of delay in the reverse-in direction.
Step S17: PE1, the "automatic adjustment delay symmetry module" reads the samples of the "timestamp module", and calculates the average value of the delay difference in the "stable" period T _ diff _ adjustment, assuming that T _ average is 1 ns. The target of | T _ average | < ═ 3ns has been met.
Similarly, the average value of the delay differences calculated by PE2 for the last 10 seconds is assumed to be T _ average — 1 ns.
Step S18: PE1, service 1, jumps to monitor state.
Step S19: PE1, service 1 reports that the alarm disappears, and the symmetry of time delay is not satisfied.
PE2, service 1 reports that the alarm disappears, and the symmetry of time delay is not satisfied.
Step S20: PE1, PE2 and service 1 are all in monitor state, only time stamps are read, and bidirectional delay difference in a monitoring period T _ diff _ monitor is counted without adjustment.
At the moment, when the LOC is generated in the service and disappears, the equipment can automatically adjust the bidirectional time delay difference to finally obtain automatic compensation, and the target of Tf-Tb | < ═ 3ns is met. User operation is not needed, and maintenance cost is reduced.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
Example 2
In this embodiment, a delay adjustment apparatus for an end-to-end service is also provided, and the apparatus is used to implement the foregoing embodiment and preferred embodiments, and details of which have been already described are omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 9 is a schematic structural diagram of a delay adjustment apparatus for end-to-end service according to an embodiment of the present invention, and as shown in fig. 9, the apparatus includes: a determining module 92, configured to determine, after an end-to-end service between the first device and the second device is established, a difference between two-way delays related to the end-to-end service of the first device; wherein, the difference value of the two-way time delay is the difference value of the forward time delay and the reverse time delay; the processing module 94 is coupled to the determining module 92 and configured to obtain an average value of the difference values of the two-way time delays in the preset period based on the difference value of the two-way time delays; and an adjusting module 96, coupled to the processing module 94, for adjusting the time delay of the end-to-end service according to the average value.
Optionally, the adjusting module 96 includes: the first adjusting unit is used for triggering the first equipment to enter a monitoring state and triggering the second equipment to carry out time delay adjustment so that the absolute value of the average value is smaller than the preset threshold value under the condition that the average value is smaller than zero and the absolute value of the average value is larger than the preset threshold value; and the second adjusting unit is used for triggering the second equipment to enter a monitoring state and triggering the first equipment to perform time delay adjustment so that the absolute value of the average value is smaller than the preset threshold value under the condition that the average value is larger than zero and the absolute value of the average value is larger than the preset threshold value.
Optionally, the determining module 92 comprises: a first determining unit, configured to determine a time when an end-to-end service is generated at a first device side as a first timestamp, determine a time when a second device receives the end-to-end service as a second timestamp, determine a time when the second device responds to the end-to-end service and sends a response packet as a third timestamp, and determine a time when the first device receives the response packet as a fourth timestamp; and the second determining unit is used for subtracting the sum of the first timestamp and the fourth timestamp from the sum of the second timestamp and the third timestamp to obtain a difference value of the two-way time delay.
Optionally, the processing module 94 includes: the device comprises an acquisition unit, a processing unit and a control unit, wherein the acquisition unit is used for acquiring a difference value of a first number of bidirectional time delays in a preset period; the filtering unit is used for filtering the difference value of the first number of bidirectional time delays to obtain the difference value of a second number of bidirectional time delays, wherein the second number is smaller than the first number; and the processing unit is used for calculating the average value of the sum result of the difference values of the second number of time delays and the preset period to obtain the average value of the difference values of the two-way time delays.
In an optional implementation manner of this embodiment, the apparatus of this embodiment may further include: the adjusting module is further used for triggering the second device to increase the duration of the reverse time delay until the absolute value of the average value is smaller than the preset threshold under the condition that the average value is smaller than zero and the absolute value of the average value is larger than the preset threshold; and under the condition that the average value is larger than zero and the absolute value of the average value is larger than a preset threshold, triggering the first device to increase the duration of reverse time delay until the absolute value of the average value is smaller than the preset threshold.
Optionally, in an optional implementation manner of this embodiment, the apparatus of this embodiment may further include:
and the reporting module is used for reporting the alarm information under the condition that the average value is smaller than zero or larger than zero and the absolute value of the average value is larger than a preset threshold value.
In an optional implementation manner of this embodiment, the apparatus of this embodiment may further include: the termination module is used for terminating the time delay adjustment operation of executing the end-to-end service under the condition that the connectivity loss LOC is generated in the end-to-end service; and the execution module is used for continuously executing the time delay adjustment operation of the end-to-end service under the condition that the LOC disappears.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Example 3
Embodiments of the present invention also provide a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
step S1, after the end-to-end service between the first device and the second device is established, determining a difference value of two-way delays related to the end-to-end service of the first device; wherein, the difference value of the two-way time delay is the difference value of the forward time delay and the reverse time delay;
step S2, obtaining the average value of the difference value of the two-way time delay in the preset period based on the difference value of the two-way time delay;
and step S3, adjusting the time delay of the end-to-end service according to the average value.
Optionally, in this embodiment, the storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
step S1, after the end-to-end service between the first device and the second device is established, determining a difference value of two-way delays related to the end-to-end service of the first device; wherein, the difference value of the two-way time delay is the difference value of the forward time delay and the reverse time delay;
step S2, obtaining the average value of the difference value of the two-way time delay in the preset period based on the difference value of the two-way time delay;
and step S3, adjusting the time delay of the end-to-end service according to the average value.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method for adjusting a delay of an end-to-end service is characterized by comprising the following steps:
after an end-to-end service between first equipment and second equipment is established, determining a difference value of two-way time delay related to the end-to-end service of the first equipment; wherein, the difference value of the two-way time delay is the difference value of the forward time delay and the reverse time delay;
obtaining an average value of the difference values of the two-way time delays in a preset period based on the difference values of the two-way time delays;
and adjusting the time delay of the end-to-end service according to the average value.
2. The method of claim 1, wherein the adjusting the delay of the end-to-end service according to the average value comprises:
when the average value is smaller than zero and the absolute value of the average value is larger than a preset threshold value, triggering the first equipment to enter a monitoring state, and triggering the second equipment to perform time delay adjustment so that the absolute value of the average value is smaller than the preset threshold value;
and under the condition that the average value is larger than zero and the absolute value of the average value is larger than a preset threshold, triggering the second equipment to enter a monitoring state, and triggering the first equipment to carry out time delay adjustment so as to enable the absolute value of the average value to be smaller than the preset threshold.
3. The method of claim 2, wherein determining the difference in bidirectional delay associated with end-to-end traffic of the first device comprises:
determining the time when the end-to-end service is generated at the first equipment side as a first timestamp, determining the time when the second equipment receives the end-to-end service as a second timestamp, determining the time when the second equipment responds to the end-to-end service and sends a response message as a third timestamp, and determining the time when the first equipment receives the response message as a fourth timestamp;
and subtracting the sum of the first timestamp and the fourth timestamp from the sum of the second timestamp and the third timestamp to obtain a difference value of the two-way time delay.
4. The method of claim 3, wherein the obtaining an average value of the difference values of the two-way delays in a preset period based on the difference values of the two-way delays comprises:
acquiring a difference value of a first number of bidirectional time delays in the preset period;
filtering the difference value of the first number of bidirectional time delays to obtain a difference value of a second number of bidirectional time delays, wherein the second number is smaller than the first number;
and calculating the average value of the sum result of the difference values of the second number of time delays and the preset period to obtain the average value of the difference values of the two-way time delays.
5. The method according to claim 2 or 4,
when the average value is smaller than zero and the absolute value of the average value is greater than a preset threshold, triggering the second device to perform time delay adjustment so that the absolute value of the average value is smaller than the preset threshold, including: triggering the second device to reduce the duration of the reverse time delay until the absolute value of the average value is smaller than the preset threshold value;
when the average value is greater than zero and the absolute value of the average value is greater than a preset threshold, triggering the first device to perform time delay adjustment so that the absolute value of the average value is less than the preset threshold, including: and triggering the first device to increase the duration of the reverse time delay until the absolute value of the average value is smaller than the preset threshold value.
6. The method of claim 1, further comprising:
and reporting alarm information under the condition that the average value is smaller than zero or larger than zero and the absolute value of the average value is larger than a preset threshold value.
7. The method of claim 1, further comprising:
under the condition that the connectivity of the end-to-end service is lost LOC, stopping executing the time delay adjustment operation of the end-to-end service;
and under the condition that the LOC disappears, continuously executing the time delay adjustment operation of the end-to-end service.
8. A delay adjustment apparatus for an end-to-end service, comprising:
the device comprises a determining module, a judging module and a judging module, wherein the determining module is used for determining the difference value of the two-way time delay related to the end-to-end service of the first device after the end-to-end service between the first device and the second device is established; wherein, the difference value of the two-way time delay is the difference value of the forward time delay and the reverse time delay;
the processing module is used for obtaining the average value of the difference values of the two-way time delay in a preset period based on the difference values of the two-way time delay;
and the adjusting module is used for adjusting the time delay of the end-to-end service according to the average value.
9. A storage medium, in which a computer program is stored, wherein the computer program is arranged to perform the method of any of claims 1 to 7 when executed.
10. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to execute the computer program to perform the method of any of claims 1 to 7.
CN201910420730.XA 2019-05-20 2019-05-20 Delay adjustment method and device for end-to-end service, storage medium and electronic device Active CN111970759B (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN201910420730.XA CN111970759B (en) 2019-05-20 2019-05-20 Delay adjustment method and device for end-to-end service, storage medium and electronic device
BR112021023358A BR112021023358A2 (en) 2019-05-20 2020-04-20 Delay and device adjustment method for end-to-end service, storage medium and electronic device
PCT/CN2020/085694 WO2020233313A1 (en) 2019-05-20 2020-04-20 Delay adjustment method and apparatus for end-to-end service, storage medium, and electronic apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910420730.XA CN111970759B (en) 2019-05-20 2019-05-20 Delay adjustment method and device for end-to-end service, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN111970759A true CN111970759A (en) 2020-11-20
CN111970759B CN111970759B (en) 2023-05-30

Family

ID=73358042

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910420730.XA Active CN111970759B (en) 2019-05-20 2019-05-20 Delay adjustment method and device for end-to-end service, storage medium and electronic device

Country Status (3)

Country Link
CN (1) CN111970759B (en)
BR (1) BR112021023358A2 (en)
WO (1) WO2020233313A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113708999A (en) * 2021-08-30 2021-11-26 国家电网有限公司 Communication network time delay monitoring system and method
CN114422069A (en) * 2022-01-04 2022-04-29 烽火通信科技股份有限公司 Time delay processing method, device, equipment and storage medium of FlexE service
WO2022237562A1 (en) * 2021-05-08 2022-11-17 中兴通讯股份有限公司 Path computation method and apparatus, storage medium, and electronic device

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115189784A (en) * 2022-06-30 2022-10-14 联想(北京)有限公司 Time delay processing method and device, electronic equipment and storage medium
CN116996198B (en) * 2023-09-25 2023-12-19 之江实验室 Flexible Ethernet bidirectional delay symmetrical small particle time slot allocation method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102014431A (en) * 2010-11-08 2011-04-13 华为技术有限公司 Anti-jittering data transmission method, equipment and system
CN105099649A (en) * 2015-08-14 2015-11-25 宋亚玲 Method and system for synchronously inserting network time
CN105610727A (en) * 2015-11-06 2016-05-25 瑞斯康达科技发展股份有限公司 Network data transmission method and device
CN105992025A (en) * 2015-02-15 2016-10-05 深圳市民展科技开发有限公司 Audio synchronous playing-based system time calibration method, audio synchronous playing method and devices

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102098135B (en) * 2011-03-04 2013-06-05 北京邮电大学 System and method for traffic flow distribution under heterogeneous network fusion
CN108989137B (en) * 2017-06-01 2023-04-18 中兴通讯股份有限公司 Time delay measuring method and device for end-to-end communication and computer readable storage medium
CN108631946A (en) * 2018-05-14 2018-10-09 海能达通信股份有限公司 A kind of delay adjusting method and relevant device
CN109005557B (en) * 2018-09-26 2021-12-07 中兴通讯股份有限公司 Time delay symmetry measuring method, device and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102014431A (en) * 2010-11-08 2011-04-13 华为技术有限公司 Anti-jittering data transmission method, equipment and system
CN105992025A (en) * 2015-02-15 2016-10-05 深圳市民展科技开发有限公司 Audio synchronous playing-based system time calibration method, audio synchronous playing method and devices
CN105099649A (en) * 2015-08-14 2015-11-25 宋亚玲 Method and system for synchronously inserting network time
CN105610727A (en) * 2015-11-06 2016-05-25 瑞斯康达科技发展股份有限公司 Network data transmission method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022237562A1 (en) * 2021-05-08 2022-11-17 中兴通讯股份有限公司 Path computation method and apparatus, storage medium, and electronic device
CN113708999A (en) * 2021-08-30 2021-11-26 国家电网有限公司 Communication network time delay monitoring system and method
CN114422069A (en) * 2022-01-04 2022-04-29 烽火通信科技股份有限公司 Time delay processing method, device, equipment and storage medium of FlexE service
CN114422069B (en) * 2022-01-04 2023-12-05 烽火通信科技股份有限公司 Delay processing method, device, equipment and storage medium for FlexE service

Also Published As

Publication number Publication date
CN111970759B (en) 2023-05-30
BR112021023358A2 (en) 2022-02-01
WO2020233313A1 (en) 2020-11-26

Similar Documents

Publication Publication Date Title
CN111970759B (en) Delay adjustment method and device for end-to-end service, storage medium and electronic device
CN112688754B (en) Method and device for transmitting service flow based on flexible Ethernet Flexe
CN106130766B (en) System and method for realizing automatic network fault analysis based on SDN technology
EP2983324A1 (en) Timestamp generating method, device and system
EP4024778A1 (en) Method for determining required bandwidth for data stream transmission, and devices and system
EP3295612B1 (en) Uplink performance management
CN103236893A (en) Network message synchronizing method for process levels of intelligent substation
EP3758409A1 (en) Data traffic processing method and related network device
CN112448885A (en) Method and device for transmitting service message
CN114449586A (en) Communication scheduling method, device and storage medium
CN109981235B (en) Flexe Group negotiation method and network element
US11444831B2 (en) Methods, systems, and computer readable media for measuring schedule update time for a time aware shaper implementation
CN108683568B (en) Method and system for sectional detection of VPN service channel quality
EP2953295A1 (en) Automatic delta event synchronization in multiple manager-agent environments
US9553828B1 (en) System and method for collision detection and avoidance for network communications
US7046693B1 (en) Method and system for determining availability in networks
US10334539B2 (en) Metered interface
CN105592485A (en) Method for collecting and processing messages in real time based on SNMP
CN108599984B (en) Method for sharing port state, access equipment and system for supporting dual-homing protection
CN111510394A (en) Message scheduling method, related equipment and computer storage medium
CN111464965A (en) Resource period configuration, link processing and establishing method and device
WO2013042564A1 (en) Diagnostic system
JPWO2007074679A1 (en) Communication control method, communication monitoring method, communication system, access point, and program
US9203718B2 (en) Frame loss measurement device, communication device, communication system and performance measurement method
CN117395178B (en) Quality monitoring method based on network division

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