WO2022062662A1 - Data transmission method and system, network device, and storage medium - Google Patents

Data transmission method and system, network device, and storage medium Download PDF

Info

Publication number
WO2022062662A1
WO2022062662A1 PCT/CN2021/110078 CN2021110078W WO2022062662A1 WO 2022062662 A1 WO2022062662 A1 WO 2022062662A1 CN 2021110078 W CN2021110078 W CN 2021110078W WO 2022062662 A1 WO2022062662 A1 WO 2022062662A1
Authority
WO
WIPO (PCT)
Prior art keywords
forwarding table
standby
network element
data
master device
Prior art date
Application number
PCT/CN2021/110078
Other languages
French (fr)
Chinese (zh)
Inventor
代彦伟
祖翔
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2022062662A1 publication Critical patent/WO2022062662A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0823Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing

Definitions

  • the embodiments of the present application relate to the field of communication technologies, and in particular, to a data transmission method, system, network device, and storage medium.
  • the NEs attached to the dual gateways will be set to active/standby mode.
  • active/standby mode only the active link sends and receives packets, and the standby link does not send or receive packets.
  • the relevant data transmission technologies in the active and standby networks include: adding the main link of the main device and the standby link of the standby device to different multi-chassis Link Aggregation (MC-LAG) After the connected MC-LAG learns the forwarding entry, it adopts a certain synchronization mechanism to synchronize the forwarding entry to other devices of the MC-LAG connected to the standby device.
  • MC-LAG multi-chassis Link Aggregation
  • the original backup device can send and receive packets normally, and then re-build a forwarding entry on the MC-LAG connected to the backup link, and then pass the backup link to the MC-LAG. link for data transmission.
  • the forwarding table on the MC-LAG group connected by the master device will be deleted, and the master-standby switchover will be performed. After that, the MC-LAG link connected by the standby device needs to re-construct a new forwarding table.
  • the convergence time of the entire VxLAN network depends on the learning time of the new forwarding table, which affects the data transmission efficiency of the VxLAN network. As far as the NE is concerned, once the learning time of the new forwarding table is too long, the services in the VxLAN network will be offline, affecting the stability and reliability of the VxLAN network.
  • An embodiment of the present application provides a data transmission method, the method includes the following steps: receiving a data message; constructing a first forwarding table according to the data message, and sending the first forwarding table to the standby device, For the standby device to form a second forwarding table, wherein the outlet of the first forwarding table is the network element, and the outlet of the second forwarding table is the master device; according to the outlet of the first forwarding table, the The data packet is sent to the network element.
  • the embodiment of the present application also proposes a data transmission method, including: receiving a data message and a first forwarding table; forming a second forwarding table according to the first forwarding table, wherein the outlet of the second forwarding table is the the master device; and send the data packet to the master device according to the exit of the second forwarding table.
  • the embodiment of the present application also proposes a data transmission method, including: adding the primary link of the primary device and the backup link of the backup device to the same multi-rack link aggregation, wherein the primary link is used to connect all The primary device and the network element are used to transmit data packets, and the backup link is used to connect the backup device and the network element; a transmission link is established between the primary device and the backup device; wherein , for the transmission link, the master device constructs a first forwarding table whose exit is the network element according to the data message, and the standby device constructs a first forwarding table whose exit is the master device according to the first forwarding table. Second, a forwarding table is generated; the port of the multi-rack link aggregation and the port of the transmission link are bound to the VxLAN network.
  • the embodiment of the present application also proposes a data transmission system, including:
  • a master device configured to receive a data message, construct a first forwarding table according to the data message, and send the first forwarding table to a backup device so that the backup device can form a second forwarding table, wherein the The outlet of the first forwarding table is a network element, and the outlet of the second forwarding table is the master device;
  • a standby device configured to receive the data packet and the first forwarding table of the master device, and form a second forwarding table according to the first forwarding table, wherein the exit of the second forwarding table is the the main equipment;
  • a network element device configured to receive the data packet sent by the master device.
  • the embodiment of the present application also proposes a network device, and the device includes:
  • the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the data transmission method described above.
  • An embodiment of the present application further provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, implements the above-mentioned data transmission method.
  • FIG. 1 is a flowchart of a data transmission method provided by a first embodiment of the present application
  • FIG. 2 is a flowchart of a data transmission method provided by a second embodiment of the present application.
  • FIG. 3 is a flowchart of a data transmission method provided by a third embodiment of the present application.
  • FIG. 4 is a flowchart of a data transmission method provided by a fourth embodiment of the present application.
  • FIG. 5( a ) is a schematic diagram of data message forwarding under normal conditions of the data transmission method provided by the third embodiment of the present application shown in FIG. 3 and the fifth embodiment of the present application shown in FIG. 6 ;
  • 5(b) is a schematic diagram of data packet forwarding in the case of a main link failure of the data transmission method provided by the third embodiment of the present application shown in FIG. 3;
  • FIG. 5(c) is a schematic diagram of data packet forwarding in the case of failure of the master device of the data transmission method provided by the fifth embodiment of the present application shown in FIG. 6;
  • FIG. 6 is a flowchart of a data transmission method provided by a fifth embodiment of the present application.
  • FIG. 7 is a flowchart of a data transmission method provided by a sixth embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of a data transmission system provided by a seventh embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of a network device provided by an eighth embodiment of the present application.
  • the first embodiment of the present application relates to a data transmission method, which is applied to a master device of a VxLAN network, wherein the VxLAN network includes a master device and a backup device, as shown in FIG. 1 , and specifically includes the following steps.
  • Step 101 Receive a data message.
  • the data packet received by the master device is a downlink data packet sent from a remote device, and the data packet can be a user data packet, or a network protocol packet, a packet It can be three layers or two layers.
  • Step 102 Construct a first forwarding table according to the data message, and send the first forwarding table to the standby device, so that the standby device forms a second forwarding table, wherein the outlet of the first forwarding table is the network element, and the outlet of the second forwarding table is the network element.
  • Export is the main equipment.
  • the master device when it receives a data packet, it will first construct a forwarding table based on the received data packet. After the forwarding table is constructed, the master device will first save the forwarding table on the master device, and then take A certain synchronization mechanism sends the forwarding table to the standby device.
  • the constructed forwarding table contains the exit, and the exit specifies the exit of the message, that is, through which exit the message is sent to the next destination, where the data message is Refers to a message that can build a forwarding table through learning, and the forwarding table built on the master device is a dynamic table, the forwarding table on the master device is the export of the network element, and the forwarding table synchronized by the standby device is a static table.
  • the export of the forwarding table on the standby device is the master device;
  • the data packet of the arp requesting the gateway address (source IP: 1.1.1.2/24, source mac: 00:00:00:11:11:11) is
  • the constructed forwarding table includes arp, forwarding table (arp:IP:1.1.1.2/24(mac:00:00:00:11:11:11)) and mac forwarding table (mac:00:00:00 :11:11:11).
  • the process of synchronizing the forwarding table can be based on the synchronization of the ICBG protocol, establishing an ICBG channel between the master device and the backup device, or establishing a VxLAN tunnel between the master device and the backup device, establishing other available All channels used for transmission can be used.
  • Step 103 Send the data packet to the network element according to the exit of the first forwarding table.
  • the master device will send data packets according to the exit of the forwarding table constructed, and the master device and the network element are connected through the main link.
  • the master device will The received data packet is sent to the NE through the primary link.
  • the primary device sends the datagram according to the exit of the first forwarding table.
  • the process of sending the data packet to the network element in addition to the data packet received by the master device from the remote device, it is also necessary to send the data packet sent by the standby device to the network element.
  • the master device receives the data message, constructs the first forwarding table according to the data message, and sends the first forwarding table to the standby device, so that the standby device can form the second forwarding table, wherein the first forwarding table is The outlet is the network element, and the outlet of the second forwarding table is the main device; the data packet is sent to the network element according to the outlet of the first forwarding table.
  • the master device builds the forwarding table, it sends the forwarding table to the standby device, so that the standby device can also transmit data packets normally, thus ensuring the stability and reliability of the VxLAN network and improving the data transmission efficiency.
  • the second embodiment of the present application relates to a data transmission method. This embodiment is roughly the same as the first embodiment, except that the active and standby roles of a device need to be determined before receiving a data packet, as shown in FIG. 2 . , which includes the following steps.
  • step 201 the active and standby roles of the device are determined.
  • a connection is established between multiple devices and one network element through an access link.
  • the access link has active and standby roles, the device connected to the access link
  • the active and standby roles have not yet been divided, so before receiving downlink data packets, it is necessary to determine the active and standby roles of the device.
  • the active and standby roles are determined by the network element sending test packets to the device: the network element sends a test packet to the device through the access link; the device that can receive the test packet can determine the access link between it and the network element
  • the access link is the primary access link, that is, the device identifies itself as the primary device.
  • the device After receiving the test packet, the device will construct a forwarding table based on the test packet, and then forward the forwarding table to other devices. Other devices receive the forwarding table.
  • the standby device After it is published, it will determine itself as the standby device, and at the same time determine the access link between it and the network element as the standby access link, and will make a reception mark for the received forwarding table to inform the device that the forwarding
  • the publication is not generated by the device, and the standby device will also send a response message to the master device.
  • the purpose of sending this message is to inform the master device that it has received the forwarding table and let the master device know its role.
  • the link sends a test packet to the device, and the device that can receive the test packet determines on the device that the local access link is the primary access link, and other devices are correspondingly the standby access link.
  • the packet sending and receiving module converts the test packet into a protocol request packet.
  • the protocol request packet is forwarded in the VxLAN forwarding domain as a Broadcast & Unknow-Unicast & Multicast (BUM) packet, and the VxLAN forwarding domain forwards the protocol request
  • BUM Broadcast & Unknow-Unicast & Multicast
  • the packet is forwarded to the device, and the device sends the received protocol request packet to the network element through the access link. If the network element receives the protocol request packet through an access link, it sends a request to the access link.
  • the device connected to the link sends a response message, after receiving the response message returned by the network element, the device will identify itself as the master device, and identify the access link with the network element as the master access link; If the network element receives the protocol request message through an access link, but discards the received protocol request message, the device connected to the access link will not receive the message sent by the network element. response message, it will identify itself as the standby device, and identify the access link with the network element as the standby access link.
  • Step 202 receiving a data message.
  • this step is substantially the same as step 101 in the first embodiment, and will not be repeated here.
  • Step 203 Construct a first forwarding table according to the data message, and send the first forwarding table to the standby device, so that the standby device forms a second forwarding table, wherein the outlet of the first forwarding table is the network element, and the outlet of the second forwarding table is the network element.
  • Export is the main equipment.
  • this step is substantially the same as step 102 in the first embodiment, and will not be repeated here.
  • Step 204 Send the data packet to the network element according to the exit of the first forwarding table.
  • this step is substantially the same as step 103 in the first embodiment, and will not be repeated here.
  • the active and standby roles of the device can also be determined in advance before the data packet is transmitted, and the device can directly transmit the data packet after receiving the packet. It does not need to determine the active and standby roles of the device again, which can improve the transmission efficiency of data packets in the VxLAN network.
  • the third embodiment of the present application relates to a data transmission method.
  • This embodiment is substantially the same as the first embodiment, except that in step 103, it is explained that in the process of sending the data packet to the network element, the master device receives the The data transmission method in case of failure, as shown in Figure 3, specifically includes the following steps.
  • Step 301 receiving a data message.
  • this step is substantially the same as step 101 in the first embodiment, and will not be repeated here.
  • Step 302 Construct a first forwarding table according to the data message, and send the first forwarding table to the standby device, so that the standby device forms a second forwarding table, wherein the outlet of the first forwarding table is a network element, and the outlet of the second forwarding table is a network element.
  • Export is the main equipment.
  • this step is substantially the same as step 102 in the first embodiment, and will not be repeated here.
  • Step 303 when the master device receives the fault information, the master device updates the outlet of the first forwarding table to the backup device, and sends a switch request message to the backup device, so that the backup device updates the outlet of the second forwarding table to the network element .
  • the exit of the forwarding table on the master device is the network element
  • the exit of the forwarding table on the standby device is the master device
  • fast The link detection mechanism detects the failure of the primary access link between the primary device and the NE.
  • the primary device After the primary device receives the information about the failure of the primary access link, it first updates the forwarding table exit on the primary device to the backup device. Then send a switch request to the standby device, so that the standby device updates the forwarding table exit on the standby device to the network element, and completes the switchover between the main device and the standby device, that is, the original master device is switched to the standby device, and the original standby device is switched.
  • main device when the entire network can work normally, the exit of the forwarding table on the master device is the network element, and the exit of the forwarding table on the standby device is the master device; and when the master device sends data packets to the network element, fast
  • the link detection mechanism detects the failure of the primary access link between the primary device and
  • Step 304 Forward the data packet according to the exit of the first forwarding table and the exit of the second forwarding table.
  • both the master device and the backup device can receive the packets to be forwarded.
  • device 1 is the master device and device 2 is the master device.
  • the data packet can be sent to device 1, which can be sent to the network element by device 1, or it can be sent to device 2, which can be sent to device 1 by device 2, and then sent to the network element by device 1.
  • the update of the outlet of the forwarding table changes the outlet of the data message accordingly, as shown in Figure 5(b), the active and standby roles of the device have changed at this time, the device 1 is the standby device, the device 2 is the main device, and the data
  • the packet can be sent to device 2, which is sent to the network element, or it can be sent to device 1, which is sent to device 2, and then sent to the network element by device 2.
  • the master device when the master device receives the fault information, it does not need to rebuild the forwarding table, but only needs to modify the exits of the forwarding tables on the master device and the backup device to complete the process.
  • the switch of the active and standby roles of the device can normally perform packet data forwarding, and complete the fast switchover of the active and standby networks in the event of a network failure, so that the packets can be transmitted in the network normally, and the reliability of the network is improved.
  • the fourth embodiment of the present application relates to a data transmission method, which is applied to a backup device of a VxLAN network, wherein the VxLAN network includes a master device and a backup device, as shown in FIG. 4 , and specifically includes the following steps.
  • Step 401 Receive a data packet and a first forwarding table.
  • the data packet received by the standby device is a downlink data packet sent from the remote device.
  • the data packet can be a user data packet or a network protocol packet, and the packet can be a three-layer packet. , or two layers;
  • the first forwarding table received by the standby device is sent by the master device through a certain synchronization mechanism, wherein the first forwarding table also includes the exit of the first forwarding table during the synchronization process.
  • Step 402 forming a second forwarding table according to the first forwarding table, wherein the outlet of the second forwarding table is the master device.
  • the standby device when the standby device receives the first forwarding table, it modifies the exit of the first forwarding table to the master device to form a second forwarding table on the standby device.
  • the second forwarding table is roughly similar to the first forwarding table. The difference is that the exits of the two forwarding tables are not the same.
  • Step 403 Send the data packet to the master device according to the exit.
  • the standby device will send the received data packets to the master device according to the exit of the second forwarding table for the master device to use. Send data packets to network elements.
  • the standby device receives the data packet and the first forwarding table, and forms a second forwarding table according to the first forwarding table, wherein the exit of the second forwarding table is the master device, and sends the data packet to the master device according to the exit equipment.
  • This enables the standby device to synchronize to the forwarding table of the master device, and forms its own forwarding table according to the forwarding table of the master device.
  • the data packet can be sent and received normally, so that the standby device is in the VxLAN network.
  • the active-standby mode can also work normally, which can improve the transmission efficiency of VxLAN network data packets.
  • the fifth embodiment of the present application relates to a data transmission method.
  • This embodiment is roughly the same as the fourth embodiment, except that in step 403, it is explained that in the process of sending the data packet to the master device, the backup device receives the The data transmission method in case of failure, as shown in Figure 6, specifically includes the following steps.
  • Step 601 Receive a data packet and a first forwarding table.
  • this step is substantially the same as step 501 in the fourth embodiment, and will not be repeated here.
  • Step 602 forming a second forwarding table according to the first forwarding table, wherein the outlet of the second forwarding table is the master device.
  • this step is substantially the same as step 502 in the fourth embodiment, and will not be repeated here.
  • Step 603 when the standby device receives the fault information, the standby device updates the exit of the second forwarding table to a network element.
  • the exit of the forwarding table on the standby device is the master device; and when the standby device sends data packets to the master device, the fast link detection mechanism is used to detect the connection between the standby device and the master device.
  • the transmission link between the devices is faulty.
  • the standby device After receiving the information about the failure of the transmission link, the standby device considers the primary device to be faulty.
  • the standby device updates the exit of the second forwarding table to the NE to complete the switchover between the primary device and the standby device.
  • Work that is, the original master device is switched to the standby device, and the original standby device is switched to the master device, but since the original master device has failed, it cannot be re-enabled after the master-standby switchover.
  • Step 604 Forward the data packet according to the egress of the second forwarding table.
  • the backup device when the backup device receives the failure of the transmission link between the backup device and the master device, and the failure of the transmission link between the backup device and the master device is caused by the failure of the master device, only the backup device can receive data at this time.
  • device 1 is the master device and device 2 is the standby device.
  • Data packets can be sent to device 1, to the network element by device 1, or to Device 2 is sent by device 2 to device 1, and then sent by device 1 to the network element;
  • the main device fails the update of the export of the forwarding table makes the export of the data packet change accordingly, as shown in Figure 5(c) , the data packet can only be sent to the standby device, and the standby device sends the data packet to the network element.
  • the standby device when the main device fails, the standby device does not need to rebuild the forwarding table, but only needs to modify the exit of the forwarding table on the standby device, and then the packet data can be processed normally.
  • the forwarding work is completed, and the fast switching of the active and standby networks is completed when the network fails, so that the packets can be transmitted in the network normally, and the reliability of the network is improved.
  • the sixth embodiment of the present application relates to a data transmission method, which is applied to a gateway of a VxLAN network, as shown in FIG. 7 , and specifically includes the following steps.
  • Step 701 Add the primary link of the primary device and the backup link of the backup device to the same multi-rack link aggregation, where the primary link is used to connect the primary device and the network element for transmitting data packets, and the backup link is used to connect the primary device and the network element.
  • the channel is used to connect the standby device and the network element.
  • the main link of the main device is used to connect the main device and the network element, so that the main device and the network element can communicate through the main link
  • the backup link of the standby device is used to connect the standby device and the network element.
  • the standby device and the network element can communicate through the standby link.
  • all the active and standby links are added to the same multi-rack link aggregation, so that the There are always members in the multi-rack link aggregation.
  • the master device and the backup device can be the edge device of the operator, or other network devices.
  • the backup device Can contain multiple network devices.
  • step 702 a transmission link is established between the primary device and the backup device, wherein the transmission link is constructed by the primary device according to the data message as the first forwarding table whose exit is the network element, and the backup device constructs the first forwarding table according to the first forwarding table as the outlet as the primary device.
  • the second forwarding table of the device is generated.
  • the master device needs to send the forwarding table to the backup device through a certain synchronization mechanism.
  • a transmission link is established between the devices to transmit the forwarding table sent.
  • the master device builds the first forwarding table with the exit as the network element according to the data message, and the standby device builds the first forwarding table according to the first forwarding table.
  • the second forwarding table of the device is generated, and the type of the transmission link is determined according to the synchronization mechanism used when sending the forwarding table.
  • the transmission link can be a link aggregation link (PeerLink link), VxLAN tunnel, etc., other available Any link used for transmission can be used.
  • Step 703 Bind the aggregated port of the multi-rack link and the port of the transmission link to the VxLAN network.
  • Step 704 Receive the data message to be sent.
  • the data packets sent from the remote device to the main device and the standby device cannot be sent directly.
  • the remote device needs to first send the data packets to the gateway on the VxLAN network, and the gateway receives the data packets to be sent. After that, the data packets are sent to the master device and the backup device through the gateway.
  • Step 705 Send the data packet to the device in the form of broadcast, multicast or unicast.
  • the gateway After the gateway receives the data packet, it needs to send the data packet to the device.
  • the data packet sent can be a user data packet, a network protocol packet, a Layer 3 data packet, or a It can be a Layer 2 data packet, and in the process of sending the data packet, it can be sent in any form of broadcast, multicast and unicast.
  • the VxLAN gateway adds the primary link and the backup link to the same multi-rack link aggregation, so that when a network failure occurs, the instruction to delete the forwarding table will not be issued.
  • a transmission link is established between them to synchronize the forwarding table to ensure that the network can perform fast switching.
  • the seventh embodiment of the present application relates to a data transmission system, as shown in FIG. 8 , including: a master device 801 , a backup device 802 , and a network element device 803 .
  • the master device is used for receiving the data message, constructing a first forwarding table according to the data message, and sending the first forwarding table to the standby device, so that the standby device can form a second forwarding table, wherein the exit of the first forwarding table is a network element, and the exit of the second forwarding table is the master device; the standby device is used to receive data packets and the first forwarding table of the master device, and form a second forwarding table according to the first forwarding table, wherein the second forwarding table The exit is the master device; the network element device is used to receive data packets sent by the master device.
  • this embodiment is a system embodiment corresponding to the first embodiment, and this embodiment can be implemented in cooperation with the first embodiment.
  • the related technical details mentioned in the first embodiment are still valid in this embodiment, and are not repeated here in order to reduce repetition.
  • the relevant technical details mentioned in this embodiment can also be applied in the first embodiment.
  • a logical unit may be a physical unit, a part of a physical unit, or multiple physical units.
  • a composite implementation of the unit in order to highlight the innovative part of the present application, this embodiment does not introduce units that are not closely related to solving the technical problem raised by the present application, but this does not mean that there are no other units in this embodiment.
  • the eighth embodiment of the present application relates to a network device, as shown in FIG. 9 , comprising: including at least one processor 901 ; and a memory 902 communicatively connected to the at least one processor 901 ; wherein the memory 902 stores data that can be accessed by Instructions executed by the at least one processor 901, the instructions are executed by the at least one processor 901, so that the at least one processor 901 can execute the data transmission method described in any of the above method embodiments.
  • the memory and the processor are connected by a bus, and the bus may include any number of interconnected buses and bridges, and the bus connects one or more processors and various circuits of the memory.
  • the bus may also connect together various other circuits, such as peripherals, voltage regulators, and power management circuits, which are well known in the art and, therefore, will not be further described herein.
  • the bus interface provides the interface between the bus and the transceiver.
  • a transceiver may be a single element or multiple elements, such as multiple receivers and transmitters, providing a means for communicating with various other devices over a transmission medium.
  • the data processed by the processor is transmitted on the wireless medium through the antenna.
  • the antenna also receives the data and transmits the data to the processor.
  • the processor is responsible for managing the bus and general processing, and can also provide various functions, including timing, peripheral interface, voltage regulation, power management, and other control functions. Instead, memory may be used to store data used by the processor in performing operations.
  • One embodiment of the present application relates to a computer-readable storage medium storing a computer program.
  • the above method embodiments are implemented when the computer program is executed by the processor.
  • the computer-readable storage medium includes transient or non-transitory, removable or Non-removable media.
  • the aforementioned storage medium includes: U disk, mobile hard disk, Read-Only Memory (ROM, Read-Only Memory), Random Access Memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes .

Landscapes

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

Abstract

The present application relates to the field of communications and provides a data transmission method and system, a network device, and a storage medium. The data transmission method comprises: receiving a data packet; constructing a first forwarding table according to the data packet, and sending the first forwarding table to a standby device, so that the standby device forms a second forwarding table, wherein an outlet of the first forwarding table is a network element, and an outlet of the second forwarding table is a master device; and sending the data packet to the network element according to the outlet of the first forwarding table.

Description

数据传输方法、***、网络设备和存储介质Data transmission method, system, network device and storage medium
交叉引用cross reference
本申请基于申请号为“202011018547.6”、申请日为2020年09月24日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此以引入方式并入本申请。This application is based on the Chinese patent application with the application number "202011018547.6" and the application date is September 24, 2020, and claims the priority of the Chinese patent application. The entire content of the Chinese patent application is hereby incorporated by reference. Apply.
技术领域technical field
本申请实施例涉及通讯技术领域,特别涉及一种数据传输方法、***、网络设备和存储介质。The embodiments of the present application relate to the field of communication technologies, and in particular, to a data transmission method, system, network device, and storage medium.
背景技术Background technique
在虚拟扩展局域网(Virtual Extensible Local Area Network,VxLAN)中,双网关的下挂网元会设置为主备模式,在主备模式下只有主链路收发报文,备链路不发不收报文。相关的主备网络中进行数据传输技术包括:将主设备的主链路和备设备的备链路分别加入不同的多机架链路聚合(Multi-chassis Link Aggregation,MC-LAG),主设备接入的MC-LAG学习到转发表项后,采取一定的同步机制把转发表项同步到除备设备接入的MC-LAG的其他设备上,当主设备接收到数据报文后,通过主链路进行传输,而当主设备或者主设备的主链路发生故障后,才使得原先备设备能正常收发报文,再重新在备链路接入的MC-LAG上构建转发表项,再通过备链路来进行数据传输。In a Virtual Extensible Local Area Network (VxLAN), the NEs attached to the dual gateways will be set to active/standby mode. In active/standby mode, only the active link sends and receives packets, and the standby link does not send or receive packets. Arts. The relevant data transmission technologies in the active and standby networks include: adding the main link of the main device and the standby link of the standby device to different multi-chassis Link Aggregation (MC-LAG) After the connected MC-LAG learns the forwarding entry, it adopts a certain synchronization mechanism to synchronize the forwarding entry to other devices of the MC-LAG connected to the standby device. When the primary device or the primary link of the primary device fails, the original backup device can send and receive packets normally, and then re-build a forwarding entry on the MC-LAG connected to the backup link, and then pass the backup link to the MC-LAG. link for data transmission.
然而,当主设备或者主设备的主链路发生故障时,由于主设备接入的MC-LAG内没有成员,会导致主设备接入的MC-LAG组上的转发表被删除,进行主备切换后,备设备接入的MC-LAG链路需要重新进行新转发表的构建,整个VxLAN网络的收敛时间依据新转发表的学习时间而定,影响VxLAN网络的数据传输效率,对于双网关下挂的网元而言,一旦出现新转发表的学习时间过长会导致VxLAN组网中的业务下线,影响VxLAN网络的稳定性和可靠性。However, when the master device or the main link of the master device fails, since there are no members in the MC-LAG connected by the master device, the forwarding table on the MC-LAG group connected by the master device will be deleted, and the master-standby switchover will be performed. After that, the MC-LAG link connected by the standby device needs to re-construct a new forwarding table. The convergence time of the entire VxLAN network depends on the learning time of the new forwarding table, which affects the data transmission efficiency of the VxLAN network. As far as the NE is concerned, once the learning time of the new forwarding table is too long, the services in the VxLAN network will be offline, affecting the stability and reliability of the VxLAN network.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供了一种数据传输方法,所述方法包括以下步骤:接收数据报文;根据所述数据报文构建第一转发表,将所述第一转发表发送给所述备设备,以供所述备设备形成第二转发表,其中,所述第一转发表的出口为网元,所述第二转发表的出口为所述主设备;根据所述第一转发表的出口将所述数据报文发送至所述网元。An embodiment of the present application provides a data transmission method, the method includes the following steps: receiving a data message; constructing a first forwarding table according to the data message, and sending the first forwarding table to the standby device, For the standby device to form a second forwarding table, wherein the outlet of the first forwarding table is the network element, and the outlet of the second forwarding table is the master device; according to the outlet of the first forwarding table, the The data packet is sent to the network element.
本申请实施例还提出了一种数据传输方法,包括:接收数据报文和第一转发表;根据所 述第一转发表形成第二转发表,其中,所述第二转发表的出口为所述主设备;将所述数据报文根据所述第二转发表的出口发送至所述主设备。The embodiment of the present application also proposes a data transmission method, including: receiving a data message and a first forwarding table; forming a second forwarding table according to the first forwarding table, wherein the outlet of the second forwarding table is the the master device; and send the data packet to the master device according to the exit of the second forwarding table.
本申请实施例还提出了一种数据传输方法,包括:将主设备的主链路和备设备的备链路加入同一个多机架链路聚合,其中,所述主链路用于连接所述主设备与网元,以供传输数据报文,所述备链路用于连接所述备设备和所述网元;在所述主设备和所述备设备之间建立传输链路;其中,所述传输链路由所述主设备根据所述数据报文构建出口为所述网元的第一转发表,所述备设备根据所述第一转发表构建出口为所述主设备的第二转发表生成;将所述多机架链路聚合的端口与所述传输链路的端口绑定到所述VxLAN网络中。The embodiment of the present application also proposes a data transmission method, including: adding the primary link of the primary device and the backup link of the backup device to the same multi-rack link aggregation, wherein the primary link is used to connect all The primary device and the network element are used to transmit data packets, and the backup link is used to connect the backup device and the network element; a transmission link is established between the primary device and the backup device; wherein , for the transmission link, the master device constructs a first forwarding table whose exit is the network element according to the data message, and the standby device constructs a first forwarding table whose exit is the master device according to the first forwarding table. Second, a forwarding table is generated; the port of the multi-rack link aggregation and the port of the transmission link are bound to the VxLAN network.
本申请实施例还提出了一种数据传输***,包括:The embodiment of the present application also proposes a data transmission system, including:
主设备,用于接收数据报文,根据所述数据报文构建第一转发表,将所述第一转发表发送给备设备,以供所述备设备形成第二转发表,其中,所述第一转发表的出口为网元,所述第二转发表的出口为所述主设备;a master device, configured to receive a data message, construct a first forwarding table according to the data message, and send the first forwarding table to a backup device so that the backup device can form a second forwarding table, wherein the The outlet of the first forwarding table is a network element, and the outlet of the second forwarding table is the master device;
备设备,用于接收所述数据报文和所述主设备的所述第一转发表,并根据所述第一转发表形成第二转发表,其中,所述第二转发表的出口为所述主设备;A standby device, configured to receive the data packet and the first forwarding table of the master device, and form a second forwarding table according to the first forwarding table, wherein the exit of the second forwarding table is the the main equipment;
网元设备,用于接收所述主设备发送的所述数据报文。A network element device, configured to receive the data packet sent by the master device.
本申请实施例还提出了一种网络设备,所述设备包括:The embodiment of the present application also proposes a network device, and the device includes:
至少一个处理器;以及,at least one processor; and,
与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein,
所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行上述所述的数据传输方法。The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the data transmission method described above.
本申请实施例还提出了一种计算机可读存储介质,存储有计算机程序,所述计算机程序被处理器执行时实现上述所述的数据传输方法。An embodiment of the present application further provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, implements the above-mentioned data transmission method.
附图说明Description of drawings
一个或多个实施例通过与之对应的附图中的图片进行示例性说明,这些示例性说明并不构成对实施例的限定。One or more embodiments are exemplified by the pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments.
图1是本申请第一实施例提供的数据传输方法的流程图;1 is a flowchart of a data transmission method provided by a first embodiment of the present application;
图2是本申请第二实施例提供的数据传输方法的流程图;2 is a flowchart of a data transmission method provided by a second embodiment of the present application;
图3是本申请第三实施例提供的数据传输方法的流程图;3 is a flowchart of a data transmission method provided by a third embodiment of the present application;
图4是本申请第四实施例提供的数据传输方法的流程图;4 is a flowchart of a data transmission method provided by a fourth embodiment of the present application;
图5(a)是图3所示的本申请第三实施例和图6所示的本申请第五实施例提供的数据传输方法的正常情况下数据报文转发示意图;FIG. 5( a ) is a schematic diagram of data message forwarding under normal conditions of the data transmission method provided by the third embodiment of the present application shown in FIG. 3 and the fifth embodiment of the present application shown in FIG. 6 ;
图5(b)是图3所示的本申请第三实施例提供的数据传输方法的主链路故障情况下数据报文转发示意图;5(b) is a schematic diagram of data packet forwarding in the case of a main link failure of the data transmission method provided by the third embodiment of the present application shown in FIG. 3;
图5(c)是图6所示的本申请第五实施例提供的数据传输方法的主设备故障情况下数据报文转发示意图;FIG. 5(c) is a schematic diagram of data packet forwarding in the case of failure of the master device of the data transmission method provided by the fifth embodiment of the present application shown in FIG. 6;
图6是本申请第五实施例提供的数据传输方法的流程图;6 is a flowchart of a data transmission method provided by a fifth embodiment of the present application;
图7是本申请第六实施例提供的数据传输方法的流程图;7 is a flowchart of a data transmission method provided by a sixth embodiment of the present application;
图8是本申请第七实施例提供的数据传输***的结构示意图;8 is a schematic structural diagram of a data transmission system provided by a seventh embodiment of the present application;
图9是本申请第八实施例提供的网络设备的结构示意图。FIG. 9 is a schematic structural diagram of a network device provided by an eighth embodiment of the present application.
具体实施方式detailed description
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合附图对本申请的各实施例进行详细的阐述。然而,本领域的普通技术人员可以理解,在本申请各实施例中,为了使读者更好地理解本申请而提出了许多技术细节。但是,即使没有这些技术细节和基于以下各实施例的种种变化和修改,也可以实现本申请所要求保护的技术方案。以下各个实施例的划分是为了描述方便,不应对本申请的具体实现方式构成任何限定,各个实施例在不矛盾的前提下可以相互结合相互引用。In order to make the objectives, technical solutions and advantages of the embodiments of the present application more clear, each embodiment of the present application will be described in detail below with reference to the accompanying drawings. However, those of ordinary skill in the art can understand that, in each embodiment of the present application, many technical details are provided for the reader to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical solutions claimed in the present application can be realized. The following divisions of the various embodiments are for the convenience of description, and should not constitute any limitation on the specific implementation of the present application, and the various embodiments may be combined with each other and referred to each other on the premise of not contradicting each other.
本申请的第一实施例涉及一种数据传输方法,应用在VxLAN网络的主设备上,其中,VxLAN网络包含主设备和备设备,如图1所示,具体包括以下步骤。The first embodiment of the present application relates to a data transmission method, which is applied to a master device of a VxLAN network, wherein the VxLAN network includes a master device and a backup device, as shown in FIG. 1 , and specifically includes the following steps.
步骤101,接收数据报文。Step 101: Receive a data message.
具体地说,在VxLAN网络中,主设备所接收的数据报文时从远端设备发送的下行数据报文,该数据报文可以是用户数据报文,也可以是网络协议报文,报文可以是三层的,也可以是两层的。Specifically, in a VxLAN network, the data packet received by the master device is a downlink data packet sent from a remote device, and the data packet can be a user data packet, or a network protocol packet, a packet It can be three layers or two layers.
步骤102,根据数据报文构建第一转发表,将第一转发表发送给备设备,以供备设备形成第二转发表,其中,第一转发表的出口为网元,第二转发表的出口为主设备。Step 102: Construct a first forwarding table according to the data message, and send the first forwarding table to the standby device, so that the standby device forms a second forwarding table, wherein the outlet of the first forwarding table is the network element, and the outlet of the second forwarding table is the network element. Export is the main equipment.
具体地说,当主设备接收到数据报文时,首先会根据所接收到的数据报文来构建转发表,转发表构建完成后,主设备首先会向将转发表保存在主设备上,再采取一定的同步机制将转发表发送到备设备,所构建的转发表中包含出口,出口规定的是报文的出口,即:该报文通过哪个出口发向下一个目标,其中,数据报文是指一种能通过学习而构建转发表的报文,而在主设备上构建的转发表是一个动态表,主设备上的转发表的出口为网元,备设备同步到的转发表是一个静态表,备设备上的转发表的出口为主设备;以请求网关地址的arp的数据报文(源IP:1.1.1.2/24,源mac:00:00:00:11:11:11)为例,所构建的转发表包含arp,转发表(arp:IP:1.1.1.2/24(mac:00:00:00:11:11:11))和mac转发表(mac:00:00:00:11:11:11)。此外,需要注意的是:同步转发表的过程可以采取基于ICBG协议的同步,在主设备和备设备之间建立ICBG通道,也可以采用在主设备和备设备之间建立VxLAN隧道,建立其他可用于传输的通道均可以使用。Specifically, when the master device receives a data packet, it will first construct a forwarding table based on the received data packet. After the forwarding table is constructed, the master device will first save the forwarding table on the master device, and then take A certain synchronization mechanism sends the forwarding table to the standby device. The constructed forwarding table contains the exit, and the exit specifies the exit of the message, that is, through which exit the message is sent to the next destination, where the data message is Refers to a message that can build a forwarding table through learning, and the forwarding table built on the master device is a dynamic table, the forwarding table on the master device is the export of the network element, and the forwarding table synchronized by the standby device is a static table. Table, the export of the forwarding table on the standby device is the master device; the data packet of the arp requesting the gateway address (source IP: 1.1.1.2/24, source mac: 00:00:00:11:11:11) is For example, the constructed forwarding table includes arp, forwarding table (arp:IP:1.1.1.2/24(mac:00:00:00:11:11:11)) and mac forwarding table (mac:00:00:00 :11:11:11). In addition, it should be noted that the process of synchronizing the forwarding table can be based on the synchronization of the ICBG protocol, establishing an ICBG channel between the master device and the backup device, or establishing a VxLAN tunnel between the master device and the backup device, establishing other available All channels used for transmission can be used.
步骤103,根据第一转发表的出口将数据报文发送至网元。Step 103: Send the data packet to the network element according to the exit of the first forwarding table.
具体地说,主设备将根据所构建的转发表的出口发送数据报文,主设备与网元之间通过主链路进行连接,当主设备上的转发表的出口为网元,主设备会将接收到的数据报文通过主链路发送给网元,而在VxLAN网络正常工作时,由于备设备上的转发表的出口为主设备,因此主设备在根据第一转发表的出口将数据报文发送至网元的过程中,除了需要发送主设备从远端设备接收到的数据报文之外,还需要将备设备发送的数据报文发送至网元。Specifically, the master device will send data packets according to the exit of the forwarding table constructed, and the master device and the network element are connected through the main link. When the exit of the forwarding table on the master device is the network element, the master device will The received data packet is sent to the NE through the primary link. When the VxLAN network is working normally, since the forwarding table on the standby device is the primary device, the primary device sends the datagram according to the exit of the first forwarding table. In the process of sending the data packet to the network element, in addition to the data packet received by the master device from the remote device, it is also necessary to send the data packet sent by the standby device to the network element.
在实施例中,主设备接收数据报文,会根据数据报文构建第一转发表,将第一转发表发送给备设备,以供备设备形成第二转发表,其中,第一转发表的出口为网元,第二转发表的出口为主设备;根据第一转发表的出口将数据报文发送至所述网元。由于主设备构建转发表之后会将转发表发送给备设备,使得备设备也可以正常地进行数据报文的传输工作,从而保 证VxLAN网络的稳定性和可靠性的同时提高数据传输效率。In the embodiment, the master device receives the data message, constructs the first forwarding table according to the data message, and sends the first forwarding table to the standby device, so that the standby device can form the second forwarding table, wherein the first forwarding table is The outlet is the network element, and the outlet of the second forwarding table is the main device; the data packet is sent to the network element according to the outlet of the first forwarding table. After the master device builds the forwarding table, it sends the forwarding table to the standby device, so that the standby device can also transmit data packets normally, thus ensuring the stability and reliability of the VxLAN network and improving the data transmission efficiency.
本申请的第二实施例涉及一种数据传输方法,本实施例与第一实施例大致相同,区别在于,在接收数据报文之前还需要进行设备的主备角色的确定,如图2所示,具体包括以下步骤。The second embodiment of the present application relates to a data transmission method. This embodiment is roughly the same as the first embodiment, except that the active and standby roles of a device need to be determined before receiving a data packet, as shown in FIG. 2 . , which includes the following steps.
步骤201,确定设备的主备角色。In step 201, the active and standby roles of the device are determined.
具体地说,在VxLAN网络中,是多个设备与一个网元之间通过接入链路建立连接,虽然说接入链路有主备角色之分,但与接入链路相连接的设备还未进行主备角色的划分,所以在接收下行数据报文之前,需要先确定设备的主备角色;设备的主备角色的划分有两种方式:通过网元向设备发送测试报文来确定和通过VxLAN转发域向设备发送测试报文来确定;当某一个设备确定为主设备时,其余设备均为备设备。Specifically, in a VxLAN network, a connection is established between multiple devices and one network element through an access link. Although the access link has active and standby roles, the device connected to the access link The active and standby roles have not yet been divided, so before receiving downlink data packets, it is necessary to determine the active and standby roles of the device. There are two ways to divide the active and standby roles of the device: The network element sends a test packet to the device to determine It is determined by sending test packets to the device through the VxLAN forwarding domain; when a device is determined to be the master device, the rest of the devices are standby devices.
通过网元向设备发送测试报文来确定主备角色:网元通过接入链路向设备发送测试报文;能够接收到测试报文的设备就能够确定它与网元之间的接入链路为主接入链路,即:该设备认定自身为主设备,该设备接收到测试报文之后会根据测试报文构建一个转发表,然后将转发表发向其他设备,其他设备接收到转发表之后就会确定自身为备设备,同时确定它与网元之间的接入链路为备接入链路,并且会为所接收到的转发表做一个接收标记,用于告知设备该转发表并非该设备生成的,同时备设备还会向主设备发送一个响应消息,发送该消息的目的是告知主设备已收到转发表,让主设备知晓自己的角色。此外,还需要注意的是:当以上述方式确定好主备角色之后,由于网元的配置信息而导致主接入链路和备接入链路的角色发生变化,此时只需要通过接入链路向设备发送测试报文,能够接收到测试报文的设备就在该设备上确定本端接入链路为主,其他设备相应的为备接入链路。The active and standby roles are determined by the network element sending test packets to the device: the network element sends a test packet to the device through the access link; the device that can receive the test packet can determine the access link between it and the network element The access link is the primary access link, that is, the device identifies itself as the primary device. After receiving the test packet, the device will construct a forwarding table based on the test packet, and then forward the forwarding table to other devices. Other devices receive the forwarding table. After it is published, it will determine itself as the standby device, and at the same time determine the access link between it and the network element as the standby access link, and will make a reception mark for the received forwarding table to inform the device that the forwarding The publication is not generated by the device, and the standby device will also send a response message to the master device. The purpose of sending this message is to inform the master device that it has received the forwarding table and let the master device know its role. In addition, it should also be noted that after the active and standby roles are determined in the above manner, the roles of the active access link and the standby access link are changed due to the configuration information of the network element. The link sends a test packet to the device, and the device that can receive the test packet determines on the device that the local access link is the primary access link, and other devices are correspondingly the standby access link.
通过VxLAN网络转发域向设备发送测试报文来确定:从远端设备通过VxLAN网络转发域向设备发送测试报文时,远端设备接收到该测试报文时会上送协议收发包模块,协议收发包模块将该测试报文转化为协议请求报文,该协议请求报文在VxLAN转发域作为广播&未知单播&组播报文(Broadcast&Unknow-Unicast&Multicast,BUM)转发,VxLAN转发域将协议请求报文转发到设备上,设备将所接收到的协议请求报文通过接入链路发送至网元,若网元通过某一接入链路接收到协议请求报文,并向与该接入链路连接的设备发送响应消息,则该设备在接收到网元所返回的响应消息之后,会认定自身为主设备,且认定与网元之间的接入链路为主接入链路;若网元通过某一接入链路接收到协议请求报文,但对所接收到的协议请求报文做丢弃处理,此时与该接入链路连接的设备不会接收到网元所发送的响应消息,就会认定自身为备设备,且认定与网元之间的接入链路为备接入链路。It is determined by sending a test packet to the device through the VxLAN network forwarding domain: when a test packet is sent from the remote device to the device through the VxLAN network forwarding domain, the remote device will send the protocol sending and receiving packet module when receiving the test packet. The packet sending and receiving module converts the test packet into a protocol request packet. The protocol request packet is forwarded in the VxLAN forwarding domain as a Broadcast & Unknow-Unicast & Multicast (BUM) packet, and the VxLAN forwarding domain forwards the protocol request The packet is forwarded to the device, and the device sends the received protocol request packet to the network element through the access link. If the network element receives the protocol request packet through an access link, it sends a request to the access link. If the device connected to the link sends a response message, after receiving the response message returned by the network element, the device will identify itself as the master device, and identify the access link with the network element as the master access link; If the network element receives the protocol request message through an access link, but discards the received protocol request message, the device connected to the access link will not receive the message sent by the network element. response message, it will identify itself as the standby device, and identify the access link with the network element as the standby access link.
步骤202,接收数据报文。 Step 202, receiving a data message.
具体地说,本步骤与第一实施例中的步骤101大致相同,此处不一一赘述。Specifically, this step is substantially the same as step 101 in the first embodiment, and will not be repeated here.
步骤203,根据数据报文构建第一转发表,将第一转发表发送给备设备,以供备设备形成第二转发表,其中,第一转发表的出口为网元,第二转发表的出口为主设备。Step 203: Construct a first forwarding table according to the data message, and send the first forwarding table to the standby device, so that the standby device forms a second forwarding table, wherein the outlet of the first forwarding table is the network element, and the outlet of the second forwarding table is the network element. Export is the main equipment.
具体地说,本步骤与第一实施例中的步骤102大致相同,此处不一一赘述。Specifically, this step is substantially the same as step 102 in the first embodiment, and will not be repeated here.
步骤204,根据第一转发表的出口将数据报文发送至网元。Step 204: Send the data packet to the network element according to the exit of the first forwarding table.
具体地说,本步骤与第一实施例中的步骤103大致相同,此处不一一赘述。Specifically, this step is substantially the same as step 103 in the first embodiment, and will not be repeated here.
在本实施例中,在第一实施例的基础上,还可以在数据报文进行传输之前,提前确定好设备的的主备角色,设备接收到报文之后,可以直接进行数据报文的传输工作,不需要再次 进行设备主备角色的确定,可以提高数据报文在VxLAN网络中的传输效率。In this embodiment, on the basis of the first embodiment, the active and standby roles of the device can also be determined in advance before the data packet is transmitted, and the device can directly transmit the data packet after receiving the packet. It does not need to determine the active and standby roles of the device again, which can improve the transmission efficiency of data packets in the VxLAN network.
本申请的第三实施例涉及一种数据传输方法,本实施例与第一实施例大致相同,区别在于,说明了在步骤103中,将数据报文发送至网元的过程中主设备接收到故障时的数据传输方法,如图3所示,具体包括以下步骤。The third embodiment of the present application relates to a data transmission method. This embodiment is substantially the same as the first embodiment, except that in step 103, it is explained that in the process of sending the data packet to the network element, the master device receives the The data transmission method in case of failure, as shown in Figure 3, specifically includes the following steps.
步骤301,接收数据报文。 Step 301, receiving a data message.
具体地说,本步骤与第一实施例中的步骤101大致相同,此处不一一赘述。Specifically, this step is substantially the same as step 101 in the first embodiment, and will not be repeated here.
步骤302,根据数据报文构建第一转发表,将第一转发表发送给备设备,以供备设备形成第二转发表,其中,第一转发表的出口为网元,第二转发表的出口为主设备。Step 302: Construct a first forwarding table according to the data message, and send the first forwarding table to the standby device, so that the standby device forms a second forwarding table, wherein the outlet of the first forwarding table is a network element, and the outlet of the second forwarding table is a network element. Export is the main equipment.
具体地说,本步骤与第一实施例中的步骤102大致相同,此处不一一赘述。Specifically, this step is substantially the same as step 102 in the first embodiment, and will not be repeated here.
步骤303,当主设备接收到故障信息时,主设备将第一转发表的出口更新为备设备,并向备设备发送切换请求报文,以供备设备将第二转发表的出口更新为网元。 Step 303, when the master device receives the fault information, the master device updates the outlet of the first forwarding table to the backup device, and sends a switch request message to the backup device, so that the backup device updates the outlet of the second forwarding table to the network element .
具体地说,当整个网络能够正常工作时,主设备上的转发表的出口是网元,备设备上的转发表的出口是主设备;而当主设备向网元发送数据报文时,采取快速链路检测机制检测到与主设备与网元之间主接入链路故障,主设备接收到主接入链路故障的信息后,首先会将主设备上转发表的出口更新为备设备,之后再向备设备发送切换请求,使得备设备将备设备上转发表的出口更新为网元,完成主设备和备设备的切换工作,即原先的主设备切换为备设备,原先的备设备切换为主设备。Specifically, when the entire network can work normally, the exit of the forwarding table on the master device is the network element, and the exit of the forwarding table on the standby device is the master device; and when the master device sends data packets to the network element, fast The link detection mechanism detects the failure of the primary access link between the primary device and the NE. After the primary device receives the information about the failure of the primary access link, it first updates the forwarding table exit on the primary device to the backup device. Then send a switch request to the standby device, so that the standby device updates the forwarding table exit on the standby device to the network element, and completes the switchover between the main device and the standby device, that is, the original master device is switched to the standby device, and the original standby device is switched. main device.
步骤304,根据第一转发表的出口和第二转发表的出口转发数据报文。Step 304: Forward the data packet according to the exit of the first forwarding table and the exit of the second forwarding table.
具体地说,当主设备接收到主链路故障时,主设备和备设备都可以接收待转发报文,当网络正常时,如图5(a)所示,设备1为主设备,设备2为备设备,数据报文可以发向设备1,由设备1发向网元,也可以发向设备2,由设备2发向设备1,再由设备1发向网元;当主链路故障时,转发表的出口的更新使得数据报文的出口也相应的改变,如图5(b)所示,此时设备的主备角色已发生改变,设备1为备设备,设备2为主设备,数据报文可以发向设备2,由设备2发向网元,也可以发向设备1,由设备1发向设备2,再由设备2发向网元。Specifically, when the master device receives the main link failure, both the master device and the backup device can receive the packets to be forwarded. When the network is normal, as shown in Figure 5(a), device 1 is the master device and device 2 is the master device. The data packet can be sent to device 1, which can be sent to the network element by device 1, or it can be sent to device 2, which can be sent to device 1 by device 2, and then sent to the network element by device 1. When the main link fails, The update of the outlet of the forwarding table changes the outlet of the data message accordingly, as shown in Figure 5(b), the active and standby roles of the device have changed at this time, the device 1 is the standby device, the device 2 is the main device, and the data The packet can be sent to device 2, which is sent to the network element, or it can be sent to device 1, which is sent to device 2, and then sent to the network element by device 2.
在本实施例中,在第一实施例地基础上,在主设备接收到故障信息时,不需要在重新构建转发表,只需修改主设备和备设备上的转发表的出口,就可以完成设备的主备角色的转换,就可以正常的进行报文数据的转发工作,完成网络故障时的主备网络的快速切换,使得报文可以正常地在网络中进行传输,提高网络的可靠性。In this embodiment, on the basis of the first embodiment, when the master device receives the fault information, it does not need to rebuild the forwarding table, but only needs to modify the exits of the forwarding tables on the master device and the backup device to complete the process. The switch of the active and standby roles of the device can normally perform packet data forwarding, and complete the fast switchover of the active and standby networks in the event of a network failure, so that the packets can be transmitted in the network normally, and the reliability of the network is improved.
本申请的第四实施例涉及一种数据传输方法,应用在VxLAN网络的备设备上,其中,VxLAN网络包含主设备和备设备,如图4所示,具体包括以下步骤。The fourth embodiment of the present application relates to a data transmission method, which is applied to a backup device of a VxLAN network, wherein the VxLAN network includes a master device and a backup device, as shown in FIG. 4 , and specifically includes the following steps.
步骤401,接收数据报文和第一转发表。Step 401: Receive a data packet and a first forwarding table.
具体地说,备设备所接收的数据报文是从远端设备发送的下行数据报文,该数据报文可以是用户数据报文,也可以是网络协议报文,报文可以是三层的,也可以是两层的;备设备所接收到的第一转发表是由主设备通过一定的同步机制发送的,其中,第一转发表在同步的过程中还包含第一转发表的出口。Specifically, the data packet received by the standby device is a downlink data packet sent from the remote device. The data packet can be a user data packet or a network protocol packet, and the packet can be a three-layer packet. , or two layers; the first forwarding table received by the standby device is sent by the master device through a certain synchronization mechanism, wherein the first forwarding table also includes the exit of the first forwarding table during the synchronization process.
步骤402,根据第一转发表形成第二转发表,其中,第二转发表的出口为主设备。 Step 402, forming a second forwarding table according to the first forwarding table, wherein the outlet of the second forwarding table is the master device.
具体地说,当备设备接收到第一转发表后,会将第一转发表的出口修改为主设备,形成备设备上的第二转发表,第二转发表与第一转发表大体相似,区别之处在于两个转发表的出口不相同。Specifically, when the standby device receives the first forwarding table, it modifies the exit of the first forwarding table to the master device to form a second forwarding table on the standby device. The second forwarding table is roughly similar to the first forwarding table. The difference is that the exits of the two forwarding tables are not the same.
步骤403,将数据报文根据出口发送至主设备。Step 403: Send the data packet to the master device according to the exit.
具体地说,备设备在形成第二转发表后,由于第二转发表的出口为主设备,备设备会将接收到的数据报文根据第二转发表的出口方向主设备,以供主设备将数据报文发送至网元。Specifically, after the standby device forms the second forwarding table, since the exit of the second forwarding table is the master device, the standby device will send the received data packets to the master device according to the exit of the second forwarding table for the master device to use. Send data packets to network elements.
在本实施例中,备设备接收数据报文和第一转发表,根据第一转发表形成第二转发表,其中,第二转发表的出口为主设备,将数据报文根据出口发送至主设备。使得备设备可以同步到主设备的转发表,根据主设备的转发表形成备设备自身的转发表,转发表形成之后,就可以正常的进行数据报文的收发工作,使得备设备在VxLAN网络的主备模式中也能够进行正常的工作,可以提高VxLAN网络数据报文的传输效率。In this embodiment, the standby device receives the data packet and the first forwarding table, and forms a second forwarding table according to the first forwarding table, wherein the exit of the second forwarding table is the master device, and sends the data packet to the master device according to the exit equipment. This enables the standby device to synchronize to the forwarding table of the master device, and forms its own forwarding table according to the forwarding table of the master device. After the forwarding table is formed, the data packet can be sent and received normally, so that the standby device is in the VxLAN network. The active-standby mode can also work normally, which can improve the transmission efficiency of VxLAN network data packets.
本申请的第五实施例涉及一种数据传输方法,本实施例与第四实施例大致相同,区别在于,说明了在步骤403中,将数据报文发送至主设备的过程中备设备接收到故障时的数据传输方法,如图6所示,具体包括以下步骤。The fifth embodiment of the present application relates to a data transmission method. This embodiment is roughly the same as the fourth embodiment, except that in step 403, it is explained that in the process of sending the data packet to the master device, the backup device receives the The data transmission method in case of failure, as shown in Figure 6, specifically includes the following steps.
步骤601,接收数据报文和第一转发表。Step 601: Receive a data packet and a first forwarding table.
具体地说,本步骤与第四实施例中的步骤501大致相同,此处不一一赘述。Specifically, this step is substantially the same as step 501 in the fourth embodiment, and will not be repeated here.
步骤602,根据第一转发表形成第二转发表,其中,第二转发表的出口为主设备。 Step 602, forming a second forwarding table according to the first forwarding table, wherein the outlet of the second forwarding table is the master device.
具体地说,本步骤与第四实施例中的步骤502大致相同,此处不一一赘述。Specifically, this step is substantially the same as step 502 in the fourth embodiment, and will not be repeated here.
步骤603,当备设备接收到故障信息时,备设备将第二转发表的出口更新为网元。 Step 603, when the standby device receives the fault information, the standby device updates the exit of the second forwarding table to a network element.
具体地说,当整个网络能够正常工作时,备设备上的转发表的出口是主设备;而当备设备向主设备发送数据报文时,采取快速链路检测机制检测到与备设备与主设备之间传输链路故障,备设备接收到传输链路故障的信息后,会认为主设备故障,此时备设备将第二转发表的出口更新为网元,完成主设备和备设备的切换工作,即原先的主设备切换为备设备,原先的备设备切换为主设备,但由于原先的主设备已经故障,在主备切换之后,不能够重新启用。Specifically, when the entire network can work normally, the exit of the forwarding table on the standby device is the master device; and when the standby device sends data packets to the master device, the fast link detection mechanism is used to detect the connection between the standby device and the master device. The transmission link between the devices is faulty. After receiving the information about the failure of the transmission link, the standby device considers the primary device to be faulty. At this time, the standby device updates the exit of the second forwarding table to the NE to complete the switchover between the primary device and the standby device. Work, that is, the original master device is switched to the standby device, and the original standby device is switched to the master device, but since the original master device has failed, it cannot be re-enabled after the master-standby switchover.
步骤604,根据第二转发表的出口转发数据报文。Step 604: Forward the data packet according to the egress of the second forwarding table.
具体地说,当备设备接收到与主设备之间的传输链路故障时,而备设备与主设备之间的传输链路故障是由于主设备故障引起的,此时只有备设备可以接收数据报文,当网络正常时,如图5(a)所示,设备1为主设备,设备2为备设备,数据报文可以发向设备1,由设备1发向网元,也可以发向设备2,由设备2发向设备1,再由设备1发向网元;当主设备故障时,转发表的出口的更新使得数据报文的出口也相应的改变,如图5(c)所示,数据报文只能够发向备设备,由备设备发向网元。Specifically, when the backup device receives the failure of the transmission link between the backup device and the master device, and the failure of the transmission link between the backup device and the master device is caused by the failure of the master device, only the backup device can receive data at this time. When the network is normal, as shown in Figure 5(a), device 1 is the master device and device 2 is the standby device. Data packets can be sent to device 1, to the network element by device 1, or to Device 2 is sent by device 2 to device 1, and then sent by device 1 to the network element; when the main device fails, the update of the export of the forwarding table makes the export of the data packet change accordingly, as shown in Figure 5(c) , the data packet can only be sent to the standby device, and the standby device sends the data packet to the network element.
在本实施例中,在第四实施例的基础上,在主设备故障时,备设备不需要重新构建转发表,只需修改备设备上的转发表的出口,就可以正常的进行报文数据的转发工作,完成网络故障时的主备网络的快速切换,使得报文可以正常地在网络中进行传输,提高网络的可靠性。In this embodiment, on the basis of the fourth embodiment, when the main device fails, the standby device does not need to rebuild the forwarding table, but only needs to modify the exit of the forwarding table on the standby device, and then the packet data can be processed normally. The forwarding work is completed, and the fast switching of the active and standby networks is completed when the network fails, so that the packets can be transmitted in the network normally, and the reliability of the network is improved.
本申请第六实施例涉及一种数据传输方法,应用在VxLAN网络的网关上,如图7所示,具体包括以下步骤。The sixth embodiment of the present application relates to a data transmission method, which is applied to a gateway of a VxLAN network, as shown in FIG. 7 , and specifically includes the following steps.
步骤701,将主设备的主链路和备设备的备链路加入同一个多机架链路聚合,其中,主链路用于连接主设备与网元,以供传输数据报文,备链路用于连接备设备和网元。Step 701: Add the primary link of the primary device and the backup link of the backup device to the same multi-rack link aggregation, where the primary link is used to connect the primary device and the network element for transmitting data packets, and the backup link is used to connect the primary device and the network element. The channel is used to connect the standby device and the network element.
具体地说,主设备的主链路是用于连接主设备与网元,使得主设备与网元可以通过主链路进行通信,备设备的备链路是用于连接备设备与网元,使得备设备与网元可以通过备链路进行通信,主设备、备设备与网元建立好连接之后,将所有的主链路和备链路加入同一个多机架链路聚合中,使得该多机架链路聚合内始终存在成员,当网络出现故障时,不会下发删 除转发表的操作,其中,主设备和备设备可以是运营商边缘设备,也可以是其他网络设备,备设备可以包含多个网络设备。Specifically, the main link of the main device is used to connect the main device and the network element, so that the main device and the network element can communicate through the main link, and the backup link of the standby device is used to connect the standby device and the network element. The standby device and the network element can communicate through the standby link. After the master device, the standby device and the network element are connected, all the active and standby links are added to the same multi-rack link aggregation, so that the There are always members in the multi-rack link aggregation. When the network fails, the operation of deleting the forwarding table will not be issued. The master device and the backup device can be the edge device of the operator, or other network devices. The backup device Can contain multiple network devices.
步骤702,在主设备和备设备之间建立传输链路,其中,传输链路由主设备根据数据报文构建出口为网元的第一转发表,备设备根据第一转发表构建出口为主设备的第二转发表生成。In step 702, a transmission link is established between the primary device and the backup device, wherein the transmission link is constructed by the primary device according to the data message as the first forwarding table whose exit is the network element, and the backup device constructs the first forwarding table according to the first forwarding table as the outlet as the primary device. The second forwarding table of the device is generated.
具体地说,主设备和备设备之间是存在一个主备关系的,当VxLAN网络在正常工作时,主设备需要向备设备通过一定的同步机制发送转发表,因此,需要在主设备和备设备之间建立一个传输链路,用于传输所发送的转发表,传输链路由主设备根据数据报文构建出口为网元的第一转发表,备设备根据第一转发表构建出口为主设备的第二转发表生成,传输链路的类型根据发送转发表时所采用的同步机制来确定的,该传输链路可以是链路聚合链路(PeerLink链路)、VxLAN隧道等,其他可用于传输的链路均可以使用。Specifically, there is a master-slave relationship between the master device and the backup device. When the VxLAN network is working normally, the master device needs to send the forwarding table to the backup device through a certain synchronization mechanism. A transmission link is established between the devices to transmit the forwarding table sent. In the transmission link, the master device builds the first forwarding table with the exit as the network element according to the data message, and the standby device builds the first forwarding table according to the first forwarding table. The second forwarding table of the device is generated, and the type of the transmission link is determined according to the synchronization mechanism used when sending the forwarding table. The transmission link can be a link aggregation link (PeerLink link), VxLAN tunnel, etc., other available Any link used for transmission can be used.
步骤703,将多机架链路聚合的端口与传输链路的端口绑定到VxLAN网络中。Step 703: Bind the aggregated port of the multi-rack link and the port of the transmission link to the VxLAN network.
具体地说,是使得多机架链路聚合、传输链路、设备和网元处于一个VxLAN网络中,能够正常的进行报文数据的转发工作。Specifically, it enables multi-rack link aggregation, transmission links, devices, and network elements to be in a VxLAN network, so that packet data can be forwarded normally.
步骤704,接收待发送的数据报文。Step 704: Receive the data message to be sent.
具体地说,从远端设备发向主设备和备设备的数据报文是不能直接发送,远端设备需要先将数据报文发送到VxLAN网络上的网关,网关接收到待发送的数据报文之后,在通过网关将数据报文发送到主设备和备设备。Specifically, the data packets sent from the remote device to the main device and the standby device cannot be sent directly. The remote device needs to first send the data packets to the gateway on the VxLAN network, and the gateway receives the data packets to be sent. After that, the data packets are sent to the master device and the backup device through the gateway.
步骤705,将数据报文以广播或组播或单播的形式发送至设备。Step 705: Send the data packet to the device in the form of broadcast, multicast or unicast.
具体地说,网关接收到数据报文之后,需要将数据报文发送至设备,发送的数据报文可以是用户数据报文,也可以是网络协议报文,可以是三层数据报文,也可以是二层数据报文,在发送数据报文的过程中,可以采用广播、组播和单播中的任意一种形式进行发送。Specifically, after the gateway receives the data packet, it needs to send the data packet to the device. The data packet sent can be a user data packet, a network protocol packet, a Layer 3 data packet, or a It can be a Layer 2 data packet, and in the process of sending the data packet, it can be sent in any form of broadcast, multicast and unicast.
在本实施例中,VxLAN网关将主链路与备链路加入同一个多机架链路聚合,使得网络发生故障时,不会下发删除转发表的指令,还可以在主设备和备设备之间建立传输链路,用于同步转发表,保证网络可以进行快速切换。In this embodiment, the VxLAN gateway adds the primary link and the backup link to the same multi-rack link aggregation, so that when a network failure occurs, the instruction to delete the forwarding table will not be issued. A transmission link is established between them to synchronize the forwarding table to ensure that the network can perform fast switching.
此外,应当理解的是,上面各种方法的步骤划分,只是为了描述清楚,实现时可以合并为一个步骤或者对某些步骤进行拆分,分解为多个步骤,只要包括相同的逻辑关系,都在本专利的保护范围内;对算法中或者流程中添加无关紧要的修改或者引入无关紧要的设计,但不改变其算法和流程的核心设计都在该专利的保护范围内。In addition, it should be understood that the division of steps of the various methods above is only for the purpose of describing clearly, and can be combined into one step or split into some steps during implementation, and decomposed into multiple steps, as long as the same logical relationship is included, all Within the protection scope of this patent; adding insignificant modifications to the algorithm or process or introducing insignificant designs, but not changing the core design of the algorithm and process are all within the protection scope of this patent.
本申请第七实施例涉及一种数据传输***,如图8所示,包括:主设备801、备设备802、网元设备803。The seventh embodiment of the present application relates to a data transmission system, as shown in FIG. 8 , including: a master device 801 , a backup device 802 , and a network element device 803 .
其中,主设备,用于接收数据报文,根据数据报文构建第一转发表,将第一转发表发送给备设备,以供备设备形成第二转发表,其中,第一转发表的出口为网元,第二转发表的出口为主设备;备设备,用于接收数据报文和主设备的第一转发表,并根据第一转发表形成第二转发表,其中,第二转发表的出口为主设备;网元设备,用于接收主设备发送的数据报文。The master device is used for receiving the data message, constructing a first forwarding table according to the data message, and sending the first forwarding table to the standby device, so that the standby device can form a second forwarding table, wherein the exit of the first forwarding table is a network element, and the exit of the second forwarding table is the master device; the standby device is used to receive data packets and the first forwarding table of the master device, and form a second forwarding table according to the first forwarding table, wherein the second forwarding table The exit is the master device; the network element device is used to receive data packets sent by the master device.
不难发现,本实施例为与第一实施例相对应的***实施例,本实施例可与第一实施例互相配合实施。第一实施例中提到的相关技术细节在本实施例中依然有效,为了减少重复,这里不再赘述。相应地,本实施例中提到的相关技术细节也可应用在第一实施例中。It is not difficult to find that this embodiment is a system embodiment corresponding to the first embodiment, and this embodiment can be implemented in cooperation with the first embodiment. The related technical details mentioned in the first embodiment are still valid in this embodiment, and are not repeated here in order to reduce repetition. Correspondingly, the relevant technical details mentioned in this embodiment can also be applied in the first embodiment.
值得一提的是,本实施例中所涉及到的各模块均为逻辑模块,在实际应用中,一个逻辑 单元可以是一个物理单元,也可以是一个物理单元的一部分,还可以以多个物理单元的组合实现。此外,为了突出本申请的创新部分,本实施例中并没有将与解决本申请所提出的技术问题关系不太密切的单元引入,但这并不表明本实施例中不存在其它的单元。It is worth mentioning that all the modules involved in this embodiment are logical modules. In practical applications, a logical unit may be a physical unit, a part of a physical unit, or multiple physical units. A composite implementation of the unit. In addition, in order to highlight the innovative part of the present application, this embodiment does not introduce units that are not closely related to solving the technical problem raised by the present application, but this does not mean that there are no other units in this embodiment.
本申请的第八实施例涉及一种网络设备,如图9所示,包括:包括至少一个处理器901;以及,与至少一个处理器901通信连接的存储器902;其中,存储器902存储有可被至少一个处理器901执行的指令,指令被至少一个处理器901执行,以使至少一个处理器901能够执行上述任一方法实施例所描述的数据传输方法。The eighth embodiment of the present application relates to a network device, as shown in FIG. 9 , comprising: including at least one processor 901 ; and a memory 902 communicatively connected to the at least one processor 901 ; wherein the memory 902 stores data that can be accessed by Instructions executed by the at least one processor 901, the instructions are executed by the at least one processor 901, so that the at least one processor 901 can execute the data transmission method described in any of the above method embodiments.
其中,存储器和处理器采用总线方式连接,总线可以包括任意数量的互联的总线和桥,总线将一个或多个处理器和存储器的各种电路连接在一起。总线还可以将诸如***设备、稳压器和功率管理电路等之类的各种其他电路连接在一起,这些都是本领域所公知的,因此,本文不再对其进行另外的描述。总线接口在总线和收发机之间提供接口。收发机可以是一个元件,也可以是多个元件,比如多个接收器和发送器,提供用于在传输介质上与各种其他装置通信的单元。经处理器处理的数据通过天线在无线介质上进行传输,此外,在本实施例中,天线还接收数据并将数据传输给处理器。The memory and the processor are connected by a bus, and the bus may include any number of interconnected buses and bridges, and the bus connects one or more processors and various circuits of the memory. The bus may also connect together various other circuits, such as peripherals, voltage regulators, and power management circuits, which are well known in the art and, therefore, will not be further described herein. The bus interface provides the interface between the bus and the transceiver. A transceiver may be a single element or multiple elements, such as multiple receivers and transmitters, providing a means for communicating with various other devices over a transmission medium. The data processed by the processor is transmitted on the wireless medium through the antenna. In addition, in this embodiment, the antenna also receives the data and transmits the data to the processor.
处理器负责管理总线和通常的处理,还可以提供各种功能,包括定时,***接口,电压调节、电源管理以及其他控制功能。而存储器可以被用于存储处理器在执行操作时所使用的数据。The processor is responsible for managing the bus and general processing, and can also provide various functions, including timing, peripheral interface, voltage regulation, power management, and other control functions. Instead, memory may be used to store data used by the processor in performing operations.
本申请的一个实施例涉及一种计算机可读存储介质,存储有计算机程序。计算机程序被处理器执行时实现上述方法实施例。该计算机可读存储介质包括在用于存储信息(诸如计算机可读指令、数据结构、计算机程序模块或其他数据)的任何方法或技术中实施的暂态性或非暂态性、可移除或不可移除的介质。One embodiment of the present application relates to a computer-readable storage medium storing a computer program. The above method embodiments are implemented when the computer program is executed by the processor. The computer-readable storage medium includes transient or non-transitory, removable or Non-removable media.
即,本领域技术人员可以理解,实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。That is, those skilled in the art can understand that all or part of the steps in the method for implementing the above embodiments can be completed by instructing the relevant hardware through a program, and the program is stored in a storage medium and includes several instructions to make a device ( It may be a single chip microcomputer, a chip, etc.) or a processor (processor) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, Read-Only Memory (ROM, Read-Only Memory), Random Access Memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes .
本领域的普通技术人员可以理解,上述各实施例是实现本申请的具体实施例,而在实际应用中,可以在形式上和细节上对其作各种改变,而不偏离本申请的精神和范围。Those of ordinary skill in the art can understand that the above-mentioned embodiments are specific embodiments for realizing the present application, and in practical applications, various changes in form and details can be made without departing from the spirit and the spirit of the present application. Scope.

Claims (11)

  1. 一种数据传输方法,应用在VxLAN网络的主设备上,其中,所述VxLAN网络包含所述主设备和备设备,所述方法包括:A data transmission method is applied to a master device of a VxLAN network, wherein the VxLAN network includes the master device and a backup device, and the method includes:
    接收数据报文;receive data packets;
    根据所述数据报文构建第一转发表,将所述第一转发表发送给所述备设备,以供所述备设备形成第二转发表,其中,所述第一转发表的出口为网元,所述第二转发表的出口为所述主设备;A first forwarding table is constructed according to the data message, and the first forwarding table is sent to the standby device, so that the standby device can form a second forwarding table, wherein the outlet of the first forwarding table is a network element, the exit of the second forwarding table is the master device;
    根据所述第一转发表的出口将所述数据报文发送至所述网元。The data packet is sent to the network element according to the exit of the first forwarding table.
  2. 根据权利要求1所述的数据传输方法,其中,所述接收数据报文之前,确定设备的主备角色,还包括:The data transmission method according to claim 1, wherein, before receiving the data message, determining the active and standby roles of the device, further comprising:
    判断所述设备是否接收到所述网元发送的测试报文;Determine whether the device has received the test message sent by the network element;
    若所述设备接收到所述测试报文,则所述设备为所述主设备;If the device receives the test packet, the device is the master device;
    若所述设备未接收到所述测试报文,则所述设备为所述备设备。If the device does not receive the test packet, the device is the standby device.
  3. 根据权利要求1所述的数据传输方法,其中,所述接收数据报文之前,确定设备的主备角色,还包括:The data transmission method according to claim 1, wherein, before receiving the data message, determining the active and standby roles of the device, further comprising:
    所述设备将接收的所述VxLAN网络的转发域发送的测试报文;the test message sent by the forwarding domain of the VxLAN network to be received by the device;
    所述设备将所述测试报文发送至所述网元;sending, by the device, the test packet to the network element;
    若所述设备接收到所述网元返回的响应消息,则所述设备为所述主设备;If the device receives the response message returned by the network element, the device is the master device;
    若所述设备未接收到所述网元返回的响应消息,则所述设备为所述备设备。If the device does not receive the response message returned by the network element, the device is the standby device.
  4. 根据权利要求1至3中任意一项所述的数据传输方法,其中,所述根据所述第一转发表的出口将所述数据报文发送至所述网元之后还包括:The data transmission method according to any one of claims 1 to 3, wherein after sending the data packet to the network element according to the exit of the first forwarding table, the method further comprises:
    当所述主设备接收到故障信息时,所述主设备将所述第一转发表的出口更新为所述备设备,并向所述备设备发送切换请求报文,以供所述备设备将所述第二转发表的出口更新为所述网元。When the master device receives the fault information, the master device updates the exit of the first forwarding table to the backup device, and sends a handover request message to the backup device for the backup device to use The egress of the second forwarding table is updated to the network element.
  5. 一种数据传输方法,应用在VxLAN网络的备设备上,其中,所述VxLAN网络包含主设备和所述备设备,所述方法包括:A data transmission method is applied to a standby device of a VxLAN network, wherein the VxLAN network includes a master device and the standby device, and the method includes:
    接收数据报文和第一转发表;Receive data message and first forwarding table;
    根据所述第一转发表形成第二转发表,其中,所述第二转发表的出口为所述主设备;A second forwarding table is formed according to the first forwarding table, wherein the outlet of the second forwarding table is the master device;
    将所述数据报文根据所述出口发送至所述主设备。The data message is sent to the master device according to the exit.
  6. 根据权利要求5所述的数据传输方法,其中,所述将所述数据报文根据所述出口发送至主设备还包括:The data transmission method according to claim 5, wherein the sending the data message to the master device according to the exit further comprises:
    当所述备设备接收到故障信息时,所述备设备将所述第二转发表的出口更新为网元。When the standby device receives the fault information, the standby device updates the exit of the second forwarding table to a network element.
  7. 一种数据传输方法,应用在VxLAN网络的网关上,所述方法包括:A data transmission method, applied on a gateway of a VxLAN network, the method comprising:
    将主设备的主链路和备设备的备链路加入同一个多机架链路聚合,其中,所述主链路用于连接所述主设备与网元,以供传输数据报文,所述备链路用于连接所述备设备和所述网元;The primary link of the primary device and the backup link of the secondary device are added to the same multi-rack link aggregation, where the primary link is used to connect the primary device and the network element for transmitting data packets, so the standby link is used to connect the standby device and the network element;
    在所述主设备和所述备设备之间建立传输链路;其中,所述传输链路由所述主设备根据所述数据报文构建出口为所述网元的第一转发表,所述备设备根据所述第一转发表构建出口为所述主设备的第二转发表生成;A transmission link is established between the master device and the backup device; wherein, the transmission link is constructed by the master device according to the data message as the first forwarding table whose exit is the network element, and the The standby device generates the second forwarding table for the master device according to the first forwarding table construction outlet;
    将所述多机架链路聚合的端口与所述传输链路的端口绑定到所述VxLAN网络中。Binding the aggregated port of the multi-rack link and the port of the transmission link into the VxLAN network.
  8. 根据权利要求7所述的数据传输方法,其中,所述将所述多机架链路聚合的端口与所述传输链路的端口绑定到所述VxLAN网络中之后还包括:The data transmission method according to claim 7, wherein after binding the port of the multi-rack link aggregation and the port of the transmission link into the VxLAN network, the method further comprises:
    接收待发送的数据报文;Receive data packets to be sent;
    将所述数据报文以广播或组播或单播的形式发送至设备。Send the data message to the device in the form of broadcast, multicast or unicast.
  9. 一种数据传输***,包括:A data transmission system comprising:
    主设备,用于接收数据报文,根据所述数据报文构建第一转发表,将所述第一转发表发送给备设备,以供所述备设备形成第二转发表,其中,所述第一转发表的出口为网元,所述第二转发表的出口为所述主设备;a master device, configured to receive a data message, construct a first forwarding table according to the data message, and send the first forwarding table to a backup device so that the backup device can form a second forwarding table, wherein the The outlet of the first forwarding table is a network element, and the outlet of the second forwarding table is the master device;
    备设备,用于接收所述数据报文和所述主设备的所述第一转发表,并根据所述第一转发表形成第二转发表,其中,所述第二转发表的出口为所述主设备;A standby device, configured to receive the data packet and the first forwarding table of the master device, and form a second forwarding table according to the first forwarding table, wherein the exit of the second forwarding table is the the main equipment;
    网元设备,用于接收所述主设备发送的所述数据报文。A network element device, configured to receive the data packet sent by the master device.
  10. 一种网络设备,包括:A network device comprising:
    至少一个处理器;以及,at least one processor; and,
    与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein,
    所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行如权利要求1至4中任意一项所述数据传输方法、权利要求5至6中任意一项所述数据传输方法或权利要求7至8中任意一项所述数据传输方法。The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the execution of any of claims 1 to 4 The data transmission method, the data transmission method of any one of claims 5 to 6, or the data transmission method of any one of claims 7 to 8.
  11. 一种计算机可读存储介质,存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至4中任意一项所述数据传输方法、权利要求5至6中任意一项所述数据传输方法或权利要求7至8中任意一项所述数据传输方法。A computer-readable storage medium storing a computer program, which, when executed by a processor, realizes the data transmission method described in any one of claims 1 to 4 and the data transmission method described in any one of claims 5 to 6 The data transmission method or the data transmission method of any one of claims 7 to 8.
PCT/CN2021/110078 2020-09-24 2021-08-02 Data transmission method and system, network device, and storage medium WO2022062662A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011018547.6A CN111865704B (en) 2020-09-24 2020-09-24 Data transmission method, system and network equipment
CN202011018547.6 2020-09-24

Publications (1)

Publication Number Publication Date
WO2022062662A1 true WO2022062662A1 (en) 2022-03-31

Family

ID=72968437

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/110078 WO2022062662A1 (en) 2020-09-24 2021-08-02 Data transmission method and system, network device, and storage medium

Country Status (2)

Country Link
CN (1) CN111865704B (en)
WO (1) WO2022062662A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117319254A (en) * 2023-11-29 2023-12-29 广州通则康威科技股份有限公司 Equipment link detection method and device

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111865704B (en) * 2020-09-24 2021-05-28 南京中兴软件有限责任公司 Data transmission method, system and network equipment
CN115396369A (en) * 2021-05-21 2022-11-25 华为技术有限公司 Method, system and network equipment for processing message
CN113341937B (en) * 2021-06-29 2022-07-26 安徽江淮汽车集团股份有限公司 Signal injection method for hardware-in-loop test of electronic gear shifting system

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102045178A (en) * 2009-10-16 2011-05-04 中兴通讯股份有限公司 Method and device for service multicast protection of virtual private LAN (Local Area Network) service
WO2011143893A1 (en) * 2010-05-20 2011-11-24 中兴通讯股份有限公司 Multi-rack user backup method and system
CN102571426A (en) * 2011-12-29 2012-07-11 杭州华三通信技术有限公司 Double-homing protection method and device
CN105227332A (en) * 2014-05-28 2016-01-06 中兴通讯股份有限公司 PW double-returning protection switching method and system
US20160036728A1 (en) * 2014-07-31 2016-02-04 Arista Networks, Inc Method and system for vtep redundancy in a multichassis link aggregation domain
US20170163572A1 (en) * 2014-09-04 2017-06-08 Huawei Technologies Co., Ltd. Forwarding table synchronization method, network device, and system
US20170257309A1 (en) * 2016-03-02 2017-09-07 Arista Networks, Inc. Network management system control service for vxlan on an mlag domain
CN108540386A (en) * 2018-04-19 2018-09-14 新华三技术有限公司 One kind preventing Business Stream interrupt method and device
CN111865704A (en) * 2020-09-24 2020-10-30 南京中兴软件有限责任公司 Data transmission method, system and network equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102045178A (en) * 2009-10-16 2011-05-04 中兴通讯股份有限公司 Method and device for service multicast protection of virtual private LAN (Local Area Network) service
WO2011143893A1 (en) * 2010-05-20 2011-11-24 中兴通讯股份有限公司 Multi-rack user backup method and system
CN102571426A (en) * 2011-12-29 2012-07-11 杭州华三通信技术有限公司 Double-homing protection method and device
CN105227332A (en) * 2014-05-28 2016-01-06 中兴通讯股份有限公司 PW double-returning protection switching method and system
US20160036728A1 (en) * 2014-07-31 2016-02-04 Arista Networks, Inc Method and system for vtep redundancy in a multichassis link aggregation domain
US20170163572A1 (en) * 2014-09-04 2017-06-08 Huawei Technologies Co., Ltd. Forwarding table synchronization method, network device, and system
US20170257309A1 (en) * 2016-03-02 2017-09-07 Arista Networks, Inc. Network management system control service for vxlan on an mlag domain
CN108540386A (en) * 2018-04-19 2018-09-14 新华三技术有限公司 One kind preventing Business Stream interrupt method and device
CN111865704A (en) * 2020-09-24 2020-10-30 南京中兴软件有限责任公司 Data transmission method, system and network equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117319254A (en) * 2023-11-29 2023-12-29 广州通则康威科技股份有限公司 Equipment link detection method and device
CN117319254B (en) * 2023-11-29 2024-02-20 广州通则康威科技股份有限公司 Equipment link detection method and device

Also Published As

Publication number Publication date
CN111865704A (en) 2020-10-30
CN111865704B (en) 2021-05-28

Similar Documents

Publication Publication Date Title
WO2022062662A1 (en) Data transmission method and system, network device, and storage medium
WO2021088808A1 (en) Method for dual-homing device access traffic forwarding, device, and storage medium
EP3122004B1 (en) Traffic switching method, device, and system
EP2878105B1 (en) System and method using rsvp hello suppression for graceful restart capable neighbors
US20200244485A1 (en) Packet processing method, device, and system
CN111865779B (en) Route synchronization method and cross-device link aggregation group
US20190116114A1 (en) Packet forwarding method and apparatus
WO2018188425A1 (en) Vxlan single-homing and dual-homing hybrid access method and apparatus, pe device and storage medium
WO2021031648A1 (en) Evpn and vpls coexistence method, apparatus, and system
CN111740899A (en) ARP request message forwarding method, cross-device link aggregation group and network device
US9288075B2 (en) Method and system for auto-configuration, and network node
WO2009082905A1 (en) Method, system and switch device for dynamically establishing multicast virtual local area network
EP3866408A1 (en) Method for determining df of multicast stream, device, and system
CN101534253A (en) Message forwarding method and device
CN113973020A (en) Method, device and system for sending multicast message
JP2016072704A (en) Relay system and switch device
WO2023184926A1 (en) Method and apparatus for monitoring multi-path end-to-end delay, and electronic device and medium
CN108337162B (en) System and method for supporting dual-homing protection
CN112511419B (en) Distributed forwarding system
WO2022089213A1 (en) Packet sending method, device, and system
WO2016138747A1 (en) Information synchronization method and apparatus
US20240250894A1 (en) Multi-chassis link aggregation routing computation method, switch, system, and storage medium
WO2015184730A1 (en) Primary and alternate routing equipment, and backup, switching method and routing system therebetween
CN111800525A (en) Gateway redundancy method and system
EP4358487A1 (en) Cross-device link aggregation routing calculation method, switch, system, and storage medium

Legal Events

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

Ref country code: DE

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

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 18/08/2023)

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

Ref document number: 21871040

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 21871040

Country of ref document: EP

Kind code of ref document: A1