[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN111277482B - Message processing method and device - Google Patents

Message processing method and device Download PDF

Info

Publication number
CN111277482B
CN111277482B CN202010032219.5A CN202010032219A CN111277482B CN 111277482 B CN111277482 B CN 111277482B CN 202010032219 A CN202010032219 A CN 202010032219A CN 111277482 B CN111277482 B CN 111277482B
Authority
CN
China
Prior art keywords
evpn
address information
value
route
advertisement
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
CN202010032219.5A
Other languages
Chinese (zh)
Other versions
CN111277482A (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 Big Data Technologies Co Ltd
Original Assignee
New H3C Big Data 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 Big Data Technologies Co Ltd filed Critical New H3C Big Data Technologies Co Ltd
Priority to CN202010032219.5A priority Critical patent/CN111277482B/en
Publication of CN111277482A publication Critical patent/CN111277482A/en
Application granted granted Critical
Publication of CN111277482B publication Critical patent/CN111277482B/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/28Routing or path finding of packets in data switching networks using route fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/38Flow based 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/54Organization of routing tables
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • H04L61/103Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]

Landscapes

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

Abstract

The application provides a message processing method and a device, wherein the method is applied to a first PE device and comprises the following steps: receiving a first EVPN routing notification sent by a second PE device, wherein the first EVPN routing notification comprises address information of a CE device, a first routing tag and a first Ethernet Segment Identification (ESI) value; when the first routing tag is a first value and a second ESI value identical to the first ESI value exists, sending a second EVPN routing advertisement, wherein the second EVPN routing advertisement comprises address information of the CE device and a second routing tag; the second routing label is a second value and is used for indicating that the address information of the CE equipment included in the second EVPN routing advertisement is non-locally learned address information; the ESI value is used to represent the link that the CE device accesses the PE device.

Description

Message processing method and device
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for processing a packet.
Background
At present, in order to improve the high reliability of the access side, for Ethernet Virtual Private Network (EVPN) networking, the EVPN protocol specifies multi-homing access networking, and the EVPN protocol can better guarantee the reliability of the service data packet.
As shown in fig. 1, a Virtual Machine (VM) 1 is a multi-homed host, and simultaneously accesses two VXLAN Tunnel End Point (VTEP) devices, which are a VTEP1 device and a VTEP2 device, through a synthetic access switch (LSW), and a VM2 accesses a remote VTEP3 device. The VM1 sends an Address Resolution Protocol (ARP) message to the VTEP1 device or the VTEP2 device through the LSW, and if the VTEP1 device receives the ARP message, the host Address of the VM1 is learned through the ARP message; meanwhile, the VTEP1 device also generates host routes for the host addresses of VMs 1 and synchronizes the host routes to the VTEP2 device, the VTEP3 device.
When the VM2 needs to interactively communicate with the VM1, the VTEP3 receives a service packet sent by the VM2, performs hash calculation on service traffic according to a five-tuple included in the service packet, and forwards the service traffic to the VTEP1 device or the VTEP2 device through an eXtensible Virtual local area network (VXLAN) tunnel established with the VTEP1 device and the VTEP2 device, so that the VTEP1 device or the VTEP2 device forwards the service packet to the VM 1. In this way, traffic flow is mutually backed up and load-shared between VTEP1 devices or VTEP2 devices.
However, in the process of learning the host address by the VTEP device, since the ARP packet of the VM1 is also sent to one of the VTEP devices of the VTEP1 or VTEP2 by the hash calculation method, it cannot be guaranteed that both the VTEP1 device and the VTEP2 device learn the host address of the VM1 and synchronize the host routing. Therefore, if the VTEP1 device learns the host address of VM1, when the VTEP1 device fails to restart or the link is disconnected or the route is withdrawn, the VTEP3 device cannot forward the traffic according to the host route synchronized with VTEP1, which results in a traffic interruption.
Disclosure of Invention
In view of this, the present application provides a message processing method and apparatus, so as to solve the problem in the prior art that when a VTEP1 device is restarted due to a failure or a link is disconnected and a route is withdrawn, a remote VTEP device cannot forward a service traffic according to a synchronous host route, which results in a flow break.
In a first aspect, the present application provides a method for processing a packet, where the method is applied to a first PE device, the first PE device is located in an ethernet virtual private network EVPN, the EVPN further includes a second PE device and a CE device, and the CE device is respectively accessed to the first PE device and the second PE device, and the method includes:
the first PE device receives a first EVPN routing notification sent by the second PE device, wherein the first EVPN routing notification comprises address information of the CE device, a first routing tag and a first Ethernet Segment Identification (ESI) value;
when the first routing tag is a first value and a second ESI value identical to the first ESI value exists, the first PE device sends a second EVPN routing advertisement, and the second EVPN routing advertisement comprises address information of the CE device and a second routing tag;
the second route mark is a second value and is used for indicating that the address information of the CE equipment included in the second EVPN route advertisement is non-locally learned address information; the ESI value is used to represent the link that the CE device accesses the PE device.
With reference to the first aspect of the present application, in a first possible implementation manner, the method further includes:
the first PE device discards the first EVPN route advertisement when the first route flag is the second value and there is a second ESI value that is the same as the first ESI value.
With reference to the first aspect of the present application, in a second possible implementation manner, the second EVPN route advertisement further includes a second ESI value, so that a third PE device receiving the second EVPN route advertisement searches whether a third ESI value identical to the second ESI value already exists.
With reference to the first aspect of the present application, in a third possible implementation manner, before the first PE device sends the second EVPN route advertisement, the method further includes:
the first PE device converts the address information of the CE device into locally learned address information and records the source of the address information of the CE device as non-locally learned address information.
With reference to the third possible implementation manner of the first aspect, in a fourth possible implementation manner, the method further includes:
the method comprises the steps that a first PE device receives EVPN route revocation sent by a second PE device, wherein the EVPN route revocation comprises address information of a CE device;
the first PE equipment updates the recorded source of the address information of the CE equipment into locally learned address information;
the first PE device sends a third EVPN routing advertisement, the third EVPN routing advertisement including address information of the CE device and a third routing tag, the third routing tag being the first value.
In a second aspect, the present application provides a packet processing apparatus, where the apparatus is applied to a first PE device, the first PE device is located in an ethernet virtual private network EVPN, the EVPN further includes a second PE device and a CE device, and the CE device is respectively accessed to the first PE device and the second PE device, and the apparatus includes:
a receiving unit, configured to receive a first EVPN route advertisement sent by a second PE device, where the first EVPN route advertisement includes address information of a CE device, a first route flag, and an ESI value of a first ethernet segment identifier;
a sending unit, configured to send a second EVPN route advertisement when the first route flag is a first value and a second ESI value identical to the first ESI value exists, where the second EVPN route advertisement includes address information of the CE device and a second route flag;
the second routing mark is a second value, and the second routing mark is used for indicating that the address information of the CE equipment included in the second EVPN routing advertisement is non-locally learned address information; the ESI value is used to represent the link that the CE device accesses the PE device.
With reference to the second aspect of the present application, in a first possible implementation manner, the apparatus further includes:
a processing unit to discard the first EVPN route advertisement when the first route flag is the second value and there is a second ESI value that is the same as the first ESI value.
With reference to the first aspect of the present application, in a second possible implementation manner, the second EVPN route advertisement further includes a second ESI value, so that a third PE device receiving the second EVPN route advertisement searches whether a third ESI value identical to the second ESI value already exists.
With reference to the first aspect of the present application, in a third possible implementation manner, the apparatus further includes:
and the conversion unit is used for converting the address information of the CE equipment into locally learned address information and recording the source of the address information of the CE equipment as non-locally learned address information.
With reference to the third possible implementation manner of the second aspect, in a fourth possible implementation manner, the receiving unit is further configured to receive an EVPN route withdrawal sent by the second PE device, where the EVPN route withdrawal includes address information of the CE device;
the device also includes: an updating unit for updating the source of the recorded address information of the CE device to locally learned address information;
the sending unit is further configured to send a third EVPN route advertisement, where the third EVPN route advertisement includes address information of the CE device and a third route flag, and the third route flag is the first value.
In a third aspect, the present application provides an electronic device comprising a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to perform the method provided by the first aspect of the present application.
In a fourth aspect, the present application provides a machine-readable storage medium having stored thereon machine-executable instructions that, when invoked and executed by a processor, cause the processor to perform the method provided by the first aspect of the present application.
Therefore, by applying the message processing method and apparatus provided in the present application, when a first PE device receives a first EVPN route advertisement sent by a second PE device in the same multi-homing member group, if a first route flag included in the first EVPN route advertisement is a first value, the first PE device generates and sends a second EVPN route advertisement, and marks a first route flag included in the second EVPN route advertisement as a second value, so that when the remote PE device receives the second EVPN route advertisement, a host route corresponding to the second EVPN route advertisement is also generated and stored. The problem of cut-off caused by the fact that in the prior art, when VTEP equipment of a local learning host route is restarted in a fault mode or a link is disconnected and the route is withdrawn, a far-end VTEP equipment cannot realize forwarding of service flow only according to synchronous route announcement of PE equipment of the local learning host route is solved. When the local end learns the equipment failure restart or the link disconnection and the route cancellation of the host route, other PE equipment in the same multi-homing member group notifies the host route, and the remote PE equipment stores the host routes notified by a plurality of PE equipment in the same multi-homing member group, so that the occurrence of cut-off in the group network is avoided.
Drawings
Fig. 1 is a schematic diagram of EVPN networking in the prior art;
fig. 2 is a flowchart of a message processing method according to an embodiment of the present application;
fig. 3 is a schematic diagram of EVPN networking provided in an embodiment of the present application;
fig. 4 is a schematic diagram of a MAC mobility extension attribute field provided in an embodiment of the present application;
fig. 5 is a schematic diagram illustrating occupation of an S field in a MAC mobility extension attribute field according to an embodiment of the present application;
fig. 6 is a structural diagram of a message processing apparatus according to an embodiment of the present application;
fig. 7 is a block diagram of a PE device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the corresponding listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
The following describes the message processing method provided in the embodiment of the present application in detail. Referring to fig. 2, fig. 2 is a flowchart illustrating a message processing method according to an embodiment of the present application. The method is applied to a first PE device, which is at EVPN. The message processing method provided by the embodiment of the application can comprise the following steps.
Fig. 3 shows EVPN networking provided in the embodiment of the present application, and fig. 3 is an EVPN networking diagram shown in the embodiment of the present application. The EVPN networking comprises a first network side Edge (PE) device, a second PE device and a third PE device. The method includes the steps that a Customer Edge (CE) device is a multi-homing host, the CE device is respectively connected to a first PE device and a second PE device, the CE device is connected to the first PE device through a first link, and is connected to the second PE device through a second link. And the VXLAN tunnel is established between the PE devices and is used for communication transmission.
It can be understood that, at the initial stage of EVPN networking, the PE device and the CE device have respectively set corresponding main configurations under the EVPN networking, for example, for each transceiving interface, forwarding interface, group where a link is located, Virtual Local Area Network (VLAN) where the device is located, and subsequent message forwarding rules (for example, mapping from VLAN to VXLAN), which are not repeated herein.
Step 201, the first PE device receives a first EVPN route advertisement sent by the second PE device, where the first EVPN route advertisement includes address information of the CE device, a first route flag, and a first ethernet segment identifier ESI value.
Specifically, in this embodiment of the present application, after the CE device is powered on and brought online, an ARP packet is generated, where the ARP packet includes an MAC address and an IP address of the CE device. And the CE equipment sends an ARP message to the PE equipment. Through the existing hash calculation mode, the ARP packet sent by the CE device is transmitted to one of the first PE device or the second PE device.
In this embodiment, it is assumed that the ARP packet sent by the CE device is transmitted to the second PE device. And after receiving the ARP message, the second PE equipment acquires the MAC address and the IP address of the CE equipment from the ARP message. The second PE device learns the MAC address and the IP address of the CE device and establishes a routing table item corresponding to the CE device.
After learning the address information of the CE device, the second PE device generates a first EVPN routing advertisement, where the first EVPN routing advertisement includes the address information (MAC address and IP address) of the CE device, a first routing tag S, and a first Ethernet Segment Identifier (ESI) value.
It will be appreciated that the routing tag S is used to indicate the source of the address information of the advertised CE device. The ESI value is used to represent the link that the CE device accesses the PE device. In this embodiment of the present application, a CE device accesses different PE devices through multiple links at the same time, for example, the CE device accesses a first PE device through a first link and accesses a second PE device through a second link. The first link and the second link are called Ethernet Segments (ES), and the value for identifying one ES is called ESI.
In this embodiment of the present application, both the first PE device and the third PE device may receive the first EVPN route sent by the second PE device in an EVPN route synchronization manner.
After receiving the first EVPN route advertisement, the first PE device obtains address information (MAC address and IP address) of the CE device, the first routing tag S, and the first ESI value. Similarly, after receiving the first EVPN route advertisement, the third PE device obtains address information (MAC address and IP address) of the CE device, the first route tag S, and the first ESI value.
And the third PE device generates and stores a routing table entry corresponding to the CE device according to the address information (MAC address and IP address) of the CE device, the first routing tag S and the first ESI value.
Wherein the first routing flag S may be set to 0 by way of example and not limitation.
Step 202, when the first routing tag is a first value and a second ESI value identical to the first ESI value exists, the first PE device sends a second EVPN routing advertisement, which includes address information of the CE device and a second routing tag.
Specifically, after the first PE device acquires the address information (MAC address and IP address) of the CE device, the first routing tag S, and the first ESI value, the first PE device determines whether the value of the first routing tag S is the first value. If the value of the first routing tag S is a first value, then the first PE device looks up from the recorded local ESI values (also referred to as second ESI values) whether there is a second ESI value that is the same as the first ESI value.
If the second ESI value is present, the first PE device generates a second EVPN routing advertisement that includes address information (MAC address and IP address) of the CE device and a second routing tag S. In this embodiment of the present application, the second routing flag S is a second value, and the second routing flag is used to indicate that the address information of the CE device included in the second EVPN routing advertisement is non-locally learned address information.
In the embodiment of the present application, the first PE device also sends the second EVPN route advertisement in a similar procedure as the second PE device issues the EVPN route advertisement. And the PE equipment receiving the second EVPN route notification discards the second EVPN route notification or generates and stores a route table entry corresponding to the CE equipment according to the second EVPN route notification according to the own equipment role.
Wherein the second routing flag S may be set to 1 by way of example and not limitation.
Therefore, by applying the message processing method provided in this embodiment of the present application, when receiving a first EVPN route advertisement sent by a second PE device in the same multihomed member group, if a first route flag included in the first EVPN route advertisement is a first value, the first PE device generates and sends a second EVPN route advertisement, and marks the first route flag included in the second EVPN route advertisement as a second value, so that when receiving the second EVPN route advertisement, a third PE device also generates and stores a host route corresponding to the second EVPN route advertisement. The problem of cut-off caused by the fact that in the prior art, when VTEP equipment of a local learning host route is restarted in a fault mode or a link is disconnected and the route is withdrawn, a far-end VTEP equipment cannot realize forwarding of service flow only according to synchronous route announcement of PE equipment of the local learning host route is solved. When equipment of the local end learning host routing is restarted due to failure or links are disconnected and routes are withdrawn, other PE equipment in the same multi-homing member group notifies the host routing.
Optionally, in this embodiment of the present application, after step 201, a process in which the first PE device discards the first EVPN route advertisement is further included, and through this process, the first PE discards the first EVPN route advertisement in which the first route is marked as the second value, so as to avoid that the first PE device generates and stores the route entry corresponding to the CE device according to the first EVPN route advertisement again, and prevent the problem that the route entry corresponding to the CE device cannot be always aged.
Specifically, the first PE device determines whether the value of the first routing flag S is the second value. If the value of the first routing tag S is a second value, the first PE device determines that the address information of the CE device included in the first EVPN route advertisement is not locally learned by the sender, that is, the second PE device, but after the second PE device receives the EVPN route advertisement synchronized with other PE devices, the second PE device stores a route entry corresponding to the CE device and generates and advertises the route entry.
After the first PE device determines that the value of the first routing tag S is the second value, the first PE device looks up from the recorded local ESI values (which may also be referred to as second ESI values) whether there is a second ESI value that is the same as the first ESI value. And if the second ESI value exists, the first PE device directly discards the first EVPN routing advertisement, no routing table entry corresponding to the CE device is generated and stored any more, and meanwhile, the first PE device does not generate and issue the routing advertisement of the CE device any more.
It should be noted that, in this step, the first PE device may specifically refer to a PE device that has the same CE device connection with the second PE device and other PE devices, and the first PE device, the second PE device and other PE devices may also be referred to as multihomed members, that is, multiple PE devices accessed by the same CE device form a multihomed member group.
If the first PE device and the second PE device are not connected to the same CE device, such as the third PE device in fig. 3. After receiving the first EVPN route advertisement, the first PE device generates and stores a route entry corresponding to the CE device according to the address information (MAC address and IP address) of the CE device, the first route tag S, and the first ESI value.
Optionally, in this embodiment of the present application, the second EVPN route advertisement generated in step 202 further includes a second ESI value, where the second ESI value is used to enable the PE device that receives the second EVPN route advertisement to determine whether itself belongs to the same multi-homing membership group as the sender (the first PE device).
Specifically, as shown in fig. 3, a second PE device and a third PE device are taken as an example for explanation. And the second PE equipment and the third PE equipment can both receive a second EVPN route notification sent by the first PE equipment in an EVPN route synchronization mode.
Further, after receiving the second EVPN route advertisement, a second PE device connected to the same CE device as the first PE device obtains address information (MAC address and IP address) of the CE device, the first route tag S, and the second ESI value. The second PE device determines whether the value of the second routing tag S is a second value. The second PE device discards the second EVPN route advertisement if the second routing tag S has a second value and there is a first ESI value that is the same as the second ESI value.
Further, after receiving the second EVPN route advertisement, a third PE device, which is not connected to the same CE device as the first PE device and the second PE device, obtains address information (MAC address and IP address) of the CE device, the second route flag S, and the second ESI value therefrom. And the third PE device judges whether a link with the same value as the second ESI exists in the local link according to the second ESI value. If not, the third PE device determines that the third PE device and the first PE device are not in the same multi-homing member group. And the third PE device generates and stores the routing table entry corresponding to the CE device again according to the address information (the MAC address and the IP address) of the CE device, the second routing tag S and the second ESI value.
It should be noted that, in this embodiment of the present application, the third PE device previously receives the first EVPN routing advertisement sent by the second PE device, and determines, according to the first ESI value, that the third PE device is not in the same multi-homing membership group as the second PE device, and the third PE device generates and stores the routing entry corresponding to the CE device. That is, the third PE device simultaneously stores the routing table entry of the CE device included in the EVPN route advertisement sent by the first PE device and the second PE device, and stores the backup routing table entry of the CE device in the third PE device. Therefore, when a certain PE device of the first PE device and the second PE device fails, the third PE device can forward the local service traffic according to the locally stored routing table entry of the backup CE device, thereby avoiding the problem of cutoff.
It is to be appreciated that in the embodiment of the present application, the third PE device acts as a remote PE device, which may also use the second ESI value to determine whether the same ESI value has been received, which was sent by other PE devices. And if so, determining a link formed by the PE device sending the two ESI values and the third PE device as an equivalent link by the third PE device.
In one example, in the networking shown in fig. 3, after the EVPN networking is established, the first PE device and the second PE device respectively send an Ethernet Auto-discovery Route (Ethernet Auto-discovery Route) to the third PE device, where the Route includes a Route Distinguisher field (Route Distinguisher), an ESI field, an Ethernet Tag identification field (Ethernet Tag ID), and an MPLS Label field (MPLS Label). And if the third PE device receives the first Ethernet automatic discovery route sent by the first PE device, the third PE device records the field content. When the third PE device receives the second ethernet auto-discovery route sent by the second PE device, the third PE device searches whether ESI fields that are the same as ESI fields included in the second ethernet auto-discovery route and sent for other PE devices have been locally recorded. The third PE device determines, through searching and finding, that ESI fields included in the first ethernet auto discovery route sent by the first PE device and ESI fields included in the second ethernet auto discovery route are the same, and then the third PE device determines that links formed by the first PE device, the second PE device, and the third PE device are equivalent links.
Optionally, in this embodiment of the present application, before step 202, a process in which the first PE device converts address information of the CE device into locally learned address information is further included, and through this process, the first PE device stores and issues a routing table entry corresponding to the CE device on a forwarding plane, so as to ensure that the first PE device generates and advertises the second EVPN route advertisement.
Specifically, the first PE device generates a routing table entry corresponding to the CE device according to the acquired address information of the CE device, and the first PE device issues the generated routing table entry to a hardware chip (e.g., a forwarding chip), thereby implementing a process of converting the address information of the CE device into locally learned address information. Meanwhile, the source of the address information of the CE device is recorded in the routing table entry as the address information that is not locally learned.
Optionally, in this embodiment of the present application, after step 202, a process in which the first PE device receives an EVPN route revocation, updates a source of the recorded address information of the CE device, and the first PE device sends an EVPN route advertisement again is further included, and the process of advertising is performed, where the first PE device uses the address information of the CE device as locally learned address information and sends the EVPN route advertisement again, so as to ensure that the first PE device and other PE devices can still forward traffic of the CE device when the second PE device fails.
Specifically, when the second PE device itself fails or a second link between the second PE device and the CE device fails, the second PE device generates and transmits an EVPN route withdrawal to the first PE device, where the EVPN route withdrawal includes address information of the CE device. After the first PE device receives the EVPN route revocation sent by the second PE device, the first PE device finds the route entry corresponding to the CE device according to the address information of the CE device, and updates the source of the address information of the CE device recorded in the route entry to the locally learned address information.
Meanwhile, the first PE device generates a third EVPN route advertisement again, where the third EVPN route advertisement includes address information of the CE device and a third route flag S, and the first PE device sets the third route flag S to a first value, which indicates that the address information of the CE device is locally learned by the first PE device.
It will be appreciated that the ESI value is also included in the third EVPN route advertisement and is used to allow the receiver to determine from this value whether itself is in the same multihomed group as the sender, or to allow receivers not in the same multihomed group to determine from this value whether the sender forms an equivalent link with other PEs.
The first PE device sends the third EVPN route advertisement again, so that the PE device (e.g., the third PE device in this embodiment) that receives the third EVPN route advertisement updates and stores the route entry corresponding to the CE device, and ages the route entry corresponding to the first EVPN route advertisement sent by the second PE device.
It can be understood that, after receiving the EVPN route withdrawal, the first PE device may further determine whether the reason for the route withdrawal is a link failure according to the link advertisement message sent by the second PE device. After the first PE device receives the EVPN route revocation sent by the second PE device, at this time, if the first PE device also receives the link advertisement message sent by the second PE device, the first PE device may determine that the reason for the current route revocation is the second link failure according to the link advertisement message.
The following describes in detail a message processing method provided in the embodiment of the present application, by taking the networking diagram shown in fig. 3 as an example.
As shown in fig. 3, in the embodiment of the present application, after a CE device is powered on and brought online, an ARP packet is generated, where the ARP packet includes an MAC address and an IP address of the CE device. And the CE equipment sends an ARP message to the PE equipment. Through the existing hash calculation mode, the ARP packet sent by the CE device is transmitted to one of the first PE device or the second PE device.
In this embodiment, it is assumed that an ARP packet sent by a CE device is transmitted to a second PE device in a hash calculation manner (i.e., hash calculation is performed according to a source MAC, and the packet of the CE device is sent to the second PE device). And after receiving the ARP message, the second PE equipment acquires the MAC address and the IP address of the CE equipment from the ARP message. The second PE device learns the MAC address and the IP address of the CE device and establishes a routing table item corresponding to the CE device.
After learning the address information of the CE device, the second PE device generates a first EVPN route advertisement, where the first EVPN route advertisement includes the address information (MAC address and IP address) of the CE device, a first route flag S, and a first ESI value.
In the embodiment of the present application, the field reserved in the EVPN two-type route advertisement message specified by the existing RFC7432 protocol is used to carry the aforementioned route tag S. Specifically, as shown in the MAC Mobility Extended attribute field of fig. 4, the RFC7432 protocol specifies a MAC Mobility Extended Community (MAC Mobility Extended Community) field, which is used to indicate the migration attribute of the MAC address, and which is advertised to the outside together with the EVPN type two route.
As shown in fig. 4, this field includes a Reserved (Reserved) field. In this embodiment of the application, one bit in the Reserved field is multiplexed, that is, a Flag (Flag) field is newly defined in the Reserved field as EVPN _ MAC _ Flag _ RESYNC, as shown in the S field in fig. 5. The S field is used to indicate the source of the advertised host route, i.e., the advertised host route is generated for non-local learning, but is derived from member synchronization advertisements within the multi-homed member group.
It will be appreciated that the other fields of the MAC mobile extension attribute field are unchanged and still refer to existing protocol specifications.
In this embodiment of the present application, both the first PE device and the third PE device may receive the first EVPN route sent by the second PE device in an EVPN route synchronization manner.
And after receiving the first EVPN route announcement, the third PE equipment also obtains the information from the first EVPN route announcement, and generates and stores a route table item corresponding to the CE equipment.
After receiving the first EVPN route advertisement, the first PE device obtains address information (MAC address and IP address) of the CE device, the first routing tag S, and the first ESI value.
In one scenario, the first PE device determines whether the value of the first routing tag S is a first value. If the value of the first routing tag S is a first value, then the first PE device looks up from the recorded local ESI values (also referred to as second ESI values) whether there is a second ESI value that is the same as the first ESI value.
If the second ESI value exists, the first PE device generates a second EVPN route advertisement including address information (MAC address and IP address) of the CE device, a second route tag S, and the second ESI value. In this embodiment of the present application, the second routing flag is a second value, and the second routing flag is used to indicate that the address information of the CE device included in the second EVPN route advertisement is address information that is not locally learned.
Meanwhile, the first PE device generates a routing table entry corresponding to the CE device according to the acquired address information of the CE device, and the first PE device issues the generated routing table entry to a hardware chip (e.g., a forwarding chip), thereby implementing a process of converting the address information of the CE device into locally learned address information. Meanwhile, the source of the address information of the CE device is recorded in the routing table entry as the address information that is not locally learned.
The first PE device transmits a second EVPN route advertisement. And the second PE equipment and the third PE equipment can both receive a second EVPN route notification sent by the first PE equipment in an EVPN route synchronization mode.
After receiving the second EVPN route advertisement, the second PE device obtains address information (MAC address and IP address), a second route tag S, and a second ESI value of the CE device. The second PE device determines whether the value of the second routing tag S is a second value. The second PE device discards the second EVPN route advertisement if the second routing tag S has a second value and there is a first ESI value that is the same as the second ESI value.
And after receiving the second EVPN route advertisement, the third PE equipment generates and stores a route table item corresponding to the CE equipment. It is to be understood that the third PE device receives the first EVPN routing advertisement sent by the second PE device first, and the third PE device generates and stores a routing table entry corresponding to the CE device. That is, the third PE device simultaneously stores the routing table entry of the CE device included in the EVPN route advertisement sent by the first PE device and the second PE device, and stores the backup routing table entry of the CE device in the third PE device. Therefore, when a certain PE device of the first PE device and the second PE device fails, the third PE device can forward the local service traffic according to the locally stored routing table entry of the backup CE device, thereby avoiding the problem of cutoff.
In another scenario, the first PE device determines whether the value of the first routing flag S is a second value. If the value of the first routing tag S is a second value, the first PE device determines that the address information of the CE device included in the first EVPN route advertisement is not locally learned by the sender, that is, the second PE device, but is generated after the second PE device receives the EVPN route advertisements sent by other PE devices and stores the route entry corresponding to the CE device.
After the first PE device determines that the value of the first routing tag S is the second value, the first PE device looks up whether there is a second ESI value identical to the first ESI value from the recorded local ESI values (i.e., the second ESI values). If the second ESI value exists, the first PE device directly discards the first EVPN route advertisement, and does not generate and store a route entry corresponding to the CE device any more, and meanwhile, the first PE device is not generating and issuing a route advertisement of the CE device either.
In addition, when the second PE device itself fails or a second link between the second PE device and the CE device fails, the second PE device generates and transmits an EVPN route withdrawal to the first PE device, the EVPN route withdrawal including address information of the CE device. After the first PE device receives the EVPN route revocation sent by the second PE device, the first PE device finds the route entry corresponding to the CE device according to the address information of the CE device, and updates the source of the address information of the CE device recorded in the route entry to the locally learned address information.
Meanwhile, the first PE device generates a third EVPN route advertisement again, where the third EVPN route advertisement includes address information of the CE device and a third route flag S, and the first PE device sets the third route flag S to a first value, which indicates that the address information of the CE device is locally learned by the first PE device.
It will be appreciated that the ESI value is also included in the third EVPN route advertisement and is used to allow the receiver to determine from this value whether itself is in the same multihomed group as the sender, or to allow receivers not in the same multihomed group to determine from this value whether the sender forms an equivalent link with other PEs.
The first PE device sends the third EVPN route advertisement again, so that the PE device (e.g., the third PE device in this embodiment) that receives the third EVPN route advertisement updates and stores the route entry corresponding to the CE device, and ages the route entry corresponding to the first EVPN route advertisement sent by the second PE device.
Based on the same inventive concept, the embodiment of the application also provides a message processing device corresponding to the message processing method.
Referring to fig. 6, fig. 6 is a message processing apparatus shown in an exemplary embodiment of the present application, where the apparatus is applied to a first PE device, the first PE device is located in an ethernet virtual private network EVPN, the EVPN further includes a second PE device and a CE device, and the CE device is respectively accessed to the first PE device and the second PE device, and the apparatus includes:
a receiving unit 610, configured to receive a first EVPN route advertisement sent by a second PE device, where the first EVPN route advertisement includes address information of a CE device, a first route flag, and a first ethernet segment identifier ESI value;
a sending unit 620, configured to send a second EVPN route advertisement when the first route flag is a first value and a second ESI value identical to the first ESI value exists, where the second EVPN route advertisement includes address information of the CE device and a second route flag;
the second route mark is a second value and is used for indicating that the address information of the CE equipment included in the second EVPN route advertisement is non-locally learned address information; the ESI value is used to represent the link that the CE device accesses the PE device.
Optionally, the apparatus further comprises: a processing unit 630, configured to discard the first EVPN route advertisement when the first route flag is the second value and there is a second ESI value that is the same as the first ESI value.
Optionally, the second EVPN route advertisement further includes a second ESI value for causing a third PE device receiving the second EVPN route advertisement to look up whether a third ESI value identical to the second ESI value already exists.
Optionally, the apparatus further comprises: a converting unit 640, configured to convert the address information of the CE device into locally learned address information, and record the source of the address information of the CE device as non-locally learned address information.
Optionally, the receiving unit 610 is further configured to receive an EVPN route withdrawal sent by the second PE device, where the EVPN route withdrawal includes address information of the CE device;
the device also includes: an updating unit 650 for updating the source of the recorded address information of the CE device to locally learned address information;
the sending unit is further configured to send a third EVPN route advertisement, where the third EVPN route advertisement includes address information of the CE device and a third route flag, and the third route flag is the first value.
Therefore, by applying the message processing apparatus provided in this embodiment of the present application, when receiving a first EVPN route advertisement sent by a second PE device in the same multihomed member group, if a first route flag included in the first EVPN route advertisement is a first value, the first PE device generates and sends a second EVPN route advertisement, and marks the first route flag included in the second EVPN route advertisement as a second value, so that when receiving the second EVPN route advertisement, a third PE device also generates and stores a host route corresponding to the second EVPN route advertisement. The problem of cut-off caused by the fact that in the prior art, when VTEP equipment of a local learning host route is restarted in a fault mode or a link is disconnected and the route is withdrawn, a far-end VTEP equipment cannot realize forwarding of service flow only according to synchronous route announcement of PE equipment of the local learning host route is solved. When the local end learns the equipment failure restart or the link disconnection and the route cancellation of the host route, other PE equipment in the same multi-homing member group notifies the host route, and the remote PE equipment stores the host routes notified by a plurality of PE equipment in the same multi-homing member group, so that the occurrence of cut-off in the group network is avoided.
Based on the same inventive concept, the embodiment of the present application further provides a PE device, as shown in fig. 7, including a processor 710, a transceiver 720, and a machine-readable storage medium 730, where the machine-readable storage medium 730 stores machine-executable instructions capable of being executed by the processor 710, and the processor 710 is caused by the machine-executable instructions to perform the message processing method provided in the embodiment of the present application.
The computer-readable storage medium 730 may include a RAM (Random Access Memory) and a NVM (Non-volatile Memory), such as at least one disk Memory. Optionally, the computer-readable storage medium 730 may also be at least one memory device located remotely from the processor 710.
The Processor 710 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA), or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
In the embodiment of the present application, the processor 710 reads the machine executable instructions stored in the machine readable storage medium 730, and the machine executable instructions cause the processor 710 itself and the call transceiver 720 to execute the message processing method described in the embodiment of the present application.
Additionally, embodiments of the present application provide a machine-readable storage medium 730, where the machine-readable storage medium 730 stores machine-executable instructions, which when invoked and executed by the processor 710, cause the processor 710 itself and the invoking transceiver 720 to perform the message processing methods described in the embodiments of the present application.
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.
As for the PE device and the machine-readable storage medium, the content of the related method is substantially similar to that of the foregoing method embodiment, so that the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims (8)

1. A message processing method is applied to a first PE device, wherein the first PE device is in an Ethernet Virtual Private Network (EVPN), the EVPN further comprises a second PE device and a CE device, the CE device is respectively accessed to the first PE device and the second PE device, and the method comprises the following steps:
the first PE device receives a first EVPN routing advertisement sent by the second PE device, wherein the first EVPN routing advertisement comprises address information of the CE device, a first routing tag and a first Ethernet Segment Identification (ESI) value;
when the first routing tag is a first value and a second ESI value identical to the first ESI value exists, the first PE device sends a second EVPN routing advertisement, wherein the second EVPN routing advertisement comprises address information of the CE device and a second routing tag;
the second routing tag is a second value, and the second routing tag is used for indicating that the address information of the CE device included in the second EVPN routing advertisement is non-locally learned address information;
the ESI value is used for representing a link of the CE device accessing the PE device;
the method further comprises the following steps: when the first routing tag is a second value and there is a second ESI value that is the same as the first ESI value, the first PE device discards the first EVPN route advertisement;
the first routing tag is used for indicating that the address information of the CE device included in the first EVPN route advertisement is locally learned address information.
2. The method as recited in claim 1, wherein the second EVPN route advertisement further comprises the second ESI value for causing a third PE device receiving the second EVPN route advertisement to look up whether a third ESI value identical to the second ESI value already exists.
3. The method of claim 1, wherein prior to the first PE device sending a second EVPN route advertisement, the method further comprises:
the first PE device converts the address information of the CE device into locally learned address information and records that the source of the address information of the CE device is non-locally learned address information.
4. The method of claim 3, further comprising:
the first PE device receives EVPN route revocation sent by the second PE device, wherein the EVPN route revocation comprises address information of the CE device;
the first PE equipment updates the recorded source of the address information of the CE equipment into locally learned address information;
the first PE device sends a third EVPN routing advertisement, the third EVPN routing advertisement including address information of the CE device and a third routing tag, the third routing tag being the first value.
5. The message processing apparatus is applied to a first PE device, the first PE device is in an ethernet virtual private network EVPN, the EVPN further includes a second PE device and a CE device, the CE device is respectively accessed to the first PE device and the second PE device, the apparatus includes:
a receiving unit, configured to receive a first EVPN route advertisement sent by the second PE device, where the first EVPN route advertisement includes address information of the CE device, a first route flag, and a first ethernet segment identifier ESI value;
a sending unit, configured to send a second EVPN route advertisement when the first route flag is a first value and a second ESI value identical to the first ESI value exists, where the second EVPN route advertisement includes address information of the CE device and a second route flag;
the second routing tag is a second value, and the second routing tag is used for indicating that the address information of the CE device included in the second EVPN routing advertisement is non-locally learned address information;
the ESI value is used for representing a link of the CE device accessing the PE device;
the device further comprises: a processing unit configured to discard the first EVPN route advertisement when the first route flag is a second value and there is a second ESI value that is the same as the first ESI value;
the first routing tag is used for indicating that the address information of the CE device included in the first EVPN route advertisement is locally learned address information.
6. The apparatus as recited in claim 5, wherein said second EVPN route advertisement further comprises said second ESI value, for causing a third PE device receiving said second EVPN route advertisement to look up whether a third ESI value identical to said second ESI value already exists.
7. The apparatus of claim 5, further comprising:
and the conversion unit is used for converting the address information of the CE equipment into locally learned address information and recording the source of the address information of the CE equipment as non-locally learned address information.
8. The apparatus according to claim 7, wherein the receiving unit is further configured to receive EVPN route withdraw sent by the second PE device, where the EVPN route withdraw includes address information of the CE device;
the device further comprises: an updating unit, configured to update a source of the recorded address information of the CE device to locally learned address information;
the sending unit is further configured to send a third EVPN route advertisement, where the third EVPN route advertisement includes address information of the CE device and a third route flag, and the third route flag is the first value.
CN202010032219.5A 2020-01-13 2020-01-13 Message processing method and device Active CN111277482B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010032219.5A CN111277482B (en) 2020-01-13 2020-01-13 Message processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010032219.5A CN111277482B (en) 2020-01-13 2020-01-13 Message processing method and device

Publications (2)

Publication Number Publication Date
CN111277482A CN111277482A (en) 2020-06-12
CN111277482B true CN111277482B (en) 2022-01-18

Family

ID=71002974

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010032219.5A Active CN111277482B (en) 2020-01-13 2020-01-13 Message processing method and device

Country Status (1)

Country Link
CN (1) CN111277482B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114143262A (en) * 2020-09-03 2022-03-04 华为技术有限公司 MAC route updating method, equipment and system
CN114697263A (en) 2020-12-15 2022-07-01 中兴通讯股份有限公司 Information processing method, node, and computer-readable storage medium
CN114760248B (en) * 2020-12-28 2023-11-17 北京华为数字技术有限公司 Message transmission method, device and system
CN117811986A (en) * 2022-09-26 2024-04-02 中兴通讯股份有限公司 Route switching method, electronic equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105790996A (en) * 2014-12-26 2016-07-20 北京华为朗新科技有限公司 Distributed gateway backup processing method and network equipment
CN107547370A (en) * 2017-09-25 2018-01-05 新华三技术有限公司 Flow forwarding method, apparatus and system
CN109218182A (en) * 2018-11-21 2019-01-15 新华三技术有限公司 A kind of synchronous method and device of routing iinformation
CN109218178A (en) * 2017-07-05 2019-01-15 华为技术有限公司 A kind of message processing method and the network equipment
CN109218202A (en) * 2018-08-24 2019-01-15 新华三技术有限公司 route synchronization method and device
US10200274B1 (en) * 2017-02-17 2019-02-05 Juniper Networks, Inc. Enhanced traffic flow in software-defined networking controller-based architecture
CN109995651A (en) * 2019-03-28 2019-07-09 新华三技术有限公司 A kind of pseudo line establishing method and device
CN110661701A (en) * 2018-06-30 2020-01-07 华为技术有限公司 Communication method, equipment and system for avoiding loop

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110050445B (en) * 2016-12-09 2021-01-05 华为技术有限公司 Method, device and system for sending and receiving message
US10164876B2 (en) * 2016-12-09 2018-12-25 Cisco Technology, Inc. Efficient multicast traffic forwarding in EVPN-based multi-homed networks
CN108199947B (en) * 2018-01-31 2020-10-09 新华三技术有限公司 Designated forwarder DF election method and device
CN108600109B (en) * 2018-03-19 2020-12-04 新华三技术有限公司 Message forwarding method and device
CN108540386B (en) * 2018-04-19 2021-07-23 新华三技术有限公司 Method and device for preventing service flow interruption

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105790996A (en) * 2014-12-26 2016-07-20 北京华为朗新科技有限公司 Distributed gateway backup processing method and network equipment
US10200274B1 (en) * 2017-02-17 2019-02-05 Juniper Networks, Inc. Enhanced traffic flow in software-defined networking controller-based architecture
CN109218178A (en) * 2017-07-05 2019-01-15 华为技术有限公司 A kind of message processing method and the network equipment
CN107547370A (en) * 2017-09-25 2018-01-05 新华三技术有限公司 Flow forwarding method, apparatus and system
CN110661701A (en) * 2018-06-30 2020-01-07 华为技术有限公司 Communication method, equipment and system for avoiding loop
CN109218202A (en) * 2018-08-24 2019-01-15 新华三技术有限公司 route synchronization method and device
CN109218182A (en) * 2018-11-21 2019-01-15 新华三技术有限公司 A kind of synchronous method and device of routing iinformation
CN109995651A (en) * 2019-03-28 2019-07-09 新华三技术有限公司 A kind of pseudo line establishing method and device

Also Published As

Publication number Publication date
CN111277482A (en) 2020-06-12

Similar Documents

Publication Publication Date Title
CN111277482B (en) Message processing method and device
CN111510379B (en) EVPN message processing method, device and system
CN104243318B (en) MAC address learning method and device in VXLAN networks
CN109218178B (en) Message processing method and network equipment
US9001644B2 (en) Ethernet virtual private network system for providing fast protection for access rings
US9929940B2 (en) Update of MAC routes in EVPN single-active topology
CN107733793B (en) Forwarding table item maintenance method and device
US10116467B2 (en) Ethernet tag mapping in virtual private wire service using ethernet virtual private network
CN109729012B (en) Unicast message transmission method and device
US20200244485A1 (en) Packet processing method, device, and system
US10193707B2 (en) Packet transmission method and apparatus
US9300524B2 (en) Message forwarding between geographically dispersed network sites
CN108259303B (en) Message forwarding method and device
WO2018103099A1 (en) Method, device and system for sending and receiving message
CN108964940B (en) Message sending method and device and storage medium
CN106161253B (en) Message processing method and device
CN112422398B (en) Message transmission method and communication device
CN108199968B (en) Route processing method and device
US9806996B2 (en) Information processing system and control method for information processing system
WO2022121466A1 (en) Data processing method and device for ethernet virtual private network, and storage medium
CN108600069B (en) Link switching method and device
CN108540386B (en) Method and device for preventing service flow interruption
CN103297338A (en) Virtual private network (VPN) router advertisement method and device
WO2018107974A1 (en) Routing switching-back method, and controller and system
CN114598635A (en) Message transmission method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant