[go: up one dir, main page]

WO2021184862A1 - Message sending method, first network device, and network system - Google Patents

Message sending method, first network device, and network system Download PDF

Info

Publication number
WO2021184862A1
WO2021184862A1 PCT/CN2020/137034 CN2020137034W WO2021184862A1 WO 2021184862 A1 WO2021184862 A1 WO 2021184862A1 CN 2020137034 W CN2020137034 W CN 2020137034W WO 2021184862 A1 WO2021184862 A1 WO 2021184862A1
Authority
WO
WIPO (PCT)
Prior art keywords
network device
protocol
message
protocol message
member link
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2020/137034
Other languages
French (fr)
Chinese (zh)
Inventor
贺行健
谢经荣
段方红
王洪涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of WO2021184862A1 publication Critical patent/WO2021184862A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

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/02Topology update or discovery
    • H04L45/06Deflection routing, e.g. hot-potato routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/14Routing performance; Theoretical aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/16Multipoint routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • H04L61/103Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]

Definitions

  • This application relates to the field of communications, and in particular to a method for sending messages, a first network device, and a network system.
  • Link Aggregation Group (LAG) is a commonly used networking technology to increase bandwidth and improve link reliability.
  • Multichassis Link Aggregation Group (M-LAG) is an extension of LAG and is widely used in cross-device reliability protection scenarios.
  • M-LAG Multichassis Link Aggregation Group
  • one network device is connected to two or more network devices through multiple member links, and the multiple member links belong to the same M-LAG.
  • the network devices in the network architecture need to learn the forwarding entries.
  • learning forwarding entries requires additional deployment of synchronization protocols on network devices, which results in poor compatibility.
  • the embodiments of the present application provide a method for sending a message, a first network device, and a network system, which can realize the table entry learning of the network device in the M-LAG scenario without additional deployment of a synchronization protocol.
  • an embodiment of the present application provides a method for sending a message.
  • the method is applied to a first network device.
  • the first network device communicates with a second network device via a first member link.
  • the network device also communicates with a third network device via a second member link, and the first member link and the second member link belong to the same M-LAG.
  • the first network device, the second network device, and the third network device may be routers, switches, and so on.
  • the method includes the following steps: the first network device obtains a first protocol message, and determines whether the first protocol message is a protocol message for generating a forwarding entry. When the first protocol message is a protocol message used to generate a forwarding entry, the first network device copies the first protocol message to obtain a second protocol message.
  • the first network device sends the first protocol message to the second network device via the first member link, and sends the first protocol message to the third network device via the second member link.
  • Protocol messages Since the replication of the first protocol message does not require additional deployment of synchronization protocol implementation, compared with the current technology, the embodiment of the present application ensures that the second network device and the third network device can respectively generate forwarding entries according to the same protocol message. Under the premise, improve compatibility and reduce system overhead.
  • the determining, by the first network device, whether the first protocol message is a protocol message used to generate a forwarding entry includes: the first network device according to a preset field in the first protocol message The value of determines whether the first protocol message is a protocol message used to generate a forwarding entry.
  • the preset field is in a header of the first protocol message.
  • the preset field includes the protocol number field in the Ethernet packet header; or, the preset field includes the protocol number field in the Ethernet packet header, and Internet Protocol Version 6 (Internet Protocol).
  • IPv6 Internet Control Management Protocol Version 6
  • ICMPv6 Internet Control Management Protocol Version 6
  • the first protocol message is an Address Resolution Protocol (ARP) message, a Neighbor Discovery (ND) message, and an Internet Group Management Protocol (IGMP) message Or a Multicast Listener Discovery (MLD) message.
  • ARP Address Resolution Protocol
  • ND Neighbor Discovery
  • IGMP Internet Group Management Protocol
  • MLD Multicast Listener Discovery
  • the embodiments of the present application provide a first network device.
  • the first network device communicates with a second network device via a first member link, and the first network device also communicates with a second network device via a second member link.
  • the first member link and the second member link belong to the same cross-device link aggregation group;
  • the first network device includes: a processor configured to obtain a first protocol message , Determining whether the first protocol message is a protocol message for generating a forwarding entry, and when the first protocol message is a protocol message for generating a forwarding entry, copying the first protocol message Message to obtain a second protocol message; a transmitter, configured to send the first protocol message to the second network device via the first member link, and to send the first protocol message to the second network device via the second member link
  • the third network device sends the second protocol message.
  • the determining, by the first network device, whether the first protocol message is a protocol message used to generate a forwarding entry includes: the first network device according to a preset field in the first protocol message The value of determines whether the first protocol message is a protocol message used to generate a forwarding entry.
  • the preset field is in a header of the first protocol message.
  • the preset field includes the protocol number field in the Ethernet packet header; or, the preset field includes the protocol number field in the Ethernet packet header, and the Internet Protocol version 6 IPv6 packet The next header field of the header and the Internet Control Management Protocol version 6 ICMPv6 type field; or, the preset field includes the protocol field of the Internet Protocol IP header; or, the preset field includes the next header field of the IPv6 header And ICMPv6 type field.
  • the first protocol message is an address resolution protocol ARP message, a neighbor discovery ND message, an Internet Group Management Protocol IGMP message, or a multicast listener discovery MLD message.
  • an embodiment of the present application provides a network system, the network system includes a first network device, a second network device, and a third network device.
  • the first network device is the first network device in the second aspect.
  • a network device, the second network device is the first network device of the above second aspect, and the third network device is the third network device of the above second aspect.
  • an embodiment of the present application provides a computer-readable storage medium, which is characterized by including instructions, which when run on a computer, cause the computer to execute the message sending method of the first aspect.
  • FIG. 1 is a schematic structural diagram of a system 100 provided by an embodiment of the application.
  • FIG. 2 is a flowchart of a method for sending a message according to an embodiment of the application
  • FIG. 3 is a structural block diagram of a message sending device 300 provided by an embodiment of the application.
  • FIG. 4 is a schematic diagram of the hardware structure of the first network device 400 according to an embodiment of the application.
  • the forwarding entry in the M-LAG scenario requires an additional synchronization protocol to be deployed on the network device, and the compatibility is poor.
  • network device A is connected to network device B through member link 1 and connected to network device C through member link 2, and member link 1 and member link 2 belong to the same M-LAG. Since network device B and network device C respectively configure the same Internet Protocol (IP) address and Media Access Control (MAC) on the logical interfaces of their respective M-LAGs, for network device A Unaware network device B and network device C are two network devices, that is, from the point of view of network device A, network device B and network device C are one network device.
  • IP Internet Protocol
  • MAC Media Access Control
  • network device A when network device A sends a message, it needs to select a member link from member link 1 and member link 2 through a hash algorithm for forwarding.
  • the principle of the hash algorithm can be either a packet-by-packet hash or a stream-by-stream hash.
  • the so-called packet-by-packet hashing means that when a packet is sent on the LAG port, the LAG member link for each packet is calculated and selected to send the packet.
  • the purpose of this method is to balance the load of each member link. When the bandwidth of each member link is different, the bandwidth can also be used as a factor in the hash algorithm to realize the load distribution of the member links according to the bandwidth.
  • the packet-by-packet hashing method will cause multiple packets of the same flow to be transmitted through different member links of the LAG, which will cause the problem of packet disorder.
  • the so-called flow-by-flow hashing means that the same member link of the LAG is selected for transmission of the packets of the same flow, thereby avoiding the problem of out-of-sequence of packets in the same flow transmission process of the packet-by-packet hashing.
  • the flow-by-stream hashing method is basically adopted.
  • each message is sent through only one member link, including protocol messages used to generate forwarding entries. For example, if the network device A determines to send a certain protocol message through the member link connected to the network device B, the network device C cannot receive the protocol message. Since the protocol message is used to generate forwarding entries, it will cause the problem that only network device B generates forwarding entries, but network device C cannot generate forwarding entries. Since the network device C has not learned the forwarding entry, when the network device C needs to send a data message to the network device A, the corresponding forwarding entry cannot be found, so that the forwarding of the data message cannot be realized.
  • the embodiments of the present application provide a message sending method and device, which can realize the table entry learning of the network device in the M-LAG scenario without additional deployment of a synchronization protocol.
  • FIG. 1 is a schematic structural diagram of a system 100 provided by an embodiment of the application.
  • the system 100 includes a network device 101, a network device 102 and a network device 103.
  • the network device 101 is connected to the network device 102 via the member link set L1, and the network device 101 is also connected to the network device 103 via the member link set L2.
  • the member link set L1 includes one or more member links
  • the member link set L2 also includes one or more member links.
  • the member links in the member link set L1 and the member links in the member link set L2 belong to the same M-LAG.
  • the network device 101, the network device 102, and the network device 103 may be routers, switches, access devices, gateways, etc., which are not limited in the embodiment of the present application.
  • the network device 101 is connected to a terminal device and serves as a user-side access device; the network device 102 and the network device 103 serve as a user gateway.
  • the network device 101 can send the uplink data message from the terminal device to the network device 102 or the network device 103; the network device 102 or the network device 103 can send the downlink data message to the network device 101, and the network device 101 forwards it to the terminal equipment.
  • both the network device 102 and the network device 103 are in a dual-active state (Active-Active), that is, both can work normally.
  • the network device 101 may send a protocol message to the network device 102 and the network device 103, and the protocol message is used to generate corresponding forwarding entries in the network device 102 and the network device 103, so that the network device 102 and the network device 103 forward the data message to the network device 101 according to the forwarding entry.
  • FIG. 2 is a flowchart of a method for sending a message according to an embodiment of the application.
  • the message sending method provided by the embodiment of the present application includes the following steps:
  • the first network device obtains the first protocol message.
  • the first network device may be, for example, the network device 101 in the embodiment shown in FIG. 1.
  • the manner in which the first network device obtains the first protocol message may be that the first network device generates the first protocol message itself, or may receive the first protocol message from other devices.
  • the first network device determines whether the first protocol message is a protocol message used to generate a forwarding entry.
  • the protocol message used to generate the forwarding entry may be a protocol message used for unicast services, for example, an address resolution protocol (ARP) message or a neighbor discovery (Neighbor Discovery, ND) messages, etc.; the protocol messages used to generate forwarding entries can also be protocol messages used for multicast services, such as Internet Group Management Protocol (IGMP) messages or multicast listeners Discovery (Multicast Listener Discovery, MLD) messages, etc.
  • ARP address resolution protocol
  • ND neighbor discovery
  • IGMP Internet Group Management Protocol
  • MLD Multicast Listener Discovery
  • the first network device may determine whether the first protocol message is a protocol message used to generate a forwarding entry according to the value of a preset field in the first protocol message.
  • the preset field may be in the header of the first protocol message.
  • the preset field can be one field or multiple fields.
  • the preset field may be the protocol number field of the Ethernet packet header.
  • the value of the protocol number field is the protocol number of the first protocol message.
  • the value of the protocol number field is 0x0806, it indicates that the first protocol message
  • the message is an ARP message.
  • the preset field may be the protocol number field of the Ethernet packet header, the next header field of the Internet Protocol version 6 (IPv6) packet header, and the Internet Control Management Protocol Version 6 (Internet Control Management Protocol Version 6, ICMPv6) type field, when the value of the protocol number field of the Ethernet header is 0x86DD, the value of the next header field of the IPv6 header is 58, and the value of the ICMPv6 type field When it is 135 or 136, it indicates that the first protocol message is an ND message.
  • IPv6 Internet Protocol version 6
  • ICMPv6 type field when it is 0x86DD, the value of the next header field of the IPv6 header is 58, and the value of the ICMPv6 type field When it is 135 or 136, it indicates that the first protocol message is an ND message.
  • the preset field may also be the protocol field of the IP message header.
  • the value of the protocol field of the IP message header is 2, it indicates that the first protocol message is an IGMP message.
  • the preset fields can also be the next header field and the ICMPv6 type field of the IPv6 header.
  • the value of the next header field of the IPv6 header is 58, it means that the first protocol message is an ICMPv6 message.
  • ICMPv6 When the value of the type field of the message header is 130, 131, or 132, it indicates that the first protocol message is an MLD message.
  • the first network device sends the first protocol message to the second network device via the first member link, and sends the first protocol message to the third network device via the second member link. 2. Protocol messages.
  • the second network device is, for example, the network device 102 in the embodiment shown in FIG. 1
  • the third network device is, for example, the network device 103 in the embodiment shown in FIG. 1.
  • the first network device may be dual-homed to the second network device and the third network device.
  • the first member link may be one of the one or more member links connected between the first network device and the second network device.
  • the second member link may be one of the member links of the one or more member links connected between the first network device and the third network device.
  • One or more member links (including the first member link) connecting the first network device and the second network device, and one or more member links (including the second member link) connecting the first network device and the third network device Member links) belong to the same M-LAG. In other words, for the first network device, the second network device and the third network device are not perceived.
  • the first network device When the first network device confirms that the first protocol message is a protocol message for generating a forwarding entry, the first network device copies the first protocol message to obtain the second protocol message. In addition, the first network device sends the first protocol message to the second network device through the first member link to trigger the second network device to generate a corresponding forwarding entry according to the first protocol message. The first network device also sends a second protocol message to the third network device through the second member link to trigger the third network device to generate a corresponding forwarding entry according to the second protocol message.
  • the first network device may also send the first network device to the second network device through the other member links.
  • Protocol message For example, if there are two member links between the first network device and the second network device, that is, the first member link and the third member link, then the first network device can copy the first protocol message to obtain the third protocol message. And send the first protocol message to the second network device through the first member link, and send the third protocol message to the second network device through the third member link. The same is true when there are other member links between the first network device and the third network device in addition to the second member link, which will not be repeated here.
  • the embodiment of this application ensures that the second network device and the third network device can generate forwarding tables respectively according to the same protocol message. Under the premise of the item, improve compatibility and reduce system overhead.
  • the network devices connected to the first network device may be more than the second network device and the third network device, that is, the first network device can be connected to other network devices in a multi-homing manner, and the first network device can be connected to other network devices.
  • the member link between the network device and other network devices and the member link with the first network device or the member link with the second network device all belong to the same M-LAG.
  • the second network device and the third network device may be regarded as two of the plurality of network devices connected to the first network device.
  • the first network device may respectively send to each network device the protocol message obtained by copying the first protocol message.
  • the network device connected to the first network device further includes a fourth network device, and the first network device and the fourth network device are connected through a fourth member link, then the first network device can copy the first protocol message to obtain the first network device.
  • Four protocol messages and send the fourth protocol message to the fourth network device through the fourth member link.
  • S205 The second network device generates a first forwarding entry according to the first protocol message.
  • the first forwarding entries generated by different types of first protocol messages include different contents.
  • the first forwarding table entry includes the mapping relationship between the destination IP address and the destination MAC address.
  • the second network device obtains the source IP address and the source MAC address from the ARP message, and stores the source IP address as the destination IP address in the first forwarding table entry, and stores the source MAC address as the first forwarding table entry The destination MAC address in.
  • the first forwarding table entry includes the mapping relationship between the multicast source address, the multicast group address, and the outbound interface number.
  • the second network device obtains the multicast source address and the multicast group address from the IGMP message, and obtains the interface number of the interface that receives the IGMP message, and according to the multicast source address and multicast group address
  • a first forwarding entry is generated with the interface number, and the outgoing interface number in the first forwarding entry is the interface number of the interface through which the second network device receives the IGMP message.
  • the third network device generates a second forwarding entry according to the second protocol message.
  • the specific details of the second forwarding entry generated by the third network device are similar to the first forwarding entry generated by the second network device, and will not be repeated here.
  • FIG. 3 is a structural block diagram of a message sending apparatus 300 provided by an embodiment of the application.
  • the message sending apparatus 300 is used to implement the function of the first network device in the embodiment shown in FIG. 2.
  • the message sending device 300 includes a processing unit 301 and a sending unit 302.
  • the processing unit 301 is used to execute S201-S203 in the embodiment shown in FIG. 2, and the sending unit 302 is used to execute S204 in the embodiment shown in FIG. 2.
  • the processing unit 301 is configured to obtain a first protocol message, and determine whether the first protocol message is a protocol message used to generate a forwarding entry, and when the first protocol message is used to generate a forwarding table When the protocol message of the item is selected, copy the first protocol message to obtain the second protocol message.
  • the sending unit 302 is configured to send the first protocol message to the second network device via the first member link, and send the first protocol message to the third network device via the second member link 2. Protocol messages.
  • FIG. 4 is a schematic diagram of the hardware structure of the first network device 400 according to an embodiment of the application.
  • the first network device 400 shown in FIG. 4 can execute the corresponding steps performed by the first network device in the method of the foregoing embodiment and the function of the first network device 300 in the embodiment shown in FIG. 3.
  • the first network device 400 includes a processor 401, a memory 402, an interface 403, and a bus 404.
  • the interface 403 may be implemented in a wireless or wired manner, and specifically may be a network card.
  • the aforementioned processor 401, memory 402, and interface 403 are connected through a bus 404.
  • the interface 403 may specifically include a transmitter and a receiver, which are used to send and receive information between the first network device and the second network device and the third network device in the foregoing embodiment.
  • the interface 403 is used to support sending a first protocol packet to the second network device; and/or used to support sending a second protocol packet to the third network device.
  • the processor 401 is configured to execute the processing performed by the first network device in the foregoing embodiment.
  • the processor 401 is configured to support S201-S203 in FIG. 2.
  • the memory 402 includes an operating system and application programs, and is used to store programs, codes, or instructions. When a processor or hardware device executes these programs, codes, or instructions, the processing process involving the first network device in the method embodiment can be completed.
  • the memory 402 may include a read-only memory (English: Read-only Memory, abbreviation: ROM) and a random access memory (English: Random Access Memory, abbreviation: RAM).
  • ROM includes a basic input/output system (English: Basic Input/Output System, abbreviation: BIOS) or an embedded system;
  • BIOS Basic Input/Output System
  • the RAM includes an application program and an operating system.
  • BIOS Basic Input/Output System
  • the system is booted by the BIOS solidified in the ROM or the bootloader in the embedded system to guide the first network device 400 into a normal operating state.
  • the application program and the operating system run in the RAM, thereby completing the processing procedure involving the first network device in the method embodiment.
  • FIG. 4 only shows a simplified design of the first network device 400.
  • the first network device may include any number of interfaces, processors or memories.
  • an embodiment of the present application also provides a network system, which includes the first network device, the second network device, and the third network device in the embodiment shown in FIG. 2 or FIG. 3.
  • the embodiment of the present application provides a computer-readable storage medium, which is characterized by including instructions, which when run on a computer, cause the computer to execute the message sending method executed by the first network device in the embodiment shown in FIG. 2 .
  • At least one item (a) refers to one or more, and “multiple” refers to two or more.
  • the following at least one item (a)” or similar expressions refers to any combination of these items, including any combination of a single item (a) or a plurality of items (a).
  • at least one item (a) of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple .
  • “A and/or B” is considered to include A alone, B alone, and A+B.
  • the disclosed system, device, and method can be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the units is only a logical module division, and there may be other divisions in actual implementation, for example, multiple units or components may be combined or It can be integrated into another system, or some features can be ignored or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be acquired according to actual needs to achieve the objectives of the solutions of the embodiments.
  • each module unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit can be implemented in the form of hardware or in the form of a software module unit.
  • the integrated unit is implemented in the form of a software module unit and sold or used as an independent product, it can be stored in a computer readable storage medium.
  • the technical solution of the present application essentially or the part that contributes to the existing technology or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , Including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disks or optical disks and other media that can store program codes. .
  • the functions described in the present invention can be implemented by hardware, software, firmware, or any combination thereof.
  • these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on the computer-readable medium.
  • the computer-readable medium includes a computer storage medium and a communication medium, where the communication medium includes any medium that facilitates the transfer of a computer program from one place to another.
  • the storage medium may be any available medium that can be accessed by a general-purpose or special-purpose computer.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

Disclosed in embodiments of the present application are a message sending method, a first network device, and a network system, which can implement entry learning of a network device under an M-LAG scene without additionally deploying a synchronous protocol. The method is applied to a first network device; the first network device communicates with a second network device by means of a first member link, and communicates with a third network device by means of a second member link, the first member link and the second member link belonging to the same multichassis link aggregation group. The method comprises: the first network device obtains a first protocol message; the first network device determines whether the first protocol message is a protocol message for generating a forwarding entry; when the first protocol message is the protocol message for generating the forwarding entry, the first network device duplicates the first protocol message to obtain a second protocol message; the first network device sends the first protocol message to the second network device by means of the first member link, and sends the second protocol message to the third network device by means of the second member link.

Description

一种报文发送方法、第一网络设备及网络系统Message sending method, first network equipment and network system

本申请要求于2020年3月19日提交中国国家知识产权局、申请号为202010195519.5、发明名称为“一种报文发送方法、第一网络设备及网络系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the State Intellectual Property Office of China, the application number is 202010195519.5, and the invention title is "a method for sending messages, the first network device and network system" on March 19, 2020. The entire content is incorporated into this application by reference.

技术领域Technical field

本申请涉及通信领域,特别是涉及一种报文发送方法、第一网络设备及网络系统。This application relates to the field of communications, and in particular to a method for sending messages, a first network device, and a network system.

背景技术Background technique

链路聚合组(Link Aggregation Group,LAG)是一种常用的增加带宽、提高链路可靠性的组网技术。跨设备链路聚合组(Multichassis Link Aggregation Group,M-LAG)是LAG的一种扩展,被广泛应用于跨设备的可靠性保护场景。在M-LAG的网络架构中,一个网络设备通过多条成员链路与两个或两个以上的网络设备连接,该多条成员链路属于相同的M-LAG。Link Aggregation Group (LAG) is a commonly used networking technology to increase bandwidth and improve link reliability. Multichassis Link Aggregation Group (M-LAG) is an extension of LAG and is widely used in cross-device reliability protection scenarios. In the M-LAG network architecture, one network device is connected to two or more network devices through multiple member links, and the multiple member links belong to the same M-LAG.

在通过M-LAG的网络架构转发报文之前,网络架构中的网络设备需要进行转发表项的学习。目前,学习转发表项需要在网络设备上额外部署同步协议,兼容性较差。Before forwarding the message through the M-LAG network architecture, the network devices in the network architecture need to learn the forwarding entries. At present, learning forwarding entries requires additional deployment of synchronization protocols on network devices, which results in poor compatibility.

发明内容Summary of the invention

本申请实施例提供了一种报文发送方法、第一网络设备及网络系统,不需要额外部署同步协议就可以实现在M-LAG场景下网络设备的表项学习。The embodiments of the present application provide a method for sending a message, a first network device, and a network system, which can realize the table entry learning of the network device in the M-LAG scenario without additional deployment of a synchronization protocol.

第一方面,本申请实施例提供了一种报文发送方法,所述方法应用于第一网络设备,所述第一网络设备经由第一成员链路与第二网络设备通信,所述第一网络设备还经由第二成员链路与第三网络设备通信,所述第一成员链路与所述第二成员链路属于相同的M-LAG。第一网络设备、第二网络设备、第三网络设备可以是路由器、交换机等。所述方法包括如下步骤:所述第一网络设备获取第一协议报文,确定所述第一协议报文是否为用于生成转发表项的协议报文。当所述第一协议报文为用于生成转发表项的协议报文时,所述第一网络设备复制所述第一协议报文,得到第二协议报文。所述第一网络设备经由所述第一成员链路向所述第二网络设备发送所述第一协议报文,并经由所述第二成员链路向所述第三网络设备发送所述第二协议报文。由于复制第一协议报文不需要额外部署同步协议实现,所以相对于目前的技术,本申请实施例在保证第二网络设备和第三网络设备能够根据相同的协议报文分别生成转发表项的前提下,提高兼容性,以及减少系统开销。In the first aspect, an embodiment of the present application provides a method for sending a message. The method is applied to a first network device. The first network device communicates with a second network device via a first member link. The network device also communicates with a third network device via a second member link, and the first member link and the second member link belong to the same M-LAG. The first network device, the second network device, and the third network device may be routers, switches, and so on. The method includes the following steps: the first network device obtains a first protocol message, and determines whether the first protocol message is a protocol message for generating a forwarding entry. When the first protocol message is a protocol message used to generate a forwarding entry, the first network device copies the first protocol message to obtain a second protocol message. The first network device sends the first protocol message to the second network device via the first member link, and sends the first protocol message to the third network device via the second member link. 2. Protocol messages. Since the replication of the first protocol message does not require additional deployment of synchronization protocol implementation, compared with the current technology, the embodiment of the present application ensures that the second network device and the third network device can respectively generate forwarding entries according to the same protocol message. Under the premise, improve compatibility and reduce system overhead.

可选的,所述第一网络设备确定所述第一协议报文是否为用于生成转发表项的协议报文包括:所述第一网络设备根据所述第一协议报文中预设字段的值确定所述第一协议报文是否为用于生成转发表项的协议报文。可选的,所述预设字段在所述第一协议报文的报文头中。可选的,所述预设字段包括以太网报文头中的协议号字段;或,所述预设字段包括所述以太网报文头中的协议号字段、互联网协议第六版(Internet Protocol version 6, IPv6)报文头的下一个报文头(next header)字段和互联网控制管理协议第六版(Internet Control Management Protocol Version 6,ICMPv6)类型字段;或,预设字段包括互联网协议IP报文头的协议字段;或,预设字段包括IPv6报文头的next header字段和ICMPv6类型字段。相关例子可以参见具体实施方式部分,此处不再赘述。Optionally, the determining, by the first network device, whether the first protocol message is a protocol message used to generate a forwarding entry includes: the first network device according to a preset field in the first protocol message The value of determines whether the first protocol message is a protocol message used to generate a forwarding entry. Optionally, the preset field is in a header of the first protocol message. Optionally, the preset field includes the protocol number field in the Ethernet packet header; or, the preset field includes the protocol number field in the Ethernet packet header, and Internet Protocol Version 6 (Internet Protocol). version 6, IPv6) The next header field of the message header and the Internet Control Management Protocol Version 6 (Internet Control Management Protocol Version 6, ICMPv6) type field; or, the preset field includes the Internet Protocol IP message The protocol field of the header; or, the preset fields include the next header field and the ICMPv6 type field of the IPv6 header. For related examples, please refer to the specific implementation section, which will not be repeated here.

可选的,所述第一协议报文为地址解析协议(Address Resolution Protocol,ARP)报文、邻居发现(Neighbor Discovery,ND)报文、因特网组管理协议(Internet Group Management Protocol,IGMP)报文或组播侦听者发现(Multicast Listener Discovery,MLD)报文。当然,上述四种报文并不是对本申请中第一协议报文的协定,本领域技术人员还可以根据实际情况自行确定。Optionally, the first protocol message is an Address Resolution Protocol (ARP) message, a Neighbor Discovery (ND) message, and an Internet Group Management Protocol (IGMP) message Or a Multicast Listener Discovery (MLD) message. Of course, the above four types of messages are not agreements on the first protocol message in this application, and those skilled in the art can also determine by themselves according to actual conditions.

第二方面,本申请实施例提供了一种第一网络设备,所述第一网络设备经由第一成员链路与第二网络设备通信,所述第一网络设备还经由第二成员链路与第三网络设备通信,所述第一成员链路与所述第二成员链路属于相同的跨设备链路聚合组;所述第一网络设备包括:处理器,用于获取第一协议报文,确定所述第一协议报文是否为用于生成转发表项的协议报文,当所述第一协议报文为用于生成转发表项的协议报文时,复制所述第一协议报文,得到第二协议报文;发送器,用于经由所述第一成员链路向所述第二网络设备发送所述第一协议报文,并经由所述第二成员链路向所述第三网络设备发送所述第二协议报文。In the second aspect, the embodiments of the present application provide a first network device. The first network device communicates with a second network device via a first member link, and the first network device also communicates with a second network device via a second member link. For communication with a third network device, the first member link and the second member link belong to the same cross-device link aggregation group; the first network device includes: a processor configured to obtain a first protocol message , Determining whether the first protocol message is a protocol message for generating a forwarding entry, and when the first protocol message is a protocol message for generating a forwarding entry, copying the first protocol message Message to obtain a second protocol message; a transmitter, configured to send the first protocol message to the second network device via the first member link, and to send the first protocol message to the second network device via the second member link The third network device sends the second protocol message.

可选的,所述第一网络设备确定所述第一协议报文是否为用于生成转发表项的协议报文包括:所述第一网络设备根据所述第一协议报文中预设字段的值确定所述第一协议报文是否为用于生成转发表项的协议报文。Optionally, the determining, by the first network device, whether the first protocol message is a protocol message used to generate a forwarding entry includes: the first network device according to a preset field in the first protocol message The value of determines whether the first protocol message is a protocol message used to generate a forwarding entry.

可选的,所述预设字段在所述第一协议报文的报文头中。Optionally, the preset field is in a header of the first protocol message.

可选的,所述预设字段包括以太网报文头中的协议号字段;或,所述预设字段包括所述以太网报文头中的协议号字段、互联网协议第六版IPv6报文头的下一个报文头字段和互联网控制管理协议第六版ICMPv6类型字段;或,预设字段包括互联网协议IP报文头的协议字段;或,预设字段包括IPv6报文头的next header字段和ICMPv6类型字段。Optionally, the preset field includes the protocol number field in the Ethernet packet header; or, the preset field includes the protocol number field in the Ethernet packet header, and the Internet Protocol version 6 IPv6 packet The next header field of the header and the Internet Control Management Protocol version 6 ICMPv6 type field; or, the preset field includes the protocol field of the Internet Protocol IP header; or, the preset field includes the next header field of the IPv6 header And ICMPv6 type field.

可选的,所述第一协议报文为地址解析协议ARP报文、邻居发现ND报文、因特网组管理协议IGMP报文或组播侦听者发现MLD报文。Optionally, the first protocol message is an address resolution protocol ARP message, a neighbor discovery ND message, an Internet Group Management Protocol IGMP message, or a multicast listener discovery MLD message.

第三方面,本申请实施例提供了一种网络系统,所述网络系统包括第一网络设备、第二网络设备和第三网络设备,所述第一网络设备为上述第二方面的所述第一网络设备,所述第二网络设备为上述第二方面的所述第一网络设备,所述第三网络设备为上述第二方面的所述第三网络设备。In a third aspect, an embodiment of the present application provides a network system, the network system includes a first network device, a second network device, and a third network device. The first network device is the first network device in the second aspect. A network device, the second network device is the first network device of the above second aspect, and the third network device is the third network device of the above second aspect.

第四方面,本申请实施例提供了一种计算机可读存储介质,其特征在于,包括指令,当其在计算机上运行时,使得计算机执行上述第一方面的报文发送方法。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which is characterized by including instructions, which when run on a computer, cause the computer to execute the message sending method of the first aspect.

附图说明Description of the drawings

图1为本申请实施例提供的系统100的结构示意图;FIG. 1 is a schematic structural diagram of a system 100 provided by an embodiment of the application;

图2为本申请实施例提供的报文发送方法的流程图;FIG. 2 is a flowchart of a method for sending a message according to an embodiment of the application;

图3为本申请实施例提供的一种报文发送装置300的结构框图;FIG. 3 is a structural block diagram of a message sending device 300 provided by an embodiment of the application;

图4为本申请实施例的第一网络设备400的硬件结构示意图。FIG. 4 is a schematic diagram of the hardware structure of the first network device 400 according to an embodiment of the application.

具体实施方式Detailed ways

目前的技术,M-LAG场景下的转发表项需要在网络设备上额外部署同步协议,兼容性较差。With the current technology, the forwarding entry in the M-LAG scenario requires an additional synchronization protocol to be deployed on the network device, and the compatibility is poor.

例如,网络设备A通过成员链路1与网络设备B连接,并通过成员链路2与网络设备C连接,成员链路1和成员链路2属于相同的M-LAG。由于网络设备B和网络设备C分别在各自的M-LAG的逻辑接口上配置相同的互联网协议(Internet Protocol,IP)地址和媒体访问控制(Media Access Control,MAC),所以对于网络设备A而言不感知网络设备B和网络设备C是两个网络设备,即在网络设备A看来,网络设备B和网络设备C是一个网络设备。For example, network device A is connected to network device B through member link 1 and connected to network device C through member link 2, and member link 1 and member link 2 belong to the same M-LAG. Since network device B and network device C respectively configure the same Internet Protocol (IP) address and Media Access Control (MAC) on the logical interfaces of their respective M-LAGs, for network device A Unaware network device B and network device C are two network devices, that is, from the point of view of network device A, network device B and network device C are one network device.

目前,网络设备A在发送报文时,需要通过哈希(hash)算法从成员链路1和成员链路2中选出一条成员链路进行转发。哈希算法的原理可以是逐包哈希,也可以是逐流哈希。Currently, when network device A sends a message, it needs to select a member link from member link 1 and member link 2 through a hash algorithm for forwarding. The principle of the hash algorithm can be either a packet-by-packet hash or a stream-by-stream hash.

所谓逐包哈希是指报文在LAG口上发送时,对每个报文分别计算选择发送该报文的LAG成员链路,这种方式的目的是使得各条成员链路负载均衡。当各条成员链路的带宽不同时,哈希算法中也可以将带宽作为其中的因子,实现根据带宽对成员链路的负载进行分配。逐包哈希方式会导致同一条流的多个报文通过LAG的不同成员链路传输,从而引起报文乱序的问题。The so-called packet-by-packet hashing means that when a packet is sent on the LAG port, the LAG member link for each packet is calculated and selected to send the packet. The purpose of this method is to balance the load of each member link. When the bandwidth of each member link is different, the bandwidth can also be used as a factor in the hash algorithm to realize the load distribution of the member links according to the bandwidth. The packet-by-packet hashing method will cause multiple packets of the same flow to be transmitted through different member links of the LAG, which will cause the problem of packet disorder.

所谓逐流哈希是对于同一个流的报文会选择LAG的同一个成员链路进行发送,从而避免了逐包哈希方式的同一个流传输过程中报文乱序的问题。实际现网部署中,基本都是采用逐流哈希方式。The so-called flow-by-flow hashing means that the same member link of the LAG is selected for transmission of the packets of the same flow, thereby avoiding the problem of out-of-sequence of packets in the same flow transmission process of the packet-by-packet hashing. In actual live network deployment, the flow-by-stream hashing method is basically adopted.

不管采取上述哪种哈希算法,每个报文都只通过一条成员链路发送,包括用于生成转发表项的协议报文。例如网络设备A如果确定通过与网络设备B连接的成员链路发送某个协议报文,那么网络设备C就接收不到该协议报文。由于该协议报文是用于生成转发表项的,那么就会导致只有网络设备B生成转发表项,而网络设备C无法生成转发表项的问题。由于网络设备C没有学习到转发表项,那么当网络设备C需要向网络设备A发送数据报文时,就无法查到对应的转发表项,从而无法实现数据报文的转发。Regardless of the above-mentioned hash algorithm, each message is sent through only one member link, including protocol messages used to generate forwarding entries. For example, if the network device A determines to send a certain protocol message through the member link connected to the network device B, the network device C cannot receive the protocol message. Since the protocol message is used to generate forwarding entries, it will cause the problem that only network device B generates forwarding entries, but network device C cannot generate forwarding entries. Since the network device C has not learned the forwarding entry, when the network device C needs to send a data message to the network device A, the corresponding forwarding entry cannot be found, so that the forwarding of the data message cannot be realized.

为了解决该技术问题,目前有两种方案,一种是通过在网络设备B和网络设备C上额外部署表项同步协议将网络设备B根据协议报文生成的转发表项同步给网络设备C;另外一种是通过在网络设备B和网络设备C上额外部署报文同步协议,将网络设备B接收到的协议报文同步给网络设备C,以便网络设备C根据该协议报文生成转发表项。通过上述两种方式使得网络设备B和网络设备C都能够学习到转发表项。In order to solve this technical problem, there are currently two solutions. One is to synchronize the forwarding entries generated by the network device B according to the protocol message to the network device C by additionally deploying an entry synchronization protocol on the network device B and the network device C; The other is to synchronize the protocol messages received by network device B to network device C by additionally deploying a message synchronization protocol on network device B and network device C, so that network device C can generate forwarding entries based on the protocol message . Through the above two methods, both network device B and network device C can learn forwarding entries.

但是,这两种方案都依赖于额外部署的同步协议,当网络设备B和网络设备C无法支持额外的同步协议时,则无法解决上述问题。并且,运行额外的同步协议会导致增加系统开销。However, both of these solutions rely on additional synchronization protocols deployed. When the network device B and the network device C cannot support the additional synchronization protocol, the above problems cannot be solved. Also, running additional synchronization protocols will increase system overhead.

所以,为了解决上述技术问题,本申请实施例提供了一种报文发送方法及设备,该方法不需要额外部署同步协议就可以实现在M-LAG场景下网络设备的表项学习。Therefore, in order to solve the above technical problems, the embodiments of the present application provide a message sending method and device, which can realize the table entry learning of the network device in the M-LAG scenario without additional deployment of a synchronization protocol.

为方便理解,首先对本申请实施例的应用场景进行介绍。To facilitate understanding, the application scenarios of the embodiments of the present application are first introduced.

参见图1,该图为本申请实施例提供的系统100的结构示意图。Refer to FIG. 1, which is a schematic structural diagram of a system 100 provided by an embodiment of the application.

在图1中,系统100包括网络设备101、网络设备102和网络设备103。其中,网络设备101经由成员链路集合L1与网络设备102连接,网络设备101还经由成员链路集合L2与网络设备103连接。成员链路集合L1包括一条或多条成员链路,成员链路集合L2也包括一条或多条成员链路。成员链路集合L1中的成员链路和成员链路集合L2中的成员链路属于相同的M-LAG。In FIG. 1, the system 100 includes a network device 101, a network device 102 and a network device 103. The network device 101 is connected to the network device 102 via the member link set L1, and the network device 101 is also connected to the network device 103 via the member link set L2. The member link set L1 includes one or more member links, and the member link set L2 also includes one or more member links. The member links in the member link set L1 and the member links in the member link set L2 belong to the same M-LAG.

网络设备101、网络设备102和网络设备103可以为路由器(router)、交换机(switch)、接入(access)设备、网关等,本申请实施例不进行限定。The network device 101, the network device 102, and the network device 103 may be routers, switches, access devices, gateways, etc., which are not limited in the embodiment of the present application.

可选的,网络设备101与终端设备连接,作为用户侧接入设备;网络设备102和网络设备103作为用户网关。网络设备101可以将从来自终端设备的上行数据报文发送给网络设备102或网络设备103;网络设备102或网络设备103可以将下行数据报文发送给网络设备101,由网络设备101转发给终端设备。Optionally, the network device 101 is connected to a terminal device and serves as a user-side access device; the network device 102 and the network device 103 serve as a user gateway. The network device 101 can send the uplink data message from the terminal device to the network device 102 or the network device 103; the network device 102 or the network device 103 can send the downlink data message to the network device 101, and the network device 101 forwards it to the terminal equipment.

在本申请实施例中,网络设备102和网络设备103都处于双活状态(Active-Active),即均可以正常工作。在转发数据报文之前,网络设备101可以向网络设备102和网络设备103发送协议报文,该协议报文用于在网络设备102和网络设备103中生成对应的转发表项,以使网络设备102和网络设备103根据转发表项向网络设备101转发数据报文。In the embodiment of the present application, both the network device 102 and the network device 103 are in a dual-active state (Active-Active), that is, both can work normally. Before forwarding the data message, the network device 101 may send a protocol message to the network device 102 and the network device 103, and the protocol message is used to generate corresponding forwarding entries in the network device 102 and the network device 103, so that the network device 102 and the network device 103 forward the data message to the network device 101 according to the forwarding entry.

具体实现可以参见图2所示的报文发送方法。For specific implementation, refer to the message sending method shown in FIG. 2.

参见图2,该图为本申请实施例提供的报文发送方法的流程图。Refer to FIG. 2, which is a flowchart of a method for sending a message according to an embodiment of the application.

在图2中,本申请实施例提供的报文发送方法包括如下步骤:In FIG. 2, the message sending method provided by the embodiment of the present application includes the following steps:

S201:第一网络设备获取第一协议报文。S201: The first network device obtains the first protocol message.

在本申请实施例中,第一网络设备可以例如为图1所示实施例的网络设备101。在实际应用中,第一网络设备获取第一协议报文的方式可以是第一网络设备自己生成第一协议报文,也可以接收来自其他设备的第一协议报文。In the embodiment of the present application, the first network device may be, for example, the network device 101 in the embodiment shown in FIG. 1. In practical applications, the manner in which the first network device obtains the first protocol message may be that the first network device generates the first protocol message itself, or may receive the first protocol message from other devices.

S202:第一网络设备确定所述第一协议报文是否为用于生成转发表项的协议报文。S202: The first network device determines whether the first protocol message is a protocol message used to generate a forwarding entry.

在本申请实施例中,用于生成转发表项的协议报文可以是用于单播业务的协议报文,例如,地址解析协议(Address Resolution Protocol,ARP)报文或邻居发现(Neighbor Discovery,ND)报文等;用于生成转发表项的协议报文也可以是用于组播业务的协议报文,例如因特网组管理协议(Internet Group Management Protocol,IGMP)报文或组播侦听者发现(Multicast Listener Discovery,MLD)报文等。In the embodiment of the present application, the protocol message used to generate the forwarding entry may be a protocol message used for unicast services, for example, an address resolution protocol (ARP) message or a neighbor discovery (Neighbor Discovery, ND) messages, etc.; the protocol messages used to generate forwarding entries can also be protocol messages used for multicast services, such as Internet Group Management Protocol (IGMP) messages or multicast listeners Discovery (Multicast Listener Discovery, MLD) messages, etc.

具体的,在本申请实施例中,第一网络设备可以根据第一协议报文中预设字段的值确定第一协议报文是否为用于生成转发表项的协议报文。可选的,预设字段可以在第一协议报文的报文头中。预设字段可以是一个字段也可以是多个字段。Specifically, in this embodiment of the present application, the first network device may determine whether the first protocol message is a protocol message used to generate a forwarding entry according to the value of a preset field in the first protocol message. Optionally, the preset field may be in the header of the first protocol message. The preset field can be one field or multiple fields.

例如,预设字段可以是以太网报文头的协议号字段,该协议号字段的值为第一协议报文的协议号,当该协议号字段的值为0x0806时,说明该第一协议报文为ARP报文。For example, the preset field may be the protocol number field of the Ethernet packet header. The value of the protocol number field is the protocol number of the first protocol message. When the value of the protocol number field is 0x0806, it indicates that the first protocol message The message is an ARP message.

再例如,预设字段可以是以太网报文头的协议号字段、互联网协议第六版(Internet Protocol version 6,IPv6)报文头的下一个报文头(next header)字段和互联网控制管 理协议第六版(Internet Control Management Protocol Version 6,ICMPv6)类型字段,当以太网报文头的协议号字段的值为0x86DD、IPv6报文头的next header字段的值为58,且ICMPv6类型字段的值为135或136时,说明该第一协议报文为ND报文。For another example, the preset field may be the protocol number field of the Ethernet packet header, the next header field of the Internet Protocol version 6 (IPv6) packet header, and the Internet Control Management Protocol Version 6 (Internet Control Management Protocol Version 6, ICMPv6) type field, when the value of the protocol number field of the Ethernet header is 0x86DD, the value of the next header field of the IPv6 header is 58, and the value of the ICMPv6 type field When it is 135 or 136, it indicates that the first protocol message is an ND message.

预设字段还可以是IP报文头的协议字段,当IP报文头的协议字段的值为2时,说明该第一协议报文为IGMP报文。The preset field may also be the protocol field of the IP message header. When the value of the protocol field of the IP message header is 2, it indicates that the first protocol message is an IGMP message.

预设字段还可以是IPv6报文头的next header字段和ICMPv6类型字段,当IPv6报文头的next header字段的值为58时,说明第一协议报文为ICMPv6报文,进一步的,当ICMPv6报文头的类型字段的值为130、131或132时,说明该第一协议报文为MLD报文。The preset fields can also be the next header field and the ICMPv6 type field of the IPv6 header. When the value of the next header field of the IPv6 header is 58, it means that the first protocol message is an ICMPv6 message. Further, when ICMPv6 When the value of the type field of the message header is 130, 131, or 132, it indicates that the first protocol message is an MLD message.

S203:当所述第一协议报文为用于生成转发表项的协议报文时,所述第一网络设备复制所述第一协议报文,得到第二协议报文。S203: When the first protocol message is a protocol message used to generate a forwarding entry, the first network device copies the first protocol message to obtain a second protocol message.

S204:第一网络设备经由所述第一成员链路向所述第二网络设备发送所述第一协议报文,并经由所述第二成员链路向所述第三网络设备发送所述第二协议报文。S204: The first network device sends the first protocol message to the second network device via the first member link, and sends the first protocol message to the third network device via the second member link. 2. Protocol messages.

在本申请实施例中,第二网络设备例如为图1所示实施例中的网络设备102,第三网络设备例如为图1所示实施例中的网络设备103。第一网络设备可以与第二网络设备和第三网络设备双归连接。In the embodiment of the present application, the second network device is, for example, the network device 102 in the embodiment shown in FIG. 1, and the third network device is, for example, the network device 103 in the embodiment shown in FIG. 1. The first network device may be dual-homed to the second network device and the third network device.

第一成员链路可以是第一网络设备与第二网络设备连接的一条或多条成员链路的其中一条成员链路。第二成员链路可以是第一网络设备与第三网络设备连接的一条或多条成员链路的其中一条成员链路。第一网络设备与第二网络设备连接的一条或多条成员链路(包括第一成员链路),以及第一网络设备与第三网络设备连接的一条或多条成员链路(包括第二成员链路)属于相同的M-LAG。也就是说,对于第一网络设备而言,不感知第二网络设备和第三网络设备。The first member link may be one of the one or more member links connected between the first network device and the second network device. The second member link may be one of the member links of the one or more member links connected between the first network device and the third network device. One or more member links (including the first member link) connecting the first network device and the second network device, and one or more member links (including the second member link) connecting the first network device and the third network device Member links) belong to the same M-LAG. In other words, for the first network device, the second network device and the third network device are not perceived.

当第一网络设备确认第一协议报文为用于生成转发表项的协议报文时,第一网络设备对第一协议报文进行复制,得到第二协议报文。并且,第一网络设备通过第一成员链路向第二网络设备发送第一协议报文,以触发第二网络设备根据第一协议报文生成对应的转发表项。第一网络设备还通过第二成员链路向第三网络设备发送第二协议报文,以触发第三网络设备根据第二协议报文生成对应的转发表项。When the first network device confirms that the first protocol message is a protocol message for generating a forwarding entry, the first network device copies the first protocol message to obtain the second protocol message. In addition, the first network device sends the first protocol message to the second network device through the first member link to trigger the second network device to generate a corresponding forwarding entry according to the first protocol message. The first network device also sends a second protocol message to the third network device through the second member link to trigger the third network device to generate a corresponding forwarding entry according to the second protocol message.

可选的,如果第一网络设备与第二网络设备之间除了第一成员链路以外还有其他成员链路,则第一网络设备也可以通过其他成员链路向第二网络设备发送第一协议报文。例如,第一网络设备与第二网络设备之间有两条成员链路,即第一成员链路和第三成员链路,那么第一网络设备可以复制第一协议报文得到第三协议报文,并通过第一成员链路向第二网络设备发送第一协议报文,通过第三成员链路向第二网络设备发送第三协议报文。当第一网络设备和第三网络设备之间除了第二成员链路以外还有其他成员链路同理,此处不再赘述。Optionally, if there are other member links between the first network device and the second network device in addition to the first member link, the first network device may also send the first network device to the second network device through the other member links. Protocol message. For example, if there are two member links between the first network device and the second network device, that is, the first member link and the third member link, then the first network device can copy the first protocol message to obtain the third protocol message. And send the first protocol message to the second network device through the first member link, and send the third protocol message to the second network device through the third member link. The same is true when there are other member links between the first network device and the third network device in addition to the second member link, which will not be repeated here.

由于复制第一协议报文不需要额外部署同步协议实现,所以相对于上文中目前的方案,本申请实施例在保证第二网络设备和第三网络设备能够根据相同的协议报文分别生成转发表项的前提下,提高兼容性,以及减少系统开销。Since the replication of the first protocol message does not require additional deployment of synchronization protocol implementations, compared to the current solution above, the embodiment of this application ensures that the second network device and the third network device can generate forwarding tables respectively according to the same protocol message. Under the premise of the item, improve compatibility and reduce system overhead.

当然,可以理解的是,在实际应用中,与第一网络设备连接的网络设备可以不止第二 网络设备和第三网络设备,即第一网络设备可以与其他网络设备多归连接,并且第一网络设备和其他网络设备之间的成员链路与和第一网络设备之间的成员链路或和第二网络设备之间的成员链路均属于相同的M-LAG。第二网络设备和第三网络设备可以视为多个与第一网络设备连接的网络设备中的其中两个。Of course, it is understandable that in practical applications, the network devices connected to the first network device may be more than the second network device and the third network device, that is, the first network device can be connected to other network devices in a multi-homing manner, and the first network device can be connected to other network devices. The member link between the network device and other network devices and the member link with the first network device or the member link with the second network device all belong to the same M-LAG. The second network device and the third network device may be regarded as two of the plurality of network devices connected to the first network device.

如果与第一网络设备连接的网络设备多于两个,则第一网络设备可以向每个网络设备分别发送复制第一协议报文得到的协议报文。例如,与第一网络设备连接的网络设备还包括第四网络设备,第一网络设备与第四网络设备通过第四成员链路连接,那么第一网络设备可以复制第一协议报文,得到第四协议报文,并通过第四成员链路向第四网络设备发送第四协议报文。If there are more than two network devices connected to the first network device, the first network device may respectively send to each network device the protocol message obtained by copying the first protocol message. For example, the network device connected to the first network device further includes a fourth network device, and the first network device and the fourth network device are connected through a fourth member link, then the first network device can copy the first protocol message to obtain the first network device. Four protocol messages, and send the fourth protocol message to the fourth network device through the fourth member link.

S205:第二网络设备根据第一协议报文生成第一转发表项。S205: The second network device generates a first forwarding entry according to the first protocol message.

在本申请实施例中,不同类型的第一协议报文生成的第一转发表项包括的内容不同。In this embodiment of the present application, the first forwarding entries generated by different types of first protocol messages include different contents.

例如,若第一协议报文和第二协议报文为ARP报文,那么第一转发表项包括目的IP地址和目的MAC地址之间的映射关系。具体的,第二网络设备从ARP报文中获取源IP地址和源MAC地址,并将源IP地址存储为第一转发表项中的目的IP地址,将源MAC地址存储为第一转发表项中的目的MAC地址。For example, if the first protocol message and the second protocol message are ARP messages, the first forwarding table entry includes the mapping relationship between the destination IP address and the destination MAC address. Specifically, the second network device obtains the source IP address and the source MAC address from the ARP message, and stores the source IP address as the destination IP address in the first forwarding table entry, and stores the source MAC address as the first forwarding table entry The destination MAC address in.

再例如,若第一协议报文和第二协议报文为IGMP报文,那么第一转发表项包括组播源地址、组播组地址和出接口号之间的映射关系。具体的,第二网络设备从IGMP报文中获取组播源地址和组播组地址,并获取所述接收该IGMP报文的接口的接口号,并根据该组播源地址、组播组地址和接口号生成第一转发表项,第一转发表项中的出接口号为第二网络设备接收该IGMP报文的接口(interface)的接口号。For another example, if the first protocol message and the second protocol message are IGMP messages, the first forwarding table entry includes the mapping relationship between the multicast source address, the multicast group address, and the outbound interface number. Specifically, the second network device obtains the multicast source address and the multicast group address from the IGMP message, and obtains the interface number of the interface that receives the IGMP message, and according to the multicast source address and multicast group address A first forwarding entry is generated with the interface number, and the outgoing interface number in the first forwarding entry is the interface number of the interface through which the second network device receives the IGMP message.

S206:第三网络设备根据第二协议报文生成第二转发表项。S206: The third network device generates a second forwarding entry according to the second protocol message.

第三网络设备生成第二转发表项的具体细节与第二网络设备生成第一转发表项类似,此处不再赘述。The specific details of the second forwarding entry generated by the third network device are similar to the first forwarding entry generated by the second network device, and will not be repeated here.

参见图3,该图为本申请实施例提供的一种报文发送装置300的结构框图。报文发送装置300用于实现图2所示实施例中第一网络设备的功能。该报文发送装置300包括处理单元301和发送单元302。其中,处理单元301用于执行图2所示实施例中的S201-S203,发送单元302用于执行图2所示实施例中的S204。Refer to FIG. 3, which is a structural block diagram of a message sending apparatus 300 provided by an embodiment of the application. The message sending apparatus 300 is used to implement the function of the first network device in the embodiment shown in FIG. 2. The message sending device 300 includes a processing unit 301 and a sending unit 302. The processing unit 301 is used to execute S201-S203 in the embodiment shown in FIG. 2, and the sending unit 302 is used to execute S204 in the embodiment shown in FIG. 2.

具体的,处理单元301用于获取第一协议报文,确定所述第一协议报文是否为用于生成转发表项的协议报文,当所述第一协议报文为用于生成转发表项的协议报文时,复制所述第一协议报文,得到第二协议报文。Specifically, the processing unit 301 is configured to obtain a first protocol message, and determine whether the first protocol message is a protocol message used to generate a forwarding entry, and when the first protocol message is used to generate a forwarding table When the protocol message of the item is selected, copy the first protocol message to obtain the second protocol message.

发送单元302,用于经由所述第一成员链路向所述第二网络设备发送所述第一协议报文,并经由所述第二成员链路向所述第三网络设备发送所述第二协议报文。The sending unit 302 is configured to send the first protocol message to the second network device via the first member link, and send the first protocol message to the third network device via the second member link 2. Protocol messages.

图3所示的报文发送装置300的具体实现请参见图2所示实施例中第一网络设备的相关描述,此处不再赘述。For the specific implementation of the message sending apparatus 300 shown in FIG. 3, please refer to the related description of the first network device in the embodiment shown in FIG. 2, which will not be repeated here.

图4为本申请实施例的第一网络设备400的硬件结构示意图。图4所示的第一网络设备400可以执行上述实施例的方法中第一网络设备执行的相应步骤和图3所示实施例中第一网络设备300的功能。FIG. 4 is a schematic diagram of the hardware structure of the first network device 400 according to an embodiment of the application. The first network device 400 shown in FIG. 4 can execute the corresponding steps performed by the first network device in the method of the foregoing embodiment and the function of the first network device 300 in the embodiment shown in FIG. 3.

如图4所示,所述第一网络设备400包括处理器401、存储器402、接口403和总线404。其中接口403可以通过无线或有线的方式实现,具体来讲可以是网卡。上述处理器401、存储器402和接口403通过总线404连接。As shown in FIG. 4, the first network device 400 includes a processor 401, a memory 402, an interface 403, and a bus 404. The interface 403 may be implemented in a wireless or wired manner, and specifically may be a network card. The aforementioned processor 401, memory 402, and interface 403 are connected through a bus 404.

所述接口403具体可以包括发送器和接收器,用于第一网络设备与上述实施例中的第二网络设备和第三网络设备之间收发信息。例如,所述接口403用于支持向第二网络设备发送第一协议报文;和/或用于支持向第三网络设备发送第二协议报文。所述处理器401用于执行上述实施例中由第一网络设备进行的处理。作为举例,所述处理器401用于支持图2中的S201-S203。存储器402包括操作系统和应用程序,用于存储程序、代码或指令,当处理器或硬件设备执行这些程序、代码或指令时可以完成方法实施例中涉及第一网络设备的处理过程。可选的,所述存储器402可以包括只读存储器(英文:Read-only Memory,缩写:ROM)和随机存取存储器(英文:Random Access Memory,缩写:RAM)。其中,所述ROM包括基本输入/输出系统(英文:Basic Input/Output System,缩写:BIOS)或嵌入式系统;所述RAM包括应用程序和操作系统。当需要运行第一网络设备400时,通过固化在ROM中的BIOS或者嵌入式系统中的bootloader引导系统进行启动,引导第一网络设备400进入正常运行状态。在第一网络设备400进入正常运行状态后,运行在RAM中的应用程序和操作系统,从而,完成方法实施例中涉及第一网络设备的处理过程。The interface 403 may specifically include a transmitter and a receiver, which are used to send and receive information between the first network device and the second network device and the third network device in the foregoing embodiment. For example, the interface 403 is used to support sending a first protocol packet to the second network device; and/or used to support sending a second protocol packet to the third network device. The processor 401 is configured to execute the processing performed by the first network device in the foregoing embodiment. As an example, the processor 401 is configured to support S201-S203 in FIG. 2. The memory 402 includes an operating system and application programs, and is used to store programs, codes, or instructions. When a processor or hardware device executes these programs, codes, or instructions, the processing process involving the first network device in the method embodiment can be completed. Optionally, the memory 402 may include a read-only memory (English: Read-only Memory, abbreviation: ROM) and a random access memory (English: Random Access Memory, abbreviation: RAM). Wherein, the ROM includes a basic input/output system (English: Basic Input/Output System, abbreviation: BIOS) or an embedded system; the RAM includes an application program and an operating system. When the first network device 400 needs to be operated, the system is booted by the BIOS solidified in the ROM or the bootloader in the embedded system to guide the first network device 400 into a normal operating state. After the first network device 400 enters the normal operating state, the application program and the operating system run in the RAM, thereby completing the processing procedure involving the first network device in the method embodiment.

可以理解的是,图4仅仅示出了第一网络设备400的简化设计。在实际应用中,第一网络设备可以包含任意数量的接口,处理器或者存储器。It can be understood that FIG. 4 only shows a simplified design of the first network device 400. In practical applications, the first network device may include any number of interfaces, processors or memories.

此外,本申请实施例还提供了一种网络系统,所述网络系统包括图2或图3所示实施例中的第一网络设备、第二网络设备和第三网络设备。In addition, an embodiment of the present application also provides a network system, which includes the first network device, the second network device, and the third network device in the embodiment shown in FIG. 2 or FIG. 3.

本申请实施例提供了一种计算机可读存储介质,其特征在于,包括指令,当其在计算机上运行时,使得计算机执行上述图2所示实施例中第一网络设备执行的报文发送方法。The embodiment of the present application provides a computer-readable storage medium, which is characterized by including instructions, which when run on a computer, cause the computer to execute the message sending method executed by the first network device in the embodiment shown in FIG. 2 .

本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”、“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third", "fourth", etc. (if any) in the description and claims of this application and the above-mentioned drawings are used to distinguish similar objects, without having to use To describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances so that the embodiments described herein can be implemented in a sequence other than the content illustrated or described herein. In addition, the terms "including" and "having" and any variations of them are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or device that includes a series of steps or units is not necessarily limited to those clearly listed. Those steps or units may include other steps or units that are not clearly listed or are inherent to these processes, methods, products, or equipment.

本申请中“至少一项(个)”是指一个或者多个,“多个”是指两个或两个以上。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b,或c中的至少一项(个),可以表示:a,b,c,a-b,a-c,b-c,或a-b-c,其中a,b,c可以是单个,也可以是多个。本申请中认为“A和/或B”包含单独A,单独B,和A+B。In this application, "at least one item (a)" refers to one or more, and "multiple" refers to two or more. "The following at least one item (a)" or similar expressions refers to any combination of these items, including any combination of a single item (a) or a plurality of items (a). For example, at least one item (a) of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple . In this application, "A and/or B" is considered to include A alone, B alone, and A+B.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and conciseness of the description, the specific working process of the above-described system, device, and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.

在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通 过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑模块划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, device, and method can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units is only a logical module division, and there may be other divisions in actual implementation, for example, multiple units or components may be combined or It can be integrated into another system, or some features can be ignored or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要获取其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be acquired according to actual needs to achieve the objectives of the solutions of the embodiments.

另外,在本申请各个实施例中的各模块单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件模块单元的形式实现。In addition, each module unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of a software module unit.

所述集成的单元如果以软件模块单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is implemented in the form of a software module unit and sold or used as an independent product, it can be stored in a computer readable storage medium. Based on this understanding, the technical solution of the present application essentially or the part that contributes to the existing technology or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , Including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disks or optical disks and other media that can store program codes. .

本领域技术人员应该可以意识到,在上述一个或多个示例中,本发明所描述的功能可以用硬件、软件、固件或它们的任意组合来实现。当使用软件实现时,可以将这些功能存储在计算机可读介质中或者作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是通用或专用计算机能够存取的任何可用介质。Those skilled in the art should be aware that, in one or more of the above examples, the functions described in the present invention can be implemented by hardware, software, firmware, or any combination thereof. When implemented by software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on the computer-readable medium. The computer-readable medium includes a computer storage medium and a communication medium, where the communication medium includes any medium that facilitates the transfer of a computer program from one place to another. The storage medium may be any available medium that can be accessed by a general-purpose or special-purpose computer.

以上所述的具体实施方式,对本发明的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本发明的具体实施方式而已。The specific embodiments described above further describe the objectives, technical solutions, and beneficial effects of the present invention in further detail. It should be understood that the above descriptions are only specific embodiments of the present invention.

以上所述,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。As mentioned above, the above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: The technical solutions recorded in the embodiments are modified, or some of the technical features are equivalently replaced; these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims (12)

一种报文发送方法,其特征在于,所述方法应用于第一网络设备,所述第一网络设备经由第一成员链路与第二网络设备通信,所述第一网络设备还经由第二成员链路与第三网络设备通信,所述第一成员链路与所述第二成员链路属于相同的跨设备链路聚合组;所述方法包括:A method for sending a message, characterized in that the method is applied to a first network device, the first network device communicates with a second network device via a first member link, and the first network device also communicates with a second network device via a second member link. The member link communicates with a third network device, and the first member link and the second member link belong to the same cross-device link aggregation group; the method includes: 所述第一网络设备获取第一协议报文;Acquiring the first protocol message by the first network device; 所述第一网络设备确定所述第一协议报文是否为用于生成转发表项的协议报文;Determining, by the first network device, whether the first protocol message is a protocol message used to generate a forwarding entry; 当所述第一协议报文为用于生成转发表项的协议报文时,所述第一网络设备复制所述第一协议报文,得到第二协议报文;When the first protocol message is a protocol message used to generate a forwarding entry, the first network device copies the first protocol message to obtain a second protocol message; 所述第一网络设备经由所述第一成员链路向所述第二网络设备发送所述第一协议报文,并经由所述第二成员链路向所述第三网络设备发送所述第二协议报文。The first network device sends the first protocol message to the second network device via the first member link, and sends the first protocol message to the third network device via the second member link. 2. Protocol messages. 根据权利要求1所述的方法,其特征在于,所述第一网络设备确定所述第一协议报文是否为用于生成转发表项的协议报文包括:The method according to claim 1, wherein the determining by the first network device whether the first protocol message is a protocol message for generating a forwarding entry comprises: 所述第一网络设备根据所述第一协议报文中预设字段的值确定所述第一协议报文是否为用于生成转发表项的协议报文。The first network device determines whether the first protocol message is a protocol message used to generate a forwarding entry according to the value of a preset field in the first protocol message. 根据权利要求2所述的方法,其特征在于,所述预设字段在所述第一协议报文的报文头中。The method according to claim 2, wherein the preset field is in a header of the first protocol message. 根据权利要求2或3所述的方法,其特征在于,所述预设字段包括以太网报文头中的协议号字段;或,所述预设字段包括所述以太网报文头中的协议号字段、互联网协议第六版IPv6报文头的下一个报文头next header字段和互联网控制管理协议第六版ICMPv6类型字段;或,预设字段包括互联网协议IP报文头的协议字段;或,预设字段包括IPv6报文头的next header字段和ICMPv6类型字段。The method according to claim 2 or 3, wherein the preset field includes a protocol number field in an Ethernet packet header; or, the preset field includes a protocol in the Ethernet packet header Number field, the next header field of the Internet Protocol Version 6 IPv6 header and the Internet Control Management Protocol Version 6 ICMPv6 type field; or, the preset field includes the protocol field of the Internet Protocol IP header; or , The preset fields include the next header field and the ICMPv6 type field of the IPv6 packet header. 根据权利要求1-4任一项所述的方法,其特征在于,所述第一协议报文为地址解析协议ARP报文、邻居发现ND报文、因特网组管理协议IGMP报文或组播侦听者发现MLD报文。The method according to any one of claims 1 to 4, wherein the first protocol message is an address resolution protocol ARP message, a neighbor discovery ND message, an Internet Group Management Protocol IGMP message, or a multicast reconnaissance message. The listener discovers the MLD message. 一种第一网络设备,其特征在于,所述第一网络设备经由第一成员链路与第二网络设备通信,所述第一网络设备还经由第二成员链路与第三网络设备通信,所述第一成员链路与所述第二成员链路属于相同的跨设备链路聚合组;所述第一网络设备包括:A first network device, wherein the first network device communicates with a second network device via a first member link, and the first network device also communicates with a third network device via a second member link, The first member link and the second member link belong to the same cross-device link aggregation group; the first network device includes: 处理器,用于获取第一协议报文,确定所述第一协议报文是否为用于生成转发表项的协议报文,当所述第一协议报文为用于生成转发表项的协议报文时,复制所述第一协议报文,得到第二协议报文;The processor is configured to obtain a first protocol message, and determine whether the first protocol message is a protocol message used to generate a forwarding entry, and when the first protocol message is a protocol used to generate a forwarding entry When sending a message, copy the first protocol message to obtain the second protocol message; 发送器,用于经由所述第一成员链路向所述第二网络设备发送所述第一协议报文,并经由所述第二成员链路向所述第三网络设备发送所述第二协议报文。A transmitter, configured to send the first protocol message to the second network device via the first member link, and send the second protocol message to the third network device via the second member link Protocol message. 根据权利要求6所述的网络设备,其特征在于,所述第一网络设备确定所述第一协议报文是否为用于生成转发表项的协议报文包括:The network device according to claim 6, wherein the first network device determining whether the first protocol message is a protocol message used to generate a forwarding entry comprises: 所述第一网络设备根据所述第一协议报文中预设字段的值确定所述第一协议报文是否为用于生成转发表项的协议报文。The first network device determines whether the first protocol message is a protocol message used to generate a forwarding entry according to the value of a preset field in the first protocol message. 根据权利要求7所述的网络设备,其特征在于,所述预设字段在所述第一协议报文的报文头中。The network device according to claim 7, wherein the preset field is in a header of the first protocol message. 根据权利要求7或8所述的网络设备,其特征在于,所述预设字段包括以太网报文头中的协议号字段;或,所述预设字段包括所述以太网报文头中的协议号字段、互联网协议第六版IPv6报文头的下一个报文头字段和互联网控制管理协议第六版ICMPv6类型字段;或,预设字段包括互联网协议IP报文头的协议字段;或,预设字段包括IPv6报文头的next header字段和ICMPv6类型字段。The network device according to claim 7 or 8, wherein the preset field includes the protocol number field in the Ethernet packet header; or, the preset field includes the protocol number field in the Ethernet packet header. The protocol number field, the next header field of the Internet Protocol version 6 IPv6 header and the Internet Control Management Protocol version 6 ICMPv6 type field; or, the preset field includes the protocol field of the Internet Protocol IP header; or, The preset fields include the next header field of the IPv6 packet header and the ICMPv6 type field. 根据权利要求6-9任一项所述的网络设备,其特征在于,所述第一协议报文为地址解析协议ARP报文、邻居发现ND报文、因特网组管理协议IGMP报文或组播侦听者发现MLD报文。The network device according to any one of claims 6-9, wherein the first protocol message is an address resolution protocol ARP message, a neighbor discovery ND message, an Internet Group Management Protocol IGMP message, or a multicast The listener found the MLD message. 一种网络系统,其特征在于,所述网络系统包括第一网络设备、第二网络设备和第三网络设备,所述第一网络设备为所述权利要求6-10任一项中的所述第一网络设备,所述第二网络设备为所述权利要求6-10任一项中的所述第一网络设备,所述第三网络设备为所述权利要求6-10任一项中的所述第三网络设备。A network system, characterized in that, the network system includes a first network device, a second network device, and a third network device, and the first network device is the one in any one of the claims 6-10 The first network device, the second network device is the first network device in any one of claims 6-10, and the third network device is the first network device in any one of claims 6-10 The third network device. 一种计算机可读存储介质,其特征在于,包括指令,当其在计算机上运行时,使得计算机执行权利要求1-5任一项所述的报文发送方法。A computer-readable storage medium, characterized by comprising instructions, which when run on a computer, causes the computer to execute the message sending method according to any one of claims 1-5.
PCT/CN2020/137034 2020-03-19 2020-12-17 Message sending method, first network device, and network system Ceased WO2021184862A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010195519.5A CN113497752B (en) 2020-03-19 2020-03-19 A message sending method, first network device and network system
CN202010195519.5 2020-03-19

Publications (1)

Publication Number Publication Date
WO2021184862A1 true WO2021184862A1 (en) 2021-09-23

Family

ID=77769163

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/137034 Ceased WO2021184862A1 (en) 2020-03-19 2020-12-17 Message sending method, first network device, and network system

Country Status (2)

Country Link
CN (1) CN113497752B (en)
WO (1) WO2021184862A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114124812B (en) * 2021-11-22 2024-11-12 迈普通信技术股份有限公司 Method, device and electronic device for maintaining table item consistency
CN114221904B (en) * 2021-12-15 2023-08-18 锐捷网络股份有限公司 Message forwarding method, device and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101119310A (en) * 2007-09-10 2008-02-06 杭州华三通信技术有限公司 Method and routing device for implementing stream media data transmission
US20130077471A1 (en) * 2011-09-23 2013-03-28 Avaya Inc. Method and apparatus providing split multi link trunk (smlt) for advanced technology attachment (ata) over ethernet
CN106789665A (en) * 2016-11-16 2017-05-31 迈普通信技术股份有限公司 A kind of message synchronizing method and message sychronisation
CN110708275A (en) * 2018-12-18 2020-01-17 新华三技术有限公司 Protocol message processing method and device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104104570B (en) * 2013-04-07 2018-09-04 新华三技术有限公司 Aggregation processing method in IRF systems and device
JP6384696B2 (en) * 2014-09-04 2018-09-05 華為技術有限公司Huawei Technologies Co.,Ltd. Forwarding table synchronization method, network device and system
EP3430774B1 (en) * 2016-03-15 2019-12-25 Telefonaktiebolaget LM Ericsson (PUBL) Method and apparatus for supporting bidirectional forwarding (bfd) over multi-chassis link aggregation group (mc-lag) in internet protocol (ip) networks
CN109218178B (en) * 2017-07-05 2021-06-22 华为技术有限公司 Message processing method and network equipment
CN110166356B (en) * 2018-02-11 2021-09-17 华为技术有限公司 Method and network equipment for sending message
CN110391979B (en) * 2018-04-23 2021-01-15 华为技术有限公司 Network equipment stacking method, network equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101119310A (en) * 2007-09-10 2008-02-06 杭州华三通信技术有限公司 Method and routing device for implementing stream media data transmission
US20130077471A1 (en) * 2011-09-23 2013-03-28 Avaya Inc. Method and apparatus providing split multi link trunk (smlt) for advanced technology attachment (ata) over ethernet
CN106789665A (en) * 2016-11-16 2017-05-31 迈普通信技术股份有限公司 A kind of message synchronizing method and message sychronisation
CN110708275A (en) * 2018-12-18 2020-01-17 新华三技术有限公司 Protocol message processing method and device

Also Published As

Publication number Publication date
CN113497752B (en) 2022-05-10
CN113497752A (en) 2021-10-12

Similar Documents

Publication Publication Date Title
JP6663020B2 (en) Packet processing method, related device, and NVO3 network system
CN104580024B (en) The Ethernet interconnection architecture interchanger of extension
CN104272668B (en) Layer 3 Overlay Gateway
CN101601232B (en) Triple-tier anycast addressing
CN106612224B (en) Message forwarding method and device applied to VXLAN
CN110034993B (en) Method, equipment and network system for transmitting data
US12199855B2 (en) Multicast forwarding entry generation method and access gateway
US10225295B2 (en) Multicast packet forwarding method and device
US20210099400A1 (en) Synchronizing multicast router capability towards ethernet virtual private network (evpn) multi-homed protocol independent multicast (pim) device
CN107317752B (en) Method and device for forwarding data message
WO2018205982A1 (en) Method and device for implementing broadcast and multicast in software-defined network and storage medium
WO2018214809A1 (en) Message transmission method and device, and storage medium
CN105745883A (en) Method for synchronizing forwarding tables, network device, and system
WO2021031648A1 (en) Evpn and vpls coexistence method, apparatus, and system
WO2022048412A1 (en) Method for generating table item, method for sending message, device, and system
WO2023029627A1 (en) Packet forwarding method, apparatus, device, and storage medium
WO2022068436A1 (en) Service processing method and related device
JP7119170B2 (en) BIERV6 packet forwarding method, device and system
WO2021184862A1 (en) Message sending method, first network device, and network system
CN106487677B (en) Provider edge equipment and data forwarding method
CN105471817A (en) Method, device and system for unloading service flow
WO2022261881A1 (en) Network interface card management system, packet processing method, and device
CN108768845B (en) Multi-homing host routing synchronization method and device
CN117997561A (en) Communication method and device
CN111866046A (en) A method for realizing a cluster and related equipment

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: 20926235

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: 20926235

Country of ref document: EP

Kind code of ref document: A1