WO2020233313A1 - 端到端业务的时延调整方法及装置、存储介质和电子装置 - Google Patents

端到端业务的时延调整方法及装置、存储介质和电子装置 Download PDF

Info

Publication number
WO2020233313A1
WO2020233313A1 PCT/CN2020/085694 CN2020085694W WO2020233313A1 WO 2020233313 A1 WO2020233313 A1 WO 2020233313A1 CN 2020085694 W CN2020085694 W CN 2020085694W WO 2020233313 A1 WO2020233313 A1 WO 2020233313A1
Authority
WO
WIPO (PCT)
Prior art keywords
delay
difference
average value
service
value
Prior art date
Application number
PCT/CN2020/085694
Other languages
English (en)
French (fr)
Inventor
马西照
高文
徐杨
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Priority to BR112021023358A priority Critical patent/BR112021023358A2/pt
Publication of WO2020233313A1 publication Critical patent/WO2020233313A1/zh

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

Definitions

  • This application relates to the field of communications, and in particular, to an end-to-end service delay adjustment method and device, storage medium and electronic device.
  • BBU Building Base Band Unit
  • RRU Radio Remote Unit
  • the BBU and RRU in the distributed base station are separated, so they have the advantages of flexible configuration, convenient engineering construction, strong environmental adaptability, and low cost, and their applications are becoming more and more extensive.
  • the density of base stations has increased by 10-20 times.
  • optical fiber direct drive schemes can be used. As shown in Figure 1a, for BBUs and RRUs with long-distance transmission of 10 kilometers, you can add transmission equipment. To save fiber resources, as shown in Figure 1b; but the added transmission equipment needs to meet the characteristics of low jitter, low delay, and symmetric delay.
  • Flex Ethernet (hereinafter referred to as FlexE) technology is used between transmission equipment to meet the low delay characteristics. FlexE technology makes the service interface rate 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 formulated in OIF, and OIF formulates to support a time-division multiplexed FlexE Shim layer, which is located in the PCS sublayer of the physical layer. Through the FlexE Shim layer time slot cross technology, the transmission delay can be reduced.
  • Transmission equipment needs to achieve low jitter. Like the traditional switching chip to achieve the second and third layer forwarding technology, it is based on packet switching and contains firmware such as queues, buffers, token buckets, etc., which cannot achieve low jitter. In order to achieve low jitter, the same effect as the optical fiber connection. The transmission equipment needs to remove the characteristics of storing and forwarding data packets, data frames or bit blocks, that is, realizing hard pipe and wire-speed forwarding.
  • the transmission equipment can provide delay compensation technology on the basis of providing low jitter. In the case of high jitter, adjusting the delay is meaningless.
  • Delay symmetry refers to: for a certain end-to-end service, the difference between the forward delay and the reverse delay is within the expected range, where "forward” refers to the business flow from the local device to the opposite device Direction, “reverse” refers to the direction of the business flow from the peer device to the local device, as shown in Figure 2.
  • the delay is the delay between the U-side ports of the PE (Provider Edge) device, including all the internal delays in the device. The sum of the delay plus the delay of the fiber.
  • the difference between the forward time delay (Delay_F) and the reverse time delay (Delay_B) is
  • the difference is related to the requirements of the RRU and BBU in the original network during optical fiber connection. Assuming that the local networking demand target is
  • 3ns, that is, after the service is opened, the delay difference needs to be stabilized within 3ns.
  • the existing DM (Delay Measurement) technology can detect the two-way delay difference and provide it to users for viewing.
  • the conceivable method is to manually trigger the delay adjustment by the user, but in a large networking environment, there are thousands of network elements, the maintenance workload is huge, and the efficiency will be very low.
  • the embodiments of the present application provide an end-to-end service delay adjustment method and device, storage medium, and electronic device, so as to at least solve the problem of large workload and low maintenance efficiency in the related art that realizes delay adjustment through manual intervention. .
  • an end-to-end service delay adjustment method which includes: after the end-to-end service between a first device and a second device is established, determining a connection with the first device The difference between the two-way delay related to the end-to-end service; wherein the difference between the two-way delay is the difference between the forward delay and the reverse delay; and the preset period is obtained based on the difference between the two-way delay The average value of the difference of the two-way delay in the internal; the delay of the end-to-end service is adjusted according to the average value.
  • an end-to-end service delay adjustment apparatus including: a determining module, configured to determine and after the end-to-end service between the first device and the second device is established The difference between the two-way delay related to the end-to-end service of the first device; wherein the difference between the two-way delay is the difference between the forward delay and the reverse delay; the processing module is used to The difference of the two-way delay obtains an average value of the difference of the two-way delay within a preset period; an adjustment module is configured to adjust the delay of the end-to-end service according to the average value.
  • a storage medium in which a computer program is stored, wherein the computer program is configured to execute the steps in any one of the above method embodiments when running.
  • an electronic device including a memory and a processor, the memory is stored with a computer program, and the processor is configured to run the computer program to execute any of the above Steps in the method embodiment.
  • FIGS 1a and 1b are schematic structural diagrams of BBU and RRU in related technologies
  • Figure 2 is a schematic diagram of time delay symmetry in related technologies
  • FIG. 3 is a block diagram of the hardware structure of a device for an end-to-end service delay adjustment method according to an embodiment of the present application
  • FIG. 4 is a flowchart of a method for adjusting the delay of an end-to-end service according to an embodiment of the present application
  • FIG. 5 is a schematic diagram of sampling time stamp messages during mutual transmission between two U-side ports of an end-to-end service according to an embodiment of the present application
  • Fig. 6a is a schematic diagram of a time stamp message format in the prior art
  • Figure 6b is a schematic diagram of a time stamp message format according to an embodiment of the present application.
  • Fig. 7 is a schematic diagram of an adjustment device according to an embodiment of the present application.
  • Fig. 8 is a schematic diagram of a device for automatically adjusting time delay symmetry according to an embodiment of the present application.
  • Fig. 9 is a schematic structural diagram of an end-to-end service delay adjustment apparatus according to an embodiment of the present application.
  • FIG. 3 is a hardware structural block diagram of a device for an end-to-end service delay adjustment method according to an embodiment of the present application.
  • the device 10 may include one or more (only one is shown in FIG. 3) processor 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 the memory 104 for storing data.
  • the aforementioned device may further include a transmission device 106 and an input/output device 108 for communication functions.
  • FIG. 3 is only for illustration, and does not limit the structure of the foregoing device.
  • the device 10 may also include more or fewer components than shown in FIG. 3, or have a different configuration from that shown in FIG.
  • the memory 104 may be used to store computer programs, for example, software programs and modules of application software, such as the computer programs corresponding to the end-to-end service delay adjustment method in the embodiment of the present application.
  • the processor 102 runs the computer programs stored in the memory 104 Computer programs to execute various functional applications and data processing, that is, to realize the above-mentioned methods.
  • the memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory.
  • the memory 104 may further include a memory remotely provided with respect to the processor 102, and these remote memories may be connected to the device 10 through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
  • the transmission device 106 is used to receive or send data via a network.
  • the foregoing specific examples of the network may include a wireless network provided by the communication provider of the device 10.
  • the transmission device 106 includes a network adapter (Network Interface Controller, NIC for short), which can be connected to other network devices through a base station to communicate with the Internet.
  • the transmission device 106 may be a radio frequency (Radio Frequency, referred to as RF) module, which is used to communicate with the Internet in a wireless manner.
  • RF Radio Frequency
  • FIG. 4 is a flowchart of the end-to-end service delay adjustment method according to an embodiment of the present application, as shown in FIG. 4 , The process includes the following steps:
  • Step S402 After the end-to-end service between the first device and the second device is established, determine the difference in the two-way delay related to the end-to-end service of the first device; wherein the difference in the two-way delay is positive The difference between the forward delay and the reverse delay;
  • the first device and the second device are two devices in a network composed of multiple devices, and there may be one or more networks in the business flow direction from the first device to the second device Other equipment.
  • Step S404 Obtain an average value of the difference of the two-way delay in a preset period based on the difference of the two-way delay;
  • Step S406 Adjust the end-to-end service delay according to the average value.
  • the difference of the two-way delay related to the end-to-end service of the first device is determined, and based on the two-way time
  • the delay difference obtains the average value of the two-way delay difference in the preset period, and then adjusts the end-to-end service delay according to the average value, so as to realize the automatic adjustment of the end-to-end service delay.
  • the manner of determining the difference in the two-way delay related to the end-to-end service of the first device involved in step S402 of this embodiment can be implemented in the following manner:
  • step S402-11 the time when the end-to-end service is generated on the first device side is determined as the first time stamp, the time when the second device receives the end-to-end service is determined as the second time stamp, and the second device responds to the end The time when the end-to-end service sends the response message is determined as the third time stamp, and the time when the first device receives the response message is determined as the fourth time stamp;
  • Step S402-12 taking the sum of the second time stamp and the third time stamp minus the sum of the first time stamp and the fourth time stamp as the difference of the two-way delay.
  • Fig. 5 is a schematic diagram of sampling time stamp messages during the mutual transmission between two U-side ports of an end-to-end service according to an embodiment of the present application.
  • the U-side ports at both ends of the service send time stamps
  • the packets are independent of each other and do not affect each other; among them, the PE1 device is equivalent to the first device involved in the foregoing embodiment of this application, and the PE2 device is equivalent to the second device involved in the foregoing embodiment of this application.
  • the choice of the N value is evaluated from at least many aspects: 1. The extra overhead introduced by the time stamp message sending and receiving, that is, the occupied bandwidth; 2. The frequency cannot be too low, otherwise it will affect the speed of automatic adjustment.
  • the preferred value of N is 16, that is, 16 time stamp messages are sent per second.
  • other values of N are also possible, and can be adjusted accordingly according to actual conditions.
  • time stamp T1 (equivalent to the first time stamp involved in this application) is added to the message when it is generated.
  • T1 Equivalent to the first time stamp involved in this application
  • T2 time stamped with the time stamp involved in this application
  • T3 time stamped with the third time stamp involved in this application
  • this message is received on the sending side interface
  • T4 time stamped Stamp T4 (equivalent to the fourth time stamp referred to in this application).
  • the sender can calculate the difference between a forward delay and a reverse delay according to T1, T2, T3, and T4.
  • the forward delay is called Tf
  • the reverse delay is called Tb
  • FIG. 6a is a schematic diagram of the time stamp message format in the prior art.
  • T_diff Tf-Tb.
  • the disadvantage of this method is that the message occupies a large bandwidth, and a time stamp occupies 8 bytes according to the experience value, and the unit is ns.
  • Fig. 6b is a schematic diagram of a time stamp message format according to an embodiment of the present application.
  • the message occupies a small bandwidth and one time stamp space.
  • the specific values of Tf and Tb cannot be calculated. As long as the two-way delay difference can be calculated, the 5G requirements are met.
  • Step S404-11 Obtain the difference between the first number of two-way delays in a preset period
  • Step S404-12 filtering the difference of the first number of two-way delays to obtain the difference of the second number of two-way delays, where the second number is less than the first number;
  • step S404-13 the average value of the sum of the difference of the second number of delays is calculated with the preset period to obtain the average of the difference of the two-way delay.
  • T_diff_initial is a parameter that can be set or customized in advance according to actual conditions.
  • the unit is second, and the value is greater than or equal to 1.
  • the specific filtering method is not limited in this application, as long as abnormal samples caused by delay jitter can be filtered out.
  • other methods can be used, such as removing a maximum value and removing a minimum value after obtaining 16 samples per second.
  • the manner of adjusting the end-to-end service delay according to the average value involved in step S406 of this embodiment can be implemented in the following manner:
  • Step S406-11 when the average value is less than zero and the absolute value of the average value is greater than the preset threshold, trigger the first device to enter the monitoring state, and trigger the second device to perform delay adjustment so that the absolute value of the average value is less than Preset threshold;
  • Step S406-12 when the average value is greater than zero and the absolute value of the average value is greater than the preset threshold, trigger the second device to enter the monitoring state, and trigger the first device to perform delay adjustment so that the absolute value of the average value is less than Preset threshold.
  • the average value of the delay difference T_average is used to decide which device of the service should perform the delay adjustment; the specific decision method is: if
  • user target (the user target is the preset threshold), the forward delay and the reverse delay are different to meet the user target, and the equipment at both ends of the service (the first device and the second device) will not be adjusted; other if T_average If T_average is greater than 0, it means that the forward delay is greater than the reverse delay, and the end-to-end service needs to be adjusted on the local device (the first device); otherwise, if T_average is less than 0, it means that the forward delay is less than the reverse delay.
  • the peer device (the second device) adjusts the end-to-end service, but the local device (the first device) does not adjust.
  • the user target can also be set to T_diff_need.
  • the user target can also be set according to requirements, in nanoseconds (ns). User requirements in the networking require that the absolute value of the difference between the forward delay and the reverse delay of the end-to-end service is less than or equal to this value.
  • the "user target" is
  • T_diff_need.
  • step S406 of this embodiment for the case that the average value involved in step S406 of this embodiment is less than zero, and the absolute value of the average value is greater than the preset threshold, trigger the second device to perform delay adjustment
  • this can be achieved in the following manner: triggering the second device to increase the duration of the reverse delay until the average value is less than the preset threshold value;
  • step S406 For the case in step S406 involved in this embodiment that the average value is greater than zero and the absolute value of the average value is greater than the preset threshold, trigger the first device to perform delay adjustment so that the absolute value of the average is less than the preset threshold
  • the method can be implemented in the following manner: triggering the first device to increase the duration of the reverse delay until the average value is less than the preset threshold.
  • step S406 in combination with specific application scenarios, the manner involved in step S406 is described as an example
  • the time delay adjustment method using "rough adjustment” involved in this embodiment includes:
  • Step S502 judge whether the time delay can be adjusted in large steps; if the judgment result is yes, execute step S504, if the judgment result is no, execute step S506;
  • Step S504 perform the operation of adjusting the time delay in large steps; then perform step S512;
  • step S506 it is judged whether the time delay can be adjusted in small steps, if the judgment result is yes, step S508 is executed, and if the judgment result is no, step S510 is executed;
  • Step S508 perform the operation of adjusting the time delay in small steps; then perform step S512;
  • Step S510 request the opposite end to adjust the delay and local end detection
  • Step S512 sampling and calculating the stable delay difference
  • step S514 it is judged whether the delay difference meets the target, if it is, step S510 is executed, and if not, step S502 is executed.
  • FIG. 7 is a schematic diagram of the adjustment device according to an embodiment of the application.
  • the reverse time delay T nanoseconds can be fixedly reduced.
  • the reverse time delay T nanoseconds can be fixedly increased.
  • Use the T_average value obtained in the previous step to adjust the current scale of the "adjustment device”. Specifically, when T_average is greater than 0, the current scale is adjusted to the maximum scale direction, and the adjusted scale number N2 (
  • fine adjustment can also be used in this application.
  • N2 (
  • T_average value use the above formula to adjust the current scale of the "adjustment device".
  • the user's networking requirements can be met after rough adjustment. But if there is jitter, it may be adjusted and the average value is -2ns again, and then fine adjustment is required to adjust a scale. In other words, fine adjustment is at most one scale, and coarse adjustment is greater than one scale.
  • the equipment where the business is located cannot complete the adjustment. Adjust the peer device. 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 the maximum scale, the device where the business is located cannot complete the adjustment, and the peer device is requested to adjust at this time.
  • the method steps of this embodiment may further include:
  • step S408 when the average value is less than zero or greater than zero, and the absolute value of the average value is greater than a preset threshold, an alarm information is reported.
  • the alarm description may also include the value of the current delay difference.
  • the method steps in this embodiment may further include:
  • Step S410 in the case where the end-to-end service has a loss of connectivity, the execution of the end-to-end service delay adjustment operation is suspended;
  • step S412 when the LOC disappears, continue to perform the end-to-end service delay adjustment operation.
  • a method for automatically adjusting the symmetry of the delay includes: after the end-to-end service is opened, the end-to-end service is automatically sent to each other between two U-side ports.
  • the two-way delay difference of the service is calculated by sampling the time stamp data, and the average value of the delay difference in the "decision" period is counted.
  • the average value of the delay difference it is determined whether the service is to perform delay adjustment on the local PE device or the opposite end PE device. If the adjustment is made by the peer device, the local device only monitors the delay difference of the service.
  • the local device If the adjustment is made by the local device, first “coarse adjustment” and then “fine adjustment” until the user goal is met, and then monitor the delay difference. If the service cannot meet the user target when the local device is adjusted to the hardware capability limit, the peer PE device is requested to continue to adjust the service, and the local device only monitors the delay difference.
  • the "user target” T_diff_need involved in this application is a preset parameter, in nanoseconds (ns), which is the requirement of users in the networking (equivalent to the above-mentioned preset threshold involved in this application) ,
  • the absolute value of the difference between the forward delay and the reverse delay of the end-to-end service is required to be less than or equal to this value. That is, "user target"
  • T_diff_need.
  • the method of this optional embodiment may further include: after the end-to-end service is opened, after detecting that the service LOC (loss of connectivity) is generated, the delay adjustment can be automatically stopped.
  • the method also includes the ability to automatically restart the delay adjustment process after detecting the disappearance of the LOC again, and the process is the same as above.
  • automatically stopping the delay adjustment refers to stopping sampling of the business and no longer performing any process of delay adjustment.
  • the steps of requesting the opposite end device of the service to adjust the delay include:
  • Step S602 the local device sends a "request for adjustment" message to the opposite device.
  • step S604 if the opposite end determines that adjustment is possible, it responds with a message "adjustable".
  • the local end receives a "adjustable” message, the local end only monitors the delay. After responding to the "adjustable” message to the peer, the subsequent "adjustment delay” process is carried out.
  • step S606 if the opposite end judges that adjustment is not possible, it responds with a message of "no adjustment possible". If the local end receives a "cannot be adjusted” message, the local end only monitors the delay. After responding to the opposite end with a "cannot be adjusted” message, no action is taken and only the delay is monitored.
  • the device involved in this application determines whether the device can be adjusted, it can be adjusted if the current scale of the "adjustment device" does not coincide with the minimum scale or the maximum scale; otherwise, it cannot be adjusted.
  • the specific format of the request/response message is not limited in this application, as long as the type of "request” and “response” can be accurately expressed, and the requirements can be sent and received by the U-side port, transmitted along the service path, and can pass through P node equipment. As shown in Table 1 below, a message format is given.
  • the negotiation message is transmitted in the O code, which is 66B blocks and is defined by the 802.3 standard.
  • the first line indicates the bit position, and the second line indicates the specific field. Reserved fields are used here.
  • Seq sequence number, used in multi-frame, at this time is fixed to 0.
  • CRC4 The sender performs CRC4 calculation on bits 2 ⁇ 61, and the result is filled in this field.
  • the receiving end performs CRC4 calculation on bits 2 to 61. If the calculation result is different from the received CRC4, it will judge that this code block has an error and discard it. Resv: reserved.
  • the sending end fills in 0, the receiving end does not care.
  • Table 2 is the request message, requesting the end device to adjust the delay, as shown in Table 2.
  • R always fill in 1.
  • A is always filled with 1.
  • this optional embodiment can receive customized parameters and modify the system behavior in real time according to the parameters, and the system executes the process of delay adjustment according to the parameters.
  • This optional embodiment also includes storing the parameters in a non-volatile medium, which will still take effect after the system is powered off and on again.
  • T_diff_need in nanoseconds (ns).
  • User requirements in the networking require that the absolute value of the difference between the forward delay and the reverse delay of the end-to-end service is less than or equal to this value. After the service is established, if the statistical actual delay difference is greater than this value, an alarm will be reported. When it is less than this value, the alarm disappears. When alarms are generated and disappeared, different statistical periods are selected in different steps of the adjustment process:
  • the "decision" period T_diff_initial the unit is seconds, and the value is greater than or equal to 1. It is used for the end-to-end negotiation of the two systems of the business, and negotiates which system to adjust and which system does not adjust. The two systems independently send and respond time stamps, Calculate the two-way delay difference. Make a decision in the "decision" cycle.
  • the “stable" period T_diff_adjusting the unit is second, and the value is greater than or equal to 1.
  • the “monitoring" period is T_diff_monitor, the unit is seconds, and the value is greater than or equal to 1. After the system is adjusted, calculate the average value of the delay difference in the time period. Users can use manual commands to view the delay difference of the system in a stable state.
  • this optional embodiment also provides a device for automatically adjusting the symmetry of the delay.
  • FIG. 8 is a schematic diagram of the device for automatically adjusting the symmetry of the delay according to an embodiment of the present application. As shown in Figure 8, the equipment includes:
  • Time synchronization module used for time synchronization of all devices in the network. Only devices that have completed time synchronization can measure end-to-end one-way delay.
  • Business module responsible for managing the establishment, parameter modification and deletion of end-to-end services.
  • Time stamp module Use the synchronization result of the time synchronization module to send a delay measurement message from the U-side port along the service direction in a certain period. 16 timestamps are sent every second. This module provides external “enable” interface. When “enabled”, this module sends time stamp messages. When “disabled”, this module stops sending time stamp messages.
  • Adjustment module Provides the minimum and maximum scale for adjustment, as well as the current scale. Adjustable time delay difference per scale. The minimum scale of this system is 10, the maximum scale is 255, and the current scale is 10. The adjustable time delay difference per scale is 2ns.
  • time delay symmetry module which is used to receive the message of the "service module”: service establishment is completed, service deletion. LOC generation and disappearance; and receiving the "time synchronization module” message: time synchronization is complete.
  • this module sets the "enable” of the "time stamp module” to turn on or off the time stamp function.
  • this module reads the time stamp of the "time stamp module” and calculates the forward and reverse delay difference. Adjust the delay according to the delay difference, increase or decrease, and issue the command to the "adjustment module".
  • the negotiation message of this module is sent through the "negotiation module” and read through the “negotiation module”.
  • External interface module Provide parameter configuration and module diagnosis of "automatically adjust delay symmetry module”.
  • the diagnostic commands include-manual forced stop: force the state machine to return to the starting state.
  • This module also transmits the alarms generated by the "Automatic Delay Symmetry Module" to the outside of the system.
  • the filtering method adopted by this device is: removing a maximum value and removing a minimum value from 16 time stamp samples per second.
  • the device maintains a state machine for the U-side port of each end-to-end service.
  • Initialization state Initialization state, enable "time stamp module”, and decide which device to adjust.
  • Idle status Only count the difference between the forward delay and the reverse delay without adjustment.
  • Adjusting state adjust, according to the average value of the delay difference T_average, and the current scale of the "adjustment module", calculate whether the scale is increased or decreased, and set the current scale of the "adjustment module”.
  • Monitor status The difference from the Starting status is that the "time stamp module" enables the time stamp function of this port.
  • the optional implementation steps include:
  • Step S11 The state machine of PE1 service 1 starts to be “starting”.
  • the state machine of PE2 service 1 starts as "starting”.
  • Step S12 PE1, the business 1 state machine transitions to initial, and the "time stamp module” is enabled.
  • PE2 the business 1 state machine transitions to initial, and the "time stamp module” is enabled.
  • Step S14 PE1, the service 1 reports that the alarm-delay symmetry is not satisfied, and the current
  • 8ns, the reverse delay is large.
  • Step S15 After a decision, the state machines of PE1 and Business 1 jump to the monitor state. PE2, the business 1 state machine jumps to the adjusting state.
  • Step S16 PE2, adjust the current scale of the "adjustment device” to 14, and add a delay of 8 ns in the reverse incoming direction.
  • 3ns has been met.
  • Step S18 PE2, service 1, jump to the monitor state.
  • Step S19 PE2, the service 1 reports that the "delay symmetry is not satisfied" alarm disappears.
  • Step S20 PE1, PE2, and service 1 are all in the monitor state, only the time stamp is read, and the two-way delay difference in the "monitoring" period T_diff_monitor is counted, without adjustment.
  • the two-way delay difference of the new service is automatically compensated to meet the target of
  • 3ns. No user operation is required, reducing maintenance costs.
  • the steps of an implementation method include:
  • Step S11 The state machine of PE1 service 1 starts to be “starting”.
  • the state machine of PE2 service 1 starts as "starting”.
  • Step S12 PE1, the business 1 state machine transitions to initial, and the "time stamp module” is enabled.
  • PE2 the business 1 state machine transitions to initial, and the "time stamp module” is enabled.
  • Step S14 PE1, the service 1 reports that the alarm-delay symmetry is not satisfied, and the current
  • 8ns, the forward delay is large.
  • Step S15 After the decision is made, the state machines of PE2 and Business 1 jump to the monitor state. PE1, the business 1 state machine jumps to the adjusting state.
  • Step S16 PE1, adjust the current scale of the "adjustment device” to 14, and add a delay of 8 ns in the reverse incoming direction.
  • 3ns has been met.
  • Step S18 PE1, service 1, jump to monitor state.
  • Step S19 PE1, the service 1 reports that the "delay symmetry is not satisfied" alarm disappears.
  • Step 20 PE1, PE2, and business 1 are all in the monitor state, only the time stamp is read, and the two-way delay difference in the "monitoring" period T_diff_monitor is counted, without adjustment.
  • the two-way delay difference of the new service is automatically compensated to meet the target of
  • 3ns. No user operation is required, reducing maintenance costs.
  • PE1 and PE2 business 1, state machine are all in monitor state.
  • PE1 business 1, the current scale of "adjustment device" is 14.
  • PE1 calculates the forward and reverse delay difference to meet the user goal.
  • PE2 calculates the forward and reverse delay difference to meet the user goal.
  • the method steps of this optional implementation manner include:
  • Step S11 PE1, service 1, the service module detects the LOC, informs the "automatically adjust the delay symmetry module”, jumps to the starting state, and restores the current scale of the "adjustment device” to 10.
  • PE2, business 1 jump to the starting state, and restore the current scale of "adjustment device” to 10.
  • Step S12 PE1, service 1, the “service module” notifies that the “automatically adjust the delay symmetry module” LOC disappears, jump to the initial state, and enable the "time stamp module”.
  • PE2, business 1 jump to the initial state, and enable the "time stamp module”.
  • Step S14 PE1, the service 1 reports that the alarm-delay symmetry is not satisfied, and the current
  • 8ns, the forward delay is large.
  • Step S15 After the decision is made, the state machines of PE2 and Business 1 jump to the monitor state. PE1, the business 1 state machine jumps to the adjusting state.
  • Step S16 PE1, adjust the current scale of the "adjustment device” to 14, and add a delay of 8 ns in the reverse incoming direction.
  • 3ns has been met.
  • Step S18 PE1, service 1, jump to monitor state.
  • Step S19 PE1, the service 1 reports that the "delay symmetry is not satisfied" alarm disappears.
  • Step S20 PE1, PE2, and service 1 are all in the monitor state, only the time stamp is read, and the two-way delay difference in the "monitoring" period T_diff_monitor is counted, without adjustment.
  • the device can automatically adjust the two-way delay difference, and finally get automatic compensation to meet the goal of
  • 3ns. No user operation is required, reducing maintenance costs.
  • the method according to the above embodiment can be implemented by means of software plus the necessary general hardware platform, of course, it can also be implemented by hardware, but in many cases the former is Better implementation.
  • the technical solution of this application essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, The optical disc) includes several instructions to enable a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the method described in each embodiment of the present application.
  • an end-to-end service delay adjustment device is also provided.
  • the device is used to implement the above-mentioned embodiments and preferred implementations, and what has been described will not be repeated.
  • the term "module" can implement a combination of software and/or hardware with predetermined functions.
  • the devices described in the following embodiments are preferably implemented by software, the implementation of hardware or a combination of software and hardware is also possible and conceivable.
  • FIG. 9 is a schematic structural diagram of an end-to-end service delay adjustment apparatus according to an embodiment of the present application.
  • the apparatus includes: a determining module 92, which is configured to communicate between the first device and the second device. After the end-to-end service is established, determine the difference in the two-way delay related to the end-to-end service of the first device; where the difference in the two-way delay is the difference between the forward delay and the reverse delay; processing module 94 , Coupled to the determination module 92, used to obtain the average value of the difference of the two-way delay in the preset period based on the difference of the two-way delay; the adjustment module 96, coupled to the processing module 94, used to compare the ends according to the average value The delay of the end-to-end service is adjusted.
  • the adjustment module 96 includes: a first adjustment unit, configured to trigger the first device to enter the monitoring state when the average value is less than zero and the absolute value of the average value is greater than a preset threshold, and trigger the The second device adjusts the delay so that the absolute value of the average value is less than the preset threshold; the second adjustment unit is used to trigger the second device to enter when the average value is greater than zero and the absolute value of the average value is greater than the preset threshold The state is monitored and the first device is triggered to adjust the delay so that the absolute value of the average value is less than the preset threshold.
  • the determining module 92 includes: a first determining unit, configured to determine the time when the end-to-end service is generated on the first device side as the first time stamp, and the second device receives the end-to-end service The time is determined as the second time stamp, the time when the second device responds to the end-to-end service and sends the response message is determined as the third time stamp, and the time when the first device receives the response message is determined as the fourth time stamp;
  • the second determining unit is used to take the sum of the second time stamp and the third time stamp minus the sum of the first time stamp and the fourth time stamp as the difference of the two-way delay.
  • the processing module 94 includes: an acquiring unit, configured to acquire the difference between the first number of two-way delays within a preset period; and a filtering unit, configured to determine the difference between the first number of two-way delays Filtering is performed to obtain the difference between the second number of two-way delays, where the second number is less than the first number; the processing unit is configured to perform the summing result of the second number of delays with the preset period The average value is calculated to obtain the average value of the two-way delay difference.
  • the apparatus of this embodiment may further include: an adjustment module, which is further configured to trigger the second device to increase when the average value is less than zero and the absolute value of the average value is greater than a preset threshold.
  • the apparatus of this embodiment may further include:
  • the reporting module is used to report alarm information when the average value is less than zero or greater than zero, and the absolute value of the average value is greater than a preset threshold.
  • the device of this embodiment may further include: a suspension module, which is used to suspend the execution of the end-to-end service delay adjustment operation when the end-to-end service causes a loss of connectivity LOC ;
  • the execution module is used to continue to perform the end-to-end service delay adjustment operation when the LOC disappears.
  • each of the above modules can be implemented by software or hardware.
  • it can be implemented in the following manner, but not limited to this: the above modules are all located in the same processor; or, the above modules are combined in any combination The forms are located in different processors.
  • the embodiment of the present application also provides a storage medium in which a computer program is stored, wherein the computer program is configured to execute the steps in any of the foregoing method embodiments when running.
  • the foregoing storage medium may be configured to store a computer program for executing the following steps:
  • Step S1 after the end-to-end service between the first device and the second device is established, determine the difference in the two-way delay related to the end-to-end service of the first device; wherein the difference in the two-way delay is positive The difference between the forward delay and the reverse delay;
  • Step S2 obtaining an average value of the difference of the two-way delay in a preset period based on the difference of the two-way delay;
  • Step S3 Adjust the end-to-end service delay according to the average value.
  • the foregoing storage medium may include, but is not limited to: U disk, Read-Only Memory (Read-Only Memory, ROM for short), Random Access Memory (RAM for short), mobile hard disk, magnetic disk Various media that can store computer programs such as discs or optical discs.
  • the embodiment of the present application also provides an electronic device, including a memory and a processor, the memory is stored with a computer program, and the processor is configured to run the computer program to execute the steps in any of the foregoing method embodiments.
  • the aforementioned electronic device may further include a transmission device and an input-output device, wherein the transmission device is connected to the aforementioned processor, and the input-output device is connected to the aforementioned processor.
  • the foregoing processor may be configured to execute the following steps through a computer program:
  • Step S1 after the end-to-end service between the first device and the second device is established, determine the difference in the two-way delay related to the end-to-end service of the first device; wherein the difference in the two-way delay is positive The difference between the forward delay and the reverse delay;
  • Step S2 obtaining an average value of the difference of the two-way delay in a preset period based on the difference of the two-way delay;
  • Step S3 Adjust the end-to-end service delay according to the average value.
  • modules or steps of this application can be implemented by a general computing device, and they can be concentrated on a single computing device or distributed in a network composed of multiple computing devices.
  • they can be implemented with program codes executable by the computing device, so that they can be stored in the storage device for execution by the computing device, and in some cases, can be executed in a different order than here.

Landscapes

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

Abstract

本申请提供了一种端到端业务的时延调整方法及装置、存储介质和电子装置,其中,该方法包括:在第一设备与第二设备之间的端到端业务建立之后,确定与所述第一设备的端到端业务相关的双向时延的差值;其中,所述双向时延的差值为正向时延与反向时延的差值;基于所述双向时延的差值得到预设周期内所述双向时延的差值的平均值;根据所述平均值对所述端到端业务的时延进行调整。

Description

端到端业务的时延调整方法及装置、存储介质和电子装置
相关申请的交叉引用
本申请基于申请号为201910420730.X、申请日为2019年5月20日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此以引入方式并入本申请。
技术领域
本申请涉及通信领域,具体而言,涉及一种端到端业务的时延调整方法及装置、存储介质和电子装置。
背景技术
传统基站是一体式基站,各个模块通常集成在一起,BBU(Building Base Band Unit,基带处理单元)和RRU(Radio Remote Unit,射频拉远单元)无法分离,从而扩容比较困难,而且扩容会导致资源浪费,增加成本。分布式基站中的BBU和RRU是分离的,因此具有配置灵活、工程建设方便、环境适应性强、低成本等优点,应用越来越广泛。在5G时代,基站密度增加了10~20倍,对于短距的BBU和RRU可以采用光纤直驱的方案,如图1a所示,对于10公里长距离传输的BBU和RRU,可以采用加入传输设备来节省光纤资源,如图1b所示;但加入的传输设备需要满足低抖动、低时延、时延对称的特性。
传输设备之间采用Flex Ethernet(以下简称FlexE)技术来满足低时延特征。FlexE技术使得业务接口速率不再为固定的速率,业务层和物理层脱耦,业务层接口速率可以是灵活的。FlexE标准在OIF制定,OIF制定支持一个时分复用的FlexE Shim层,它位于物理层的PCS子层。通过FlexE Shim层的时隙交叉技术可以降低传输时延。
传输设备需要实现低抖动。像传统的交换芯片实现二三层转发技术,基于包交换,包含队列、缓冲区、令牌桶等固件,无法实现低抖动。为了实现低抖动,即与光纤连接的效果相同。传输设备需要去掉那些会对数据包、数据帧或比特块进行存储转发的特性,即实现硬管道、线速转发。
传输设备在提供低抖动的基础上,才可以提供时延补偿技术。在高抖动的 情况下,调整时延是没有意义的。时延对称性指:针对某条端到端业务,正向时延与反向时延的差值在预期范围内,其中,“正向”是指从本端设备到对端设备的业务流方向,“反向”是指从对端设备到本端设备的业务流方向,如图2所示;时延是PE(Provider Edge)设备U侧端口之间的时延,包含设备内部所有时延的总和加上光纤的时延。正向时延(Delay_F)与反向时延(Delay_B)差,即|Delay_F-Delay_B|。差值与原组网中RRU、BBU在光纤连接时要求相关。假设当地组网需求目标为|Delay_F-Delay_B|<=3ns,即业务开通后,时延差需要稳定在3ns以内。
解决前传网络的时延对称性,业界目前还没有成熟的技术。现有DM(Delay Measurement)技术,可以检测双向的时延差,并提供给用户查看。可以想到的方法是由用户手工触发时延调整,但在大组网环境中,有成千上万个网元,维护工作量巨大,效率会非常的低。
针对相关技术中的上述问题,目前尚未存在有效的解决方案。
发明内容
本申请实施例提供了一种端到端业务的时延调整方法及装置、存储介质和电子装置,以至少解决相关技术中通过人工干预实现时延调整的方式工作量大,维护效率低的问题。
根据本申请的一个实施例,提供了一种端到端业务的时延调整方法,包括:在第一设备与第二设备之间的端到端业务建立之后,确定与所述第一设备的端到端业务相关的双向时延的差值;其中,所述双向时延的差值为正向时延与反向时延的差值;基于所述双向时延的差值得到预设周期内所述双向时延的差值的平均值;根据所述平均值对所述端到端业务的时延进行调整。
根据本申请的另一个实施例,提供了一种端到端业务的时延调整装置,包括:确定模块,用于在第一设备与第二设备之间的端到端业务建立之后,确定与所述第一设备的端到端业务相关的双向时延的差值;其中,所述双向时延的差值为正向时延与反向时延的差值;处理模块,用于基于所述双向时延的差值得到预设周期内所述双向时延的差值的平均值;调整模块,用于根据所述平均值对所述端到端业务的时延进行调整。
根据本申请的又一个实施例,还提供了一种存储介质,所述存储介质中存 储有计算机程序,其中,所述计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。
根据本申请的又一个实施例,还提供了一种电子装置,包括存储器和处理器,所述存储器中存储有计算机程序,所述处理器被设置为运行所述计算机程序以执行上述任一项方法实施例中的步骤。
附图说明
此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:
图1a和1b是相关技术中BBU和RRU的结构示意图;
图2是相关技术中的时延对称性的示意图;
图3是本申请实施例的一种端到端业务的时延调整方法的设备的硬件结构框图;
图4是根据本申请实施例的端到端业务的时延调整方法的流程图;
图5是根据本申请实施例的在端到端业务两个U侧端口间互相发送的过程中对时戳报文进行采样的示意图;
图6a是现有技术中的时戳报文格式示意图;
图6b是根据本申请实施例的时戳报文格式示意图;
图7是根据本申请实施例的调整器件的示意图;
图8是根据本申请实施例的用于自动调整时延对称性的设备的示意图。
图9是根据本申请实施例的端到端业务的时延调整装置的结构示意图。
具体实施方式
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。
实施例1
本申请实施例一所提供的方法实施例可以在设备、计算机终端或者类似的运算装置中执行。以运行在设备上为例,图3是本申请实施例的一种端到端业务的时延调整方法的设备的硬件结构框图。如图3所示,设备10可以包括一个或多个(图3中仅示出一个)处理器102(处理器102可以包括但不限于微处理器MCU或可编程逻辑器件FPGA等的处理装置)和用于存储数据的存储器104。在一实施例中,上述设备还可以包括用于通信功能的传输设备106以及输入输出设备108。本领域普通技术人员可以理解,图3所示的结构仅为示意,其并不对上述设备的结构造成限定。例如,设备10还可包括比图3中所示更多或者更少的组件,或者具有与图3所示不同的配置。
存储器104可用于存储计算机程序,例如,应用软件的软件程序以及模块,如本申请实施例中的端到端业务的时延调整方法对应的计算机程序,处理器102通过运行存储在存储器104内的计算机程序,从而执行各种功能应用以及数据处理,即实现上述的方法。存储器104可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器104可进一步包括相对于处理器102远程设置的存储器,这些远程存储器可以通过网络连接至设备10。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。
传输装置106用于经由一个网络接收或者发送数据。上述的网络具体实例可包括设备10的通信供应商提供的无线网络。在一个实例中,传输装置106包括一个网络适配器(Network Interface Controller,简称为NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输装置106可以为射频(Radio Frequency,简称为RF)模块,其用于通过无线方式与互联网进行通讯。
在本实施例中提供了一种运行于设备的端到端业务的时延调整方法,图4是根据本申请实施例的端到端业务的时延调整方法的流程图,如图4所示,该流程包括如下步骤:
步骤S402,在第一设备与第二设备之间的端到端业务建立之后,确定与第一设备的端到端业务相关的双向时延的差值;其中,双向时延的差值为正向时延与反向时延的差值;
其中,需要说明的是,第一设备与第二设备是由多个设备组成的组网中的 两个设备,在第一设备至第二设备的业务流向上可以有一个或多个组网中的其他设备。
步骤S404,基于双向时延的差值得到预设周期内双向时延的差值的平均值;
步骤S406,根据平均值对端到端业务的时延进行调整。
通过上述步骤S202至步骤S206,在第一设备与第二设备之间的端到端业务建立之后,确定与第一设备的端到端业务相关的双向时延的差值,以及基于该双向时延的差值得到预设周期内双向时延的差值的平均值,进而根据平均值对端到端业务的时延进行调整,从而可以实现对端到端业务的时延进行自动调整,解决了相关技术中通过人工干预实现时延调整的方式工作量大,维护效率低的问题,达到了减少成本维护效率高的效果。
在本实施例的可选实施方式中,对于本实施例步骤S402中涉及到的确定与第一设备的端到端业务相关的双向时延的差值的方式,可以通过如下方式来实现:
步骤S402-11,将在第一设备侧产生端到端业务的时刻确定为第一时戳,将第二设备收到端到端业务的时刻确定为第二时戳,将第二设备响应端到端业务并发送响应报文的时刻确定为第三时戳,将第一设备接收到响应报文的时刻确定为第四时戳;
步骤S402-12,将第二时戳与第三时戳的和值减去第一时戳与第四时戳的和值作为双向时延的差值。
下面结合具体的应用场景对于上述步骤S402-11和步骤S402-12进行举例说明;
图5是根据本申请实施例的在端到端业务两个U侧端口间互相发送的过程中对时戳报文进行采样的示意图,如图5所示,业务两端的U侧端口发送时戳报文是相互独立的,互不影响;其中,PE1设备相当于上述本申请实施例中涉及到的第一设备,PE2设备相当于上述本申请实施例中涉及到的第二设备。
其中,发送频率为每秒N次,N=P/Q,其中P、Q都为正整数。N值的选择至少从多个方面来评估:一、时戳报文收发引入的额外开销,即占用的带宽;二、频率不能过低,否则影响自动调整的速度。在本申请中优选N值为16,即每秒发送16个时戳报文,当然其他的N的取值也是可以的,可以根据实际情况 进行相应的调整。
具体的采样过程为:时戳报文在所述业务的PE设备的U侧端口产生,产生时在报文中打时戳T1(相当于上述本申请中涉及到的第一时戳),沿着业务方向传递,并穿通所述业务在网络的所有P节点设备,最终报文在另一端PE设备的U侧端口收到,收到时刻打时戳T2(相当于上述本申请中涉及到的第二时戳),之后在接收端立即回送应答报文,打时戳T3(相当于上述本申请中涉及到的第三时戳),此报文在发送侧接口接收到,接收时刻打时戳T4(相当于上述本申请中涉及到的第四时戳)。发送端根据T1、T2、T3、T4即可计算出一次正向时延与反向时延的差值。将正向时延称为Tf,反向时延称为Tb,T_diff=Tf-Tb称为一个采样。若T_diff等于0,则正向时延与反向时延相同;若T_diff大于0,则正向时延大于反向时延;若T_diff<0,则正向时延小于反向时延。可见,每秒可获得N个采样。
需要说明的是,在本申请中并不限制时戳报文的具体格式,只要能够计算出正向时延与反向时延的差值,且要求能够被U侧端口发送与接收,沿业务路径传送,能够穿通P节点设备即可。图6a是现有技术中的时戳报文格式示意图,通过图6a所示的时戳格式,发送端可以计算正向时延具体数值为Tf=T2-T1,反向时延具体数值为Tb=T4-T3。时延差一次采样为T_diff=Tf-Tb。但是该方式缺点是:报文占用带宽大,一个时戳按照经验值占用8个字节,单位为ns。图6b是根据本申请实施例的时戳报文格式示意图,通过图6b所示的时戳格式,报文占用带宽小,一个时戳的空间。只能计算出时延差T_diff=(T3+T2-T1)-T4即T_diff=(T2-T1)-(T4-T3)=Tf-Tb。不能计算Tf、Tb的具体数值。只要能够计算双向时延差,即满足5G要求。
在本实施例的另一个可选实施方式中,对于本实施例步骤S404中涉及到的基于双向时延的差值得到预设周期内双向时延的差值的平均值的方式,可以通过如下方式来实现:
步骤S404-11,获取预设周期内的第一数量的双向时延的差值;
步骤S404-12,对第一数量的双向时延的差值进行滤波得到第二数量的双向时延的差值,其中,第二数量小于第一数量;
步骤S404-13,将对第二数量的时延的差值进行求和的结果与预设周期进行平均值的计算,得到双向时延的差值的平均值。
对于上述步骤S404-11至步骤S404-13,下面结合具体的应用场景进行举例说明;
本申请所涉及到预设周期为T_diff_initial,是可以根据实际情况预先进行设置或定制的参数,单位为秒,取值大于等于1。在该预设周期内,每秒钟获得N个采样,共获得N*T_diff_initial个采样。之后对所有采样进行滤波,滤波过程主要去掉因时延抖动造成的异常X(>=0)个采样。滤波之后剩余M=N*T_diff_initial-X个采样。对M个采样的时延差求和T_total。最后求平均值T_average=T_total/M,为浮点数。
需要说明的是,在本申请中不限制滤波的具体方式,只要能过滤掉因时延抖动造成的异常采样。当然可以采用其他方式,例如每秒在获得16个采样后去掉一个最大值以及去掉一个最小值。
在本实施例的可选实施方式中,对于本实施例步骤S406中涉及到的根据平均值对端到端业务的时延进行调整的方式,可以通过如下方式来实现:
步骤S406-11,在平均值小于零,且平均值的绝对值大于预设阈值的情况下,触发第一设备进入监视状态,并触发第二设备进行时延调整以使平均值的绝对值小于预设阈值;
步骤S406-12,在平均值大于零,且平均值的绝对值大于预设阈值的情况下,触发第二设备进入监视状态,并触发第一设备进行时延调整以使平均值的绝对值小于预设阈值。
由上述步骤S406-11和步骤S406-12可知,在本申请中是根据时延差的平均值T_average来决策由业务的哪端设备来进行时延调整;具体决策的方式为:若|T_average|<=用户目标(该用户目标就是预设阈值),则正向时延与反向时延差,满足用户目标,业务两端的设备(第一设备与第二设备)都不调整;其它若T_average大于0,则说明正向时延大于反向时延,需要在本端设备(第一设备)调整端到端业务;其它若T_average小于0,则说明正向时延小于反向时延,需要在对端设备(第二设备)调整端到端业务,本端设备(第一设备)不调整。
此外,还可以将用户目标设置为T_diff_need,该用户目标也是可以根据需求进行设置的,单位为纳秒(ns)。组网中用户需求,要求端到端业务正向时延与 反向时延差值的绝对值小于等于此数值。在本申请中“用户目标”,即|T_average|<=T_diff_need。
需要说明的是,本申请是以第一设备为视角进行阐述的,所以在本申请中本端设备就是第一设备,对端设备就是第二设备。如果以第二设备为视角进行阐述,则本端设备为第二设备,对端设备为第一设备。无论以哪个设备为第一视角,对于时延调整的方式的原理是不变的。
在本申请的另一个可选实施方式中,对于本实施例步骤S406中涉及到的在平均值小于零,且平均值的绝对值大于预设阈值的情况下,触发第二设备进行时延调整以使平均值的绝对值小于预设阈值的方式,可以通过如下方式实现:触发第二设备增加反向时延的时长直到平均值小于预设阈值;
而对于本实施例步骤S406中涉及到的在平均值大于零,且平均值的绝对值大于预设阈值的情况下,触发第一设备进行时延调整以使平均值的绝对值小于预设阈值的方式,可以通过如下方式来实现:触发第一设备增加反向时延的时长直到平均值小于预设阈值。
下面结合具体应用场景,对于上述步骤S406中所涉及的方式进行举例说明;
若由本端设备进行调整,则首先“粗调”再进行“微调”,直至平均值的绝对值小于预设阈值。本实施例涉及到的采用“粗调”的时延调整方法包括:
步骤S502,判断是否能够大步调整时延;在判断结果为是的情况下,执行步骤S504,在判断结果为否的情况下,执行步骤S506;
步骤S504,执行大步调整时延的操作;之后执行步骤S512;
步骤S506,判断是否能够小步调整时延,在判断结果为是的情况下,执行步骤S508,在判断结果为否的情况下,执行步骤S510;
步骤S508,执行小步调整时延的操作;之后执行步骤S512;
步骤S510,请求对端调整时延,以及本端检测;
步骤S512,采样计算稳定时延差;
步骤S514,判断时延差是否满足目标,如果是执行步骤S510,如果否执行步骤S502。
需要说明的是,本申请中涉及到的调整,可以为通过读取“调整器件”的最小 刻度、最大刻度和当前刻度的方式进行调整,图7是根据本申请实施例的调整器件的示意图,如图7所示,将当前刻度向最小刻度方向每移动一个刻度,可固定减小反向时延T纳秒。相应地,将当前刻度向最大刻度方向每移动一个刻度,可固定增加反向时延T纳秒。利用上一步骤中得到的T_average数值来调整“调整器件”的当前刻度。具体地,T_average大于0时,将当前刻度向最大刻度方向调整,调整的刻度数N2=(|T_average|+0.5)/T。其中符号/为去尾整除。举例:假设T_average=5.6ns,T=2ns,则N2=(5.6+0.5)/2=6.1/2=3。假设T_average=5.4ns,T=2ns,则N2=(5.4+0.5)/2=5.9/2=2。具体地,T_average小于0时,将当前刻度向最小刻度方向调整,调整的刻度数N2=(|T_average|+0.5)/T。举例:假设T_average=-5.6ns,T=2ns,则N2=(5.6+0.5)/2=6.1/2=3。假设T_average=-5.4ns,T=2ns,则N2=(5.4+0.5)/2=5.9/2=2。上述这个过程称为“粗调”。
此外,在对时延进行“粗调”之后,在本申请中还可以采用“微调”,微调的前提就是对时延差值的平均值进行滤波,该方式与步骤S404中的方式是一致的。即在预设周期内,每秒钟获得N个采样,共获得N*T_diff_adjusting个采样。之后对所有采样进行滤波,滤波过程去掉因时延抖动造成的异常X(>=0)个采样。滤波之后剩余M=N*T_diff_adjusting-X个采样。对M个采样的时延差求和T_total。最后求平均值T_average=T_total/M,为浮点数。调整公式同上,N2=(|T_average|+0.5)/T,其中符号/为去尾整除。根据T_average数值,利用上述公式,去调整“调整器件”的当前刻度。具体的调整方法与“粗调”的方式一致。这个过程称为“细调”,在该过程中,若N2=0,则满足用户目标。
对于上述本申请涉及到的“粗调”和“微调”的结合,举例来说是,如果调整器件每刻度为2ns,时延差平均值为10ns,此时由第一设备增加反向时延,则粗调是指将调整器件当前刻度一次性增加10/2=5个刻度。正常情况下,粗调之后就能满足用户组网需求。但如果存在抖动,可能调整后,再求一次平均值为-2ns,则需要进行微调,调整一个刻度。也就是说,微调最多一个刻度,粗调是大于一个刻度的。
本申请中涉及到的调整,若需要调整的刻度数不为0,且需要将当前刻度向最小刻度调整时,且当前刻度与最小刻度重叠,则所述业务所在设备无法完成调整,此时请求对端设备调整。若需要调整的刻度数不为0,且需要将当前刻度 向最大刻度调整时,且当前刻度与最大刻度重叠,则所述业务所在设备无法完成调整,此时请求对端设备调整。
在本实施例的可选实施方式中,本实施例的方法步骤还可以包括:
步骤S408,在平均值小于零或大于零,且平均值的绝对值大于预设阈值的情况下,上报告警信息。
也就是说在端到端业务建立成功后,若统计到正向时延与反向时延差的平均值不能满足用户目标(绝对值小于预设阈值)时,则上报告警。若统计到正向时延与反向时延差的平均值已经满足用户目标时,则上报告警消失。所述告警的检测点为所述业务,告警描述要能够表达“时延对称性不满足”。在一实施例中,告警描述中还可以包括当前时延差的数值。
在调整流程不同步骤中选择不同的统计周期:“决策”周期T_diff_initial;“稳定”周期T_diff_adjusting;“监控”周期T_diff_monitor。
在本实施例的可选实施方式中,本实施例中的方法步骤还可以包括:
步骤S410,在端到端业务产生连通性丢失LOC的情况下,中止执行端到端业务的时延调整操作;
步骤S412,在LOC消失的情况下,继续执行端到端业务的时延调整操作。
下面结合本申请的可选实施例对本申请进行举例说明;
在本可选实施例中提供了一种自动调整时延对称性的方法,该方法的原理包括:在端到端业务开通后,通过自动地在端到端业务两个U侧端口间互相发送时戳报文,通过采样时戳数据来计算所述业务的双向时延差,并统计“决策”周期内的时延差平均值。根据上述时延差平均值来决策所述业务在本端PE设备进行时延调整,还是由对端PE设备进行时延调整。若由对端设备进行调整,则所述业务在本端设备只监控时延差。若由本端设备进行调整,则首先“粗调”再进行“微调”,直至满足用户目标,然后监控时延差。若所述业务在本端设备调整到硬件能力极限时,仍无法满足用户目标,则请求对端PE设备对所述业务继续调整,本端仅监控时延差。
需要说明的是,本申请中涉及到的“用户目标”T_diff_need,预设参数,单位为纳秒(ns),为组网中用户的需求(相当于上述本申请中涉及到的预设阈值),要求端到端业务正向时延与反向时延差值的绝对值小于等于此数值。即“用户目 标”|T_average|<=T_diff_need。
本可选实施例的方法还可以包括:在端到端业务开通后,检测到业务LOC(连通性丢失)产生后,能够自动停止时延调整。本方法还包括在再次检测到LOC消失后,能够自动重新开始时延调整流程,流程同上。其中,自动停止时延调整,是指对所述业务停止采样、并不再执行时延调整任何流程。
在需要对端设备进行时延调整时,请求所述业务的对端设备进行时延调整的步骤包括:
步骤S602,本端设备向对端设备发送“请求调整”的消息。
步骤S604,若对端判断可以调整,则回应“可以调整”的消息。
其中,本端收到“可以调整”的消息,则本端仅监控时延。向对端回应“可以调整”的消息后,则进行后续的“调整时延”流程。
步骤S606,若对端判断不可以调整,则回应“不可以调整”的消息。本端收到“不可以调整”的消息,则本端仅监控时延。向对端回应“不可以调整”的消息后,则无动作,仍仅监控时延。
需要说明的是,本申请中涉及到的判断本身设备是否可以调整,则判断若“调整器件”的当前刻度不与最小刻度重合,也不与最大刻度重合,则可以调整;否则不可以调整。
此外,在本申请中并不限制请求/应答报文的具体格式,只要能够准确表达“请求”、“应答”类型,且要求能够被U侧端口发送与接收,沿业务路径传送,且能够穿通P节点设备。如下表1所示,给出了一种报文格式。
Figure PCTCN2020085694-appb-000001
表1
协商报文在O码中传输,O码为66B块,由802.3标准定义。第一行表示bit位置,第二行表示具体字段。这里使用了预留字段。其中协商报文由0x4B(bit2~9)+0xF(bit 34~37)+type=0x35(bit 12~17)唯一标识。
其中,Seq:序列号,复帧时使用,此时固定为0。CRC4:发送端对bit 2~61进行CRC4计算,结果填写在此字段。接收端对bit 2~61进行CRC4计算,若计 算结果与接收到的CRC4不相同,则判断这个码块产生错误,丢弃。Resv:预留。发送端填写0,接收端不关心。
表2为请求消息,请求对端设备进行时延调整,如表2所示,
Figure PCTCN2020085694-appb-000002
表2
其中,R:固定填写1。
如表3所示,可以调整消息,应答对端,由本端调整
Figure PCTCN2020085694-appb-000003
表3
其中,A固定填写1。
如表4所示,不可以调整消息,应答对端:本端无法调整
Figure PCTCN2020085694-appb-000004
表4
此外,需要说明的是,本可选实施例能够接收定制参数,并按照参数实时修改系统行为,系统按参数执行时延调整的流程。本可选实施例还包括将参数存储在非易失性介质,在系统掉电重新上电后仍然生效。
本可选实施例能够接收的定制参数如下:
“用户目标”T_diff_need,单位为纳秒(ns)。组网中用户需求,要求端到端业务正向时延与反向时延差值的绝对值小于等于此数值。业务建立后,若统计实际时延差大于此数值,则上报告警。小于此数值后,告警消失。告警产生消失处理在调整流程不同步骤中选择不同的统计周期:
“决策”周期T_diff_initial;“稳定”周期T_diff_adjusting;“监控”周期T_diff_monitor。
决策”周期T_diff_initial,单位为秒,取值大于等于1。用于所述业务端到端 两个系统的协商,协商哪个系统调整,哪个系统不调整。两个系统独立地发送、回应时戳,计算双向时延差。在“决策”周期内决策出结果。
“稳定”周期T_diff_adjusting,单位为秒,取值大于等于1。系统调整时延后的确认时间。系统调整时延后,计算该时间段内的时延差平均值。根据结果,决策下一步的调整动作。
“监控”周期为T_diff_monitor,单位为秒,取值大于等于1。系统调整完毕后,计算该时间段内的时延差平均值。用户可以使用人工命令查看系统在稳定状态下的时延差。
基于本可选实施例的方法,本可选实施例还提供了用于自动调整时延对称性的设备,图8是根据本申请实施例的用于自动调整时延对称性的设备的示意图,如图8所示,该设备包括:
时间同步模块:用于网络中所有设备的时间同步。只有完成时间同步的设备,才可以测量端到端单向时延。
业务模块:负责管理端到端业务的建立、参数修改、删除。负责端到端业务连通性管理:连接性丢失时发送“LOC产生”,否则发送“LOC消失”。
时戳模块:使用时间同步模块的同步结果,以一定周期从U侧端口沿业务方向发送时延测量报文。每秒发送16个时戳。本模块对外提供“使能”接口。当“使能”时,本模块发送时戳报文。当“去使能”时,本模块停止发送时戳报文。
调整模块:提供调整的最小、最大刻度,以及当前刻度。每刻度可调整的时延差。本系统最小刻度10,最大刻度255,当前刻度10。每刻度可调整的时延差为2ns。
协商模块:用于发送与接收“自动调整时延对称模块”的协商报文。
自动调整时延对称模块,用于接收“业务模块”的消息:业务建立完成、业务删除。LOC产生与消失;以及接收“时间同步模块”的消息:时间同步完成。
此外,本模块设置“时戳模块”的“使能”,来开启或关闭时戳功能。开启时,本模块读取“时戳模块”的时戳,并计算正向与反向时延差。根据时延差调整时延,增加或减小,将命令下发到“调整模块”。
本模块的协商报文通过“协商模块”发送,通过“协商模块”读取。
对外接口模块:提供“自动调整时延对称模块”的参数配置、模块诊断。诊断 命令包括--人工强制停止:强制将状态机退至starting状态。
人工重新开始:状态机从starting跳转到initial。
此模块还将“自动调整时延对称模块”产生的告警向系统外传递。
在申请中所涉及到的定制参数默认值如下:
--“决策”周期T_diff_initial    20秒
--“稳定”周期T_diff_adjusting  10秒
--“监控”周期T_diff_monitor    10秒。
其中,本设备采用的滤波方法为:对每秒16个时戳采样去掉一个最大值,去掉一个最小值。
设备为每个端到端业务的U侧端口维护一个状态机。
Starting状态:“时戳模块”未使能此端口的时戳功能。
Initial:初始化状态,使能“时戳模块”,并决策哪端设备进行调整。
Idle状态:仅统计正向时延与反向时延差,不调整。
adjusting状态:调整,根据时延差平均值T_average,及“调整模块”当前刻度,计算出刻度增大还是减小,设置“调整模块”当前刻度。
Waiting状态:当处于adjusting状态时,但需要调整的刻度超出了“调整模块”的最小、最大刻度。则向对端设备发送调整请求,本端处于waiting状态。
Monitor状态:与Starting状态的区别是,“时戳模块”使能了此端口的时戳功能。
下面结合具体的实施方式对上述本可选实施例进行举例说明。
实施方式1
在本一实施方式中,用户组网为3台设备,两台PE,一台P。假设3台设备的时间已经同步。“用户目标”T_diff_need<=3ns。
建立端到端业务1。假设PE1正向时延为50ns,PE1反向时延为60ns。假设“调整器件”最小刻度10,最大刻度255,每刻度可调整时延2ns,当前刻度为10。
业务建立,可选实施方式的步骤包括:
步骤S11:PE1业务1状态机开始为“starting”。PE2业务1状态机开始为“starting”。
步骤S12:PE1,业务1状态机跃迁到initial,使能“时戳模块”。PE2,业务1状态机跃迁到initial,使能“时戳模块”。
步骤S13:PE1,“自动调整时延对称模块”读取“时戳模块”的样本,统计“决策”周期T_diff_initial的时延差平均值,由于存在时延抖动,平均值接近于真实值,但并非一定等于真实值。假设计算的T_average=-8ns。
同理,PE2,统计的时延差平均值,假设为T_average=9ns。
步骤S14:PE1,业务1上报告警-时延对称性不满足,当前|T_average|=8ns,反向时延大。
PE2,业务1上报告警-时延对称性不满足,当前|T_average|=9ns,正向时延大。
步骤S15:经过决策,PE1,业务1状态机跳转到monitor状态。PE2,业务1状态机跳转到adjusting状态。
步骤S16:PE2,将“调整器件”的当前刻度调整到14,增加8ns的反向入方向的延时。
步骤S17:PE2,“自动调整时延对称模块”读取“时戳模块”的样本,计算“稳定”周期T_diff_adjusting内的时延差平均值,假设T_average=1ns。已经满足|T_average|<=3ns的目标。
同理,PE1计算的最近10秒的时延差平均值,假设为T_average=-1ns。
步骤S18:PE2,业务1,跳转到monitor状态。
步骤S19:PE2,业务1上报“时延对称性不满足”告警消失。
PE1,业务1上报“时延对称性不满足”告警消失。
步骤S20:PE1,PE2,业务1,都处于monitor状态,仅读取时戳,统计“监控”周期T_diff_monitor内的双向时延差,而不再调整。
此时,新建业务的双向时延差,得到自动补偿,满足|Tf-Tb|<=3ns的目标。无需用户操作,减少维护成本。
实施方式2
在另一实施方式中,用户组网为3台设备,两台PE,一台P。假设3台设备的时间已经同步。“用户目标”T_diff_need<=3ns。
建立端到端业务1,假设PE1正向时延为60ns,PE1反向时延为50ns。假设“调整器件”最小刻度10,最大刻度255,每刻度可调整时延2ns,当前刻度为10。
业务建立,一实施方式的步骤包括:
步骤S11:PE1业务1状态机开始为“starting”。PE2业务1状态机开始为“starting”。
步骤S12:PE1,业务1状态机跃迁到initial,使能“时戳模块”。PE2,业务1状态机跃迁到initial,使能“时戳模块”。
步骤S13:PE1,“自动调整时延对称模块”读取“时戳模块”的样本,统计“决策”周期T_diff_initial的时延差平均值,由于存在时延抖动,平均值接近于真实值,但并非一定等于真实值。假设计算的T_average=8ns。
同理,PE2,统计的时延差平均值,假设为T_average=-9ns。
步骤S14:PE1,业务1上报告警-时延对称性不满足,当前|T_average|=8ns,正向时延大。
PE2,业务1上报告警-时延对称性不满足,当前|T_average|=9ns,反向时延大。
步骤S15:经过决策,PE2,业务1状态机跳转到monitor状态。PE1,业务1状态机跳转到adjusting状态。
步骤S16:PE1,将“调整器件”的当前刻度调整到14,增加8ns的反向入方向的延时。
步骤S17:PE1,“自动调整时延对称模块”读取“时戳模块”的样本,计算“稳定”周期T_diff_adjusting内的时延差平均值,假设T_average=1ns。已经满足|T_average|<=3ns的目标。
同理,PE2计算的最近10秒的时延差平均值,假设为T_average=-1ns。
步骤S18:PE1,业务1,跳转到monitor状态。
步骤S19:PE1,业务1上报“时延对称性不满足”告警消失。
PE2,业务1上报“时延对称性不满足”告警消失。
步骤20:PE1,PE2,业务1,都处于monitor状态,仅读取时戳,统计“监控”周期T_diff_monitor内的双向时延差,而不再调整。
此时,新建业务的双向时延差,得到自动补偿,满足|Tf-Tb|<=3ns的目标。无需用户操作,减少维护成本。
实施方式3
在又一实施方式中,用户组网为3台设备,两台PE,一台P。假设3台设备的时间已经同步。“用户目标”T_diff_need<=3ns。
建立端到端业务1。假设PE1正向时延为60ns,PE1反向时延为50ns。假设“调整器件”最小刻度10,最大刻度255,每刻度可调整时延2ns,当前刻度为10。
自动调整后,PE1和PE2,业务1,状态机都为monitor状态。PE1,业务1,“调整器件”当前刻度为14。PE1统计正反向时延差满足用户目标,同样地,PE2统计正反向时延差满足用户目标。
此时,PE1与P之间的光纤断开,本可选实施方式的方法步骤包括:
步骤S11:PE1,业务1,业务模块检测到LOC,通知“自动调整时延对称模块”,跳转到starting状态,恢复“调整器件”的当前刻度为10。同理,PE2,业务1,跳转到starting状态,恢复“调整器件”的当前刻度为10。
PE1与P之间的光纤恢复。
步骤S12:PE1,业务1,“业务模块”通知“自动调整时延对称模块”LOC消失,跳转到initial状态,使能“时戳模块”。同时,PE2,业务1,跳转到initial状态,使能“时戳模块”。
步骤S13:PE1,“自动调整时延对称模块”读取“时戳模块”的样本,统计“决策”周期T_diff_initial的时延差平均值,由于存在时延抖动,平均值接近于真实值,但并非一定等于真实值。假设计算的T_average=8ns。
同理,PE2,统计的时延差平均值,假设为T_average=-9ns。
步骤S14:PE1,业务1上报告警-时延对称性不满足,当前|T_average|=8ns,正向时延大。
PE2,业务1上报告警-时延对称性不满足,当前|T_average|=9ns,反向时延大。
步骤S15:经过决策,PE2,业务1状态机跳转到monitor状态。PE1,业务1状态机跳转到adjusting状态。
步骤S16:PE1,将“调整器件”的当前刻度调整到14,增加8ns的反向入方向的延时。
步骤S17:PE1,“自动调整时延对称模块”读取“时戳模块”的样本,计算“稳定”周期T_diff_adjusting内的时延差平均值,假设T_average=1ns。已经满足|T_average|<=3ns的目标。
同理,PE2计算的最近10秒的时延差平均值,假设为T_average=-1ns。
步骤S18:PE1,业务1,跳转到monitor状态。
步骤S19:PE1,业务1上报“时延对称性不满足”告警消失。
PE2,业务1上报“时延对称性不满足”告警消失。
步骤S20:PE1,PE2,业务1,都处于monitor状态,仅读取时戳,统计“监控”周期T_diff_monitor内的双向时延差,而不再调整。
此时,业务产生LOC,LOC又消失后,设备能够自动调整双向时延差,最后得到自动补偿,满足|Tf-Tb|<=3ns的目标。无需用户操作,减少维护成本。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。
实施例2
在本实施例中还提供了一种端到端业务的时延调整装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可 能并被构想的。
图9是根据本申请实施例的端到端业务的时延调整装置的结构示意图,如图9所示,该装置包括:确定模块92,用于在第一设备与第二设备之间的端到端业务建立之后,确定与第一设备的端到端业务相关的双向时延的差值;其中,双向时延的差值为正向时延与反向时延的差值;处理模块94,与确定模块92耦合连接,用于基于双向时延的差值得到预设周期内双向时延的差值的平均值;调整模块96,与处理模块94耦合连接,用于根据平均值对端到端业务的时延进行调整。
在一实施例中,该调整模块96包括:第一调整单元,用于在平均值小于零,且平均值的绝对值大于预设阈值的情况下,触发第一设备进入监视状态,并触发第二设备进行时延调整以使平均值的绝对值小于预设阈值;第二调整单元,用于在平均值大于零,且平均值的绝对值大于预设阈值的情况下,触发第二设备进入监视状态,并触发第一设备进行时延调整以使平均值的绝对值小于预设阈值。
在一实施例中,该确定模块92包括:第一确定单元,用于将在第一设备侧产生端到端业务的时刻确定为第一时戳,将第二设备收到端到端业务的时刻确定为第二时戳,将第二设备响应端到端业务并发送响应报文的时刻确定为第三时戳,将第一设备接收到响应报文的时刻确定为第四时戳;第二确定单元,用于将第二时戳与第三时戳的和值减去第一时戳与第四时戳的和值作为双向时延的差值。
在一实施例中,该处理模块94包括:获取单元,用于获取预设周期内的第一数量的双向时延的差值;滤波单元,用于对第一数量的双向时延的差值进行滤波得到第二数量的双向时延的差值,其中,第二数量小于第一数量;处理单元,用于将对第二数量的时延的差值进行求和的结果与预设周期进行平均值的计算,得到双向时延的差值的平均值。
在本实施例的可选实施方式,本实施例的装置还可以包括:调整模块,还用于在平均值小于零,且平均值的绝对值大于预设阈值的情况下,触发第二设备增加反向时延的时长直到平均值的绝对值小于预设阈值;以及在平均值大于零,且平均值的绝对值大于预设阈值的情况下,触发第一设备增加反向时延的时长直到平均值的绝对值小于预设阈值。
在本实施例的一种实施方式中,本实施例的装置还可以包括:
上报模块,用于在平均值小于零或大于零,且平均值的绝对值大于预设阈值的情况下,上报告警信息。
在本实施例的一种实施方式中,本实施例的装置还可以包括:中止模块,用于在端到端业务产生连通性丢失LOC的情况下,中止执行端到端业务的时延调整操作;执行模块,用于在LOC消失的情况下,继续执行端到端业务的时延调整操作。
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述各个模块以任意组合的形式分别位于不同的处理器中。
实施例3
本申请的实施例还提供了一种存储介质,该存储介质中存储有计算机程序,其中,该计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。
在一实施例中,上述存储介质可以被设置为存储用于执行以下步骤的计算机程序:
步骤S1,在第一设备与第二设备之间的端到端业务建立之后,确定与第一设备的端到端业务相关的双向时延的差值;其中,双向时延的差值为正向时延与反向时延的差值;
步骤S2,基于双向时延的差值得到预设周期内双向时延的差值的平均值;
步骤S3,根据平均值对端到端业务的时延进行调整。
在一实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储计算机程序的介质。
本申请的实施例还提供了一种电子装置,包括存储器和处理器,该存储器中存储有计算机程序,该处理器被设置为运行计算机程序以执行上述任一项方法实施例中的步骤。
在一实施例中,上述电子装置还可以包括传输设备以及输入输出设备,其中,该传输设备和上述处理器连接,该输入输出设备和上述处理器连接。
在一实施例中,上述处理器可以被设置为通过计算机程序执行以下步骤:
步骤S1,在第一设备与第二设备之间的端到端业务建立之后,确定与第一设备的端到端业务相关的双向时延的差值;其中,双向时延的差值为正向时延与反向时延的差值;
步骤S2,基于双向时延的差值得到预设周期内双向时延的差值的平均值;
步骤S3,根据平均值对端到端业务的时延进行调整。
在一实施例中,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。
显然,本领域的技术人员应该明白,上述的本申请的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本申请不限制于任何特定的硬件和软件结合。
以上所述仅为本申请的具体实施例而已,并不用于限制本申请,对于本领域的技术人员来说,本申请可以有各种更改和变化。凡在本申请的原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。

Claims (10)

  1. 一种端到端业务的时延调整方法,包括:
    在第一设备与第二设备之间的端到端业务建立之后,确定与所述第一设备的端到端业务相关的双向时延的差值;其中,所述双向时延的差值为正向时延与反向时延的差值;
    基于所述双向时延的差值得到预设周期内所述双向时延的差值的平均值;
    根据所述平均值对所述端到端业务的时延进行调整。
  2. 根据权利要求1所述的方法,其中,所述根据所述平均值对所述端到端业务的时延进行调整,包括:
    在所述平均值小于零,且所述平均值的绝对值大于预设阈值的情况下,触发所述第一设备进入监视状态,并触发所述第二设备进行时延调整以使所述平均值的绝对值小于所述预设阈值;
    在所述平均值大于零,且所述平均值的绝对值大于预设阈值的情况下,触发所述第二设备进入监视状态,并触发所述第一设备进行时延调整以使所述平均值的绝对值小于所述预设阈值。
  3. 根据权利要求2所述的方法,其中,所述确定与所述第一设备的端到端业务相关的双向时延的差值,包括:
    将在所述第一设备侧产生所述端到端业务的时刻确定为第一时戳,将所述第二设备收到所述端到端业务的时刻确定为第二时戳,将所述第二设备响应所述端到端业务并发送响应报文的时刻确定为第三时戳,将所述第一设备接收到所述响应报文的时刻确定为第四时戳;
    将所述第二时戳与所述第三时戳的和值减去所述第一时戳与所述第四时戳的和值作为双向时延的差值。
  4. 根据权利要求3所述的方法,其中,所述基于所述双向时延的差值得到预设周期内所述双向时延的差值的平均值,包括:
    获取所述预设周期内的第一数量的双向时延的差值;
    对所述第一数量的双向时延的差值进行滤波得到第二数量的双向时延的差值,其中,所述第二数量小于所述第一数量;
    将对所述第二数量的时延的差值进行求和的结果与所述预设周期进行 平均值的计算,得到所述双向时延的差值的平均值。
  5. 根据权利要求2或4所述的方法,其中,
    在所述平均值小于零,且所述平均值的绝对值大于预设阈值的情况下,触发所述第二设备进行时延调整以使所述平均值的绝对值小于预设阈值,包括:触发所述第二设备减少所述反向时延的时长直到所述平均值的绝对值小于所述预设阈值;
    在所述平均值大于零,且所述平均值的绝对值大于预设阈值的情况下,触发所述第一设备进行时延调整以使所述平均值的绝对值小于预设阈值,包括:触发所述第一设备增加所述反向时延的时长直到所述平均值的绝对值小于所述预设阈值。
  6. 根据权利要求1所述的方法,其中,所述方法还包括:
    在所述平均值小于零或大于零,且所述平均值的绝对值大于预设阈值的情况下,上报告警信息。
  7. 根据权利要求1所述的方法,其中,所述方法还包括:
    在所述端到端业务产生连通性丢失LOC的情况下,中止执行端到端业务的时延调整操作;
    在所述LOC消失的情况下,继续执行端到端业务的时延调整操作。
  8. 一种端到端业务的时延调整装置,包括:
    确定模块,用于在第一设备与第二设备之间的端到端业务建立之后,确定与所述第一设备的端到端业务相关的双向时延的差值;其中,所述双向时延的差值为正向时延与反向时延的差值;
    处理模块,用于基于所述双向时延的差值得到预设周期内所述双向时延的差值的平均值;
    调整模块,用于根据所述平均值对所述端到端业务的时延进行调整。
  9. 一种存储介质,其中,所述存储介质中存储有计算机程序,其中,所述计算机程序被设置为运行时执行所述权利要求1至7任一项中所述的方法。
  10. 一种电子装置,包括存储器和处理器,其中,所述存储器中存储有计算机程序,所述处理器被设置为运行所述计算机程序以执行所述权利 要求1至7任一项中所述的方法。
PCT/CN2020/085694 2019-05-20 2020-04-20 端到端业务的时延调整方法及装置、存储介质和电子装置 WO2020233313A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
BR112021023358A BR112021023358A2 (pt) 2019-05-20 2020-04-20 Método de ajuste de atraso e aparelho para serviço de ponta a ponta, meio de armazenamento e aparelho eletrônico

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910420730.XA CN111970759B (zh) 2019-05-20 2019-05-20 端到端业务的时延调整方法及装置、存储介质和电子装置
CN201910420730.X 2019-05-20

Publications (1)

Publication Number Publication Date
WO2020233313A1 true WO2020233313A1 (zh) 2020-11-26

Family

ID=73358042

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/085694 WO2020233313A1 (zh) 2019-05-20 2020-04-20 端到端业务的时延调整方法及装置、存储介质和电子装置

Country Status (3)

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

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114422069A (zh) * 2022-01-04 2022-04-29 烽火通信科技股份有限公司 FlexE业务的时延处理方法、装置、设备及存储介质
CN115189784A (zh) * 2022-06-30 2022-10-14 联想(北京)有限公司 基于时延处理方法及装置、电子设备、存储介质
CN116996198A (zh) * 2023-09-25 2023-11-03 之江实验室 一种灵活以太网双向时延对称小颗粒时隙分配方法及装置

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115396360A (zh) * 2021-05-08 2022-11-25 中兴通讯股份有限公司 一种路径计算方法、装置、存储介质及电子装置
CN113708999B (zh) * 2021-08-30 2022-11-29 国家电网有限公司 一种通信网时延监测系统及方法

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102098135A (zh) * 2011-03-04 2011-06-15 北京邮电大学 用于异构网络融合下的业务流分发的系统及方法
CN108631946A (zh) * 2018-05-14 2018-10-09 海能达通信股份有限公司 一种时延调节方法及相关设备
CN108989137A (zh) * 2017-06-01 2018-12-11 中兴通讯股份有限公司 端到端通信的时延测量方法及装置、计算机可读存储介质
CN109005557A (zh) * 2018-09-26 2018-12-14 南京中兴新软件有限责任公司 一种时延对称性测量方法、装置和系统

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102014431B (zh) * 2010-11-08 2013-09-11 华为技术有限公司 防抖动的数据传输方法、设备及系统
CN105992025B (zh) * 2015-02-15 2019-09-27 湖南汇德电子有限公司 基于音频同步播放的系统时间校准方法、音频同步播放方法及装置
CN105099649B (zh) * 2015-08-14 2018-10-16 宋亚玲 一种网络时间同步嵌入的方法和系统
CN105610727B (zh) * 2015-11-06 2019-02-12 瑞斯康达科技发展股份有限公司 一种网络数据传输方法及装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102098135A (zh) * 2011-03-04 2011-06-15 北京邮电大学 用于异构网络融合下的业务流分发的系统及方法
CN108989137A (zh) * 2017-06-01 2018-12-11 中兴通讯股份有限公司 端到端通信的时延测量方法及装置、计算机可读存储介质
CN108631946A (zh) * 2018-05-14 2018-10-09 海能达通信股份有限公司 一种时延调节方法及相关设备
CN109005557A (zh) * 2018-09-26 2018-12-14 南京中兴新软件有限责任公司 一种时延对称性测量方法、装置和系统

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114422069A (zh) * 2022-01-04 2022-04-29 烽火通信科技股份有限公司 FlexE业务的时延处理方法、装置、设备及存储介质
CN114422069B (zh) * 2022-01-04 2023-12-05 烽火通信科技股份有限公司 FlexE业务的时延处理方法、装置、设备及存储介质
CN115189784A (zh) * 2022-06-30 2022-10-14 联想(北京)有限公司 基于时延处理方法及装置、电子设备、存储介质
CN116996198A (zh) * 2023-09-25 2023-11-03 之江实验室 一种灵活以太网双向时延对称小颗粒时隙分配方法及装置
CN116996198B (zh) * 2023-09-25 2023-12-19 之江实验室 一种灵活以太网双向时延对称小颗粒时隙分配方法及装置

Also Published As

Publication number Publication date
CN111970759B (zh) 2023-05-30
CN111970759A (zh) 2020-11-20
BR112021023358A2 (pt) 2022-02-01

Similar Documents

Publication Publication Date Title
WO2020233313A1 (zh) 端到端业务的时延调整方法及装置、存储介质和电子装置
CN112688754B (zh) 基于灵活以太网FlexE传输业务流的方法和装置
WO2019196585A1 (zh) 监测业务质量的方法和装置
US8600347B2 (en) Idle mode notification
US9729459B2 (en) System and method for credit-based link level flow control
KR101651166B1 (ko) 동기화된 네트워크들을 위한 장치 및 방법
US11102273B2 (en) Uplink performance management
WO2021227947A1 (zh) 网络控制方法及设备
WO2018036173A1 (zh) 一种网络负载均衡方法、设备及系统
US20220014485A1 (en) Signalling of Dejittering Buffer Capabilities for TSN Integration
US11375024B1 (en) Programmable networking device for user plane function
WO2021203985A1 (zh) 一种拥塞信息同步的方法以及相关装置
US9553828B1 (en) System and method for collision detection and avoidance for network communications
CN113726681B (zh) 一种网络拥塞控制方法及网络设备
CN113438182A (zh) 一种基于信用的流量控制系统和流量控制方法
US10334539B2 (en) Metered interface
US11916770B2 (en) Pinpointing sources of jitter in network flows
WO2013042564A1 (ja) 診断システム
US9692709B2 (en) Playout buffering of encapsulated media
JP2000022678A (ja) データ伝送端末装置
CN114124833A (zh) 一种控制报文发送的方法、网路设备和系统
CN113950099A (zh) 一种网络拥塞控制方法及设备
US20230388252A1 (en) Providing high assurance of end-to-end cpri circuit in a high jitter packet based fronthaul network
JP5216830B2 (ja) データ転送装置及び方法
US9237061B2 (en) Transmission apparatus and transmission method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20809648

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

REG Reference to national code

Ref country code: BR

Ref legal event code: B01A

Ref document number: 112021023358

Country of ref document: BR

ENP Entry into the national phase

Ref document number: 112021023358

Country of ref document: BR

Kind code of ref document: A2

Effective date: 20211119

122 Ep: pct application non-entry in european phase

Ref document number: 20809648

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS (EPO FORM 1205A DATED 26.04.2022)

122 Ep: pct application non-entry in european phase

Ref document number: 20809648

Country of ref document: EP

Kind code of ref document: A1