CN110943901A - Message forwarding method, device, equipment and storage medium - Google Patents
Message forwarding method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN110943901A CN110943901A CN201911237129.3A CN201911237129A CN110943901A CN 110943901 A CN110943901 A CN 110943901A CN 201911237129 A CN201911237129 A CN 201911237129A CN 110943901 A CN110943901 A CN 110943901A
- Authority
- CN
- China
- Prior art keywords
- vni
- message
- vxlan
- address
- vsi
- 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.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4641—Virtual LANs, VLANs, e.g. virtual private networks [VPN]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4633—Interconnection of networks using encapsulation techniques, e.g. tunneling
Abstract
Embodiments of the present invention provide a method, an apparatus, a device, and a storage medium for forwarding a packet, which are used to map a forwarded data packet to different VNI instances when an egress is encapsulated by using different tunnels of the same VSI, so as to save hardware ingress mapping resources. The method comprises the following steps: after determining that the first VXLAN message sent by other VTEPs from the data center is a message to be forwarded, decapsulating the first VXLAN message to obtain a carried first VNI and an inner layer message of the first VXLAN message; determining a first VSI based on a pre-configured corresponding relation between each VNI and the VSI; searching a tunnel outlet corresponding to a first VSI and a destination MAC address of the inner layer message in an address forwarding table; determining a second VNI according to an opposite-end VNI mapping table; and encapsulating the inner layer message according to the tunnel outlet and the second VNI to obtain a second VXLAN message, and sending the second VXLAN message through the tunnel outlet.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method, an apparatus, a device, and a storage medium for forwarding a packet.
Background
VXLAN (Virtual eXtensible Local Area Network) is a Network virtualization technology, which is an extension of VLAN (Virtual Local Area Network), and solves the problem that the existing VLAN technology cannot meet the requirements of a two-layer Network. The VXLAN technology takes the existing three-layer physical network as an Underlay network, and a virtual two-layer network, namely an Overlay network, is constructed on the three-layer physical network. The Overlay network realizes the transmission of the two-layer message between different sites across the three-layer network by using a three-layer forwarding path provided by the Underlay network through an encapsulation technology, and the Underlay network is transparent to the Overlay network. The three-layer physical network may be an IP network of one data center or an IP network across data centers. Thus with VXLAN it is possible to achieve:
1. providing an Overlay network within a data center;
2. an Overlay network is provided between a plurality of remote data centers having an underwlay network connection.
The VXLAN encapsulation technique is an encapsulation format that encapsulates an original ethernet packet in a UDP (User Datagram Protocol) packet, and encapsulates an original two-layer data frame and a VXLAN header together in a UDP packet. The VXLAN header contains a VXLAN identification, i.e., vni (VXLAN Network identifier). When two-layer interconnection between data centers is realized through VXLAN, VXLAN tunnels are respectively established inside a data center A and a data center B, and VXLAN tunnels are also established between edge devices of the data centers. A VTEP (VXLAN tunneled point, VXLAN tunnel endpoint) is an edge device of VXLAN, and processes for VXLAN are all performed on the VTEP, for example, identifying VXLAN to which an ethernet data frame belongs, and performing two-layer forwarding, encapsulation/decapsulation of a packet, and the like on the data frame based on VXLAN. The VTEP may be a separate physical device or a server on which the virtual machine resides. VSI (virtual switch Instance) is a virtual switch Instance on a VTEP that provides a layer two switching service for VXLAN, and can be regarded as a virtual switch on a VTEP device that performs layer two forwarding based on VXLAN, which may have all functions of a conventional ethernet switch, and VSI and VXLAN correspond one to one.
When communication is required between VM1 and VM2, two-layer interworking between data center a and data center B needs to be implemented. If the VXLAN tunnels in the data center a and the data center B both use the same VNI, the VXLAN tunnel between the Transit Leaf1 and the Transit Leaf2 only needs to be established by using the same VNI. In an actual application scenario, different data centers deploy various independent VNIs, so that the data center a and the data center B may need to use different VNIs as the same two-layer domain for interconnection communication, and in such a scenario, a VXLAN Mapping function needs to be implemented to perform VNI conversion once.
In the prior art, the VXLAN Mapping function has the following two implementation modes: in the local VNI mode, similar to the scheme of 'downstream label distribution', the local VNI of the Transit Leaf node at the home terminal is used as the VNI in the outgoing direction for VXLAN encapsulation, and the VNI in the VXLAN tunnel encapsulation information is used as the local VNI of the transleaf node at the opposite terminal; and in the Mapping VNI mode, similar to the scheme of VLAN Mapping, messages sent to the opposite end by Transit Leaf nodes at two ends use the same Mapping VNI to carry out VXLAN packaging.
In the prior art, a Mapping VNI mode is usually adopted to realize a VXLAN Mapping function. Specifically, the method comprises the following steps:
similar to the VLAN Mapping scheme, the messages sent by Transit Leaf nodes at both ends to the opposite end use the same Mapping VNI for VXLAN encapsulation. For example, the identifier of VXLAN to which VM1 in data center a belongs is VNI10, the identifier of VXLAN to which VM2 in data center B belongs is VNI20, when VM1 and VM2 perform two-layer communication, a data packet sent by VM1 to VM2 is in an edge device of data center a, and is re-encapsulated and then forwarded to VM2 in data center B through a VSI corresponding to VNI20 established in the edge device, a data packet sent by VM1 to other devices in the same VNI domain is in an edge device of data center a, and is re-encapsulated and then forwarded to other devices through a VSI corresponding to VNI10 established in the edge device. That is, in the edge device of the data center a, it is necessary to establish a VSI corresponding to VNI10 and a VSI corresponding to VNI 20.
It can be seen from the above process that, in the prior art, when the Mapping VNI mode implements the VXLAN Mapping function, in order to implement mutual communication between devices belonging to the same VNI domain and between devices belonging to different VNI domains between different data centers, it is necessary to establish a VSI corresponding to the VNI in an edge device for the same VNI, which occupies more hardware resources in the edge device.
Disclosure of Invention
The embodiment of the invention provides a message forwarding method, a message forwarding device, message forwarding equipment and a message forwarding storage medium, which are used for using different tunnels of the same VSI to map forwarded data messages to different VNI instances during outlet packaging, so that hardware inlet mapping resources are saved.
In a first aspect, an embodiment of the present invention provides a packet forwarding method, which is applied to an edge VTEP of a data center, and includes:
after determining that the first VXLAN message sent by other VTEPs from the data center is a message to be forwarded, decapsulating the first VXLAN message to obtain a first virtual extensible local area network identifier (VNI) carried by the first VXLAN message and an inner layer message of the first VXLAN message;
determining a first VSI corresponding to a first VNI based on the corresponding relation between each VNI and a virtual switch instance VSI included in a pre-configured data center;
searching a tunnel outlet corresponding to a first VSI and a Media Access Control (MAC) address of an inner layer message in an address forwarding table;
determining a first VSI and a second VNI corresponding to a tunnel outlet according to an opposite-end VNI mapping table;
and encapsulating the inner layer message according to the tunnel outlet and the second VNI to obtain a second VXLAN message, and sending the second VXLAN message through the tunnel outlet.
The message forwarding method provided by the embodiment of the invention is applied to the edge VTEP of the data center, and after determining that the received first VXLAN message sent by other VTEPs of the data center is a message to be forwarded, decapsulating the first VXLAN message, the first virtual extended local area network VNI and the inner layer message of the first VXLAN message; determining a first VSI corresponding to a first VNI based on the corresponding relation between each VNI and a virtual switch instance VSI included in a pre-configured data center; searching a tunnel outlet corresponding to a first VSI and a destination MAC address of the inner layer message in an address forwarding table; determining a first VSI and a second VNI corresponding to a tunnel outlet according to an opposite-end VNI mapping table; and encapsulating the inner layer message according to the tunnel outlet and the second VNI to obtain a second VXLAN message, and sending the second VXLAN message through the tunnel outlet. Compared with the prior art that the same VNI is targeted at the edge device, not only the VSI corresponding to the VNI needs to be established, but also the VSI corresponding to the VNI mapped by the VNI needs to be established, and more hardware resources in the edge device are occupied, tunnel outlets corresponding to the VSI and the destination MAC address of the inner layer message are determined based on the address forwarding table, the VNIs corresponding to the VSI and the tunnel outlets are further determined according to the opposite-end VNI mapping table, the determined VNIs are used for packaging the inner layer message, different VNIs are configured for different tunnel outlets, different tunnels using the same VSI can be realized, and the forwarded data message is mapped to different VNI examples during outlet packaging, so that hardware inlet mapping resources are saved.
In one possible embodiment, determining that the first VXLAN message sent by the other VTEP received from the data center is a message to be forwarded includes:
acquiring a destination Internet Protocol (IP) address carried by a first VXLAN message sent by other VTEPs from a data center;
determining whether the destination IP address is an IP address of an edge VTEP;
and if the destination IP address is determined to be the IP address of the edge VTEP, determining that the first VXLAN message is the message to be forwarded.
The message forwarding method provided by the embodiment of the invention firstly needs to identify the VXLAN to which the received message belongs so as to judge whether the received first VXLAN message sent by other VTEPs from the data center is a message to be forwarded or not. When a destination IP address carried by a first VXLAN message sent by other VTEPs from a data center is obtained and the destination IP address is determined to be the IP address of an edge VTEP, determining that the first VXLAN message is a message to be forwarded.
In one possible embodiment, determining a first VSI corresponding to a first VNI based on a correspondence relationship between each VNI included in a preconfigured data center and a virtual switch instance VSI includes:
acquiring a corresponding relation;
searching a first VNI in the corresponding relation;
and if the first VNI is found in the corresponding relation, acquiring the VSI corresponding to the first VNI to obtain the first VSI.
In a possible implementation manner, encapsulating the inner layer packet according to the tunnel exit and the second VNI to obtain the second VXLAN packet, includes:
acquiring a source IP address and a destination IP address of a VXLAN tunnel corresponding to a tunnel outlet;
and encapsulating the inner layer message according to the source IP address, the destination IP address and the second VNI to obtain a second VXLAN message.
In a second aspect, an embodiment of the present invention provides a packet forwarding apparatus, which is applied to an edge VTEP of a data center, and the apparatus includes:
the decapsulation unit is used for decapsulating the first VXLAN message to obtain a carried first virtual extended local area network identifier VNI and an inner layer message of the first VXLAN message after determining that the first VXLAN message sent by other VTEPs from the data center is a message to be forwarded;
the virtual switching instance determining unit is used for determining a first VSI corresponding to a first VNI based on the corresponding relation between each VNI and a virtual switching instance VSI included in a pre-configured data center;
a tunnel exit determining unit, configured to search a tunnel exit corresponding to the first VSI and a destination MAC address of the inner layer packet in an address forwarding table;
the encapsulation VNI determination unit is used for determining a first VSI and a second VNI corresponding to the tunnel exit according to the opposite-end VNI mapping table;
and the message forwarding unit is used for packaging the inner layer message according to the tunnel outlet and the second VNI to obtain a second VXLAN message, and sending the second VXLAN message through the tunnel outlet.
In a possible implementation, the decapsulating unit is specifically configured to:
acquiring a destination IP address carried by a first VXLAN message sent by other VTEPs from a data center;
determining whether the destination IP address is an IP address of an edge VTEP;
and if the destination IP address is determined to be the IP address of the edge VTEP, determining that the first VXLAN message is the message to be forwarded.
In a possible implementation manner, the virtual switch instance determining unit is specifically configured to:
acquiring a corresponding relation;
searching a first VNI in the corresponding relation;
and if the first VNI is found in the corresponding relation, acquiring the VSI corresponding to the first VNI to obtain the first VSI.
In a possible implementation manner, the packet forwarding unit is specifically configured to:
acquiring a source IP address and a destination IP address of a VXLAN tunnel corresponding to a tunnel outlet;
and encapsulating the inner layer message according to the source IP address, the destination IP address and the second VNI to obtain a second VXLAN message.
In a third aspect, an embodiment of the present invention provides a packet forwarding apparatus, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the packet forwarding method according to the first aspect of the embodiment of the present invention.
In a fourth aspect, an embodiment of the present invention provides a storage medium, where when an instruction in the storage medium is executed by a processor of a message forwarding device, the message forwarding device is enabled to execute the message forwarding method according to the first aspect of the embodiment of the present invention.
Drawings
Fig. 1 is a schematic flow chart of a message forwarding method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a forwarding tunnel and a mapping tunnel according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of another message forwarding method provided in the embodiment of the present invention;
fig. 4 is a schematic structural diagram of implementing a VXLAN Mapping function according to an embodiment of the present invention;
fig. 5 is a schematic flow chart of another message forwarding method according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a message forwarding apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a message forwarding device according to an embodiment of the present invention.
Detailed Description
The embodiments of the present invention will be described in conjunction with the accompanying drawings, and it should be understood that the embodiments described herein are only for the purpose of illustrating and explaining the present invention, and are not intended to limit the present invention.
In view of the situation that, in the prior art, when VXLAN is implemented to send a packet across data centers, hardware entry mapping table resources are in shortage and Transit leaf deployment is limited, an embodiment of the present invention provides a packet forwarding scheme, which is used to map forwarded data packets to different VNI instances when an egress is encapsulated, using different tunnels of the same VSI, thereby saving hardware entry mapping resources.
The message forwarding method provided by the embodiment of the invention is applied to the edge VTEP of the data center, and after determining that the received first VXLAN message sent by other VTEPs of the data center is a message to be forwarded, decapsulating the first VXLAN message, the first virtual extended local area network VNI and the inner layer message of the first VXLAN message; determining a first VSI corresponding to a first VNI based on the corresponding relation between each VNI and a virtual switch instance VSI included in a pre-configured data center; searching a tunnel outlet corresponding to a first VSI and a destination MAC address of the inner layer message in an address forwarding table; determining a first VSI and a second VNI corresponding to a tunnel outlet according to an opposite-end VNI mapping table; and encapsulating the inner layer message according to the tunnel outlet and the second VNI to obtain a second VXLAN message, and sending the second VXLAN message through the tunnel outlet. Compared with the prior art that the same VNI is targeted at the edge device, not only the VSI corresponding to the VNI needs to be established, but also the VSI corresponding to the VNI mapped by the VNI needs to be established, and more hardware resources in the edge device are occupied, tunnel outlets corresponding to the VSI and the destination MAC address of the inner layer message are determined based on the address forwarding table, the VNIs corresponding to the VSI and the tunnel outlets are further determined according to the opposite-end VNI mapping table, the determined VNIs are used for packaging the inner layer message, different VNIs are configured for different tunnel outlets, different tunnels using the same VSI can be realized, and the forwarded data message is mapped to different VNI examples during outlet packaging, so that hardware inlet mapping resources are saved.
The following describes the message forwarding scheme provided in the embodiment of the present invention in detail with reference to the accompanying drawings.
As shown in fig. 1, an embodiment of the present invention provides a packet forwarding method, which is applied to an edge VTEP of a data center, and may include the following steps:
And step 104, determining a first VSI and a second VNI corresponding to the tunnel exit according to the opposite-end VNI mapping table.
And 105, encapsulating the inner layer message according to the tunnel outlet and the second VNI to obtain a second VXLAN message, and sending the second VXLAN message through the tunnel outlet.
In a scenario of interconnection of different data centers, each data center deploys its own independent VNI, and VNIs of different data centers need to be established in the same two-layer domain, as shown in fig. 2, corresponding tunnels are configured on hardware to perform interconnection communication, so as to implement packet forwarding. The following describes the message forwarding scheme provided in the embodiment of the present invention in detail with two specific embodiments.
The first embodiment,
If both the VXLAN ID of VM1 in data center a and the VXLAN ID of VM4 in data center B are 100, taking VNI100 in VM1 and VNI100 in VM4 as an example, the data transmission process across data centers may have the following steps:
as shown in fig. 3, VM1 sends ethernet data frames to VM4, where the source MAC address of the data frame is MAC1 and the destination MAC address is MAC 4.
In step 301, a Leaf1 receives a data packet sent by a VM1, determines that the data packet belongs to a VSI1 based on a correspondence between each VNI and a virtual switching instance VSI included in a preconfigured data center, searches for an MAC address of the VSI1, and obtains an egress interface of the data packet as a forwarding Tunnel DCI Tunnel.
Example II,
As shown in fig. 4, the VNI to which the VM2 belongs in the data center a and the VNI to which the VM3 belongs in the data center B are different, and are respectively VNI200 and VNI300, and taking the communication between the VNI200 in the VM2 and the VNI300 in the VM3 as an example, the data transmission process across the data centers may have the following steps:
as shown in fig. 5, VM2 sends ethernet data frames to VM3, where the source MAC address of the data frame is MAC2 and the destination MAC address is MAC 3.
In step 506, Leaf4 decapsulates the received VXLAN packet, performs corresponding two-layer forwarding, and finally sends the packet to VM 3.
As shown in fig. 6, an embodiment of the present invention further provides a packet forwarding apparatus, which is applied to an edge VTEP of a data center, and the apparatus includes:
the decapsulation unit 61 is configured to decapsulate the first VXLAN packet to obtain a first virtual extended local area network identifier VNI carried by the first VXLAN packet and an inner layer packet of the first VXLAN packet after determining that the first VXLAN packet sent by another VTEP from the data center is a packet to be forwarded;
a virtual switch instance determining unit 62, configured to determine, based on a correspondence relationship between each VNI included in a preconfigured data center and a virtual switch instance VSI, a first VSI corresponding to the first VNI;
a tunnel exit determining unit 63, configured to search a tunnel exit corresponding to the first VSI and the destination MAC address of the inner layer packet in the address forwarding table;
a package VNI determining unit 64, which determines a first VSI and a second VNI corresponding to the tunnel exit according to the opposite-end VNI mapping table;
and the message forwarding unit 65 is configured to encapsulate the inner layer message according to the tunnel exit and the second VNI to obtain a second VXLAN message, and send the second VXLAN message through the tunnel exit.
In a possible implementation, the decapsulating unit 61 is specifically configured to:
acquiring a destination IP address carried by a first VXLAN message sent by other VTEPs from a data center;
determining whether the destination IP address is an IP address of an edge VTEP;
and if the destination IP address is determined to be the IP address of the edge VTEP, determining that the first VXLAN message is the message to be forwarded.
In a possible implementation, the virtual switch instance determining unit 62 is specifically configured to:
acquiring a corresponding relation;
searching a first VNI in the corresponding relation;
and if the first VNI is found in the corresponding relation, acquiring the VSI corresponding to the first VNI to obtain the first VSI.
In a possible implementation manner, the message forwarding unit 65 is specifically configured to:
acquiring a source IP address and a destination IP address of a VXLAN tunnel corresponding to a tunnel outlet;
and encapsulating the inner layer message according to the source IP address, the destination IP address and the second VNI to obtain a second VXLAN message.
Based on the same concept of the embodiment of the present invention, the embodiment of the present invention further provides a message forwarding device.
As shown in fig. 7, an embodiment of the present invention provides a message forwarding device 70, including:
a processor 71;
a memory 72 for storing processor-executable instructions;
wherein, the processor 71 is configured to execute the instructions to implement the message forwarding method as provided in the embodiment of the present invention.
In an exemplary embodiment, a storage medium comprising instructions, such as a memory 72 comprising instructions, executable by a processor 71 of a message forwarding device to perform the above method is also provided.
Alternatively, the storage medium may be a non-transitory computer readable storage medium, for example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (10)
1. A message forwarding method is applied to an edge virtual extensible local area network (VXLAN) tunnel endpoint (VTEP) of a data center, and is characterized by comprising the following steps:
after determining that a first VXLAN message sent by other VTEPs from the data center is a message to be forwarded, decapsulating the first VXLAN message to obtain a first virtual extensible local area network identifier (VNI) carried by the first VXLAN message and an inner layer message of the first VXLAN message;
determining a first VSI corresponding to a first VNI based on a pre-configured corresponding relation between each VNI included in the data center and a virtual switch instance VSI;
searching a tunnel outlet corresponding to the first VSI and a destination Media Access Control (MAC) address of the inner layer message in an address forwarding table;
determining a first VSI and a second VNI corresponding to the tunnel exit according to an opposite-end VNI mapping table;
and packaging the inner layer message according to the tunnel outlet and the second VNI to obtain a second VXLAN message, and sending the second VXLAN message through the tunnel outlet.
2. The method according to claim 1, wherein the determining that the first VXLAN packet sent by the other VTEP received from the data center is a packet to be forwarded comprises:
acquiring a destination internet Interconnection Protocol (IP) address carried by a first VXLAN message sent by other VTEPs from the data center;
determining whether the destination IP address is an IP address of the edge VTEP;
and if the destination IP address is determined to be the IP address of the edge VTEP, determining that the first VXLAN message is a message to be forwarded.
3. The method of claim 1, wherein determining a first VSI corresponding to the first VNI based on a preconfigured correspondence of each VNI included in the data center to a virtual switch instance VSI comprises:
acquiring the corresponding relation;
searching the first VNI in the corresponding relation;
and if the first VNI is found in the corresponding relation, acquiring a VSI corresponding to the first VNI to obtain the first VSI.
4. The method according to any of claims 1-3, wherein the encapsulating the inner-layer packet according to the tunnel exit and the second VNI to obtain a second VXLAN packet comprises:
acquiring a source IP address and a destination IP address of the VXLAN tunnel corresponding to the tunnel outlet;
and packaging the inner layer message according to the source IP address, the destination IP address and the second VNI to obtain a second VXLAN message.
5. A message forwarding device is applied to an edge virtual extensible local area network (VXLAN) tunnel endpoint (VTEP) of a data center, and is characterized by comprising:
the decapsulation unit is configured to decapsulate the first VXLAN packet received from the other VTEP of the data center to obtain a first virtual extended local area network identifier VNI carried by the first VXLAN packet and an inner layer packet of the first VXLAN packet after determining that the first VXLAN packet sent by the other VTEP of the data center is a packet to be forwarded;
a virtual switch instance determining unit, configured to determine, based on a pre-configured correspondence between each VNI included in the data center and a virtual switch instance VSI, a first VSI corresponding to the first VNI;
a tunnel exit determining unit, configured to search, in an address forwarding table, a tunnel exit corresponding to the first VSI and a destination media access control MAC address of the inner layer packet;
an encapsulation VNI determining unit, configured to determine, according to an opposite-end VNI mapping table, the first VSI and a second VNI corresponding to the tunnel exit;
and the message forwarding unit is used for packaging the inner layer message according to the tunnel outlet and the second VNI to obtain a second VXLAN message, and sending the second VXLAN message through the tunnel outlet.
6. The apparatus according to claim 5, wherein the decapsulating unit is specifically configured to:
acquiring a destination internet Interconnection Protocol (IP) address carried by a first VXLAN message sent by other VTEPs from the data center;
determining whether the destination IP address is an IP address of the edge VTEP;
and if the destination IP address is determined to be the IP address of the edge VTEP, determining that the first VXLAN message is a message to be forwarded.
7. The apparatus according to claim 5, wherein the virtual switch instance determining unit is specifically configured to:
acquiring the corresponding relation;
searching the first VNI in the corresponding relation;
and if the first VNI is found in the corresponding relation, acquiring a VSI corresponding to the first VNI to obtain the first VSI.
8. The apparatus according to any one of claims 5 to 7, wherein the packet forwarding unit is specifically configured to:
acquiring a source IP address and a destination IP address of the VXLAN tunnel corresponding to the tunnel outlet;
and packaging the inner layer message according to the source IP address, the destination IP address and the second VNI to obtain a second VXLAN message.
9. A message forwarding device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the message forwarding method of any of claims 1 to 4.
10. A storage medium, wherein instructions in the storage medium, when executed by a processor of a message forwarding device, enable the message forwarding device to perform the message forwarding method of any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911237129.3A CN110943901A (en) | 2020-01-10 | 2020-01-10 | Message forwarding method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911237129.3A CN110943901A (en) | 2020-01-10 | 2020-01-10 | Message forwarding method, device, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110943901A true CN110943901A (en) | 2020-03-31 |
Family
ID=69909687
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911237129.3A Pending CN110943901A (en) | 2020-01-10 | 2020-01-10 | Message forwarding method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110943901A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111431789A (en) * | 2020-04-13 | 2020-07-17 | 北京星网锐捷网络技术有限公司 | Multi-data center interconnection communication method and DCI equipment |
CN111585863A (en) * | 2020-06-11 | 2020-08-25 | 国家计算机网络与信息安全管理中心 | Virtual extensible local area network message processing equipment and data processing method thereof |
CN112152900A (en) * | 2020-09-24 | 2020-12-29 | 盛科网络(苏州)有限公司 | Message forwarding method and device in VxLAN scene |
CN113645174A (en) * | 2020-04-27 | 2021-11-12 | 华为技术有限公司 | VXLAN access authentication method and VTEP device |
CN114363102A (en) * | 2021-12-30 | 2022-04-15 | 苏州盛科通信股份有限公司 | Multicast implementation method and device based on multicast and VXLAN linkage |
CN115567439A (en) * | 2021-06-30 | 2023-01-03 | 中国电信股份有限公司 | Message forwarding method, node, system, network node and storage medium |
WO2023010730A1 (en) * | 2021-08-02 | 2023-02-09 | 武汉绿色网络信息服务有限责任公司 | Data packet parsing method and server |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102308539A (en) * | 2011-07-08 | 2012-01-04 | 华为技术有限公司 | Method and device of fast shift of forwarding port |
CN106059923A (en) * | 2016-05-30 | 2016-10-26 | 杭州华三通信技术有限公司 | Message forwarding method and device |
CN107547344A (en) * | 2017-06-30 | 2018-01-05 | 新华三技术有限公司 | VXLAN message processing methods and device |
-
2020
- 2020-01-10 CN CN201911237129.3A patent/CN110943901A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102308539A (en) * | 2011-07-08 | 2012-01-04 | 华为技术有限公司 | Method and device of fast shift of forwarding port |
CN106059923A (en) * | 2016-05-30 | 2016-10-26 | 杭州华三通信技术有限公司 | Message forwarding method and device |
CN107547344A (en) * | 2017-06-30 | 2018-01-05 | 新华三技术有限公司 | VXLAN message processing methods and device |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111431789A (en) * | 2020-04-13 | 2020-07-17 | 北京星网锐捷网络技术有限公司 | Multi-data center interconnection communication method and DCI equipment |
CN113645174A (en) * | 2020-04-27 | 2021-11-12 | 华为技术有限公司 | VXLAN access authentication method and VTEP device |
CN113645174B (en) * | 2020-04-27 | 2023-04-18 | 华为技术有限公司 | VXLAN access authentication method and VTEP device |
CN111585863A (en) * | 2020-06-11 | 2020-08-25 | 国家计算机网络与信息安全管理中心 | Virtual extensible local area network message processing equipment and data processing method thereof |
CN111585863B (en) * | 2020-06-11 | 2022-03-01 | 国家计算机网络与信息安全管理中心 | Virtual extensible local area network message processing equipment and data processing method thereof |
CN112152900A (en) * | 2020-09-24 | 2020-12-29 | 盛科网络(苏州)有限公司 | Message forwarding method and device in VxLAN scene |
CN115567439A (en) * | 2021-06-30 | 2023-01-03 | 中国电信股份有限公司 | Message forwarding method, node, system, network node and storage medium |
WO2023010730A1 (en) * | 2021-08-02 | 2023-02-09 | 武汉绿色网络信息服务有限责任公司 | Data packet parsing method and server |
CN114363102A (en) * | 2021-12-30 | 2022-04-15 | 苏州盛科通信股份有限公司 | Multicast implementation method and device based on multicast and VXLAN linkage |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110943901A (en) | Message forwarding method, device, equipment and storage medium | |
CN112702252B (en) | Message processing method, system and related equipment | |
CN104601472B (en) | The method and message handling system of VXLAN gateways distribution route are realized in the chips | |
US10476796B2 (en) | Packet processing method, and device and system | |
CN103200069B (en) | A kind of method and apparatus of Message processing | |
KR102054338B1 (en) | Routing vlan tagged packets to far end addresses of virtual forwarding instances using separate administrations | |
CN104579954B (en) | The cross-domain retransmission method of message, device and communication equipment | |
WO2015165311A1 (en) | Method for transmitting data packet and provider edge device | |
CN106878136B (en) | Message forwarding method and device | |
CN107770026B (en) | Tenant network data transmission method, tenant network system and related equipment | |
US10432578B2 (en) | Client address based forwarding of dynamic host configuration protocol response packets | |
KR20230101903A (en) | BIER packet forwarding method, device and system | |
US10454882B2 (en) | DHCP in layer-3 overlay with anycast address support and network address transparency | |
CN107645433B (en) | Message forwarding method and device | |
CN106209616B (en) | Flooding inhibition method and device | |
US11296985B2 (en) | Normalized lookup and forwarding for diverse virtual private networks | |
JP2022541381A (en) | COMMUNICATION METHOD, GATEWAY, AND MANAGEMENT METHOD AND APPARATUS IN HYBRID CLOUD ENVIRONMENT | |
WO2019214612A1 (en) | Method and apparatus for transmitting message | |
US20210359879A1 (en) | Packet forwarding method and network device | |
CN109246016B (en) | Cross-VXLAN message processing method and device | |
CN107135118B (en) | Unicast communication method, gateway and VXLAN access equipment | |
CN106911547B (en) | Message forwarding method and device | |
CN116418632A (en) | Message processing method, device, equipment and machine-readable storage medium | |
CN108934058B (en) | Communication method and device | |
CN113542112B (en) | Message forwarding method and network equipment |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200331 |