CN111010344B - Message forwarding method and device, electronic equipment and machine-readable storage medium - Google Patents

Message forwarding method and device, electronic equipment and machine-readable storage medium Download PDF

Info

Publication number
CN111010344B
CN111010344B CN201911410342.XA CN201911410342A CN111010344B CN 111010344 B CN111010344 B CN 111010344B CN 201911410342 A CN201911410342 A CN 201911410342A CN 111010344 B CN111010344 B CN 111010344B
Authority
CN
China
Prior art keywords
message
vxlan
forwarding
fast forwarding
physical interface
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.)
Active
Application number
CN201911410342.XA
Other languages
Chinese (zh)
Other versions
CN111010344A (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.)
Hangzhou DPTech Technologies Co Ltd
Original Assignee
Hangzhou DPTech Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou DPTech Technologies Co Ltd filed Critical Hangzhou DPTech Technologies Co Ltd
Priority to CN201911410342.XA priority Critical patent/CN111010344B/en
Publication of CN111010344A publication Critical patent/CN111010344A/en
Application granted granted Critical
Publication of CN111010344B publication Critical patent/CN111010344B/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
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering
    • 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/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • 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]

Abstract

The application provides a message forwarding method, a message forwarding device, electronic equipment and a machine-readable storage medium. In the application, the local terminal equipment acquires a first message to be subjected to VXLAN packaging and generates a fast forwarding session table entry corresponding to the first message; wherein, the fast forwarding session table entry at least comprises a first physical interface of the message encapsulated by VXLAN at the local terminal equipment; forwarding the first message subjected to VXLAN encapsulation to opposite-end equipment by taking the first physical interface as an output port; receiving a second message which is sent by opposite terminal equipment and is based on VXLAN packaging; and based on the quick forwarding session table entry, the second message is quickly forwarded, so that repeated fast forwarding of VXLAN encapsulation and decapsulation of the original message is avoided, the system load is reduced, and the message forwarding efficiency is improved.

Description

Message forwarding method and device, electronic equipment and machine-readable storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for forwarding a packet, an electronic device, and a machine-readable storage medium.
Background
VXLAN (Virtual Extensible local area network), a network virtualization technology, can establish a two-layer ethernet network tunnel based on an IP network and in a "MAC in UDP" encapsulation form on the basis of a three-layer network, thereby implementing a two-layer interconnection across regions.
The VXLAN technology creates a large number of virtual extensible local area networks on an existing Network by establishing VXLAN tunnels, and different virtual extensible local area networks are identified by using VNI (virtual extensible local area Network Identifier). As is known, because the VLAN has a limited header of only 12 bits, the limited number of VLANs is 2^12 ^ 4096, which cannot meet the increasing demand. And at present, the header of the VXLAN message has 24 bits, which can support the number of VNIs of power 2^24 (the VXLAN is identified by the VNI, which is equivalent to VLAN ID). During implementation, the VXLAN technology may establish a VXLAN Tunnel through two network devices serving as VTEPs (VXLAN Tunnel Endpoint), and perform VXLAN encapsulation and VXLAN decapsulation on an original message entering the network devices.
VXLAN technology can be applied in different scenarios in general, for example: a VPN scenario, which can provide two-layer interconnection for existing service providers or decentralized physical sites of enterprise IP networks based on VXLAN, and can provide service isolation for different tenants; another example is: the cloud computing scene provides two-layer-based extended deployment for a large cloud computing environment which is deployed across three layers.
Disclosure of Invention
The application provides a message forwarding method, which is applied to member network equipment in a VXLAN system; wherein the member network device may be configured as a home terminal device or an opposite terminal device, and the method includes:
the method comprises the steps that local terminal equipment obtains a first message to be subjected to VXLAN packaging and generates a fast forwarding session table item corresponding to the first message; wherein, the fast forwarding session table entry at least comprises a first physical interface of the message encapsulated by VXLAN at the local terminal equipment;
forwarding the first message subjected to VXLAN encapsulation to opposite-end equipment by taking the first physical interface as an output port;
receiving a second message which is sent by opposite terminal equipment and is based on VXLAN packaging; and based on the fast forwarding session table entry, performing fast forwarding on the second message.
Optionally, the member network device further includes a hardware chip decapsulated due to VXLAN addition; the fast forwarding session table entry further comprises a second physical interface corresponding to the first physical interface; the second physical interface is a physical interface of local equipment of the message after being unpacked by the VXLAN;
the performing fast forwarding on the second packet based on the fast forwarding session entry includes:
the hardware chip executes VXLAN decapsulation on the second message to obtain the second message after the VXLAN decapsulation;
searching whether a matched fast forwarding session table entry exists in the fast forwarding session table entry by taking the IP five-tuple information of the second message after the VXLAN is unpacked as a search index; if yes, acquiring a second physical interface of the fast forwarding session table entry matched with the second message after the VXLAN decapsulation;
and directly forwarding the second message after the VXLAN decapsulation execution to target equipment which is connected with the local end equipment and is positioned in a local private network by using a second physical interface of the matched fast forwarding session table entry as an output port.
Optionally, if there is no fast forwarding session entry matching the IP quintuple information of the second packet decapsulated by VXLAN in the fast forwarding session entry, the method further includes:
and sending the second message after the VXLAN is unpacked to a CPU of the local terminal equipment for slow forwarding.
Optionally, the member network device is a network device that enables a fast forwarding mechanism and does not enable NAT.
The application also provides a message forwarding device, which is applied to member network equipment in the VXLAN system; wherein the member network device may be configured as a home terminal device or an opposite terminal device, and the apparatus includes:
the table item generating module is used for acquiring a first message packaged by VXLAN to be executed by local equipment and generating a fast forwarding session table item corresponding to the first message; wherein, the fast forwarding session table entry at least comprises a first physical interface of the message encapsulated by VXLAN at the local terminal equipment;
the first forwarding module is used for forwarding the first message subjected to VXLAN encapsulation to opposite-end equipment by taking the first physical interface as an output port;
the second forwarding module receives a second message which is sent by the opposite terminal and is based on VXLAN packaging; and based on the fast forwarding session table entry, performing fast forwarding on the second message.
Optionally, the member network device further includes a hardware chip decapsulated due to VXLAN addition; the fast forwarding session table entry further comprises a second physical interface corresponding to the first physical interface; the second physical interface is a physical interface of local equipment of the message after being unpacked by the VXLAN;
the second forwarding module further:
the hardware chip executes VXLAN decapsulation on the second message to obtain the second message after the VXLAN decapsulation;
searching whether a matched fast forwarding session table entry exists in the fast forwarding session table entry by taking the IP five-tuple information of the second message after the VXLAN is unpacked as a search index; if yes, acquiring a second physical interface of the fast forwarding session table entry matched with the second message after the VXLAN decapsulation;
and directly forwarding the second message after the VXLAN decapsulation execution to target equipment which is connected with the local end equipment and is positioned in a local private network by using a second physical interface of the matched fast forwarding session table entry as an output port.
Optionally, if there is no fast forwarding session entry matching the IP quintuple information of the second packet decapsulated by VXLAN in the fast forwarding session entry, the second forwarding module further:
and sending the second message after the VXLAN is unpacked to a CPU of the local terminal equipment for slow forwarding.
Optionally, the member network device is a network device that enables a fast forwarding mechanism and does not enable NAT.
The application also provides an electronic device, which comprises a communication interface, a processor, a memory and a bus, wherein the communication interface, the processor and the memory are mutually connected through the bus;
the memory stores machine-readable instructions, and the processor executes the method by calling the machine-readable instructions.
The present application also provides a machine-readable storage medium having stored thereon machine-readable instructions which, when invoked and executed by a processor, implement the above-described method.
Through the embodiment, the quick forwarding session table entry corresponding to the first message packaged by the VXLAN to be executed is generated; based on the quick forwarding session table entry, the quick forwarding of the first message after VXLAN encapsulation and the quick forwarding of the second message after VXLAN decapsulation are carried out, so that the repeated reentry of the original quick forwarding of VXLAN encapsulation and decapsulation of the message is avoided, the system load is reduced, and the message forwarding efficiency is improved.
Drawings
Fig. 1 is a networking diagram of a VXLAN system provided by an exemplary embodiment;
fig. 2 is a flowchart of a message forwarding method according to an exemplary embodiment;
fig. 3 is a block diagram of a message forwarding apparatus according to an exemplary embodiment;
fig. 4 is a hardware block diagram of an electronic device according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
In order to enable those skilled in the art to better understand the technical solution in the embodiment of the present application, a brief description will be given below to the related technologies of packet forwarding related to the embodiment of the present application.
Referring to fig. 1, fig. 1 is a networking diagram of a VXLAN system according to an embodiment of the present disclosure.
The networking shown in fig. 1 includes: operator edge routing devices (PE1, PE2), customer edge routing devices (CE1, CE2, CE3, CE4), traffic devices (h1, h2, h3, h4, h5, h 6);
PE1 and PE2 may establish a VXLAN tunnel, and h1, h2, and h3 may communicate via the VXLAN tunnel via connected CE1, CE2, and PE1, and h4, h5, and h6 connected to PE2, CE3, and CE4, respectively.
On the basis of the networking architecture, the application aims to provide a technical scheme for reducing reentry and fast forwarding for carrying out VXLAN encapsulation and decapsulation on a message based on a fast forwarding session table entry corresponding to the VXLAN encapsulation.
In implementations, the VXLAN system includes at least two member network devices, each of which may be configured as a home device or a peer device.
Further, the local terminal equipment acquires a first message to be subjected to VXLAN packaging, and generates a fast forwarding session table item corresponding to the first message; wherein, the fast forwarding session table entry at least comprises a first physical interface of the message encapsulated by VXLAN at the local terminal equipment; forwarding the first message subjected to VXLAN encapsulation to opposite-end equipment by taking the first physical interface as an output port; receiving a second message which is sent by opposite terminal equipment and is based on VXLAN packaging; and based on the fast forwarding session table entry, performing fast forwarding on the second message.
In the scheme, a fast forwarding session table entry corresponding to a first message packaged by a VXLAN to be executed is generated; based on the quick forwarding session table entry, the quick forwarding of the first message after VXLAN encapsulation and the quick forwarding of the second message after VXLAN decapsulation are carried out, so that the repeated reentry of the original quick forwarding of VXLAN encapsulation and decapsulation of the message is avoided, the system load is reduced, and the message forwarding efficiency is improved.
The present application is described below with reference to specific embodiments and specific application scenarios.
Referring to fig. 2, fig. 2 is a flowchart of a message forwarding method according to an embodiment of the present application, where the method is applied to a member network device in a VXLAN system; wherein, the member network device can be configured as a local device or an opposite device, and the method executes the following steps:
step 202, the local terminal equipment acquires a first message to be subjected to VXLAN packaging, and generates a fast forwarding session table item corresponding to the first message; wherein, the fast forwarding session table entry at least comprises a first physical interface of the message encapsulated by VXLAN at the local terminal equipment.
And step 204, forwarding the first packet subjected to VXLAN encapsulation to an opposite terminal device by using the first physical interface as an egress port.
Step 206, receiving a second message based on VXLAN encapsulation sent by the opposite terminal equipment; and based on the fast forwarding session table entry, performing fast forwarding on the second message.
In this specification, the VXLAN system includes at least two member network devices that enable VXLAN technology;
wherein, the member network device may be configured as a home terminal device of the home terminal VTEP or as an opposite terminal device of the opposite terminal VTEP; the local terminal device and the opposite terminal device can establish a VXLAN tunnel.
In one embodiment, the member Network device is a Network device that enables a fast forwarding mechanism and does not enable NAT (Network Address Translation).
The following fast forwarding mechanism is briefly introduced here. Generally, the procedure of the fast forwarding mechanism mainly includes: when network equipment receives a first message of network flow, a route matched with the first message is searched in a routing table according to IP five-tuple information (a source IP address, a destination IP address, a source port number, a destination port number and a protocol number) of the first message, then an optimal path is determined and a corresponding forwarding session is generated, and meanwhile, the first message is encapsulated according to a protocol used on a data link layer and finally forwarded; when the subsequent message of the network flow can be directly forwarded by the forwarding session, the queuing process of the subsequent message is greatly reduced, the forwarding time of the subsequent message is reduced, and the forwarding efficiency of the message is improved.
In this specification, the home device and the peer device refer to the two member network devices that establish a VXLAN tunnel in the VXLAN system.
It should be noted that the home device and the peer device are relative concepts based on the flow of network traffic. For example, referring to fig. 1, when network traffic flows from a service device (any one or combination of h1, h2, and h3) locally connected to PE1 to a service device (any one or combination of h4, h5, and h6) locally connected to PE2, the local device is PE1, and the peer device is PE 2.
Of course, in practical application, the local device and the peer device may be interchanged. For example, referring to fig. 1, when network traffic flows from a service device (any one or combination of h4, h5, and h6) locally connected to PE2 to a service device (any one or combination of h1, h2, and h3) locally connected to PE1, the local device is PE2, and the peer device is PE 1.
In this specification, the first message refers to a network message in any service form that enters the local device and is to be subjected to VXLAN encapsulation and comes from a private network device connected to the local device.
For example, referring to fig. 1, the first message may include a network message in any service form that enters PE1 and comes from a service device (h1, h2, h3) in the private network connected to PE1 to perform VXLAN encapsulation.
For another example, referring to fig. 1, the first message may include a network message in any service form that enters the PE2 and is to perform VXLAN encapsulation and comes from a service device (h4, h5, h6) in the private network connected to the PE 2.
For convenience of understanding and description, the following description will be made when the local device is PE1 and the peer device is PE 2.
In this specification, the local device acquires the first message and generates a fast forwarding session entry corresponding to the first message; wherein, the fast forwarding session table entry at least comprises a first physical interface of the message encapsulated by the VXLAN at the local terminal device.
For example, referring to fig. 1, the local device PE1 obtains the first message, and generates a fast forwarding session entry corresponding to the first message; the fast forwarding session entry at least includes the first physical interface P1 of the first packet at the local device PE1 after being encapsulated by VXLAN.
In this specification, the local device forwards the first packet encapsulated by VXLAN to the opposite device through the first physical interface as an egress port.
Continuing the example following the above example, the home device PE1 uses the first physical interface P1 as an egress port, and forwards the first packet after performing VXLAN encapsulation to the peer device PE 2.
In this specification, the second packet refers to a network packet in any service form that enters the local device and is to perform VXLAN decapsulation, where the network packet is from a private network device connected to the opposite device.
For example, referring to fig. 1, the second message may include a network message in any service form that enters PE2 and comes from a service device (h4, h5, h6) in the private network connected to PE2 to perform VXLAN decapsulation.
It should be noted that, the fast forwarding session entry is used to fast forward the first message encapsulated based on the to-be-VXLAN, so as to avoid the need to re-enter the fast forwarding process many times when VXLAN is encapsulated and fast forwarded on the message due to the difference of the quintuple of the inner and outer layer headers (for example, when the first message encapsulated by the VXLAN is received, the hardware chip of the local device searches for the fast forwarding session entry matched with the quintuple of the first message (i.e., the inner layer message) to perform VXLAN encapsulation, and then re-enters the fast forwarding process to re-search for the matched fast forwarding session entry on the outer layer message of the first message encapsulated by the VXLAN), thereby improving the forwarding efficiency of the message.
In this specification, further, the local device receives the second message; and based on the quick forwarding session table entry, performing quick forwarding on the second message.
Continuing the example from the above example, the home device PE1 receives the second message; and performing fast forwarding on the second message based on the fast forwarding session table entry matched with the second message.
In one embodiment, the member network device further includes a hardware chip for decapsulation due to VXLAN; the quick-turn session table entry also comprises a second physical interface corresponding to the first physical interface; and the second physical interface is a physical interface of the local terminal equipment of the message after being decapsulated by the VXLAN.
For example, the local device PE1 further includes a hardware chip for decapsulating and adding VXLAN, and the fast forwarding session entry corresponding to the first packet further includes a second physical interface P2 corresponding to the first physical interface P1; the second physical interface P2 is a physical interface of the local device of the message decapsulated by VXLAN for the second message.
In this specification, further, in a process that the local device performs fast forwarding on the second message based on the fast forwarding session entry, the local device performs VXLAN decapsulation on the second message through the hardware chip to obtain the second message after VXLAN decapsulation; using the IP quintuple information of the second message after the VXLAN decapsulation as a search index, and searching whether a matched fast forwarding session table entry exists in the fast forwarding session table entry; and if so, acquiring a second physical interface of the fast forwarding session table entry matched with the second message after the VXLAN is de-encapsulated.
For example, the local device PE1 performs VXLAN decapsulation on the second message by using the hardware chip to obtain the second message after VXLAN decapsulation; using the IP quintuple information of the second message decapsulated by VXLAN as a lookup index, and looking up whether a matching fast forwarding session entry exists in the fast forwarding session entry of the local device PE 1; and if so, acquiring a second physical interface (such as P2) of the fast forwarding session table entry matched with the second message after the VXLAN is de-encapsulated.
In this specification, further, the local device uses the second physical interface of the matched fast forwarding session entry as an egress port, and directly forwards the second packet decapsulated by performing VXLAN to a target device connected to the local device and located in a local private network.
Continuing the example from the above example, the local device PE1 uses the second physical interface (e.g., P2) of the matched fast forwarding session entry as an egress port, and directly forwards the second packet after performing VXLAN decapsulation to a target device (e.g., h1, h2, h3) connected to the local device and located in the local private network.
In another embodiment shown, in a process that the local device performs fast forwarding on the second message based on the fast forwarding session entry, the local device performs VXLAN decapsulation on the second message through the hardware chip to obtain the second message after VXLAN decapsulation; using the IP quintuple information of the second message after the VXLAN decapsulation as a search index, and searching whether a matched fast forwarding session table entry exists in the fast forwarding session table entry; and if the fast forwarding session table entry does not have the fast forwarding session table entry matched with the IP quintuple information of the second message decapsulated by the VXLAN, the local terminal equipment transmits the second message decapsulated by the VXLAN to a CPU of the local terminal equipment for slow forwarding.
For example, the local device PE1 performs VXLAN decapsulation on the second message by using the hardware chip to obtain the second message after VXLAN decapsulation; using the IP quintuple information of the second message decapsulated by VXLAN as a lookup index, and looking up whether a matching fast forwarding session entry exists in the fast forwarding session entry of the local device PE 1; the local device PE1 sends the second message decapsulated by VXLAN to the CPU of the local device for slow forwarding without a fast forwarding session entry matched with the IP quintuple information of the second message decapsulated by VXLAN; the slow forwarding refers to that each message in a plurality of messages with the same flow is forwarded by a CPU, and slow forwarding consumes more CPU and other system resources and has lower message forwarding efficiency than fast forwarding.
It should be noted that, the fast forwarding of the second message encapsulated based on VXLAN is performed through the fast forwarding session entry, which avoids the problem that the fast forwarding process needs to be repeated many times when VXLAN decapsulation and fast forwarding are performed on a VXLAN message due to different quintuples of the inner and outer layer headers (for example, when the second message encapsulated based on VXLAN is received, the hardware chip of the local device searches for a fast forwarding session entry matched with the IP quintuple of the second message (i.e., the outer layer message) to perform VXLAN decapsulation, and then searches for a matched fast forwarding session entry again for the inner layer message of the second message decapsulated by VXLAN), thereby improving the forwarding efficiency of the message.
In the technical scheme, a fast forwarding session table entry corresponding to a first message packaged by a VXLAN to be executed is generated; based on the quick forwarding session table entry, the quick forwarding of the first message after VXLAN encapsulation and the quick forwarding of the second message after VXLAN decapsulation are carried out, so that the repeated reentry of the original quick forwarding of VXLAN encapsulation and decapsulation of the message is avoided, the system load is reduced, and the message forwarding efficiency is improved.
Fig. 3 is a block diagram of a message forwarding apparatus according to an exemplary embodiment of the present application. Corresponding to the embodiment of the method, the application also provides an embodiment of a message forwarding device, and the device is applied to member network equipment in a VXLAN system; the member network device may be configured as a local device or an opposite device, please refer to fig. 3 for an example of a packet forwarding apparatus 30, where the apparatus includes:
the table item generating module 301 obtains a first message to be subjected to VXLAN encapsulation, and generates a fast forwarding session table item corresponding to the first message; wherein, the fast forwarding session table entry at least comprises a first physical interface of the message encapsulated by VXLAN at the local terminal equipment;
a first forwarding module 302, configured to forward the first packet encapsulated by the VXLAN to an opposite device through the first physical interface as an egress port;
a second forwarding module 303, configured to receive a second message, which is sent by an opposite end device and is based on VXLAN encapsulation; and based on the fast forwarding session table entry, performing fast forwarding on the second message.
In this embodiment, the member network device further includes a hardware chip for decapsulation due to VXLAN; the fast forwarding session table entry further comprises a second physical interface corresponding to the first physical interface; the second physical interface is a physical interface of local equipment of the message after being unpacked by the VXLAN;
the second forwarding module 303 further:
the hardware chip executes VXLAN decapsulation on the second message to obtain the second message after the VXLAN decapsulation;
searching whether a matched fast forwarding session table entry exists in the fast forwarding session table entry by taking the IP five-tuple information of the second message after the VXLAN is unpacked as a search index; if yes, acquiring a second physical interface of the fast forwarding session table entry matched with the second message after the VXLAN decapsulation;
and directly forwarding the second message after the VXLAN decapsulation execution to target equipment which is connected with the local end equipment and is positioned in a local private network by using a second physical interface of the matched fast forwarding session table entry as an output port.
In this embodiment, if there is no fast forwarding session entry matching the IP quintuple information of the second packet decapsulated by VXLAN in the fast forwarding session entry, the second forwarding module 303 further:
and sending the second message after the VXLAN is unpacked to a CPU of the local terminal equipment for slow forwarding.
In this embodiment, the member network device is a network device that enables a fast forwarding mechanism and does not enable NAT.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, wherein the modules described as separate parts may or may not be physically separate, and the parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the application. One of ordinary skill in the art can understand and implement it without inventive effort.
The systems, devices, modules or modules illustrated in the above embodiments may be implemented by a computer chip or an entity, or by an article of manufacture with certain functionality. A typical implementation device is a computer, which may take the form of a personal computer, laptop computer, cellular telephone, camera phone, smart phone, personal digital assistant, media player, navigation device, email messaging device, game console, tablet computer, wearable device, or a combination of any of these devices.
The embodiment of the message forwarding apparatus of the present application can be applied to the electronic device shown in fig. 4. The device embodiments may be implemented by software, or by hardware, or by a combination of hardware and software. Taking a software implementation as an example, as a logical device, the device is a machine executable instruction formed by reading a corresponding computer program instruction in a machine readable storage medium through a processor of the electronic device where the device is located and then running the computer program instruction. In terms of hardware, as shown in fig. 4, the electronic device in which the message forwarding apparatus is located according to the present application is a hardware structure diagram, except for the processor, the communication interface, the bus, and the machine-readable storage medium shown in fig. 4, the electronic device in which the apparatus is located in the embodiment may also include other hardware according to the actual function of the electronic device, which is not described again.
Correspondingly, an embodiment of the present application further provides a hardware structure of an electronic device of the apparatus shown in fig. 3, please refer to fig. 4, and fig. 4 is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. The apparatus comprises: a communication interface 401, a processor 402, a machine-readable storage medium 403, and a bus 404; the communication interface 401, the processor 402 and the machine-readable storage medium 403 are configured to communicate with each other via a bus 404. The communication interface 401 is used for performing network communication. The processor 402 may be a Central Processing Unit (CPU), and the processor 402 may execute machine-readable instructions stored in a machine-readable storage medium 403 to implement the methods described above.
The machine-readable storage medium 403 referred to herein may be any electronic, magnetic, optical, or other physical storage device that can contain or store information such as executable instructions, data, and the like. For example, the machine-readable storage medium may be: volatile memory, non-volatile memory, or similar storage media. In particular, the machine-readable storage medium 403 may be a RAM (random Access Memory), a flash Memory, a storage drive (e.g., a hard disk drive), a solid state disk, any type of storage disk (e.g., a compact disk, a DVD, etc.), or similar storage medium, or a combination thereof.
Up to this point, the description of the hardware configuration shown in fig. 4 is completed.
Further, the present application provides a machine-readable storage medium, such as machine-readable storage medium 403 in fig. 4, including machine-executable instructions, which can be executed by processor 402 in the data processing apparatus to implement the data processing method described above.
The implementation process of the functions and actions of each unit in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application 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 application is limited only by the appended claims.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims (8)

1. A message forwarding method is characterized in that the method is applied to member network equipment in a VXLAN system; the member network device can be configured as a local device or an opposite device, and the member network device comprises a hardware chip for adding and removing VXLAN; the method comprises the following steps:
the method comprises the steps that local terminal equipment obtains a first message to be subjected to VXLAN packaging and generates a fast forwarding session table item corresponding to the first message; wherein, the fast forwarding session table entry at least comprises a first physical interface of the local device of the message encapsulated by VXLAN, and a second physical interface of the local device of the message de-encapsulated by VXLAN corresponding to the first physical interface;
forwarding the first message subjected to VXLAN encapsulation to opposite-end equipment by taking the first physical interface as an output port;
receiving a second message which is sent by opposite-end equipment and is based on VXLAN encapsulation, and executing VXLAN decapsulation on the second message by the hardware chip to obtain the second message after VXLAN decapsulation; and the number of the first and second groups,
searching whether a matched fast forwarding session table entry exists in the fast forwarding session table entry by taking the IP five-tuple information of the second message after the VXLAN is unpacked as a search index; if yes, acquiring a second physical interface of the fast forwarding session table entry matched with the second message after the VXLAN decapsulation;
and directly forwarding the second message after the VXLAN decapsulation execution to target equipment which is connected with the local end equipment and is positioned in a local private network by using a second physical interface of the matched fast forwarding session table entry as an output port.
2. The method of claim 1, wherein if there is no fast forwarding session entry in the fast forwarding session entry that matches the IP quintuple information of the second packet decapsulated in VXLAN, further comprising:
and sending the second message after the VXLAN is unpacked to a CPU of the local terminal equipment for slow forwarding.
3. The method of claim 1, wherein the member network device is a fast forwarding mechanism enabled and non-NAT enabled network device.
4. The message forwarding device is characterized in that the device is applied to member network equipment in a VXLAN system; the member network device can be configured as a local device or an opposite device, and the member network device comprises a hardware chip for adding and removing VXLAN; the device comprises:
the table item generating module is used for acquiring a first message packaged by VXLAN to be executed by local equipment and generating a fast forwarding session table item corresponding to the first message; wherein, the fast forwarding session table entry at least comprises a first physical interface of the local device of the message encapsulated by VXLAN, and a second physical interface of the local device of the message de-encapsulated by VXLAN corresponding to the first physical interface;
the first forwarding module is used for forwarding the first message subjected to VXLAN encapsulation to opposite-end equipment by taking the first physical interface as an output port;
the hardware chip executes VXLAN decapsulation on the second message to obtain the second message after the VXLAN decapsulation; and the number of the first and second groups,
searching whether a matched fast forwarding session table entry exists in the fast forwarding session table entry by taking the IP five-tuple information of the second message after the VXLAN is unpacked as a search index; if yes, acquiring a second physical interface of the fast forwarding session table entry matched with the second message after the VXLAN decapsulation;
and directly forwarding the second message after the VXLAN decapsulation execution to target equipment which is connected with the local end equipment and is positioned in a local private network by using a second physical interface of the matched fast forwarding session table entry as an output port.
5. The apparatus of claim 4, wherein if there is no fast forwarding session entry in the fast forwarding session entry that matches the IP five-tuple information of the second packet decapsulated with VXLAN, the second forwarding module further:
and sending the second message after the VXLAN is unpacked to a CPU of the local terminal equipment for slow forwarding.
6. The apparatus of claim 4, wherein the member network device is a fast forwarding mechanism enabled and non-NAT enabled network device.
7. An electronic device is characterized by comprising a communication interface, a processor, a memory and a bus, wherein the communication interface, the processor and the memory are connected with each other through the bus;
the memory has stored therein machine-readable instructions, the processor executing the method of any of claims 1 to 3 by calling the machine-readable instructions.
8. A machine-readable storage medium having stored thereon machine-readable instructions which, when invoked and executed by a processor, carry out the method of any of claims 1 to 3.
CN201911410342.XA 2019-12-31 2019-12-31 Message forwarding method and device, electronic equipment and machine-readable storage medium Active CN111010344B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911410342.XA CN111010344B (en) 2019-12-31 2019-12-31 Message forwarding method and device, electronic equipment and machine-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911410342.XA CN111010344B (en) 2019-12-31 2019-12-31 Message forwarding method and device, electronic equipment and machine-readable storage medium

Publications (2)

Publication Number Publication Date
CN111010344A CN111010344A (en) 2020-04-14
CN111010344B true CN111010344B (en) 2021-08-24

Family

ID=70120011

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911410342.XA Active CN111010344B (en) 2019-12-31 2019-12-31 Message forwarding method and device, electronic equipment and machine-readable storage medium

Country Status (1)

Country Link
CN (1) CN111010344B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112770344B (en) * 2021-01-26 2022-06-14 深圳震有科技股份有限公司 Method, system and terminal for controlling forwarding efficiency of 5G data forwarding plane

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104158718A (en) * 2014-08-25 2014-11-19 杭州华三通信技术有限公司 A message processing method and device
US9036639B2 (en) * 2012-11-29 2015-05-19 Futurewei Technologies, Inc. System and method for VXLAN inter-domain communications
CN105634942A (en) * 2014-10-31 2016-06-01 华为技术有限公司 Method and switch for forwarding message
US9374323B2 (en) * 2013-07-08 2016-06-21 Futurewei Technologies, Inc. Communication between endpoints in different VXLAN networks
CN105939352A (en) * 2016-06-03 2016-09-14 汉柏科技有限公司 User isolation method and device based on session
CN107181662A (en) * 2017-05-18 2017-09-19 迈普通信技术股份有限公司 A kind of method and system of VXLAN tunnel load balancings

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104410560A (en) * 2014-11-27 2015-03-11 盛科网络(苏州)有限公司 Method for realizing BUM packet forwarding through NVGRE unicast
US10257162B2 (en) * 2015-02-16 2019-04-09 Telefonaktiebolaget Lm Ericsson (Publ) Method and system for providing “anywhere access” for fixed broadband subscribers
US10374830B1 (en) * 2016-07-17 2019-08-06 Fatpipe, Inc. WAN-span LAN (WSL) networking technology
CN109391534B (en) * 2018-10-26 2021-05-07 新华三技术有限公司合肥分公司 Access mode updating method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9036639B2 (en) * 2012-11-29 2015-05-19 Futurewei Technologies, Inc. System and method for VXLAN inter-domain communications
US9374323B2 (en) * 2013-07-08 2016-06-21 Futurewei Technologies, Inc. Communication between endpoints in different VXLAN networks
CN104158718A (en) * 2014-08-25 2014-11-19 杭州华三通信技术有限公司 A message processing method and device
CN105634942A (en) * 2014-10-31 2016-06-01 华为技术有限公司 Method and switch for forwarding message
CN105939352A (en) * 2016-06-03 2016-09-14 汉柏科技有限公司 User isolation method and device based on session
CN107181662A (en) * 2017-05-18 2017-09-19 迈普通信技术股份有限公司 A kind of method and system of VXLAN tunnel load balancings

Also Published As

Publication number Publication date
CN111010344A (en) 2020-04-14

Similar Documents

Publication Publication Date Title
US10320664B2 (en) Cloud overlay for operations administration and management
US11671367B1 (en) Methods and apparatus for improving load balancing in overlay networks
US10116559B2 (en) Operations, administration and management (OAM) in overlay data center environments
KR102054338B1 (en) Routing vlan tagged packets to far end addresses of virtual forwarding instances using separate administrations
CN112019433B (en) Message forwarding method and device
CN108259303B (en) Message forwarding method and device
CN111092801B (en) Data transmission method and device
CN106878194B (en) Message processing method and device
WO2015113410A1 (en) Data packet processing method and apparatus
EP3292661B1 (en) Packet forwarding
US9565277B2 (en) Dual-homed external network access in a distributed internet protocol (IP) router
CN113207192A (en) Message forwarding method and device
JP2020529762A (en) Virtualized network capabilities through address space consolidation
EP3920512A1 (en) Transmission method and device for message
CN113726653B (en) Message processing method and device
CN111130978B (en) Network traffic forwarding method and device, electronic equipment and machine-readable storage medium
CN111010344B (en) Message forwarding method and device, electronic equipment and machine-readable storage medium
CN116418632A (en) Message processing method, device, equipment and machine-readable storage medium
CN108471374B (en) Data message forwarding method and device
CN109756409B (en) Bridge forwarding method
CN109218258B (en) Data packet transmission method and gateway equipment
US10171368B1 (en) Methods and apparatus for implementing multiple loopback links
CN107995084B (en) Tunnel selection method and device
CN110505138A (en) Message forwarding method, device, electronic equipment and machine readable storage medium
CN112565044A (en) Message processing method and device

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