CN116155837A - Message forwarding method of virtual switch - Google Patents

Message forwarding method of virtual switch Download PDF

Info

Publication number
CN116155837A
CN116155837A CN202211434754.9A CN202211434754A CN116155837A CN 116155837 A CN116155837 A CN 116155837A CN 202211434754 A CN202211434754 A CN 202211434754A CN 116155837 A CN116155837 A CN 116155837A
Authority
CN
China
Prior art keywords
message
address
virtual switch
interface
forwarding
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
CN202211434754.9A
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.)
Tianyi Cloud Technology Co Ltd
Original Assignee
Tianyi Cloud 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 Tianyi Cloud Technology Co Ltd filed Critical Tianyi Cloud Technology Co Ltd
Priority to CN202211434754.9A priority Critical patent/CN116155837A/en
Publication of CN116155837A publication Critical patent/CN116155837A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/25Routing or path finding in a switch fabric
    • H04L49/252Store and forward routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/15Interconnection of switching modules

Abstract

The application relates to a message forwarding method of a virtual switch, which comprises the following steps: after obtaining a message needing to be forwarded in three layers in a basic network, sending the message to the forward type interface; searching a corresponding virtual switch interface according to a local_ip parameter preconfigured by a forward type interface, and sending a message to the virtual switch interface through an action forward; the virtual switch interface converts the source IP address of the message into the IP address of the virtual switch interface; when the message is matched with the flow table action of the L3Normal, extracting a destination IP address of the message, determining a next hop address of the message and an outgoing interface according to the destination IP address, and forwarding the message from the outgoing interface; and after the virtual switch receives the response message from the basic network, the virtual switch sends the response message according to the DNAT operation result. The method and the device realize the three-layer forwarding function of the non-tunnel encapsulation message.

Description

Message forwarding method of virtual switch
Technical Field
The present disclosure relates to the field of message forwarding technologies, and in particular, to a message forwarding method of a virtual switch.
Background
The abbreviation of Open vSwitch is OVS, chinese means virtual switch with Open source, and is widely used in the context of cloud computing. Meanwhile, in order to improve the forwarding performance, a DPDK acceleration scheme is introduced, so that data can be directly forwarded in a user mode, and the forwarding performance of the OVS is greatly improved.
The current forwarding behavior of OVSs includes three-layer forwarding and two-layer forwarding. For the message packaged by the tunnel, the OVS adopts a three-layer forwarding mode to search the next hop and actively learn the destination MAC. For non-tunnel packed messages, the OVS adopts a two-layer forwarding mode, and a corresponding outgoing interface is found according to a two-layer MAC address table to forward the message.
The biggest defect in processing non-tunnel encapsulation messages by a two-layer forwarding mode is that when a virtual switch needs to access a certain basic network address and the messages cannot be tunnel encapsulated, an OVS cannot automatically fill in a destination MAC address in the messages, and the destination MAC needs to be preconfigured by a flow table setting mode. When the destination MAC changes, the destination MAC addresses preset on all the computing nodes need to be modified. When there are a large number of computing nodes in the resource pool, the complexity of the pre-configuration can be greatly increased and maintainability reduced.
Disclosure of Invention
Based on the above problems, the present application provides a method for forwarding a message of a virtual switch.
A message forwarding method of a virtual switch is applied to the virtual switch and comprises the following steps: in a system with forward type interfaces and Openflow flow table actions of L3Normal, the method comprises the following steps:
after obtaining a message needing to be forwarded in three layers in the basic network, sending the message to a forward type interface;
searching a corresponding virtual switch interface according to a local_ip parameter preconfigured by a forward type interface, and sending a message to the virtual switch interface through an action forward;
after the virtual switch interface receives the message, converting the source IP address of the message into the IP address of the virtual switch interface;
when the message is matched with the flow table action of the L3Normal, extracting a destination IP address of the message, determining a next hop address of the message and an output interface according to the destination IP address, and forwarding the message from the output interface;
and after the virtual switch receives the response message from the base network, DNAT operation is carried out, and the response message is sent according to DNAT operation results.
Specifically, in the message forwarding method of the virtual switch provided by the embodiment of the application, a new interface type, namely a forward type interface, is added to the virtual switch, an attribute parameter local_ip is configured for the forward type interface, and an Openflow flow table action L3Normal is newly added; the value of the parameter local_ip is an ipv4 address or an ipv6 address on a certain virtual switch interface, and in the present application, the forward type interface is used to forward a message to a corresponding virtual switch interface, and receive a message from the virtual switch interface, and when the message matches a Normal flow table action L3, it indicates that the message needs to be forwarded in three layers.
Further, in the above method for forwarding a packet of a virtual switch, the packet is a non-tunnel encapsulation packet.
Specifically, in the method for forwarding the message of the virtual switch provided by the embodiment of the application, the message is a non-tunnel encapsulated message.
Further, in the above method for forwarding a message of a virtual switch, the message is sent to the forward type interface according to a pre-configured flow table action.
Specifically, in the method for forwarding the message of the virtual switch provided in the embodiment of the present application, after obtaining the message that needs to be forwarded in three layers on the base network, the message is sent to the forward type interface according to the pre-configured flow table action.
Further, in the above method for forwarding a message of a virtual switch, converting a source IP address of the message into an IP address of an interface of the virtual switch includes:
converting the message source address into a basic network address configured on the virtual switch interface through the snat; and converting the source MAC address of the message into the MAC address of the virtual switch interface.
Specifically, in the message forwarding method of the virtual switch provided by the embodiment of the application, a source address of a message is converted into a basic network address configured on an interface of the virtual switch through source address conversion snat; and converting the source MAC address of the message into the MAC address of the virtual switch interface.
Further, in the above method for forwarding a message of a virtual switch, determining a next hop address and an outgoing interface of the message according to a destination IP address includes:
if the virtual switch finds the next hop address according to the local route;
acquiring the MAC address of the next hop address according to the neighbor table entry, and replacing the MAC address of the next hop address with the destination MAC address of the message;
and determining the interface according to the corresponding information of the interface and the MAC address recorded in the two-layer MAC address table.
Further, the method for forwarding the message of the virtual switch further comprises the following steps:
if the virtual switch finds the next hop address according to the local route;
according to the neighbor list item, not obtaining the MAC address of the next hop address, sending an ARP request message or an NS message, obtaining the MAC address of the next hop, and replacing the MAC address of the next hop address with the destination MAC address of the message;
and determining the interface according to the corresponding information of the interface and the MAC address recorded in the two-layer MAC address table.
Further, the method for forwarding the message of the virtual switch further comprises the following steps:
if the virtual switch does not find the next hop address according to the local route;
the message is discarded.
Specifically, in the method for forwarding a message of a virtual switch provided in the embodiment of the present application, a next hop address and an outgoing interface of the message are determined according to a destination IP address, which includes the following three cases:
first case: if the virtual switch finds the next-hop address according to the local route, acquiring the MAC address of the next-hop address according to the neighbor table entry, and replacing the MAC address of the next-hop address with the destination MAC address of the message; and determining the interface according to the corresponding information of the interface and the MAC address recorded in the two-layer MAC address table.
Second case: if the virtual switch finds the next hop address according to the local route; according to the neighbor list item, not obtaining the MAC address of the next hop address, sending an ARP request message or an NS message, obtaining the MAC address of the next hop, and replacing the MAC address of the next hop address with the destination MAC address of the message; and determining the interface according to the corresponding information of the interface and the MAC address recorded in the two-layer MAC address table.
Third case: and if the virtual switch does not find the next hop address according to the local route, discarding the message.
Further, in the above method for forwarding a message of a virtual switch, DNAT operation is performed, and the sending of the response message according to the DNAT operation result includes:
obtaining a destination address of the response message after DNAT operation;
judging whether the destination address of the response message is the address of the first interface of the virtual switch;
if the destination address of the response message is the address of the first interface of the virtual switch, sending the response message to the first interface;
wherein the address of the first interface of the virtual switch is the address of one of the interfaces of the virtual switch.
Further, the method for forwarding the message of the virtual switch further comprises the following steps:
judging whether the destination address of the response message is the address of the first interface of the virtual switch;
if the destination address of the response message is not the address of the first interface of the virtual switch;
re-determining the second interface and sending the response message to the second interface;
and after the second interface receives the response message, the virtual switch sends the response message to the target virtual switch according to the pre-configured flow table action.
Specifically, in the message forwarding method of the virtual switch provided by the embodiment of the application, a destination address of a response message is obtained after DNAT operation is performed on the response message, whether the destination address of the response message is an address of one of interfaces of the virtual switch is judged, and if the judgment result is that the destination address of the response message is the address of one of the interfaces of the virtual switch, the response message is sent to the corresponding interface; if the judgment result is that the destination address of the response message is not the address of one interface of the virtual switch, the second interface is redetermined, the response message is sent to the second interface, and after the second interface receives the response message, the virtual switch sends the response message to the destination virtual switch according to the pre-configured flow table action, so that three-layer forwarding of the non-tunnel encapsulated message is realized.
Further, in the above method for forwarding a message of a virtual switch, the determining the second interface again, and sending the response message to the second interface includes:
searching a second interface according to the destination address of the response message and a local_ip parameter preconfigured by the forward type interface;
and after DNAT conversion is carried out on the response message, the response message is sent to the second interface through the action forward.
Specifically, in the message forwarding method of the virtual switch provided in the embodiment of the present application, if the determination result is that the destination address of the response message is not the address of one of the interfaces of the virtual switch, the second interface is redetermined, and the response message is sent to the second interface.
The embodiment of the application has the advantages that: according to the method and the device, a new interface type, namely a forward type interface, is added to the virtual switch, an attribute parameter local_ip is configured for the forward type interface, an Openflow flow table action L3Normal is newly added, the three-layer forwarding function of the non-tunnel encapsulation message is realized, the forwarding behavior of the virtual switch is enriched, meanwhile, the complexity of deployment is reduced, a destination MAC address is not required to be statically set through a flow table, meanwhile, the number of flow tables on a computing node is reduced, the robustness and maintainability of a system are improved, the virtual switch can learn the MAC address of an opposite end when forwarding the non-tunnel encapsulation message, and the problems that flow is not enabled after the MAC address of the opposite end changes and the flow table of the computing node is required to be reconfigured are avoided.
Drawings
In order to more clearly illustrate the technical solutions of embodiments or conventional techniques of the present application, the drawings required for the descriptions of the embodiments or conventional techniques will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person of ordinary skill in the art.
Fig. 1 is a schematic diagram of a message forwarding method of a virtual switch according to an embodiment of the present application;
fig. 2 is a schematic diagram two of a message forwarding method of a virtual switch according to an embodiment of the present application;
fig. 3 is a schematic diagram III of a message forwarding method of a virtual switch according to an embodiment of the present application;
fig. 4 is a schematic diagram fourth of a message forwarding method of a virtual switch according to an embodiment of the present application;
fig. 5 is a schematic diagram fifth of a message forwarding method of a virtual switch according to an embodiment of the present application;
fig. 6 is a schematic diagram sixth of a message forwarding method of a virtual switch according to an embodiment of the present application;
fig. 7 is a schematic diagram seventh of a message forwarding method of a virtual switch according to an embodiment of the present application.
Detailed Description
In order to make the above objects, features and advantages of the present application more comprehensible, embodiments accompanied with figures are described in detail below. In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. This application is, however, susceptible of embodiment in many other ways than those herein described and similar modifications can be made by those skilled in the art without departing from the spirit of the application, and therefore the application is not limited to the specific embodiments disclosed below.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein in the description of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. The term "and/or" as used herein includes any and all combinations of one or more of the associated listed items.
The application scenario of the message forwarding method of the virtual switch provided by the application is first introduced.
Two virtual switch bridges are deployed on the host, the bridge names being bridge1 and bridge2, respectively. bridge1 is used for forwarding messages of the virtual network, and bridge2 is used for forwarding messages of the base network. The basic network address of the host is configured on the interface of bridge2 for forwarding the service message, and the forward type interface is configured on the bridge 1.
Fig. 1 is a schematic diagram of a message forwarding method of a virtual switch according to an embodiment of the present application.
A message forwarding method of a virtual switch is applied to the virtual switch and comprises the following steps: forward type interfaces and Openflow table actions are in a system with L3 Normal.
Specifically, in the embodiment of the present application, a new interface type, that is, a forward type interface, is added to the virtual switch, and an Openflow table action L3Normal is newly added to configure an attribute parameter local_ip for the forward type interface; the value of the attribute parameter local_ip is an ipv4 address or an ipv6 address on a certain virtual switch interface, and in the present application, the forward type interface is used to forward a message to a corresponding virtual switch interface, and receive a message from the virtual switch interface, and when the message matches a Normal flow table action L3, it indicates that the message needs to be forwarded in three layers.
Referring to fig. 1, a method for forwarding a message of a virtual switch provided in the present application includes five steps S101 to S105:
s101: after obtaining the message needing to be forwarded in three layers in the basic network, the message is sent to a forward type interface.
Specifically, in the embodiment of the present application, after receiving a message that needs to be forwarded in three layers on the base network from the virtual switch interface, the bridge1 bridge sends the message to the forward type interface according to the flow table action.
S102: and searching a corresponding virtual switch interface according to a local_ip parameter preconfigured by the forward type interface, and sending a message to the virtual switch interface through the action forward.
Specifically, in the embodiment of the present application, the interface of the corresponding virtual switch on the bridge2 is found according to the local_ip parameter preconfigured by the forward type interface, and the message is sent to the interface of the corresponding virtual switch on the bridge2 through the newly added forward action.
S103: after the virtual switch interface receives the message, the source IP address of the message is converted into the IP address of the virtual switch interface.
Specifically, in the embodiment of the present application, after receiving a packet, the interface of the virtual switch corresponding to the bridge2 converts the source IP address of the packet into the IP address of the virtual switch interface, and the specific conversion method is described in detail below.
S104: when the message is matched with the L3Normal flow table action, the destination IP address of the message is extracted, the next hop address of the message and the output interface are determined according to the destination IP address, and the message is forwarded from the output interface.
Specifically, in the embodiment of the present application, when a packet matches a flow table action of L3Normal, it indicates that the packet needs to be forwarded in three layers, and after a destination IP address of the packet is extracted, a method for determining a next hop address of the packet and an interface according to the destination IP address is described in detail below.
S105: and after the virtual switch receives the response message from the base network, DNAT operation is carried out, and the response message is sent according to DNAT operation results.
Specifically, in the embodiment of the present application, after forwarding a message from an output interface, a virtual switch receives a response message from a base network, performs DNAT operation on the response message, and determines a sending interface of the response message according to a DNAT operation result to send the response message.
Further, in the above method for forwarding a packet of a virtual switch, the packet is a non-tunnel encapsulation packet.
Specifically, in the method for forwarding the message of the virtual switch provided by the embodiment of the application, the message is a non-tunnel encapsulated message.
Further, in the above method for forwarding a message of a virtual switch, the message is sent to the forward type interface according to a pre-configured flow table action.
Specifically, in the method for forwarding the message of the virtual switch provided in the embodiment of the present application, after obtaining the message that needs to be forwarded in three layers on the base network, the message is sent to the forward type interface according to the pre-configured flow table action.
Further, in the above method for forwarding a message of a virtual switch, converting a source IP address of the message into an IP address of an interface of the virtual switch includes:
converting the message source address into a basic network address configured on the virtual switch interface through the snat; and converting the source MAC address of the message into the MAC address of the virtual switch interface.
Specifically, in the message forwarding method of the virtual switch provided by the embodiment of the application, a source address of a message is converted into a basic network address configured on an interface of the virtual switch through source address conversion snat; and converting the source MAC address of the message into the MAC address of the virtual switch interface.
Fig. 2 is a schematic diagram two of a message forwarding method of a virtual switch according to an embodiment of the present application.
Further, in the above method for forwarding a message of a virtual switch, determining a next hop address and an outgoing interface of the message according to a destination IP address, in combination with fig. 2, the method includes three steps S201 to S203:
s201: if the virtual switch finds the next hop address according to the local route;
s202: acquiring the MAC address of the next hop address according to the neighbor table entry, and replacing the MAC address of the next hop address with the destination MAC address of the message;
s203: and determining the interface according to the corresponding information of the interface and the MAC address recorded in the two-layer MAC address table.
Specifically, in the embodiment of the present application, the three steps 201 to S203 determine, according to the destination IP address, the address of the next hop of the message and the first case of the outgoing interface: the virtual switch finds the next-hop address according to the local route, and obtains the MAC address of the next-hop address according to the neighbor table entry, and after replacing the destination MAC address of the message with the MAC address of the next-hop address, the virtual switch determines the interface according to the corresponding information of the interface and the MAC address recorded in the two-layer MAC address table.
Fig. 3 is a schematic diagram III of a message forwarding method of a virtual switch according to an embodiment of the present application.
Further, the above method for forwarding a message of a virtual switch, in combination with fig. 3, further includes three steps S301 to S303:
s301: if the virtual switch finds the next hop address according to the local route;
s302: according to the neighbor list item, not obtaining the MAC address of the next hop address, sending an ARP request message or an NS message, obtaining the MAC address of the next hop, and replacing the MAC address of the next hop address with the destination MAC address of the message;
s303: and determining the interface according to the corresponding information of the interface and the MAC address recorded in the two-layer MAC address table.
Specifically, in the embodiment of the present application, the three steps 301 to S303 determine the next hop address of the message and the second case of the outgoing interface according to the destination IP address: the virtual switch finds the next-hop address according to the local route, but does not acquire the MAC address of the next-hop address according to the neighbor table entry, acquires the MAC address of the next-hop by a message sending method, and determines an interface according to the corresponding information of the interface and the MAC address recorded in the two-layer MAC address table after replacing the destination MAC address of the message with the MAC address of the next-hop address.
Fig. 4 is a schematic diagram fourth of a message forwarding method of a virtual switch according to an embodiment of the present application.
Further, the above method for forwarding a message of a virtual switch, in combination with fig. 4, further includes two steps S401 to S402:
s401: if the virtual switch does not find the next hop address according to the local route;
s402: the message is discarded.
Specifically, in the embodiment of the present application, the two steps S401 to S402 are the third case of determining the address of the next hop of the message and the outgoing interface according to the destination IP address, and if the virtual switch does not find the address of the next hop according to the local route, the virtual switch directly discards the message and does not determine the interface.
Fig. 5 is a schematic diagram fifth of a message forwarding method of a virtual switch according to an embodiment of the present application.
Further, in the above method for forwarding a packet of a virtual switch, DNAT operation is performed, and the response packet is sent according to a DNAT operation result, and in combination with fig. 5, the method includes three steps of S501 to S503:
s501: obtaining a destination address of the response message after DNAT operation;
s502: judging whether the destination address of the response message is the address of the first interface of the virtual switch;
s503: if the destination address of the response message is the address of the first interface of the virtual switch, sending the response message to the first interface;
wherein the address of the first interface of the virtual switch is the address of one of the interfaces of the virtual switch.
Specifically, in the embodiment of the present application, the three steps S501 to S503 are that the destination address of the reply message is obtained after DNAT operation is performed on the reply message, and it is determined whether the destination address of the reply message is the address of one of the interfaces of the virtual switch, if the determination result is that the destination address of the reply message is the address of one of the interfaces of the virtual switch, the reply message is sent to the corresponding interface.
Fig. 6 is a schematic diagram sixth of a message forwarding method of a virtual switch according to an embodiment of the present application.
Further, the method for forwarding the message of the virtual switch further includes four steps S601 to S604:
s601: judging whether the destination address of the response message is the address of the first interface of the virtual switch;
s602: if the destination address of the response message is not the address of the first interface of the virtual switch;
s603: re-determining the second interface and sending the response message to the second interface;
s604: and after the second interface receives the response message, the virtual switch sends the response message to the target virtual switch according to the pre-configured flow table action.
Specifically, in the embodiment of the present application, the four steps S601 to S604 are implemented by determining whether the destination address of the reply message is the address of one of the interfaces of the virtual switch, if the determination result is that the destination address of the reply message is not the address of one of the interfaces of the virtual switch, determining the second interface again, sending the reply message to the second interface, and after the second interface receives the reply message, the virtual switch sends the reply message to the destination virtual switch according to a pre-configured flow table action, thereby implementing three-layer forwarding of the non-tunnel encapsulated message.
Fig. 7 is a schematic diagram seventh of a message forwarding method of a virtual switch according to an embodiment of the present application.
Further, in the above method for forwarding a message of a virtual switch, the second interface is redetermined, and the response message is sent to the second interface, and in combination with fig. 7, the method includes two steps S701 to S702:
s701: searching a second interface according to the destination address of the response message and a local_ip parameter preconfigured by the forward type interface;
s702: and after DNAT conversion is carried out on the response message, the response message is sent to the second interface through the action forward.
Specifically, in the embodiment of the present application, if the determination result is that the destination address of the reply message is not the address of one of the interfaces of the virtual switch, the second interface is redetermined, and the reply message is sent to the second interface, where the steps S701 to S702 are the method of determining the second interface and sending the reply message to the second interface.
Those skilled in the art will appreciate that while some embodiments described herein include some features but not others included in other embodiments, combinations of features of different embodiments are meant to be within the scope of the present application and form different embodiments.
Those skilled in the art will appreciate that the descriptions of the various embodiments are each focused on, and that portions of one embodiment that are not described in detail may be referred to as related descriptions of other embodiments.
The present invention is not limited to the above embodiments, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the present invention, and these modifications and substitutions are intended to be included in the scope of the present invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.

Claims (10)

1. The message forwarding method of the virtual switch is characterized by comprising the following steps: in a system with forward type interfaces and Openflow flow table actions of L3Normal, the method comprises the following steps:
after obtaining a message needing to be forwarded in three layers in a basic network, sending the message to the forward type interface;
searching a corresponding virtual switch interface according to a local_ip parameter preconfigured by the forward type interface, and sending the message to the virtual switch interface through an action forward;
after the virtual switch interface receives the message, converting the source IP address of the message into the IP address of the virtual switch interface;
when the message is matched with the flow table action of the L3Normal, extracting a destination IP address of the message, determining a next hop address and an outgoing interface of the message according to the destination IP address, and forwarding the message from the outgoing interface;
and after the virtual switch receives the response message from the basic network, DNAT operation is carried out, and the response message is sent according to DNAT operation results.
2. The method for forwarding packets in a virtual switch of claim 1, wherein said packets are non-tunnel encapsulation packets.
3. The method according to claim 1, wherein said sending said message to said forward type interface is performed according to a pre-configured flow table action.
4. The method for forwarding the message of the virtual switch according to claim 1, wherein the converting the source IP address of the message into the IP address of the virtual switch interface comprises:
converting the message source address into a basic network address configured on a virtual switch interface through snat; and converting the source MAC address of the message into the MAC address of the virtual switch interface.
5. The method for forwarding the message of the virtual switch according to claim 1, wherein determining the address of the next hop and the outgoing interface of the message according to the destination IP address comprises:
if the virtual switch finds the next hop address according to the local route;
acquiring the MAC address of the next hop address according to the neighbor table entry, and replacing the MAC address of the next hop address with the destination MAC address of the message;
and determining the interface according to the corresponding information of the interface and the MAC address recorded in the two-layer MAC address table.
6. The method for forwarding messages for a virtual switch of claim 5, further comprising:
if the virtual switch finds the next hop address according to the local route;
according to the neighbor list item, not obtaining the MAC address of the next hop address, sending an ARP request message or an NS message, obtaining the MAC address of the next hop, and replacing the MAC address of the next hop address with the destination MAC address of the message;
and determining the interface according to the corresponding information of the interface and the MAC address recorded in the two-layer MAC address table.
7. The method for forwarding messages for a virtual switch of claim 5, further comprising:
if the virtual switch does not find the next hop address according to the local route;
the message is discarded.
8. The method for forwarding the message of the virtual switch according to claim 1, wherein the performing DNAT operation, and sending the reply message according to a DNAT operation result, includes:
obtaining a destination address of the response message after DNAT operation;
judging whether the destination address of the response message is the address of the first interface of the virtual switch;
if the destination address of the response message is the address of the first interface of the virtual switch, sending the response message to the first interface;
wherein the address of the first interface of the virtual switch is the address of one of the interfaces of the virtual switch.
9. The method for forwarding messages for a virtual switch of claim 8, further comprising:
judging whether the destination address of the response message is the address of the first interface of the virtual switch;
if the destination address of the response message is not the address of the first interface of the virtual switch;
re-determining a second interface, and sending the response message to the second interface;
and after the second interface receives the response message, the virtual switch sends the response message to the target virtual switch according to a pre-configured flow table action.
10. The method for forwarding the message of the virtual switch according to claim 9, wherein the re-determining the second interface, and sending the reply message to the second interface, includes:
searching a second interface according to the destination address of the response message and a local_ip parameter preconfigured by the forward type interface;
and after DNAT conversion is carried out on the response message, the response message is sent to the second interface through an action forward.
CN202211434754.9A 2022-11-16 2022-11-16 Message forwarding method of virtual switch Pending CN116155837A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211434754.9A CN116155837A (en) 2022-11-16 2022-11-16 Message forwarding method of virtual switch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211434754.9A CN116155837A (en) 2022-11-16 2022-11-16 Message forwarding method of virtual switch

Publications (1)

Publication Number Publication Date
CN116155837A true CN116155837A (en) 2023-05-23

Family

ID=86353289

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211434754.9A Pending CN116155837A (en) 2022-11-16 2022-11-16 Message forwarding method of virtual switch

Country Status (1)

Country Link
CN (1) CN116155837A (en)

Similar Documents

Publication Publication Date Title
US9258699B2 (en) Method for route transmission based on single IPv6 address prefix, and wireless device
EP2544417B1 (en) Communication system, path control apparatus, packet forwarding apparatus and path control method
US9992106B2 (en) Generating a host route
KR101785760B1 (en) Method and network element for enhancing ds-lite with private ipv4 reachability
EP3065358A1 (en) Method and device for message forwarding
EP2750329B1 (en) Method and device for sending internet protocol packets
CN108429680B (en) Route configuration method, system, medium and equipment based on virtual private cloud
EP3190754B1 (en) Method and apparatus for processing a modified packet
JP2005027311A (en) Method and system for providing virtual protocol interlayer
CN111385209B (en) Message processing method, message forwarding method, device and equipment
JPWO2013145167A1 (en) LAN multiplexer
JP2003283578A (en) Protocol converting method and apparatus
CN106982163B (en) Method and gateway for acquiring route on demand
US20170332439A1 (en) Extending the range of mesh networks
JP6098192B2 (en) Address generator
US20230208760A1 (en) Entry generation method, packet sending method, device, and system
CN105227466A (en) Communication processing method and device
CN108540386B (en) Method and device for preventing service flow interruption
US9584426B2 (en) Congestion management in overlay networks
CN108306825B (en) Equivalent forwarding table item generation method and VTEP device
US7693091B2 (en) Teredo connectivity between clients behind symmetric NATs
WO2014156143A1 (en) Home gateway device and packet forwarding method
CN108768845B (en) Multi-homing host routing synchronization method and device
CN105100300B (en) Method and device for converting network address into NAT
Wahyudi et al. Performance Analysis of Routing Enhanced Interior Gateway Routing Protocol Load Balancing for IPv6

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