[go: up one dir, main page]

CN117544449A - Method, device and storage medium for accelerating soft forwarding of VXLAN message - Google Patents

Method, device and storage medium for accelerating soft forwarding of VXLAN message Download PDF

Info

Publication number
CN117544449A
CN117544449A CN202311530188.6A CN202311530188A CN117544449A CN 117544449 A CN117544449 A CN 117544449A CN 202311530188 A CN202311530188 A CN 202311530188A CN 117544449 A CN117544449 A CN 117544449A
Authority
CN
China
Prior art keywords
vxlan
message
forwarding
identifier
editing
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
Application number
CN202311530188.6A
Other languages
Chinese (zh)
Inventor
戴伟达
郭晓董
朱晟昦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Centec Communications Co Ltd
Original Assignee
Suzhou Centec Communications 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 Suzhou Centec Communications Co Ltd filed Critical Suzhou Centec Communications Co Ltd
Priority to CN202311530188.6A priority Critical patent/CN117544449A/en
Publication of CN117544449A publication Critical patent/CN117544449A/en
Pending legal-status Critical Current

Links

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/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]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2212/00Encapsulation of packets

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 invention discloses a method, a device and a storage medium for accelerating the soft forwarding of VXLAN messages, wherein the method comprises the following steps: selecting a VXLAN message from an ASIC chip based on configuration information of a VXLAN tunnel, and adding a flow identifier, wherein the flow identifier is used for marking the VXLAN message terminated at the local; sending the VXLAN message carrying the flow identifier to a VXLAN processing module for decapsulation; and sending the decapsulated VXLAN message to an inner layer for processing and forwarding. Meanwhile, adding an editing identifier to the message to be packaged, wherein the editing identifier is used for marking the message to be packaged forwarded by a local machine and is carried by the message to be packaged; and based on the configuration information of the VXLAN tunnel, the message to be packaged carrying the editing identifier is packaged and forwarded in an ASIC chip. The method can effectively improve the efficiency of the soft forwarding of the VXLAN message.

Description

Method, device and storage medium for accelerating soft forwarding of VXLAN message
Technical Field
The present invention relates to the field of electronic communications, and in particular, to a method, an apparatus, and a storage medium for accelerating soft forwarding of VXLAN messages.
Background
VXLAN (Virtual eXtensible LocalAreaNetwork, virtual extended lan) adopts a MAC in UDP (User Datagram Protocol ) encapsulation, which is a network virtualization technology in NVO3 (NetworkVirtualization over Layer 3, cross-layer network virtualization). VXLAN is essentially a tunneling technique, in which a logical tunnel is established over an IP network between a source network device and a destination network device, and a user-side packet is forwarded through the tunnel after being specifically encapsulated.
For the problems of the large two-layer network, the VXLAN can encapsulate the data packet sent by the virtual machine in UDP, and uses the IP and MAC addresses of the physical network as outer layer headers to encapsulate, so that the network is represented as encapsulated parameters, and the requirement of the large two-layer network on the MAC address specification is reduced; VXLAN can introduce user identification VNI (VXLAN Network Identifier, VXLAN network identification) and support VXLAN segments up to 16M, so that a large number of user identifications are satisfied; the VXLAN can extend a two-layer network by adopting MAC in UDP encapsulation, and the Ethernet message is encapsulated on the IP message and transmitted in the network through a route without paying attention to the MAC address of the virtual machine, and the virtual machine migration is not limited by a network architecture through the route network, so that the VXLAN has large-scale expansion capability, fault self-healing capability and load balancing capability.
In a soft forwarding scene in the prior art, for decapsulation, a CPU analyzes a message layer by layer to decapsulate to obtain an original message, and the soft forwarding efficiency of the message is affected; for encapsulation, the speed of processing the message to be forwarded by the CPU layer by layer is slower, and the soft forwarding efficiency of the message is affected.
The information disclosed in this background section is only for enhancement of understanding of the general background of the invention and should not be taken as an acknowledgement or any form of suggestion that this information forms the prior art already known to a person of ordinary skill in the art.
Disclosure of Invention
The invention aims to provide a method, a device and a storage medium for accelerating the soft forwarding of a VXLAN message, which can improve the efficiency of the soft forwarding of the VXLAN message.
In order to achieve the above objective, an embodiment of the present invention provides a method for accelerating VXLAN message soft forwarding.
In a first aspect, the present invention provides a method for accelerating soft forwarding of VXLAN messages, including:
selecting a VXLAN message from an ASIC chip based on configuration information of a VXLAN tunnel, and adding a flow identifier, wherein the flow identifier is used for marking the VXLAN message terminated at the local;
sending the VXLAN message carrying the flow identifier to a VXLAN processing module for decapsulation; and
and sending the decapsulated VXLAN message to an inner layer for processing and forwarding.
In one or more embodiments, selecting the VXLAN message added flow identifier based on configuration information of the VXLAN tunnel specifically includes:
based on an ACL module in the ASIC chip, setting ACL rules according to configuration information of different VXLAN tunnels;
and selecting VXLAN messages corresponding to different VXLAN tunnels based on ACL rules and adding corresponding flow identifiers, wherein the information of the ACL rules comprises IPDA, IPSA and VNI information of the different VXLAN tunnels.
In one or more embodiments, the inner layer processing includes data link layer processing, network layer processing, and UDP processing.
In a second aspect, the present invention provides a method for accelerating soft forwarding of VXLAN messages, including:
adding an editing identifier to a message to be packaged, wherein the editing identifier is used for marking the message to be packaged forwarded by a local machine and is carried by the message to be packaged;
and based on the configuration information of the VXLAN tunnel, the message to be packaged carrying the editing identifier is packaged and forwarded in an ASIC chip.
In one or more embodiments, based on configuration information of the VXLAN tunnel, the encapsulating and forwarding, in the ASIC chip, the packet to be encapsulated carrying the edit identifier specifically includes:
setting an editing table according to configuration information of different VXLAN tunnels based on an editing module in the ASIC chip;
selecting messages to be encapsulated corresponding to different VXLAN tunnels and adding corresponding editing identifiers when VXLAN processing is performed; and
and based on the editing table, encapsulating the message to be encapsulated carrying the editing identifier in an ASIC chip, and forwarding the encapsulated message.
In one or more embodiments, the encapsulating, in the ASIC chip, the message to be encapsulated carrying the edit identifier specifically includes:
and adding a corresponding VXLAN header, a UDP header, a network layer header and a data link layer header to the message carrying the editing identifier based on the editing table, wherein the information of the editing table comprises IPDA, IPSA and VNI information of different VXLAN tunnels.
In a third aspect, the present invention provides an apparatus for accelerating soft forwarding of VXLAN messages, including:
the adding module is used for selecting the VXLAN message from the ASIC chip to add a flow identifier based on the configuration information of the VXLAN tunnel, wherein the flow identifier is used for marking the VXLAN message which is terminated at the local;
the decapsulation module is used for sending the VXLAN message carrying the flow identifier to the VXLAN processing module for decapsulation; and
and the forwarding module is used for sending the decapsulated VXLAN message to the inner layer for processing and forwarding.
In a fourth aspect, the present invention provides an apparatus for accelerating soft forwarding of VXLAN messages, including:
the adding module is used for adding an editing identifier to the message to be packaged, wherein the editing identifier is used for marking the message to be packaged forwarded by the local machine and is carried by the message to be packaged;
and the encapsulating module is used for encapsulating and forwarding the message to be encapsulated carrying the editing identifier in the ASIC chip based on the configuration information of the VXLAN tunnel.
In a fifth aspect, the present invention provides a computing device comprising:
at least one processor; and
and a memory storing instructions that, when executed by the at least one processor, cause the at least one processor to perform the method of accelerating soft forwarding of VXLAN messages.
In a sixth aspect, the present invention provides a computer readable storage medium, where a computer program is stored, where the computer program, when executed by a processor, implements the steps of the method for accelerating soft forwarding of VXLAN messages.
Compared with the prior art, the method for accelerating the soft forwarding of the VXLAN message can add the flow identifier for the identified terminal message through the ASIC chip, and send the message to the CPU for direct decapsulation, so that the speed of decapsulation of the VXLAN message is effectively improved; the CPU can add editing identification to the message, and send the message to the ASIC chip for encapsulation, so that the encapsulation speed of the VXLAN message is effectively improved.
Drawings
Fig. 1 is a VXLAN message format diagram;
fig. 2 is a flowchart of decapsulation of prior art VXLAN message soft forwarding;
fig. 3 is a flow chart of encapsulation of the prior art VXLAN message soft forwarding;
fig. 4 is a flowchart of a method for accelerating soft forwarding of VXLAN messages according to an embodiment of the present invention;
fig. 5 is a flowchart of a decapsulation structure of a method for accelerating soft forwarding of VXLAN messages according to an embodiment of the present invention;
fig. 6 is a flowchart of a method of accelerating soft forwarding of VXLAN messages according to an embodiment of the present invention;
fig. 7 is a flow diagram of a packaging structure of a method for accelerating soft forwarding of VXLAN messages according to an embodiment of the present invention;
fig. 8 is a diagram illustrating a decapsulation structure of an apparatus for accelerating soft forwarding of VXLAN messages according to an embodiment of the present invention;
fig. 9 is a block diagram of an apparatus for accelerating soft forwarding of VXLAN messages according to an embodiment of the present invention;
fig. 10 is a hardware configuration diagram of a computing device that accelerates VXLAN message soft forwarding according to an embodiment of the present invention.
Detailed Description
The following detailed description of embodiments of the invention is, therefore, to be taken in conjunction with the accompanying drawings, and it is to be understood that the scope of the invention is not limited to the specific embodiments.
Throughout the specification and claims, unless explicitly stated otherwise, the term "comprise" or variations thereof such as "comprises" or "comprising", etc. will be understood to include the stated element or component without excluding other elements or components.
The following describes in detail the technical solutions provided by the embodiments of the present invention with reference to the accompanying drawings.
Related art knowledge and related terms related to embodiments of the present application will be first described with reference to fig. 1 to 3.
Tunneling is a way to transfer data between networks using the infrastructure of the internetwork, an end-to-end protocol that repacks original data packets and sends them to the opposite end through a tunnel, where the data transferred using the tunnel may be data frames or packets of different protocols. The tunnel can repackage and send data frames or packets of other protocols through the tunnel, wherein the data frame header can provide routing information to communicate the encapsulated payload data over the internet.
As shown in fig. 1, the format of VXLAN messages is shown. The VXLAN message needs to add an encapsulation header to the original message, where the encapsulation header includes a VXLAN header, a UDP header, a three-layer header, and a two-layer header, that is, a VXLAN header, and a transport layer, a data link layer, and a network layer header. The UDP header comprises a destination UDP port number and source UDP port number information, the three-layer header comprises a destination IP address and source IP address information, and the two-layer header comprises a destination MAC address and source MAC address information.
The VXLAN gateway comprises a two-layer gateway and a three-layer gateway, wherein the two-layer gateway is used for solving the problem that tenants access the VXLAN virtual network and can also be used for subnet communication of the same VXLAN virtual network; the three-layer gateway is used for cross-subnet communication of the VXLAN virtual network and access of external networks.
In the prior art, a switch chip includes a software part and a hardware part, which may be a CPU part and an ASIC chip part in this embodiment, and in a soft forwarding scenario, a three-layer forwarding service is generally assumed by the CPU. For VXLAN messages received by a tunnel end point, the CPU strips the package of the outer layer of the message, and processes the original inner layer message; for the message needing to enter the tunnel, the CPU adds encapsulation for the message.
As shown in fig. 2, when the CPU receives the tunnel termination message, first, performing outer layer two-layer processing, and judging whether the message needs to go through three layers of messages according to whether the destination MAC address is the native MAC address; sending the message to an outer layer three-layer processing, and judging whether the message is to be terminated locally or not according to whether the target IP is the local IP address or not; then, the processed data is sent to an outer four-layer process, and the processed data is sent to a VXLAN process according to the characteristic of the DestPort to the VXLAN; and according to the characteristics of IPDA, IPSA, VNI and the like, the VXLAN processing judges and matches the local tunnel, then the package of the message is stripped, and the message is sent to the two-layer processing to carry out multi-layer processing on the original message.
As shown in fig. 3, when the CPU receives a message to be forwarded, which needs to enter a tunnel, the CPU first determines the outer layer two and the outer layer three, sends the message to VXLAN for processing, and according to the characteristics of IPDA, IPSA, VNI, and the like, the VXLAN processes the message to determine and match the local tunnel, and then adds a package to the message.
As can be seen, VLAN termination refers to that the device identifies a VLAN tag in a received packet, strips the VLAN tag in the packet according to a subsequent forwarding behavior, and forwards or otherwise processes the packet. The VLAN tag is validated only before termination and subsequent forwarding or other processing is no longer dependent on the VLAN tag. The message received by the interface is forwarded after the VLAN label is stripped; and adding the corresponding VLAN label to the message sent by the interface and forwarding the message.
Example 1
As shown in fig. 4 to 5, a method for accelerating soft forwarding of VXLAN messages in an embodiment of the present invention is described, the method including the following steps.
In step S401, based on the configuration information of the VXLAN tunnel, the VXLAN packet added flow identifier is selected from the ASIC chip.
In this embodiment, a matching rule of VXLAN packet is preset, and when VXLAN tunnel is configured, information such as IPDA, IPSA, VNI is specified.
As shown in fig. 5, an ACL module is added to the ASIC chip in the chip entry direction, and ACL (Access Control List ) rules are set according to configuration information of different VXLAN tunnels. The ACL module is used for matching the characteristic message and adding carrying information, and can pre-store the table items for recording the matching information of different VXLAN tunnels.
Based on ACL rules, selecting VXLAN messages corresponding to different VXLAN tunnels and adding corresponding flow identifiers, wherein the information of the ACL rules comprises IPDA, IPSA and VNI information of the different VXLAN tunnels, and the IPDA, the IPSA and the VNI are used as keys of the ACL rules. The VNI may identify the VXLAN message, so no destination UDP port is required to be specified, etc.
The VNI is a VXLAN network identifier, which is used to distinguish VXLAN segments, and virtual machines of different VXLAN segments cannot directly communicate with each other in two layers. One VNI represents one tenant, even if a plurality of end users belong to the same VNI. VNIs consist of 24 bits, supporting tenants up to 16M.
Specifically, when the ASIC chip identifies a VXLAN message matching the corresponding ACL rule, a corresponding Flow ID is added to the VXLAN message, and the message to which the Flow ID is added is sent to the CPU. Wherein the flow identifier is used to mark VXLAN messages that terminate locally.
In step S402, the VXLAN packet carrying the flow id is sent to the VXLAN processing module for decapsulation.
Specifically, the CPU sends a message carrying the flow identifier to the VXLAN for decapsulation processing. Because the ASIC chip matches the message in advance, the CPU can directly strip the VXLAN header, the UDP header, the three-layer header and the two-layer header of the message package, so that the time waste caused by the layer-by-layer analysis of the message package header by the CPU is avoided.
In step S403, the decapsulated VXLAN message is sent to the inner layer processing and forwarded.
Specifically, after the message carrying the flow identifier is unpacked in the VXLAN, an original message is obtained, the original message is sent to an inner layer for processing, and the processed message is transferred to an ASIC chip for forwarding. The inner layer processing includes data link layer processing, network layer processing and UDP processing.
Example 2
As shown in fig. 6 to 7, a method for accelerating soft forwarding of VXLAN messages in an embodiment of the present invention is described, the method including the following steps.
In step S601, when VXLAN processing is performed, an edit identifier is added to a message to be encapsulated, where the edit identifier is used to mark the message to be encapsulated forwarded by the host and is carried by the message to be encapsulated.
As shown in fig. 7, in the chip outgoing direction, based on the editing module in the ASIC chip, an editing table is set according to configuration information of different VXLAN tunnels, and the editing table is stored in the ASIC chip in advance. The editing module is mainly used for carrying out encapsulation editing on the message which needs to be forwarded by the local machine.
Specifically, when VXLAN processing is performed, corresponding editing identifiers are added to messages to be encapsulated corresponding to different VXLAN tunnels.
In step S602, based on the configuration information of the VXLAN tunnel, the message to be encapsulated carrying the edit identifier is encapsulated and forwarded in the ASIC chip.
Specifically, based on the corresponding information in the matched editing table, corresponding encapsulation operation is performed on the message to be encapsulated carrying the corresponding editing identifier in the ASIC chip, and the encapsulated message is forwarded. The information of the edit table comprises IPDA, IPDA and VNI information of different VXLAN tunnels.
Further, the encapsulating operation includes adding a corresponding VXLAN header, UDP header, network layer header, and data link layer header to the message carrying the edit identifier.
According to the method for accelerating the soft forwarding of the VXLAN message, disclosed by the embodiment of the invention, the flow identifier can be added for the identified terminal message through the ASIC chip, and the message is sent to the CPU to be directly unpacked, so that the unpacking speed of the VXLAN message is effectively improved; the CPU can add editing identification to the message, and send the message to the ASIC chip for encapsulation, so that the speed of the message encapsulation is effectively improved.
As shown in fig. 8, an apparatus for accelerating the soft forwarding of VXLAN messages according to an embodiment of the present invention is described.
In the embodiment of the invention, the device for accelerating the soft forwarding of the VXLAN message comprises an adding module 801, a decapsulating module 802 and a forwarding module 803.
And the adding module 801 is configured to select a VXLAN packet from the ASIC chip to add a flow identifier based on the configuration information of the VXLAN tunnel, where the flow identifier is used to mark the VXLAN packet terminated in the local.
And the decapsulation module 802 is configured to send the VXLAN packet carrying the flow identifier to the VXLAN processing module for decapsulation.
And the forwarding module 803 is configured to send the decapsulated VXLAN message to an inner layer for processing and forwarding.
The adding module 801 is further configured to: based on an ACL module in the ASIC chip, setting ACL rules according to configuration information of different VXLAN tunnels; and selecting VXLAN messages corresponding to different VXLAN tunnels based on ACL rules and adding corresponding flow identifiers, wherein the information of the ACL rules comprises IPDA, IPSA and VNI information of the different VXLAN tunnels.
The forwarding module 803 is further configured to: the inner layer processing includes data link layer processing, network layer processing, and UDP processing.
In another embodiment of the present invention, the device for accelerating the soft forwarding of VXLAN messages includes an adding module 901 and an encapsulating module 902.
The adding module 901 is configured to add an edit identifier to a message to be packaged, where the edit identifier is used to mark the message to be packaged forwarded by the local machine and is carried by the message to be packaged.
And an encapsulating module 902, configured to encapsulate and forward the message to be encapsulated carrying the edit identifier in an ASIC chip based on the configuration information of the VXLAN tunnel.
The encapsulation module 902 is also for: setting an editing table according to configuration information of different VXLAN tunnels based on an editing module in the ASIC chip; when VXLAN processing is carried out, selecting VXLAN messages to be encapsulated corresponding to different VXLAN tunnels, and adding corresponding editing identifiers; and based on the editing table, encapsulating the message to be encapsulated carrying the editing identifier in an ASIC chip, and forwarding the encapsulated message.
The encapsulation module 902 is also for: and adding a corresponding VXLAN header, a UDP header, a network layer header and a data link layer header to the message carrying the editing identifier based on the editing table, wherein the information of the editing table comprises IPDA, IPSA and VNI information of different VXLAN tunnels.
Fig. 10 shows a hardware block diagram of a computing device 100 for accelerating VXLAN message soft forwarding according to an embodiment of the present description. As shown in fig. 10, computing device 100 may include at least one processor 1001, memory 1002 (e.g., non-volatile memory), memory 1003, and communication interface 1004, and at least one processor 1001, memory 1002, memory 1003, and communication interface 1004 are connected together via bus 1005. The at least one processor 1001 executes at least one computer-readable instruction stored or encoded in the memory 1002.
It will be appreciated that the computer-executable instructions stored in the memory 1002, when executed, cause the at least one processor 1001 to perform the various operations and functions described above in connection with fig. 1-7 in various embodiments of the present specification.
In embodiments of the present description, computing device 100 may include, but is not limited to: personal computers, server computers, workstations, desktop computers, laptop computers, notebook computers, mobile computing devices, smart phones, tablet computers, cellular phones, personal Digital Assistants (PDAs), handsets, messaging devices, wearable computing devices, consumer electronic devices, and the like.
According to one embodiment, a program product, such as a machine-readable medium, is provided. The machine-readable medium may have instructions (i.e., elements described above implemented in software) that, when executed by a machine, cause the machine to perform the various operations and functions described above in connection with fig. 1-7 in various embodiments of the specification. In particular, a system or apparatus provided with a readable storage medium having stored thereon software program code implementing the functions of any of the above embodiments may be provided, and a computer or processor of the system or apparatus may be caused to read out and execute instructions stored in the readable storage medium.
According to the method for accelerating the soft forwarding of the VXLAN message, disclosed by the embodiment of the invention, the flow identifier can be added for the identified terminal message through the ASIC chip, and the message is sent to the CPU to be directly unpacked, so that the unpacking speed of the VXLAN message is effectively improved; the CPU can add editing identification to the message, and send the message to the ASIC chip for encapsulation, so that the encapsulation speed of the VXLAN message is effectively improved.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely ASIC chip embodiment, an entirely software embodiment, or an embodiment combining software and ASIC chip aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The foregoing descriptions of specific exemplary embodiments of the present invention are presented for purposes of illustration and description. It is not intended to limit the invention to the precise form disclosed, and obviously many modifications and variations are possible in light of the above teaching. The exemplary embodiments were chosen and described in order to explain the specific principles of the invention and its practical application to thereby enable one skilled in the art to make and utilize the invention in various exemplary embodiments and with various modifications as are suited to the particular use contemplated. It is intended that the scope of the invention be defined by the claims and their equivalents.

Claims (10)

1. A method for accelerating the soft forwarding of VXLAN messages, the method comprising:
selecting a VXLAN message from an ASIC chip based on configuration information of a VXLAN tunnel, and adding a flow identifier, wherein the flow identifier is used for marking the VXLAN message terminated at the local;
sending the VXLAN message carrying the flow identifier to a VXLAN processing module for decapsulation; and
and sending the decapsulated VXLAN message to an inner layer for processing and forwarding.
2. The method for accelerating the soft forwarding of VXLAN messages according to claim 1, wherein the selecting VXLAN messages to add the flow id based on the configuration information of the VXLAN tunnel specifically comprises:
based on an ACL module in the ASIC chip, setting ACL rules according to configuration information of different VXLAN tunnels;
and selecting VXLAN messages corresponding to different VXLAN tunnels based on ACL rules and adding corresponding flow identifiers, wherein the information of the ACL rules comprises IPDA, IPSA and VNI information of the different VXLAN tunnels.
3. The method of accelerating VXLAN message soft forwarding of claim 1, wherein the inner layer processing includes data link layer processing, network layer processing, and UDP processing.
4. A method for accelerating the soft forwarding of VXLAN messages, the method comprising:
adding an editing identifier to a message to be packaged, wherein the editing identifier is used for marking the message to be packaged forwarded by a local machine and is carried by the message to be packaged;
and based on the configuration information of the VXLAN tunnel, the message to be packaged carrying the editing identifier is packaged and forwarded in an ASIC chip.
5. The method for accelerating the soft forwarding of VXLAN messages according to claim 4, wherein the encapsulating and forwarding of the message to be encapsulated carrying the edit identifier in the ASIC chip is performed based on configuration information of VXLAN tunnels, specifically comprising:
setting an editing table according to configuration information of different VXLAN tunnels based on an editing module in the ASIC chip;
selecting messages to be encapsulated corresponding to different VXLAN tunnels and adding corresponding editing identifiers when VXLAN processing is performed; and
and based on the editing table, encapsulating the message to be encapsulated carrying the editing identifier in an ASIC chip, and forwarding the encapsulated message.
6. The method for accelerating the soft forwarding of VXLAN messages according to claim 5, wherein said encapsulating said message to be encapsulated carrying said edit identifier in an ASIC chip specifically includes:
and adding a corresponding VXLAN header, a UDP header, a network layer header and a data link layer header to the message carrying the editing identifier based on the editing table, wherein the information of the editing table comprises IPDA, IPSA and VNI information of different VXLAN tunnels.
7. An apparatus for accelerating soft forwarding of VXLAN messages, the apparatus comprising:
the adding module is used for selecting the VXLAN message from the ASIC chip to add a flow identifier based on the configuration information of the VXLAN tunnel, wherein the flow identifier is used for marking the VXLAN message which is terminated at the local;
the decapsulation module is used for sending the VXLAN message carrying the flow identifier to the VXLAN processing module for decapsulation; and
and the forwarding module is used for sending the decapsulated VXLAN message to the inner layer for processing and forwarding.
8. An apparatus for accelerating soft forwarding of VXLAN messages, the apparatus comprising:
the adding module is used for adding an editing identifier to the message to be packaged, wherein the editing identifier is used for marking the message to be packaged forwarded by the local machine and is carried by the message to be packaged;
and the encapsulating module is used for encapsulating and forwarding the message to be encapsulated carrying the editing identifier in the ASIC chip based on the configuration information of the VXLAN tunnel.
9. A computing device, comprising:
at least one processor; and
a memory storing instructions that, when executed by the at least one processor, cause the at least one processor to perform the method of accelerating VXLAN message soft forwarding of any of claims 1-6.
10. A computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, which when executed by a processor, implements the steps of the method of accelerating the soft forwarding of VXLAN messages according to any of claims 1 to 6.
CN202311530188.6A 2023-11-16 2023-11-16 Method, device and storage medium for accelerating soft forwarding of VXLAN message Pending CN117544449A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311530188.6A CN117544449A (en) 2023-11-16 2023-11-16 Method, device and storage medium for accelerating soft forwarding of VXLAN message

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311530188.6A CN117544449A (en) 2023-11-16 2023-11-16 Method, device and storage medium for accelerating soft forwarding of VXLAN message

Publications (1)

Publication Number Publication Date
CN117544449A true CN117544449A (en) 2024-02-09

Family

ID=89787655

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311530188.6A Pending CN117544449A (en) 2023-11-16 2023-11-16 Method, device and storage medium for accelerating soft forwarding of VXLAN message

Country Status (1)

Country Link
CN (1) CN117544449A (en)

Similar Documents

Publication Publication Date Title
CN103200069B (en) A kind of method and apparatus of Message processing
EP3782336B1 (en) Multi-vrf universal device internet protocol address for fabric edge devices
JP6032278B2 (en) LAN multiplexer
CN104145458B (en) A kind of method E-Packeted, device and data center network
CN105591982B (en) A kind of method and apparatus of message transmissions
CN104092595B (en) Message processing method and device in virtualization system based on 802.1BR
US20160099874A1 (en) Data packet routing method and device
CN113207192A (en) Message forwarding method and device
US20080181216A1 (en) Optimized mobile IPv6 encapsulation for wireless networks
CN106209638A (en) From VLAN to the message forwarding method of virtual expansible LAN and equipment
CN107948077B (en) Method and device for forwarding data message
CN103957161B (en) A kind of message forwarding method and its device
US10454882B2 (en) DHCP in layer-3 overlay with anycast address support and network address transparency
CN109120492B (en) Storage unit, source switch, message forwarding method and mirror image system
CN108390812B (en) Message forwarding method and device
CN115001900A (en) Message forwarding method, apparatus, device, and computer-readable storage medium
CN106209554B (en) Message forwarding method and device across virtual scalable local area network
CN118101555B (en) Message forwarding method and device, electronic equipment and computer readable storage medium
CN109218176B (en) Method and device for processing message
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
CN108156066B (en) Message forwarding method and device
CN108471374B (en) Data message forwarding method and device
CN117544449A (en) Method, device and storage medium for accelerating soft forwarding of VXLAN message
CN119728637A (en) Communication method, device, system, electronic device and storage medium

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