WO2022017336A1 - Link management method and communication apparatus - Google Patents

Link management method and communication apparatus Download PDF

Info

Publication number
WO2022017336A1
WO2022017336A1 PCT/CN2021/107204 CN2021107204W WO2022017336A1 WO 2022017336 A1 WO2022017336 A1 WO 2022017336A1 CN 2021107204 W CN2021107204 W CN 2021107204W WO 2022017336 A1 WO2022017336 A1 WO 2022017336A1
Authority
WO
WIPO (PCT)
Prior art keywords
link
transmission delay
packet
time information
message
Prior art date
Application number
PCT/CN2021/107204
Other languages
French (fr)
Chinese (zh)
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 华为技术有限公司
Publication of WO2022017336A1 publication Critical patent/WO2022017336A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/4013Management of data rate on the bus
    • H04L12/40136Nodes adapting their rate to the physical link properties
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0896Bandwidth or capacity management, i.e. automatically increasing or decreasing capacities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • H04L43/0882Utilisation of link capacity

Definitions

  • the embodiments of the present application relate to the field of communication, and in particular, to a link management method and a communication device.
  • the amount of data that can be transmitted by a single physical link between the sender and the receiver is limited.
  • multiple physical links can be aggregated (bundled) to provide a larger information transmission channel.
  • the sender When transmitting service packets through the aggregated links, the sender needs to slice the service packets and distribute them to each link for transmission.
  • the receiving end needs to buffer the received sliced packets, wait for all sliced packets of a service packet to arrive, and then reassemble the service packets according to all the sliced packets.
  • link aggregation is manually planned according to published link information (eg, link transmission delay), and planning is performed according to the worst scenario, which limits the binding range and cannot maximize bandwidth utilization.
  • link information eg, link transmission delay
  • Embodiments of the present application provide a link management method and a communication device, which can automatically and dynamically manage a physical link aggregation group according to the real-time transmission delay of the link, so as to maximize bandwidth utilization.
  • a first aspect provides a link management method, including: a first device obtains a transmission delay of a first link in a physical link aggregation group; the first device communicates with a second device through the first link performing communication; the first device activates the first link or deactivates the first link according to the transmission delay.
  • the first device can obtain the transmission delay of the first link in the physical link aggregation group, and can also activate the first link or deactivate the first link according to the transmission delay.
  • the members of the physical link aggregation group are dynamically managed.
  • the transmission delay of the link changes dynamically with the bandwidth of the link.
  • the physical aggregation group is manually planned according to the published transmission delay of the link. Therefore, when the transmission delay of the link changes, the prior art The members of the physical link aggregation cannot be activated or deactivated in time according to the real-time transmission delay of the link.
  • the method provided by the present application can automatically and dynamically manage the physical link aggregation group with reference to the real-time transmission delay of the link while ensuring the normal operation of the physical link aggregation group.
  • the normal operation of the physical link group may be affected.
  • the link can be removed (deactivated) to maximize the use of bandwidth.
  • the obtaining, by the first device, the transmission delay of the first link in the physical link aggregation group includes: the first device passing the The first link receives a first packet sent by the second device, where the first packet includes first time information, where the first time information is used to instruct the second device to send the first packet time; the first device determines the transmission delay of the first link according to the first time information and the time when the first device receives the first packet.
  • the first message may be a DMM. If the time of the first device and the second device is synchronized, the transmission delay of the first link can be calculated according to the time when the second device sends the DMM and the time when the first device receives the DMM.
  • the first device acquiring the transmission delay of the first link in the physical link aggregation group includes: A link sends a second packet to the second device, where the second packet includes second time information, where the second time information is used to indicate the time when the first device sends the second packet ; the first device receives the third message sent by the second device through the first link, and the third message includes the third time information and the fourth time information; the third time information uses In order to indicate the time when the second device receives the second packet, the fourth time information is used to indicate the time when the second device sends the third packet; The second time information, the third time information, the fourth time information, and the time when the first device receives the third packet determines the transmission delay of the first link.
  • the second message may be DMM
  • the third message may be DMR. If the time of the first device and the second device are not synchronized, the first link can be calculated according to the time when the first device sends the DMM, the time when the second device receives the DMM, the time when the second device sends the DMR, and the time when the first device receives the DMR transmission delay.
  • the first device activates the first link according to the delay information or deactivating the first link, comprising: determining, by the first device, that the difference between the transmission delay of the first link and the transmission delay of the second link is greater than or equal to a threshold value, then deactivating the first link; the second link is the link with the smallest transmission delay in the physical link aggregation group; the first device determines the transmission delay of the first link and the first link The difference between the transmission delays of the two links is less than the threshold value, and the first link is activated.
  • the threshold value is the maximum transmission delay difference between members that the physical link aggregation group can tolerate, and the maximum transmission delay difference between members refers to the transmission delay difference between any two physical links.
  • the physical link aggregation group can work normally. Assuming that the transmission delay of the second link in the physical link aggregation group is the smallest, the normal operation of the physical link aggregation group needs to meet the following conditions: the transmission delay of any physical link in the physical link aggregation group is the same as that of the second link. The transmission delay difference of the channel is less than the maximum transmission delay difference between members that the physical link aggregation group can tolerate.
  • the first link when the difference between the transmission delays of the first link and the second link is greater than or equal to the threshold value, the first link is deactivated, and when the difference between the transmission delays of the first link and the second link is When the value is less than the threshold value, the first link is activated.
  • the dynamic management of the physical link aggregation group is realized, and the bandwidth is maximized while ensuring the normal operation of the physical link aggregation group.
  • the first device activates the first link according to the delay information , comprising: activating the receiving function of the first link in the first device; sending a first message to the second device, the first message representing that the first link is in the first device The reception function has been activated; a second message is received from the second device, the second message represents that the reception function of the first link at the second device has been activated; the first link is activated according to the second message.
  • the first device first activates the receiving function of the local end, which can ensure that the local end will not lose the packets from the opposite end during the link activation process, thereby realizing lossless activation.
  • the first device deactivating the first link according to the delay information includes: deactivating the first link in the the sending function of the first device; sending a third message to the second device, the third message representing that the sending function of the first link in the first device has been deactivated; from the second device receiving a fourth message, the fourth message representing that the sending function of the first link on the second device has been deactivated; deactivating the first link on the first device according to the fourth message receive function.
  • first deactivating the sending function of the local end, and then deactivating the receiving function of the opposite end can ensure that during the link deactivation process, the opposite end will not lose the packets from the local end, and achieve lossless deactivation.
  • a communication apparatus configured to be a first device or a component in the first device. It includes: a processing unit, configured to obtain the transmission delay of the first link in the physical link aggregation group; the first device communicates with the second device through the first link; the processing unit is further configured to: The first link is activated or deactivated according to the transmission delay.
  • the communication apparatus further includes a communication unit, where the communication unit is configured to receive the data sent by the second device through the first link a first packet, where the first packet includes first time information, where the first time information is used to indicate the time when the second device sends the first packet; the processing unit is specifically configured to: The first time information and the time when the first device receives the first packet determines the transmission delay of the first link.
  • the communication apparatus further includes a communication unit, where the communication unit is configured to send the first link to the second device through the first link two packets, the second packet includes second time information, and the second time information is used to indicate the time when the first device sends the second packet; the communication unit is further configured to: The first link receives a third packet sent by the second device, where the third packet includes third time information and fourth time information; the third time information is used to instruct the second device to receive The time of the second packet, and the fourth time information is used to indicate the time when the second device sends the third packet; the processing unit is specifically configured to: The third time information, the fourth time information, and the time when the first device receives the third packet determines the transmission delay of the first link.
  • the processing unit is specifically configured to: If the difference between the delay and the transmission delay of the second link is greater than or equal to the threshold value, the first link is deactivated; the second link is the one with the smallest transmission delay in the physical link aggregation group link; it is determined that the difference between the transmission delay of the first link and the transmission delay of the second link is less than the threshold value, then activate the first link.
  • the processing unit is configured to activate the first link in the first link.
  • a receiving function of a device the communication unit is configured to send a first message to the second device, and receive a second message from the second device; the first message represents that the first link is in the first The receiving function of the device has been activated, and the second message indicates that the receiving function of the first link in the second device has been activated; the processing unit is further configured to activate the first link according to the second message The sending function of the link at the first device.
  • the processing unit is configured to deactivate the first link in the The sending function of the first device; the communication unit is configured to send a third message to the second device, and receive a fourth message from the second device; the third message represents that the first link is in the first link The sending function of a device has been deactivated, and the fourth message indicates that the sending function of the first link in the second device has been deactivated; the processing unit is further configured to deactivate according to the fourth message The receive function of the first link at the first device.
  • a communication device comprising at least one processor and a memory, the at least one processor is coupled to the memory; the memory is used to store a computer program;
  • the at least one processor is configured to execute a computer program stored in the memory, so that the apparatus executes the method according to the first aspect and any one of the implementation manners of the first aspect.
  • a computer-readable storage medium comprising: instructions stored in the computer-readable storage medium; When running on the device, the communication device is caused to execute the communication method described in the first aspect and any one of the implementation manners of the first aspect.
  • a fifth aspect provides a wireless communication device
  • the communication device includes a processor, for example, applied to a communication device, for implementing the method described in the first aspect and any implementation manner of the first aspect
  • the communication device may be, for example, a system-on-chip.
  • the chip system further includes a memory, and the memory is used for storing necessary program instructions and data to implement the functions of the method in the first aspect.
  • the chip system in the above aspects may be a system on chip (system on chip, SOC), or a baseband chip, etc.
  • the baseband chip may include a processor, a channel encoder, a digital signal processor, a modem, an interface module, and the like.
  • a communication system in a sixth aspect, includes the first device described in the second aspect, any possible implementation manner of the second aspect, and the second device described in any of the foregoing implementation manners. .
  • FIG. 1 is an architectural diagram of a communication system provided by an embodiment of the present application
  • FIG. 2 is a schematic diagram of link aggregation provided by an embodiment of the present application.
  • FIG. 3 is a structural block diagram of a communication device provided by an embodiment of the present application.
  • FIG. 4 is a schematic flowchart of a link management method provided by an embodiment of the present application.
  • FIG. 5 is a schematic diagram of a delay measurement process provided by an embodiment of the present application.
  • FIG. 6 is another schematic diagram of a delay measurement process provided by an embodiment of the present application.
  • FIG. 7 is a schematic diagram of a delay bandwidth provided by an embodiment of the present application.
  • FIG. 8 is a schematic diagram of link activation provided by an embodiment of the present application.
  • FIG. 9 is a schematic diagram of link deactivation provided by an embodiment of the present application.
  • FIG. 10 is another schematic flowchart of a link management method provided by an embodiment of the present application.
  • FIG. 11 is another structural block diagram of a communication device provided by an embodiment of the present application.
  • FIG. 12 is another structural block diagram of a communication apparatus provided by an embodiment of the present application.
  • FIG. 1 is a schematic diagram of a communication system to which the technical solution provided by the present application is applied, and the communication system may include multiple communication devices (a communication device 100 and a communication device 200 are shown in the figure).
  • FIG. 1 is only a schematic diagram, and does not constitute a limitation on the applicable scenarios of the technical solutions provided in the present application.
  • Communication between the communication device 100 and the communication device 200 can be performed through link 1, link 2 . . . link N.
  • the link between the communication device 100 and the communication device 200 may be an Ethernet link, a microwave link, an optical transport network (OTN) link, etc., and the working frequency band of the link may be a conventional frequency band or an enhanced ( E-BAND) band.
  • OTN optical transport network
  • the regular frequency band can be a frequency band with a frequency greater than or equal to 7G and a frequency less than or equal to 38G;
  • the enhanced frequency band can be a frequency band with a frequency greater than or equal to 71G and a frequency less than or equal to 86G.
  • the data size transmitted by a single link is limited.
  • links between communication devices can be aggregated (or bundled) to provide a larger transmission channel. It can be understood that the aggregation of physical links is synchronized at the sender and receiver. For example, referring to FIG. 2 , the communication device 100 aggregates link 1 , link 2 . . . link N, and the communication device 200 also aggregates link 1 , link 2 . . . link N similarly.
  • the sender slices service packets and transmits the sliced packets through the links participating in the aggregation.
  • the receiver reassembles the received sliced packets to obtain service packets.
  • the communication device 100 slices the service packet, obtains slice packet 1, slice packet 2... slice packet N, and then transmits the slice packet through link 1, link 2... link N respectively 1.
  • Slice packet 2... Slice packet N The communication device 200 sorts the received sliced packets, and reassembles the service packets according to the sliced packets.
  • the aggregated links are referred to as physical link aggregation groups.
  • the links included in the physical link aggregation group are all conventional frequency band links; or, the physical link aggregation group includes conventional frequency band links and enhanced frequency band links; or, the links included in the physical link aggregation group are all enhanced frequency band links road.
  • the communication device 100 and the communication device 200 may be any device having a wireless transceiver function.
  • it can be an evolved base station (E-UTRAN NodeB or e-NodeB or eNB) in LTE, a base station (gNodeB or gNB) or a transmit/receive point in 5G or new radio (NR) access technology reception point, TRP), base station for subsequent evolution of 3GPP, access node in WiFi system, wireless relay node, wireless backhaul node, etc.
  • the base station can be: a macro base station, a micro base station, a pico base station, a small base station, a relay station, or a balloon station, etc. Alternatively, it can be a terminal device.
  • the terminal equipment can be deployed on land, including indoor or outdoor, handheld, wearable or vehicle-mounted; it can also be deployed on water (such as ships, etc.); it can also be deployed in the air (such as planes, balloons, satellites, etc.).
  • the terminal device may be a mobile phone (mobile phone), a tablet computer (Pad), a computer with wireless transceiver function, a virtual reality (virtual reality, VR) terminal device, an augmented reality (augmented reality, AR) terminal device, industrial control ( wireless terminals in industrial control, in-vehicle terminal equipment, wireless terminals in self-driving, wireless terminals in remote medical, wireless terminals in smart grid, transportation security ( Wireless terminals in transportation safety), wireless terminals in smart cities, wireless terminals in smart homes, wearable terminal devices, etc.
  • VR virtual reality
  • AR augmented reality
  • industrial control wireless terminals in industrial control, in-vehicle terminal equipment, wireless terminals in self-driving, wireless terminals in remote medical, wireless terminals in smart grid, transportation security (
  • a terminal may also sometimes be referred to as terminal equipment, user equipment (UE), access terminal equipment, vehicle-mounted terminal, industrial control terminal, UE unit, UE station, mobile station, mobile station, remote station, remote terminal equipment, mobile equipment, UE terminal equipment, terminal equipment, wireless communication equipment, UE proxy or UE device, etc. Terminals can also be stationary or mobile.
  • the terminal device of the present application may also be an on-board module, on-board module, on-board component, on-board chip or on-board unit built into the vehicle as one or more components or units. An on-board component, on-board chip or on-board unit may implement the method of the present application.
  • the transmission delay of the link refers to the transmission time of the packet from the sender to the receiver.
  • the time of the sender and receiver is synchronized, the sender sends the message at time T1, and the receiver receives the message at time T2.
  • the transmission delay of the link is (T2-T1).
  • the state of the link includes activation and deactivation.
  • the link can carry sliced packets of service packets; when a link is deactivated, the link is in an inactive state and cannot carry sliced packets of service packets.
  • multiple individual links are aggregated together to form a physical link aggregation group.
  • Sliced packets of service packets are transmitted through the links of the physical link aggregation group to improve data transmission efficiency.
  • the transmission delay difference between members refers to the difference between the transmission delays of any two links in the physical link aggregation group.
  • the buffering capability of the device is limited, and the receiving end needs to receive all sliced packets before reassembling the service packets. If the transmission delay difference between members is too large, the delay of different slice packets arriving at the receiving end is too large. When some slice packets arrive at the receiving end, the receiving end cannot cache the slice packets, which will cause the receiving end to fail to reorganize. Therefore, to ensure the successful reorganization of the receiving end, it is necessary that the transmission delay difference between members should not be too large.
  • the upper limit of the transmission delay difference between members is referred to as the maximum inter-member that the physical link aggregation group can tolerate.
  • the transmission delay difference between members exceeds the maximum transmission delay difference between members that the physical link aggregation group can tolerate. The physical link aggregation group cannot work normally, and reorganization fails.
  • An embodiment of the present application provides a link management method.
  • a first device can acquire the transmission delay of a first link in a physical link aggregation group, and can also activate or deactivate the first link according to the transmission delay. the first link.
  • the physical link aggregation group can be automatically and dynamically managed with reference to the transmission delay of the link.
  • the method provided by the present application can automatically and dynamically manage the physical link aggregation group with reference to the real-time transmission delay of the physical link while ensuring the normal operation of the physical link aggregation group. For example, when the bandwidth of the physical link becomes smaller and the transmission delay becomes larger, which may affect the normal operation of the physical link group, the link can be removed (deactivated) to maximize the utilization of the bandwidth. Alternatively, the bandwidth of the physical link becomes larger and the transmission delay becomes smaller. On the premise of ensuring the normal operation of the physical link aggregation group, the link can be activated to maximize the utilization of the bandwidth.
  • FIG. 3 is a schematic diagram of the hardware structure of the device 20 .
  • the apparatus 20 may be deployed on a computing device, or may be the computing device described in the embodiments of the present application.
  • the apparatus 20 includes a processor 201 , a memory 202 and at least one network interface (in FIG. 3 , the network interface 203 is used as an example for illustration only).
  • the processor 201 , the memory 202 and the network interface 203 are connected to each other.
  • the processor 201 may be a general-purpose central processing unit (central processing unit, CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more processors for controlling the execution of the programs of the present application. integrated circuit.
  • CPU central processing unit
  • ASIC application-specific integrated circuit
  • the network interface 203 is an interface of the device 20 for communicating with other devices or communication networks, such as Ethernet, radio access network (RAN), wireless local area networks (WLAN) and the like.
  • RAN radio access network
  • WLAN wireless local area networks
  • Memory 202 may be read-only memory (ROM) or other types of static data centers that can store static information and instructions, random access memory (RAM), or other types of information and instructions It can also be electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disk storage, optical disk storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic data centers, or capable of carrying or storing desired program code in the form of instructions or data structures and capable of being executed by a computer Access any other medium without limitation.
  • the memory may exist independently and be connected to the processor through a communication line. The memory can also be integrated with the processor.
  • the memory 202 is used for storing computer-executed instructions for executing the solutions of the present application, and the execution is controlled by the processor 201 .
  • the processor 201 is configured to execute the computer-executed instructions stored in the memory 202, thereby implementing the intent processing method provided by the following embodiments of the present application.
  • the computer-executed instructions in the embodiment of the present application may also be referred to as application code, which is not specifically limited in the embodiment of the present application.
  • the processor 201 may include one or more CPUs, such as CPU0 and CPU1 in FIG. 3 .
  • the apparatus 20 may include multiple processors, such as the processor 201 and the processor 204 in FIG. 3 .
  • processors can be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor.
  • a processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (eg, computer program instructions).
  • the above-mentioned apparatus 20 may be a general-purpose device or a special-purpose device.
  • the device 20 may be a desktop computer, a network device, an embedded device or other devices having a similar structure in FIG. 3 .
  • the embodiment of the present application does not limit the type of the device 20 .
  • An embodiment of the present application provides a link management method. As shown in FIG. 4 , the method includes the following steps:
  • the first device acquires the transmission delay of the first link in the physical link aggregation group.
  • the first device may communicate with the second device through multiple links, and in order to improve the transmission bandwidth, the multiple links may be aggregated into a physical link aggregation group.
  • the first device may further slice the service packet, and transmit the sliced packet through each link in the physical link aggregation group.
  • the first device may send a measurement packet through each link of the physical link aggregation group to measure the transmission delay of the link.
  • the measurement packets are sent periodically.
  • the time of the first device and the second device is synchronized, and the first device can determine the time according to the time when the second device sends a delay measurement message (DMM) and the time when the first device receives the delay measurement message.
  • DDM delay measurement message
  • the first device receives a first packet sent by the second device through the first link, where the first packet includes first time information, the first time The information is used to indicate the time when the second device sends the first packet.
  • the first message may be DMM.
  • the first device may further determine the transmission delay of the first link according to the first time information and the time when the first device receives the first packet.
  • the first device sends the first DMM packet through the first link, the first DMM packet includes a timestamp T1, and T1 is the time when the first device sends the first DMM packet;
  • the first device may also receive a second DMM packet sent by the second device through the first link, where the second DMM packet includes a time stamp T2, where T2 is the time when the second device sends the second DMM packet.
  • the first device may also determine the transmission delay of the first link according to the times T3 and T2 when the second DMM packet is received. Specifically, the transmission delay is (T3-T2).
  • the second device may determine the transmission delay of the first link according to the times T4 and T1 when the first DMM packet is received. Specifically, the transmission delay is (T4-T1).
  • the time of the first device and the second device is not synchronized.
  • the time for sending a delay measure response (DMR) and the time for the first device to receive the DMR determine the transmission delay of the physical link.
  • DMR delay measure response
  • the first device sends a second packet to the second device through the first link, where the second packet includes second time information, and the second time information It is used to indicate the time when the first device sends the second packet; wherein, the second packet may be DMM.
  • the second device may further send a third packet to the first device through the first link.
  • the third packet includes third time information and fourth time information; the third time information is used to indicate the time when the second device receives the second packet, and the fourth time information is used to indicate The time when the second device sends the third packet, where the third packet may be a DMR.
  • the first device receives the third packet sent by the second device through the first link, and acquires third time information and fourth time information therefrom.
  • the first device may further determine the first link according to the second time information, the third time information, the fourth time information, and the time when the first device receives the third packet transmission delay.
  • the first device sends a DMM packet to the second device through the first link, the DMM packet includes a timestamp T1, and T1 is the time when the first device sends the DMM packet;
  • the first device receives the DMR packet sent by the second device through the first link, where the DMR packet includes a timestamp T2 and a timestamp T3.
  • T2 is the time when the second device receives the DMM packet
  • T3 is the time when the second device sends the DMR packet.
  • the first device may determine the transmission delay of the first link according to T1, T2, T3 and the time T4 at which the first device receives the DMR packet. Specifically, the transmission delay of the first link is [((T4-T1)-(T3-T2))/2].
  • the first device activates the first link or deactivates the first link according to the transmission delay.
  • a link with a small bandwidth that is, a link with a large transmission delay
  • a link with a large bandwidth that is, a link with a small transmission delay
  • each link in the physical link aggregation group may be traversed to determine the transmission delay difference between members.
  • the link with the smallest transmission delay in the physical link aggregation group is used as a benchmark to calculate the difference between the transmission delay of other links and the transmission delay of this link.
  • the transmission delay of the second link in the physical link aggregation group is the smallest, and the transmission delay difference between members corresponding to other physical links in the physical link aggregation group is calculated based on the transmission delay of the second link.
  • the difference between the transmission delay of a link and the transmission delay of the second link is greater than the threshold value, it indicates that the transmission delay of the link is too large.
  • the bandwidth of the link is small. In order to maximize the utilization bandwidth, you can deactivate this link.
  • the difference between the transmission delay of a link and the transmission delay of the second link is less than the threshold value, it indicates that the transmission delay of the link is small and the bandwidth of the link is large. bandwidth, the link can be activated.
  • the link may be deactivated, or the link may be activated, which is not done in this embodiment of the present application limit.
  • the threshold value may be the maximum transmission delay difference between members that the physical link aggregation group can tolerate.
  • the buffer capacity of each device is limited.
  • the maximum transmission delay difference D between members that the physical link aggregation group can tolerate satisfies the following relationship: B*A>C*D.
  • C is the capacity of the physical link aggregation group, that is, the total bandwidth of the links included in the physical link aggregation group;
  • B is the cache size of the device;
  • A is the cache utilization rate of the device.
  • the first device determines that the difference between the transmission delay of the first link and the transmission delay of the second link is greater than or equal to the threshold value, indicating that the transmission delay of the first link If the delay is large, the bandwidth of the first link is small, and the first link can be deactivated to maximize the utilization of the bandwidth.
  • the first device determines that the difference between the transmission delay of the first link and the transmission delay of the second link is less than the threshold value, it indicates that the transmission delay of the first link is relatively small, The bandwidth of the first link is relatively large, and the first link can be activated to maximize the utilization of the bandwidth.
  • the first link is activated by activating the receiving function and the sending function of the first link, so that the first link can carry the sliced packets divided by the service packets of the first device.
  • the first link is deactivated by deactivating the receiving function and the sending function of the first link. After the first link is deactivated, the first link cannot carry the segmented packets divided by the service packets of the first device.
  • the first, lossless activation method The first, lossless activation method.
  • the first device first activates the reception function of the first link in the first device
  • the first device may also send a first message to the second device, where the first message represents that the reception function of the first link at the first device has been activated;
  • the second device After receiving the first message, the second device activates the sending function of the first link on the second device, and can also activate the receiving function of the first link on the second device;
  • the second device may also send a second message to the first device, where the second message indicates that the reception function of the first link at the second device has been activated;
  • the first device receives a second message from the second device, and activates the sending function of the first link on the first device according to the second message.
  • the second device determines that the activation condition is not met after receiving the first message, it returns a response to the first device, indicating that the first link is not to be activated.
  • the activation condition may be that the link quality is better.
  • the first device first activates the receiving function of the local end, which can ensure that the local end does not lose the packets from the opposite end during the link activation process, and realizes lossless activation.
  • the first device deactivates the sending function of the first link in the first device
  • the first device may also send a third message to the second device, where the third message represents that the sending function of the first link in the first device has been deactivated;
  • the receiving function of the first link on the second device can also deactivate the sending function of the first link on the second link;
  • the second device may also send a fourth message to the first device, where the fourth message represents that the sending function of the first link in the second device has been deactivated;
  • the first device receives a fourth message from the second device, and deactivates the reception function of the first link at the first device according to the fourth message.
  • the second device after receiving the third message, the second device unconditionally performs the deactivation operation, which is not limited by other factors.
  • the sending function of the local end is deactivated first, and then the receiving function of the opposite end is deactivated, which can ensure that during the link deactivation process, the opposite end will not lose the packets from the local end and achieve lossless deactivation. .
  • the measurement packet is different from the slice packet of the service packet, and the packet length of the measurement packet is relatively small, for example, it may be a measurement packet of 64 bytes.
  • Measurement packets carry timestamps (for example, the time when the packets are received or when the packets are sent), so that the device can determine the transmission delay of the link based on the timestamps.
  • the header of the measurement packet is different from the sliced packet of the service packet. Specifically, the fields included in the measurement packet are shown in Table 1:
  • the embodiment of the present application provides a link management method, which can dynamically manage the physical link aggregation group based on the transmission delay of the link, so as to ensure that the physical link aggregation group transmits with the maximized bandwidth.
  • the method includes the following steps:
  • link 1, link 2, For example, the first device and the second device communicate via link 1, link 2 . . . link N.
  • Link1, Link2...LinkN may be physical links of the same company, or Link1, Link2...LinkN may be physical links of different companies.
  • the physical link may be a microwave link, an OTN link, or other types of links, which are not limited in this embodiment of the present application.
  • the transmission delay of each link can be ignored, and the maximum bandwidth and minimum bandwidth of the link can be used to bind the link to form a physical link aggregation group to maximize the bandwidth. Use air interface bandwidth.
  • the maximum transmission delay difference between members that the physical link aggregation group can tolerate can be determined.
  • the maximum transmission delay difference between members that the physical link aggregation group can tolerate can be determined.
  • the sender may periodically send measurement packets on each link, and the transmission delay of the link is determined according to the timestamp in the packet returned by the receiver and the time when the sender receives the packet. For details, please refer to the flow shown in FIG. 5 and FIG. 6 above, which will not be repeated here.
  • the transmission delay of the link can also be obtained in other ways. For example, by manually measuring the transmission delay of the link, it is only necessary to ensure that the transmission delay of the link is accurate.
  • the minimum transmission delay of members can be the minimum transmission delay among the transmission delays of each link in the physical link aggregation group, which is recorded as min delay.
  • the status of each link is decided.
  • the state of the link is activated or deactivated.
  • the difference between the transmission delay of the link itself and the min delay can be calculated according to the transmission delay of each link (denoted as delay gap).
  • the relationship between the maximum transmission delay gap (max delay gap) between members of the physical link aggregation group can be tolerated, and the links in the physical link aggregation group are activated or deactivated to ensure that the physical link aggregation group maintains normal operation. At the same time, the bandwidth can be maximized.
  • Step 1004 or 1005 is specifically executed.
  • the delay difference between the transmission delay of a link and the minimum transmission delay of the members exceeds the maximum transmission delay difference between members that the physical link aggregation group can tolerate, it indicates that the transmission delay of the link is shorter than that of the member. If the link is large, that is, the bandwidth of the link is small. Deactivating the link can reduce the utilization of the low-bandwidth link and improve the bandwidth utilization.
  • the link can be activated to improve bandwidth utilization.
  • the delay difference between the transmission delay of a link and the minimum transmission delay of the members does not exceed the maximum transmission delay difference between members that the physical link aggregation group can tolerate, it indicates that the transmission delay of the link is relatively low. Small, that is, the bandwidth of the link is large, and activating the link can reduce and improve the bandwidth utilization.
  • the link with a larger bandwidth may be activated preferentially.
  • the alarm is preferentially reported on the link with small bandwidth and large transmission delay, indicating that the transmission delay of the link is too large, and the link can be deactivated according to the alarm.
  • the link is activated as a result of the decision based on the transmission delay of the link, but there was an alarm for the link before, the alarm is not processed (or discarded).
  • the real-time transmission delay of the link is dynamically obtained, and the link is activated or deactivated based on the transmission delay of the link.
  • the link can be deactivated to avoid packet loss and ensure the physical link The normal work of the road aggregation group to achieve lossless self-healing.
  • the link can be activated to make the physical link Link aggregation groups can always work at the maximum bandwidth.
  • FIG. 11 shows a possible schematic structural diagram of the communication device involved in the above embodiment.
  • the communication apparatus shown in FIG. 11 may be the device described in the embodiment of the present application (for example, the first device or the second device), may also be a component in the device that implements the above method, or may be applied in the device chip.
  • the chip may be an SOC or a baseband chip with a communication function, or the like.
  • the communication device includes a processing unit 1101 and a communication unit 1102 .
  • the processing unit may be one or more processors, and the communication unit may be a transceiver or a communication interface.
  • the processing unit 110 can be used to support the first device to perform steps 401 and 402, and also to support the first device to calculate the transmission delay of the link, and/or other processes used in the techniques described herein, for example, FIG. 10 The method flow shown.
  • the communication unit 1102 is configured to support communication between the first device and other communication apparatuses, for example, support the interaction between the first device and the second device, support the second device to send DMM or receive DMM, and also support the first device The device receives DMR, etc., and/or other procedures for the techniques described herein.
  • the communication device may further include a storage unit 1103, and the storage unit 1103 is configured to store program codes and/or data of the communication device.
  • the processing unit 1101 may include at least one processor, the communication unit 1102 may be a transceiver or a communication interface, and the storage unit 1103 may include a memory.
  • each unit may also be called a module, a component, or a circuit, etc. accordingly.
  • An embodiment of the present application provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium; the instructions are used to execute the methods shown in FIG. 4 to FIG. 12 .
  • Embodiments of the present application provide a computer program product including instructions, which, when executed on a communication device, cause the communication device to execute the methods shown in FIG. 4 to FIG. 12 .
  • the processors in the embodiments of the present application may include, but are not limited to, at least one of the following: a central processing unit (CPU), a microprocessor, a digital signal processor (DSP), a microcontroller (MCU) ), or artificial intelligence processors and other types of computing devices that run software, each computing device may include one or more cores for executing software instructions to perform operations or processing.
  • the processor can be a separate semiconductor chip, or can be integrated with other circuits into a semiconductor chip. For example, it can form a SoC (on-chip) with other circuits (such as codec circuits, hardware acceleration circuits, or various bus and interface circuits).
  • the processor may further include necessary hardware accelerators, such as field programmable gate arrays (FPGA), PLDs (Programmable Logic Devices) , or a logic circuit that implements dedicated logic operations.
  • FPGA field programmable gate arrays
  • PLD Programmable Logic Devices
  • the memory in this embodiment of the present application may include at least one of the following types: read-only memory (ROM) or other types of static storage devices that can store static information and instructions, random access memory (random access memory) , RAM) or other types of dynamic storage devices that can store information and instructions, and can also be electrically erasable programmable-only memory (EEPROM).
  • ROM read-only memory
  • RAM random access memory
  • EEPROM electrically erasable programmable-only memory
  • the memory may also be compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compact disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.) , a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, without limitation.
  • At least one means one or more.
  • “Plural” means two or more.
  • the character “/” generally indicates that the associated objects are an “or” relationship.
  • At least one item(s) below” or similar expressions thereof refer to any combination of these items, including any combination of single item(s) or plural items(s).
  • At least one item (a) of a, b, or c may represent: a, b, c, ab, ac, bc, or abc, where a, b, and c may be single or multiple .
  • words such as “first” and “second” are used to distinguish the same items or similar items with basically the same function and effect. Those skilled in the art can understand that the words “first”, “second” and the like do not limit the quantity and execution order, and the words “first”, “second” and the like are not necessarily different.
  • the disclosed apparatus and method for accessing a database may be implemented in other manners.
  • the embodiments of the database access apparatus described above are only illustrative.
  • the division of the modules or units is only a logical function division.
  • the shown or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection of database access devices or units through some interfaces, which may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place, or may be distributed to multiple different places . Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a readable storage medium.
  • the technical solutions of the embodiments of the present application can be embodied in the form of software products in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, which are stored in a storage medium , including several instructions to make a device (which may be a single chip microcomputer, a chip, etc.) or a processor to execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage medium includes: a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk and other mediums that can store program codes.

Landscapes

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

Abstract

Embodiments of the present application relate to the field of communications, and provide a link management method and a communication apparatus, capable of automatically and dynamically managing a physical link aggregation group to maximize utilization of a bandwidth. The method comprises: a first device obtains a transmission delay of a first link in a physical link aggregation group; the first device communicates with a second device by means of the first link; and the first device activates the first link or deactivates the first link according to the transmission delay.

Description

一种链路管理方法及通信装置A link management method and communication device
本申请要求于2020年7月23日提交中国国家知识产权局、申请号为202010717287.5、申请名称为“一种链路管理方法及通信装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202010717287.5 and the application title "A Link Management Method and Communication Device" filed with the State Intellectual Property Office of China on July 23, 2020, the entire contents of which are incorporated by reference in this application.
技术领域technical field
本申请实施例涉及通信领域,尤其涉及一种链路管理方法及通信装置。The embodiments of the present application relate to the field of communication, and in particular, to a link management method and a communication device.
背景技术Background technique
目前,收发双方之间的单条物理链路能够传输的数据量有限,为了提高数据传输量,可以将多条物理链路进行聚合(捆绑),提供一个较大的信息传输通道。通过聚合后的链路传输业务报文时,发送端需要对业务报文进行切片,然后分发到各个链路上进行传输。接收端需要对接收到的切片报文进行缓存,等待一个业务报文的所有切片报文到达后,根据所有的切片报文重组业务报文。Currently, the amount of data that can be transmitted by a single physical link between the sender and the receiver is limited. In order to increase the amount of data transmission, multiple physical links can be aggregated (bundled) to provide a larger information transmission channel. When transmitting service packets through the aggregated links, the sender needs to slice the service packets and distribute them to each link for transmission. The receiving end needs to buffer the received sliced packets, wait for all sliced packets of a service packet to arrive, and then reassemble the service packets according to all the sliced packets.
目前,由人工根据发布的链路信息(例如,链路的传输时延)来规划链路的聚合,并且按照最恶劣的场景来规划,限制了绑定范围,无法最大化利用带宽。Currently, link aggregation is manually planned according to published link information (eg, link transmission delay), and planning is performed according to the worst scenario, which limits the binding range and cannot maximize bandwidth utilization.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供了一种链路管理方法及通信装置,能够根据链路实时的传输时延对物理链路聚合组进行自动化、动态管理,以最大化利用带宽。Embodiments of the present application provide a link management method and a communication device, which can automatically and dynamically manage a physical link aggregation group according to the real-time transmission delay of the link, so as to maximize bandwidth utilization.
第一方面,提供了一种链路管理方法,包括:第一设备获取物理链路聚合组中第一链路的传输时延;所述第一设备通过所述第一链路与第二设备进行通信;所述第一设备根据所述传输时延激活所述第一链路或去激活所述第一链路。A first aspect provides a link management method, including: a first device obtains a transmission delay of a first link in a physical link aggregation group; the first device communicates with a second device through the first link performing communication; the first device activates the first link or deactivates the first link according to the transmission delay.
本申请中,第一设备可以获取物理链路聚合组中第一链路的传输时延,还可以根据所述传输时延激活所述第一链路或去激活所述第一链路,对物理链路聚合组的成员进行动态管理。链路的传输时延是随着链路的带宽动态变化的,现有技术由人工根据已发布的链路传输时延规划物理聚合组,因此在链路传输时延发生变化时,现有技术无法根据链路实时的传输时延及时对物理链路聚合的成员进行激活或去激活。本申请提供的方法能够在保证物理链路聚合组正常工作的同时,参考链路实时的传输时延对物理链路聚合组进行自动化、动态管理,例如,当物理链路的带宽变小,传输时延变大,可能影响物理链路组的正常工作,可以摘除(去激活)该链路,最大化地利用带宽。In this application, the first device can obtain the transmission delay of the first link in the physical link aggregation group, and can also activate the first link or deactivate the first link according to the transmission delay. The members of the physical link aggregation group are dynamically managed. The transmission delay of the link changes dynamically with the bandwidth of the link. In the prior art, the physical aggregation group is manually planned according to the published transmission delay of the link. Therefore, when the transmission delay of the link changes, the prior art The members of the physical link aggregation cannot be activated or deactivated in time according to the real-time transmission delay of the link. The method provided by the present application can automatically and dynamically manage the physical link aggregation group with reference to the real-time transmission delay of the link while ensuring the normal operation of the physical link aggregation group. When the delay becomes larger, the normal operation of the physical link group may be affected. The link can be removed (deactivated) to maximize the use of bandwidth.
结合第一方面,在第一方面的第一种可能的实现方式中,所述第一设备获取物理链路聚合组中第一链路的传输时延,包括:所述第一设备通过所述第一链路接收所述第二设备发送的第一报文,所述第一报文包括第一时间信息,所述第一时间信息用于指示所述第二设备发送所述第一报文的时间;所述第一设备根据所述第一时间信息以及所述第一设备接收所述第一报文的时间确定所述第一链路的传输时延。With reference to the first aspect, in a first possible implementation manner of the first aspect, the obtaining, by the first device, the transmission delay of the first link in the physical link aggregation group includes: the first device passing the The first link receives a first packet sent by the second device, where the first packet includes first time information, where the first time information is used to instruct the second device to send the first packet time; the first device determines the transmission delay of the first link according to the first time information and the time when the first device receives the first packet.
本申请中,第一报文可以是DMM。若第一设备与第二设备时间同步,可以根据第二设 备发送DMM的时间以及第一设备接收DMM的时间计算第一链路的传输时延。In this application, the first message may be a DMM. If the time of the first device and the second device is synchronized, the transmission delay of the first link can be calculated according to the time when the second device sends the DMM and the time when the first device receives the DMM.
结合第一方面,在第一方面的第二种可能的实现方式中所述第一设备获取物理链路聚合组中第一链路的传输时延,包括:所述第一设备通过所述第一链路向所述第二设备发送第二报文,所述第二报文包括第二时间信息,所述第二时间信息用于指示所述第一设备发送所述第二报文的时间;所述第一设备通过所述第一链路接收所述第二设备发送的第三报文,所述第三报文包括第三时间信息以及第四时间信息;所述第三时间信息用于指示所述第二设备接收所述第二报文的时间,所述第四时间信息用于指示所述第二设备发送所述第三报文的时间;所述第一设备根据所述第二时间信息、所述第三时间信息、所述第四时间信息以及所述第一设备接收所述第三报文的时间确定所述第一链路的传输时延。With reference to the first aspect, in a second possible implementation manner of the first aspect, the first device acquiring the transmission delay of the first link in the physical link aggregation group includes: A link sends a second packet to the second device, where the second packet includes second time information, where the second time information is used to indicate the time when the first device sends the second packet ; the first device receives the third message sent by the second device through the first link, and the third message includes the third time information and the fourth time information; the third time information uses In order to indicate the time when the second device receives the second packet, the fourth time information is used to indicate the time when the second device sends the third packet; The second time information, the third time information, the fourth time information, and the time when the first device receives the third packet determines the transmission delay of the first link.
本申请中,第二报文可以是DMM,第三报文可以是DMR。若第一设备与第二设备时间不同步,可以根据第一设备发送DMM的时间、第二设备接收DMM的时间、第二设备发送DMR的时间以及第一设备接收DMR的时间计算第一链路的传输时延。In this application, the second message may be DMM, and the third message may be DMR. If the time of the first device and the second device are not synchronized, the first link can be calculated according to the time when the first device sends the DMM, the time when the second device receives the DMM, the time when the second device sends the DMR, and the time when the first device receives the DMR transmission delay.
结合第一方面或以上第一方面的任意一种可能的实现方式,在第一方面的第四种可能的实现方式中,所述第一设备根据所述时延信息激活所述第一链路或去激活所述第一链路,包括:所述第一设备确定所述第一链路的传输时延与第二链路的传输时延的差值大于或等于门限值,则去激活所述第一链路;所述第二链路为所述物理链路聚合组中传输时延最小的链路;所述第一设备确定所述第一链路的传输时延与所述第二链路的传输时延的差值小于所述门限值,则激活所述第一链路。其中,所述门限值是物理链路聚合组所能容忍的最大成员间传输时延差,所述最大成员间传输时延差指的是任意两条物理链路的传输时延差。With reference to the first aspect or any possible implementation manner of the above first aspect, in a fourth possible implementation manner of the first aspect, the first device activates the first link according to the delay information or deactivating the first link, comprising: determining, by the first device, that the difference between the transmission delay of the first link and the transmission delay of the second link is greater than or equal to a threshold value, then deactivating the first link; the second link is the link with the smallest transmission delay in the physical link aggregation group; the first device determines the transmission delay of the first link and the first link The difference between the transmission delays of the two links is less than the threshold value, and the first link is activated. The threshold value is the maximum transmission delay difference between members that the physical link aggregation group can tolerate, and the maximum transmission delay difference between members refers to the transmission delay difference between any two physical links.
本申请中,根据物理链路实时的传输时延对链路进行激活或去激活以后,还需要保证物理链路聚合组能够正常工作。假设物理链路聚合组中第二链路的传输时延最小,物理链路聚合组的正常工作需要满足的条件是:物理链路聚合组中任一物理链路的传输时延与第二链路的传输时延差值小于物理链路聚合组所能容忍的最大成员间传输时延差。因此,当第一链路与第二链路的传输时延的差值大于或等于门限值时,去激活第一链路,当第一链路与第二链路的传输时延的差值小于门限值时,激活第一链路。基于物理链路实时的传输时延实现对物理链路聚合组的动态管理,在保证物理链路聚合组正常工作的同时,最大化地利用带宽。In this application, after the link is activated or deactivated according to the real-time transmission delay of the physical link, it is also necessary to ensure that the physical link aggregation group can work normally. Assuming that the transmission delay of the second link in the physical link aggregation group is the smallest, the normal operation of the physical link aggregation group needs to meet the following conditions: the transmission delay of any physical link in the physical link aggregation group is the same as that of the second link. The transmission delay difference of the channel is less than the maximum transmission delay difference between members that the physical link aggregation group can tolerate. Therefore, when the difference between the transmission delays of the first link and the second link is greater than or equal to the threshold value, the first link is deactivated, and when the difference between the transmission delays of the first link and the second link is When the value is less than the threshold value, the first link is activated. Based on the real-time transmission delay of the physical link, the dynamic management of the physical link aggregation group is realized, and the bandwidth is maximized while ensuring the normal operation of the physical link aggregation group.
结合第一方面或以上第一方面的任意一种可能的实现方式,在第一方面的第五种可能的实现方式中,所述第一设备根据所述时延信息激活所述第一链路,包括:激活所述第一链路在所述第一设备的接收功能;向所述第二设备发送第一消息,所述第一消息表征所述第一链路在所述第一设备的接收功能已激活;从所述第二设备接收第二消息,所述第二消息表征所述第一链路在所述第二设备的接收功能已激活;根据所述第二消息激活所述第一链路在所述第一设备的发送功能。With reference to the first aspect or any possible implementation manner of the above first aspect, in a fifth possible implementation manner of the first aspect, the first device activates the first link according to the delay information , comprising: activating the receiving function of the first link in the first device; sending a first message to the second device, the first message representing that the first link is in the first device The reception function has been activated; a second message is received from the second device, the second message represents that the reception function of the first link at the second device has been activated; the first link is activated according to the second message. A link in the transmit function of the first device.
本申请中,第一设备先激活本端的接收功能,可以保证在激活链路过程中本端不会丢失来自对端的报文,实现无损的激活。In the present application, the first device first activates the receiving function of the local end, which can ensure that the local end will not lose the packets from the opposite end during the link activation process, thereby realizing lossless activation.
结合第一方面或以上第一方面的任意一种可能的实现方式,所述第一设备根据所述时延信息去激活所述第一链路,包括:去激活所述第一链路在所述第一设备的发送功能;向所述第二设备发送第三消息,所述第三消息表征所述第一链路在所述第一设备的发送功能已去激活;从所述第二设备接收第四消息,所述第四消息表征所述第一链路在所述第二设备的发送功能已去激活;根据所述第四消息去激活所述第一链路在所述第一设备的接收功能。With reference to the first aspect or any possible implementation manner of the above first aspect, the first device deactivating the first link according to the delay information includes: deactivating the first link in the the sending function of the first device; sending a third message to the second device, the third message representing that the sending function of the first link in the first device has been deactivated; from the second device receiving a fourth message, the fourth message representing that the sending function of the first link on the second device has been deactivated; deactivating the first link on the first device according to the fourth message receive function.
本申请中,先去激活本端的发送功能,再去激活对端的接收功能,可以保证在链路去激 活过程中,对端不会丢失来自本端的报文,实现无损的去激活。In this application, first deactivating the sending function of the local end, and then deactivating the receiving function of the opposite end, can ensure that during the link deactivation process, the opposite end will not lose the packets from the local end, and achieve lossless deactivation.
第二方面,提供了一种通信装置,所述通信装置可以是第一设备或第一设备中的部件。包括:处理单元,用于获取物理链路聚合组中第一链路的传输时延;所述第一设备通过所述第一链路与第二设备进行通信;所述处理单元还用于,根据所述传输时延激活所述第一链路或去激活所述第一链路。In a second aspect, a communication apparatus is provided, and the communication apparatus may be a first device or a component in the first device. It includes: a processing unit, configured to obtain the transmission delay of the first link in the physical link aggregation group; the first device communicates with the second device through the first link; the processing unit is further configured to: The first link is activated or deactivated according to the transmission delay.
结合第二方面,在第二方面的第一种可能的实现方式中,所述通信装置还包括通信单元,所述通信单元用于,通过所述第一链路接收所述第二设备发送的第一报文,所述第一报文包括第一时间信息,所述第一时间信息用于指示所述第二设备发送所述第一报文的时间;所述处理单元具体用于,根据所述第一时间信息以及所述第一设备接收所述第一报文的时间确定所述第一链路的传输时延。With reference to the second aspect, in a first possible implementation manner of the second aspect, the communication apparatus further includes a communication unit, where the communication unit is configured to receive the data sent by the second device through the first link a first packet, where the first packet includes first time information, where the first time information is used to indicate the time when the second device sends the first packet; the processing unit is specifically configured to: The first time information and the time when the first device receives the first packet determines the transmission delay of the first link.
结合第二方面,在第二方面的第二种可能的实现方式中,所述通信装置还包括通信单元,所述通信单元用于,通过所述第一链路向所述第二设备发送第二报文,所述第二报文包括第二时间信息,所述第二时间信息用于指示所述第一设备发送所述第二报文的时间;所述通信单元还用于,通过所述第一链路接收所述第二设备发送的第三报文,所述第三报文包括第三时间信息以及第四时间信息;所述第三时间信息用于指示所述第二设备接收所述第二报文的时间,所述第四时间信息用于指示所述第二设备发送所述第三报文的时间;所述处理单元具体用于,根据所述第二时间信息、所述第三时间信息、所述第四时间信息以及所述第一设备接收所述第三报文的时间确定所述第一链路的传输时延。With reference to the second aspect, in a second possible implementation manner of the second aspect, the communication apparatus further includes a communication unit, where the communication unit is configured to send the first link to the second device through the first link two packets, the second packet includes second time information, and the second time information is used to indicate the time when the first device sends the second packet; the communication unit is further configured to: The first link receives a third packet sent by the second device, where the third packet includes third time information and fourth time information; the third time information is used to instruct the second device to receive The time of the second packet, and the fourth time information is used to indicate the time when the second device sends the third packet; the processing unit is specifically configured to: The third time information, the fourth time information, and the time when the first device receives the third packet determines the transmission delay of the first link.
结合第二方面或以上第二方面的任意一种可能的实现方式,在第二方面的第三种可能的实现方式中,所述处理单元具体用于,确定所述第一链路的传输时延与第二链路的传输时延的差值大于或等于门限值,则去激活所述第一链路;所述第二链路为所述物理链路聚合组中传输时延最小的链路;确定所述第一链路的传输时延与所述第二链路的传输时延的差值小于所述门限值,则激活所述第一链路。With reference to the second aspect or any possible implementation manner of the above second aspect, in a third possible implementation manner of the second aspect, the processing unit is specifically configured to: If the difference between the delay and the transmission delay of the second link is greater than or equal to the threshold value, the first link is deactivated; the second link is the one with the smallest transmission delay in the physical link aggregation group link; it is determined that the difference between the transmission delay of the first link and the transmission delay of the second link is less than the threshold value, then activate the first link.
结合第二方面或以上第二方面的任意一种可能的实现方式,在第二方面的第四种可能的实现方式中,所述处理单元用于,激活所述第一链路在所述第一设备的接收功能;通信单元用于,向所述第二设备发送第一消息,从所述第二设备接收第二消息;所述第一消息表征所述第一链路在所述第一设备的接收功能已激活,所述第二消息表征所述第一链路在所述第二设备的接收功能已激活;所述处理单元还用于,根据所述第二消息激活所述第一链路在所述第一设备的发送功能。With reference to the second aspect or any possible implementation manner of the above second aspect, in a fourth possible implementation manner of the second aspect, the processing unit is configured to activate the first link in the first link. A receiving function of a device; the communication unit is configured to send a first message to the second device, and receive a second message from the second device; the first message represents that the first link is in the first The receiving function of the device has been activated, and the second message indicates that the receiving function of the first link in the second device has been activated; the processing unit is further configured to activate the first link according to the second message The sending function of the link at the first device.
结合第二方面或以上第二方面的任意一种可能的实现方式,在第二方面的第五种可能的实现方式中,所述处理单元用于,去激活所述第一链路在所述第一设备的发送功能;通信单元用于,向所述第二设备发送第三消息,从所述第二设备接收第四消息;所述第三消息表征所述第一链路在所述第一设备的发送功能已去激活,所述第四消息表征所述第一链路在所述第二设备的发送功能已去激活;所述处理单元还用于,根据所述第四消息去激活所述第一链路在所述第一设备的接收功能。With reference to the second aspect or any possible implementation manner of the above second aspect, in a fifth possible implementation manner of the second aspect, the processing unit is configured to deactivate the first link in the The sending function of the first device; the communication unit is configured to send a third message to the second device, and receive a fourth message from the second device; the third message represents that the first link is in the first link The sending function of a device has been deactivated, and the fourth message indicates that the sending function of the first link in the second device has been deactivated; the processing unit is further configured to deactivate according to the fourth message The receive function of the first link at the first device.
第三方面,提供了一种通信装置,包括至少一个处理器和存储器,所述至少一个处理器与所述存储器耦合;所述存储器,用于存储计算机程序;In a third aspect, a communication device is provided, comprising at least one processor and a memory, the at least one processor is coupled to the memory; the memory is used to store a computer program;
所述至少一个处理器,用于执行所述存储器中存储的计算机程序,以使得所述装置执行如上述第一方面以及第一方面任意一种实现方式所述的方法。The at least one processor is configured to execute a computer program stored in the memory, so that the apparatus executes the method according to the first aspect and any one of the implementation manners of the first aspect.
第四方面,提供了一种计算机可读存储介质,包括:计算机可读存储介质中存储有指令; 当计算机可读存储介质在上述第二方面以及第二方面任意一种实现方式所述的通信装置上运行时,使得通信装置执行如上述第一方面以及第一方面任意一种实现方式所述的通信方法。In a fourth aspect, a computer-readable storage medium is provided, comprising: instructions stored in the computer-readable storage medium; When running on the device, the communication device is caused to execute the communication method described in the first aspect and any one of the implementation manners of the first aspect.
第五方面,提供了一种无线通信装置,该通信装置包括处理器,例如,应用于通信装置中,用于实现上述第一方面以及第一方面任意一种实现方式所述的方法,该通信装置例如可以是芯片系统。在一种可行的实现方式中,所述芯片系统还包括存储器,所述存储器,用于保存实现上述第一方面所述方法的功能必要的程序指令和数据。A fifth aspect provides a wireless communication device, the communication device includes a processor, for example, applied to a communication device, for implementing the method described in the first aspect and any implementation manner of the first aspect, the communication device The device may be, for example, a system-on-chip. In a feasible implementation manner, the chip system further includes a memory, and the memory is used for storing necessary program instructions and data to implement the functions of the method in the first aspect.
上述方面中的芯片系统可以是片上系统(system on chip,SOC),也可以是基带芯片等,其中基带芯片可以包括处理器、信道编码器、数字信号处理器、调制解调器和接口模块等。The chip system in the above aspects may be a system on chip (system on chip, SOC), or a baseband chip, etc., where the baseband chip may include a processor, a channel encoder, a digital signal processor, a modem, an interface module, and the like.
第六方面,提供了一种通信系统,所述通信系统包括上述第二方面、第二方面任意一种可能的实现方式所述的第一设备、上述任意一种实现方式所述的第二设备。In a sixth aspect, a communication system is provided, and the communication system includes the first device described in the second aspect, any possible implementation manner of the second aspect, and the second device described in any of the foregoing implementation manners. .
附图说明Description of drawings
图1为本申请实施例提供的通信系统的架构图;FIG. 1 is an architectural diagram of a communication system provided by an embodiment of the present application;
图2为本申请实施例提供的链路聚合示意图;FIG. 2 is a schematic diagram of link aggregation provided by an embodiment of the present application;
图3为本申请实施例提供的通信装置的结构框图;FIG. 3 is a structural block diagram of a communication device provided by an embodiment of the present application;
图4为本申请实施例提供的链路管理方法的流程示意图;4 is a schematic flowchart of a link management method provided by an embodiment of the present application;
图5为本申请实施例提供的时延测量流程的示意图;FIG. 5 is a schematic diagram of a delay measurement process provided by an embodiment of the present application;
图6为本申请实施例提供的时延测量流程的另一示意图;FIG. 6 is another schematic diagram of a delay measurement process provided by an embodiment of the present application;
图7为本申请实施例提供的时延带宽示意图;FIG. 7 is a schematic diagram of a delay bandwidth provided by an embodiment of the present application;
图8为本申请实施例提供的链路激活示意图;FIG. 8 is a schematic diagram of link activation provided by an embodiment of the present application;
图9为本申请实施例提供的链路去激活示意图;FIG. 9 is a schematic diagram of link deactivation provided by an embodiment of the present application;
图10为本申请实施例提供的链路管理方法的另一流程示意图;10 is another schematic flowchart of a link management method provided by an embodiment of the present application;
图11为本申请实施例提供的通信装置的另一结构框图;FIG. 11 is another structural block diagram of a communication device provided by an embodiment of the present application;
图12为本申请实施例提供的通信装置的另一结构框图。FIG. 12 is another structural block diagram of a communication apparatus provided by an embodiment of the present application.
具体实施方式detailed description
图1给出了本申请提供的技术方案所适用的一种通信系统的示意图,该通信系统可以包括多个通信设备(图中示出了通信设备100以及通信设备200)。图1仅为示意图,并不构成对本申请提供的技术方案的适用场景的限定。通信设备100和通信设备200之间可以通过链路1、链路2…链路N进行通信。其中,通信设备100和通信设备200之间的链路可以是以太链路、微波链路、光传送网(optical transport network,OTN)链路等,链路的工作频段可以是常规频段或增强(E-BAND)频段。其中,常规频段可以是频率大于或者等于7G,且频率小于或等于38G的频段;增强频段可以是频率大于或者等于71G,且频率小于或等于86G的频段。FIG. 1 is a schematic diagram of a communication system to which the technical solution provided by the present application is applied, and the communication system may include multiple communication devices (a communication device 100 and a communication device 200 are shown in the figure). FIG. 1 is only a schematic diagram, and does not constitute a limitation on the applicable scenarios of the technical solutions provided in the present application. Communication between the communication device 100 and the communication device 200 can be performed through link 1, link 2 . . . link N. The link between the communication device 100 and the communication device 200 may be an Ethernet link, a microwave link, an optical transport network (OTN) link, etc., and the working frequency band of the link may be a conventional frequency band or an enhanced ( E-BAND) band. Among them, the regular frequency band can be a frequency band with a frequency greater than or equal to 7G and a frequency less than or equal to 38G; the enhanced frequency band can be a frequency band with a frequency greater than or equal to 71G and a frequency less than or equal to 86G.
单条链路传输的数据大小有限,为了提高通信性能,可以将通信设备之间的链路进行聚合(或捆绑),提供一个较大的传输通道。可以理解的是,物理链路的聚合在发送端、接收端是同步的。示例的,参考图2,通信设备100将链路1、链路2…链路N聚合,通信设备200也同样将链路1、链路2…链路N聚合。The data size transmitted by a single link is limited. In order to improve communication performance, links between communication devices can be aggregated (or bundled) to provide a larger transmission channel. It can be understood that the aggregation of physical links is synchronized at the sender and receiver. For example, referring to FIG. 2 , the communication device 100 aggregates link 1 , link 2 . . . link N, and the communication device 200 also aggregates link 1 , link 2 . . . link N similarly.
在物理链路聚合场景下,发送端对业务报文进行切片,通过参与聚合的链路传输切片报 文,接收端对接收到的切片报文进行重组,获得业务报文。例如,参考图2,通信设备100对业务报文进行切片,获得切片报文1、切片报文2…切片报文N,然后分别通过链路1、链路2…链路N传输切片报文1、切片报文2…切片报文N。通信设备200对接收到的切片报文进行排序,根据切片报文重组业务报文。In the physical link aggregation scenario, the sender slices service packets and transmits the sliced packets through the links participating in the aggregation. The receiver reassembles the received sliced packets to obtain service packets. For example, referring to FIG. 2 , the communication device 100 slices the service packet, obtains slice packet 1, slice packet 2... slice packet N, and then transmits the slice packet through link 1, link 2... link N respectively 1. Slice packet 2... Slice packet N. The communication device 200 sorts the received sliced packets, and reassembles the service packets according to the sliced packets.
本申请实施例中,将聚合的链路称为物理链路聚合组。物理链路聚合组包括的链路均为常规频段链路;或者,物理链路聚合组包括常规频段链路和增强频段链路;或者,物理链路聚合组包括的链路均为增强频段链路。In this embodiment of the present application, the aggregated links are referred to as physical link aggregation groups. The links included in the physical link aggregation group are all conventional frequency band links; or, the physical link aggregation group includes conventional frequency band links and enhanced frequency band links; or, the links included in the physical link aggregation group are all enhanced frequency band links road.
通信设备100、通信设备200可以是任意一种具有无线收发功能的设备。例如,可以是LTE中的演进型基站(E-UTRAN NodeB或e-NodeB或eNB),5G或新无线(new radio,NR)接入技术中的基站(gNodeB或gNB)或收发点(transmission/reception point,TRP),3GPP后续演进的基站,WiFi系统中的接入节点,无线中继节点,无线回传节点等。基站可以是:宏基站,微基站,微微基站,小站,中继站,或,气球站等。或者,可以是终端设备。所述终端设备可以部署在陆地上,包括室内或室外、手持、穿戴或车载;也可以部署在水面上(如轮船等);还可以部署在空中(例如飞机、气球和卫星上等)。所述终端设备可以是手机(mobile phone)、平板电脑(Pad)、带无线收发功能的电脑、虚拟现实(virtual reality,VR)终端设备、增强现实(augmented reality,AR)终端设备、工业控制(industrial control)中的无线终端、车载终端设备、无人驾驶(self-driving)中的无线终端、远程医疗(remote medical)中的无线终端、智能电网(smart grid)中的无线终端、运输安全(transportation safety)中的无线终端、智慧城市(smart city)中的无线终端、智慧家庭(smart home)中的无线终端、可穿戴终端设备等等。本申请的实施例对应用场景不做限定。终端有时也可以称为终端设备、用户设备(user equipment,UE)、接入终端设备、车载终端、工业控制终端、UE单元、UE站、移动站、移动台、远方站、远程终端设备、移动设备、UE终端设备、终端设备、无线通信设备、UE代理或UE装置等。终端也可以是固定的或者移动的。本申请的终端设备还可以是作为一个或多个部件或者单元而内置于车辆的车载模块、车载模组、车载部件、车载芯片或者车载单元,车辆通过内置的所述车载模块、车载模组、车载部件、车载芯片或者车载单元可以实施本申请的方法。The communication device 100 and the communication device 200 may be any device having a wireless transceiver function. For example, it can be an evolved base station (E-UTRAN NodeB or e-NodeB or eNB) in LTE, a base station (gNodeB or gNB) or a transmit/receive point in 5G or new radio (NR) access technology reception point, TRP), base station for subsequent evolution of 3GPP, access node in WiFi system, wireless relay node, wireless backhaul node, etc. The base station can be: a macro base station, a micro base station, a pico base station, a small base station, a relay station, or a balloon station, etc. Alternatively, it can be a terminal device. The terminal equipment can be deployed on land, including indoor or outdoor, handheld, wearable or vehicle-mounted; it can also be deployed on water (such as ships, etc.); it can also be deployed in the air (such as planes, balloons, satellites, etc.). The terminal device may be a mobile phone (mobile phone), a tablet computer (Pad), a computer with wireless transceiver function, a virtual reality (virtual reality, VR) terminal device, an augmented reality (augmented reality, AR) terminal device, industrial control ( wireless terminals in industrial control, in-vehicle terminal equipment, wireless terminals in self-driving, wireless terminals in remote medical, wireless terminals in smart grid, transportation security ( Wireless terminals in transportation safety), wireless terminals in smart cities, wireless terminals in smart homes, wearable terminal devices, etc. The embodiments of the present application do not limit application scenarios. A terminal may also sometimes be referred to as terminal equipment, user equipment (UE), access terminal equipment, vehicle-mounted terminal, industrial control terminal, UE unit, UE station, mobile station, mobile station, remote station, remote terminal equipment, mobile equipment, UE terminal equipment, terminal equipment, wireless communication equipment, UE proxy or UE device, etc. Terminals can also be stationary or mobile. The terminal device of the present application may also be an on-board module, on-board module, on-board component, on-board chip or on-board unit built into the vehicle as one or more components or units. An on-board component, on-board chip or on-board unit may implement the method of the present application.
首先,对本申请实施例涉及的术语进行解释说明:First, the terms involved in the embodiments of the present application are explained:
(1)链路的传输时延(1) The transmission delay of the link
本申请实施例中,链路的传输时延指的是报文从发送端到接收端的传输时长。例如,收发双方时间同步,发送端在T1时刻发送报文,接收端在T2时刻接收报文。链路的传输时延为(T2-T1)。In this embodiment of the present application, the transmission delay of the link refers to the transmission time of the packet from the sender to the receiver. For example, the time of the sender and receiver is synchronized, the sender sends the message at time T1, and the receiver receives the message at time T2. The transmission delay of the link is (T2-T1).
(2)链路的状态(2) Status of the link
本申请实施例中,链路的状态包括激活、去激活。当激活链路,链路处于工作态,链路可以承载业务报文的切片报文;当去激活链路,链路处于非工作状态,链路不能承载业务报文的切片报文。In this embodiment of the present application, the state of the link includes activation and deactivation. When a link is activated and the link is in a working state, the link can carry sliced packets of service packets; when a link is deactivated, the link is in an inactive state and cannot carry sliced packets of service packets.
(3)物理链路聚合组(3) Physical link aggregation group
本申请实施例中,多条单独链路聚合在一起成为物理链路聚合组。通过物理链路聚合组的链路传输业务报文的切片报文,提高数据传输效率。In this embodiment of the present application, multiple individual links are aggregated together to form a physical link aggregation group. Sliced packets of service packets are transmitted through the links of the physical link aggregation group to improve data transmission efficiency.
(4)物理链路聚合组所能容忍的最大成员间传输时延差(4) The maximum transmission delay difference between members that the physical link aggregation group can tolerate
本申请实施例中,成员间传输时延差指的是物理链路聚合组中任意两条链路的传输时延 的差值。In this embodiment of the present application, the transmission delay difference between members refers to the difference between the transmission delays of any two links in the physical link aggregation group.
可以理解的是,设备的缓存能力是有限的,接收端需要在接收到所有切片报文后才能重组业务报文。若成员间传输时延差过大,不同切片报文到达接收端的时延差异过大,某些切片报文到达接收端时,接收端已无法缓存切片报文,则会导致接收端重组失败。因此,要保证接收端重组成功,就需要成员间传输时延差不能过大,本申请实施例中,将成员间传输时延差的上限称为物理链路聚合组所能容忍的最大成员间传输时延差,成员间传输时延差超过物理链路聚合组所能容忍的最大成员间传输时延差,物理链路聚合组则无法正常工作,出现重组失败等问题。It is understandable that the buffering capability of the device is limited, and the receiving end needs to receive all sliced packets before reassembling the service packets. If the transmission delay difference between members is too large, the delay of different slice packets arriving at the receiving end is too large. When some slice packets arrive at the receiving end, the receiving end cannot cache the slice packets, which will cause the receiving end to fail to reorganize. Therefore, to ensure the successful reorganization of the receiving end, it is necessary that the transmission delay difference between members should not be too large. In this embodiment of the present application, the upper limit of the transmission delay difference between members is referred to as the maximum inter-member that the physical link aggregation group can tolerate. The transmission delay difference between members exceeds the maximum transmission delay difference between members that the physical link aggregation group can tolerate. The physical link aggregation group cannot work normally, and reorganization fails.
目前,由人工根据资料说明来规划物理链路聚合组,往往根据最恶劣的场景来规划,限制了规划范围,无法最大化利用带宽。例如,为了保障在最恶劣的场景下物理链路聚合组仍然可以正常工作,绑定的链路数量受到一定限制,或者,链路的带宽也受到一定限制。此外,现有技术一旦完成规划后,无法对物理链路聚合组进行实时、动态的管理。例如,当物理链路聚合组中某条链路的传输时延变大,可能导致接收端重组切片报文失败,出现丢包等异常问题,并且无法进行自愈,上述异常问题会持续存在。Currently, physical link aggregation groups are planned manually based on data descriptions, often based on the worst scenario, which limits the planning scope and fails to maximize bandwidth utilization. For example, in order to ensure that the physical link aggregation group can still work normally in the worst scenario, the number of bound links is limited, or the bandwidth of the links is also limited. In addition, once the planning is completed in the prior art, the physical link aggregation group cannot be managed in real time and dynamically. For example, when the transmission delay of a link in a physical link aggregation group increases, the receiver may fail to reassemble the sliced packets, resulting in abnormal problems such as packet loss, and self-healing cannot be performed. The above abnormal problems will persist.
本申请实施例提供一种链路管理方法,第一设备可以获取物理链路聚合组中第一链路的传输时延,还可以根据所述传输时延激活所述第一链路或去激活所述第一链路。可见能够参考链路的传输时延对物理链路聚合组进行自动化、动态管理。本申请提供的方法能够在保证物理链路聚合组正常工作的同时,参考物理链路实时的传输时延对物理链路聚合组进行自动化、动态管理。例如,当物理链路的带宽变小,传输时延变大,可能影响物理链路组的正常工作,可以摘除(去激活)该链路,最大化地利用带宽。或者,物理链路的带宽变大,传输时延变小,在保证物理链路聚合组正常工作的前提下,可以激活该链路,最大化地利用带宽。An embodiment of the present application provides a link management method. A first device can acquire the transmission delay of a first link in a physical link aggregation group, and can also activate or deactivate the first link according to the transmission delay. the first link. It can be seen that the physical link aggregation group can be automatically and dynamically managed with reference to the transmission delay of the link. The method provided by the present application can automatically and dynamically manage the physical link aggregation group with reference to the real-time transmission delay of the physical link while ensuring the normal operation of the physical link aggregation group. For example, when the bandwidth of the physical link becomes smaller and the transmission delay becomes larger, which may affect the normal operation of the physical link group, the link can be removed (deactivated) to maximize the utilization of the bandwidth. Alternatively, the bandwidth of the physical link becomes larger and the transmission delay becomes smaller. On the premise of ensuring the normal operation of the physical link aggregation group, the link can be activated to maximize the utilization of the bandwidth.
本申请实施例提供的方法适用于图3所示的装置20,所述装置可以是本申请实施例所述的第一设备或第二设备,例如,可以是集成第一无线控制器的网元,或集成第二无线控制器的网元。图3所示为装置20的硬件结构示意图。装置20可以部署在计算设备上,也可以是本申请实施例所述的计算设备。参考图3,装置20包括处理器201、存储器202以及至少一个网络接口(图3中仅是示例性的以包括网络接口203为例进行说明)。其中,处理器201、存储器202以及网络接口203之间互相连接。The method provided in the embodiment of the present application is applicable to the apparatus 20 shown in FIG. 3 , and the apparatus may be the first device or the second device described in the embodiment of the present application, for example, may be a network element integrating the first wireless controller , or a network element integrating the second wireless controller. FIG. 3 is a schematic diagram of the hardware structure of the device 20 . The apparatus 20 may be deployed on a computing device, or may be the computing device described in the embodiments of the present application. Referring to FIG. 3 , the apparatus 20 includes a processor 201 , a memory 202 and at least one network interface (in FIG. 3 , the network interface 203 is used as an example for illustration only). The processor 201 , the memory 202 and the network interface 203 are connected to each other.
处理器201可以是一个通用中央处理器(central processing unit,CPU),微处理器,特定应用集成电路(application-specific integrated circuit,ASIC),或一个或多个用于控制本申请方案程序执行的集成电路。The processor 201 may be a general-purpose central processing unit (central processing unit, CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more processors for controlling the execution of the programs of the present application. integrated circuit.
网络接口203是装置20的接口,用于与其他设备或通信网络通信,如以太网,无线接入网(radio access network,RAN),无线局域网(wireless local area networks,WLAN)等。The network interface 203 is an interface of the device 20 for communicating with other devices or communication networks, such as Ethernet, radio access network (RAN), wireless local area networks (WLAN) and the like.
存储器202可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态数据中心,随机存取存储器(random access memory,RAM)或者可存储信息和指令的其他类型的动态数据中心,也可以是电可擦可编程只读存储器(electrically erasable programmable read-only memory,EEPROM)、只读光盘(compact disc read-only memory,CD-ROM)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁数据中心、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。存储器可以是独立存在,通过通信线路与处理器相连接。存储器也可以和处理器集成在一起。 Memory 202 may be read-only memory (ROM) or other types of static data centers that can store static information and instructions, random access memory (RAM), or other types of information and instructions It can also be electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disk storage, optical disk storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic data centers, or capable of carrying or storing desired program code in the form of instructions or data structures and capable of being executed by a computer Access any other medium without limitation. The memory may exist independently and be connected to the processor through a communication line. The memory can also be integrated with the processor.
其中,存储器202用于存储执行本申请方案的计算机执行指令,并由处理器201来控制执行。处理器201用于执行存储器202中存储的计算机执行指令,从而实现本申请下述实施例提供的意图处理方法。The memory 202 is used for storing computer-executed instructions for executing the solutions of the present application, and the execution is controlled by the processor 201 . The processor 201 is configured to execute the computer-executed instructions stored in the memory 202, thereby implementing the intent processing method provided by the following embodiments of the present application.
可选的,本申请实施例中的计算机执行指令也可以称之为应用程序代码,本申请实施例对此不作具体限定。Optionally, the computer-executed instructions in the embodiment of the present application may also be referred to as application code, which is not specifically limited in the embodiment of the present application.
在具体实现中,作为一种实施例,处理器201可以包括一个或多个CPU,例如图3中的CPU0和CPU1。In a specific implementation, as an embodiment, the processor 201 may include one or more CPUs, such as CPU0 and CPU1 in FIG. 3 .
在具体实现中,作为一种实施例,装置20可以包括多个处理器,例如图3中的处理器201和处理器204。这些处理器中的每一个可以是一个单核(single-CPU)处理器,也可以是一个多核(multi-CPU)处理器。这里的处理器可以指一个或多个设备、电路、和/或用于处理数据(例如计算机程序指令)的处理核。In a specific implementation, as an embodiment, the apparatus 20 may include multiple processors, such as the processor 201 and the processor 204 in FIG. 3 . Each of these processors can be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. A processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (eg, computer program instructions).
上述的装置20可以是一个通用设备或者是一个专用设备。在具体实现中,装置20可以是台式机、网络装置、嵌入式设备或其他有图3中类似结构的设备。本申请实施例不限定装置20的类型。The above-mentioned apparatus 20 may be a general-purpose device or a special-purpose device. In a specific implementation, the device 20 may be a desktop computer, a network device, an embedded device or other devices having a similar structure in FIG. 3 . The embodiment of the present application does not limit the type of the device 20 .
本申请实施例提供一种链路管理方法,如图4所示,所述方法包括以下步骤:An embodiment of the present application provides a link management method. As shown in FIG. 4 , the method includes the following steps:
401、第一设备获取物理链路聚合组中第一链路的传输时延。401. The first device acquires the transmission delay of the first link in the physical link aggregation group.
需要说明的是,所述第一设备可以通过多条链路与第二设备进行通信,为了提高传输带宽,可以将多条链路聚合成物理链路聚合组。第一设备还可以对业务报文进行切片,通过物理链路聚合组中的各个链路传输切片报文。It should be noted that the first device may communicate with the second device through multiple links, and in order to improve the transmission bandwidth, the multiple links may be aggregated into a physical link aggregation group. The first device may further slice the service packet, and transmit the sliced packet through each link in the physical link aggregation group.
具体实现中,第一设备可以通过物理链路聚合组的各个链路发送测量报文,测量链路的传输时延。一种可能的实现方式中,测量报文是周期性发送的。In a specific implementation, the first device may send a measurement packet through each link of the physical link aggregation group to measure the transmission delay of the link. In a possible implementation manner, the measurement packets are sent periodically.
本申请实施例中,区别于第一设备和第二设备是否进行时间同步,提供两种不同的传输时延测量方法,具体如下:In the embodiment of the present application, different from whether the first device and the second device perform time synchronization, two different transmission delay measurement methods are provided, which are as follows:
第一种、第一设备和第二设备时间同步,第一设备可以根据第二设备发送时延测量报文(delay measure message,DMM)的时间以及第一设备接收时延测量报文的时间确定物理链路的传输时延。In the first type, the time of the first device and the second device is synchronized, and the first device can determine the time according to the time when the second device sends a delay measurement message (DMM) and the time when the first device receives the delay measurement message. The transmission delay of the physical link.
以第一链路为例,所述第一设备通过所述第一链路接收所述第二设备发送的第一报文,所述第一报文包括第一时间信息,所述第一时间信息用于指示所述第二设备发送所述第一报文的时间。其中,所述第一报文可以是DMM。Taking the first link as an example, the first device receives a first packet sent by the second device through the first link, where the first packet includes first time information, the first time The information is used to indicate the time when the second device sends the first packet. Wherein, the first message may be DMM.
所述第一设备还可以根据所述第一时间信息以及所述第一设备接收所述第一报文的时间确定所述第一链路的传输时延。The first device may further determine the transmission delay of the first link according to the first time information and the time when the first device receives the first packet.
示例的,参考图5,第一设备通过第一链路发送第一DMM报文,第一DMM报文包括时间戳T1,T1为第一设备发送第一DMM报文的时间;5, the first device sends the first DMM packet through the first link, the first DMM packet includes a timestamp T1, and T1 is the time when the first device sends the first DMM packet;
第一设备还可以通过第一链路接收第二设备发送的第二DMM报文,第二DMM报文包括时间戳T2,T2为第二设备发送第二DMM报文的时间。The first device may also receive a second DMM packet sent by the second device through the first link, where the second DMM packet includes a time stamp T2, where T2 is the time when the second device sends the second DMM packet.
第一设备还可以根据接收第二DMM报文的时间T3以及T2确定第一链路的传输时延。具体的,传输时延为(T3-T2)。The first device may also determine the transmission delay of the first link according to the times T3 and T2 when the second DMM packet is received. Specifically, the transmission delay is (T3-T2).
第二设备可以根据接收第一DMM报文的时间T4以及T1确定第一链路的传输时延。具体的,传输时延为(T4-T1)。The second device may determine the transmission delay of the first link according to the times T4 and T1 when the first DMM packet is received. Specifically, the transmission delay is (T4-T1).
第二种、第一设备和第二设备时间未同步,第一设备可以根据第一设备发送时延测量报 文(DMM)的时间、第二设备接收时延测量报文的时间、第二设备发送时延测量响应(delay measure response,DMR)的时间以及第一设备接收DMR的时间确定物理链路的传输时延。In the second type, the time of the first device and the second device is not synchronized. The time for sending a delay measure response (DMR) and the time for the first device to receive the DMR determine the transmission delay of the physical link.
以第一链路为例,所述第一设备通过所述第一链路向所述第二设备发送第二报文,所述第二报文包括第二时间信息,所述第二时间信息用于指示所述第一设备发送所述第二报文的时间;其中,第二报文可以是DMM。Taking the first link as an example, the first device sends a second packet to the second device through the first link, where the second packet includes second time information, and the second time information It is used to indicate the time when the first device sends the second packet; wherein, the second packet may be DMM.
第二设备通过第一链路接收所述第二报文之后,还可以通过第一链路向第一设备发送第三报文。所述第三报文包括第三时间信息以及第四时间信息;所述第三时间信息用于指示所述第二设备接收所述第二报文的时间,所述第四时间信息用于指示所述第二设备发送所述第三报文的时间;其中,第三报文可以是DMR。After receiving the second packet through the first link, the second device may further send a third packet to the first device through the first link. The third packet includes third time information and fourth time information; the third time information is used to indicate the time when the second device receives the second packet, and the fourth time information is used to indicate The time when the second device sends the third packet, where the third packet may be a DMR.
所述第一设备通过所述第一链路接收所述第二设备发送的第三报文,从中获取第三时间信息以及第四时间信息。The first device receives the third packet sent by the second device through the first link, and acquires third time information and fourth time information therefrom.
所述第一设备还可以根据所述第二时间信息、所述第三时间信息、所述第四时间信息以及所述第一设备接收所述第三报文的时间确定所述第一链路的传输时延。The first device may further determine the first link according to the second time information, the third time information, the fourth time information, and the time when the first device receives the third packet transmission delay.
示例的,参考图6,第一设备通过第一链路向第二设备发送DMM报文,DMM报文包括时间戳T1,T1为第一设备发送DMM报文的时间;6, the first device sends a DMM packet to the second device through the first link, the DMM packet includes a timestamp T1, and T1 is the time when the first device sends the DMM packet;
第一设备通过第一链路接收第二设备发送的DMR报文,DMR报文包括时间戳T2、时间戳T3。T2为第二设备接收DMM报文的时间,T3为第二设备发送DMR报文的时间。The first device receives the DMR packet sent by the second device through the first link, where the DMR packet includes a timestamp T2 and a timestamp T3. T2 is the time when the second device receives the DMM packet, and T3 is the time when the second device sends the DMR packet.
第一设备可以根据T1、T2、T3以及第一设备接收DMR报文的时间T4确定第一链路的传输时延。具体的,第一链路的传输时延为[((T4-T1)-(T3-T2))/2]。The first device may determine the transmission delay of the first link according to T1, T2, T3 and the time T4 at which the first device receives the DMR packet. Specifically, the transmission delay of the first link is [((T4-T1)-(T3-T2))/2].
402、所述第一设备根据所述传输时延激活所述第一链路或去激活所述第一链路。402. The first device activates the first link or deactivates the first link according to the transmission delay.
参考图7,链路的带宽越小,链路的传输时延就越大;反之,链路的带宽越大,链路的传输时延就越小。为了最大化利用带宽,可以去激活带宽小的链路,即传输时延大的链路;或者,激活带宽大的链路,即传输时延小的链路。Referring to FIG. 7 , the smaller the bandwidth of the link, the larger the transmission delay of the link; conversely, the larger the bandwidth of the link, the smaller the transmission delay of the link. In order to maximize the utilization of the bandwidth, a link with a small bandwidth, that is, a link with a large transmission delay, can be deactivated; or, a link with a large bandwidth, that is, a link with a small transmission delay, can be activated.
具体的,可以遍历物理链路聚合组中的每一条链路,确定成员间传输时延差。一种可能的实现方式中,以物理链路聚合组中传输时延最小的链路为基准,计算其他链路的传输时延与该链路的传输时延的差值。例如,物理链路聚合组中第二链路的传输时延最小,基于第二链路的传输时延,计算物理链路聚合组中其他物理链路对应的成员间传输时延差。Specifically, each link in the physical link aggregation group may be traversed to determine the transmission delay difference between members. In a possible implementation manner, the link with the smallest transmission delay in the physical link aggregation group is used as a benchmark to calculate the difference between the transmission delay of other links and the transmission delay of this link. For example, the transmission delay of the second link in the physical link aggregation group is the smallest, and the transmission delay difference between members corresponding to other physical links in the physical link aggregation group is calculated based on the transmission delay of the second link.
若某条链路的传输时延与第二链路的传输时延的差值大于门限值,表明链路的传输时延过大,相应的,链路的带宽较小,为了最大化利用带宽,可以去激活这条链路。反之,如果某条链路的传输时延与第二链路的传输时延的差值小于门限值,表明该链路的传输时延较小,链路的带宽较大,为了最大化利用带宽,可以激活该链路。If the difference between the transmission delay of a link and the transmission delay of the second link is greater than the threshold value, it indicates that the transmission delay of the link is too large. Correspondingly, the bandwidth of the link is small. In order to maximize the utilization bandwidth, you can deactivate this link. Conversely, if the difference between the transmission delay of a link and the transmission delay of the second link is less than the threshold value, it indicates that the transmission delay of the link is small and the bandwidth of the link is large. bandwidth, the link can be activated.
若链路的传输时延与第二链路的传输时延的差值等于所述门限值,可以去激活这条链路,或者,激活这条链路,本申请实施例对此不做限制。If the difference between the transmission delay of the link and the transmission delay of the second link is equal to the threshold value, the link may be deactivated, or the link may be activated, which is not done in this embodiment of the present application limit.
需要说明的是,所述门限值可以是物理链路聚合组所能容忍的最大成员间传输时延差。每个设备缓存能力是有限的,为了支持物理链路聚合组的正常工作,物理链路聚合组所能容忍的最大成员间传输时延差D满足如下关系:B*A>C*D。其中,C为物理链路聚合组的容量,即物理链路聚合组包括的链路的带宽总和;B为设备的缓存大小;A为设备的缓存利用率。It should be noted that the threshold value may be the maximum transmission delay difference between members that the physical link aggregation group can tolerate. The buffer capacity of each device is limited. In order to support the normal operation of the physical link aggregation group, the maximum transmission delay difference D between members that the physical link aggregation group can tolerate satisfies the following relationship: B*A>C*D. Among them, C is the capacity of the physical link aggregation group, that is, the total bandwidth of the links included in the physical link aggregation group; B is the cache size of the device; A is the cache utilization rate of the device.
以第一链路为例,所述第一设备确定所述第一链路的传输时延与第二链路的传输时延的差值大于或等于门限值,表明第一链路的传输时延较大,第一链路的带宽较小,可以去激活 所述第一链路,以最大化利用带宽。Taking the first link as an example, the first device determines that the difference between the transmission delay of the first link and the transmission delay of the second link is greater than or equal to the threshold value, indicating that the transmission delay of the first link If the delay is large, the bandwidth of the first link is small, and the first link can be deactivated to maximize the utilization of the bandwidth.
若所述第一设备确定所述第一链路的传输时延与所述第二链路的传输时延的差值小于所述门限值,表明第一链路的传输时延较小,第一链路的带宽较大,可以激活所述第一链路,以最大化利用带宽。If the first device determines that the difference between the transmission delay of the first link and the transmission delay of the second link is less than the threshold value, it indicates that the transmission delay of the first link is relatively small, The bandwidth of the first link is relatively large, and the first link can be activated to maximize the utilization of the bandwidth.
一种可能的实现方式中,通过激活第一链路的接收功能、发送功能来激活第一链路,使得第一链路可以承载第一设备的业务报文划分的切片报文。通过去激活第一链路的接收功能、发送功能将第一链路去激活,去激活第一链路后,第一链路无法承载第一设备的业务报文划分的切片报文。In a possible implementation manner, the first link is activated by activating the receiving function and the sending function of the first link, so that the first link can carry the sliced packets divided by the service packets of the first device. The first link is deactivated by deactivating the receiving function and the sending function of the first link. After the first link is deactivated, the first link cannot carry the segmented packets divided by the service packets of the first device.
具体地,在对链路进行激活和去激活的过程中,为了保证链路状态更新过程中系统无损,避免丢包,提供以下两种方式:Specifically, in the process of activating and deactivating the link, in order to ensure that the system is not damaged during the link state update process and avoid packet loss, the following two methods are provided:
第一种、无损的激活方式。The first, lossless activation method.
参考图8,第一设备首先激活所述第一链路在所述第一设备的接收功能;Referring to FIG. 8, the first device first activates the reception function of the first link in the first device;
第一设备还可以向所述第二设备发送第一消息,所述第一消息表征所述第一链路在所述第一设备的接收功能已激活;The first device may also send a first message to the second device, where the first message represents that the reception function of the first link at the first device has been activated;
第二设备接收第一消息后,激活所述第一链路在所述第二设备的发送功能,还可以激活第一链路在所述第二设备的接收功能;After receiving the first message, the second device activates the sending function of the first link on the second device, and can also activate the receiving function of the first link on the second device;
第二设备还可以向第一设备发送第二消息,所述第二消息表征所述第一链路在所述第二设备的接收功能已激活;The second device may also send a second message to the first device, where the second message indicates that the reception function of the first link at the second device has been activated;
第一设备从所述第二设备接收第二消息,根据所述第二消息激活所述第一链路在所述第一设备的发送功能。The first device receives a second message from the second device, and activates the sending function of the first link on the first device according to the second message.
需要说明的是,如果第二设备接收第一消息后,判断不满足激活条件,则向第一设备回复响应,指示不激活第一链路。其中,激活条件可以是链路质量较好。It should be noted that, if the second device determines that the activation condition is not met after receiving the first message, it returns a response to the first device, indicating that the first link is not to be activated. The activation condition may be that the link quality is better.
图8所示流程中,第一设备先激活本端的接收功能,可以保证在激活链路过程中本端不会丢失来自对端的报文,实现无损的激活。In the process shown in FIG. 8 , the first device first activates the receiving function of the local end, which can ensure that the local end does not lose the packets from the opposite end during the link activation process, and realizes lossless activation.
第二种、无损的去激活方式。The second, lossless deactivation method.
参考图9,第一设备去激活所述第一链路在所述第一设备的发送功能;Referring to FIG. 9, the first device deactivates the sending function of the first link in the first device;
第一设备还可以向所述第二设备发送第三消息,所述第三消息表征所述第一链路在所述第一设备的发送功能已去激活;The first device may also send a third message to the second device, where the third message represents that the sending function of the first link in the first device has been deactivated;
第二设备接收第三消息后,所述第一链路在所述第二设备的接收功能,还可以去激活所述第一链路在所述第二链路的发送功能;After the second device receives the third message, the receiving function of the first link on the second device can also deactivate the sending function of the first link on the second link;
第二设备还可以向第一设备发送第四消息,所述第四消息表征所述第一链路在所述第二设备的发送功能已去激活;The second device may also send a fourth message to the first device, where the fourth message represents that the sending function of the first link in the second device has been deactivated;
第一设备从所述第二设备接收第四消息,根据所述第四消息去激活所述第一链路在所述第一设备的接收功能。The first device receives a fourth message from the second device, and deactivates the reception function of the first link at the first device according to the fourth message.
需要说明的是,第二设备接收第三消息后,无条件执行去激活操作,不受限于其他因素。It should be noted that after receiving the third message, the second device unconditionally performs the deactivation operation, which is not limited by other factors.
图9所示的流程中,先去激活本端的发送功能,再去激活对端的接收功能,可以保证在链路去激活过程中,对端不会丢失来自本端的报文,实现无损的去激活。In the process shown in Figure 9, the sending function of the local end is deactivated first, and then the receiving function of the opposite end is deactivated, which can ensure that during the link deactivation process, the opposite end will not lose the packets from the local end and achieve lossless deactivation. .
本申请实施例中测量报文区别于业务报文的切片报文,测量报文的包长较小,例如,可以是64字节的测量报文。测量报文携带时间戳(例如,接收报文的时间或发送报文的时间),以便设备可以根据时间戳确定链路的传输时延。此外,测量报文的报文头区别与业务报文的 切片报文。具体地,测量报文包括的字段如表1所示:In the embodiment of the present application, the measurement packet is different from the slice packet of the service packet, and the packet length of the measurement packet is relatively small, for example, it may be a measurement packet of 64 bytes. Measurement packets carry timestamps (for example, the time when the packets are received or when the packets are sent), so that the device can determine the transmission delay of the link based on the timestamps. In addition, the header of the measurement packet is different from the sliced packet of the service packet. Specifically, the fields included in the measurement packet are shown in Table 1:
表1Table 1
Figure PCTCN2021107204-appb-000001
Figure PCTCN2021107204-appb-000001
本申请实施例提供一种链路管理方法,可以基于链路的传输时延对物理链路聚合组进行动态地管理,保证物理链路聚合组以最大化的带宽进行传输。如图10所示,所述方法包括以下步骤:The embodiment of the present application provides a link management method, which can dynamically manage the physical link aggregation group based on the transmission delay of the link, so as to ensure that the physical link aggregation group transmits with the maximized bandwidth. As shown in Figure 10, the method includes the following steps:
1001、配置物理链路聚合组,包括链路1、链路2…链路N。1001. Configure a physical link aggregation group, including link 1, link 2, . . . link N.
需要说明的是,链路1、链路2…链路N为收发双发之间进行通信的链路。例如,第一设备和第二设备通过链路1、链路2…链路N进行通信。此外,链路1、链路2…链路N可以为同一公司的物理链路,或者,链路1、链路2…链路N为不同公司的物理链路。物理链路可以是微波链路,也可以是OTN链路,或者其它类型的链路,本申请实施例对此不做限制。It should be noted that, link 1, link 2, . For example, the first device and the second device communicate via link 1, link 2 . . . link N. In addition, Link1, Link2...LinkN may be physical links of the same company, or Link1, Link2...LinkN may be physical links of different companies. The physical link may be a microwave link, an OTN link, or other types of links, which are not limited in this embodiment of the present application.
需要说明的是,在配置物理链路聚合组时,可以不考虑各个链路的传输时延,参考链路工作的最大带宽、最小带宽绑定链路,构成物理链路聚合组,以最大化利用空口带宽。It should be noted that when configuring a physical link aggregation group, the transmission delay of each link can be ignored, and the maximum bandwidth and minimum bandwidth of the link can be used to bind the link to form a physical link aggregation group to maximize the bandwidth. Use air interface bandwidth.
配置了物理链路聚合组确定之后,可以确定物理链路聚合组所能容忍的最大成员间传输时延差。具体实现方式参考前文所述,在此不做赘述。After the physical link aggregation group determination is configured, the maximum transmission delay difference between members that the physical link aggregation group can tolerate can be determined. For a specific implementation manner, refer to the foregoing description, which will not be repeated here.
1002、获取每条链路的传输时延。1002. Obtain the transmission delay of each link.
具体地,发送端可以周期性的在每条链路上发送测量报文,根据接收端返回的报文中的时间戳以及发送端接收报文的时间确定链路的传输时延。具体参考前文图5、图6所示的流程,在此不做赘述。Specifically, the sender may periodically send measurement packets on each link, and the transmission delay of the link is determined according to the timestamp in the packet returned by the receiver and the time when the sender receives the packet. For details, please refer to the flow shown in FIG. 5 and FIG. 6 above, which will not be repeated here.
当然,也可以通过其它方式获取链路的传输时延,例如,人工测量链路的传输时延,只需保证链路的传输时延准确即可。Of course, the transmission delay of the link can also be obtained in other ways. For example, by manually measuring the transmission delay of the link, it is only necessary to ensure that the transmission delay of the link is accurate.
1003、确定成员最小传输时延,计算每一条链路的传输时延与最小传输时延的时延差。1003. Determine the minimum transmission delay of the member, and calculate the delay difference between the transmission delay of each link and the minimum transmission delay.
其中,成员最小传输时延可以是物理链路聚合组中各个链路的传输时延中最小的传输时延,记为min delay。Among them, the minimum transmission delay of members can be the minimum transmission delay among the transmission delays of each link in the physical link aggregation group, which is recorded as min delay.
根据物理链路聚合组中链路的传输时延与成员最小传输时延的差值,决策各个链路的状态。其中,链路的状态为激活或去激活。获取到各个链路的传输时延后,可以根据各个链路的传输时延计算出链路本身的传输时延与min delay的差值(记为delay gap),根据链路对应的delay gap与物理链路聚合组能容忍的最大成员间传输时延差(max delay gap)的大小关系, 对物理链路聚合组中的链路进行激活或者去激活,从而保证物理链路聚合组保持正常工作的同时,能够最大化利用带宽。具体执行步骤1004或1005。According to the difference between the transmission delay of the links in the physical link aggregation group and the minimum transmission delay of the members, the status of each link is decided. The state of the link is activated or deactivated. After the transmission delay of each link is obtained, the difference between the transmission delay of the link itself and the min delay can be calculated according to the transmission delay of each link (denoted as delay gap). The relationship between the maximum transmission delay gap (max delay gap) between members of the physical link aggregation group can be tolerated, and the links in the physical link aggregation group are activated or deactivated to ensure that the physical link aggregation group maintains normal operation. At the same time, the bandwidth can be maximized. Step 1004 or 1005 is specifically executed.
1004、若链路的传输时延与min delay的差值超过max delay gap,则去激活链路。1004. If the difference between the transmission delay of the link and the min delay exceeds the max delay gap, deactivate the link.
可以理解的是,如果一个链路的传输时延和成员最小传输时延的时延差超过了物理链路聚合组能容忍的最大成员间传输时延差,表明该链路的传输时延较大,即该链路的带宽小,去激活该链路可以减少低带宽链路的利用,提高带宽利用率。It is understandable that if the delay difference between the transmission delay of a link and the minimum transmission delay of the members exceeds the maximum transmission delay difference between members that the physical link aggregation group can tolerate, it indicates that the transmission delay of the link is shorter than that of the member. If the link is large, that is, the bandwidth of the link is small. Deactivating the link can reduce the utilization of the low-bandwidth link and improve the bandwidth utilization.
需要说明的是,如果后续检测到去激活的链路的传输时延变小,与成员最小传输时延的时延差未超过物理链路聚合组能容忍的最大成员间传输时延差,则可以激活该链路,提高带宽利用率。It should be noted that if the transmission delay of the deactivated link is subsequently detected to become smaller, and the delay difference from the minimum transmission delay of the members does not exceed the maximum transmission delay difference between members that the physical link aggregation group can tolerate, then The link can be activated to improve bandwidth utilization.
此外,链路去激活参考前文图9所示的流程,在此不做赘述。In addition, for link deactivation, reference is made to the process shown in FIG. 9 above, which will not be repeated here.
1005、如果链路的传输时延和min delay的差值未超过物理链路聚合组能容忍的max delay gap,则激活该链路。1005. If the difference between the transmission delay of the link and the min delay does not exceed the max delay gap tolerated by the physical link aggregation group, activate the link.
可以理解的是,如果一个链路的传输时延和成员最小传输时延的时延差未超过物理链路聚合组能容忍的最大成员间传输时延差,表明该链路的传输时延较小,即该链路的带宽大,激活该链路可以减少提高带宽利用率。It is understandable that if the delay difference between the transmission delay of a link and the minimum transmission delay of the members does not exceed the maximum transmission delay difference between members that the physical link aggregation group can tolerate, it indicates that the transmission delay of the link is relatively low. Small, that is, the bandwidth of the link is large, and activating the link can reduce and improve the bandwidth utilization.
链路的激活参考前文图8所示的流程,在此不做赘述。For the activation of the link, refer to the flow shown in FIG. 8 above, which will not be repeated here.
一种可能的实现方式中,如果有多个链路满足激活的条件,可以优先激活带宽较大(即传输时延较小)的链路。In a possible implementation manner, if multiple links meet the activation conditions, the link with a larger bandwidth (that is, a smaller transmission delay) may be activated preferentially.
需要说明的是,优先针对带宽小、传输时延大的链路上报告警,指示链路的传输时延过大,可以根据告警去激活链路。It should be noted that the alarm is preferentially reported on the link with small bandwidth and large transmission delay, indicating that the transmission delay of the link is too large, and the link can be deactivated according to the alarm.
此外,如果根据链路的传输时延决策的结果是激活该链路,但是之前有针对该链路的告警,则不处理(或丢弃)该告警。Furthermore, if the link is activated as a result of the decision based on the transmission delay of the link, but there was an alarm for the link before, the alarm is not processed (or discarded).
图10所示的方法中,动态地获取链路实时的传输时延,基于链路的传输时延对链路进行激活或去激活。当链路的带宽变小,链路传输时延过大,与min delay的差值超过物理链路聚合组所能容忍的时延差,可以去激活链路,避免出现丢包,保证物理链路聚合组的正常工作,实现无损自愈。当链路的带宽变大,链路对应的传输时延差满足要求(例如,与min delay的差值小于物理链路聚合组所能容忍的时延差)后,可以激活链路,使得物理链路聚合组可以始终工作在最大带宽。In the method shown in FIG. 10 , the real-time transmission delay of the link is dynamically obtained, and the link is activated or deactivated based on the transmission delay of the link. When the bandwidth of the link becomes smaller, the transmission delay of the link is too large, and the difference from min delay exceeds the delay difference that the physical link aggregation group can tolerate, the link can be deactivated to avoid packet loss and ensure the physical link The normal work of the road aggregation group to achieve lossless self-healing. When the bandwidth of the link becomes larger and the transmission delay difference corresponding to the link meets the requirements (for example, the difference from the min delay is less than the delay difference that the physical link aggregation group can tolerate), the link can be activated to make the physical link Link aggregation groups can always work at the maximum bandwidth.
在采用对应各个功能划分各个功能模块的情况下,图11示出上述实施例中所涉及的通信装置的一种可能的结构示意图。图11所示的通信装置可以是本申请实施例所述的设备(例如,第一设备或第二设备),也可以是设备中实现上述方法的部件,或者,也可以是应用于设备中的芯片。所述芯片可以是SOC或者是具备通信功能的基带芯片等。如图11所示,通信装置包括处理单元1101以及通信单元1102。处理单元可以是一个或多个处理器,通信单元可以是收发器或者通信接口。In the case where each functional module is divided according to each function, FIG. 11 shows a possible schematic structural diagram of the communication device involved in the above embodiment. The communication apparatus shown in FIG. 11 may be the device described in the embodiment of the present application (for example, the first device or the second device), may also be a component in the device that implements the above method, or may be applied in the device chip. The chip may be an SOC or a baseband chip with a communication function, or the like. As shown in FIG. 11 , the communication device includes a processing unit 1101 and a communication unit 1102 . The processing unit may be one or more processors, and the communication unit may be a transceiver or a communication interface.
处理单元1101,例如可以用于支持第一设备执行步骤401、步骤402,还支持第一设备计算链路的传输时延,和/或用于本文所描述的技术的其它过程,例如,图10所示的方法流程。The processing unit 1101, for example, can be used to support the first device to perform steps 401 and 402, and also to support the first device to calculate the transmission delay of the link, and/or other processes used in the techniques described herein, for example, FIG. 10 The method flow shown.
通信单元1102,用于支持该第一设备与其他通信装置之间的通信,例如,支持第一设备与第二设备之间的交互,支持第二设备发送DMM或接收DMM,还可以支持第一设备接收DMR等,和/或用于本文所描述的技术的其它过程。The communication unit 1102 is configured to support communication between the first device and other communication apparatuses, for example, support the interaction between the first device and the second device, support the second device to send DMM or receive DMM, and also support the first device The device receives DMR, etc., and/or other procedures for the techniques described herein.
需要说明的是,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。It should be noted that, all relevant contents of the steps involved in the above method embodiments can be cited in the functional description of the corresponding functional module, which will not be repeated here.
如图12所示,通信装置还可以包括存储单元1103,存储单元1103用于存储通信装置的程序代码和/或数据。As shown in FIG. 12 , the communication device may further include a storage unit 1103, and the storage unit 1103 is configured to store program codes and/or data of the communication device.
处理单元1101可以包括至少一个处理器,通信单元1102可以为收发器或者通信接口,存储单元1103可以包括存储器。The processing unit 1101 may include at least one processor, the communication unit 1102 may be a transceiver or a communication interface, and the storage unit 1103 may include a memory.
需要说明的是,上述各个通信装置实施例中,各个单元也可以相应的称之为模块或者部件或者电路等。It should be noted that, in each of the above communication device embodiments, each unit may also be called a module, a component, or a circuit, etc. accordingly.
本申请实施例提供一种计算机可读存储介质,计算机可读存储介质中存储有指令;指令用于执行如图4~图12所示的方法。An embodiment of the present application provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium; the instructions are used to execute the methods shown in FIG. 4 to FIG. 12 .
本申请实施例提供一种包括指令的计算机程序产品,当其在通信装置上运行时,使得通信装置执行如图4~图12所示的方法。Embodiments of the present application provide a computer program product including instructions, which, when executed on a communication device, cause the communication device to execute the methods shown in FIG. 4 to FIG. 12 .
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将通信装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。From the description of the above embodiments, those skilled in the art can clearly understand that for the convenience and brevity of the description, only the division of the above functional modules is used as an example for illustration. In practical applications, the above functions can be allocated as required. It is completed by different functional modules, that is, the internal structure of the communication device is divided into different functional modules, so as to complete all or part of the functions described above.
本申请实施例中的处理器,可以包括但不限于以下至少一种:中央处理单元(central processing unit,CPU)、微处理器、数字信号处理器(DSP)、微控制器(microcontroller unit,MCU)、或人工智能处理器等各类运行软件的计算设备,每种计算设备可包括一个或多个用于执行软件指令以进行运算或处理的核。该处理器可以是个单独的半导体芯片,也可以跟其他电路一起集成为一个半导体芯片,例如,可以跟其他电路(如编解码电路、硬件加速电路或各种总线和接口电路)构成一个SoC(片上系统),或者也可以作为一个ASIC的内置处理器集成在所述ASIC当中,该集成了处理器的ASIC可以单独封装或者也可以跟其他电路封装在一起。该处理器除了包括用于执行软件指令以进行运算或处理的核外,还可进一步包括必要的硬件加速器,如现场可编程门阵列(field programmable gate array,FPGA)、PLD(可编程逻辑器件)、或者实现专用逻辑运算的逻辑电路。The processors in the embodiments of the present application may include, but are not limited to, at least one of the following: a central processing unit (CPU), a microprocessor, a digital signal processor (DSP), a microcontroller (MCU) ), or artificial intelligence processors and other types of computing devices that run software, each computing device may include one or more cores for executing software instructions to perform operations or processing. The processor can be a separate semiconductor chip, or can be integrated with other circuits into a semiconductor chip. For example, it can form a SoC (on-chip) with other circuits (such as codec circuits, hardware acceleration circuits, or various bus and interface circuits). system), or can also be integrated in the ASIC as a built-in processor of an ASIC, and the ASIC integrated with the processor can be packaged separately or can be packaged with other circuits. In addition to a core for executing software instructions to perform operations or processing, the processor may further include necessary hardware accelerators, such as field programmable gate arrays (FPGA), PLDs (Programmable Logic Devices) , or a logic circuit that implements dedicated logic operations.
本申请实施例中的存储器,可以包括如下至少一种类型:只读存储器(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器(random access memory,RAM)或者可存储信息和指令的其他类型的动态存储设备,也可以是电可擦可编程只读存储器(electrically erasable programmable-only memory,EEPROM)。在某些场景下,存储器还可以是只读光盘(compact disc read-only memory,CD-ROM)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。The memory in this embodiment of the present application may include at least one of the following types: read-only memory (ROM) or other types of static storage devices that can store static information and instructions, random access memory (random access memory) , RAM) or other types of dynamic storage devices that can store information and instructions, and can also be electrically erasable programmable-only memory (EEPROM). In some scenarios, the memory may also be compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compact disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.) , a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, without limitation.
本申请中,“至少一个”是指一个或者多个。“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b,或c中的至少一项(个),可以表示:a,b,c,a-b,a-c,b-c,或a-b-c,其中a,b,c可以是单个,也可以是多个。另 外,为了便于清楚描述本申请实施例的技术方案,在本申请的实施例中,采用了“第一”、“第二”等字样对功能和作用基本相同的相同项或相似项进行区分。本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定,并且“第一”、“第二”等字样也并不限定一定不同。In this application, "at least one" means one or more. "Plural" means two or more. "And/or", which describes the association relationship of the associated objects, indicates that there can be three kinds of relationships, for example, A and/or B, which can indicate: the existence of A alone, the existence of A and B at the same time, and the existence of B alone, where A, B can be singular or plural. The character "/" generally indicates that the associated objects are an "or" relationship. "At least one item(s) below" or similar expressions thereof refer to any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one item (a) of a, b, or c may represent: a, b, c, ab, ac, bc, or abc, where a, b, and c may be single or multiple . In addition, in order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish the same items or similar items with basically the same function and effect. Those skilled in the art can understand that the words "first", "second" and the like do not limit the quantity and execution order, and the words "first", "second" and the like are not necessarily different.
在本申请所提供的几个实施例中,应该理解到,所揭露的数据库访问装置和方法,可以通过其它的方式实现。例如,以上所描述的数据库访问装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,数据库访问装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method for accessing a database may be implemented in other manners. For example, the embodiments of the database access apparatus described above are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or Components may be combined or integrated into another device, or some features may be omitted, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection of database access devices or units through some interfaces, which may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place, or may be distributed to multiple different places . Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application can be embodied in the form of software products in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, which are stored in a storage medium , including several instructions to make a device (which may be a single chip microcomputer, a chip, etc.) or a processor to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk and other mediums that can store program codes.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above are only specific embodiments of the present application, but the protection scope of the present application is not limited to this, and any changes or substitutions within the technical scope disclosed in the present application should be covered within the protection scope of the present application. . Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims (16)

  1. 一种链路管理方法,其特征在于,包括:A link management method, comprising:
    第一设备获取物理链路聚合组中第一链路的传输时延;所述第一设备通过所述第一链路与第二设备进行通信;The first device obtains the transmission delay of the first link in the physical link aggregation group; the first device communicates with the second device through the first link;
    所述第一设备根据所述传输时延激活所述第一链路或去激活所述第一链路。The first device activates the first link or deactivates the first link according to the transmission delay.
  2. 根据权利要求1所述的方法,其特征在于,所述第一设备获取物理链路聚合组中第一链路的传输时延,包括:The method according to claim 1, wherein the obtaining, by the first device, the transmission delay of the first link in the physical link aggregation group comprises:
    所述第一设备通过所述第一链路接收所述第二设备发送的第一报文,所述第一报文包括第一时间信息,所述第一时间信息用于指示所述第二设备发送所述第一报文的时间;The first device receives, through the first link, a first packet sent by the second device, where the first packet includes first time information, where the first time information is used to indicate the second the time when the device sends the first packet;
    所述第一设备根据所述第一时间信息以及所述第一设备接收所述第一报文的时间确定所述第一链路的传输时延。The first device determines the transmission delay of the first link according to the first time information and the time when the first device receives the first packet.
  3. 根据权利要求1所述的方法,其特征在于,所述第一设备获取物理链路聚合组中第一链路的传输时延,包括:The method according to claim 1, wherein the obtaining, by the first device, the transmission delay of the first link in the physical link aggregation group comprises:
    所述第一设备通过所述第一链路向所述第二设备发送第二报文,所述第二报文包括第二时间信息,所述第二时间信息用于指示所述第一设备发送所述第二报文的时间;The first device sends a second packet to the second device through the first link, where the second packet includes second time information, where the second time information is used to indicate to the first device the time for sending the second message;
    所述第一设备通过所述第一链路接收所述第二设备发送的第三报文,所述第三报文包括第三时间信息以及第四时间信息;所述第三时间信息用于指示所述第二设备接收所述第二报文的时间,所述第四时间信息用于指示所述第二设备发送所述第三报文的时间;The first device receives a third packet sent by the second device through the first link, where the third packet includes third time information and fourth time information; the third time information is used for Indicate the time at which the second device receives the second packet, and the fourth time information is used to indicate the time at which the second device sends the third packet;
    所述第一设备根据所述第二时间信息、所述第三时间信息、所述第四时间信息以及所述第一设备接收所述第三报文的时间确定所述第一链路的传输时延。The first device determines the transmission of the first link according to the second time information, the third time information, the fourth time information, and the time when the first device receives the third packet time delay.
  4. 根据权利要求1-3任一项所述的方法,其特征在于,所述第一设备根据所述传输时延激活所述第一链路或去激活所述第一链路,包括:The method according to any one of claims 1-3, wherein the first device activating the first link or deactivating the first link according to the transmission delay comprises:
    所述第一设备确定所述第一链路的传输时延与第二链路的传输时延的差值大于或等于门限值,则去激活所述第一链路;所述第二链路为所述物理链路聚合组中传输时延最小的链路;The first device determines that the difference between the transmission delay of the first link and the transmission delay of the second link is greater than or equal to a threshold value, and then deactivates the first link; the second link The path is the link with the smallest transmission delay in the physical link aggregation group;
    所述第一设备确定所述第一链路的传输时延与所述第二链路的传输时延的差值小于所述门限值,则激活所述第一链路。The first device determines that the difference between the transmission delay of the first link and the transmission delay of the second link is less than the threshold value, and activates the first link.
  5. 根据权利要求4所述的方法,其特征在于,所述第一设备激活所述第一链路,包括:The method according to claim 4, wherein activating the first link by the first device comprises:
    激活所述第一链路在所述第一设备的接收功能;Activate the reception function of the first link in the first device;
    向所述第二设备发送第一消息,所述第一消息表征所述第一链路在所述第一设备的接收功能已激活;sending a first message to the second device, the first message representing that the reception function of the first link at the first device has been activated;
    从所述第二设备接收第二消息,所述第二消息表征所述第一链路在所述第二设备的接收功能已激活;receiving a second message from the second device, the second message representing that the receive function of the first link at the second device has been activated;
    根据所述第二消息激活所述第一链路在所述第一设备的发送功能。Activate the sending function of the first link on the first device according to the second message.
  6. 根据权利要求4所述的方法,其特征在于,所述第一设备去激活所述第一链路,包括:The method according to claim 4, wherein deactivating the first link by the first device comprises:
    去激活所述第一链路在所述第一设备的发送功能;deactivating the sending function of the first link in the first device;
    向所述第二设备发送第三消息,所述第三消息表征所述第一链路在所述第一设备的发送功能已去激活;sending a third message to the second device, the third message representing that the sending function of the first link in the first device has been deactivated;
    从所述第二设备接收第四消息,所述第四消息表征所述第一链路在所述第二设备的发送功能已去激活;receiving a fourth message from the second device, the fourth message representing that the sending function of the first link at the second device has been deactivated;
    根据所述第四消息去激活所述第一链路在所述第一设备的接收功能。The receiving function of the first link at the first device is deactivated according to the fourth message.
  7. 一种通信装置,其特征在于,包括:A communication device, comprising:
    处理单元,用于获取物理链路聚合组中第一链路的传输时延;第一设备通过所述第一链路与第二设备进行通信;a processing unit, configured to obtain the transmission delay of the first link in the physical link aggregation group; the first device communicates with the second device through the first link;
    所述处理单元还用于,根据所述传输时延激活所述第一链路或去激活所述第一链路。The processing unit is further configured to activate the first link or deactivate the first link according to the transmission delay.
  8. 根据权利要求7所述的装置,其特征在于,所述通信装置还包括通信单元,The device according to claim 7, wherein the communication device further comprises a communication unit,
    所述通信单元用于,通过所述第一链路接收所述第二设备发送的第一报文,所述第一报文包括第一时间信息,所述第一时间信息用于指示所述第二设备发送所述第一报文的时间;The communication unit is configured to receive, through the first link, a first packet sent by the second device, where the first packet includes first time information, and the first time information is used to indicate the The time when the second device sends the first packet;
    所述处理单元具体用于,根据所述第一时间信息以及所述第一设备接收所述第一报文的时间确定所述第一链路的传输时延。The processing unit is specifically configured to determine the transmission delay of the first link according to the first time information and the time when the first device receives the first packet.
  9. 根据权利要求7所述的装置,其特征在于,所述通信装置还包括通信单元,The device according to claim 7, wherein the communication device further comprises a communication unit,
    所述通信单元用于,通过所述第一链路向所述第二设备发送第二报文,所述第二报文包括第二时间信息,所述第二时间信息用于指示所述第一设备发送所述第二报文的时间;The communication unit is configured to send a second packet to the second device through the first link, where the second packet includes second time information, and the second time information is used to indicate the first The time when a device sends the second packet;
    所述通信单元还用于,通过所述第一链路接收所述第二设备发送的第三报文,所述第三报文包括第三时间信息以及第四时间信息;所述第三时间信息用于指示所述第二设备接收所述第二报文的时间,所述第四时间信息用于指示所述第二设备发送所述第三报文的时间;The communication unit is further configured to receive, through the first link, a third packet sent by the second device, where the third packet includes third time information and fourth time information; the third time The information is used to indicate the time when the second device receives the second packet, and the fourth time information is used to indicate the time when the second device sends the third packet;
    所述处理单元具体用于,根据所述第二时间信息、所述第三时间信息、所述第四时间信息以及所述第一设备接收所述第三报文的时间确定所述第一链路的传输时延。The processing unit is specifically configured to determine the first chain according to the second time information, the third time information, the fourth time information, and the time when the first device receives the third packet transmission delay of the path.
  10. 根据权利要求9所述的通信装置,其特征在于,所述处理单元具体用于,确定所述第一链路的传输时延与第二链路的传输时延的差值大于或等于门限值,则去激活所述第一链路;所述第二链路为所述物理链路聚合组中传输时延最小的链路;The communication device according to claim 9, wherein the processing unit is specifically configured to determine that a difference between the transmission delay of the first link and the transmission delay of the second link is greater than or equal to a threshold value, then deactivate the first link; the second link is the link with the smallest transmission delay in the physical link aggregation group;
    确定所述第一链路的传输时延与所述第二链路的传输时延的差值小于所述门限值,则激活所述第一链路。It is determined that the difference between the transmission delay of the first link and the transmission delay of the second link is less than the threshold value, and the first link is activated.
  11. 根据权利要求9所述的通信装置,其特征在于,The communication device according to claim 9, wherein:
    所述处理单元用于,激活所述第一链路在所述第一设备的接收功能;The processing unit is configured to activate the receiving function of the first link in the first device;
    通信单元用于,向所述第二设备发送第一消息,从所述第二设备接收第二消息;所述第一消息表征所述第一链路在所述第一设备的接收功能已激活,所述第二消息表征所述第一链路在所述第二设备的接收功能已激活;The communication unit is configured to send a first message to the second device and receive a second message from the second device; the first message indicates that the receiving function of the first link in the first device has been activated , the second message indicates that the receiving function of the first link in the second device has been activated;
    所述处理单元还用于,根据所述第二消息激活所述第一链路在所述第一设备的发送功能。The processing unit is further configured to activate the sending function of the first link on the first device according to the second message.
  12. 根据权利要求7-11任一项所述的通信装置,其特征在于,The communication device according to any one of claims 7-11, wherein,
    所述处理单元用于,去激活所述第一链路在所述第一设备的发送功能;The processing unit is configured to deactivate the sending function of the first link in the first device;
    通信单元用于,向所述第二设备发送第三消息,从所述第二设备接收第四消息;所述第三消息表征所述第一链路在所述第一设备的发送功能已去激活,所述第四消息表征所述第一链路在所述第二设备的发送功能已去激活;The communication unit is configured to send a third message to the second device, and receive a fourth message from the second device; the third message indicates that the sending function of the first link in the first device has ceased activation, the fourth message indicates that the sending function of the first link in the second device has been deactivated;
    所述处理单元还用于,根据所述第四消息去激活所述第一链路在所述第一设备的接收功能。The processing unit is further configured to deactivate the receiving function of the first link in the first device according to the fourth message.
  13. 一种通信装置,其特征在于,包括处理器,所述处理器与存储器耦合;A communication device, comprising a processor coupled to a memory;
    存储器,用于存储计算机程序;memory for storing computer programs;
    处理器,用于执行所述存储器中存储的计算机程序,以使得所述装置执行如权利要求1至6中任一项所述的方法。A processor for executing a computer program stored in the memory to cause the apparatus to perform the method of any one of claims 1 to 6.
  14. 一种计算机可读存储介质,包括程序或指令,当所述程序或指令被处理器运行时, 如权利要求1至6中任意一项所述的方法被执行。A computer-readable storage medium comprising programs or instructions, when the program or instructions are executed by a processor, the method of any one of claims 1 to 6 is performed.
  15. 一种计算机程序产品,其特征在于,所述计算机程序产品包括指令,当所述指令被运行时,使得如权利要求1至6任一项所述的方法被执行。A computer program product, characterized in that the computer program product comprises instructions which, when executed, cause the method of any one of claims 1 to 6 to be performed.
  16. 一种芯片,其特征在于,所述芯片包括处理器和接口电路,所述接口电路和所述处理器耦合,所述处理器用于运行计算机程序或指令,使得如权利要求1至6任一项所述的方法被执行。A chip, characterized in that the chip includes a processor and an interface circuit, the interface circuit and the processor are coupled, and the processor is used for running a computer program or instruction, so that the method as claimed in any one of claims 1 to 6 The described method is executed.
PCT/CN2021/107204 2020-07-23 2021-07-19 Link management method and communication apparatus WO2022017336A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010717287.5 2020-07-23
CN202010717287.5A CN113973058A (en) 2020-07-23 2020-07-23 Link management method and communication device

Publications (1)

Publication Number Publication Date
WO2022017336A1 true WO2022017336A1 (en) 2022-01-27

Family

ID=79585442

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/107204 WO2022017336A1 (en) 2020-07-23 2021-07-19 Link management method and communication apparatus

Country Status (2)

Country Link
CN (1) CN113973058A (en)
WO (1) WO2022017336A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114615213B (en) * 2022-01-26 2024-04-12 福达新创通讯科技(厦门)有限公司 Method and system for implementing multi-network link interface based on message queue

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8705526B1 (en) * 2010-12-03 2014-04-22 Juniper Networks, Inc. Extending VPLS support for CE lag multi-homing
WO2016106497A1 (en) * 2014-12-29 2016-07-07 华为技术有限公司 Method, device, terminal device and system for adjusting working state of aggregated link
CN106341846A (en) * 2015-07-10 2017-01-18 中兴通讯股份有限公司 Multi-system aggregation method and corresponding functional component
CN109618373A (en) * 2019-01-15 2019-04-12 Oppo广东移动通信有限公司 Link choosing method and relevant apparatus

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101534249B (en) * 2009-04-15 2012-01-04 杭州华三通信技术有限公司 Method for transmitting data on bound link and network equipment thereof
CN106357472A (en) * 2015-07-17 2017-01-25 中兴通讯股份有限公司 Delay measuring method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8705526B1 (en) * 2010-12-03 2014-04-22 Juniper Networks, Inc. Extending VPLS support for CE lag multi-homing
WO2016106497A1 (en) * 2014-12-29 2016-07-07 华为技术有限公司 Method, device, terminal device and system for adjusting working state of aggregated link
CN106341846A (en) * 2015-07-10 2017-01-18 中兴通讯股份有限公司 Multi-system aggregation method and corresponding functional component
CN109618373A (en) * 2019-01-15 2019-04-12 Oppo广东移动通信有限公司 Link choosing method and relevant apparatus

Also Published As

Publication number Publication date
CN113973058A (en) 2022-01-25

Similar Documents

Publication Publication Date Title
US11552683B2 (en) Communications method and apparatus
US11509597B2 (en) Data transmission method and device
JP7270766B2 (en) Radio bearer configuration method, apparatus and system
US11012336B2 (en) Techniques to monitor control plane network traffic
JP2023025025A (en) Data transmission method and apparatus
CN110225474A (en) A kind of data volume report method under multi-connection
US11973589B2 (en) Mode switching method, data flow splitting method, and apparatus
WO2022061940A1 (en) Model data transmission method, and communication apparatus
WO2022017336A1 (en) Link management method and communication apparatus
WO2019100794A1 (en) Message processing method and apparatus
WO2020088255A1 (en) Wireless backhaul processing method and communication apparatus
US10944625B2 (en) Bearer configuration method and related products
WO2020024299A1 (en) Resource use status reporting method and communication device
WO2022006858A1 (en) Wireless communication method, network node, and device
WO2022082685A1 (en) Communication method and device
WO2020199815A1 (en) Communication method and apparatus
WO2020221071A1 (en) Radio bearer management method, device, and system
WO2021056199A1 (en) Communication method and apparatus
WO2020087294A1 (en) Replication data-based transmission method and device
Garlisi et al. Deploying virtual MAC protocols over a shared access infrastructure using MAClets
WO2024041340A1 (en) Data delivery method and communication apparatus
WO2023011234A1 (en) Method and apparatus for reporting csi report
EP4068836A1 (en) Access network system, transport method, and related apparatus
WO2024045179A1 (en) Data message transmission method, communication apparatus and communication system
WO2023246746A1 (en) Communication method and related device

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21847016

Country of ref document: EP

Kind code of ref document: A1