CN113872847A - Message forwarding method, device and medium based on VXLAN (virtual extensible local area network) - Google Patents

Message forwarding method, device and medium based on VXLAN (virtual extensible local area network) Download PDF

Info

Publication number
CN113872847A
CN113872847A CN202111369916.0A CN202111369916A CN113872847A CN 113872847 A CN113872847 A CN 113872847A CN 202111369916 A CN202111369916 A CN 202111369916A CN 113872847 A CN113872847 A CN 113872847A
Authority
CN
China
Prior art keywords
service message
vxlan
multicast
unicast
address
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111369916.0A
Other languages
Chinese (zh)
Other versions
CN113872847B (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.)
Inspur Cisco Networking Technology Co Ltd
Original Assignee
Inspur Cisco Networking Technology 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 Inspur Cisco Networking Technology Co Ltd filed Critical Inspur Cisco Networking Technology Co Ltd
Priority to CN202111369916.0A priority Critical patent/CN113872847B/en
Publication of CN113872847A publication Critical patent/CN113872847A/en
Application granted granted Critical
Publication of CN113872847B publication Critical patent/CN113872847B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • 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
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/16Multipoint routing
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Landscapes

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

Abstract

The application discloses a message forwarding method, equipment and medium based on a VXLAN (virtual extensible local area network), which are used for solving the technical problem that the same next hop address in the prior art cannot simultaneously bear known unicast and unknown unicast forwarding. The method comprises the following steps: acquiring a service message of an access side through a switch to configure the service message into a virtual extensible local area network (VXLAN); in a VXLAN network, inquiring a pre-configured FDB address table to judge whether the FDB address table comprises a destination MAC address of the service message; if the destination MAC address of the service message is determined to be included in the FDB address table, the service message is sent to a network side through a VXLAN tunnel corresponding to a pre-established unicast; and if the destination MAC address of the service message is determined not to be included in the FDB address table, flooding the service message to a port of a multicast group member through a VXLAN tunnel corresponding to the pre-established multicast. By the method, the unicast and the multicast can be respectively forwarded to the respective next hop path through the respective corresponding tunnel.

Description

Message forwarding method, device and medium based on VXLAN (virtual extensible local area network)
Technical Field
The present application relates to the field of network communication technologies, and in particular, to a method, a device, and a medium for forwarding a packet based on a VXLAN network.
Background
A Virtual Extensible Local Area Network (VXLAN) is a Network virtualization technology, which can improve the expansion problem of large cloud computing during deployment, is an expansion of a VLAN, and can penetrate through a three-layer Network to expand a two-layer Network. In a VXLAN network, a packet forwarding scenario from an access side to a network side requires support for both forwarding of known unicast and flooding of unknown unicast. Unicast refers to a transmission mode in which a destination address is a single destination in the transmission of a packet in a computer network, and multicast is also called multicast, multicast or multicast, and multicast refers to the transmission of information to a group of destination addresses at the same time.
In most chip systems, message forwarding of a VXLAN network needs to rely on a unicast next-hop address to forward a unicast message, so as to implement establishment of a known unicast forwarding path, or rely on a multicast next-hop address to flood an unknown unicast message, so as to implement establishment of an unknown unicast forwarding path. However, the same next hop address cannot simultaneously carry the limitations of both known unicast and unknown unicast forwarding.
Disclosure of Invention
The embodiment of the application provides a message forwarding method, equipment and medium based on a VXLAN (virtual extensible local area network), which are used for solving the technical problem that the same next hop address in the prior art cannot simultaneously bear known unicast and unknown unicast forwarding.
In one aspect, an embodiment of the present application provides a message forwarding method based on a VXLAN network, including: acquiring a service message of an access side through a switch to configure the service message into a virtual extensible local area network (VXLAN); in the VXLAN network, inquiring a pre-configured FDB address table to judge whether the FDB address table comprises a destination MAC address of the service message; if the FDB address table is determined to comprise the destination MAC address of the service message, the service message is sent to a network side through a VXLAN tunnel corresponding to a pre-established unicast; and if the FDB address table does not comprise the destination MAC address of the service message, flooding the service message to a multicast group member port through a pre-established VXLAN tunnel corresponding to multicast.
In an implementation manner of the present application, after acquiring a service packet at an access side through a switch to configure the service packet in a VXLAN network, the method further includes: creating a unicast next hop address of the service message according to the destination MAC address in the service message; creating a unicast virtual port corresponding to the service message to bind the unicast next hop address with the unicast virtual port; creating a unicast corresponding VXLAN tunnel to associate the unicast virtual port with the unicast corresponding VXLAN tunnel.
In an implementation manner of the present application, after acquiring a service packet at an access side through a switch to configure the service packet in a VXLAN network, the method further includes: determining MAC addresses corresponding to a plurality of ports by accessing the ports of a switch so as to create a multicast next hop address of the service message; creating a multicast virtual port corresponding to the service message to bind the multicast next hop address with the multicast virtual port; and creating a VXLAN tunnel corresponding to the multicast so as to associate the multicast virtual port with the VXLAN tunnel corresponding to the multicast.
In an implementation manner of the present application, sending the service packet to a network side through a VXLAN tunnel corresponding to a pre-created unicast specifically includes: acquiring a unicast next hop address of the service message to determine a pre-established unicast virtual port bound by the unicast next hop address; inquiring a VXLAN tunnel corresponding to a pre-established unicast through the unicast virtual port so as to package the service message through the VXLAN tunnel corresponding to the unicast; and determining an output interface corresponding to the service message according to the unicast next hop address, and sending the encapsulated service message to a network side through the output interface.
In an implementation manner of the present application, encapsulating the service packet through the VXLAN tunnel corresponding to the unicast specifically includes: when the service message enters the VXLAN tunnel corresponding to the unicast, obtaining a VXLAN tunnel endpoint list of a VXLAN broadcast domain through a control plane; and copying the service message according to the VXLAN tunnel endpoint list, and sending the copied service message to a plurality of VXLAN tunnel endpoints of the VXLAN broadcast domain to package the service message.
In an implementation manner of the present application, flooding the service packet to a multicast group member port through a VXLAN tunnel corresponding to a multicast created in advance specifically includes: acquiring a multicast next hop address of the service message to determine a multicast virtual port corresponding to the multicast next hop address; acquiring a VXLAN tunnel corresponding to multicast through a multicast virtual port corresponding to the multicast next-hop address, and encapsulating the service message through the VXLAN tunnel corresponding to the multicast; and flooding the encapsulated service message to a multicast group member port.
In an implementation manner of the present application, before flooding the encapsulated service packet to a multicast group member port, the method further includes: and acquiring a multicast group ID in a multicast table for encapsulating the service message according to the multicast next hop address of the service message, so as to determine a multicast group member port according to the multicast group ID.
In an implementation manner of the present application, when the service packet is encapsulated by the VXLAN tunnel corresponding to the multicast, a source IP address and a destination IP address of the service packet are not changed; and when the service message is forwarded in different VXLAN network segments, the source MAC address and the destination MAC address of the service message are changed every time the service message passes through one VXLAN network segment.
On the other hand, an embodiment of the present application further provides a message forwarding device based on a VXLAN network, where the device includes: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to: acquiring a service message of an access side through a switch to configure the service message into a virtual extensible local area network (VXLAN); in the VXLAN network, inquiring a pre-configured FDB address table to judge whether the FDB address table comprises a destination MAC address of the service message; if the FDB address table is determined to comprise the destination MAC address of the service message, the service message is sent to a network side through a VXLAN tunnel corresponding to a pre-established unicast; and if the FDB address table does not comprise the destination MAC address of the service message, flooding the service message to a multicast group member port through a pre-established VXLAN tunnel corresponding to multicast.
In another aspect, an embodiment of the present application further provides a non-volatile computer storage medium storing computer-executable instructions, where the computer-executable instructions are configured to: acquiring a service message of an access side through a switch to configure the service message into a virtual extensible local area network (VXLAN); in the VXLAN network, inquiring a pre-configured FDB address table to judge whether the FDB address table comprises a destination MAC address of the service message; if the FDB address table is determined to comprise the destination MAC address of the service message, the service message is sent to a network side through a VXLAN tunnel corresponding to a pre-established unicast; and if the FDB address table does not comprise the destination MAC address of the service message, flooding the service message to a multicast group member port through a pre-established VXLAN tunnel corresponding to multicast.
The embodiment of the application provides a message forwarding method, equipment and medium based on a VXLAN network, which at least have the following beneficial effects: the service message is configured in a VXLAN network in advance, and a destination MAC address comprising the service message in an FDB address table is determined in the VXLAN network, so that the service message is sent to a network side through a VXLAN tunnel corresponding to unicast, and the forwarding of the known unicast service message is realized; and when the destination MAC address of the service message is not included in the FDB address table, multicast flooding needs to be performed on the service message, and the service message is flooded to the multicast group member port through the VXLAN tunnel corresponding to multicast, so that flooding of the unknown unicast service message is realized. In addition, the establishment of the unicast path is realized by establishing and associating the unicast virtual port and the VXLAN tunnel corresponding to the unicast; the establishment of the multicast channel is realized by establishing and associating the multicast virtual port and the VXLAN tunnel corresponding to the multicast, so that the unicast and the multicast can be respectively forwarded to the respective next hop channel through the respective corresponding tunnel.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a flowchart of a message forwarding method based on a VXLAN network according to an embodiment of the present application;
fig. 2 is a flowchart of another message forwarding method based on a VXLAN network according to an embodiment of the present application;
fig. 3 is a schematic diagram of an internal structure of a message forwarding device based on a VXLAN network according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The embodiment of the application provides a message forwarding method, equipment and medium based on a VXLAN network, wherein the obtained service message at the access side is configured into the VXLAN network, an FDB address table is inquired in the VXLAN network, and whether the FDB address table comprises a destination MAC address of the service message is judged; when the FDB address table comprises a target MAC address, the service message is sent to a network side through a VXLAN tunnel corresponding to unicast, and forwarding of the known unicast service message is realized; when the FDB address table does not include the destination MAC address of the service packet, the service packet needs to be flooded to the multicast group member port through the VXLAN tunnel corresponding to the multicast, so as to implement flooding of the unknown unicast service packet. The method and the device solve the technical problem that the same next hop address in the prior art cannot simultaneously bear the known unicast and the unknown unicast forwarding.
The technical solutions proposed in the embodiments of the present application are described in detail below with reference to the accompanying drawings.
Fig. 1 is a flowchart of a message forwarding method based on a VXLAN network according to an embodiment of the present application. As shown in fig. 1, a message forwarding method based on a VXLAN network provided in an embodiment of the present application mainly includes the following steps:
step 101: and acquiring the service message of the access side through the switch to configure the service message into the VXLAN network.
The embodiment of the application realizes the forwarding of the service message through the VXLAN network. After the service message sent by the access side is acquired through the switch, the server configures the service message into the VXLAN network so as to perform subsequent operation in the VXLAN network according to the service message.
It should be noted that, in the embodiment of the present application, the switch can receive the service packets from the host and the server of the local network at the same time, or can receive the service packets from the host and the server separately.
In an embodiment of the present application, after a service packet at an access side is acquired through a switch to configure the service packet in a VXLAN network, a server can create a unicast next hop address of the service packet according to a destination MAC address in the service packet, and create a unicast virtual port corresponding to the service packet at a switch end, so as to bind the unicast next hop address of the service packet and the unicast virtual port corresponding to the service packet together, so that the server can directly find out the corresponding bound unicast virtual port according to the unicast next hop address of the service packet in the VXLAN network. The server creates a VXLAN tunnel corresponding to the unicast and associates the pre-created unicast virtual port with the VXLAN tunnel corresponding to the unicast, so that the server can determine the VXLAN tunnel corresponding to the unicast associated with the unicast virtual port according to the found unicast virtual port in the VXLAN network. In the embodiment of the application, the unicast next hop address, the unicast virtual port and the VXLAN tunnel corresponding to the unicast are associated by the above method, so that a forwarding path of the known unicast service message is established.
In an embodiment of the present application, after a service packet at an access side is obtained through a switch to configure the service packet in a VXLAN network, a server determines MAC addresses corresponding to a plurality of ports of the switch respectively by accessing the plurality of ports of the switch, so that the server creates a multicast next hop address of the service packet according to the MAC address corresponding to the port of the switch, creates a multicast virtual port corresponding to the service packet at an end of the switch, and enables the server to find the bound multicast virtual port according to the multicast next hop address in the VXLAN network by binding the multicast next hop address and the multicast virtual port together. And the server also creates a VXLAN tunnel corresponding to the multicast, and associates the pre-created multicast virtual port with the VXLAN tunnel corresponding to the multicast, so that the server can determine the VXLAN tunnel corresponding to the multicast associated with the multicast virtual port according to the found multicast virtual port. According to the method, the multicast next hop address, the multicast virtual port and the VXLAN tunnel corresponding to the multicast are bound and associated, and accordingly a flooding path of the unknown unicast service message is established.
Step 102: in the VXLAN network, a pre-configured FDB address table is inquired to judge whether the FDB address table comprises the destination MAC address of the service message.
In the VXLAN network, a switch inquires whether a pre-configured FDB address table comprises a destination MAC address of a service message, thereby determining whether the forwarding of the current service message is a unicast channel or a multicast channel.
It should be noted that the server may obtain destination MAC addresses of a plurality of service packets and ports of corresponding switches according to forwarding of historical service packets, so that an FDB address table may be established according to a correspondence between the ports of the switches and the MAC addresses, so that a subsequent server may directly send a service packet to a network side through a unicast path corresponding to the port for the service packet with a known correspondence between the port and the MAC address.
Step 103: and if the destination MAC address of the service message is determined to be included in the FDB address table, the service message is sent to the network side through a VXLAN tunnel corresponding to the pre-established unicast.
If the FDB address table includes the destination MAC address of the service packet, it indicates that the server has obtained the port of the switch corresponding to the destination MAC address of the service packet, that is, it indicates that the forwarding mode of the current service packet is unicast. In this case, the server can transmit the service packet of the known unicast to the network side through the VXLAN tunnel corresponding to the unicast created in advance.
Specifically, the server can find a unicast virtual port bound to the unicast next hop address by acquiring the unicast next hop address of the service packet, and then find a VXLAN tunnel corresponding to the associated unicast through the unicast virtual port, so as to determine a unicast forwarding path corresponding to the current service packet, and encapsulate the current service packet through the VXLAN tunnel corresponding to the unicast. Meanwhile, the server also determines corresponding output interface information according to the unicast next hop address, so that the encapsulated service message is sent to the network side through the output interface by the unicast virtual port and the VXLAN tunnel corresponding to the unicast, and the forwarding of the known unicast service message is realized.
In an embodiment of the present application, when a service packet enters a VXLAN tunnel corresponding to a unicast, a server can obtain a VXLAN tunnel endpoint list in a VXLAN broadcast domain through a control plane, and then the server can copy the service packet according to the VXLAN tunnel endpoint list and send the copied service packet to a plurality of VXLAN tunnel endpoints in the VXLAN broadcast domain, thereby implementing encapsulation of the service packet. And when the service message is sent to the network side, the server also decapsulates the service message through the VXLAN tunnel corresponding to the unicast. According to the embodiment of the application, the blocking generated during message forwarding can be avoided through encapsulation and decapsulation, so that the message forwarding efficiency is improved.
Step 104: and if the destination MAC address of the service message is determined not to be included in the FDB address table, flooding the service message to a port of a multicast group member through a VXLAN tunnel corresponding to the pre-established multicast.
If the FDB address table does not include the destination MAC address of the service packet, it indicates that the server cannot obtain the correspondence between the destination MAC address of the service packet and the port of the switch, and at this time, the forwarding manner of the service packet is flooding by unknown unicast. At this time, the server floods the service message of unknown unicast to the multicast group member port through the VXLAN tunnel corresponding to the multicast created in advance, so as to realize the flooding of the service message of unknown unicast.
Specifically, the server can find a multicast virtual port bound with a multicast next hop address by acquiring the multicast next hop address of the service message; finding a VXLAN tunnel corresponding to the multicast associated with the next hop address of the multicast through the multicast virtual port so as to determine a multicast flooding path corresponding to the service message; and packaging the current service message through a VXLAN tunnel corresponding to multicast, and then flooding the packaged service message to a multicast group member port, thereby realizing the flooding of unknown unicast service messages.
In an embodiment of the present application, before the server floods the encapsulated service packet to the multicast group member port, the server may obtain a multicast group ID from a multicast table encapsulating the service packet according to a multicast next hop address of the service packet, and then determine a corresponding multicast group member port according to the multicast group ID, so as to perform subsequent operation on the service packet according to the multicast group member port.
In an embodiment of the present application, when a server encapsulates a service packet through a VXLAN tunnel corresponding to multicast, a source IP address and a destination IP address of the service packet are fixed, where the source IP address is an IP address corresponding to a service packet sending end, and the destination IP address is an IP address corresponding to a final receiving end of the service packet, so that the source IP address and the destination IP address are not changed during a multicast flooding process of the service packet. However, when forwarding service messages in different VXLAN network segments, the source MAC address and the destination MAC address of a service message change every time the service message passes through one VXLAN network segment.
For example: the host 1 needs to send a service message to the host 2, and the service message needs to pass through the switch 1 and the switch 2 in the middle, so when the host 1 sends the service message to the switch 1, the source MAC address is the MAC address of the host 1, the destination MAC address is the MAC address of the switch 1, then when the switch 1 sends the service message to the switch 2, the source MAC address is the MAC address of the switch 1, the destination MAC address is the MAC address of the switch 2, and finally when the switch 2 sends the service message to the host 2, the source MAC address is the MAC address of the switch 2, and the destination MAC address is the MAC address of the host 1. Therefore, the change of the source MAC address and the destination MAC address of the service message can be intuitively seen.
It should be noted that the embodiment of the present application is only an assumed situation for convenience of understanding, and is not limited to the number of the sending end, the receiving end, and the passing VXLAN network segments when forwarding the service packet in different VXLAN network segments.
Fig. 2 is a flowchart of another VXLAN network-based message forwarding method according to an embodiment of the present application. As shown in fig. 2, the server queries the FDB address table through a service packet pre-configured to the access side AC in the VXLAN network, and determines whether the FDB address table includes an MAC address of the service packet, that is, whether the service packet hits the FDB address table. If yes, the FDB address table is indicated to comprise the MAC address of the service message, namely the service message is determined to be forwarded by a known unicast, at the moment, the server inquires a unicast next hop address NEXTHOP to determine a unicast Virtual Port (VP) which is correspondingly bound by the unicast NEXTHOP, and then inquires a VXLAN tunnel which corresponds to the associated unicast through the unicast VP, so that the service message is encapsulated through the VXLAN tunnel which corresponds to the unicast, and the server also determines an outgoing interface which corresponds to the service message through the unicast NEXTHOP to send the encapsulated service message to a network side through the outgoing interface, thereby completing forwarding of the unicast service message. If not, the FDB address table does not include the MAC address of the service message, that is, the service message is determined to be flooding of unknown unicast, at this time, the server queries a multicast next hop address NEXTHOP to determine a multicast Virtual Port (VP) to which the multicast NEXTHOP is correspondingly bound, and then queries a VXLAN tunnel corresponding to the associated multicast through the multicast VP, thereby encapsulating the service message through the VXLAN tunnel corresponding to the multicast. And the server also queries the multicast group ID through the multicast NEXTHOP to determine the multicast group member port corresponding to the multicast group ID, so that the encapsulated service message is flooded to the multicast group member port to realize the flooding of the service message.
It should be noted that the method shown in fig. 2 is substantially the same as the method shown in fig. 1, and therefore, portions that are not described in detail in fig. 2 may specifically refer to the related description in fig. 1, and are not described herein again.
The above is the method embodiment proposed by the present application. Based on the same inventive concept, the embodiment of the present application further provides a message forwarding device based on a VXLAN network, and the structure of the message forwarding device is shown in fig. 3.
Fig. 3 is a schematic diagram of an internal structure of a message forwarding device based on a VXLAN network according to an embodiment of the present application. As shown in fig. 3, the apparatus includes at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to cause the at least one processor to: acquiring a service message of an access side through a switch to configure the service message into a virtual extensible local area network (VXLAN); in a VXLAN network, inquiring a pre-configured FDB address table to judge whether the FDB address table comprises a destination MAC address of a service message; if the destination MAC address of the service message is determined to be included in the FDB address table, the service message is sent to a network side through a VXLAN tunnel corresponding to a pre-established unicast; and if the destination MAC address of the service message is determined not to be included in the FDB address table, flooding the service message to a port of a multicast group member through a VXLAN tunnel corresponding to the pre-established multicast.
An embodiment of the present application further provides a non-volatile computer storage medium, in which computer-executable instructions are stored, and the computer-executable instructions are configured to: acquiring a service message of an access side through a switch to configure the service message into a virtual extensible local area network (VXLAN); in a VXLAN network, inquiring a pre-configured FDB address table to judge whether the FDB address table comprises a destination MAC address of a service message; if the destination MAC address of the service message is determined to be included in the FDB address table, the service message is sent to a network side through a VXLAN tunnel corresponding to a pre-established unicast; and if the destination MAC address of the service message is determined not to be included in the FDB address table, flooding the service message to a port of a multicast group member through a VXLAN tunnel corresponding to the pre-established multicast.
The embodiments in the present application are described in a progressive manner, and the same and similar parts among the embodiments can be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the device and media embodiments, the description is relatively simple as it is substantially similar to the method embodiments, and reference may be made to some descriptions of the method embodiments for relevant points.
The device and the medium provided by the embodiment of the application correspond to the method one to one, so the device and the medium also have the similar beneficial technical effects as the corresponding method, and the beneficial technical effects of the method are explained in detail above, so the beneficial technical effects of the device and the medium are not repeated herein.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application 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 application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams 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.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A message forwarding method based on VXLAN network is characterized in that the method comprises the following steps:
acquiring a service message of an access side through a switch to configure the service message into a virtual extensible local area network (VXLAN);
in the VXLAN network, inquiring a pre-configured FDB address table to judge whether the FDB address table comprises a destination MAC address of the service message;
if the FDB address table is determined to comprise the destination MAC address of the service message, the service message is sent to a network side through a VXLAN tunnel corresponding to a pre-established unicast;
and if the FDB address table does not comprise the destination MAC address of the service message, flooding the service message to a multicast group member port through a pre-established VXLAN tunnel corresponding to multicast.
2. The VXLAN network-based message forwarding method according to claim 1, wherein after acquiring the service message on the access side through a switch to configure the service message into a virtual extensible local area network VXLAN network, the method further comprises:
creating a unicast next hop address of the service message according to the destination MAC address in the service message;
creating a unicast virtual port corresponding to the service message to bind the unicast next hop address with the unicast virtual port;
creating a unicast corresponding VXLAN tunnel to associate the unicast virtual port with the unicast corresponding VXLAN tunnel.
3. The VXLAN network-based message forwarding method according to claim 1, wherein after acquiring the service message on the access side through a switch to configure the service message into a virtual extensible local area network VXLAN network, the method further comprises:
determining MAC addresses corresponding to a plurality of ports by accessing the ports of a switch so as to create a multicast next hop address of the service message;
creating a multicast virtual port corresponding to the service message to bind the multicast next hop address with the multicast virtual port;
and creating a VXLAN tunnel corresponding to the multicast so as to associate the multicast virtual port with the VXLAN tunnel corresponding to the multicast.
4. The method according to claim 1, wherein the sending the service packet to the network side through a pre-created VXLAN tunnel corresponding to a unicast includes:
acquiring a unicast next hop address of the service message to determine a pre-established unicast virtual port bound by the unicast next hop address;
inquiring a VXLAN tunnel corresponding to a pre-established unicast through the unicast virtual port so as to package the service message through the VXLAN tunnel corresponding to the unicast;
and determining an output interface corresponding to the service message according to the unicast next hop address, and sending the encapsulated service message to a network side through the output interface.
5. The method according to claim 4, wherein encapsulating the service packet via the VXLAN tunnel corresponding to the unicast comprises:
when the service message enters the VXLAN tunnel corresponding to the unicast, obtaining a VXLAN tunnel endpoint list of a VXLAN broadcast domain through a control plane;
and copying the service message according to the VXLAN tunnel endpoint list, and sending the copied service message to a plurality of VXLAN tunnel endpoints of the VXLAN broadcast domain to package the service message.
6. The method according to claim 1, wherein the service packet is flooded to the multicast group member ports through a VXLAN tunnel corresponding to a pre-created multicast, specifically comprising:
acquiring a multicast next hop address of the service message to determine a multicast virtual port corresponding to the multicast next hop address;
acquiring a VXLAN tunnel corresponding to multicast through a multicast virtual port corresponding to the multicast next-hop address, and encapsulating the service message through the VXLAN tunnel corresponding to the multicast;
and flooding the encapsulated service message to a multicast group member port.
7. The method of claim 6, wherein before flooding the encapsulated service packet to the multicast group member port, the method further comprises:
and acquiring a multicast group ID in a multicast table for encapsulating the service message according to the multicast next hop address of the service message, so as to determine a multicast group member port according to the multicast group ID.
8. The message forwarding method based on a VXLAN network according to claim 1, wherein when the service message is encapsulated by the VXLAN tunnel corresponding to the multicast, a source IP address and a destination IP address of the service message are not changed;
and when the service message is forwarded in different VXLAN network segments, the source MAC address and the destination MAC address of the service message are changed every time the service message passes through one VXLAN network segment.
9. A message forwarding device based on a VXLAN network, the device comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
acquiring a service message of an access side through a switch to configure the service message into a virtual extensible local area network (VXLAN);
in the VXLAN network, inquiring a pre-configured FDB address table to judge whether the FDB address table comprises a destination MAC address of the service message;
if the FDB address table is determined to comprise the destination MAC address of the service message, the service message is sent to a network side through a VXLAN tunnel corresponding to a pre-established unicast;
and if the FDB address table does not comprise the destination MAC address of the service message, flooding the service message to a multicast group member port through a pre-established VXLAN tunnel corresponding to multicast.
10. A non-transitory computer storage medium storing computer-executable instructions, the computer-executable instructions configured to:
acquiring a service message of an access side through a switch to configure the service message into a virtual extensible local area network (VXLAN);
in the VXLAN network, inquiring a pre-configured FDB address table to judge whether the FDB address table comprises a destination MAC address of the service message;
if the FDB address table is determined to comprise the destination MAC address of the service message, the service message is sent to a network side through a VXLAN tunnel corresponding to a pre-established unicast;
and if the FDB address table does not comprise the destination MAC address of the service message, flooding the service message to a multicast group member port through a pre-established VXLAN tunnel corresponding to multicast.
CN202111369916.0A 2021-11-18 2021-11-18 Message forwarding method, device and medium based on VXLAN network Active CN113872847B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111369916.0A CN113872847B (en) 2021-11-18 2021-11-18 Message forwarding method, device and medium based on VXLAN network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111369916.0A CN113872847B (en) 2021-11-18 2021-11-18 Message forwarding method, device and medium based on VXLAN network

Publications (2)

Publication Number Publication Date
CN113872847A true CN113872847A (en) 2021-12-31
CN113872847B CN113872847B (en) 2023-05-30

Family

ID=78984969

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111369916.0A Active CN113872847B (en) 2021-11-18 2021-11-18 Message forwarding method, device and medium based on VXLAN network

Country Status (1)

Country Link
CN (1) CN113872847B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114697300A (en) * 2022-04-15 2022-07-01 武汉中元通信股份有限公司 Data multicast implementation method of high-timeliness communication system
CN115086106A (en) * 2022-06-22 2022-09-20 杭州云合智网技术有限公司 HASH scheme with multicast output port as tunnel known by VXLAN
CN115118546A (en) * 2022-06-15 2022-09-27 浪潮思科网络科技有限公司 Method, device, system and medium for implementing private virtual local area network
CN115242733A (en) * 2022-06-24 2022-10-25 北京百度网讯科技有限公司 Message multicast method, multicast gateway, electronic device and storage medium
CN115277640A (en) * 2022-07-29 2022-11-01 迈普通信技术股份有限公司 Data processing method and device, intelligent network card and storage medium
CN116016034A (en) * 2023-02-14 2023-04-25 北京天弛网络有限公司 SDN-based service path scheduling method and device
CN114697300B (en) * 2022-04-15 2024-06-04 武汉中元通信股份有限公司 Data multicast realization method of high-timeliness communication system

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2435006A1 (en) * 2002-07-12 2004-01-12 Nec Corporation Frame transfer method and node in network, and frame transfer program
WO2009021458A1 (en) * 2007-08-14 2009-02-19 Huawei Technologies Co., Ltd. Method, apparatus and system for connecting layer2 network and layer3 network
CN105227465A (en) * 2014-06-23 2016-01-06 杭州迪普科技有限公司 A kind of CPU Proxy Method and the network equipment
WO2016124105A1 (en) * 2015-02-06 2016-08-11 中兴通讯股份有限公司 Media access control address learning method, device and system
WO2017054576A1 (en) * 2015-09-30 2017-04-06 中兴通讯股份有限公司 Unicast tunnel building method, apparatus and system
CN106878181A (en) * 2016-12-29 2017-06-20 新华三技术有限公司 A kind of message transmitting method and device
WO2020108531A1 (en) * 2018-11-27 2020-06-04 新华三技术有限公司 Packet forwarding
WO2021135397A1 (en) * 2019-12-31 2021-07-08 华为技术有限公司 Message transfer method and related device
WO2021218026A1 (en) * 2020-04-30 2021-11-04 平安科技(深圳)有限公司 Sdn controller-based multicast method and system in host overlay network, device, and medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2435006A1 (en) * 2002-07-12 2004-01-12 Nec Corporation Frame transfer method and node in network, and frame transfer program
WO2009021458A1 (en) * 2007-08-14 2009-02-19 Huawei Technologies Co., Ltd. Method, apparatus and system for connecting layer2 network and layer3 network
CN105227465A (en) * 2014-06-23 2016-01-06 杭州迪普科技有限公司 A kind of CPU Proxy Method and the network equipment
WO2016124105A1 (en) * 2015-02-06 2016-08-11 中兴通讯股份有限公司 Media access control address learning method, device and system
WO2017054576A1 (en) * 2015-09-30 2017-04-06 中兴通讯股份有限公司 Unicast tunnel building method, apparatus and system
CN106878181A (en) * 2016-12-29 2017-06-20 新华三技术有限公司 A kind of message transmitting method and device
WO2020108531A1 (en) * 2018-11-27 2020-06-04 新华三技术有限公司 Packet forwarding
WO2021135397A1 (en) * 2019-12-31 2021-07-08 华为技术有限公司 Message transfer method and related device
WO2021218026A1 (en) * 2020-04-30 2021-11-04 平安科技(深圳)有限公司 Sdn controller-based multicast method and system in host overlay network, device, and medium

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114697300A (en) * 2022-04-15 2022-07-01 武汉中元通信股份有限公司 Data multicast implementation method of high-timeliness communication system
CN114697300B (en) * 2022-04-15 2024-06-04 武汉中元通信股份有限公司 Data multicast realization method of high-timeliness communication system
CN115118546A (en) * 2022-06-15 2022-09-27 浪潮思科网络科技有限公司 Method, device, system and medium for implementing private virtual local area network
CN115086106A (en) * 2022-06-22 2022-09-20 杭州云合智网技术有限公司 HASH scheme with multicast output port as tunnel known by VXLAN
CN115086106B (en) * 2022-06-22 2023-12-19 杭州云合智网技术有限公司 HASH method with VXLAN known group broadcasting port as tunnel
CN115242733A (en) * 2022-06-24 2022-10-25 北京百度网讯科技有限公司 Message multicast method, multicast gateway, electronic device and storage medium
CN115242733B (en) * 2022-06-24 2023-10-20 北京百度网讯科技有限公司 Message multicast method, multicast gateway, electronic device and storage medium
CN115277640A (en) * 2022-07-29 2022-11-01 迈普通信技术股份有限公司 Data processing method and device, intelligent network card and storage medium
CN115277640B (en) * 2022-07-29 2023-11-24 迈普通信技术股份有限公司 Data processing method, device, intelligent network card and storage medium
CN116016034A (en) * 2023-02-14 2023-04-25 北京天弛网络有限公司 SDN-based service path scheduling method and device
CN116016034B (en) * 2023-02-14 2023-06-20 北京天弛网络有限公司 SDN-based service path scheduling method and device

Also Published As

Publication number Publication date
CN113872847B (en) 2023-05-30

Similar Documents

Publication Publication Date Title
CN113872847B (en) Message forwarding method, device and medium based on VXLAN network
CN107566441B (en) Method and system for fast routing transmission between virtual machine and cloud service computing device
CN107645444B (en) System, device and method for fast routing transmission between virtual machines and cloud service computing devices
CN108600074B (en) Method and device for forwarding multicast data message
CN109361608B (en) Message processing method, system and storage medium
CN105591916B (en) A kind of message transmitting method and device
CN107659484B (en) Method, device and system for accessing VXLAN network from VLAN network
CN108718278B (en) Message transmission method and device
WO2017215390A1 (en) Method and device for selecting data forwarding port of longitudinal stack system
CN111083034B (en) Method, equipment and medium for managing VXLAN tunnel under EVPN
EP3038297B1 (en) Method, system, and device for packet processing
CN113364660B (en) Data packet processing method and device in LVS load balancing
EP4207685A1 (en) Message header processing method and apparatus, storage medium and electronic device
CN107968749B (en) Method for realizing QinQ route termination, switching chip and switch
WO2021174943A1 (en) Data forwarding method and apparatus, and device and storage medium
CN107645433A (en) Message forwarding method and device
CN113301667A (en) Message forwarding method and device
CN107733765B (en) Mapping method, system and related equipment
CN104780201A (en) Data packet processing method and device for use in IPVS (Internet Protocol Virtual Server) cluster
CN112511401B (en) Network connection method, device, equipment and medium
US11489768B2 (en) Method for creating inter-domain bidirectional tunnel, communication method and device, and storage medium
CN112448876B (en) Method and device for realizing message transmission
CN116418632A (en) Message processing method, device, equipment and machine-readable storage medium
CN114629844A (en) Message forwarding method and device and electronic equipment
CN112737946B (en) Route advertising method, device, storage medium and system for IPv6 network

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