CN106878136B - Message forwarding method and device - Google Patents

Message forwarding method and device Download PDF

Info

Publication number
CN106878136B
CN106878136B CN201611239283.0A CN201611239283A CN106878136B CN 106878136 B CN106878136 B CN 106878136B CN 201611239283 A CN201611239283 A CN 201611239283A CN 106878136 B CN106878136 B CN 106878136B
Authority
CN
China
Prior art keywords
vni
message
identifier
forwarding information
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.)
Active
Application number
CN201611239283.0A
Other languages
Chinese (zh)
Other versions
CN106878136A (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.)
New H3C Technologies Co Ltd
Original Assignee
New H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201611239283.0A priority Critical patent/CN106878136B/en
Publication of CN106878136A publication Critical patent/CN106878136A/en
Application granted granted Critical
Publication of CN106878136B publication Critical patent/CN106878136B/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
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/66Layer 2 routing, e.g. in Ethernet based MAN's

Abstract

The invention provides a message forwarding method and a device, wherein the method is applied to first edge Equipment (ED) in an EVPN (event-based noise protection network), and comprises the following steps: the method comprises the steps that a first ED receives a first message sent by a first VM, the destination address of the first message is a second VM address in a second ED, and the first message carries a first VNI corresponding to the first VM; acquiring a second ED identifier and first forwarding information matched with the first VNI and the second VM address according to the corresponding relation between the ED identifier and the VNI and the forwarding information; and carrying the second ED identification in the first message, and sending the first message carrying the second ED identification to the second ED according to the first forwarding information, so that the second ED sends the first message to the second VM. Therefore, the invention can avoid configuring the virtual exchange instance of the opposite terminal on the ED and save the virtual exchange resources of the data center.

Description

Message forwarding method and device
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for forwarding a packet.
Background
EVPN (Ethernet Virtual Private Network) is a two-layer VPN (Virtual Private Network) technology, and its data plane uses VXLAN (Virtual extensible local area Network) encapsulation to forward the packet. The EVPN can provide two-layer interconnection for the same subnet of the same tenant based on the existing service provider or enterprise IP network; and three-layer interconnection is provided for different subnets of the same tenant through the EVPN gateway, and three-layer interconnection with an external network is provided for the subnets.
Currently, an ED (Edge Device) in EVPN may establish a DCI (Data Center Interconnection, two-layer Interconnection between Data centers) tunnel by automatically discovering a second ED; the home end ED and the opposite end ED can forward data through VXLAN two layers.
Disclosure of Invention
Embodiments of the present invention provide a method and an apparatus for forwarding a packet, which can avoid a problem that when data is forwarded between a first ED and a second ED through a VXLAN tunnel, both the first ED and the second ED need to configure a VNI (VXLAN network identifier) of an opposite end, thereby causing VNI resource waste in the first ED and the second ED.
The embodiment of the invention provides a message forwarding method, which is applied to a first ED in an Ethernet virtual private network EVPN, and comprises the following steps:
a first ED receives a first message sent by a first VM, wherein a destination address of the first message is a second VM address in a second ED, and the first message carries a first VNI corresponding to the first VM;
acquiring a second ED identifier and first forwarding information matched with the first VNI and the second VM address according to the corresponding relation between the ED identifier and the VNI and the forwarding information;
and carrying the second ED identifier in the first message, and sending the first message carrying the second ED identifier to the second ED according to the first forwarding information, so that the second ED sends the first message to a second VM.
Based on the same concept, the present invention further provides a packet forwarding apparatus, which is applied to a first edge device ED in an ethernet virtual private network EVPN, and the apparatus includes:
a message receiving unit, configured to receive, by a first ED, a first message sent by a first VM, where a destination address of the first message is a second VM address in a second ED, and the first message carries a first VNI corresponding to the first VM;
the ID acquisition unit is used for acquiring a second ED ID and first forwarding information matched with the first VNI and the second VM address according to the corresponding relation between the ED ID and the VNI and the forwarding information;
and the message forwarding unit is configured to carry the second ED identifier in the first message, and send the first message carrying the second ED identifier to the second ED according to the first forwarding information, so that the second ED sends the first message to a second VM.
Therefore, the first message sent by the first VM can be received by the first ED, wherein the destination address of the first message is the second VM address in the second ED and carries the first VNI corresponding to the first VM, then the second ED identifier and the first forwarding information matched with the first VNI and the second VM address are obtained according to the correspondence between the ED identifier and the VNI as well as the forwarding information, the second ED identifier is carried in the first message, and the first message carrying the second ED identifier is sent to the second ED according to the first forwarding information, so that the second ED sends the first message to the second VM. Therefore, the invention can realize the purpose of forwarding the two-layer service between the two EDs according to the ED identifier by configuring the ED identifier for the opposite-end ED and mapping a plurality of VNIs per se to the ED identifier, thereby avoiding configuring a virtual switching instance of the opposite end on the ED and saving the virtual switching resources of the data center.
Drawings
Fig. 1 is a network model schematic of a prior art VXLAN;
fig. 2 is a processing flow diagram of a message forwarding method in an exemplary embodiment of the present application;
FIG. 3a is a schematic diagram of a network in an exemplary embodiment of the present application;
FIG. 3b is a diagram illustrating a message format in an exemplary embodiment of the present application;
fig. 4a is a hardware structure diagram of an ED device where a message forwarding apparatus is located in an exemplary embodiment of the present application;
fig. 4b is a logic structure diagram of a message forwarding apparatus in an exemplary embodiment of the present application.
Detailed Description
A typical network model for VXLAN includes the following parts:
VMs (Virtual machines) are used to provide services to users, multiple Virtual machines can be created on one server, and different Virtual machines can belong to different VXLANs. Virtual machines belonging to the same VXLAN are in the same logic two-layer network and are communicated with each other in two layers; two levels of isolation between virtual machines belonging to different VXLANs. VXLAN is identified by VXLAN ID, also called VNI (VXLAN Network Identifier), which is 24 bits long;
VTEP (VXLAN Tunnel End Point ) is an edge device of VXLAN. The VXLAN processing is performed on the VTEP, for example, to identify the VXLAN to which the ethernet data belongs, to perform two-layer forwarding of the data based on the VXLAN, to encapsulate/decapsulate the packet, and so on. The VTEP can be an independent physical device or a server where a virtual machine is located;
the VXLAN tunnel is a point-to-point logical tunnel between two VTEPs. After encapsulating a VXLAN head, a UDP head and an IP head for a data frame, the VTEP forwards the encapsulated message to a remote VTEP through a VXLAN tunnel, and the remote VTEP decapsulates the encapsulated message;
the core device is a device in an IP core network, and the core device does not participate in VXLAN processing, and only needs to forward the packet three-layer according to the destination IP address of the encapsulated packet.
As shown in fig. 1, VM3 and VM1 are within a two-tier VXLAN with corresponding VNI1 being 100 and VM2 and VM4 being within a two-tier VXLAN with corresponding VNI2 being 200. Currently, if VXLAN is established between ED1 and ED2 through EVPN protocol, it is necessary to have the same VNI between two data centers, so VXLAN with VNI 200 needs to be configured on ED1, but VXLAN service with VNI2 200 may not be needed inside the data center where ED1 is located, and similarly, ED2 also needs to configure VXLAN service with VNI2 100. If there are many layer two services on ED1, for example, VNI is 1 to 1000 VXLAN services, and there are 1001 to 2000 VXLAN services on ED2, then there are 1 to 2000 service configurations on ED1 and ED2, which results in only 1000 services inside the data center executing actual services, and another 1000 services are idle, thus resulting in a great waste of VXLAN service resources on ED.
In order to solve the problems in the foregoing technical solutions, embodiments of the present application provide a method and an apparatus for forwarding a message, where a first message sent by a first VM is received by a first ED, a destination address of the first message is a second VM address in a second ED, and carries a first VNI corresponding to the first VM, and then, according to a correspondence between an ED identifier and VNI and forwarding information (where the ED identifier is used to distinguish different ED devices), a second ED identifier and first forwarding information that are matched with the first VNI and the second VM address are obtained, and then the second ED identifier is carried in the first message, and the first message carrying the second ED identifier is sent to the second ED according to the first forwarding information, so that the second ED sends the first message to a second VM. Therefore, the invention can realize the purpose of forwarding the two-layer service between two EDs according to the ED identifier I by configuring the ED identifier for the opposite-end ED and mapping a plurality of VNIs per se to the ED identifier, thereby avoiding configuring a virtual switching instance of the opposite end on the ED and saving the virtual switching resources of a data center.
Please refer to fig. 2, which is a flowchart illustrating a packet forwarding method in an exemplary implementation manner of an embodiment of the present application, where the method is applied to a first ED of an edge device in an EVPN, and the method includes:
step 201, a first ED receives a first message sent by a first VM, where a destination address of the first message is a second VM address in a second ED, and the first message carries a first VNI corresponding to the first VM;
in this embodiment, the first ED may receive a first packet sent by a first VM corresponding to a local first VNI service, where a destination MAC address of the first packet is an address of a second VM in the second ED, a source MAC address is an address of the first VM, and the first packet carries a first VNI corresponding to the first VM, where the second ED and the first ED belong to different data centers respectively.
Step 202, according to the correspondence between the ED identifier and the VNI and the forwarding information, obtaining a second ED identifier and first forwarding information that match the first VNI and the second VM address;
in this embodiment, the first ED may obtain, according to the first VNI and the destination address in the first message, that is, the address of the second VM, in the correspondence between the locally recorded ED identifier and the VNI and the forwarding information, the second ED identifier and the first forwarding information that are matched with the first VNI and the second VM address, where the first forwarding information specifically includes a forwarding table entry of the second VM. Specifically, the first ED may determine whether a VNI matching the first VNI exists in the correspondence relationship between the ED identifier and the VNI and the forwarding information, and may obtain the second ED identifier and the first forwarding information in the correspondence relationship if there is a correspondence relationship between the first VNI and the second ED identifier and the first forwarding information.
The following describes a method for the first ED to obtain the corresponding relationship between the ED identifier and the VNI and forwarding information.
As an embodiment, when receiving a routing packet sent by another ED and carrying an ED identifier for identifying a different ED, a first ED may obtain a VNI stored in the first ED, and obtain the ED identifier and forwarding information from the routing packet; and then establishing a corresponding relation between the VNI and the ED identification and forwarding information.
Specifically, the second ED obtains a second ED identifier (the second ED identifier may be preset in the second ED) for indicating itself, when a tunnel is established between the first ED and the second ED, the second ED sends a routing packet carrying the second ED identifier to the first ED (where the routing packet may be obtained according to an ARP packet sent by a VM in the second ED, and the routing packet also carries forwarding information, and the forwarding information may be an MAC forwarding table entry), and when the first ED receives the routing packet carrying the second ED identifier sent by the second ED, the first ED may obtain a VNI stored in itself, and obtain the second ED identifier and the forwarding information from the routing packet; and then establishing a corresponding relation between the VNI and the second ED identification and forwarding information.
In another implementation manner, after the second ED obtains the second ED identifier used for representing itself, a corresponding relationship between the second ED identifier and a VNI stored in the second ED may also be established in the second ED (for distinguishing from the foregoing corresponding relationship, the corresponding relationship between the second ED identifier established in the second ED and the VNI stored in the second ED is hereinafter referred to as a target corresponding relationship), further, the routing packet is obtained according to the target corresponding relationship, specifically, the corresponding second VM is determined according to the VNI in the target corresponding relationship, and forwarding information of the second VM is further obtained and the corresponding routing packet is generated.
It should be noted that, when the first ED establishes the corresponding relationship according to the routing packet sent by the second ED, the first ED may establish the corresponding relationship between all VNIs stored in the first ED and the second ED identifier and forwarding information, or may select a part of VNIs from VNIs stored in the first ED and establish the corresponding relationship between the part of VNIs and the second ED identifier and forwarding information according to service needs.
After receiving a routing message carrying an ED identifier sent by another ED, in an embodiment, the first ED may directly process the routing message, obtain forwarding information and the ED identifier in the routing message, and establish a corresponding relationship according to the obtained forwarding information and the ED identifier; however, considering that there may be other EDs in the network that do not need to perform service interworking with the first ED, so as to implement selective establishment of correspondence for routing packets sent by different EDs, the present application provides another embodiment, including that the first ED obtains a VNI stored in itself, and after obtaining an ED identifier and forwarding information from the routing packet, may further determine whether there is a third ED identifier matching the ED identifier carried in the routing packet (where the third ED identifier may be configured in the first ED), and if there is, it is described that there is service interworking between the routing packet ED and the first ED, so that the first ED may locally establish correspondence between the VNI and the ED identifier and forwarding information, thereby guiding the later packet forwarding.
Step 203, carrying the second ED identifier in the first message, and sending the first message carrying the second ED identifier to the second ED according to the first forwarding information, so that the second ED sends the first message to a second VM.
In this embodiment, when the first ED obtains the second ED identifier and the first forwarding information matched with the first VNI and the second VM address, the second ED identifier may be carried in the first message, and the first message carrying the second ED identifier is sent to the second ED according to the first forwarding information, so that the second ED sends the first message to the second VM.
As an embodiment, the first ED carries the second ED identifier in the first message, specifically, the first VNI in the first message is replaced with the second ED identifier, and since the second ED does not have a virtual switch instance corresponding to the first VNI, replacing the first VNI in the first message with the second ED identifier may implement service forwarding of the first message between the EDs.
Further, when the second ED receives the first packet, it is determined that the first packet carries a second ED identifier, which indicates that the first packet may be processed, and further, a second VNI corresponding to a second VM may be determined according to a destination address carried in the first packet, and then the second ED identifier carried in the first packet is replaced by the second VNI corresponding to the second VM, and then the first packet is forwarded to the second VM.
As another embodiment, the first ED carries the second ED identifier in the first message, which may specifically be that a message structure for carrying the second ED identifier is added in the first message, the second ED and the first VNI are carried in the first message and sent to the second ED, and after receiving the first message carrying the second ED identifier and the first VNI, the second ED sends the first message to the second VM according to the destination address of the first message.
As another embodiment, if a target correspondence relationship between a second ED identifier and a VNI stored in a second ED exists in the second ED, when the second ED receives the first packet, it is determined that the second ED identifier is carried in the first packet, a destination address in the first packet is obtained and is determined to point to a second VM, a second VNI corresponding to the second VM is obtained, whether the second VNI exists in the target correspondence relationship is determined, and if the second VNI exists, the second VNI is carried in the first packet and is sent to the second VM.
In addition, it should be noted that the terms first, second, third, etc. are used herein to describe the different EDs, but the information should not be limited to these terms. These terms are only used to distinguish the roles of EDs, e.g., a first ED may also be referred to as a second ED, and similarly, a second ED may also be referred to as a first ED, without departing from the scope of the present application. Therefore, the message forwarding and routing message synchronization on the second ED are similar to the processing method in the first ED, and are not described herein again.
Compared with the prior art, the invention can realize the purpose of forwarding the two-layer service between different EDs by enabling different EDs to map a plurality of VNIs on different EDs to the ED identifiers according to the ED identifiers, so that the invention can avoid configuring virtual switching instances of opposite ends on different EDs and save virtual switching resources of a data center.
In order to make the objects, technical solutions and advantages of the present invention more apparent, the embodiments of the present invention are further described in detail below with reference to fig. 3a and 3 b.
In this embodiment, a MAP VNI is used as an ED identifier (that is, each ED corresponds to a different MAP VNI), a scheme of the present application is further described, please refer to fig. 3a, which is a schematic diagram of an EVPN networking in this embodiment, where the networking includes: a VXLAN DCI tunnel is dynamically established between ED1 and ED2 through an EVPN protocol, and the destination address of the VXLANDCI tunnel established on ED1 is 2.2.2.2 of the MAC address of ED 2; the destination address of the VXLAN DCI tunnel established above ED2 is MAC address 1.1.1.1 of ED 1; corresponding ED identifiers are configured on ED1 and ED2, that is, MAP VNI is 10000, then, the tunnel information configured on ED1 includes: MAP VNI is 10000 for destination address 2.2.2.2; the tunnel information configured on the ED2 includes: the MAP VNI is 10000 corresponding to the destination address of 1.1.1.1. After the corresponding relationship between the destination address of the tunnel and the MAP VNI is configured, when ED1 and ED2 are communicated across data centers, all VNIs on ED1 and ED2 may be mapped onto the MAP VNIs, and the user may also delete the corresponding relationship from the VNI inside a certain data center to the MAP VNI according to the user's own needs, which is more beneficial to the user's processing of network services.
The VM1 is a virtual machine directly connected to a two-layer vxlan service with VNI of 100, when the VM1 is online, a gratuitous ARP message is sent to the ED1, and a source address in the ARP message is an IP address and a MAC address of the VM 1; the ED1 locally generates a MAC a-a forwarding table entry by learning an IP address and a MAC address in an ARP message, and the ED1 sends the MAC a-a table entry to all BGP EVPN neighbor peers via an EVPN route, where the MAC address includes the ED2 with a destination MAC address of 2.2.2.2.
Further, as shown in the routing message structure of fig. 3b, the ED1 may add an extended community attribute of RD (Route-Distinguisher) and RT (Route-Target) to the EVPN routing message, for example, configure corresponding RD and RT for VXLAN service corresponding to MAP VNI on ED1 and ED2, where RD is used to distinguish different EDs and RT are used to identify different routes sent by the same ED, so when ED1 sends the EVPN Route carrying mac a-a table entry and MAP VN to ED2, RD corresponding to ED1, that is, 1.1.1.1:10000, may be carried in the EVPN Route; and the RT corresponding to the traffic in the MAP VNI of ED1, e.g., import vpn-target and export vpn-target, are both configured to 65000: 10000. After the ED2 receives the EVPN route, the ED2 introduces the EVPN route to a corresponding service by analyzing RT and RD information in the EVPN route, that is, locally records a corresponding relationship between MAP VNI of 10000 and VNI2 of 200 and mac a-a forwarding table entry.
When the ED2 receives a first message sent by the VM2, where a destination address of the first message is a MAC address of the VM1 in the ED1, the first message carries the VNI2 corresponding to the VM 2; then the ED2 may obtain a MAP VNI of 10000 and a MAC a-a forwarding entry matching with MAC addresses of VNI2 and VM2 according to a correspondence relationship between the MAP VNI of 10000 and VNI2 of 200 and the MAC a-a forwarding entry recorded locally; and then, the MAP VNI is carried in the first message, and the first message carrying the MAP VNI is sent to the ED1 according to the macA-A-A forwarding table entry. After the ED1 receives the first message carrying the MAP VNI, the VNI1, that is, 100, to which the VM1 belongs may be further searched according to the destination address of the first message, that is, the MAC address of the VM 1; and then replacing the MAP VNI carried by the first message with VNI1, and finally sending the first message to VM1 according to the mac a-a forwarding table entry recorded locally.
Therefore, the invention can realize the purpose of forwarding common VNIs of the two-layer service between the data centers by mapping a plurality of VNIs in the ED to one MAP VNI; because the L2 VNIs in the data center can be automatically mapped onto the corresponding MAPNNIs, manual configuration of users can be relatively reduced, the automation degree of the whole EVPN networking is provided, and meanwhile, if a certain VNI service does not need to be forwarded with the data center, the users can manually delete or add the mapping relation from the VNI to the MAPNNIs; the invention expands EVPN 2 type routing, increases the extended attribute groups of MAP VNI and RT, and ensures that the EVPN 2 type routing can be migrated back and forth between the MAP VNI and the common L2VNI when the EVPN 2 type routing is synchronous between the data centers ED, thereby greatly improving the flexibility of the data system.
Based on the same conception, the invention also provides a message forwarding device, which can be realized by software, or by hardware or a combination of the software and the hardware. Taking software implementation as an example, the message forwarding device of the present invention is a device in a logical sense, and is operated after a CPU of the device in which the message forwarding device is located reads a corresponding computer program instruction in a memory.
Referring to fig. 4a, a message forwarding apparatus 400 according to an exemplary embodiment of the present invention is applied to a first ED in EVPN, and the basic operating environment of the apparatus includes a CPU, a memory, and other hardware, and from a logic level, a logic structure of the apparatus 400 is as shown in fig. 4b, where the logic structure includes:
a message receiving unit 401, configured to receive, by a first ED, a first message sent by a first VM, where a destination address of the first message is a second VM address in a second ED, and the first message carries a first VNI corresponding to the first VM;
an identifier obtaining unit 402, configured to obtain, according to a correspondence between an ED identifier and VNI and forwarding information, a second ED identifier and first forwarding information that are matched with the first VNI and the second VM address;
a message forwarding unit 403, configured to carry the second ED identifier in the first message, and send the first message carrying the second ED identifier to the second ED according to the first forwarding information, so that the second ED sends the first message to a second VM.
Optionally, the identifier obtaining unit 402 is specifically configured to, if a VNI matching the first VNI exists in the correspondence between the ED identifier and the VNI and forwarding information, and when first forwarding information corresponding to the VNI matches the second VM address, obtain a second ED identifier and first forwarding information matching the first VNI and the second VM address.
Optionally, the apparatus further comprises:
a relationship establishing unit 404, configured to receive a routing packet sent by another ED and carrying an ED identifier for identifying a different ED; obtaining a VNI stored in the routing message, and obtaining an ED (identity) and forwarding information from the routing message; and establishing a corresponding relation between the VNI and the ED identification and forwarding information.
Optionally, the relationship establishing unit 404 is further configured to determine whether a third ED identifier matching the ED identifier carried in the routing packet exists after acquiring the VNI stored in the third ED identifier, and acquiring the ED identifier and forwarding information from the routing packet; and if so, establishing a corresponding relation between the VNI and the ED identifier and forwarding information.
Optionally, the message forwarding unit 403 is specifically configured to replace the first VNI in the first message with the second ED identifier.
Optionally, the packet forwarding unit 403 is specifically configured to, when the second ED receives the first packet, determine a second VNI corresponding to a second VM according to a destination address carried in the first packet, replace the second ED identifier carried in the first packet with the second VNI corresponding to the second VM, and then forward the first packet to the second VM.
Therefore, the first message sent by the first VM can be received by the first ED, wherein the destination address of the first message is the second VM address in the second ED and carries the first VNI corresponding to the first VM, then the second ED identifier and the first forwarding information matched with the first VNI and the second VM address are obtained according to the correspondence between the ED identifier and the VNI as well as the forwarding information, the second ED identifier is carried in the first message, and the first message carrying the second ED identifier is sent to the second ED according to the first forwarding information, so that the second ED sends the first message to the second VM. Therefore, the invention can realize the purpose of forwarding the two-layer service between two EDs through the ED identifier by configuring the ED identifier for the opposite-end ED and mapping a plurality of VNIs per se to the ED identifier, thereby avoiding configuring a virtual switching instance of the opposite end on the ED and saving the virtual switching resources of a data center.
The implementation process of the functions and actions of each unit in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the application. One of ordinary skill in the art can understand and implement it without inventive effort.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (12)

1. A message forwarding method is applied to a first Edge Device (ED) in an Ethernet Virtual Private Network (EVPN), and comprises the following steps:
a first ED receives a first message sent by a first VM, wherein a destination address of the first message is a second VM address in a second ED, and the first message carries a first VNI corresponding to the first VM;
acquiring a second ED identifier and first forwarding information matched with the first VNI and the second VM address according to the corresponding relation between the ED identifier and the VNI and the forwarding information;
and carrying the second ED identifier in the first message, and sending the first message carrying the second ED identifier to the second ED according to the first forwarding information, so that the second ED sends the first message to a second VM.
2. The method according to claim 1, wherein the obtaining a second ED id and first routing information matching the first VNI and the second VM address according to a correspondence between the ED id and the VNI and forwarding information includes:
and if the ED identifier, the VNI and the forwarding information have the corresponding relation between the VNI and the forwarding information, and the first forwarding information corresponding to the VNI is matched with the second VM address, acquiring a second ED identifier and first forwarding information matched with the first VNI and the second VM address.
3. The method according to claim 1, wherein the method for acquiring the correspondence between the ED identifier and the VNI and forwarding information comprises:
receiving routing messages which are sent by other EDs and carry ED identifiers used for identifying different EDs;
obtaining a VNI stored in the routing message, and obtaining an ED (identity) and forwarding information from the routing message;
and establishing a corresponding relation between the VNI and the ED identification and forwarding information.
4. The method according to claim 3, wherein after obtaining the VNI stored in itself and obtaining the ED identifier and the forwarding information from the routing packet, the method further comprises:
judging whether a third ED identifier matched with the ED identifier carried in the routing message exists or not;
and if so, establishing a corresponding relation between the VNI and the ED identifier and forwarding information.
5. The method of claim 1, wherein the carrying the second ED identification in the first message comprises:
replacing the first VNI in the first message with the second ED identification.
6. The method according to claim 5, wherein the causing the second ED to send the first message to a second VM comprises:
when the second ED receives the first packet, determining a second VNI corresponding to a second VM according to a destination address carried in the first packet, replacing the second ED identifier carried in the first packet with the second VNI corresponding to the second VM, and then forwarding the first packet to the second VM.
7. A message forwarding apparatus, which is applied to a first edge device ED in an ethernet virtual private network EVPN, and comprises:
a message receiving unit, configured to receive, by a first ED, a first message sent by a first VM, where a destination address of the first message is a second VM address in a second ED, and the first message carries a first VNI corresponding to the first VM;
the ID acquisition unit is used for acquiring a second ED ID and first forwarding information matched with the first VNI and the second VM address according to the corresponding relation between the ED ID and the VNI and the forwarding information;
and the message forwarding unit is configured to carry the second ED identifier in the first message, and send the first message carrying the second ED identifier to the second ED according to the first forwarding information, so that the second ED sends the first message to a second VM.
8. The apparatus of claim 7,
the identifier obtaining unit is specifically configured to obtain a second ED identifier and first forwarding information that are matched with the first VNI and the second VM address if a VNI that is matched with the first VNI exists in the correspondence between the ED identifier and the VNI and the forwarding information and first forwarding information corresponding to the VNI is matched with the second VM address.
9. The apparatus of claim 7, further comprising:
the relation establishing unit is used for receiving routing messages which are sent by other EDs and carry ED identifiers used for identifying different EDs; obtaining a VNI stored in the routing message, and obtaining an ED (identity) and forwarding information from the routing message; and establishing a corresponding relation between the VNI and the ED identification and forwarding information.
10. The apparatus of claim 9,
the relationship establishing unit is further configured to determine whether a third ED identifier matching the ED identifier carried in the routing packet exists after acquiring the VNI stored in the relationship establishing unit, and acquiring the ED identifier and forwarding information from the routing packet; and if so, establishing a corresponding relation between the VNI and the ED identifier and forwarding information.
11. The apparatus of claim 7,
the message forwarding unit is specifically configured to replace the first VNI in the first message with the second ED identifier.
12. The apparatus of claim 11,
the message forwarding unit is specifically configured to, when the second ED receives the first message, determine a second VNI corresponding to a second VM according to a destination address carried in the first message, replace the second ED identifier carried in the first message with the second VNI corresponding to the second VM, and then forward the first message to the second VM.
CN201611239283.0A 2016-12-28 2016-12-28 Message forwarding method and device Active CN106878136B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611239283.0A CN106878136B (en) 2016-12-28 2016-12-28 Message forwarding method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611239283.0A CN106878136B (en) 2016-12-28 2016-12-28 Message forwarding method and device

Publications (2)

Publication Number Publication Date
CN106878136A CN106878136A (en) 2017-06-20
CN106878136B true CN106878136B (en) 2020-01-03

Family

ID=59164141

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611239283.0A Active CN106878136B (en) 2016-12-28 2016-12-28 Message forwarding method and device

Country Status (1)

Country Link
CN (1) CN106878136B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108322376B (en) 2017-06-26 2020-02-11 新华三技术有限公司 Route synchronization method, device and machine-readable storage medium
CN108199963B (en) * 2017-12-27 2020-01-07 新华三技术有限公司 Message forwarding method and device
CN108540386B (en) * 2018-04-19 2021-07-23 新华三技术有限公司 Method and device for preventing service flow interruption
CN110474829B (en) 2018-05-10 2021-07-20 华为技术有限公司 Method and device for transmitting message
CN109246016B (en) * 2018-11-27 2021-01-26 杭州迪普科技股份有限公司 Cross-VXLAN message processing method and device
CN111131030B (en) * 2019-12-24 2020-10-30 浪潮思科网络科技有限公司 Route processing method, equipment and medium under EVPN
CN113660164A (en) * 2020-05-12 2021-11-16 华为技术有限公司 Message forwarding method and network equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103841028A (en) * 2014-03-24 2014-06-04 杭州华三通信技术有限公司 Method and device for forwarding messages
CN103905284A (en) * 2012-12-27 2014-07-02 杭州华三通信技术有限公司 EVI-network-based flow load sharing method and device
CN104350714A (en) * 2014-05-29 2015-02-11 华为技术有限公司 Packet forwarding method and VxLAN gateway
CN104468394A (en) * 2014-12-04 2015-03-25 杭州华三通信技术有限公司 Method and device for forwarding messages in VXLAN network
CN104579954A (en) * 2013-10-16 2015-04-29 华为技术有限公司 Message cross-domain forwarding method and device as well as communication device
CN104601427A (en) * 2013-10-31 2015-05-06 杭州华三通信技术有限公司 Message forwarding method and device in data center network
CN105515978A (en) * 2016-01-08 2016-04-20 盛科网络(苏州)有限公司 Method and device for realizing distributed routing and physical host access

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103905284A (en) * 2012-12-27 2014-07-02 杭州华三通信技术有限公司 EVI-network-based flow load sharing method and device
CN104579954A (en) * 2013-10-16 2015-04-29 华为技术有限公司 Message cross-domain forwarding method and device as well as communication device
CN104601427A (en) * 2013-10-31 2015-05-06 杭州华三通信技术有限公司 Message forwarding method and device in data center network
CN103841028A (en) * 2014-03-24 2014-06-04 杭州华三通信技术有限公司 Method and device for forwarding messages
CN104350714A (en) * 2014-05-29 2015-02-11 华为技术有限公司 Packet forwarding method and VxLAN gateway
CN104468394A (en) * 2014-12-04 2015-03-25 杭州华三通信技术有限公司 Method and device for forwarding messages in VXLAN network
CN105515978A (en) * 2016-01-08 2016-04-20 盛科网络(苏州)有限公司 Method and device for realizing distributed routing and physical host access

Also Published As

Publication number Publication date
CN106878136A (en) 2017-06-20

Similar Documents

Publication Publication Date Title
CN106878136B (en) Message forwarding method and device
US11546288B2 (en) Techniques for managing software defined networking controller in-band communications in a data center network
JP6934142B2 (en) Data processing
US10171357B2 (en) Techniques for managing software defined networking controller in-band communications in a data center network
EP3275132B1 (en) Scalable handling of bgp route information in vxlan with evpn control plane
KR102054338B1 (en) Routing vlan tagged packets to far end addresses of virtual forwarding instances using separate administrations
EP3240250B1 (en) Virtual router terminating an overlay tunnel in a storage area network
EP2853066B1 (en) Layer-3 overlay gateways
US10193707B2 (en) Packet transmission method and apparatus
EP3782336B1 (en) Multi-vrf universal device internet protocol address for fabric edge devices
US9590824B1 (en) Signaling host move in dynamic fabric automation using multiprotocol BGP
CN110943901A (en) Message forwarding method, device, equipment and storage medium
US20190007368A1 (en) DHCP in Layer-3 Overlay with Anycast Address Support and Network Address Transparency
US11929851B2 (en) Gateway selection method, device, and system
US9438475B1 (en) Supporting relay functionality with a distributed layer 3 gateway
CN108306825B (en) Equivalent forwarding table item generation method and VTEP device
CN106911547B (en) Message forwarding method and device
CN112929284A (en) ND message identification method and system under IPv6VXLAN scene
US11611508B2 (en) Packet forwarding method and network device
CN113542441A (en) Communication processing method and device
US11902166B2 (en) Policy based routing in extranet networks
US20220123997A1 (en) Relay functionality in an application centric infrastructure (aci) fabric
CN111314200A (en) Message forwarding method and device
CN115913819A (en) Communication method and related device
CN111371667A (en) LTE VPDN networking method based on VxLAN technology under cloud computing environment

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