CN111865704A - Data transmission method, system and network equipment - Google Patents

Data transmission method, system and network equipment Download PDF

Info

Publication number
CN111865704A
CN111865704A CN202011018547.6A CN202011018547A CN111865704A CN 111865704 A CN111865704 A CN 111865704A CN 202011018547 A CN202011018547 A CN 202011018547A CN 111865704 A CN111865704 A CN 111865704A
Authority
CN
China
Prior art keywords
forwarding table
standby
equipment
data
main
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011018547.6A
Other languages
Chinese (zh)
Other versions
CN111865704B (en
Inventor
代彦伟
祖翔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing ZTE New Software Co Ltd
Original Assignee
Nanjing ZTE New Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nanjing ZTE New Software Co Ltd filed Critical Nanjing ZTE New Software Co Ltd
Priority to CN202011018547.6A priority Critical patent/CN111865704B/en
Publication of CN111865704A publication Critical patent/CN111865704A/en
Application granted granted Critical
Publication of CN111865704B publication Critical patent/CN111865704B/en
Priority to PCT/CN2021/110078 priority patent/WO2022062662A1/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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

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 application provides a data transmission method, a data transmission system and network equipment, and relates to the field of communication. The data transmission method comprises 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 equipment so that the standby equipment 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 the primary equipment; and sending the data message to the network element according to the outlet of the first forwarding table. The application of the method and the device for transmitting the data message to the VxLAN network can enable the primary device to transmit the forwarding table to the standby device after the forwarding table is built by the primary device, enable the standby device to be added into the transmission work of the data message, and therefore stability and reliability of the VxLAN network are guaranteed, and meanwhile data transmission efficiency is improved.

Description

Data transmission method, system and network equipment
Technical Field
The embodiment of the application relates to the technical field of communication, in particular to a data transmission method, a data transmission system and network equipment.
Background
In a Virtual extended Local Area Network (VxLAN), a lower-hanging Network element of a dual gateway can be set to be in a main/standby mode, only a main link receives and transmits a message in the main/standby mode, and the standby link does not receive and transmit the message. The data transmission technology in the related main and standby networks comprises the following steps: adding different Multi-chassis Link Aggregation (MC-LAG) into a main Link of a main device and a standby Link of a standby device respectively, synchronizing the forwarding table items to other devices of the MC-LAG accessed by the standby device by adopting a certain synchronization mechanism after the MC-LAG accessed by the main device learns the forwarding table items, transmitting the forwarding table items through the main Link after the main device receives data messages, enabling the original standby device to normally receive and transmit the messages after the main device or the main Link of the main device fails, constructing the forwarding table items on the MC-LAG accessed by the standby Link again, and transmitting the data through the standby Link.
However, when the main device or the main link of the main device fails, a forwarding table on an MC-LAG group accessed by the main device is deleted because no member exists in the MC-LAG accessed by the main device, after the main device and the standby device are switched, the MC-LAG link accessed by the standby device needs to be reconstructed to form a new forwarding table again, the convergence time of the whole VxLAN network is determined according to the learning time of the new forwarding table, so that the data transmission efficiency of the VxLAN network is affected, and for a network element hung under a dual gateway, once the learning time of the new forwarding table is too long, the service in the VxLAN network is offline, and the stability and reliability of the VxLAN network are affected.
Disclosure of Invention
The embodiment of the application mainly aims to provide a data transmission method, a data transmission system and network equipment, and aims to realize that data transmission can be performed on standby equipment on a VxLAN network, so that the stability and reliability of the VxLAN network are ensured, and meanwhile, the data transmission efficiency is improved.
In order to achieve the above object, an embodiment of the present application provides a data transmission method, where 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 equipment so that the standby equipment 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 the primary equipment; and sending the data message to the network element according to the outlet of the first forwarding table.
In order to achieve the above object, an embodiment of the present application further provides 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 an outlet of the second forwarding table is the primary device; and sending the data message to the primary equipment according to the outlet of the second forwarding table.
In order to achieve the above object, an embodiment of the present application further provides a data transmission method, including: adding a main link of a main device and a standby link of a standby device into the same multi-rack link for aggregation, wherein the main link is used for connecting the main device and a network element for transmitting data messages, and the standby link is used for connecting the standby device and the network element; establishing a transmission link between the master device and the slave device; the transmission link is generated by the main device according to the first forwarding table of the main device, which is constructed by the data message and the exit of which is the first forwarding table of the network element, and the standby device according to the first forwarding table and the constructed exit of which is the second forwarding table of the main device; and binding the ports of the multi-rack link aggregation and the ports of the transmission links into the VxLAN network.
In order to achieve the above object, an embodiment of the present application further provides a data transmission system, including:
the system comprises a primary device, a standby device and a forwarding device, wherein the primary device is used for receiving a 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, an outlet of the first forwarding table is a network element, and an outlet of the second forwarding table is the primary device;
the standby device is used for receiving the data message and the first forwarding table of the primary device and forming a second forwarding table according to the first forwarding table, wherein an outlet of the second forwarding table is the primary device;
and the network element equipment is used for receiving the data message sent by the main equipment.
In order to achieve the above object, an embodiment of the present application further provides a network device, where the network device includes:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor for processing by the at least one processor
And a processor configured to enable the at least one processor to perform the data transmission method described above.
According to the data transmission method, the data transmission system and the network equipment, the main equipment receives the data message, the first forwarding table is constructed according to the data message, the first forwarding table is sent to the standby equipment so that the standby equipment can form the second forwarding table, the outlet of the first forwarding table is a network element, the outlet of the second forwarding table is the main equipment, and the data message is sent to the network element according to the outlet of the first forwarding table. The forwarding table is sent to the standby equipment after the forwarding table is built by the main equipment, so that the standby equipment can also be added in the transmission work of the data message, and the data transmission efficiency is improved while the stability and the reliability of the VxLAN network are ensured.
Drawings
One or more embodiments are illustrated by the corresponding figures in the drawings, which are not meant to be limiting.
Fig. 1 is a flowchart of a data transmission method according to a first embodiment of the present application;
fig. 2 is a flowchart of a data transmission method according to a second embodiment of the present application;
fig. 3 is a flowchart of a data transmission method according to a third embodiment of the present application;
fig. 4 is a flowchart of a data transmission method according to a fourth embodiment of the present application;
fig. 5(a) is a schematic diagram of forwarding a data packet in a normal situation of the data transmission method provided in the third embodiment of the present application shown in fig. 3 and the fifth embodiment of the present application shown in fig. 6;
fig. 5(b) is a schematic diagram of forwarding a data packet in case of a failure of a main link in the data transmission method according to the third embodiment of the present application shown in fig. 3;
fig. 5(c) is a schematic diagram of forwarding a data packet in case of a failure of a master device in the data transmission method according to the fifth embodiment of the present application shown in fig. 6;
fig. 6 is a flowchart of a data transmission method according to a fifth embodiment of the present application;
fig. 7 is a flowchart of a data transmission method according to a sixth embodiment of the present application;
fig. 8 is a schematic structural diagram of a data transmission system according to a seventh embodiment of the present application;
fig. 9 is a schematic structural diagram of a network device according to an eighth embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present application clearer, the embodiments of the present application will be described in detail below with reference to the accompanying drawings. However, it will be appreciated by those of ordinary skill in the art that in the examples of the present application, numerous technical details are set forth in order to provide a better understanding of the present application. However, the technical solution claimed in the present application can be implemented without these technical details and various changes and modifications based on the following embodiments. The following embodiments are divided for convenience of description, and should not constitute any limitation to the specific implementation manner of the present application, and the embodiments may be mutually incorporated and referred to without contradiction.
A first embodiment of the present application relates to a data transmission method applied to a main device of a VxLAN network, where the VxLAN network includes the main device and a standby device, as shown in fig. 1, which specifically includes the following steps.
Step 101, receiving a data message.
Specifically, in the VxLAN network, a downlink data message sent from a remote device is a data message received by a host device, the data message may be a user data message or a network protocol message, and the message may be a three-layer message or a two-layer message.
And 102, constructing a first forwarding table according to the data message, and sending the first forwarding table to the standby equipment so that the standby equipment 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 main equipment.
Specifically, when a primary device receives a data message, a forwarding table is first constructed according to the received data message, after the construction of the forwarding table is completed, the primary device first stores the forwarding table on the primary device, and then sends the forwarding table to a backup device by adopting a certain synchronization mechanism, wherein the constructed forwarding table includes an exit, and the exit specifies the exit of the message, namely: the message is sent to the next target through which exit, wherein the data message refers to a message capable of establishing a forwarding table through learning, the forwarding table established on the primary device is a dynamic table, the exit of the forwarding table on the primary device is a network element, the forwarding table synchronized by the standby device is a static table, and the exit of the forwarding table on the standby device is the primary device; taking the data message of arp requesting the gateway address (source IP:1.1.1.2/24, source mac:00:00:00:11:11:11) as an example, the constructed forwarding table comprises arp, a forwarding table (arp: IP:1.1.1.2/24(mac:00:00:00:11:11:11)) and a mac forwarding table (mac:00:00:00:11: 11). Furthermore, it should be noted that: the process of synchronizing the forwarding table can adopt the synchronization based on an ICBG protocol to establish an ICBG channel between the main equipment and the standby equipment, and can also adopt the VxLAN tunnel established between the main equipment and the standby equipment to establish other channels which can be used for transmission.
And 103, sending the data message to the network element according to the outlet of the first forwarding table.
Specifically, the main device sends a data message according to an outlet of the constructed forwarding table, the main device is connected with the network element through a main link, when the outlet of the forwarding table on the main device is the network element, the main device sends the received data message to the network element through the main link, and when the VxLAN network normally works, because the outlet of the forwarding table on the standby device is the main device, the main device needs to send the data message sent by the standby device to the network element in addition to the data message received by the main device from the remote device.
Compared with the prior art, the method and the device have the advantages that the primary device receives the data message, constructs a first forwarding table according to the data message, and sends the first forwarding table to the 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 the primary device; and sending the data message to the network element according to the outlet of the first forwarding table. The forwarding table is sent to the standby equipment after the forwarding table is built by the main equipment, so that the standby equipment can normally transmit the data message, the stability and the reliability of the VxLAN network are ensured, and the data transmission efficiency is improved.
A second embodiment of the present application relates to a data transmission method, which is substantially the same as the first embodiment, except that the determination of the master and standby roles of the devices is further required before receiving a data packet, as shown in fig. 2, specifically including the following steps.
Step 201, determine the master/standby roles of the device.
Specifically, in the VxLAN network, a plurality of devices are connected with one network element through an access link, although the access link has a role of master/slave, the devices connected with the access link are not divided into master/slave roles, so that the master/slave roles of the devices need to be determined before receiving a downlink data packet; the main and standby roles of the device are divided in two ways: the method comprises the steps that a network element sends a test message to equipment to determine and sends the test message to the equipment through a VxLAN forwarding domain to determine; when one device is determined to be the main device, the other devices are all standby devices.
The method comprises the following steps of sending a test message to equipment through a network element to determine the main role and the standby role: the network element sends a test message to the equipment through the access link; the device capable of receiving the test packet can determine that the access link between the device and the network element is a main access link, that is: the device identifies itself as a main device, the device constructs a forwarding table according to the test message after receiving the test message, then sends the forwarding table to other devices, the other devices determine itself as a standby device after receiving the forwarding table, and simultaneously determine that an access link between the device and a network element is a standby access link, and makes a receiving mark for the received forwarding table, so as to inform the device that the forwarding table is not generated by the device, and meanwhile, the standby device also sends a response message to the main device, wherein the purpose of sending the message is to inform the main device that the forwarding table is received, so that the main device knows the role of the device. Further, it is also noted that: after the main and standby roles are determined in the above manner, the roles of the main access link and the standby access link change due to the configuration information of the network element, and at this time, the device capable of receiving the test message determines that the local access link is the main one and the other devices are the standby access links correspondingly on the device by only sending the test message to the device through the access link.
Sending a test message to the equipment through the VxLAN network forwarding domain to determine that: when a remote device sends a test message to the device through a VxLAN network forwarding domain, the remote device sends a protocol transceiving packet module when receiving the test message, the protocol transceiving packet module converts the test message into a protocol request message, the protocol request message is forwarded as a Broadcast & unknown-Unicast & Multicast message (Broadcast & unknown-Multicast, BUM) in the VxLAN forwarding domain, the VxLAN forwarding domain forwards the protocol request message to the device, the device sends the received protocol request message to a network element through an access link, if the network element receives the protocol request message through a certain access link and sends a response message to the device connected with the network element, the device identifies itself as a main device after receiving the returned response message, and identifies the access link between the device and the network element as a main access link; if the network element receives the protocol request message through a certain access link, but discards the received protocol request message, at this time, the device connected with the access link does not receive the response message sent by the network element, and then the device itself is identified as a standby device, and the access link with the network element is identified as a standby access link.
Step 202, receiving a data message.
Specifically, this step is substantially the same as step 101 in the first embodiment, and is not repeated here.
Step 203, 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 forms a second forwarding table, wherein an exit of the first forwarding table is a network element, and an exit of the second forwarding table is a primary device.
Specifically, this step is substantially the same as step 102 in the first embodiment, and is not repeated here.
And step 204, sending the data message to the network element according to the outlet of the first forwarding table.
Specifically, this step is substantially the same as step 103 in the first embodiment, and is not repeated here.
Compared with the prior art, the method and the device for transmitting the data message in the VxLAN network have the advantages that on the basis of the first embodiment, the main and standby roles of the device can be determined in advance before the data message is transmitted, the device can directly transmit the data message after receiving the message, the main and standby roles of the device do not need to be determined again, and the transmission efficiency of the data message in the VxLAN network can be further improved.
A third embodiment of the present application relates to a data transmission method, which is substantially the same as the first embodiment, except that the data transmission method when the master device receives a fault in the process of sending a data packet to the network element in step 103 is described, and as shown in fig. 3, the method specifically includes the following steps.
Step 301, receiving a data message.
Specifically, this step is substantially the same as step 101 in the first embodiment, and is not repeated here.
Step 302, 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 forms a second forwarding table, wherein an exit of the first forwarding table is a network element, and an exit of the second forwarding table is a primary device.
Specifically, this step is substantially the same as step 102 in the first embodiment, and is not repeated here.
Step 303, when the primary device receives the failure information, the primary device updates the exit of the first forwarding table to the standby device, and sends a switching request message to the standby device, so that the standby device updates the exit of the second forwarding table to the network element.
Specifically, when the whole network can work normally, the exit of the forwarding table on the primary device is the network element, and the exit of the forwarding table on the standby device is the primary device; when the main device sends a data message to the network element, a fast link detection mechanism is adopted to detect a failure of a main access link between the main device and the network element, after the main device receives the failure information of the main access link, firstly, an outlet forwarded by the main device is updated to be standby equipment, and then, a switching request is sent to the standby equipment, so that the standby equipment updates an outlet forwarded by the standby equipment to be the network element, the switching work of the main device and the standby equipment is completed, namely, the original main device is switched to be the standby equipment, and the original standby equipment is switched to be the main device.
Step 304, forwarding the data message according to the exit of the first forwarding table and the exit of the second forwarding table.
Specifically, when the main device receives a main link failure, both the main device and the standby device may receive a message to be forwarded, and when the network is normal, as shown in fig. 5(a), the device 1 is the main device, the device 2 is the standby device, and the data message may be sent to the device 1, the device 1 to the network element, or the device 2, the device 2 to the device 1, and then the device 1 to the network element; when the main link fails, the egress of the forwarding table is updated so that the egress of the data packet is correspondingly changed, as shown in fig. 5(b), at this time, the primary and standby roles of the devices have changed, the device 1 is a standby device, the device 2 is a primary device, the data packet may be sent to the device 2, the device 2 is sent to the network element, or the data packet may be sent to the device 1, the device 1 is sent to the device 2, and then the device 2 is sent to the network element.
Compared with the prior art, according to the embodiment of the application, on the basis of the first embodiment, when the primary device receives the fault information, the forwarding table does not need to be reconstructed, the conversion of the primary and secondary roles of the devices can be completed only by modifying the outlets of the forwarding tables on the primary device and the secondary device, the forwarding work of the message data can be normally performed, the rapid switching of the primary and secondary networks during network faults is completed, the message can be normally transmitted in the network, and the reliability of the network is improved.
A fourth embodiment of the present application relates to a data transmission method applied to a standby device of a VxLAN network, where the VxLAN network includes a main device and a standby device, as shown in fig. 4, and specifically includes the following steps.
Step 401, receiving a data message and a first forwarding table.
Specifically, the data message received by the standby device is a downlink data message sent from the remote device, the data message may be a user data message or a network protocol message, and the message may be a three-layer message or a two-layer message; 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 further comprises an exit of the first forwarding table in the synchronization process.
Step 402, forming a second forwarding table according to the first forwarding table, wherein an exit of the second forwarding table is a primary device.
Specifically, when the standby device receives the first forwarding table, the egress of the first forwarding table is modified to the primary device, and a second forwarding table on the standby device is formed, wherein the second forwarding table is substantially similar to the first forwarding table, except that the egress of the two forwarding tables is different.
And step 403, sending the data message to the master device according to the outlet.
Specifically, after the standby device forms the second forwarding table, because the exit of the second forwarding table is the primary device, the standby device directs the received data packet to the primary device according to the exit of the second forwarding table, so that the primary device sends the data packet to the network element.
Compared with the prior art, the standby equipment receives the data message and the first forwarding table, and forms a second forwarding table according to the first forwarding table, wherein an outlet of the second forwarding table is the primary equipment, and the data message is sent to the primary equipment according to the outlet. The standby equipment can synchronize with a forwarding table of the main equipment, the forwarding table of the standby equipment is formed according to the forwarding table of the main equipment, and after the forwarding table is formed, the data message can be normally transmitted and received, so that the standby equipment can normally work in a main standby mode of the VxLAN network, and the transmission efficiency of the VxLAN network data message can be improved.
A fifth embodiment of the present application relates to a data transmission method, which is substantially the same as the fourth embodiment, except that the data transmission method when the standby device receives a failure in the process of sending a data packet to the master device in step 403 is described, and specifically includes the following steps as shown in fig. 6.
Step 601, receiving a data message and a first forwarding table.
Specifically, this step is substantially the same as step 501 in the fourth embodiment, and is not repeated here.
Step 602, a second forwarding table is formed according to the first forwarding table, wherein an exit of the second forwarding table is a primary device.
Specifically, this step is substantially the same as step 502 in the fourth embodiment, and is not repeated here.
Step 603, when the standby device receives the failure information, the standby device updates the exit of the second forwarding table to a network element.
Specifically, when the whole network can work normally, the exit of the forwarding table on the standby device is the primary device; when the backup device sends a data message to the primary device, a fast link detection mechanism is adopted to detect a transmission link fault between the backup device and the primary device, the backup device considers that the primary device is faulty after receiving information of the transmission link fault, at the moment, the backup device updates an outlet of the second forwarding table to a network element, and completes switching work of the primary device and the backup device, namely, the original primary device is switched to the backup device, and the original backup device is switched to the primary device, but the original primary device fails, and cannot be restarted after the primary device and the backup device are switched.
Step 604, forwarding the data packet according to the exit of the second forwarding table.
Specifically, when the backup device receives a transmission link failure with the main device, and the transmission link failure between the backup device and the main device is caused by the main device failure, only the backup device can receive a data packet at this time, and when the network is normal, as shown in fig. 5(a), the device 1 is the main device, the device 2 is the backup device, and the data packet can be sent to the device 1, the device 1 to the network element, or the device 2, the device 2 to the device 1, and then the device 1 to the network element; when the primary device fails, the egress of the forwarding table is updated, so that the egress of the data packet is correspondingly changed, as shown in fig. 5(c), the data packet can only be sent to the secondary device, and the secondary device sends the data packet to the network element.
Compared with the prior art, on the basis of the fourth embodiment, when the primary device fails, the standby device does not need to reconstruct the forwarding table, and only needs to modify the exit of the forwarding table on the standby device, so that the forwarding work of the message data can be normally performed, the fast switching of the primary and standby networks when the network fails is completed, the message can be normally transmitted in the network, and the reliability of the network is improved.
A sixth embodiment of the present application relates to a data transmission method, which is applied to a gateway of a VxLAN network, and specifically includes the following steps, as shown in fig. 7.
Step 701, adding a main link of a main device and a standby link of a standby device into the same multi-chassis link for aggregation, wherein the main link is used for connecting the main device and a network element for transmitting data messages, and the standby link is used for connecting the standby device and the network element.
Specifically, a main link of a main device is used for connecting the main device and a network element, so that the main device and the network element can communicate through the main link, a standby link of a standby device is used for connecting the standby device and the network element, so that the standby device and the network element can communicate through the standby link, after the main device, the standby device and the network element are connected, all the main links and the standby links are added into the same multi-rack link aggregation, so that members always exist in the multi-rack link aggregation, and when a network fails, an operation of deleting a forwarding table is not issued, wherein the main device and the standby device can be provider edge devices or other network devices, and the standby device can include a plurality of network devices.
Step 702, a transmission link is established between the primary device and the standby device, wherein the transmission link is generated by the primary device constructing a first forwarding table with an exit as a network element according to the data message, and the standby device constructing a second forwarding table with an exit as the primary device according to the first forwarding table.
Specifically, a master-slave relationship exists between the primary device and the backup device, when the VxLAN network normally works, the primary device needs to send a forwarding table to the backup device through a certain synchronization mechanism, and therefore a transmission link needs to be established between the primary device and the backup device for transmitting the sent forwarding table, the transmission link is formed by the primary device and the backup device according to a data message, an exit of the transmission link is a first forwarding table of a network element, the backup device forms a second forwarding table of the primary device according to the first forwarding table, the type of the transmission link is determined according to the synchronization mechanism adopted when the forwarding table is sent, the transmission link can be a link aggregation link (PeerLink link), a VxLAN tunnel and the like, and other links which can be used for transmission can be used.
And step 703, binding the ports of the multi-rack link aggregation and the ports of the transmission links into the VxLAN network.
Specifically, multi-chassis link aggregation, transmission links, devices and network elements are enabled to be in a VxLAN network, and message data forwarding work can be performed normally.
Step 704, receiving a data message to be sent.
Specifically, data messages sent from the remote device to the main device and the standby device cannot be directly sent, the remote device needs to send the data messages to a gateway on the VxLAN network, and after receiving the data messages to be sent, the gateway sends the data messages to the main device and the standby device.
Step 705, the data packet is sent to the device in a broadcast or multicast or unicast manner.
Specifically, after receiving the data packet, the gateway needs to send the data packet to the device, where the sent data packet may be a user data packet, a network protocol packet, a three-layer data packet, or a two-layer data packet, and may be sent in any one of broadcast, multicast, and unicast during the process of sending the data packet.
Compared with the prior art, the VxLAN gateway adds the main link and the standby link into the same multi-frame link for aggregation, so that when a network fails, a command for deleting the forwarding table cannot be issued, a transmission link can be established between the main device and the standby device for synchronizing the forwarding table, and the network can be rapidly switched.
In addition, it should be understood that the above steps of the various methods are divided for clarity, and the implementation may be combined into one step or split into some steps, and the steps are divided into multiple steps, so long as the same logical relationship is included in the protection scope of the present patent; it is within the scope of the patent to add insignificant modifications to the algorithms or processes or to introduce insignificant design changes to the core design without changing the algorithms or processes.
A seventh embodiment of the present invention relates to a data transmission system, as shown in fig. 8, including: main equipment 801, standby equipment 802 and network element equipment 803.
The primary 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 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 the primary device; the standby equipment is used for receiving the data message and a first forwarding table of the primary equipment and forming a second forwarding table according to the first forwarding table, wherein an outlet of the second forwarding table is the primary equipment; and the network element equipment is used for receiving the data message sent by the main equipment.
It should be understood that the present embodiment is a system embodiment corresponding to the first embodiment, and the present 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 described herein again in order to reduce repetition. Accordingly, the related-art details mentioned in the present embodiment can also be applied to the first embodiment.
It should be noted that, all the modules involved in this embodiment are logic modules, and in practical application, one logic unit may be one physical unit, may also be a part of one physical unit, and may also be implemented by a combination of multiple physical units. In addition, in order to highlight the innovative part of the present invention, a unit which is not so closely related to solve the technical problem proposed by the present invention is not introduced in the present embodiment, but this does not indicate that there is no other unit in the present embodiment.
An eighth embodiment of the present application relates to a network device, as shown in fig. 9, including: includes at least one processor 901; and, memory 902 communicatively connected to at least one processor 901; the memory 902 stores instructions executable by the at least one processor 901, and 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 one of the above method embodiments.
Where the memory and processor are connected by a bus, the bus may comprise any number of interconnected buses and bridges, the buses connecting together one or more of the various circuits of the processor and the memory. The bus may also connect various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface provides an interface between the bus and the transceiver. The transceiver may be one element or a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. The data processed by the processor is transmitted over a wireless medium via the antenna, which further receives the data and transmits the data to the processor.
The processor is responsible for managing the bus and general processing and may also provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. And the memory may be used to store data used by the processor in performing operations.
It will be understood by those of ordinary skill in the art that the foregoing embodiments are specific examples for carrying out the present application, and that various changes in form and details may be made therein without departing from the spirit and scope of the present application in practice.

Claims (10)

1. A data transmission method is applied to a main device of a VxLAN network, wherein the VxLAN network comprises the main device and a standby device, and the method comprises 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 equipment so that the standby equipment 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 the primary equipment;
and sending the data message to the network element according to the outlet of the first forwarding table.
2. The data transmission method according to claim 1, wherein before receiving the data packet, determining a master/standby role of the device, further comprises:
judging whether the equipment receives a test message sent by the network element;
if the equipment receives the test message, the equipment is the main equipment;
and if the equipment does not receive the test message, the equipment is the standby equipment.
3. The data transmission method according to claim 1, wherein before receiving the data packet, determining a master/standby role of the device, further comprises:
the equipment receives a test message sent by a forwarding domain of the VxLAN network;
the equipment sends the test message to the network element;
if the equipment receives a response message returned by the network element, the equipment is the main equipment;
and if the equipment does not receive the response message returned by the network element, the equipment is the standby equipment.
4. The data transmission method according to claim 1, wherein after sending the data packet to the network element according to the egress of the first forwarding table, the method further comprises:
when the primary device receives the fault information, the primary device updates the outlet of the first forwarding table to the standby device, and sends a switching request message to the standby device, so that the standby device updates the outlet of the second forwarding table to the network element.
5. A data transmission method is applied to a standby device of a VxLAN network, wherein the VxLAN network comprises a main device and the standby device, and the method comprises the following steps:
receiving a data message and a first forwarding table;
forming a second forwarding table according to the first forwarding table, wherein an outlet of the second forwarding table is the primary device;
and sending the data message to the main equipment according to the outlet.
6. The data transmission method according to claim 5, wherein the sending the data packet to a master device according to the egress further comprises:
and when the standby equipment receives the fault information, the standby equipment updates the outlet of the second forwarding table to be a network element.
7. A data transmission method is applied to a gateway of a VxLAN network, and comprises the following steps:
adding a main link of a main device and a standby link of a standby device into the same multi-rack link for aggregation, wherein the main link is used for connecting the main device and a network element for transmitting data messages, and the standby link is used for connecting the standby device and the network element;
establishing a transmission link between the master device and the slave device; the transmission link is generated by the main device according to the first forwarding table of the main device, which is constructed by the data message and the exit of which is the first forwarding table of the network element, and the standby device according to the first forwarding table and the constructed exit of which is the second forwarding table of the main device;
and binding the ports of the multi-rack link aggregation and the ports of the transmission links into the VxLAN network.
8. The data transmission method according to claim 7, wherein the binding of the ports of the multi-chassis link aggregation and the ports of the transmission links into the VxLAN network further comprises:
receiving a data message to be sent;
and sending the data message to the equipment in a broadcast or multicast or unicast mode.
9. A data transmission system, comprising:
the system comprises a primary device, a standby device and a forwarding device, wherein the primary device is used for receiving a 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, an outlet of the first forwarding table is a network element, and an outlet of the second forwarding table is the primary device;
the standby device is used for receiving the data message and the first forwarding table of the primary device and forming a second forwarding table according to the first forwarding table, wherein an outlet of the second forwarding table is the primary device;
and the network element equipment is used for receiving the data message sent by the main equipment.
10. A network device, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a data transfer method as claimed in any one of claims 1 to 4, a data transfer method as claimed in any one of claims 5 to 6 or a data transfer method as claimed in any one of claims 7 to 8.
CN202011018547.6A 2020-09-24 2020-09-24 Data transmission method, system and network equipment Active CN111865704B (en)

Priority Applications (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
PCT/CN2021/110078 WO2022062662A1 (en) 2020-09-24 2021-08-02 Data transmission method and system, network device, and storage medium

Applications Claiming Priority (1)

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

Publications (2)

Publication Number Publication Date
CN111865704A true CN111865704A (en) 2020-10-30
CN111865704B CN111865704B (en) 2021-05-28

Family

ID=72968437

Family Applications (1)

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

Country Status (2)

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

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113341937A (en) * 2021-06-29 2021-09-03 安徽江淮汽车集团股份有限公司 Signal injection method for hardware-in-loop test of electronic gear shifting system
WO2022062662A1 (en) * 2020-09-24 2022-03-31 中兴通讯股份有限公司 Data transmission method and system, network device, and storage medium
WO2022242775A1 (en) * 2021-05-21 2022-11-24 华为技术有限公司 Packet processing method and system, and network device

Families Citing this family (1)

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

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102045178B (en) * 2009-10-16 2016-03-30 中兴通讯股份有限公司 The method of Virtual Private LAN Service multicast protection and device
CN105227332B (en) * 2014-05-28 2019-01-18 中兴通讯股份有限公司 PW double-returning protection switching method and system
US9769088B2 (en) * 2014-07-31 2017-09-19 Arista Networks, Inc. Method and system for VTEP redundancy in a multichassis link aggregation domain
ES2768575T3 (en) * 2014-09-04 2020-06-23 Huawei Tech Co Ltd Method to sync forwarding tables, network device and system
US10200278B2 (en) * 2016-03-02 2019-02-05 Arista Networks, Inc. Network management system control service for VXLAN on an MLAG domain
CN108540386B (en) * 2018-04-19 2021-07-23 新华三技术有限公司 Method and device for preventing service flow interruption
CN111865704B (en) * 2020-09-24 2021-05-28 南京中兴软件有限责任公司 Data transmission method, system and network equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022062662A1 (en) * 2020-09-24 2022-03-31 中兴通讯股份有限公司 Data transmission method and system, network device, and storage medium
WO2022242775A1 (en) * 2021-05-21 2022-11-24 华为技术有限公司 Packet processing method and system, and network device
CN113341937A (en) * 2021-06-29 2021-09-03 安徽江淮汽车集团股份有限公司 Signal injection method for hardware-in-loop test of electronic gear shifting system

Also Published As

Publication number Publication date
CN111865704B (en) 2021-05-28
WO2022062662A1 (en) 2022-03-31

Similar Documents

Publication Publication Date Title
CN111865704B (en) Data transmission method, system and network equipment
CN112769587B (en) Forwarding method, equipment and storage medium for access traffic of dual homing device
CN111740899B (en) ARP request message forwarding method, cross-device link aggregation group and network device
JP5152642B2 (en) Packet ring network system, packet transfer method, and node
CN111865779B (en) Route synchronization method and cross-device link aggregation group
CN101820435B (en) Synchronization method and device for MAC (Media Access Control) address table information of distributed network processing system
CN106899430B (en) Traffic forwarding processing method and device
US9019816B2 (en) Communication system, communication method, and communication apparatus
JP4922972B2 (en) Communications system
CN106452921B (en) Stacking system splitting detection method and device
CN112671642A (en) Message forwarding method and device
CN104660449A (en) Method and equipment for preventing generation of multiple masters through IRF (intelligent resilient framework) splitting
CN103731303A (en) Method and device of vertical converged framework for achieving multi-active detection
CN104518936A (en) Method and device for link dynamic aggregation
CN105281951A (en) Double-main-device conflict detection method for VSU system, and network equipment
JPWO2007080831A1 (en) Packet ring network system, packet transfer method, redundant node, and packet transfer program
WO2016124117A1 (en) Method, switching device and network controller for protecting links in software-defined network (sdn)
WO2022217786A1 (en) Cross-network communicaton method, apparatus, and system for multi-bus network, and storage medium
JP6383232B2 (en) Relay system and switch device
GB2494385A (en) Transmitting and Forwarding Data
US20240250894A1 (en) Multi-chassis link aggregation routing computation method, switch, system, and storage medium
US9209928B2 (en) Transmission device and transmission method
CN112511419B (en) Distributed forwarding system
CN115567437A (en) Cross-device link aggregation switching method, system, switch and storage medium
CN111800525A (en) Gateway redundancy method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant