WO2022267937A1 - Protocol calculation method, switch, cross-device link aggregation system, and storage medium - Google Patents

Protocol calculation method, switch, cross-device link aggregation system, and storage medium Download PDF

Info

Publication number
WO2022267937A1
WO2022267937A1 PCT/CN2022/098762 CN2022098762W WO2022267937A1 WO 2022267937 A1 WO2022267937 A1 WO 2022267937A1 CN 2022098762 W CN2022098762 W CN 2022098762W WO 2022267937 A1 WO2022267937 A1 WO 2022267937A1
Authority
WO
WIPO (PCT)
Prior art keywords
protocol
switch
cross
processor
calculation
Prior art date
Application number
PCT/CN2022/098762
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 WO2022267937A1 publication Critical patent/WO2022267937A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/24Multipath
    • H04L45/245Link aggregation, e.g. trunking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/24Multipath
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/24Multipath
    • H04L45/243Multipath using M+N parallel active paths
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/14Multichannel or multilink protocols

Definitions

  • the embodiments of the present application relate to but are not limited to the field of communication technologies, and in particular, relate to a protocol calculation method, a switch, a cross-device link aggregation system, and a storage medium.
  • the bandwidth is often increased by replacing a high-speed interface board or a device supporting a high-speed interface board, but this method requires high costs and is not flexible enough.
  • MCLAG technology can achieve the purpose of increasing link bandwidth by bundling multiple physical interfaces into one logical interface without hardware upgrades. While achieving the purpose of increasing the bandwidth, link aggregation adopts the mechanism of backup links, which can effectively improve the reliability of links between devices.
  • the cross-device link aggregation switch system since the cross-device link aggregation switch system is considered as a logical device in the entire network, when forwarding packets and performing protocol interaction between the server side and the gateway side , forwarding in the cross-device link aggregation switch system in load balancing mode.
  • the cross-device link aggregation switch system needs to participate in protocol calculation, real-time protocol synchronization between two cross-device link aggregation switches is required, which will not only increase the complexity of software processing at the protocol level, but also lead to real-time Increased risk of synchronization failures.
  • the embodiment of the present application provides a protocol calculation method, a switch, a cross-device link aggregation system, and a storage medium.
  • the standby device in the cross-device link aggregation system directly forwards it to the master device without performing protocol calculation.
  • the master device performs protocol calculation and then sends it to the backup device to complete the synchronization of the protocol status between the master and backup devices, which can avoid frequent synchronization of the master and backup devices after separate protocol calculations, and complete active-active cross-device link aggregation more simply, quickly and accurately
  • the system's protocol calculation improves the usability and reliability of the network.
  • the embodiment of the present application provides a protocol calculation method for a cross-device link aggregation device system including a first device and a second device, and the method includes the following steps: receiving performing protocol calculation on the second protocol message to obtain a second protocol calculation result; sending the second protocol calculation result to the second device.
  • the first device completes all protocol calculations and sends the protocol calculation results to the second device to complete the synchronization, so that the second device does not participate in the protocol calculation at all, which can avoid frequent synchronization between the two devices after separate protocol calculations, and is simpler Quickly and accurately complete the protocol calculation of the active-active cross-device link aggregation system, improving the usability and reliability of the network.
  • the embodiment of the present application provides a protocol calculation method for an inter-device link aggregation device system including a first device and a second device, the method includes the following steps: sending the second protocol message to The first device: receiving the protocol calculation result calculated by the first device, and performing synchronization.
  • the second device in this method does not perform protocol calculation, but only performs protocol forwarding and protocol calculation result synchronization, which reduces the possibility of data link transmission delay loss, improves the success rate of protocol state synchronization, and is simpler and faster And accurately complete the protocol calculation of the active-active cross-device link aggregation system to improve the usability and reliability of the network.
  • the embodiments of the present application also provide a switch, at least including: a memory, a processor, and a computer program stored in the memory and operable on the processor, when the processor executes the program Realize the protocol calculation method as described in the first aspect or the second aspect.
  • the embodiment of the present application also provides a cross-device link aggregation system, including a first device and a second device;
  • the first electronic device includes: a first memory, a first processor, and a A computer program on a memory that can run on a first processor, when the first processor executes the program, implements the protocol computing method as described in the first aspect;
  • the second electronic device includes: A second memory, a second processor, and a computer program stored on the second memory and operable on the second processor, when the second processor executes the program, the protocol calculation method as described in the second aspect is realized .
  • the embodiments of the present application also provide a computer-readable storage medium, which stores computer-executable instructions, and the computer-executable instructions are used to execute the protocol described in the first aspect or the second aspect. Calculation method.
  • FIG. 1 is a schematic diagram of a protocol synchronization framework of an inter-device link aggregation switch system provided by an embodiment of the present application;
  • FIG. 2 is a schematic flowchart of a master device protocol calculation method provided by an embodiment of the present application
  • FIG. 3 is a schematic flow chart of a method for calculating a backup device protocol provided by another embodiment of the present application.
  • FIG. 4 is a schematic diagram of a protocol synchronization framework of an inter-device link aggregation switch system provided by an embodiment of the present application.
  • MCLAG is a mechanism for cross-device link aggregation. It performs cross-device link aggregation between one device and two other devices, thereby improving link reliability from the board level to the device level, forming a dual-active system.
  • the device performing link aggregation can be not only a switch, but also other network devices such as routers.
  • the embodiment of the present application will use a switch as an example for illustration, but those skilled in the art know that the protocol calculation method involved in the present application is also applicable to a cross-device link aggregation system composed of other network devices.
  • the cross-device link aggregation switch system since the cross-device link aggregation switch system is considered as a logical device in the entire network, when forwarding packets and performing protocol interaction between the server side and the gateway side, it is based on load balancing The mode is forwarded in the inter-device link aggregation switch system.
  • the embodiment of the present application provides a protocol calculation method.
  • the first device completes all protocol calculations and sends the protocol calculation results to the second device to complete synchronization, so that the second device does not participate in the protocol calculation at all, which can avoid two Frequent synchronization after separate protocol calculations of each device reduces the possibility of data link transmission delay loss, improves the success rate of protocol state synchronization, and completes the hyperactive-active cross-device link aggregation system more simply, quickly and accurately.
  • Protocol computing improves the usability and reliability of the network.
  • FIG. 1 is a schematic diagram of a protocol synchronization framework of a cross-device link aggregation switch system, describing the working principle of a dual-active cross-device link aggregation switch system.
  • switches A and B form a set of active-active cross-device link aggregation switch system, in which switch A is the master device, switch B is the backup device, and interface A1 of switch A and interface B1 of switch B form a cross-device aggregation chain
  • the main link C1 of the server is connected to the A1 port of the switch A, and the backup link C2 of the server is connected to the B1 port of the switch B.
  • the uplink A2 of the switch A and the uplink B2 of the switch B are connected to the gateway device G.
  • gateway G When gateway G needs to send data traffic to server C, it sends protocol packets and data packets to switches A and B based on the principle of load balancing. Algorithms to achieve load balancing include hash, consistent hashing, round robin scheduling, random mode, pure dynamic node load balancing, etc., and the protocol calculation method involved in this application can be based on any load balancing algorithm.
  • the hash algorithm is taken as an example.
  • Gateway G hashes the data traffic to the A2 interface of switch A and the B2 interface of switch B in the inter-device link aggregation switch system. The packet is sent from port A1. Switch B checks the table according to its own table and sends the packet to server C through port B1. Server C correctly receives the two data streams that are load-balanced by two switches A and B respectively.
  • the embodiment of the present application provides a protocol calculation method for a cross-device link aggregation device system including a first device and a second device, wherein the first device is the master device and the second device is the backup device .
  • FIG. 2 is a schematic flowchart of a method for calculating a master device protocol provided by an embodiment of the present application.
  • the protocol calculation method provided in this embodiment at least includes:
  • Step S100 Receive a second protocol message sent by the second device.
  • the load-balanced data packets and protocol packets will be sent to the master device and the backup device. Since the backup device will not process and calculate the protocol packets, the backup device will send these protocol packets The packets are forwarded to the master device through the directly aggregated peer-link interface. The master device receives the protocol packets forwarded by the backup device and performs protocol calculation in a centralized manner.
  • Algorithms for implementing load balancing include various algorithms such as hash, consistent hash, round-robin scheduling, random mode, and purely dynamic node load balancing. In the above-mentioned embodiments, the hash algorithm is used.
  • Step S200 Perform protocol calculation on the second protocol packet to obtain a second protocol calculation result.
  • the master device CPU performs protocol calculation on the received second protocol packet sent by the backup device, and obtains a second protocol calculation result.
  • the master device based on the load balancing, the master device will also receive the protocol packet. At this time, the CPU of the master device performs protocol calculation on the first protocol packet directly received by the master device, and obtains the first protocol calculation result.
  • the standby device only forwards the protocol packets, but not the data packets, that is, the data forwarding layer will not be affected in any way, and all data packets are still forwarded in the load balancing manner.
  • the data traffic is shared between switches, which can separate data forwarding and protocol calculation in active and standby mode, thereby avoiding mutual influence.
  • Step S300 Send the calculation result of the second protocol to the second device.
  • the master device sends the calculation result of the second protocol to the backup device through the direct-connect aggregated peer-link interface, thereby completing protocol state synchronization.
  • the master device completes the protocol calculation, writes the generated entries into the master device hardware table, and completes the correct writing of the slave device hardware table through protocol state synchronization.
  • the master device completes all the protocol calculations and sends the protocol calculation results to the backup device to complete synchronization, so that the backup device does not participate in the protocol calculation at all, which can avoid frequent synchronization between the two devices after separate protocol calculations. It is easier, faster and more accurate to complete the protocol calculation of the active-active cross-device link aggregation system, improving the usability and reliability of the network.
  • the embodiment of the present application provides a protocol calculation method for a cross-device link aggregation device system including a first device and a second device, wherein the first device is the master device and the second device is the backup device .
  • FIG. 3 is a schematic flowchart of a method for calculating a protocol of a backup device provided by an embodiment of the present application.
  • the protocol calculation method provided in this embodiment at least includes:
  • Step S400 Send a second protocol packet to the first device, wherein the second protocol packet is not calculated.
  • the standby device first determines whether the received packet includes a protocol packet, and if it includes a protocol packet, transmits the second protocol packet to the directly-connected aggregation peer-link interface through redirection.
  • redirect there are many ways to redirect, which can be ACL (Access Control Lists, access control list) or capability relationship table (Capabilities List).
  • ACL Access Control Lists, access control list
  • Capabilities List Capabilities List
  • Step S500 Receive the protocol calculation result calculated by the first device, and perform protocol state synchronization.
  • the backup device receives and obtains the protocol calculation result issued by the master device through the directly-connected aggregation peer-link interface, and completes the correct writing of the hardware table of the backup device according to the protocol calculation result, that is, the protocol state synchronization.
  • the backup device does not perform protocol calculation, but only performs protocol forwarding and protocol calculation result synchronization, which reduces the possibility of data link transmission delay loss and improves the success rate of protocol state synchronization , to complete the protocol calculation of the active-active cross-device link aggregation system more simply, quickly and accurately, and improve the usability and reliability of the network.
  • the embodiment of the present application provides a switch configured to implement the protocol calculation methods described in the first aspect and the second aspect.
  • the switch is set as a master device and a backup device respectively, the link aggregation of the master device and the backup device forms a cross-device link aggregation switch system, the protocol calculation method described in the first aspect runs on the master device, and the backup device runs The protocol calculation method described in the second aspect.
  • an embodiment of the present application provides a cross-device link aggregation system, including a master device and a backup device; wherein, the master device includes: a first memory, a first processor, and a system stored in the first memory and capable of A computer program running on the first processor, when the first processor executes the program, implements the protocol calculation method described in the first aspect of the embodiment of the present application; correspondingly, the backup device includes: a second memory, a first A second processor and a computer program stored on the second memory and operable on the second processor, when the second processor executes the program, implements the protocol computing method described in the second aspect of the embodiment of the present application.
  • the cross-device link aggregation system is set in the entire network environment to form a protocol synchronization framework of the cross-device link aggregation switch system, as shown in FIG. 4 .
  • FIG. 4 describes the working principle of the active-active cross-device link aggregation switch system provided by the embodiment of the present application.
  • switches A and B form a set of active-active cross-device link aggregation switch system, in which switch A is the master device, switch B is the backup device, and interface A1 of switch A and interface B1 of switch B form a cross-device aggregation chain
  • the main link C1 of the server is connected to the A1 port of the switch A
  • the backup link C2 of the server is connected to the B1 port of the switch B.
  • the uplink A2 of the switch A and the uplink B2 of the switch B are connected to the gateway device G.
  • gateway G When gateway G needs to send data traffic to server C, it sends protocol packets and data packets to switches A and B based on the principle of load balancing. Algorithms to achieve load balancing include hash, consistent hashing, round robin scheduling, random mode, pure dynamic node load balancing, etc., and the protocol calculation method involved in this application can be based on any load balancing algorithm.
  • the hash algorithm is taken as an example.
  • Gateway G hashes the data traffic to the A2 interface of switch A and the B2 interface of switch B in the inter-device link aggregation switch system. The packet is sent from port A1. Switch B checks the table according to its own table and sends the packet to server C through port B1. Server C correctly receives the two data streams that are load-balanced by two switches A and B respectively.
  • switch B when switch B detects a protocol message, it will directly forward the protocol message to switch A, that is, switch B will not perform any calculation and analysis actions on the protocol message, and all protocol calculations will be performed by switch A. After completion, the result of the protocol calculation of Switch A will be forwarded to Switch B through the direct-connected aggregation peer-link interface, so as to realize the synchronization of the protocol state between the two switches. It is worth noting that switch B only forwards protocol packets and does not forward data packets, that is, the data forwarding level will not be affected in any way, and all data packets are still forwarded in the load-balanced manner. The data traffic is shared between switches, which can separate data forwarding and protocol calculation in active and standby mode, thereby avoiding mutual influence.
  • the first device completes all the protocol calculations and sends the protocol calculation results to the second device to complete the synchronization, so that the second device does not participate in the protocol calculation at all, which can avoid the separation of the two devices.
  • Frequent synchronization after protocol calculation reduces the possibility of data link transmission delay loss, improves the success rate of protocol status synchronization, and completes the protocol calculation of the active-active cross-device link aggregation system more simply, quickly and accurately. Improve network usability and reliability.
  • the embodiments of the present application also provide a computer-readable storage medium, which stores computer-executable instructions, and the computer-executable instructions are used to execute the protocol calculation method described in the first aspect; or, execute the first aspect The protocol calculation method described in the second aspect.
  • the device embodiments described above are only illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • the functional modules/units in the system, and the device can be implemented as software, firmware, hardware, and an appropriate combination thereof.
  • the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be composed of several physical components. Components cooperate to execute.
  • Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit .
  • Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media).
  • computer storage media includes both volatile and nonvolatile media implemented in any method or technology for storage of information, such as computer readable instructions, data structures, program modules, or other data. permanent, removable and non-removable media.
  • Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cartridges, tape, magnetic disk storage or other magnetic storage devices, or can Any other medium used to store desired information and which can be accessed by a computer.
  • communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media .
  • the mobile terminal device can be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle-mounted terminal device, a wearable device, a super mobile personal computer, a netbook, a personal digital assistant, a CPE, a UFI (wireless hotspot device), etc.; Specific limits.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Multimedia (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

A protocol calculation method, a switch, a cross-device link aggregation system, and a storage medium. The protocol calculation method is used for the cross-device link aggregation system that comprises a first device and a second device, and comprises: receiving a second protocol packet sent by the second device (S100); performing protocol calculation on the second protocol packet to obtain a second protocol calculation result (S200); and sending the second protocol calculation result to the second device (S300).

Description

协议计算方法、交换机、跨设备链路聚合系统及存储介质Protocol calculation method, switch, cross-device link aggregation system and storage medium
相关申请的交叉引用Cross References to Related Applications
本申请基于申请号为202110686533.X、申请日为2021年06月21日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。This application is based on a Chinese patent application with application number 202110686533.X and a filing date of June 21, 2021, and claims the priority of this Chinese patent application. The entire content of this Chinese patent application is hereby incorporated by reference into this application.
技术领域technical field
本申请实施例涉及但不限于通信技术领域,尤其涉及一种协议计算方法、交换机、跨设备链路聚合系统及存储介质。The embodiments of the present application relate to but are not limited to the field of communication technologies, and in particular, relate to a protocol calculation method, a switch, a cross-device link aggregation system, and a storage medium.
背景技术Background technique
随着网络规模不断扩大,用户对骨干链路的带宽和可靠性提出了越来越高的要求。相关技术中,常用更换高速率的接口板或更换支持高速率接口板的设备的方式来增加带宽,但这种方式需要付出高额的费用,而且不够灵活。As the network scale continues to expand, users have higher and higher requirements for the bandwidth and reliability of backbone links. In related technologies, the bandwidth is often increased by replacing a high-speed interface board or a device supporting a high-speed interface board, but this method requires high costs and is not flexible enough.
采用MCLAG技术可以在不进行硬件升级的条件下,通过将多个物理接口捆绑为一个逻辑接口,来达到增加链路带宽的目的。在实现增大带宽目的的同时,链路聚合采用备份链路的机制,可以有效的提高设备之间链路的可靠性。The use of MCLAG technology can achieve the purpose of increasing link bandwidth by bundling multiple physical interfaces into one logical interface without hardware upgrades. While achieving the purpose of increasing the bandwidth, link aggregation adopts the mechanism of backup links, which can effectively improve the reliability of links between devices.
以网络中的交换机设备为例,由于跨设备链路聚合交换机系统在整个网络中被认为是逻辑上是一台设备,所以在从服务器侧与网关侧之间转发报文和进行协议交互的时候,以负载均衡的模式在跨设备链路聚合交换机系统中进行转发。而如果跨设备链路聚合交换机系统需要参与协议计算,则需要在两台跨设备链路聚合交换机之间进行实时的协议同步,这不仅会导致协议层面软件处理复杂度的增加,也会导致实时同步失败风险性的增加。Taking the switch device in the network as an example, since the cross-device link aggregation switch system is considered as a logical device in the entire network, when forwarding packets and performing protocol interaction between the server side and the gateway side , forwarding in the cross-device link aggregation switch system in load balancing mode. However, if the cross-device link aggregation switch system needs to participate in protocol calculation, real-time protocol synchronization between two cross-device link aggregation switches is required, which will not only increase the complexity of software processing at the protocol level, but also lead to real-time Increased risk of synchronization failures.
发明内容Contents of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics described in detail in this article. This summary is not intended to limit the scope of the claims.
本申请实施例提供了一种协议计算方法、交换机、跨设备链路聚合系统及存储介质,跨设备链路聚合系统中的备设备在获取协议报文后不经协议计算直接转发至主设备,主设备进行协议计算后再发送给备设备,完成主备设备间协议状态的同步,能够避免主备设备分别协议计算后频繁的同步,更加简单快速并准确无误地完成双活跨设备链路聚合系统的协议计算,提升网络的易用性和可靠性。The embodiment of the present application provides a protocol calculation method, a switch, a cross-device link aggregation system, and a storage medium. After obtaining the protocol message, the standby device in the cross-device link aggregation system directly forwards it to the master device without performing protocol calculation. The master device performs protocol calculation and then sends it to the backup device to complete the synchronization of the protocol status between the master and backup devices, which can avoid frequent synchronization of the master and backup devices after separate protocol calculations, and complete active-active cross-device link aggregation more simply, quickly and accurately The system's protocol calculation improves the usability and reliability of the network.
第一方面,本申请的实施例提供了一种协议计算方法,用于包括第一设备与第二设备的跨设备链路聚合设备系统,所述方法包括以下步骤:接收所述第二设备发送的第二协议报文;对所述第二协议报文进行协议计算,获得第二协议计算结果;发送所述第二协议计 算结果至所述第二设备。本方法中通过第一设备完成全部的协议计算并将协议计算结果发送至第二设备完成同步,使第二设备完全不参与协议计算,够避免两个设备分别协议计算后频繁的同步,更加简单快速并准确无误地完成双活跨设备链路聚合系统的协议计算,提升网络的易用性和可靠性。In the first aspect, the embodiment of the present application provides a protocol calculation method for a cross-device link aggregation device system including a first device and a second device, and the method includes the following steps: receiving performing protocol calculation on the second protocol message to obtain a second protocol calculation result; sending the second protocol calculation result to the second device. In this method, the first device completes all protocol calculations and sends the protocol calculation results to the second device to complete the synchronization, so that the second device does not participate in the protocol calculation at all, which can avoid frequent synchronization between the two devices after separate protocol calculations, and is simpler Quickly and accurately complete the protocol calculation of the active-active cross-device link aggregation system, improving the usability and reliability of the network.
第二方面,本申请的实施例提供了一种协议计算方法,用于包括第一设备与第二设备的跨设备链路聚合设备系统,所述方法包括以下步骤:发送第二协议报文至所述第一设备;接收所述第一设备计算后的协议计算结果,并进行同步。本方法中的第二设备不进行协议计算,仅进行协议的转发与协议计算结果的同步,降低了数据链路传输的时延丢失的可能性,提升了协议状态同步的成功率,更加简单快速并准确无误地完成双活跨设备链路聚合系统的协议计算,提升网络的易用性和可靠性。In the second aspect, the embodiment of the present application provides a protocol calculation method for an inter-device link aggregation device system including a first device and a second device, the method includes the following steps: sending the second protocol message to The first device: receiving the protocol calculation result calculated by the first device, and performing synchronization. The second device in this method does not perform protocol calculation, but only performs protocol forwarding and protocol calculation result synchronization, which reduces the possibility of data link transmission delay loss, improves the success rate of protocol state synchronization, and is simpler and faster And accurately complete the protocol calculation of the active-active cross-device link aggregation system to improve the usability and reliability of the network.
第三方面,本申请的实施例还提供了一种交换机,至少包括:包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现如第一方面或第二方面所述的协议计算方法。In the third aspect, the embodiments of the present application also provide a switch, at least including: a memory, a processor, and a computer program stored in the memory and operable on the processor, when the processor executes the program Realize the protocol calculation method as described in the first aspect or the second aspect.
第四方面,本申请的实施例还提供了一种跨设备链路聚合系统,包括第一设备与第二设备;所述第一电子设备包括:第一存储器、第一处理器及存储在第一存储器上并可在第一处理器上运行的计算机程序,所述第一处理器执行所述程序时实现如第一方面所述的协议计算方法;对应的,所述第二电子设备包括:第二存储器、第二处理器及存储在第二存储器上并可在第二处理器上运行的计算机程序,所述第二处理器执行所述程序时实现如第二方面所述的协议计算方法。In the fourth aspect, the embodiment of the present application also provides a cross-device link aggregation system, including a first device and a second device; the first electronic device includes: a first memory, a first processor, and a A computer program on a memory that can run on a first processor, when the first processor executes the program, implements the protocol computing method as described in the first aspect; correspondingly, the second electronic device includes: A second memory, a second processor, and a computer program stored on the second memory and operable on the second processor, when the second processor executes the program, the protocol calculation method as described in the second aspect is realized .
第五方面,本申请的实施例还提供了一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行如上所述第一方面或第二方面所述的协议计算方法。In the fifth aspect, the embodiments of the present application also provide a computer-readable storage medium, which stores computer-executable instructions, and the computer-executable instructions are used to execute the protocol described in the first aspect or the second aspect. Calculation method.
本申请的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本申请而了解。本申请的目的和其他优点可通过在说明书、权利要求书以及附图中所特别指出的结构来实现和获得。Additional features and advantages of the application will be set forth in the description which follows, and, in part, will be obvious from the description, or may be learned by practice of the application. The objectives and other advantages of the application will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
附图说明Description of drawings
图1为本申请一实施例提供的跨设备链路聚合交换机系统的协议同步框架示意图;FIG. 1 is a schematic diagram of a protocol synchronization framework of an inter-device link aggregation switch system provided by an embodiment of the present application;
图2为本申请一实施例提供的主设备协议计算方法的流程示意图;FIG. 2 is a schematic flowchart of a master device protocol calculation method provided by an embodiment of the present application;
图3为本申请另一实施例提供的备设备协议计算方法的流程示意图;以及FIG. 3 is a schematic flow chart of a method for calculating a backup device protocol provided by another embodiment of the present application; and
图4为本申请一实施例提供的跨设备链路聚合交换机系统的协议同步框架示意图。FIG. 4 is a schematic diagram of a protocol synchronization framework of an inter-device link aggregation switch system provided by an embodiment of the present application.
具体实施方式detailed description
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本 申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solutions and advantages of the application clearer, the application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, not to limit the present application.
需要说明的是,虽然在装置示意图中进行了功能模块划分,在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于装置中的模块划分,或流程图中的顺序执行所示出或描述的步骤。说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It should be noted that although the functional modules are divided in the schematic diagram of the device, and the logical sequence is shown in the flowchart, in some cases, it can be executed in a different order than the module division in the device or the flowchart in the flowchart. steps shown or described. The terms "first", "second" and the like in the specification and claims and the above drawings are used to distinguish similar objects, and not necessarily used to describe a specific sequence or sequence.
在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行。并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。The steps shown in the flowcharts of the figures may be performed in a computer system, such as a set of computer-executable instructions. Also, although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in an order different from that shown or described herein.
MCLAG是一种实现跨设备链路聚合的机制,将一台设备与另外两台设备进行跨设备链路聚合,从而把链路可靠性从单板级提高到了设备级,组成双活系统。进行链路聚合的设备不仅可以是交换机,也可以是路由器等其他网络设备。本申请实施例将采用交换机作为示例进行说明,但本领域技术人员知晓,本申请中涉及的协议计算方法在其他网络设备构成的跨设备链路聚合系统中同样适用。MCLAG is a mechanism for cross-device link aggregation. It performs cross-device link aggregation between one device and two other devices, thereby improving link reliability from the board level to the device level, forming a dual-active system. The device performing link aggregation can be not only a switch, but also other network devices such as routers. The embodiment of the present application will use a switch as an example for illustration, but those skilled in the art know that the protocol calculation method involved in the present application is also applicable to a cross-device link aggregation system composed of other network devices.
一般情况下,由于跨设备链路聚合交换机系统在整个网络中被认为是逻辑上是一台设备,所以在从服务器侧与网关侧之间转发报文和进行协议交互的时候,是按照负载均衡的模式在跨设备链路聚合交换机系统中转发的。In general, since the cross-device link aggregation switch system is considered as a logical device in the entire network, when forwarding packets and performing protocol interaction between the server side and the gateway side, it is based on load balancing The mode is forwarded in the inter-device link aggregation switch system.
而如果跨设备链路聚合交换机系统需要参与协议计算,则需要在两台跨设备链路聚合交换机系统之间进行协议同步,但这会带来诸多问题,例如协议层面软件处理复杂,即为了两台交换机设备之间实时同步状态机,需要在两台交换机设备之间运行私有消息或者私有报文,以传递协议状态机;同时,由于实时同步存在失败的可能性,当两台交换机设备之间实时同步状态机时,必然通过两台交换机设备之间的连接链路进行传递,而数据在链路中传递存在延时或丢失的可能性,进而影响协议状态机同步的成功率。However, if the cross-device link aggregation switch system needs to participate in the protocol calculation, it is necessary to synchronize the protocol between the two cross-device link aggregation switch systems, but this will bring many problems. Real-time synchronization of the state machine between two switch devices requires running private messages or private packets between the two switch devices to transmit the protocol state machine; at the same time, due to the possibility of failure in real-time synchronization, when two switch devices When the state machine is synchronized in real time, it must be transmitted through the connection link between the two switch devices, and the data may be delayed or lost in the transmission of the link, which will affect the success rate of the protocol state machine synchronization.
基于此,本申请实施例提供了一种协议计算方法,通过第一设备完成全部的协议计算并将协议计算结果发送至第二设备完成同步,使第二设备完全不参与协议计算,够避免两个设备分别协议计算后频繁的同步,降低了数据链路传输的时延丢失的可能性,提升了协议状态同步的成功率,更加简单快速并准确无误地完成双活跨设备链路聚合系统的协议计算,提升网络的易用性和可靠性。Based on this, the embodiment of the present application provides a protocol calculation method. The first device completes all protocol calculations and sends the protocol calculation results to the second device to complete synchronization, so that the second device does not participate in the protocol calculation at all, which can avoid two Frequent synchronization after separate protocol calculations of each device reduces the possibility of data link transmission delay loss, improves the success rate of protocol state synchronization, and completes the hyperactive-active cross-device link aggregation system more simply, quickly and accurately. Protocol computing improves the usability and reliability of the network.
下面结合附图,对本申请实施例作进一步阐述。The embodiments of the present application will be further described below in conjunction with the accompanying drawings.
图1为跨设备链路聚合交换机系统的协议同步框架示意图,描述了双活跨设备链路聚合交换机系统的工作原理。如图所示,交换机A和B组成一套双活跨设备链路聚合交换机 系统,其中交换机A是主设备,交换机B是备设备,交换机A接口A1和交换机B的接口B1组成跨设备聚合链路,与服务器C相连,服务器主用链路C1与交换机A的A1接口相连,服务器备用链路C2与交换机B的B1接口相连。交换机A的上行链路A2、交换机B的上行链路B2与网关设备G相连。FIG. 1 is a schematic diagram of a protocol synchronization framework of a cross-device link aggregation switch system, describing the working principle of a dual-active cross-device link aggregation switch system. As shown in the figure, switches A and B form a set of active-active cross-device link aggregation switch system, in which switch A is the master device, switch B is the backup device, and interface A1 of switch A and interface B1 of switch B form a cross-device aggregation chain The main link C1 of the server is connected to the A1 port of the switch A, and the backup link C2 of the server is connected to the B1 port of the switch B. The uplink A2 of the switch A and the uplink B2 of the switch B are connected to the gateway device G.
当网关G需要向服务器C发送数据流量时,基于负载均衡原理向交换机A、B发送协议报文与数据报文。实现负载均衡的算法包括哈希、一致性哈希、轮询调度、随机方式、纯动态结点负载均衡等,而本申请涉及的协议计算方法可基于任一负载均衡算法。此处以哈希算法为例,网关G将数据流量分别哈希到跨设备链路聚合交换机系统交换机A的A2接口和交换机B的B2接口,交换机A按照自身表项查表将去往服务器C的报文从A1口发出,交换机B按照自身表项查表将去往服务器C的报文从B1口发出,服务器C正确收到被分别两台交换机A、B负载均衡的两条数据流。When gateway G needs to send data traffic to server C, it sends protocol packets and data packets to switches A and B based on the principle of load balancing. Algorithms to achieve load balancing include hash, consistent hashing, round robin scheduling, random mode, pure dynamic node load balancing, etc., and the protocol calculation method involved in this application can be based on any load balancing algorithm. Here, the hash algorithm is taken as an example. Gateway G hashes the data traffic to the A2 interface of switch A and the B2 interface of switch B in the inter-device link aggregation switch system. The packet is sent from port A1. Switch B checks the table according to its own table and sends the packet to server C through port B1. Server C correctly receives the two data streams that are load-balanced by two switches A and B respectively.
第一方面,本申请实施例提供了一种协议计算方法,用于包括第一设备与第二设备的跨设备链路聚合设备系统,其中,第一设备为主设备,第二设备为备设备。图2为本申请一实施例提供的主设备协议计算方法的流程示意图。In the first aspect, the embodiment of the present application provides a protocol calculation method for a cross-device link aggregation device system including a first device and a second device, wherein the first device is the master device and the second device is the backup device . FIG. 2 is a schematic flowchart of a method for calculating a master device protocol provided by an embodiment of the present application.
如图2所示,本实施例提供的协议计算方法至少包括:As shown in Figure 2, the protocol calculation method provided in this embodiment at least includes:
步骤S100:接收第二设备发送的第二协议报文。Step S100: Receive a second protocol message sent by the second device.
在一些实施例中,经过负载均衡的数据报文与协议报文会被发送到主设备与备设备,由于备设备不会处理计算其中的协议报文,因此,备设备会将这些协议报文通过直连聚合peer-link接口转发给主设备,主设备接收这些由备设备转发的协议报文,并集中进行协议计算。In some embodiments, the load-balanced data packets and protocol packets will be sent to the master device and the backup device. Since the backup device will not process and calculate the protocol packets, the backup device will send these protocol packets The packets are forwarded to the master device through the directly aggregated peer-link interface. The master device receives the protocol packets forwarded by the backup device and performs protocol calculation in a centralized manner.
实现负载均衡的算法包括哈希、一致性哈希、轮询调度、随机方式、纯动态结点负载均衡等多种算法,而在上述实施例中,采用哈希算法。Algorithms for implementing load balancing include various algorithms such as hash, consistent hash, round-robin scheduling, random mode, and purely dynamic node load balancing. In the above-mentioned embodiments, the hash algorithm is used.
步骤S200:对第二协议报文进行协议计算,获得第二协议计算结果。Step S200: Perform protocol calculation on the second protocol packet to obtain a second protocol calculation result.
在一些实施例中,主设备CPU对接收到的备设备发送的第二协议报文进行协议计算,获得了第二协议计算结果。In some embodiments, the master device CPU performs protocol calculation on the received second protocol packet sent by the backup device, and obtains a second protocol calculation result.
在一些实施例中,基于负载均衡,主设备也会接收到协议报文,此时主设备CPU对主设备直接接收到的第一协议报文进行协议计算,获得了第一协议计算结果。In some embodiments, based on the load balancing, the master device will also receive the protocol packet. At this time, the CPU of the master device performs protocol calculation on the first protocol packet directly received by the master device, and obtains the first protocol calculation result.
值得注意的是,备设备仅对协议报文进行了转发,并没有对数据报文进行转发,即数据转发层面不会受到任何影响,所有的数据报文的转发仍然按照负载均衡的方式在两台交换机之间分担数据流量,这种方式能够使数据转发和协议计算在主备模式中分离,从而避免相互影响。It is worth noting that the standby device only forwards the protocol packets, but not the data packets, that is, the data forwarding layer will not be affected in any way, and all data packets are still forwarded in the load balancing manner. The data traffic is shared between switches, which can separate data forwarding and protocol calculation in active and standby mode, thereby avoiding mutual influence.
步骤S300:发送第二协议计算结果至第二设备。Step S300: Send the calculation result of the second protocol to the second device.
在一些实施例中,主设备通过直连聚合peer-l ink接口将第二协议计算结果发送至备设备,进而完成协议状态同步。In some embodiments, the master device sends the calculation result of the second protocol to the backup device through the direct-connect aggregated peer-link interface, thereby completing protocol state synchronization.
在一些实施例中,主设备完成协议计算,将产生表项写入主设备硬件表中,并通过协议状态同步,完成备设备硬件表的正确写入。In some embodiments, the master device completes the protocol calculation, writes the generated entries into the master device hardware table, and completes the correct writing of the slave device hardware table through protocol state synchronization.
根据本实施例的协议计算方法,主设备完成全部的协议计算并将协议计算结果发送至备设备完成同步,使备设备完全不参与协议计算,够避免两个设备分别协议计算后频繁的同步,更加简单快速并准确无误地完成双活跨设备链路聚合系统的协议计算,提升网络的易用性和可靠性。According to the protocol calculation method of this embodiment, the master device completes all the protocol calculations and sends the protocol calculation results to the backup device to complete synchronization, so that the backup device does not participate in the protocol calculation at all, which can avoid frequent synchronization between the two devices after separate protocol calculations. It is easier, faster and more accurate to complete the protocol calculation of the active-active cross-device link aggregation system, improving the usability and reliability of the network.
第二方面,本申请实施例提供了一种协议计算方法,用于包括第一设备与第二设备的跨设备链路聚合设备系统,其中,第一设备为主设备,第二设备为备设备。图3为本申请一实施例提供的备设备协议计算方法的流程示意图。In the second aspect, the embodiment of the present application provides a protocol calculation method for a cross-device link aggregation device system including a first device and a second device, wherein the first device is the master device and the second device is the backup device . FIG. 3 is a schematic flowchart of a method for calculating a protocol of a backup device provided by an embodiment of the present application.
如图3所示,本实施例提供的协议计算方法至少包括:As shown in Figure 3, the protocol calculation method provided in this embodiment at least includes:
步骤S400:发送第二协议报文至第一设备,其中,第二协议报文未经计算。Step S400: Send a second protocol packet to the first device, wherein the second protocol packet is not calculated.
在一些实施例中,备设备首先判断接收的报文是否包括协议报文,如果包含协议报文,则通过重定向将所述第二协议报文传送至直连聚合peer-link接口。In some embodiments, the standby device first determines whether the received packet includes a protocol packet, and if it includes a protocol packet, transmits the second protocol packet to the directly-connected aggregation peer-link interface through redirection.
值得注意的是,重定向有多种方式,可以为ACL(Access Control Lists,访问控制列表)或者能力关系表(Capabilities List)。本领域技术人员知晓,只要能够通过访问控制实现重定向的方式均在本申请协议计算方法的保护范围内。It is worth noting that there are many ways to redirect, which can be ACL (Access Control Lists, access control list) or capability relationship table (Capabilities List). Those skilled in the art know that any manner that can implement redirection through access control is within the scope of protection of the protocol computing method of the present application.
步骤S500:接收第一设备计算后的协议计算结果,并进行协议状态同步。Step S500: Receive the protocol calculation result calculated by the first device, and perform protocol state synchronization.
在一些实施例中,备设备通过直连聚合peer-link接口接收获得主设备下发的协议计算结果,并依据协议计算结果,完成备设备硬件表的正确写入,即协议状态同步。In some embodiments, the backup device receives and obtains the protocol calculation result issued by the master device through the directly-connected aggregation peer-link interface, and completes the correct writing of the hardware table of the backup device according to the protocol calculation result, that is, the protocol state synchronization.
根据本实施例的协议计算方法,备设备不进行协议计算,仅进行协议的转发与协议计算结果的同步,降低了数据链路传输的时延丢失的可能性,提升了协议状态同步的成功率,更加简单快速并准确无误地完成双活跨设备链路聚合系统的协议计算,提升网络的易用性和可靠性。According to the protocol calculation method of this embodiment, the backup device does not perform protocol calculation, but only performs protocol forwarding and protocol calculation result synchronization, which reduces the possibility of data link transmission delay loss and improves the success rate of protocol state synchronization , to complete the protocol calculation of the active-active cross-device link aggregation system more simply, quickly and accurately, and improve the usability and reliability of the network.
第三方面,本申请实施例提供了一种交换机,用于执行第一方面与第二方面所述的协议计算方法。In a third aspect, the embodiment of the present application provides a switch configured to implement the protocol calculation methods described in the first aspect and the second aspect.
在一些实施例中,交换机被分别设置为主设备与备设备,主备设备链路聚合形成了跨设备链路聚合交换机系统,主设备上运行第一方面所述的协议计算方法,备设备运行第二方面所述的协议计算方法。In some embodiments, the switch is set as a master device and a backup device respectively, the link aggregation of the master device and the backup device forms a cross-device link aggregation switch system, the protocol calculation method described in the first aspect runs on the master device, and the backup device runs The protocol calculation method described in the second aspect.
第四方面,本申请的实施例提供了一种跨设备链路聚合系统,包括主设备与备设备;其中,主设备包括:第一存储器、第一处理器及存储在第一存储器上并可在第一处理器上运行的计算机程序,所述第一处理器执行所述程序时实现如本申请实施例第一方面所述的协议计算方法;对应的,备设备包括:第二存储器、第二处理器及存储在第二存储器上并可在第二处理器上运行的计算机程序,所述第二处理器执行所述程序时实现如本申请实施例第二方面所述的协议计算方法。In a fourth aspect, an embodiment of the present application provides a cross-device link aggregation system, including a master device and a backup device; wherein, the master device includes: a first memory, a first processor, and a system stored in the first memory and capable of A computer program running on the first processor, when the first processor executes the program, implements the protocol calculation method described in the first aspect of the embodiment of the present application; correspondingly, the backup device includes: a second memory, a first A second processor and a computer program stored on the second memory and operable on the second processor, when the second processor executes the program, implements the protocol computing method described in the second aspect of the embodiment of the present application.
在一些实施例中,将跨设备链路聚合系统设置在整个网络环境中,形成跨设备链路聚合交换机系统的协议同步框架,如图4所示。In some embodiments, the cross-device link aggregation system is set in the entire network environment to form a protocol synchronization framework of the cross-device link aggregation switch system, as shown in FIG. 4 .
图4描述了本申请实施例提供的双活跨设备链路聚合交换机系统的工作原理。如图所示,交换机A和B组成一套双活跨设备链路聚合交换机系统,其中交换机A是主设备,交换机B是备设备,交换机A接口A1和交换机B的接口B1组成跨设备聚合链路,与服务器C相连,服务器主用链路C1与交换机A的A1接口相连,服务器备用链路C2与交换机B的B1接口相连。交换机A的上行链路A2、交换机B的上行链路B2与网关设备G相连。FIG. 4 describes the working principle of the active-active cross-device link aggregation switch system provided by the embodiment of the present application. As shown in the figure, switches A and B form a set of active-active cross-device link aggregation switch system, in which switch A is the master device, switch B is the backup device, and interface A1 of switch A and interface B1 of switch B form a cross-device aggregation chain The main link C1 of the server is connected to the A1 port of the switch A, and the backup link C2 of the server is connected to the B1 port of the switch B. The uplink A2 of the switch A and the uplink B2 of the switch B are connected to the gateway device G.
当网关G需要向服务器C发送数据流量时,基于负载均衡原理向交换机A、B发送协议报文与数据报文。实现负载均衡的算法包括哈希、一致性哈希、轮询调度、随机方式、纯动态结点负载均衡等,而本申请涉及的协议计算方法可基于任一负载均衡算法。此处以哈希算法为例,网关G将数据流量分别哈希到跨设备链路聚合交换机系统交换机A的A2接口和交换机B的B2接口,交换机A按照自身表项查表将去往服务器C的报文从A1口发出,交换机B按照自身表项查表将去往服务器C的报文从B1口发出,服务器C正确收到被分别两台交换机A、B负载均衡的两条数据流。When gateway G needs to send data traffic to server C, it sends protocol packets and data packets to switches A and B based on the principle of load balancing. Algorithms to achieve load balancing include hash, consistent hashing, round robin scheduling, random mode, pure dynamic node load balancing, etc., and the protocol calculation method involved in this application can be based on any load balancing algorithm. Here, the hash algorithm is taken as an example. Gateway G hashes the data traffic to the A2 interface of switch A and the B2 interface of switch B in the inter-device link aggregation switch system. The packet is sent from port A1. Switch B checks the table according to its own table and sends the packet to server C through port B1. Server C correctly receives the two data streams that are load-balanced by two switches A and B respectively.
在一些实施例中,当交换机B检测到协议报文时,会将协议报文直接转发至交换机A,即交换机B不会对协议报文有任何的计算解析动作,全部的协议计算由交换机A完成,交换机A协议计算后的结果,将通过直连聚合peer-link接口转发至交换机B,以实现两台交换机之间的协议状态同步。值得注意的是,交换机B仅对协议报文进行了转发,并没有对数据报文进行转发,即数据转发层面不会受到任何影响,所有的数据报文的转发仍然按照负载均衡的方式在两台交换机之间分担数据流量,这种方式能够使数据转发和协议计算在主备模式中分离,从而避免相互影响。In some embodiments, when switch B detects a protocol message, it will directly forward the protocol message to switch A, that is, switch B will not perform any calculation and analysis actions on the protocol message, and all protocol calculations will be performed by switch A. After completion, the result of the protocol calculation of Switch A will be forwarded to Switch B through the direct-connected aggregation peer-link interface, so as to realize the synchronization of the protocol state between the two switches. It is worth noting that switch B only forwards protocol packets and does not forward data packets, that is, the data forwarding level will not be affected in any way, and all data packets are still forwarded in the load-balanced manner. The data traffic is shared between switches, which can separate data forwarding and protocol calculation in active and standby mode, thereby avoiding mutual influence.
根据本实施例的跨设备链路聚合系统,通过第一设备完成全部的协议计算并将协议计算结果发送至第二设备完成同步,使第二设备完全不参与协议计算,够避免两个设备分别协议计算后频繁的同步,降低了数据链路传输的时延丢失的可能性,提升了协议状态同步的成功率,更加简单快速并准确无误地完成双活跨设备链路聚合系统的协议计算,提升网 络的易用性和可靠性。According to the cross-device link aggregation system of this embodiment, the first device completes all the protocol calculations and sends the protocol calculation results to the second device to complete the synchronization, so that the second device does not participate in the protocol calculation at all, which can avoid the separation of the two devices. Frequent synchronization after protocol calculation reduces the possibility of data link transmission delay loss, improves the success rate of protocol status synchronization, and completes the protocol calculation of the active-active cross-device link aggregation system more simply, quickly and accurately. Improve network usability and reliability.
第五方面,本申请的实施例还提供了一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行第一方面所述的协议计算方法;或,执行第二方面所述的协议计算方法。In the fifth aspect, the embodiments of the present application also provide a computer-readable storage medium, which stores computer-executable instructions, and the computer-executable instructions are used to execute the protocol calculation method described in the first aspect; or, execute the first aspect The protocol calculation method described in the second aspect.
以上所描述的装置实施例仅仅是示意性的,其中作为分离部件说明的单元可以是或者也可以不是物理上分开的,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The device embodiments described above are only illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
本领域普通技术人员可以理解,上文中所公开方法中的全部或某些步骤、系统、装置中的功能模块/单元可以被实施为软件、固件、硬件及其适当的组合。在硬件实施方式中,在以上描述中提及的功能模块/单元之间的划分不一定对应于物理组件的划分;例如,一个物理组件可以具有多个功能,或者一个功能或步骤可以由若干物理组件合作执行。某些物理组件或所有物理组件可以被实施为由处理器,如中央处理器、数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在计算机可读介质上,计算机可读介质可以包括计算机存储介质(或非暂时性介质)和通信介质(或暂时性介质)。如本领域普通技术人员公知的,术语计算机存储介质包括在用于存储信息(诸如计算机可读指令、数据结构、程序模块或其他数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。计算机存储介质包括但不限于RAM、ROM、EEPROM、闪存或其他存储器技术、CD-ROM、数字多功能盘(DVD)或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其他的介质。此外,本领域普通技术人员公知的是,通信介质通常包含计算机可读指令、数据结构、程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。移动终端设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载终端设备、可穿戴设备、超级移动个人计算机、上网本、个人数字助理、CPE、UFI(无线热点设备)等;本发明实施方案不作具体限定。Those of ordinary skill in the art can understand that all or some of the steps in the methods disclosed above, the functional modules/units in the system, and the device can be implemented as software, firmware, hardware, and an appropriate combination thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be composed of several physical components. Components cooperate to execute. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit . Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). As known to those of ordinary skill in the art, the term computer storage media includes both volatile and nonvolatile media implemented in any method or technology for storage of information, such as computer readable instructions, data structures, program modules, or other data. permanent, removable and non-removable media. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cartridges, tape, magnetic disk storage or other magnetic storage devices, or can Any other medium used to store desired information and which can be accessed by a computer. In addition, as is well known to those of ordinary skill in the art, communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media . The mobile terminal device can be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle-mounted terminal device, a wearable device, a super mobile personal computer, a netbook, a personal digital assistant, a CPE, a UFI (wireless hotspot device), etc.; Specific limits.
以上是对本申请的较佳实施进行了具体说明,但本申请并不局限于上述实施方式,熟悉本领域的技术人员在不违背本申请精神的前提下还可作出种种的等同变形或替换,这些等同的变形或替换均包含在本申请权利要求所限定的范围内。The above is a specific description of the preferred implementation of the application, but the application is not limited to the above-mentioned implementation, and those skilled in the art can also make various equivalent deformations or replacements without violating the spirit of the application. Equivalent modifications or replacements are all within the scope defined by the claims of the present application.

Claims (9)

  1. 一种协议计算方法,用于包括第一设备与第二设备的跨设备链路聚合设备系统,包括:A protocol calculation method for a cross-device link aggregation device system including a first device and a second device, comprising:
    接收所述第二设备发送的第二协议报文;receiving a second protocol packet sent by the second device;
    对所述第二协议报文进行协议计算,获得第二协议计算结果;以及performing protocol calculation on the second protocol message to obtain a second protocol calculation result; and
    发送所述第二协议计算结果至所述第二设备。Send the calculation result of the second protocol to the second device.
  2. 根据权利要求1所述的方法,还包括:The method according to claim 1, further comprising:
    接收第一协议报文;receiving the first protocol packet;
    对所述第一协议报文进行协议计算,获得第一协议计算结果;以及performing protocol calculation on the first protocol message to obtain a first protocol calculation result; and
    发送所述第一协议计算结果至所述第二设备。sending the calculation result of the first protocol to the second device.
  3. 根据权利要求2所述的方法,其中,所述第一协议报文与所述第二协议报文根据负载均衡原理获得。The method according to claim 2, wherein the first protocol packet and the second protocol packet are obtained according to a load balancing principle.
  4. 根据权利要求1-3任一项所述的方法,其中,所述第一设备与第二设备之间的报文传输通过直连聚合peer-link接口进行。The method according to any one of claims 1-3, wherein the message transmission between the first device and the second device is performed through a directly-connected aggregation peer-link interface.
  5. 一种协议计算方法,用于包括第一设备与第二设备的跨设备链路聚合设备系统,包括:A protocol calculation method for a cross-device link aggregation device system including a first device and a second device, comprising:
    发送第二协议报文至所述第一设备,所述第二协议报文未经计算;以及sending a second protocol packet to the first device, the second protocol packet is not calculated; and
    接收所述第一设备计算后的协议计算结果,并进行协议状态同步。The protocol calculation result calculated by the first device is received, and the protocol state is synchronized.
  6. 根据权利要求5所述的方法,还包括:The method according to claim 5, further comprising:
    判断接收的报文是否包括所述第二协议报文;以及judging whether the received packet includes the second protocol packet; and
    若是,则通过重定向将所述第二协议报文传送至直连聚合peer-link接口,发送至所述第一设备。If yes, the second protocol packet is sent to the directly-connected aggregation peer-link interface through redirection, and sent to the first device.
  7. 交换机,包括存储器、处理器及存储在存储器上并可在所述处理器上运行的计算机程序,其中所述处理器执行所述程序时实现如权利要求1至6中任一项所述的协议计算方法。A switch comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, wherein the processor implements the protocol according to any one of claims 1 to 6 when executing the program Calculation method.
  8. 跨设备链路聚合系统,包括第一设备与第二设备,其中:A cross-device link aggregation system, including a first device and a second device, wherein:
    所述第一设备包括:第一存储器、第一处理器及存储在第一存储器上并可在第一处理器上运行的计算机程序,所述第一处理器执行所述程序时实现如权利要求1至4中任一项所述的协议计算方法;The first device comprises: a first memory, a first processor, and a computer program stored on the first memory and operable on the first processor, when the first processor executes the program, it implements the claims The protocol calculation method described in any one of 1 to 4;
    对应的,所述第二设备包括:第二存储器、第二处理器及存储在第二存储器上并可在第二处理器上运行的计算机程序,所述第二处理器执行所述程序时实现如权利要求5至6 中任一项所述的协议计算方法。Correspondingly, the second device includes: a second memory, a second processor, and a computer program stored in the second memory and operable on the second processor. When the second processor executes the program, the The protocol computing method according to any one of claims 5 to 6.
  9. 一种计算机可读存储介质,存储有计算机可执行指令,其中所述计算机可执行指令用于执行如权利要求1至6中任一项所述的协议计算方法。A computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are used to execute the protocol computing method according to any one of claims 1 to 6.
PCT/CN2022/098762 2021-06-21 2022-06-14 Protocol calculation method, switch, cross-device link aggregation system, and storage medium WO2022267937A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110686533.XA CN115514698A (en) 2021-06-21 2021-06-21 Protocol calculation method, switch, cross-device link aggregation system and storage medium
CN202110686533.X 2021-06-21

Publications (1)

Publication Number Publication Date
WO2022267937A1 true WO2022267937A1 (en) 2022-12-29

Family

ID=84499156

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/098762 WO2022267937A1 (en) 2021-06-21 2022-06-14 Protocol calculation method, switch, cross-device link aggregation system, and storage medium

Country Status (2)

Country Link
CN (1) CN115514698A (en)
WO (1) WO2022267937A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117201518B (en) * 2023-11-08 2024-02-20 苏州元脑智能科技有限公司 Data transmission method, system, device, storage medium and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150188722A1 (en) * 2013-12-31 2015-07-02 International Business Machines Corporation Vlag pim multicast traffic load balancing
CN109088819A (en) * 2018-07-25 2018-12-25 新华三技术有限公司合肥分公司 A kind of message forwarding method, interchanger and computer readable storage medium
CN110708275A (en) * 2018-12-18 2020-01-17 新华三技术有限公司 Protocol message processing method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150188722A1 (en) * 2013-12-31 2015-07-02 International Business Machines Corporation Vlag pim multicast traffic load balancing
CN109088819A (en) * 2018-07-25 2018-12-25 新华三技术有限公司合肥分公司 A kind of message forwarding method, interchanger and computer readable storage medium
CN110708275A (en) * 2018-12-18 2020-01-17 新华三技术有限公司 Protocol message processing method and device

Also Published As

Publication number Publication date
CN115514698A (en) 2022-12-23

Similar Documents

Publication Publication Date Title
CN111740899B (en) ARP request message forwarding method, cross-device link aggregation group and network device
US9391877B2 (en) System and method for reducing information loss in an aggregated information handling system
WO2018077238A1 (en) Switch-based load balancing system and method
US9660901B2 (en) Systems and methods for forming and using a group of link aggregation groups to reduce traffic on interconnect links
WO2017070970A1 (en) Route determining method and corresponding apparatus and system
WO2023005773A1 (en) Message forwarding method and apparatus based on remote direct data storage, and network card and device
US9455916B2 (en) Method and system for changing path and controller thereof
WO2016173403A1 (en) Routing device, load balancing device, and message distribution method and system
US10511534B2 (en) Stateless distributed load-balancing
EP2605451B1 (en) Node controller link switching method, processor system and node
US9621412B2 (en) Method for guaranteeing service continuity in a telecommunication network and system thereof
US11218402B2 (en) Blockchain systems, and message transmission methods and apparatuses
WO2022267937A1 (en) Protocol calculation method, switch, cross-device link aggregation system, and storage medium
WO2021143610A1 (en) Method, apparatus and system for controlling flow entry
CN114553699A (en) Message transmission method, device, equipment and computer readable storage medium
WO2022057431A1 (en) Network simulation method and apparatus, device, and computer readable storage medium
CN112787939B (en) Method and device for updating path forwarding table
CN107483628B (en) DPDK-based one-way proxy method and system
CN105763442A (en) PON system and method avoiding interruption of LACP aggregation link in main-standby switching process
US10666499B2 (en) Fibre channel over ethernet (FCoE) pinning system
CN109413118B (en) Method, device, storage medium and program product for realizing session synchronization
US11108663B1 (en) Ring control data exchange system
WO2021244588A1 (en) Method for processing routing message, communication device, storage medium, and system
CN113259271B (en) Message switching method and message switching system
US9584444B2 (en) Routing communication between computing platforms

Legal Events

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

Ref document number: 22827433

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22827433

Country of ref document: EP

Kind code of ref document: A1