WO2018166252A1 - Evpn报文处理方法、设备及系统 - Google Patents

Evpn报文处理方法、设备及系统 Download PDF

Info

Publication number
WO2018166252A1
WO2018166252A1 PCT/CN2017/115820 CN2017115820W WO2018166252A1 WO 2018166252 A1 WO2018166252 A1 WO 2018166252A1 CN 2017115820 W CN2017115820 W CN 2017115820W WO 2018166252 A1 WO2018166252 A1 WO 2018166252A1
Authority
WO
WIPO (PCT)
Prior art keywords
mac
forwarding entry
advertisement route
mac address
message
Prior art date
Application number
PCT/CN2017/115820
Other languages
English (en)
French (fr)
Inventor
王海波
庄顺万
刘乔
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to EP17900927.9A priority Critical patent/EP3591912B1/en
Priority to ES17900927T priority patent/ES2886949T3/es
Priority to EP21171105.6A priority patent/EP3923527A1/en
Publication of WO2018166252A1 publication Critical patent/WO2018166252A1/zh
Priority to US16/570,807 priority patent/US11310079B2/en
Priority to US17/697,245 priority patent/US11677587B2/en

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]
    • H04L12/4675Dynamic sharing of VLAN information amongst network nodes
    • 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/02Topology update or discovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • H04L45/033Topology update or discovery by updating distance vector protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/22Alternate 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/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/50Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]
    • 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
    • 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/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/02Network architectures or network communication protocols for network security for separating internal from external traffic, e.g. firewalls
    • H04L63/0272Virtual private networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method, device, and system for processing an Ethernet virtual private network (EVPN) packet.
  • EVPN Ethernet virtual private network
  • Ethernet Virtual Private Network is a virtual private network that provides Layer 2 interconnection on a Multi-Protocol Label Switching (MPLS) network. Private Network, VPN) technology.
  • MPLS Multi-Protocol Label Switching
  • VPN Private Network
  • MAC Media Access Control
  • PE Provider Edge
  • Address learning, the MAC address learning and publishing process is transferred from the traditional data plane to the control plane, which greatly reduces the MAC address flooding in the traffic flooding mode, and can support the user edge device (English: Customer Edge, CE) multi-homing Enter EVPN and manage MAC addresses for load balancing.
  • a CE device can be connected to a PE device through multiple access methods.
  • a virtual local area network VLAN
  • VLAN virtual local area network
  • network 100 network 100 includes a backbone network provided by a service provider and a plurality of E-VPN sites.
  • the backbone network includes a first PE device PE1, a second PE device PE2, and a third PE device PE3, and a plurality of P (Provider) devices (not shown).
  • the plurality of E-VPN sites include site1 and site2. Site1 and site2 belong to the same E-VPN1.
  • Terminal device A with MAC address MAC1 is connected to CE1, and CE1 is dual-homed to PE1 and PE2.
  • Terminal device B with MAC address MAC2 accesses CE2, and CE2 accesses PE3.
  • PE1 learns the MAC address of the terminal device A from CE1.
  • PE2 did not learn the MAC address of terminal device A from CE1.
  • the PE1 sends an EVPN Media Access Control/Internet Protocol Advertisement (PE) message to the PE3 through the BGP Update (Update) message, that is, the MAC route to the terminal device A is advertised to the PE3.
  • the PE2 can not discover the MAC1, but the PE2 can advertise the EPVN Ethernet auto-discovery route to the PE3.
  • the PE3 can know that both the PE1 and the PE2 can reach the terminal device A, that is, the PE3 is based on the alias. Aliasing) forms a load sharing. It should be noted that, in FIG. 1, the terminal device A accesses the PE device through the CE1 as an example.
  • the terminal device A can directly access the PE device as a CE device.
  • the terminal device A The MAC address is the MAC address of the CE device.
  • the terminal device A accesses the PE device through the CE device as an example.
  • the solution and the end The scheme for the device to access the PE device through the CE device is similar, and is not mentioned here.
  • PE1 and PE2 do not perform effective load sharing on the known unicast traffic with the destination MAC address being MAC1. It not only wastes the bandwidth resources of PE2 to CE1, but also consumes the bandwidth resources of PE1 to CE1. In the above solution, system resources are wasted, and the technical advantages of EVPN cannot be effectively utilized.
  • the present application provides a packet processing method, which is used to solve the problem that a PE device in the prior art cannot forward traffic to a CE device that accesses multiple PE devices (including the PE), thereby causing multiple PE devices. There is no technical problem of effective load sharing between them.
  • the present application provides a packet processing method, which is applied to an EVPN, where a user edge CE device is connected to a first interface of a first carrier edge PE device via a first link, and the CE device is configured to be The link is connected to the second interface of the first PE device.
  • the first PE device receives the first message sent by the second PE device.
  • the first message carries a first media access control/Internet Protocol advertisement routing MAC/IP Advertisement Route.
  • the first MAC/IP Advertisement Route includes a MAC address and an Ethernet segment identifier ESI for identifying an Ethernet segment ES, and the MAC address included in the first MAC/IP Advertisement Route is a MAC address or a location of the CE device.
  • the Ethernet segment ES includes the first link and the second link.
  • the first PE device determines, according to the Ethernet segment identifier ESI, that the interface that the first PE device connects to the CE device is the first interface. Further, the first PE device generates a first MAC forwarding entry according to the determined first interface and the MAC address included in the first MAC/IP Advertisement Route.
  • the first MAC forwarding entry includes the MAC address included in the first MAC/IP Advertisement Route, and the outbound interface identifier included in the first MAC forwarding entry is an identifier of the first interface, where the first The MAC forwarding entry is used by the first PE device to forward, to the CE device, a packet whose destination MAC address is a MAC address included in the first MAC/IP Advertisement Route.
  • the second PE device notifies the first PE device of the MAC route learned from the CE.
  • the first PE device is configured to generate the first MAC forwarding entry according to the received MAC route.
  • the first PE device may send the first MAC link to the CE device according to the first MAC forwarding entry. Forward the data stream.
  • the terminal device accesses the first PE device through the CE device, the CE device forwards the data stream to the terminal device.
  • the first message further carries a next hop network address
  • the first message further carries a next hop network address
  • the next hop network address is the network address of the second PE device, for example, the loopback lookback address of the second PE device.
  • the method further includes: the first PE device acquiring a network address of the second PE device according to the first message; and the first PE device according to the first MAC/IP Advertisement Route
  • the MAC address and the network address of the second PE device generate a second MAC forwarding entry.
  • the second MAC forwarding entry includes a MAC address included in the first MAC/IP Advertisement Route, and the second MAC forwarding entry included in the second MAC forwarding entry is a network of the second PE device. address.
  • the second MAC forwarding entry is used by the first PE device to forward a packet whose destination MAC address is a MAC address included in the first MAC/IP Advertisement Route. .
  • the first PE device When the first PE device receives the known unicast traffic destined for the terminal device (the destination MAC address carried in the data packet is the MAC address of the terminal device), the first PE device queries the MAC forwarding table, where When the second link is in the normal working state, the packet is forwarded directly through the CE device by using the first link according to the indication of the first MAC forwarding entry. When the first link is faulty, the first PE device receives the known unicast traffic destined for the terminal device (the destination MAC address carried in the data packet is the MAC address of the terminal device), according to the second MAC address And transmitting the traffic to the second PE device, and forwarding the traffic to the CE device by using the second PE device, thereby improving the convergence speed of the fault.
  • the first message is a first border gateway protocol update BGP Update message.
  • the method further includes: the first PE device generates a second message, the second The message carries the second MAC/IP Advertisement Route and the next hop network address.
  • the second MAC/IP Advertisement Route includes a MAC address and the Ethernet segment identifier ESI
  • the second MAC/IP Advertisement Route includes a MAC address that is the same as the MAC address included in the first MAC/IP Advertisement Route.
  • the next hop network address carried by the second message is a network address of the first PE device.
  • the first PE device sends the second message to the second PE device, where the second message is used by the second PE device to generate a third MAC forwarding entry and a fourth MAC forwarding entry.
  • the third MAC forwarding entry is used by the second PE device to forward a packet whose destination MAC address is a MAC address included in the second MAC/IP Advertisement Route, the third MAC forwarding entry.
  • the MAC address included in the second MAC/IP Advertisement Route is included, and the identifier of the outbound interface included in the third MAC forwarding entry is an identifier of the first interface.
  • the fourth MAC forwarding entry is used by the second PE device to forward a packet whose destination MAC address is a MAC address included in the second MAC/IP Advertisement Route.
  • the fourth MAC forwarding entry includes a MAC address included in the second MAC/IP Advertisement Route, and the fourth forwarding network entry included in the fourth forwarding entry is a network address of the first PE device.
  • the first PE device After receiving the first message, the first PE device generates a local primary MAC routing entry and a standby MAC routing table for fast rerouting on the control plane according to the information carried in the first message. item. Further, the control plane sends the foregoing primary MAC routing entry and the standby MAC routing entry to the forwarding plane, and generates a first MAC forwarding entry and a second MAC forwarding entry for implementing fast re-routing. After the first PE device receives the first message, the first PE device sends the local MAC address back to the second PE device, so that the second PE The device generates an alternate MAC routing entry for implementing fast slave routes.
  • the MAC route learned by the second PE device from the CE device may be Take the local MAC route, that is, the primary MAC route.
  • the local MAC route of the second PE device is revoked.
  • the second PE device may generate the local MAC route again according to the second MAC/IP Advertisement Route route advertised by the first PE device, to guide the The CE device forwards traffic. Therefore, after the second link sends a fault and recovers again, the route redirection can be quickly implemented to achieve fast convergence of the fault.
  • the local MAC address of the PE device in the present application refers to a route for directing unicast traffic to the CE device.
  • the destination MAC address included in the local MAC route is the CE.
  • the identifier of the outbound interface included in the local MAC address is the interface identifier of the CE device connected to the CE device.
  • the second message further carries indication information, where the indication information is used to indicate that the second PE device avoids the first after receiving the second MAC routing message.
  • the PE device sends a MAC/IP Advertisement Route that reaches the MAC address included in the second MAC/IP Advertisement Route, thereby avoiding forming a message loop.
  • the present application provides a packet processing method, where the method is applied to an EVPN, where a user edge CE device is connected to a first interface of a first carrier edge PE device via a first link, the CE device Connected to the second interface of the second PE device via the second link.
  • the second PE device generates a first message, where the first message carries a first MAC/IP Advertisement Route that arrives at the CE device.
  • the first MAC/IP Advertisement Route includes a MAC address and an Ethernet segment identifier ESI for identifying an Ethernet segment ES, where the MAC address included in the first MAC/IP Advertisement Route is a MAC address of the CE device or the MAC address of the terminal device under the jurisdiction of the CE device.
  • the Ethernet segment ES includes the first link and the second link.
  • the second PE device sends the first message to the first PE device, where the first MAC/IP Advertisement Route is used by the first PE device to generate a first MAC forwarding entry.
  • the destination MAC address included in the first MAC forwarding entry is a MAC address included in the first MAC/IP Advertisement Route;
  • the outbound interface identifier included in the first MAC forwarding entry is an identifier of the first interface
  • the first MAC forwarding entry is used by the first PE device to forward, to the CE device, a packet whose destination MAC address is a MAC address included in the first MAC/IP Advertisement Route.
  • the second PE device sends the MAC device to the first PE device. Notifying the MAC route of the CE device or the terminal device accessing the CE device.
  • the first PE device is configured to generate the first MAC forwarding entry according to the received MAC route.
  • the first PE device may directly send the second link to the CE according to the first MAC forwarding entry. The device forwards the data stream.
  • multiple PE devices can effectively form load sharing and implement reasonable utilization of bandwidth resources.
  • the first message is a first border gateway protocol update BGP Update message.
  • the method further includes: the second PE device receiving the first PE device to send The second message.
  • Place The second message carries the second MAC/IP Advertisement Route and the next hop network address.
  • the second MAC/IP Advertisement Route includes a destination MAC address and the Ethernet segment identifier ESI; and the destination MAC address in the second MAC/IP Advertisement Route is a MAC included in the first MAC/IP Advertisement Route
  • the address, the next hop network address carried by the second message is a network address of the first PE device, for example, a loopback loopback address of the first PE device.
  • the Ethernet segment identifier ESI is used by the second PE device to determine that the interface of the second PE device connected to the CE device is the second interface.
  • the determined second interface, the destination MAC address included in the second MAC/IP Advertisement Route is used by the second PE device to generate a third MAC forwarding entry.
  • the destination MAC address included in the third MAC forwarding entry is the MAC address included in the second MAC/IP Advertisement Route, and the identifier of the outbound interface included in the third forwarding entry is the identifier of the second interface.
  • the third MAC forwarding entry is used by the second PE device to forward an entry of a packet whose destination MAC address is a MAC address included in the second MAC/IP Advertisement Route.
  • the method further includes: the second PE device device generates a fourth MAC forwarding entry according to the MAC address included in the second MAC/IP Advertisement Route and the network address of the first PE device.
  • the fourth MAC forwarding entry includes a MAC address included in the second MAC/IP Advertisement Route, and the fourth hop network address included in the fourth MAC forwarding entry is a network address of the first PE device.
  • the fourth MAC forwarding entry is used by the second PE device to forward a packet whose destination MAC address is a MAC address included in the second MAC/IP Advertisement Route. The entry.
  • the second PE device After the second PE device generates the third forwarding entry and the fourth forwarding entry, the second PE device implements fast weight according to the third MAC forwarding entry and the fourth MAC forwarding entry. Route the FRR.
  • the second PE device receives the known unicast traffic destined for the terminal device (the destination MAC address carried in the data packet is the MAC address of the terminal device)
  • the second PE device queries the MAC forwarding table when the second link
  • the packet is forwarded directly to the CE device through the network device according to the indication of the third MAC forwarding entry.
  • the second PE device When the second link is faulty, the second PE device receives the known unicast traffic destined for the terminal device (the destination MAC address carried in the data packet is the MAC address of the terminal device), and the second PE device queries the MAC address.
  • the forwarding table forwards the traffic to the first PE device according to the indication of the alternate forwarding entry, that is, the indication of the fourth MAC forwarding entry, and forwards the traffic to the CE device by using the first PE device. Traffic, which increases the convergence speed of the fault.
  • the second MAC routing message further carries indication information.
  • the method further includes: the second PE device avoiding sending the arrival to the first PE device according to the indication of the indication information
  • the MAC address of the second MAC/IP Advertisement Route (which may also be referred to as a MAC/IP Advertisement Route that arrives at the CE device or reaches the terminal device that accesses the CE device). This can effectively avoid the formation of a message loop.
  • the present application provides a first carrier edge PE device, the first PE device being configured to perform the method in the first aspect and any of the possible aspects of the first aspect.
  • the first PE device comprises means for implementing the method of the first aspect and any of the possible designs of the first aspect.
  • the present application provides a second carrier edge PE device, where the second PE device is configured to perform the method in any of the second aspect and the second aspect. Including the second aspect and the second party A module of the method in any of the possible designs.
  • the application provides a first PE device, where the first PE device includes: an input interface, an output interface, a processor, and a memory. Wherein, the input interface, the output interface, the processor and the memory can be connected by a bus system.
  • the memory is for storing a program for executing a program in the memory to perform the method of any of the first aspect or the first aspect of the first aspect.
  • the application provides a second PE device, where the second PE device includes: an input interface, an output interface, a processor, and a memory.
  • the input interface, the output interface, the processor and the memory can be connected by a bus system.
  • the memory is for storing a program for executing a program, instruction or code in the memory to perform the method of any of the possible aspects of the second aspect or the second aspect.
  • the application provides a first PE device, where the first PE device includes: a main control board and an interface board, and further includes a switching network board.
  • the first PE device is operative to perform the method of the first aspect or any possible design of the first aspect.
  • the embodiment of the present application provides a first PE device, where the first PE device includes: a controller and a first PE forwarding device.
  • the first PE forwarding device includes: an interface board, and further, a switching network board.
  • the first PE device is operative to perform the method of the first aspect or any possible design of the first aspect.
  • the controller includes a receiver, a processor, a transmitter, a random access memory, a read only memory, and a bus.
  • the processor is coupled to the receiver, the transmitter, the random access memory, and the read only memory through a bus.
  • the booting is started by the solid input/output system in the read-only memory or the bootloader booting system in the embedded system, and the controller is put into a normal running state. After the controller enters the normal operating state, the application and the operating system are run in the random access memory, so that the processor performs the functions of the main control board in the seventh aspect.
  • the application provides a second PE device, where the second PE device includes: a main control board and an interface board, and further, a switching network board.
  • the second PE device is operative to perform the method of any of the possible aspects of the second aspect or the second aspect.
  • the embodiment of the present application provides a second PE device, where the second PE device includes: a controller and a second PE forwarding device.
  • the PE forwarding device includes: an interface board, and further, a switching network board.
  • the second PE device is operative to perform the method of any of the possible aspects of the second aspect or the second aspect.
  • the controller includes a receiver, a processor, a transmitter, a random access memory, a read only memory, and a bus.
  • the processor is coupled to the receiver, the transmitter, the random access memory, and the read only memory through a bus.
  • the booting is started by the solid input/output system in the read-only memory or the bootloader booting system in the embedded system, and the controller is put into a normal running state. After the controller enters the normal operating state, the application and the operating system are run in the random access memory, so that the processor performs the functions of the main control board in the ninth aspect.
  • the embodiment of the present application provides a communication system, where the communication system includes the third aspect, the first PE device according to any one of the seventh aspect or the eighth aspect, and the fourth aspect, The second PE device of any of the sixth aspect, the ninth aspect or the tenth aspect.
  • the embodiment of the present application provides a computer readable storage medium or computer program product for storing a computer program for performing any of the first aspect, the second aspect, and the first aspect. Design or the method of any possible design in the second aspect.
  • FIG. 1 is a schematic diagram of an EVPN application scenario provided in the prior art
  • FIG. 2 is a schematic diagram of an application network scenario of a packet processing method according to an embodiment of the present disclosure
  • FIG. 3 is a schematic flowchart diagram of another packet processing method according to an embodiment of the present disclosure.
  • 4a is a schematic diagram of a format of an MP_REACH_NLRI attribute field in a BGP Update message according to an embodiment of the present disclosure
  • FIG. 4b is a schematic diagram of a format of an EVPN NLRI field according to an embodiment of the present application.
  • 4c is a schematic diagram of a format of an EVPN MAC/IP Advertisement Route field according to an embodiment of the present application
  • FIG. 5 is a schematic diagram of a format of an ESI field according to an embodiment of the present application.
  • FIG. 6 is a schematic flowchart diagram of another packet processing method according to an embodiment of the present disclosure.
  • FIG. 7 is a schematic flowchart diagram of another packet processing method according to an embodiment of the present disclosure.
  • FIG. 8 is a schematic structural diagram of a first PE device according to an embodiment of the present disclosure.
  • FIG. 9 is a schematic structural diagram of a second PE device according to an embodiment of the present disclosure.
  • FIG. 10 is a schematic structural diagram of hardware of a first PE device according to an embodiment of the present disclosure.
  • FIG. 11 is a schematic structural diagram of hardware of a second PE device according to an embodiment of the present disclosure.
  • FIG. 12 is a schematic structural diagram of a second PE device according to an embodiment of the present disclosure.
  • FIG. 13 is a schematic structural diagram of a second PE device according to an embodiment of the present disclosure.
  • FIG. 14 is a schematic structural diagram of a first PE device according to an embodiment of the present disclosure.
  • FIG. 15 is a schematic structural diagram of a first PE device according to an embodiment of the present disclosure.
  • the technical solution described in this application can be applied to BGP MPLS-based EVPN.
  • the EVPN technology adopts a mechanism similar to the BGP/MPLS Internet Protocol (IP) VPN.
  • IP Internet Protocol
  • the MAC address learning and distribution between Layer 2 networks at different sites is enabled.
  • the process moves from the data plane to the control plane.
  • the function of L2VPN is realized by learning the MAC address in the control plane. Learning the MAC address on the control plane can solve the problem that the multi-homing of network devices is difficult to implement and the load balancing cannot be supported.
  • Multi-homing access to the EVPN of the CE device includes multiple access to the EVPN through the Ethernet link.
  • the deployment of a CE device to multiple network-side devices through multiple links is called CE device multi-homing access.
  • FIG. 2 shows a typical Ethernet link multi-homing multiple access EVPN scenario.
  • the EVPN includes four PEs, namely PE1-1, PE1-2, PE1-3, and PE2.
  • CE1 is connected to PE1-1, PE1-2, and PE1-3 through Ethernet links (English: Ethernet Link, EL) 1, EL2, and EL3.
  • a group of Ethernet links containing these three Ethernet links is an Ethernet segment (English: Ethernet Segment, ES).
  • the Ethernet Segment Identifier (ESI) is a unique non-zero identifier that identifies the Ethernet segment ES.
  • PE1-1 learns the MAC address of the user equipment (English: User Equipment, UE) 1 in the site of the VPN1 (English: site) 1.
  • MAC A, PE1-1 advertises the MAC/IP advertisement route to PE2 through the BGP Update message. .
  • PE1-2 did not learn the MAC address of UE1.
  • PE1-2 advertises Ethernet auto-discovery route (Ethernet A-D route) to PE2. Therefore, PE2 knows according to the alias (English: Aliasing), PE2 can reach UE1 via PE1-1, and PE2 can reach UE1 via PE1-2. Therefore, when the unicast traffic sent by the UE2 to the UE1 is transmitted through the PE2, the PE2 can perform load sharing processing on the unicast traffic.
  • the unicast traffic is forwarded to CE1 via PE1-1 and PE1-2. Thereby, the interworking of UE1 and UE2 in VPN1 is implemented.
  • EVPN supports multiple redundancy modes.
  • the multiple redundancy modes include a single-active redundancy mode, a multi-active redundancy mode, and a full-lived redundancy mode.
  • the so-called single-active redundancy mode (referred to as single-active mode) means that only one Ethernet link in the Ethernet link segment is active, and the other one or more Ethernet links are inactive.
  • the active state means that the Ethernet link can be used to carry and forward data streams. In the scenario of active/standby protection, it is usually used as the primary Ethernet link.
  • the state of the Ethernet link can also be inactive.
  • the inactive state means that the Ethernet link cannot be used to carry and forward data streams, and is usually used as a backup Ethernet link.
  • the deployment scenario in single-live mode can include single-live (only one EL in the ES), single-active single-standby (two ELs in the ES, one active state, the other active state), and single live Multiple standby (there are at least three ELs in the ES, one state is active, and at least two states are inactive). Further explained in conjunction with FIG. 2, if only one Ethernet link EL1 in the ES is active, used as the primary EL, and the other EL2 and EL3 are inactive, used as the backup EL, the redundant mode is single-lived. Double standby (belonging to single live and multiple standby).
  • the all-lived redundancy mode (referred to as the full-active mode) means that the status of all Ethernet links in the Ethernet link segment is active, that is, there is no inactive. State Ethernet link. All of these active Ethernet links enable load-sharing forwarding of data streams, providing greater bandwidth transmission capabilities.
  • the full-live mode scenario does not support backup, that is, there is no backup Ethernet link. When one or more Ethernet links of the primary device fail, it cannot be switched to the standby Ethernet link for redundancy protection. As further explained in connection with FIG. 2, if all three Ethernet links EL1, EL2, and EL3 in the ES are active, then there is no backup EL, then the redundancy mode is the full live mode.
  • the so-called multi-active redundancy mode means that the status of some Ethernet links in the Ethernet link segment is active, and another part of the Ethernet chain is active. The state of the road is inactive.
  • These active Ethernet links (used as primary Ethernet links) enable load-sharing forwarding of data streams, providing greater bandwidth transmission capabilities.
  • Another part of the inactive Ethernet link is used as a backup. When one or more Ethernet links of the primary device fail, they can be switched to these alternate Ethernet links for redundancy protection. Further explained in conjunction with Figure 2, if the two Ethernet links in the ES are EL1 and EL2 is active and EL3 is inactive. EL1 and EL2 are combined to load-share the data stream, and EL3 provides backup protection for EL1 or EL2.
  • the traffic sent by the CE device to the PE device is routed through a hash (English: Hash) algorithm.
  • the specific implementation of the Hash algorithm depends on the CE device.
  • the implementation of the CE device does not guarantee that traffic will flow through each link between the CE device and the PE device.
  • the PE device corresponding to the link cannot learn the MAC address of the terminal device that is connected to the CE device, and cannot obtain the VLAN information of the terminal device.
  • the CE device uses the source MAC address and the destination MAC address as the hash factor
  • the traffic sent by the CE to the PE device may be hashed to the link connected to PE1-1.
  • PE1-2 does not learn UE1.
  • the MAC address of the MAC address does not reach the local MAC forwarding entry of the UE1 on the PE1-2.
  • the PE1-2 cannot directly forward the unicast traffic to the CE1.
  • FIG. 2 shows that the terminal device accesses the PE device through the CE device.
  • the terminal device itself can access the PE device as a CE device.
  • the MAC address of the terminal device is the MAC address of the CE device. address.
  • the scene shown in Figure 2 can be referenced in a variety of scenarios. For example, it is applied to a mobile bearer network (English: Mobile Bearer Network).
  • a typical mobile bearer network is an Internet Protocol Radio Access Network (IP: RAN).
  • IP Internet Protocol Radio Access Network
  • the CE device may be a base station (English: Base Transceiver Station, abbreviated as: BTS), and the PE device may be connected to a base station controller (English: Base Station Controller, abbreviation: BSC) or a radio network controller. (English: Radio Network Controller, abbreviation: RNC).
  • BTS Base Transceiver Station
  • RNC Radio Network Controller
  • the EVPN VXLAN is applied to a fixed network (English: Fixed Network).
  • the CE device may be a user-side site, and the PE device may be a broadband access server (Broadband Access Server, abbreviated as BAS).
  • BAS Broadband Access Server
  • the CE device and the PE device in the embodiment of the present application may be corresponding devices defined in RFC7432.
  • the PE device may be a router or a switch, and the CE device may be a router or a switch or a terminal device.
  • the CE device is a router, one or more terminal devices can be connected.
  • a CE device is connected to the PE device on one side and the UE is connected to the UE on the other side.
  • the UE is also called a terminal device (English: Terminal Equipment, TE) or a terminal (English: terminal), and may be a handheld device with a wireless communication function, an in-vehicle device, a wearable device, a computer device, a virtual machine, or a connection to a wireless modem. Other processing equipment.
  • the UE can also be a user equipment or a mobile station (English: Mobile Station, MS).
  • PE and PE devices have the same meaning in various embodiments of the present application.
  • CE and CE devices have the same meaning.
  • the data stream described in this application may be a known unicast data stream.
  • FIG. 3 shows a packet processing method 300 provided by the present application, which is applied to an EVPN, and the user edge CE device accesses the scenario of at least two PE devices through at least two links.
  • the at least two links form an Ethernet segment, and the at least two PE devices include a first PE device and a second PE device.
  • the link may be an Ethernet link; the identifier used to identify the Ethernet segment is The network segment identifies ESI.
  • the Ethernet segment can also be referred to as an Ethernet link segment or a collection of Ethernet links.
  • the CE device accesses the first interface of the first PE device via the first link.
  • the CE device accesses the second interface of the second PE device via the second link.
  • the Ethernet segment includes the first link and the second link.
  • the method 300 shown in FIG. 3 can be applied to the scene shown in FIG. 2.
  • the CE device may be, for example, the CE1 shown in FIG. 2
  • the first PE device may be, for example, the first PE1-2 shown in FIG. 2
  • the second PE device may be, for example, the PE1 shown in FIG. -1.
  • the method 300 includes S301 through S305.
  • the second PE device generates a first message.
  • the first message carries a first media access control/Internet Protocol advertisement route/MAC Advertisement Route to the CE device.
  • the first MAC/IP Advertisement Route includes a MAC address and a link Ethernet segment identifier ESI for identifying an Ethernet segment ES, and the MAC address included in the first MAC/IP Advertisement Route is a MAC address of the CE device. Or the MAC address of the terminal device under the jurisdiction of the CE device.
  • the first message further includes a next hop network address, where the next hop network address is a network address of the second PE device, for example, a loopback address of the second PE device.
  • the loopback address described in this application is an IP address configured on a loopback interface of a network device (such as a router, a switch, etc.), and is usually used as a network device identifier (for example, an IPv4 address of a 32-bit mask). : 10.10.1.1/32), which can be understood by those skilled in the art.
  • the second PE device receives, from the second interface, a packet sent by the CE device by using the second link, where the packet carries a MAC address of the CE device. Or the MAC address of the terminal device that is controlled by the CE device, and the second PE device obtains the MAC address included in the first MAC/IP Advertisement Route from the packet.
  • the second PE device determines the Ethernet segment identifier ESI according to the second interface.
  • the second PE device may include multiple interfaces.
  • the plurality of interfaces may be a plurality of Ethernet interfaces.
  • the second PE device may save configuration information of each interface of the second PE device.
  • the configuration information of the second interface includes the ESI. That is, the second interface has a corresponding relationship with the ESI.
  • the second PE device may determine the ESI according to a correspondence between the second interface and the ESI.
  • the second PE device sends the first message to the first PE device.
  • the second PE device sends the first message to the first PE device, where the first MAC/IP Advertisement Route is used by the first PE device to generate a first MAC forwarding entry.
  • the first MAC forwarding entry includes the MAC address included in the first MAC/IP Advertisement Route, and the outbound interface identifier included in the first MAC forwarding entry is an identifier of the first interface, where the first The MAC forwarding entry is used by the first PE device to forward, to the CE device, a packet whose destination MAC address is a MAC address included in the first MAC/IP Advertisement Route.
  • the second PE device can learn the MAC address included in the first MAC/IP Advertisement Route from the CE, and the first PE device cannot learn the first MAC from the CE.
  • /IP Advertisement Route The MAC address included in the Route.
  • the first message is a Border Gateway Protocol (BGP) update (English: Update) message (also referred to as a BGP Update message).
  • BGP Update message is referred to as a first BGP Update message.
  • the first BGP Update message carries the first MAC/IP Advertisement Route.
  • the MAC/IP Advertisement Route belongs to the EVPN network reachability layer information defined by the BGP protocol (English: Network Layer Reachability Information, A type of route in NLRI) used to guide unicast traffic forwarding.
  • the EVPN NLRI is carried in the Multiprotocol Reachable NLRI (MP_REACH_NLRI) attribute.
  • MP_REACH_NLRI attribute is an attribute defined in the BGP Update message.
  • the format is as shown in Figure 4a.
  • the attribute includes the Address Family Identifier (AFI) field and the Subsequent Address Family Identifier (SAFI). Field.
  • AFI Address Family Identifier
  • SAFI Subsequent Address Family Identifier
  • the value of the AFI field is used to indicate L2VPN, such as 25.
  • the value of the SAFI field is used to indicate EVPN, such as 70.
  • the MP_REACH_NLRI attribute also includes a Length of Next Hop Network Address and a Network Address of Next Hop field.
  • the next hop network address field is used to carry the next hop network address (such as a loopback address).
  • the MP_REACH_NLRI attribute further includes an NLRI field, and the value of the AFI and the SAFI is used to indicate an EVPN in the L2VPN, and the NLRI field is an EVPN NLRI field.
  • the EVPN NLRI field includes, for example, a 2-byte route type (English: Route Type) field, a 2-byte length (English: Length) field, and a variable-length route type detail (English: Route) Type specific) field. It should be noted that the length of the Route Type field and the Length field is not specifically limited in this application.
  • the Route Type includes the MAC/IP Advertisement Route, for example, the value is 2.
  • the Route Type specific field is used to carry the details of the MAC/IP Advertisement Route.
  • the MAC/IP Advertisement Route includes an 8-byte route distinguisher (English: Route Distinguisher, RD) field, a 10-byte Ethernet segment identifier (English: Ethernet Segment Identifier, ESI) field, and 4 Byte Ethernet tag identifier (English: Ethernet Tag ID) field, 1 byte MAC address length field, 6 byte MAC address field, 1 byte next hop network address length field, 0 word Section or 4-byte or 16-byte next hop network address field, 3-byte MPLS label 1 (English: Label) field, and 0-byte or 3-byte MPLS label 2 field, MPLS label 2 is used to guide Layer 3 traffic forwarding.
  • route distinguisher English: Route Distinguisher, RD
  • Ethernet segment identifier English: Ethernet Segment Identifier, ESI
  • 4 Byte Ethernet tag identifier (English: Ethernet Tag ID) field
  • 1 byte MAC address length field 6 byte MAC address field
  • the format of the ESI field shown in FIG. 4c is as shown in FIG. 5, and includes a type (English: Type, T) field and an ESI value (English: Value) field.
  • the Type field is used to indicate how ESI is generated.
  • the two commonly used generation methods are Type0 and Type1, where Type0 indicates that the configuration is manually configured.
  • Type1 indicates that the link aggregation control protocol (LAC: Link Aggregation Control Protocol, LACP) is used between the PE and the CE.
  • LAC Link Aggregation Control Protocol
  • the value ranges from 0 to 0xFF, where "0x" means hexadecimal.
  • the generation and setup of ES and ESI can be found in Chapter 5 of RFC7432.
  • For the definition of the EVPN NLRI field refer to the description in RFC7432.
  • the first PE device receives the first message sent by the second PE device.
  • the first PE device determines that an interface that connects the CE device is the first interface.
  • the interface for connecting the CE device is configured with the same Ethernet segment identifier ESI.
  • the CE device is connected to the first PE device and the second PE device through multiple E-TRUNK connections.
  • the CE device is equivalent to a PE device.
  • the first PE device and the second PE device have multiple interfaces, and the first PE device is connected to the CE device through the first interface, and the second PE device is connected to the CE device through the second interface.
  • the configuration information of the first interface is saved on the first PE device.
  • the configuration information of the second interface is saved on the second PE device.
  • the configuration information of the first interface includes an ESI.
  • the configuration information of the second interface includes ESI.
  • the ESI configured for the first interface is the same as the ESI configured for the second interface. Therefore, when the first PE device receives the first cancellation After the information is obtained, the first MAC/IPAdvertisement Route carried in the first message is obtained. The first PE device extracts the Ethernet segment identifier ESI carried in the first MAC/IP Advertisement Route to obtain the Ethernet segment identifier ESI. The first PE device determines, according to the ESI, an interface that connects the CE device to the first interface. Specifically, the first PE device may include multiple interfaces. The plurality of interfaces may be a plurality of Ethernet interfaces. The first PE device may save configuration information of each interface of the first PE device. The configuration information of the first interface includes the ESI.
  • the first interface has a corresponding relationship with the ESI.
  • the first PE device may search for the ESI that includes the ESI in the configuration information of the multiple interfaces that are saved by the first PE device by using the ESI that is carried in the first MAC/IP Advertisement Route as a search key. Configuration information.
  • the first PE device finds the configuration information that includes the ESI, the first PE device may determine, according to the correspondence between the first interface and the ESI, that the first PE device is connected to the CE device.
  • the interface is the first interface.
  • the first PE device generates a first MAC forwarding entry.
  • the first PE device generates a first MAC forwarding entry according to the determined first interface and the MAC address included in the first MAC/IP Advertisement Route.
  • the first MAC forwarding entry is used by the first PE device to forward, to the CE device, a packet whose destination MAC address is a MAC address included in the first MAC/IP Advertisement Route.
  • the destination MAC address included in the first MAC forwarding entry is a MAC address included in the first MAC/IP Advertisement Route
  • the outbound interface identifier included in the first MAC forwarding entry is an identifier of the first interface. .
  • the first PE device After the first PE device receives the data stream (known unicast data stream) whose destination MAC address is the MAC address included in the first MAC/IP Advertisement Route, based on the first MAC forwarding entry, Transmitting the packet in the data stream from the determined first interface to the CE device.
  • the data stream known unicast data stream
  • the destination MAC address is the MAC address included in the first MAC/IP Advertisement Route
  • the first PE device receives the first packet, and the destination MAC address of the first packet is a MAC address included in the first MAC/IP Advertisement Route.
  • the first PE device determines that the first interface is an outbound interface for forwarding the first packet by searching the first MAC forwarding entry. After the forwarding process is completed, the first packet is forwarded to the CE device by using the first interface.
  • the CE device accesses the PE device in a transparent manner by using a virtual local area network (VLAN).
  • VLAN virtual local area network
  • the second PE device advertises to the first PE device that the MAC address included in the first MAC/IP Advertisement route is reached.
  • MAC routing The first PE device is configured to generate the first MAC forwarding entry according to the received MAC route.
  • the first MAC forwarding entry may be used to pass the first link to the The CE device forwards the data stream.
  • the data stream is forwarded by the CE device to the terminal device.
  • multiple PE devices can effectively form load sharing and implement reasonable utilization of bandwidth resources.
  • the method 300 may further include S306-308. As shown in FIG. 6, the method 300 includes S301-S308.
  • the first PE device acquires and obtains a next hop network address carried in the first message.
  • next hop network address may be referred to as a first next hop network address
  • first next hop network address is a network address of the second PE device, for example, for the second PE device. Loopback address.
  • the first PE device generates a second MAC forwarding entry.
  • the first PE device generates the second MAC forwarding entry according to the MAC address included in the first MAC/IP Advertisement Route and the network address of the second PE device.
  • the second MAC forwarding entry includes a MAC address included in the first MAC/IP Advertisement Route, and the second hop network address included in the second MAC forwarding entry is a network address of the second PE device.
  • the first PE device receives the first message sent by the second PE device from a third interface Intf1, where the first PE device uses the second PE device as a destination The next hop node of the terminal device.
  • the control plane for example, the control panel
  • the control plane of the first PE device generates a MAC routing entry (as shown in Table 1), and the destination MAC address of the MAC routing entry is the MAC included in the first MAC/IP Advertisement Route.
  • the address, the next hop network address is the loopback address of the second PE device.
  • the first PE device generates the second MAC forwarding entry according to the MAC routing entry (as shown in Table 2), and sends the second MAC forwarding entry to the forwarding plane of the first PE device.
  • the first PE device may determine, according to the MAC routing entry, the purpose in the second MAC forwarding entry. MAC address and outgoing interface.
  • the destination MAC address of the second MAC forwarding entry is a destination address in the MAC routing entry.
  • the keyword the Forwarding Equivalence Class (FEC) to the Next Hop Label Forwarding Entry (NHLFE) mapping table (also referred to as the FTN mapping table or the FTN forwarding table).
  • the tunnel identifier corresponding to the loopback address of the second PE device is the tunnel identifier of the tunnel from the first PE device to the second PE device (English: Tunnel ID, Tunnel ID); then, the tunnel ID is used to find the tunnel forwarding table.
  • the outbound interface corresponding to the tunnel ID is Intf 1 (that is, the interface of the tunnel from the first PE device to the second PE device on the first PE device).
  • the first PE device determines the Intf1 as an outbound interface in the second MAC forwarding entry.
  • the tunnel may be a Label Switched Path (LSP) tunnel, or may be a Resource Reservation Protocol-Traffic Engineering (RSVP-TE) tunnel.
  • LSP Label Switched Path
  • RSVP-TE Resource Reservation Protocol-Traffic Engineering
  • Table 2 MAC forwarding table
  • the first PE device implements fast rerouting (FRR) according to the first MAC forwarding entry and the second MAC forwarding entry.
  • FRR fast rerouting
  • the first PE device When the first PE device receives the known unicast traffic (the destination MAC address carried in the data packet is the MAC address included in the first MAC/IP Advertisement Route), the first PE device queries the MAC forwarding table, where When the first link is in a normal working state, according to the indication of the first MAC forwarding entry, the packet is directly forwarded by the CE device via the first link; when the first link is faulty, the first When the PE device receives the known unicast traffic (the destination MAC address carried in the data packet is the MAC address included in the first MAC/IP Advertisement Route), according to the indication of the second MAC forwarding entry, the PE device The second PE device forwards the traffic, and the second PE device forwards the traffic to the CE device, thereby improving the convergence speed of the fault.
  • the method 300 may further include S309-S312.
  • the method 300 is described below in conjunction with FIG. 7.
  • the first PE device generates a second message.
  • the first PE device After the first PE device receives the first message sent by the second PE device, the first PE device generates the second message.
  • the second message is used to carry a second MAC/IP Advertisement Route and a next hop network address, where the second MAC/IP Advertisement Route includes a destination MAC address and the Ethernet segment identifier ESI.
  • the destination MAC address included in the second MAC/IP Advertisement Route is the same as the MAC address included in the first MAC/IP Advertisement Route.
  • the first PE device generates the second message according to the first message.
  • the first PE device acquires the MAC address carried in the first MAC/IP Advertisement Route according to the received first message, and encapsulates the MAC address in the MAC/IP Advertisement Route.
  • the next hop network address carried by the second message is a network address of the first PE device, for example, a loopback address of the first PE device.
  • the first PE device sends the second message to the second PE device.
  • the second message is a BGP Update message.
  • the BGP Update message is referred to as a second BGP Update message.
  • the second BGP Update message carries the second MAC/IP Advertisement Route.
  • the second message further includes indication information, where the indication information is used to indicate that the second PE device avoids the first PE device after receiving the second message.
  • the second message includes a flag field for carrying the indication information.
  • the length of the Flag field may be, for example, one bit or one byte, which is not limited in this application.
  • a new field, such as a Flag field may be defined in the second message, where the indication information is carried. Do not apply for this without specific restrictions.
  • the MAC/IP Advertisement Route that arrives at the MAC address included in the second MAC/IP Advertisement Route is used to guide the forwarding of the destination MAC address to the CE device or the MAC address of the terminal that accesses the CE device. Text.
  • the second PE device receives the second message sent by the first PE device.
  • the second PE device generates a third MAC forwarding entry and a fourth MAC forwarding entry.
  • the second PE device receives the second message, according to the MAC address included in the second MAC/IP Advertisement Route carried in the second message, and the Ethernet
  • the segment identifier ESI generates a third MAC forwarding entry.
  • the third MAC forwarding entry is used by the second PE device to forward a packet whose destination MAC address is a MAC address included in the second MAC/IP Advertisement Route, where the third MAC forwarding entry includes
  • the identifier of the outbound interface is an identifier of the second interface.
  • the manner in which the second PE device generates the third MAC forwarding entry is similar to the manner in which the first PE device generates the first MAC forwarding entry in the foregoing S305. For details, refer to S305, and details are not described herein again.
  • the third MAC forwarding entry may be generated in the following scenarios:
  • Scenario 1 The local MAC address of the second MAC/IP Advertisement Route does not reach the local MAC address of the second MAC/IP Advertisement Route. For example, the link between the second PE device and the CE device fails. The MAC route is revoked. The second PE device may generate the third MAC forwarding entry according to the MAC address included in the second MAC/IP Advertisement Route and the Ethernet segment identifier ESI carried by the second PE device.
  • Scenario 2 When the second PE device receives the second message, the second PE device has a local MAC route that reaches the MAC address included in the second MAC/IP Advertisement Route, and the second PE device saves the location. The routing information carried in the second message.
  • the link between the second PE device and the CE device fails, causing the second PE device to obtain the local MAC route of the MAC address included in the second MAC/IP Advertisement Route to be revoked, the second PE device Generating the third MAC forwarding entry according to the routing information carried in the second message, that is, the MAC address included in the second MAC/IP Advertisement Route and the Ethernet segment identifier ESI.
  • the second PE device generates a fourth MAC forwarding entry according to the MAC address included in the second MAC/IP Advertisement Route and the network address of the first PE device, where the fourth MAC forwarding entry is used. And forwarding the forwarding entry of the packet whose destination MAC address is the MAC address included in the second MAC/IP Advertisement Route, where the fourth forwarding network entry included in the fourth forwarding entry is the first PE device Network address.
  • the manner in which the second PE device generates the fourth MAC forwarding entry is similar to the manner in which the first PE device generates the second MAC forwarding entry in the foregoing S307. For specific description, refer to S307. Let me repeat.
  • the local PE forwarding entry of the CE device is obtained according to the second PE device (also referred to as a fifth a MAC forwarding entry, where the fifth MAC forwarding entry may be, for example, the third MAC forwarding entry, or a local MAC forwarding entry that has been saved before the third MAC forwarding entry is generated, and the fourth MAC address Forwarding entries implement fast reroute FRR.
  • the destination MAC address carried in the data packet is the MAC address included in the second MAC/IP Advertisement Route.
  • the second PE device queries the MAC forwarding table.
  • the second link is directly sent to the CE according to the indication of the local MAC forwarding entry (for example, the third MAC forwarding entry). The device forwards the packet.
  • the second PE device When the second link is faulty, the second PE device receives the known unicast traffic destined for the terminal device (the destination MAC address carried in the data packet is included in the second MAC/IP Advertisement Route) After the MAC address, the second PE device queries the MAC forwarding table, and forwards the traffic to the first PE device according to the indication of the alternate forwarding entry, that is, the indication of the fourth MAC forwarding entry, by using the first The PE device forwards the traffic to the CE device, thereby improving the convergence speed of the fault.
  • the indication of the alternate forwarding entry that is, the indication of the fourth MAC forwarding entry
  • S306-S308 and S309-S312 may be included at the same time, and the execution order of S306-S308 and S309-S312 is in no particular order.
  • the MAC route of the second PE device reaching the MAC address included in the first MAC/IP Advertisement Route is unavailable. If the second PE device sends a MAC route revocation message to the first PE device, the first MAC/IP Advertisement Route is revoked. After receiving the MAC route revocation message sent by the second PE device, the first PE device does not immediately delete the first MAC/IP Advertisement Route, but starts the aging timer to reach the aging set by the aging timer. After the time, if the updated MAC route to the CE device is not received, the first MAC/IP Advertisement Route is deleted.
  • the first PE device after receiving the MAC route revocation message sent by the second PE device, the first PE device sends a MAC route revocation message to the remote PE device, for example, the third PE device PE2 shown in FIG. 2, As a result, the local MAC address of the second PE device is revoked due to the interface failure. After the remote MAC address is revoked by the first PE device, the second PE device does not reach the MAC route of the CE device. At this time, if the traffic sent by the PE2 reaches the second PE device, the second PE device cannot query the MAC forwarding table and cannot forward the traffic.
  • FIG. 8 is a schematic diagram of a second PE device 400 according to an embodiment of the present application.
  • the second PE device 400 can be the PE 1-1 of FIG. 2 and can be used to perform the steps performed by the second PE in the embodiment shown in FIG. 3, FIG. 6, or FIG.
  • the user edge CE device is connected to the first interface of the first PE device via a first link, and the CE device is connected to the second interface of the second PE device via a second link.
  • the second PE device 400 includes a processing module 401 and a sending module 402.
  • the processing module 401 is configured to generate a first message, where the first message carries a first MAC/IP Advertisement Route that reaches the CE device, where the first MAC/IP Advertisement Route includes a MAC address and is used to identify an Ethernet segment.
  • the Ethernet segment of the ES identifies the ESI, and the MAC address is the MAC address of the CE device or the MAC address of the terminal device of the Ethernet virtual private network EVPN under the jurisdiction of the CE device, where the Ethernet segment ES includes The first link and the second link.
  • the sending module 402 is configured to send the first message to the first PE device.
  • the first MAC/IP Advertisement Route is used by the first PE device to generate a first MAC forwarding entry, the first MAC
  • the forwarding entry includes the MAC address included in the first MAC/IP Advertisement Route, the outbound interface identifier included in the first MAC forwarding entry is an identifier of the first interface, and the first MAC forwarding entry is
  • the first PE device is configured to forward, to the CE device, a packet whose destination MAC address is a MAC address included in the first MAC/IP Advertisement Route.
  • the second PE device notifies the first PE device that the first PE device does not learn from the CE device that the MAC address of the MAC address included in the first MAC/IP Advertisement Route is reached.
  • the first PE device is configured to generate the first MAC forwarding entry according to the received MAC route.
  • the first PE device may send the first MAC link to the CE device according to the first MAC forwarding entry. Forward the data stream.
  • multiple PE devices can effectively form load sharing and implement reasonable utilization of bandwidth resources.
  • the first message is a first border gateway protocol update BGP Update message.
  • first BGP Update message For the specific format of the first BGP Update message, such as which fields are used, refer to the description of the corresponding part in the foregoing method embodiment, and details are not described herein again.
  • the second PE device 400 further includes a receiving module 403.
  • the receiving module 403 is configured to receive the second message sent by the first PE device.
  • the second message carries a second MAC/IP Advertisement Route and a next hop network address.
  • the second MAC/IP Advertisement Route includes a destination MAC address and the Ethernet segment identifier ESI; and the destination MAC address in the second MAC/IP Advertisement Route is a MAC included in the first MAC/IP Advertisement Route
  • the address, the next hop network address carried by the second message is a network address of the first PE device.
  • the Ethernet segment identifier ESI is used by the second PE device to determine that the interface of the second PE device connected to the CE device is the second interface.
  • the determined second interface and the MAC address included in the second MAC/IP Advertisement Route are used by the second PE device to generate a third MAC forwarding entry, where the third MAC forwarding entry includes the a MAC address included in the second MAC/IP Advertisement Route, where the identifier of the outbound interface included in the third forwarding entry is an identifier of the second interface, and the third MAC forwarding entry is used by the second PE device An entry for forwarding a packet whose destination MAC address is a MAC address included in the second MAC/IP Advertisement Route.
  • the processing module 401 is further configured to generate a fourth MAC forwarding entry according to the MAC address included in the first MAC/IP Advertisement Route and the network address of the first PE device.
  • the fourth MAC forwarding entry includes a MAC address included in the first MAC/IP Advertisement Route, and the next hop network address included in the fourth MAC forwarding entry is a network address of the first PE device.
  • the fourth MAC forwarding entry is used by the second PE device to forward a packet whose destination MAC address is a MAC address included in the second MAC/IP Advertisement Route. .
  • the second PE device After the second PE device generates the third forwarding entry and the fourth forwarding entry, according to the local MAC forwarding entry (also referred to as a fifth MAC forwarding entry, the fifth MAC forwarding table)
  • the item may be, for example, the third MAC forwarding entry, or a local MAC forwarding entry that has been saved before the third MAC forwarding entry is generated, and the fourth MAC forwarding entry implements a fast reroute FRR.
  • the second PE device receives the known unicast traffic destined for the terminal device, the destination MAC address carried in the data packet is the terminal device. When the MAC address is used, the second PE device queries the MAC forwarding table.
  • the second link forwards the packet to the CE device according to the indication of the third MAC forwarding entry.
  • the second PE device receives the known unicast traffic destined for the terminal device (the destination MAC address carried in the data packet is the MAC address included in the second MAC/IP Advertisement Route) After the second PE device queries the MAC forwarding table, and forwards the traffic to the first PE device according to the indication of the alternate forwarding entry, that is, the indication of the fourth MAC forwarding entry, by using the first PE device
  • the CE device forwards the traffic, thereby improving the convergence speed of the fault.
  • the second message further carries indication information.
  • the processing module 503 is further configured to: after the receiving module receives the second message sent by the first PE device, according to the indication of the indication information, avoid sending to the first PE device to reach the second MAC/IP Advertisement Route The MAC/IP Advertisement Route of the MAC address included in the Route. Thereby avoiding the formation of a loop.
  • FIG. 9 is a schematic diagram of a first PE device 500 according to an embodiment of the present application.
  • the first PE device 500 can be the PE 1-2 in FIG. 2, and can be used to perform the steps performed by the first PE device in the embodiment shown in FIG. 3, FIG. 6, or FIG.
  • the user edge CE device is connected to the first interface of the first PE device via a first link, and the CE device is connected to the second interface of the second PE device via a second link.
  • the first PE device 500 includes a receiving module 501 and a processing module 502.
  • the receiving module 501 is configured to receive a first message sent by the second PE device.
  • the first message carries a first MAC/IP Advertisement Route.
  • the first MAC/IP Advertisement Route includes a MAC address and an Ethernet segment identifier ESI for identifying an Ethernet segment ES, where the MAC address is a MAC address of the CE device or an Ethernet virtuality under the jurisdiction of the CE device.
  • the Ethernet segment ES includes the first link and the second link.
  • the processing module 502 is configured to determine, according to the Ethernet segment identifier ESI, that the interface that connects the first PE device to the CE device is the first interface.
  • the processing module 502 determines, according to the ESI that is received by the receiving module 501, that the first PE device is connected to the CE device as the first interface.
  • the processing module 502 is further configured to generate a first MAC forwarding entry according to the determined first interface and a MAC address included in the first MAC/IP Advertisement Route.
  • the first MAC forwarding entry includes a MAC address included in the first MAC/IP Advertisement Route.
  • the outbound interface identifier included in the first MAC forwarding entry is an identifier of the first interface.
  • the first MAC forwarding entry is used by the first PE device to forward, to the CE device, a packet whose destination MAC address is a MAC address included in the first MAC/IP Advertisement Route.
  • the second PE device notifies the first PE device that the first PE device does not learn from the CE device that the MAC address of the MAC address included in the first MAC/IP Advertisement Route is reached.
  • the first PE device is configured to generate the first MAC forwarding entry according to the received MAC route.
  • the first PE device may directly pass the first link to the CE according to the first MAC forwarding entry.
  • the device forwards the data stream.
  • multiple PE devices can effectively form load sharing and implement reasonable utilization of bandwidth resources.
  • the first message further carries a next hop network address
  • the next hop network address in the first message is a network address of the second PE device, for example, the The loopback address of the second PE device.
  • the processing module 502 is further configured to acquire a network address of the second PE device according to the first message.
  • the processing module 502 is further configured to generate a second MAC forwarding entry according to the MAC address included in the first MAC/IP Advertisement Route and the network address of the second PE device.
  • the second MAC forwarding entry includes a MAC address included in the first MAC/IP Advertisement Route, and the second hop network address included in the second MAC forwarding entry is a network address of the second PE device.
  • the second MAC forwarding entry is used by the first PE device to forward the destination MAC address to the MAC address included in the first MAC/IP Advertisement Route. Message.
  • the first PE device When the first PE device receives the known unicast traffic destined for the terminal device (the destination MAC address carried in the data packet is the MAC address included in the first MAC/IP Advertisement Route), the first PE The device queries the MAC forwarding table, and when the first link is in the normal working state, forwards the packet directly through the CE device according to the indication of the first MAC forwarding entry.
  • the first PE device receives the known unicast traffic (the destination MAC address carried in the data packet is the MAC address included in the first MAC/IP Advertisement Route)
  • the traffic is forwarded to the second PE device according to the indication of the second MAC forwarding entry, and the traffic is forwarded by the second PE device to the CE device, thereby improving the convergence speed of the fault.
  • the first message is a first border gateway protocol update BGP Update message.
  • first BGP Update message such as which fields or extension fields are used, refer to the description of the corresponding parts in the foregoing method embodiments, and details are not described herein again.
  • the first PE device further includes a sending module 503. After the receiving module receives the first message sent by the second PE device,
  • the processing module 502 is further configured to generate a second message. Specifically, the processing module 502 generates the second message according to the first message received by the receiving module 501.
  • the second message carries a second MAC/IP Advertisement Route and a next hop network address, and the second MAC/IP Advertisement Route includes a MAC address and the Ethernet segment identifier ESI.
  • the MAC address included in the second MAC/IP Advertisement Route is the same as the MAC address included in the first MAC/IP Advertisement Route.
  • the processing module 502 acquires the The MAC address included in the first MAC/IP Advertisement Route is encapsulated in the second MAC/IP Advertisement Route carried by the second message.
  • the next hop network address carried by the second message is a network address of the first PE device.
  • the sending module 503 is further configured to send the second message to the second PE device, where the second message is used by the second PE device to generate a third MAC forwarding entry and a fourth MAC forwarding table. item. among them,
  • the third MAC forwarding entry is used by the second PE device to forward a packet whose destination MAC address is a MAC address included in the second MAC/IP Advertisement Route, where the third MAC forwarding entry includes The MAC address included in the second MAC/IP Advertisement Route, where the identifier of the outbound interface included in the third MAC forwarding entry is the identifier of the second interface.
  • the fourth MAC forwarding entry is used by the second PE device to forward a packet whose destination MAC address is a MAC address included in the second MAC/IP Advertisement Route.
  • the fourth MAC forwarding entry includes the first The MAC address included in the second MAC/IP Advertisement Route, where the fourth forwarding network address included in the fourth forwarding entry is the network address of the first PE device.
  • the first PE device After receiving the first message, the first PE device generates a local primary MAC routing entry and a standby MAC routing table for fast rerouting on the control plane according to the information carried in the first message. Further, the control plane sends the foregoing primary MAC routing entry and the standby MAC routing entry to the forwarding plane, and generates a first MAC forwarding entry and a second MAC forwarding entry for implementing fast re-routing. After the first PE device receives the first message, the first PE device sends the local MAC address back to the second PE device, so that the second PE device Generate an alternate MAC routing entry that is used to implement fast slave routes.
  • the MAC route learned by the second PE device from the CE device can be used as a local MAC route, that is, a primary MAC route.
  • a local MAC route that is, a primary MAC route.
  • the local MAC route of the second PE device is revoked.
  • the second PE device may generate the local MAC route again according to the second MAC/IP Advertisement Route route advertised by the first PE device, for guiding to the The CE device forwards traffic. Therefore, after the second link sends a fault and recovers again, the route redirection can be quickly implemented to achieve fast convergence of the fault.
  • the second message further carries indication information, where the indication information is used to indicate that the second PE device avoids the first PE device after receiving the second message. Sending a MAC/IP Advertisement Route to the MAC address included in the second MAC/IP Advertisement Route, thereby avoiding a message loop.
  • FIG. 10 is a schematic diagram of a second PE device 600 according to an embodiment of the present application.
  • the second PE device 600 can be the PE 1-1 of FIG. 2 and can be used to perform the steps performed by the second PE device in the embodiment shown in FIG. 3, FIG. 6, or FIG.
  • the user edge CE device is connected to the first interface of the first PE device via a first link, and the CE device is connected to the second interface of the second PE device via a second link.
  • the second PE device 600 includes an input interface 601, an output interface 602, a processor 603, and a memory 604.
  • the input interface 601, output interface 602, processor 603, and memory 604 can be coupled by a bus system 605.
  • the memory 604 is used to store a program including.
  • the processor 604 is configured to execute a program in the memory 604 to control the input interface 601 to receive signals, control the output interface 602 to send signals, and implement FIG. 3, or the second embodiment corresponding to FIG. 6 or FIG.
  • the steps and functions implemented by the PE device are not described here.
  • the specific implementations of the input interface 601, the output interface 602, and the processor 603 may be referred to the specific descriptions of the receiving module 403, the sending module 402, and the processing module 401 in the foregoing embodiment of FIG.
  • FIG. 11 is a schematic diagram of a first PE device 700 according to an embodiment of the present application.
  • the first PE device 700 can be the PE 1-2 in FIG. 2, and can be used to perform the steps performed by the first PE device in the embodiment shown in FIG. 3, FIG. 6, or FIG.
  • the user edge CE device is connected to the first interface of the first PE device via a first link, and the CE device is connected to the second interface of the second PE device via a second link.
  • the first PE device 700 includes an input interface 701, an output interface 702, a processor 703, and a memory 704.
  • the input interface 701, the output interface 702, the processor 703, and the memory 704 can be connected by a bus system 705.
  • the memory 704 is used to store a program including.
  • the processor 704 is configured to execute a program in the memory 704 to control the input interface 701 to receive signals, control the output interface 702 to send signals, and implement FIG. 3,
  • the steps and functions implemented by the second PE device in the embodiment corresponding to FIG. 6 or FIG. 7 are not described herein again.
  • the specific implementations of the input interface 701, the output interface 702, and the processor 703 may be referred to the specific descriptions of the receiving module 501, the sending module 503, and the processing module 502 in the foregoing embodiment of FIG.
  • the processor 703 and the processor 803 may be a central processing unit ("CPU"), and may be other general-purpose processors and digital signal processors (DSPs). , an application specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, and the like.
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the memory 704 and memory 804 can include read only memory and random access memory and provide instructions and data to the processor 703 and the processor 803, respectively.
  • Memory 704 or a portion of memory 804 may also include non-volatile random access memory.
  • the memory 704 or the memory 804 can also store information of the device type.
  • the bus system 705 and the bus system 805 may include, in addition to the data bus, a power bus, a control bus, a status signal bus, and the like. However, for the sake of clarity, the various buses are labeled as bus systems in the figure.
  • the steps of method 300 may be accomplished by integrated logic circuitry of hardware in processor 603 and processor 703, or instructions in software.
  • the steps of the positioning method disclosed in the embodiments of the present application may be directly implemented by the hardware processor, or may be performed by a combination of hardware and software modules in the processor.
  • the software module can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like.
  • the storage medium is located in memory 604 and memory 704, respectively, processor 603 reads the information in memory 604, processor 703 reads the information in memory 704, and completes the steps of method 300 described above in conjunction with its hardware. To avoid repetition, it will not be described in detail here.
  • the processing module 401 in FIG. 8 can be implemented by the processor 603 of FIG. 10
  • the sending module 402 can be implemented by the output interface 602 of FIG. 10
  • the receiving module 403 can be implemented by the The input interface 601 is implemented.
  • the processing module 502 in FIG. 9 is implemented by the processor 703 of FIG. 11, the transmitting module 503 can be implemented by the output interface 702 of FIG. 11, and the receiving module 501 can be implemented by the input interface 701 of FIG.
  • Figures 8 through 11 only show a simplified design of the first PE device and the second PE device.
  • the first PE device and the second PE device may respectively include any number of interfaces, processors, memories, and the like.
  • FIG. 12 is a schematic structural diagram of hardware of another second PE device 1200 according to an embodiment of the present disclosure.
  • the second PE device 1200 shown in FIG. 12 can be used to perform the corresponding steps performed by the second PE device in the method of the above embodiment.
  • the second PE device includes: a main control board 1210, an interface board 1230, a switching network board 1220, and an interface board 1240.
  • the main control board 1210 is used to complete functions such as system management, device maintenance, and protocol processing.
  • the switching network board 1220 is used to complete data exchange between each interface board (also referred to as a line card or a service board).
  • Interface boards 1230 and 1240 are used to provide various service interfaces (eg, Point of Synchronization, English). POS) interface, Gigabit Ethernet (GE) interface, Asynchronous Transfer Mode (ATM) interface, etc., and implement packet forwarding.
  • POS Point of Synchronization
  • GE Gigabit Ethernet
  • ATM Asynchronous Transfer Mode
  • the main control board 1210, the interface boards 1230 and 1240, and the switching network board 1220 are connected to each other through the system bus to implement interworking.
  • the central processing unit 1231 on the interface board 1230 is used to control and manage the interface board and communicate with the central processing unit on the main control board.
  • the central processor 1211 on the main control board 210 generates a first message and transmits the first message to the first PE device via the central processor on the interface board 1230 to the physical interface card 1223.
  • the first message carries a first MAC/IP Advertisement Route, where the first MAC/IP Advertisement Route includes a MAC address and an Ethernet segment identifier ESI for identifying an Ethernet segment ES, the first MAC/IP
  • the MAC address included in the Advertisement Route is the MAC address of the CE device or the MAC address of the terminal device under the jurisdiction of the CE device.
  • the Ethernet segment ES includes the first link and the second link.
  • the first MAC/IP Advertisement Route is used by the first PE device to generate a first MAC forwarding entry, where the first MAC forwarding entry includes a MAC address included in the first MAC/IP Advertisement Route,
  • the outbound interface identifier included in the first MAC forwarding entry is an identifier of the first interface.
  • the first MAC forwarding entry is used by the second PE device to forward, to the CE device, a packet whose destination MAC address is a MAC address included in the first MAC/IP Advertisement Route.
  • the central processing unit 1211 on the main control board 1210 is further configured to acquire the second message sent from the first PE device from the physical interface card 1233 on the interface board 1230.
  • the second message carries a second MAC/IP Advertisement Route and a next hop network address, where the second MAC/IP Advertisement Route includes a destination MAC address and the Ethernet segment identifier ESI.
  • the destination MAC address in the second MAC/IP Advertisement Route is a MAC address included in the first MAC/IP Advertisement Route.
  • the next hop network address carried by the second message is a network address of the first PE device; the Ethernet segment identifier ESI is used by the second PE device to determine the second PE device connection
  • the interface of the CE device is the second interface.
  • the determined second interface and the MAC address included in the second MAC/IP Advertisement Route are used by the second PE device to generate a third MAC forwarding entry.
  • the third MAC forwarding entry includes a MAC address included in the second MAC/IP Advertisement Route, and the identifier of the outbound interface included in the third forwarding entry is an identifier of the second interface.
  • the third MAC forwarding entry is used by the second PE device to forward a packet whose destination MAC address is a MAC address included in the second MAC/IP Advertisement Route.
  • the central processing unit 1211 on the main control board 1210 determines, according to the ESI, that the interface of the second PE device connecting the CE device is the second interface, and according to the determined second interface and the The MAC address included in the second MAC/IP Advertisement Route generates a third MAC forwarding entry.
  • the central processing unit 1211 on the main control board 1210 transmits the third MAC forwarding entry to the forwarding entry storage 1234 on the interface board 1230 via the central processing unit 1231 on the interface board 1230.
  • the forwarding entry storage 1234 on the interface board 1230 is configured to save the third MAC forwarding entry.
  • the central processor 1231 on the interface board 1230 is configured to control the network storage 1232 to obtain the MAC forwarding entry in the forwarding entry storage 1234.
  • the central processing unit 1231 is configured to control the network storage 1232 to complete the reception and forwarding of traffic via the physical interface card 1233.
  • the operation on the interface board 1240 in the embodiment of the present application is consistent with the operation of the interface board 1230. Concise, no longer repeat them. It should be understood that the second PE device 1200 in this embodiment may correspond to the functions and/or various steps of the foregoing method embodiments, and are not described herein for brevity.
  • the first PE device may have the same structure as the second PE device.
  • the main control board may have one or more blocks. When there are multiple blocks, the main control board and the standby main control board may be included.
  • the interface board may have one or more blocks. The stronger the data processing capability of the second PE device, the more interface boards are provided.
  • the physical interface card on the interface board can also have one or more blocks.
  • the switching network board may not exist, and there may be one or more blocks. When there are multiple blocks, the load sharing redundant backup can be implemented together. In the centralized forwarding architecture, the PE device does not need to exchange the stencil, and the interface board assumes the processing function of the service data of the entire system.
  • a PE device can have at least one switching network board, and exchange data between multiple interface boards through a switching network board to provide large-capacity data exchange and processing capabilities. Therefore, the data access and processing capabilities of PE devices in a distributed architecture are greater than those of a centralized architecture. Which architecture is used depends on the specific network deployment scenario, and is not limited here.
  • FIG. 13 is a schematic structural diagram of hardware of another second PE device 1300 according to an embodiment of the present disclosure.
  • the second PE device 1300 shown in FIG. 13 can be used to perform the corresponding steps performed by the second PE device in the method of the above embodiment.
  • This product form of the second PE device 1300 is applicable to a network architecture based on control and forwarding (for example, Software Defined Network (SDN).
  • SDN Software Defined Network
  • the main control board 1210 of the second PE device 1200 shown in FIG. 12 is separated from the device to form a new independent physical device (ie, the controller 1210A as shown in FIG. 13), and the remaining formation Another independent physical device (ie, the second PE forwarding device 1200A as shown in FIG. 13).
  • the controller 1210A and the second PE forwarding device 1200A implement interaction through a control channel protocol.
  • the control channel protocol can be OpenFlow (English: OpenFlow) protocol, Path Computation Element Communication Protocol (English: Path Computation Element Communication Protocol, PCEP), BGP, Routing System Interface (English: Interface to the Routing System, abbreviation: I2RS) Wait. That is, the second PE device 1300 in this implementation includes the separated controller 1210A and the second PE forwarding device 1200A, that is, in this embodiment, the second, compared to the embodiment corresponding to FIG. 12 described above. The PE device 1300 can also be considered as a system.
  • the controller 1210A may be implemented based on a general-purpose physical server or a dedicated hardware structure.
  • the controller includes a receiver, a processor, a transmitter, and a random access memory (English: Random Access Memory, RAM), read-only memory (English: Read-only Memory, ROM) and bus (not shown).
  • the processor is coupled to the receiver, the transmitter, the RAM, and the ROM through a bus.
  • the controller when the controller needs to be run, the system is booted and booted by a basic input/output system (English: Basic Input/output System, BIOS) or a bootloader (English: bootloader) in the embedded system.
  • BIOS Basic Input/output System
  • BIOS Basic Input/output System
  • bootloader English: bootloader
  • the second PE forwarding device 1200A may be implemented based on a dedicated hardware structure, and its function and structure are consistent with the functions and structures of the interface board 1230, the interface board 1240, and the switching network board 1220 in FIG. 12 described above, and perform corresponding functions and steps. . It may also be a virtual second PE forwarding device based on a universal physical server and network function virtualization (English: Netwrk Function Virtulization, abbreviated: NFV) technology, the virtual first The second PE forwarding device is a virtual router. In the scenario of the virtual PE forwarding device, the PE forwarding device mentioned in the foregoing embodiment of the second PE forwarding device includes an interface board, a switching network board, and a processor in the virtual environment.
  • NFV Netwrk Function Virtulization
  • the physical server allocates interface resources, network resources, and processing resources used by the virtual second PE forwarding device.
  • the function or the step of implementing the second forwarding PE device by using the general physical server, or the function or the step of implementing the second forwarding PE device by using the NFV technology may be specifically referred to the embodiment of FIG.
  • controller 1210A and the second PE forwarding device 1200A in the second PE device 1300 in this embodiment may implement various functions and steps implemented by the second PE device in the method embodiment. No longer.
  • FIG. 14 is a schematic diagram showing the hardware structure of another first PE device 1400 provided by an embodiment of the present application.
  • the first PE device 1400 shown in FIG. 14 can be used to perform the corresponding steps performed by the first PE device in the method of the above embodiment.
  • the first PE device includes: a main control board 1410, an interface board 1430, a switching network board 1420, and an interface board 1440.
  • the main control board 1410 is used to complete functions such as system management, device maintenance, and protocol processing.
  • the switching network board 1420 is used to complete data exchange between each interface board (also referred to as a line card or a service board).
  • the interface boards 1430 and 1440 are used to provide various service interfaces (for example, a POS interface, a GE interface, an ATM interface, etc.) and implement forwarding of data packets.
  • the main control board 1410, the interface boards 1430 and 1440, and the switching network board 1420 are connected to each other through the system bus to implement interworking.
  • the central processing unit 1431 on the interface board 1430 is for controlling and managing the interface board and communicating with the central processing unit on the main control board.
  • the physical interface card 1433 on the interface board 1430 receives the first message sent by the second PE device, where the first message carries a first MAC/IP Advertisement Route, and the first MAC/IP Advertisement Route includes a MAC address and The Ethernet segment identifier ESI identifying the Ethernet segment ES, the MAC address included in the first MAC/IP Advertisement Route is the MAC address of the CE device or the MAC address of the terminal device under the jurisdiction of the CE device.
  • the Ethernet segment ES includes the first link and the second link.
  • the first MAC/IP Advertisement Route is sent to the central processing unit 1411 on the main control board 1410 via the central processing unit 1431 on the interface board 1430.
  • the central processing unit 1411 on the main control board 1410 is configured to acquire the first MAC/IP Advertisement Route, and determine, according to the ESI, the first PE device connection according to the central processor 1411 on the main control board 1410.
  • the interface of the CE device is the first interface. Further, the central processing unit 1411 generates a first MAC forwarding entry according to the determined first interface and the MAC address included in the first MAC/IP Advertisement Route.
  • the first MAC forwarding entry includes the MAC address included in the first MAC/IP Advertisement Route, and the outbound interface identifier included in the first MAC forwarding entry is an identifier of the first interface, where the first The MAC forwarding entry is used by the second PE device to forward, to the CE device, a packet whose destination MAC address is a MAC address included in the first MAC/IP Advertisement Route.
  • the central processor 1411 on the main control board 1410 transmits the first MAC forwarding entry to the forwarding entry memory 1434 on the interface board 1430 via the central processing unit 1431 on the interface board 1430.
  • the forwarding entry storage 1434 on the interface board 1430 is configured to save the first MAC forwarding entry.
  • the central processing unit 1431 on the interface board 1430 is configured to control the network storage 1432 to obtain the MAC forwarding entry in the forwarding entry storage 1434, and the central processing unit 1431 is configured to control the network storage 1432 via the physical interface.
  • Card 1433 completes the reception and transmission of traffic.
  • the central processing unit 1211 on the main control board 1410 is also used to control the interface board 1430 to complete the forwarding and processing of traffic.
  • the operation on the interface board 1440 in the embodiment of the present invention is consistent with the operation of the interface board 1430, and details are not described herein for brevity.
  • the first PE device 1400 of the present embodiment may correspond to the functions and/or various steps of the foregoing method embodiments, and are not described herein for brevity.
  • FIG. 15 is a schematic structural diagram of hardware of another first PE device 1500 according to an embodiment of the present disclosure.
  • the first PE device 1500 shown in FIG. 15 can be used to perform the corresponding steps performed by the first PE device in the method of the above embodiment.
  • This product form of the first PE device 1500 is applicable to a network architecture (eg, SDN) that is separate based on control and forwarding.
  • SDN the main control board 1410 of the first PE device 1400 as shown in FIG. 14 is separated from the device to form a new independent physical device (ie, the controller 1410A as shown in FIG. 15), and the remaining formation is performed.
  • Another independent physical device ie, the first PE forwarding device 1400A as shown in FIG. 14).
  • the controller 1410A interacts with the first PE forwarding device 1400A through a control channel protocol.
  • the control channel protocol can be OpenFlow protocol, PCEP, BGP, I2RS, and the like.
  • the first PE device 1500 in this implementation includes the separated controller 1410A and the first PE forwarding device 1400A, that is, in this embodiment, the second, compared to the embodiment corresponding to FIG. 14 described above.
  • the PE device 1500 can also be considered as a system.
  • the controller 1410A may be implemented based on a general-purpose physical server or a dedicated hardware structure.
  • the controller includes a receiver, a processor, a transmitter, a RAM, a ROM, and a bus (not shown in the figure). ).
  • the processor is coupled to the receiver, the transmitter, the RAM, and the ROM through a bus.
  • the BIOS is booted in the ROM or the bootloader booting system in the embedded system to boot, and the controller is put into a normal running state. After the controller enters the normal operating state, the application and operating system are run in RAM, causing the processor to perform all of the functions and steps of the main control board 1410 of FIG. 14 described above.
  • the first PE forwarding device 1400A may be implemented based on a dedicated hardware structure, and its function and structure are consistent with the functions and structures of the interface board 1430, the interface board 1440, and the switching network board 1420 in FIG. 14 described above, and perform corresponding functions and steps. . It may also be a virtual first PE forwarding device implemented based on a universal physical server and network function virtualization (English: Netwrk Function Virtulization, NFV) technology, and the virtual first PE forwarding device is a virtual router. In the scenario of the virtual first PE forwarding device, the first PE forwarding device mentioned in the foregoing first PE forwarding device embodiment includes an interface board, a switching network board, and the processor can be considered as being based on the virtual environment.
  • the universal physical server allocates interface resources, network resources, and processing resources used by the virtual first PE forwarding device.
  • the function or the step of implementing the first forwarding PE device by using a general physical server, or the function or the step of implementing the second forwarding PE device by using the NFV technology may be specifically referred to the embodiment of FIG.
  • controller 1410A and the first PE forwarding device 1400A in the first PE device 1500 in this embodiment may implement various functions and steps implemented by the first PE device in the method embodiment. No longer.
  • the application also provides a communication system including a first PE device and a second PE device.
  • the first PE device may be the first PE device provided by the embodiment corresponding to FIG. 9, FIG. 11, FIG. 14, or FIG.
  • the second PE device may be the second PE device provided by the embodiment corresponding to FIG. 8, FIG. 10, FIG. 12 or FIG. Place
  • the communication system is used to perform the method 300 of the embodiment corresponding to Figures 2-7.
  • the size of the sequence number of each process does not mean the order of execution sequence, and the order of execution of each process should be determined by its function and internal logic, and should not be taken by the embodiment of the present application.
  • the implementation process constitutes any qualification.
  • modules and method steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. The skilled person can use different methods for each particular application to implement the described functionality.
  • the computer program product includes one or more computer instructions.
  • the computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable device.
  • the computer instructions can be stored in a computer readable storage medium or transferred from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions can be from a website site, computer, server or data center Transfer to another website site, computer, server, or data center by wire (eg, coaxial cable, fiber optic, digital subscriber line (DSL), or wireless (eg, infrared, wireless, microwave, etc.).
  • the computer readable storage medium can be any available media that can be accessed by a computer or a data storage device such as a server, data center, or the like that includes one or more available media.
  • the usable medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (such as a solid state disk (SSD)).
  • a magnetic medium eg, a floppy disk, a hard disk, a magnetic tape
  • an optical medium eg, a DVD
  • a semiconductor medium such as a solid state disk (SSD)

Landscapes

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

Abstract

一种EVPN中报文处理方法,CE设备多归接入第二PE设备和第一PE设备,所述方法包括:所述第二PE设备将从所述CE设备学习到的MAC路由发送给第一PE设备,第一PE设备根据所述MAC路由生成MAC转发表项。所述第一PE设备可以根据所述MAC转发表项经由所述CE设备转发目的MAC地址为所述CE设备或接入所述CE设备的终端设备的MAC地址的报文。所述MAC转发表项中包括的出接口标识为连接所述CE设备的接口的标识。通过本申请的方法,能够使得第二PE设备和第一PE设备形成有效的负载分担,合理利用系统带宽资源。

Description

EVPN报文处理方法、设备及系统
本申请要求于2017年03月14日提交中国专利局、申请号为201710150686.6、申请名称为“EVPN报文处理方法、设备及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及通信技术领域,特别涉及一种以太网虚拟私有网(英文:Ethernet Virtual Private Network,EVPN)报文处理的方法、设备及系统。
背景技术
以太虚网虚拟私有网络(英文:Ethernet Virtual Private Network,EVPN)是一种在多协议标签交换(英文:Multi-Protocol Label Switching,MPLS)网络上提供二层网络互联的虚拟私有网络(英文:Virtual Private Network,VPN)技术。目前,EVPN作为承载二层业务的主流方案在各大运营商的网络设计中被使用。EVPN技术使用边界网关协议(英文:Border Gateway Protocol,BGP)作为控制平面的协议,进行运营商边缘(英文:Provider Edge,PE)设备之间的媒体接入控制(英文:Media Access Control,MAC)地址学习,将MAC地址学习和发布过程从传统的数据平面转移到控制平面,从而大幅减少了流量洪泛方式的MAC地址扩散,以及可以支持用户边缘设备(英文:Customer Edge,CE)多归属接入EVPN、便于管理MAC地址实现负载分担。EVPN中,CE设备可通过多种接入方式与PE设备相联,例如,通过虚拟局域网络(英文:Virtual Local Area Network,VLAN)多归属接入EVPN。EVPN方案的重要优势之一是实现了CE设备的多归属接入。
在一种常见的场景中,如图1所示,网络100网络100包括服务商提供的骨干网和多个E-VPN站点。所述骨干网包括第一PE设备PE1、第二PE设备PE2和第三PE设备PE3以及多个P(Provider)设备(图中未示出)。所述多个E-VPN站点包括site1和site2。其中,site1、和site2属于同一个E-VPN1。MAC地址为MAC1的终端设备A接入CE1,CE1双归接入PE1和PE2。MAC地址为MAC2的终端设备B接入CE2,CE2接入PE3。其中,PE1从CE1学习到终端设备A的MAC地址。PE2未从CE1学习到终端设备A的MAC地址。PE1通过BGP更新(Update)消息向PE3发送EVPN媒体接入控制/互联网协议通告路由(英文:MAC/IP Advertisement Rouge),即向PE3通告到达所述终端设备A的MAC路由。而PE2虽然没有学习到MAC1,但是PE2可以向PE3发布EPVN以太网自动发现路由(英文:Ethernet A-D Route),PE3就可以知道通过PE1和PE2均可以到达终端设备A,即PE3根据别名(英文:Aliasing)方式形成了负载分担。需要说明的是,图1中以终端设备A通过CE1接入PE设备为例进行说明,在实际组网中,也可以是终端设备A直接作为CE设备接入PE设备,此时,终端设备A的MAC地址即为CE设备的MAC地址。本文中以终端设备A通过CE设备接入PE设备为例进行说明。对于终端设备直接接入PE设备的方案,与终 端设备通过CE设备接入PE设备的方案类似,此处不再赘述。
关于MAC/IP通告路由以及Ethernet A-D路由的具体细节,以及PE3根据别名方式形成负载分担的细节可以参照国际互联网工程任务组(Internet Engineering Task Force,IETF)发布的征求意见(英文:Request For Comments,RFC)7432中的具体说明,此处不再赘述。但是,在现有的EVPN技术中,当来自终端设备B发送的目的MAC地址为MAC1的已知单播流量到达PE3。PE3对该已知单播流量进行负载分担处理,并发送到PE2。由于PE2未从CE1学习到终端设备A的MAC地址,PE2无法直接向CE1转发上述单播流量,导致PE2需要经由PE1将流量发送到CE1。也就是说,PE1和PE2没有对目的MAC地址为MAC1的已知单播流量进行有效的负载分担。不仅浪费了PE2到CE1的带宽资源,也消耗了PE1到CE1的带宽资源。上述方案中,浪费了系统资源,不能有效发挥EVPN的技术优势。
发明内容
本申请提供了一种报文处理的方法,用于解决现有技术中一个PE设备无法向多归接入多个PE设备(包括所述PE)的CE设备转发流量,从而导致多个PE设备之间无法形成有效的负载分担的技术问题。
第一方面,本申请提供了一种报文处理方法,应用于EVPN中,用户边缘CE设备经由第一链路连接到第一运营商边缘PE设备的第一接口,所述CE设备经由第二链路连接到第一PE设备的第二接口。首先,该第一PE设备接收所述第二PE设备发送的第一消息。所述第一消息携带第一媒体接入控制/互联网协议通告路由MAC/IP Advertisement Route。所述第一MAC/IP Advertisement Route包括MAC地址以及用于标识以太网段ES的以太网段标识ESI,所述第一MAC/IP Advertisement Route包括的MAC地址为所述CE设备的MAC地址或所述CE设备所管辖的终端设备的MAC地址。所述以太网段ES包括所述第一链路和所述第二链路。所述第一PE设备根据所述以太网段标识ESI确定所述第一PE设备连接所述CE设备的接口为所述第一接口。进一步地,所述第一PE设备根据所述确定的第一接口以及所述第一MAC/IP Advertisement Route所包括的MAC地址,生成第一MAC转发表项。所述第一MAC转发表项包含所述第一MAC/IP Advertisement Route所包括的MAC地址,所述第一MAC转发表项包含的出接口标识为所述第一接口的标识,所述第一MAC转发表项被所述第一PE设备用于向所述CE设备转发目的MAC地址为所述第一MAC/IP Advertisement Route所包括的MAC地址的报文。
在上述方案中,在上述的第一PE设备没有从CE设备学习到MAC路由的情况下,第二PE设备向第一PE设备通告从CE学习到的MAC路由。所述第一PE设备能够根据接收到的MAC路由,生成所述第一MAC转发表项。当第一PE设备接收到目的MAC地址为所述第一MAC/IP Advertisement Route所包括的MAC地址的数据流时,可以根据该第一MAC转发表项,通过第一链路向所述CE设备转发所述数据流。当终端设备通过CE设备接入所述第一PE设备时,所述CE设备向所述终端设备转发所述数据流。上述技术方案中,在CE设备多归多活接入多个PE设备的场景中,多个PE设备能够有效的形成负载分担,实现带宽资源的合理利用。
在一个可选的设计中,所述第一消息中还携带有下一跳网络地址,所述第一消息 中的下一跳网络地址为所述第二PE设备的网络地址,例如,所述第二PE设备的环回lookback地址。所述方法还包括:所述第一PE设备根据所述第一消息,获取所述第二PE设备的网络地址;以及所述第一PE设备根据所述第一MAC/IP Advertisement Route所包括的MAC地址以及所述第二PE设备的网络地址,生成第二MAC转发表项。其中,所述第二MAC转发表项包括所述第一MAC/IP Advertisement Route所包括的MAC地址,所述第二MAC转发表项包含的下一跳网络地址为所述第二PE设备的网络地址。当所述第一链路发生故障时,所述第二MAC转发表项被所述第一PE设备用于转发目的MAC地址为所述第一MAC/IP Advertisement Route所包括的MAC地址的报文。
当第一PE设备收到去往所述终端设备的已知单播流量(数据报文中携带的目的MAC地址为终端设备的MAC地址)时,第一PE设备查询MAC转发表,在所述第二链路处于正常工作状态时,根据所述第一MAC转发表项的指示,经由所述第一链路,直接通过所述CE设备转发报文。当所述第一链路故障时,第一PE设备收到去往终端设备的已知单播流量(数据报文中携带的目的MAC地址为终端设备的MAC地址)时,根据第二MAC转发表项的指示,向所述第二PE设备转发所述流量,通过所述第二PE设备向所述CE设备转发所述流量,从而提高了故障的收敛速度。
在一个可选的设计中,所述第一消息为第一边界网关协议更新BGP Update消息。
在一个可选的设计中,在所述第一PE设备接收所述第二PE设备发送的第一消息之后,所述方法还包括:所述第一PE设备生成第二消息,所述第二消息携带第二MAC/IP Advertisement Route和下一跳网络地址。所述第二MAC/IP Advertisement Route包括MAC地址和所述以太网段标识ESI,所述第二MAC/IP Advertisement Route包括的MAC地址与所述第一MAC/IP Advertisement Route所包括的MAC地址相同。所述第二消息携带的所述下一跳网络地址为所述第一PE设备的网络地址。所述第一PE设备向所述第二PE设备发送所述第二消息,所述第二消息被所述第二PE设备用于生成第三MAC转发表项和第四MAC转发表项。其中,所述第三MAC转发表项被所述第二PE设备用于转发目的MAC地址为所述第二MAC/IP Advertisement Route所包括的MAC地址的报文,所述第三MAC转发表项包括所述第二MAC/IP Advertisement Route所包括的MAC地址,所述第三MAC转发表项包含的出接口的标识为所述第一接口的标识。当所述第一链路发生故障时,所述第四MAC转发表项被所述第二PE设备用于转发目的MAC地址为所述第二MAC/IP Advertisement Route所包括的MAC地址的报文,所述第四MAC转发表项包括所述第二MAC/IP Advertisement Route所包括的MAC地址,所述第四转发表项包含的下一跳网络地址为所述第一PE设备的网络地址。
通过上述方案,第一PE设备在收到所述第一消息以后,根据第一消息中携带的信息,在控制平面生成本地的主用MAC路由表项以及用于快速重路由的备用MAC路由表项。进一步地,控制平面将上述主用MAC路由表项和备用MAC路由表项下发到转发平面,生成用于实现快速重路由的第一MAC转发表项和第二MAC转发表项。并且,第一PE设备在收到所述第一消息以后,生成本地的所述第一MAC转发表项后,还会将该本地的MAC路由回送给所述第二PE设备,使得第二PE设备生成用于实现快速从路由的备用MAC路由表项。而第二PE设备从CE设备学习到的MAC路由可 以作为本地MAC路由,即主用MAC路由。当第二PE设备和CE设备连接的链路,例如,所述第二链路发生链路故障时,所述第二PE设备的本地MAC路由被撤销。当所述第一链路故障恢复后,第二PE设备可以根据所述第一PE设备通告的所述第二MAC/IP Advertisement Route路由,再次生成所述本地MAC路由,用于指导向所述CE设备转发流量。从而使得,在第二链路发送故障并再次恢复后,能够快速实现路由重定向,实现故障的快速收敛。
需要说明的是,在本申请中所述的PE设备的本地MAC路由,是指用于指导直接向所述CE设备转发单播流量的路由,本地MAC路由中包括的目的MAC地址为所述CE设备的MAC地址或接入所述CE设备的终端设备的MAC地址,本地MAC路由中包括的出接口的标识为所述PE设备上的连接所述CE设备的接口标识。
在一个可选的设计中,所述第二消息还携带有指示信息,所述指示信息用于指示所述第二PE设备在收到所述第二MAC路由消息后,避免向所述第一PE设备发送到达所述第二MAC/IP Advertisement Route所包括的MAC地址的MAC/IP Advertisement Route,从而避免形成报文环路。
第二方面,本申请提供了一种报文处理方法,该方法应用于EVPN中,其中,用户边缘CE设备经由第一链路连接到第一运营商边缘PE设备的第一接口,该CE设备经由第二链路连接到第二PE设备的第二接口。第二PE设备生成第一消息,所述第一消息携带到达所述CE设备的第一MAC/IP Advertisement Route。该第一MAC/IP Advertisement Route包括MAC地址以及用于标识以太网段ES的以太网段标识ESI,所述第一MAC/IP Advertisement Route包括的MAC地址为所述CE设备的MAC地址或所述CE设备所管辖的终端设备的MAC地址。其中,该以太网段ES包括所述第一链路和所述第二链路。该第二PE设备向该第一PE设备发送所述第一消息,所述第一MAC/IP Advertisement Route被所述第一PE设备用于生成第一MAC转发表项。所述第一MAC转发表项包含的目的MAC地址为所述第一MAC/IP Advertisement Route所包括的MAC地址;所述第一MAC转发表项包含的出接口标识为所述第一接口的标识;所述第一MAC转发表项被所述第一PE设备用于向所述CE设备转发目的MAC地址为所述第一MAC/IP Advertisement Route所包括的MAC地址的报文。
上述技术方案中,在上述的第一PE设备没有从CE设备学习到到达所述CE设备或到达接入所述CE设备的终端设备的MAC路由的情况下,第二PE设备向第一PE设备通告到达所述所述CE设备或到达接入所述CE设备的终端设备的的MAC路由。所述第一PE设备能够根据接收到的MAC路由,生成所述第一MAC转发表项。当第一PE设备接收到目的MAC地址为所述第一MAC/IP Advertisement Route所包括的MAC地址的数据流时,可以根据该第一MAC转发表项,直接通过第二链路向所述CE设备转发所述数据流。上述技术方案中,在CE设备多归多活接入多个PE设备的场景中,多个PE设备能够有效的形成负载分担,实现带宽资源的合理利用。
在一个可选的设计中,所述第一消息为第一边界网关协议更新BGP Update消息。
在一个可选的设计中,在所述第二PE设备向所述第一PE设备发送所述第一消息之后,所述方法还包括:所述第二PE设备接收所述第一PE设备发送的第二消息。所 述第二消息携带第二MAC/IP Advertisement Route和下一跳网络地址。所述第二MAC/IP Advertisement Route包括目的MAC地址以及所述以太网段标识ESI;所述第二MAC/IP Advertisement Route中的目的MAC地址为所述第一MAC/IP Advertisement Route所包括的MAC地址,所述第二消息携带的所述下一跳网络地址为所述第一PE设备的网络地址,例如,为所述第一PE设备的环回loopback地址。所述以太网段标识ESI被所述第二PE设备用于确定所述第二PE设备连接所述CE设备的接口为所述第二接口。所述确定的第二接口,所述第二MAC/IP Advertisement Route所包括的目的MAC地址被所述第二PE设备用于生成第三MAC转发表项。所述第三MAC转发表项包括的目的MAC地址为所述第二MAC/IP Advertisement Route所包括的MAC地址,所述第三转发表项包括的出接口的标识为所述第二接口的标识,所述第三MAC转发表项被所述第二PE设备用于转发目的MAC地址为所述第二MAC/IP Advertisement Route所包括的MAC地址的报文的表项。所述方法还包括:所述第二PE设备设备根据所述第二MAC/IP Advertisement Route所包括的MAC地址和所述第一PE设备的网络地址,生成第四MAC转发表项。所述第四MAC转发表项包括所述第二MAC/IP Advertisement Route所包括的MAC地址,所述第四MAC转发表项包括的下一跳网络地址为所述第一PE设备的网络地址。当所述第二链路发生故障时,所述第四MAC转发表项被所述第二PE设备用于转发目的MAC地址为所述第二MAC/IP Advertisement Route所包括的MAC地址的报文的表项。
在上述方案中,所述第二PE设备生成所述第三转发表项和所述第四转发表项之后,根据所述第三MAC转发表项和所述第四MAC转发表项实现快速重路由FRR。当第二PE设备收到去往终端设备的已知单播流量(数据报文中携带的目的MAC地址为终端设备的MAC地址)时,第二PE设备查询MAC转发表,当第二链路正常工作时,根据第三MAC转发表项的指示,直接通过网络设备向所述CE设备转发报文。当第二链路存在故障时,第二PE设备收到去往终端设备的已知单播流量(数据报文中携带的目的MAC地址为终端设备的MAC地址)后,第二PE设备查询MAC转发表,根据备用转发表项的指示,即第四MAC转发表项的指示,向所述第一PE设备转发所述流量,通过所述第一PE设备向所述所述CE设备转发所述流量,从而提高了故障的收敛速度。
在一个可选的设计中,所述第二MAC路由消息还携带有指示信息。所述第二PE设备接收所述第一PE设备发送的第二消息以后,所述方法还包括:所述第二PE设备根据所述指示信息的指示,避免向所述第一PE设备发送到达所述第二MAC/IP Advertisement Route所包括的MAC地址(也可以称之为到达CE设备或到达接入所述CE设备的终端设备)的MAC/IP Advertisement Route。由此可以有效的避免形成报文环路。
第三方面,本申请提供了一种第一运营商边缘PE设备,第一PE设备用于执行第一方面以及第一方面中任一可能的设计中的方法。具体地,第一PE设备包括用于实现第一方面以及第一方面中任一可能的设计中的方法的模块。
第四方面,本申请提供了一种第二运营商边缘PE设备,第二PE设备用于执行第二方面以及第二方面中任一可能的设计中的方法。包括用于实现第二方面以及第二方 面中任一可能的设计中的方法的模块。
第五方面,本申请提供了一种第一PE设备,所述第一PE设备包括:输入接口、输出接口、处理器和存储器。其中,输入接口、输出接口、处理器以及所述存储器之间可以通过总线系统相连。该存储器用于存储程序,所述处理器用于执行所述存储器中的程序,从而执行第一方面或第一方面的任意可能的设计中的方法。
第六方面,本申请提供了一种第二PE设备,所述第二PE设备包括:输入接口、输出接口、处理器和存储器。其中,输入接口、输出接口、处理器以及所述存储器之间可以通过总线系统相连。该存储器用于存储程序,所述处理器用于执行所述存储器中的程序、指令或代码,从而执行第二方面或第二方面的任意可能的设计中的方法。
第七方面,本申请提供了一种第一PE设备,所述第一PE设备包括:主控板和接口板,进一步,还可以包括交换网板。所述第一PE设备用于执行第一方面或第一方面的任意可能的设计中的方法。
第八方面,本申请实施例提供了一种第一PE设备,所述第一PE设备包括:控制器和第一PE转发设备。所述第一PE转发设备包括:接口板,进一步,还可以包括交换网板。所述第一PE设备用于执行第一方面或第一方面的任意可能的设计中的方法。所述控制器包括接收器、处理器、发送器、随机存取存储器、只读存储器以及总线。其中,处理器通过总线分别耦接接收器、发送器、随机存取存储器以及只读存储器。其中,当需要运行控制器时,通过固化在只读存储器中的基本输入/输出系统或者嵌入式系统中的bootloader引导系统进行启动,引导控制器进入正常运行状态。在控制器进入正常运行状态后,在随机存取存储器中运行应用程序和操作系统,使得该处理器执行第七方面中主控板的功能。
第九方面,本申请提供了一种第二PE设备,所述第二PE设备包括:主控板和接口板,进一步,还可以包括交换网板。所述第二PE设备用于执行第二方面或第二方面的任意可能的设计中的方法。
第十方面,本申请实施例提供了一种第二PE设备,所述第二PE设备包括:控制器和第二PE转发设备。所述第PE转发设备包括:接口板,进一步,还可以包括交换网板。所述第二PE设备用于执行第二方面或第二方面的任意可能的设计中的方法。所述控制器包括接收器、处理器、发送器、随机存取存储器、只读存储器以及总线。其中,处理器通过总线分别耦接接收器、发送器、随机存取存储器以及只读存储器。其中,当需要运行控制器时,通过固化在只读存储器中的基本输入/输出系统或者嵌入式系统中的bootloader引导系统进行启动,引导控制器进入正常运行状态。在控制器进入正常运行状态后,在随机存取存储器中运行应用程序和操作系统,使得该处理器执行第九方面中主控板的功能。
第十一方面,本申请实施例提供了一种通信系统,该通信系统包括第三方面、第五方面第七方面或第八方面任一项所述的第一PE设备以及第四方面、第六方面、第九方面或第十方面任一项所述的第二PE设备。
第十二方面,本申请提实施例供了一种计算机可读存储介质或者计算机程序产品,用于存储计算机程序,该计算机程序用于执行第一方面、第二方面、第一方面任意可能的设计或第二方面任意可能的设计中的方法。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。
图1为现有技术中提供的一种EVPN应用场景示意图;
图2为本申请实施例提供的一种报文处理方法的应用网络场景示意图;
图3为本申请实施例提供的另一种报文处理方法的流程示意图;
图4a为本申请实施例提供的一种BGP Update消息中MP_REACH_NLRI属性字段格式示意图;
图4b为本申请实施例提供的一种EVPN NLRI字段格式示意图;
图4c为本申请实施例提供的一种EVPN MAC/IP Advertisement Route字段格式示意图;
图5为本申请实施例提供的一种ESI字段格式示意图;
图6为本申请实施例提供的另一种报文处理方法的流程示意图;
图7为本申请实施例提供的另一种报文处理方法的流程示意图;
图8为本申请实施例提供的一种第一PE设备的结构示意图;
图9为本申请实施例提供的一种第二PE设备的结构示意图;
图10为本申请实施例提供的一种第一PE设备的硬件结构示意图;
图11为本申请实施例提供的一种第二PE设备的硬件结构示意图;
图12为本申请实施例提供的一种第二PE设备的结构示意图;
图13为本申请实施例提供的一种第二PE设备的结构示意图;
图14为本申请实施例提供的一种第一PE设备的结构示意图;
图15为本申请实施例提供的一种第一PE设备的结构示意图。
具体实施方式
下面将结合附图,对本申请实施例中的技术方案进行描述。本申请实施例描述的网络架构以及业务场景是为了更加清楚的说明本申请实施例的技术方案,并不构成对于本申请实施例提供的技术方案的限定,本领域普通技术人员可知,随着网络架构的演变和新业务场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。
本申请描述的技术方案可以适用于基于BGP MPLS的EVPN中。EVPN技术采用类似于BGP/MPLS互联网协议(英文:Internet Protocol,IP)VPN的机制,通过扩展BGP协议,使用扩展后的可达性信息,使不同站点的二层网络间的MAC地址学习和发布过程从数据平面转移到控制平面。通过在控制平面学习MAC地址来实现L2VPN的功能。在控制平面学习MAC地址,可以解决数据平面进行MAC地址学习而导致的网络设备多归属实现困难、无法支持负载分担等问题。
CE设备多归属接入EVPN包括通过以太链路多归接入EVPN。一个CE设备通过多条链路分别连接到多个网络侧设备的部署称为CE设备多归接入。
图2示出了典型的以太链路多归多活接入EVPN的场景。如图2所示,EVPN中包括四个PE设备,分别是PE1-1,PE1-2,PE1-3和PE2。CE1分别通过以太网链路(英文:Ethernet Link,EL)1、EL2和EL3连接到PE1-1、PE1-2和PE1-3。包含这三条以太网链路的一组以太网链路是一个以太网段(英文:Ethernet Segment,ES)。以太网段标识(英文:Ethernet Segment Identifier,ESI)是一个唯一的非零标识,用于标识该以太网段ES。PE1-1学习到VPN1的站点(英文:site)1中的用户设备(英文:User Equipment,UE)1的MAC地址,例如MAC A,PE1-1通过BGP Update消息向PE2发布MAC/IP通告路由。PE1-2没有学习到UE1的MAC地址。PE1-2向PE2发布以太网自动发现路由(英文:Ethernet Auto-discovery Route,Ethernet A-D route)。因此,PE2根据别名(英文:Aliasing)方式知道,PE2经由PE1-1可以到达UE1,和PE2经由PE1-2可以到达UE1。由此,UE2发往UE1的单播流量,经由PE2传输时,PE2可以对该单播流量进行负载分担处理。该单播流量经由PE1-1和PE1-2,被转发至CE1。从而实现VPN1里的UE1和UE2的互通。
在以太链路多归属部署场景中,EVPN支持多种冗余模式。该多种冗余模式包括单活的冗余模式、多活的冗余模式和全活的冗余模式。所谓单活的冗余模式(简称为单活模式)是指以太网链路段中只有一条以太网链路的状态是活跃的,其它的一条或者多条以太网链路的状态是非活跃的。活跃状态意味着该以太网链路可以用于承载、转发数据流。在主备保护的场景下,通常用作主用以太网链路。相应地,以太网链路的状态还可以为非活跃,非活跃状态意味着该以太网链路不可以用于承载、转发数据流,通常用作备用以太网链路。当主用以太网链路故障时,会切换到备用以太网链路来承载、转发数据流。所以,单活模式下的部署场景可以包括单活(ES中只有一条EL)、单活单备(ES中有两条EL,一条的状态为活跃,另一条的状态为非活跃)和单活多备(ES中有至少三条EL,一条的状态为活跃,另外至少两条的状态为非活跃)。结合图2进一步解释,假如该ES中只有一条以太链路EL1是活跃的,用作主用EL,而其它EL2和EL3都为非活跃,用作备份EL,则这种冗余模式为单活双备(属于单活多备)。
在以太网链路多归属部署场景中,所谓全活的冗余模式(简称为全活模式)是指以太网链路段中所有的以太网链路的状态都是活跃的,即没有非活跃状态的以太网链路。所有这些活跃状态的以太网链路可以实现对数据流进行负载分担地转发,从而提供更大带宽的传输能力。但是全活模式的场景不支持备份,即没有作为备用的以太网链路,当主用的一条或多条以太网链路出现故障时,无法切换到备用以太网链路进行冗余保护。结合图2进一步解释,假如该ES中的全部三条以太链路EL1、EL2和EL3都为活跃,则没有备份EL,则这种冗余模式为全活模式。
在以太网链路多归属部署场景中,所谓多活的冗余模式(简称为多活模式)是指以太网链路段中的部分以太网链路的状态是活跃的,另一部分以太网链路的状态是非活跃的。这些活跃状态的以太网链路(用作主用以太网链路)可以实现对数据流进行负载分担地转发,从而提供更大带宽的传输能力。而另一部分非活跃状态的以太网链路用作备份,当主用的一条或多条以太网链路出现故障时,可以切换到这些备用以太网链路进行冗余保护。结合图2进一步解释,假如该ES中的两条以太网链路EL1和 EL2为活跃状态,EL3为非活跃状态,则EL1和EL2联合起来对数据流进行负载分担的转发,而EL3为EL1或者EL2提供备份保护。
关于MAC/IP通告路由以及Ethernet A-D路由的具体细节,以及PE2如何根据别名方式形成负载分担,可以参考RFC7432,该文档与此相关部分的内容以引入的方式并入本文本中,此处为了简洁,不再赘述。
在图2所示的场景中,CE设备发送给PE设备的流量,通过哈希(英文:Hash)算法选路,Hash算法的具体实现依赖于CE设备。其中,CE设备的实现方式并不能保证流量会流经CE设备与PE设备连接的每条链路。对于没有被选择的链路,与该链路对应的PE设备学习不到CE设备所接入的终端设备的MAC地址,也无法有效获取所述终端设备的VLAN信息。例如,CE设备使用源MAC地址加目的MAC地址为哈希因子时,CE设备发送给PE设备的流量可能会哈希到与PE1-1连接的链路上,从而导致PE1-2没有学习到UE1的MAC地址,导致PE1-2上没有到达UE1的本地MAC转发表项,当目的MAC地址为MACA的单播流量到达PE1-2时,PE1-2无法直接向CE1转发该单播流量。
需要说明的是,本领域技术人员应该理解,图2所示的场景仅是一种例举,不应构成对本申请的限制。图2示出终端设备通过CE设备接入所述PE设备,实际操作中,也可以是终端设备自身作为CE设备接入所述PE设备,此时,终端设备的MAC地址即为CE设备的MAC地址。图2所示的场景可以引用于多种场景中。例如,应用于移动承载网(英文:Mobile Bearer Network),典型的移动承载网是互联网协议化无线接入网(英文:Internet Protocol Radio Access Network,缩写:IP RAN)。在移动承载网中,所述CE设备可以是基站(英文:Base Transceiver Station,缩写:BTS),所述PE设备可以连接基站控制器(英文:Base Station Controller,缩写:BSC)或无线网络控制器(英文:Radio Network Controller,缩写:RNC)。又例如,所述EVPN VXLAN应用于固网(英文:Fixed Network)。在固网中,所述CE设备可以是用户侧的站点,所述PE设备可以是宽带接入服务器(英文:Broadband Access Server,缩写:BAS)。
还需要说明的是,本申请中,本申请实施例中的CE设备和PE设备可以是RFC7432中定义的相应设备。所述的PE设备可以是路由器或交换机,所述CE设备可以是路由器或交换机或终端设备。当所述CE设备是路由器时,可以连接一台或者多台终端设备。CE设备通常一侧与PE设备相连,另一侧与UE相连,实现将用户设备中转、接入运营商网络。UE又称之为终端设备(英文:Terminal Equipment,TE)或终端(英文:terminal),可以是具有无线通信功能的手持设备、车载设备、可穿戴设备、计算机设备、虚拟机或连接到无线调制解调器的其它处理设备。UE还可以是用户设备或者移动台(英文:Mobile Station,MS)。
还需要说明的是,PE和PE设备在本申请的各个实施例中是同一个意思。同理,CE和CE设备是同一个意思。本申请中所述的数据流可以是已知单播数据流。
图3示出了本申请提供的一种报文处理方法300,应用于EVPN,用户边缘CE设备通过至少两条链路分别接入到至少两个PE设备的场景中。所述至少两条链路形成一个以太网段,所述至少两个PE设备包括第一PE设备和第二PE设备。需要说明的是,在本申请中,所述链路可以是以太网链路;用于标识所述以太网段的标识是以太 网段标识ESI。以太网段也可以称之为以太网链路段或者以太网链路集合。所述CE设备经由第一链路接入所述第一PE设备的第一接口。所述CE设备经由第二链路接入所述第二PE设备的第二接口。以太网段包括所述第一链路和所述第二链路。
图3所示的方法300可以应用于图2所示的场景中。具体地,所述CE设备例如可以是图2所示的CE1,所述第一PE设备例如可以是图2所示第PE1-2,所述第二PE设备例如可以是图2所示的PE1-1。该方法300包括S301至S305。
S301.第二PE设备生成第一消息。
具体地,所述第一消息携带到达所述CE设备的第一媒体接入控制/互联网协议通告路由MAC/IP Advertisement Route。所述第一MAC/IP Advertisement Route包括MAC地址以及用于标识以太网段ES的链路以太网段标识ESI,所述第一MAC/IP Advertisement Route包括的MAC地址为所述CE设备的MAC地址或所述CE设备所管辖的终端设备的MAC地址。进一步的,所述第一消息还包括下一跳网络地址,该下一跳网络地址为该第二PE设备的网络地址,例如,为第二PE设备的环回(英文:lookback)地址。需要说明的是,本申请所述的环回地址是在网络设备(如路由器、交换机等)的环回接口上配置的IP地址,通常用作网络设备标识(例如,32位掩码的IPv4地址:10.10.1.1/32),本领域技术人员可以理解。在一个具体的实施方式中,所述第二PE设备从所述第二接口接收所述CE设备通过所述第二链路发送的报文,所述报文中携带所述CE设备的MAC地址或所述CE设备所管辖的终端设备的MAC地址,所述第二PE设备从该报文中获取所述第一MAC/IP Advertisement Route所包括的MAC地址。所述第二PE设备根据所述第二接口确定所述以太网段标识ESI。具体地,所述第二PE设备可以包括多个接口。所述多个接口可以是多个以太网接口。所述第二PE设备可以保存所述第二PE设备的每个接口的配置信息。所述第二接口的配置信息包括所述ESI。也就是说,所述第二接口与所述ESI具有对应关系。所述第二PE设备可以根据所述第二接口与所述ESI的对应关系确定所述ESI。
S302.该第二PE设备向第一PE设备发送所述第一消息。
具体地,所述第二PE设备向所述第一PE设备发送所述第一消息,所述第一MAC/IP Advertisement Route被所述第一PE设备用于生成第一MAC转发表项。所述第一MAC转发表项包含所述第一MAC/IP Advertisement Route所包括的MAC地址,所述第一MAC转发表项包含的出接口标识为所述第一接口的标识,所述第一MAC转发表项被所述第一PE设备用于向所述CE设备转发目的MAC地址为所述第一MAC/IP Advertisement Route所包括的MAC地址的报文。
需要说明的是,在本申请中,第二PE设备能够从CE学习到所述第一MAC/IP Advertisement Route所包括的MAC地址,所述第一PE设备不能从CE学习到所述第一MAC/IP Advertisement Route所包括的MAC地址。
在一个具体的实施方式中,所述第一消息为边界网关协议(英文:Border Gateway Protocol,BGP)更新(英文:Update)消息(也可称为BGP Update报文)。在本申请中,将该BGP Update消息称之为第一BGP Update消息。该第一BGP Update消息携带所述第一MAC/IP Advertisement Route。该MAC/IP Advertisement Route属于BGP协议定义的EVPN网络可达层信息(英文:Network Layer Reachability Information, NLRI)中的一种路由类型,用于指导单播流量转发。该EVPN NLRI承载在多协议网络层可达信息(英文:Multiprotocol Reachable NLRI,MP_REACH_NLRI)属性中。MP_REACH_NLRI属性是BGP Update消息里定义的一个属性,具体格式如图4a所示,该属性包括地址族标识(英文:Address Family Identifier,AFI)字段和子地址族标识(英文:Subsequent Address Family Identifier,SAFI)字段。该AFI字段的取值用于指示L2VPN,如为25。该SAFI字段的取值用于指示EVPN,如为70。该MP_REACH_NLRI属性还包括下一跳网络地址长度(英文:Length of Next Hop Network Address)和下一跳网络地址(英文:Network Address of Next Hop)字段。该下一跳网络地址字段用来携带所述的下一跳网络地址(如loopback地址)。该MP_REACH_NLRI属性还包括NLRI字段,结合上述AFI和SAFI的取值指示L2VPN中的EVPN,该NLRI字段为EVPN NLRI字段。如图4b所示,该EVPN NLRI字段包括例如2个字节的路由类型(英文:Route Type)字段、2个字节的长度(英文:Length)字段和变长的路由类型细节(英文:Route Type specific)字段。需要说明的是,本申请对于Route Type字段以及Length字段的长度不作具体限定。其中,该Route Type包括该MAC/IP Advertisement Route,例如,取值为2。该Route Type specific字段用于承载该MAC/IP Advertisement Route的细节。如图4c所示,该MAC/IP Advertisement Route包括8个字节路由区分符(英文:Route Distinguisher,RD)字段、10个字节以太网段标识(英文:Ethernet Segment Identifier,ESI)字段、4个字节以太网标签标识(英文:Ethernet Tag ID)字段、1个字节的MAC地址长度字段、6个字节的MAC地址字段、1个字节的下一跳网络地址长度字段、0字节或4个字节或16个字节的下一跳网络地址字段、3个字节的MPLS标签1(英文:Label)字段以及0个字节或3个字节MPLS标签2字段,MPLS标签2用于指导3层流量转发。图4c中所示的ESI字段的格式如图5所示,包括类型(英文:Type,T)字段和ESI值(英文:Value)字段。其中Type字段用于指示ESI的生成方式。常用的两种生成方式是Type0和Type1,其中Type0表示通过手工配置生成,Type1表示PE和CE之间运行链路聚合控制协议(英文:Link Aggregation Control Protocol,缩写:LACP),所述ESI值域的取值范围为0至0xFF,其中“0x”表示16进制。ES和ESI的生成及设置可以参见RFC7432中的第5章的说明。其中,关于BGP update消息和MP_REACH_NLRI属性的定义可以参见RFC476中的说明,所述EVPN NLRI字段的定义参见RFC7432中的说明。
S303.所述第一PE设备接收所述第二PE设备发送的所述第一消息。
S304.所述第一PE设备确定连接所述CE设备的接口为所述第一接口。
在一个具体的实施方式中,在EVPN中,当多个PE设备连接同一个CE设备时,用于连接该CE设备的接口配置相同的以太网段标识ESI。CE设备通过E-TRUNK多归连接到第一PE设备和第二PE设备,该CE设备相当于连接了一个PE设备。第一PE设备和第二PE设备上具有多个接口,该第一PE设备通过第一接口与该CE设备连接,该第二PE设备通过第二接口与该CE设备连接。所述第一PE设备上保存了所述第一接口的配置信息。所述第二PE设备上保存了所述第二接口的配置信息。所述第一接口的配置信息包括ESI。所述第二接口的配置信息包括ESI。为该第一接口配置的ESI与为该第二接口配置的ESI是相同的。因此,当所述第一PE设备接收所述第一消 息以后,获取所述第一消息中携带的所述第一MAC/IPAdvertisement Route。所述第一PE设备提取所述第一MAC/IP Advertisement Route中携带的所述以太网段标识ESI,以获取所述以太网段标识ESI。该第一PE设备根据所述ESI确定连接所述CE设备的接口为所述第一接口。具体地,所述第一PE设备可以包括多个接口。所述多个接口可以是多个以太网接口。所述第一PE设备可以保存所述第一PE设备的每个接口的配置信息。所述第一接口的配置信息包括所述ESI。也就是说,所述第一接口与所述ESI具有对应关系。所述第一PE设备可以以所述第一MAC/IP Advertisement Route中携带的所述ESI为查找关键字,在所述第一PE设备保存的多个接口的配置信息中查找包含所述ESI的配置信息。当所述第一PE设备查找到包含所述ESI的配置信息时,所述第一PE设备可以根据所述第一接口与所述ESI的对应关系确定所述第一PE设备连接所述CE设备的接口为所述第一接口。
S305.所述第一PE设备生成第一MAC转发表项。
具体地,所述第一PE设备根据所述确定的第一接口以及所述第一MAC/IP Advertisement Route所包括的MAC地址,生成第一MAC转发表项。所述第一MAC转发表项被所述第一PE设备用于向所述CE设备转发目的MAC地址为所述第一MAC/IP Advertisement Route所包括的MAC地址的报文。所述第一MAC转发表项包含的目的MAC地址为所述第一MAC/IP Advertisement Route所包括的MAC地址,所述第一MAC转发表项包含的出接口标识为所述第一接口的标识。作为示例,当第一PE设备接收到目的MAC地址为所述第一MAC/IP Advertisement Route所包括的MAC地址的数据流(已知单播数据流)后,基于该第一MAC转发表项,将该数据流中的报文从该确定的第一接口向所述CE设备转发。
在一个具体的实施方式中,第一PE设备接收到第一报文,该第一报文的目的MAC地址为所述第一MAC/IP Advertisement Route所包括的MAC地址。所述第一PE设备通过查找该第一MAC转发表项,确定所述第一接口为转发该第一报文的出接口。在完成所有的转发处理动作后,将该第一报文通过所述第一接口转发给所述CE设备。需要说明的是,在本申请各实施例中,所述CE设备以虚拟局域网(英文:Virtual Local Area Network,VLAN)透传的方式接入所述PE设备。即PE设备在接收CE设备发送的报文或者向CE设备发送报文时,对于报文中携带的VLAN信息不做改变,直接透传。
上述技术方案中,在上述的第一PE设备没有从CE设备学习到MAC路由的情况下,第二PE设备向第一PE设备通告到达所述第一MAC/IP Advertisement Route所包括的MAC地址的MAC路由。所述第一PE设备能够根据接收到的MAC路由,生成所述第一MAC转发表项。当第一PE设备接收到目的MAC地址为所述第一MAC/IP Advertisement Route所包括的MAC地址的数据流时,可以根据该第一MAC转发表项,通过所述第一链路向所述CE设备转发所述数据流。并且,当所述第一MAC/IP Advertisement Route所包括的MAC地址为接入所述CE设备的终端设备的MAC地址时,通过所述CE设备向所述终端设备转发所述数据流。上述技术方案中,在CE设备多归多活接入多个PE设备的场景中,多个PE设备能够有效的形成负载分担,实现带宽资源的合理利用。
在一个具体的实施方式中,在所述S305之后,所述方法300还可以包括S306-308,如图6所示,所述方法300包括S301-S308。
S301至S305的相关说明参见前述实施例,此处不再赘述。
S306.所述第一PE设备获取获取所述第一消息中携带的下一跳网络地址。
具体地,该下一跳网络地址可称之为第一下一跳网络地址,该第一下一跳网络地址为所述第二PE设备的网络地址,例如,为所述第二PE设备的loopback地址。
S307.所述第一PE设备生成第二MAC转发表项。
具体地,所述第一PE设备根据所述第一MAC/IP Advertisement Route所包括的MAC地址和所述第二PE设备的网络地址,生成所述第二MAC转发表项。所述第二MAC转发表项包括所述第一MAC/IP Advertisement Route所包括的MAC地址,所述第二MAC转发表项包含的下一跳网络地址为所述第二PE设备的网络地址。
在一个具体地实施方式中,所述第一PE设备从第三接口Intf1接收所述第二PE设备发送的所述第一消息,所述第一PE设备将所述第二PE设备作为去往所述终端设备的下一跳节点。第一PE设备的控制平面(例如,控制板)生成MAC路由表项(如表1所示),所述MAC路由表项的目的MAC地址为所述第一MAC/IP Advertisement Route所包括的MAC地址,下一跳网络地址为所述第二PE设备的环回地址。然后,所述第一PE设备根据所述MAC路由表项生成所述第二MAC转发表项(如表2所示),并将该第二MAC转发表项发送到第一PE设备的转发平面(例如,转发板)。所述第一PE设备根据所述MAC路由表项生成所述第二MAC转发表项时,所述第一PE设备可以根据所述MAC路由表项确定所述第二MAC转发表项中的目的MAC地址以及出接口。所述第二MAC转发表项的目的MAC地址为所述MAC路由表项中的目的地址。所述第二MAC转发表项的出接口为第三接口Intf1。所述第一PE设备将所述Intf1确定为所述第二MAC转发表项中的出接口可以包括:首先,第一PE设备以该MAC路由表项中的第二PE设备的loopback地址为查找关键字,查找转发等价类(英文:Forwarding Equivalence Class,FEC)到下一跳标签转发项(英文:Next Hop Label Forwarding Entry,NHLFE)映射表(简称也叫FTN映射表或者FTN转发表),获得与第二PE设备的loopback地址相对应的出接口为第一PE设备到第二PE设备的隧道的隧道标识(英文:Tunnel Identifier,Tunnel ID);然后,用该Tunnel ID查找隧道转发表,获得与该Tunnel ID对应的出接口为Intf 1(即该第一PE设备到该第二PE设备的隧道在该第一PE设备上的接口)。所述第一PE设备将所述Intf1确定为所述第二MAC转发表项中的出接口。需要说明的是,该隧道可以是标签交换路径(Label Switched Path,LSP)隧道,也可以是资源预留协议-流量工程(Resource Reservation Protocol-Traffic Engineering,RSVP-TE)隧道等。该隧道用于承载已知单播数据流,为了简洁,本发明的实施例附图2中并未示出,本领域技术人员可以理解。
表1:MAC路由表
目的MAC 下一跳网络地址列表
终端设备的MAC地址 第二PE设备的loopback地址
表2:MAC转发表
目的MAC 出接口列表
终端设备的MAC地址 Intf 1
S308.所述第一PE设备根据所述第一MAC转发表项和所述第二MAC转发表项实现快速重路由(英文:Fast Reroute,FRR)。所述第一MAC转发表项作为主用转发表项,所述第二MAC转发表项作为备用转发表项。
当第一PE设备收到已知单播流量(数据报文中携带的目的MAC地址为第一MAC/IP Advertisement Route所包括的MAC地址)时,第一PE设备查询MAC转发表,在所述第一链路处于正常工作状态时,根据第一MAC转发表项的指示,经由所述第一链路,直接通过所述CE设备转发报文;当所述第一链路故障时,第一PE设备收到所述已知单播流量(数据报文中携带的目的MAC地址为所述第一MAC/IP Advertisement Route所包括的MAC地址)时,根据第二MAC转发表项的指示,向所述第二PE设备转发所述流量,通过所述第二PE设备向所述CE设备转发所述流量,从而提高了故障的收敛速度。
可选的,在所述S305之后,所述方法300还可以包括S309-S312,下面结合图7对方法300进行说明。
S301至S305的相关说明参见前述实施例,此处不再赘述。
S309.所述第一PE设备生成第二消息。
在一个具体的实施方式中,在所述第一PE设备接收所述第二PE设备发送的第一消息之后,所述第一PE设备生成所述第二消息。所述第二消息用于携带第二MAC/IP Advertisement Route和下一跳网络地址,所述第二MAC/IP Advertisement Route包括目的MAC地址和所述以太网段标识ESI。所述第二MAC/IP Advertisement Route中包括的目的MAC地址与所述第一MAC/IP Advertisement Route所包括的MAC地址相同。具体地,第一PE设备根据所述第一消息生成所述第二消息。所述第一PE设备根据接收到的所述第一消息获取所述第一MAC/IP Advertisement Route中携带的MAC地址,并将其封装在MAC/IP Advertisement Route中。所述第二消息携带的所述下一跳网络地址为所述第一PE设备的网络地址,例如,所述第一PE设备的loopback地址。
S310.所述第一PE设备向所述第二PE设备发送所述第二消息。
在一个具体的实施方式中,所述第二消息为BGP Update消息,在本申请中,将该BGP Update消息称之为第二BGP Update消息。该第二BGP Update消息携带所述第二MAC/IP Advertisement Route。关于第二BGP Update消息的具体格式,第二MAC/IP Advertisement Route的具体格式的相关说明,参见S202中对于第一BGP Update消息的具体格式,第一MAC/IP Advertisement Route的具体格式的具体描述,此处不再赘述。
在一个具体的实施方式中,所述第二消息中还携带指示信息,所述指示信息用于指示所述第二PE设备在收到所述第二消息后,避免向所述第一PE设备发送到达第二MAC/IP Advertisement Route所包括的MAC地址的MAC/IP Advertisement Route,进而避免形成环路。所述第二消息包括一个标记(Flag)字段,用于携带所述指示信息。该Flag字段的长度例如可以是一个比特,或者一个字节,本申请对此不作限定。可选的,还可以在第二消息中定义一个新的字段,例如Flag字段,用于携带该指示信息, 不申请对此不作具体限定。到达所述第二MAC/IP Advertisement Route所包括的MAC地址的的MAC/IP Advertisement Route用于指导转发目的MAC地址为所述CE设备或者接入所述CE设备的所述终端的MAC地址的报文。
S311.所述第二PE设备接收所述第一PE设备发送的第二消息.
S312.所述第二PE设备生成第三MAC转发表项和第四MAC转发表项。
在一个具体的实施方式中,所述第二PE设备接收所述第二消息以后,根据所述第二消息中携带的所述第二MAC/IP Advertisement Route所包括的MAC地址以及所述以太网段标识ESI,生成第三MAC转发表项。所述第三MAC转发表项被所述第二PE设备用于转发目的MAC地址为所述第二MAC/IP Advertisement Route所包括的MAC地址的报文,所述第三MAC转发表项包括的出接口的标识为所述第二接口的标识。所述第二PE设备生成第三MAC转发表项的方式,与前述S305中所述第一PE设备生成第一MAC转发表项的方式类似,具体的说明参见S305,此处不再赘述。
需要说明的是,所述第二PE设备收到所述第二消息以后,可以在以下几种场景中生成所述第三MAC转发表项:
场景一:第二PE设备上没有到达所述第二MAC/IP Advertisement Route所包括的MAC地址的本地MAC路由,例如第二PE设备与所述CE设备之间的链路发生故障,导致该本地MAC路由被撤销。则所述第二PE设备可以根据所述第二PE设备携带的所述第二MAC/IP Advertisement Route所包括的MAC地址以及所述以太网段标识ESI,生成所述第三MAC转发表项。
场景二:第二PE设备在收到所述第二消息时,第二PE设备上具有到达所述第二MAC/IP Advertisement Route所包括的MAC地址的本地MAC路由,则第二PE设备保存所述第二消息中携带的路由信息。当第二PE设备与所述CE设备之间的链路发生故障,导致第二PE设备到达所述第二MAC/IP Advertisement Route所包括的MAC地址的本地MAC路由被撤销时,第二PE设备根据所述所述第二消息中携带的路由信息,即所述所述第二MAC/IP Advertisement Route所包括的MAC地址以及所述以太网段标识ESI,生成所述第三MAC转发表项。
上述两种场景仅是例举,本申请不限于此。
所述第二PE设备根据所述第二MAC/IP Advertisement Route所包括的MAC地址和所述第一PE设备的网络地址,生成第四MAC转发表项,所述第四MAC转发表项为用于转发目的MAC地址为所述第二MAC/IP Advertisement Route所包括的MAC地址的报文的备用转发表项,所述第四转发表项包含的下一跳网络地址为所述第一PE设备的网络地址。所述第二PE设备生成所述第四MAC转发表项的方式,与前述S307中所述第一PE设备生成所述第二MAC转发表项的方式类似,具体的说明参见S307,此处不再赘述。
在一个具体的实施方式中,所述第二PE设备生成所述第四转发表项之后,根据所述第二PE设备到达所述CE设备的本地MAC转发表项(也可称之为第五MAC转发表项,第五MAC转发表项例如可以是所述第三MAC转发表项,或者在生成所述第三MAC转发表项之前已经保存的本地MAC转发表项)和所述第四MAC转发表项实现快速重路由FRR。
由此,通过上述的方法,当第二PE设备收到去往终端设备的已知单播流量(数据报文中携带的目的MAC地址为所述第二MAC/IP Advertisement Route所包括的MAC地址)时,第二PE设备查询MAC转发表,当第二链路正常工作时,根据本地MAC转发表项(例如,第三MAC转发表项)的指示,直接通过第二链路向所述CE设备转发报文。当所述第二链路存在故障时,第二PE设备收到去往终端设备的已知单播流量(数据报文中携带的目的MAC地址为所述第二MAC/IP Advertisement Route所包括的MAC地址的)后,第二PE设备查询MAC转发表,根据备用转发表项的指示,即第四MAC转发表项的指示,向所述第一PE设备转发所述流量,通过所述第一PE设备向所述CE设备转发所述流量,从而提高了故障的收敛速度。
需要说明的是,在本申请所述的方法300中,可以同时包括S306-S308以及S309-S312,S306-S308与S309-S312的执行顺序不分先后。
在本申请实施例中,当所述第二PE设备到所述CE设备的链路发生故障后,第二PE设备到达所述第一MAC/IP Advertisement Route所包括的MAC地址的的MAC路由不可达,则该第二PE设备会向该第一PE设备发送MAC路由撤销消息,以撤销所述第一MAC/IP Advertisement Route路由。第一PE设备接收该第二PE设备发送的MAC路由撤销消息后,不会立即删除所述第一MAC/IP Advertisement Route路由,而是启动老化定时器,到达所述老化定时器设定的老化时间后,如果没有收到更新的到达所述CE设备的MAC路由,则删除所述第一MAC/IP Advertisement Route路由。由此可以避免第一PE设备在收到所述第二PE设备发送的MAC路由撤销消息后,向远端的PE设备,例如图2所示的第三PE设备PE2,发送MAC路由撤销消息,从而导致第二PE设备上本地MAC路由由于接口故障被撤销,远端的MAC路由被第一PE设备通告撤销后,第二PE设备上没有到达所述CE设备的MAC路由。此时,如果PE2发送的流量到达所述第二PE设备,第二PE设备查询不到MAC转发表而无法转发流量。
以上,结合图2-图7详细说明书根据本申请实施例提供的报文处理方法。以下,结合图8-图15详细说明根据本申请实施例提供的用于报文处理的运营商边缘PE设备和系统。
图8是根据本申请一实施例提供的第二PE设备400的示意图。该第二PE设备400可以是图2中的PE1-1,可以用于执行图3,图6或图7所示的实施例中第二PE执行的步骤。用户边缘CE设备经由第一链路连接到所述第一PE设备的第一接口,所述CE设备经由第二链路连接到第二PE设备的第二接口。如图8所示,该第二PE设备400包括:处理模块401和发送模块402。
处理模块401,用于生成第一消息,所述第一消息携带到达所述CE设备的第一MAC/IP Advertisement Route,所述第一MAC/IP Advertisement Route包括MAC地址以及用于标识以太网段ES的以太网段标识ESI,所述MAC地址为所述CE设备的MAC地址或所述CE设备所管辖的以太网虚拟私有网络EVPN的终端设备的MAC地址,其中,所述以太网段ES包括所述第一链路和所述第二链路。
发送模块402,用于向所述第一PE设备发送所述第一消息。所述第一MAC/IP Advertisement Route被所述第一PE设备用于生成第一MAC转发表项,所述第一MAC 转发表项包含所述第一MAC/IP Advertisement Route所包括的MAC地址,所述第一MAC转发表项包含的出接口标识为所述第一接口的标识,所述第一MAC转发表项被所述第一PE设备用于向所述CE设备转发目的MAC地址为所述第一MAC/IP Advertisement Route所包括的MAC地址的报文。
上述技术方案中,在上述的第一PE设备没有从CE设备学习到到达所述第一MAC/IP Advertisement Route所包括的MAC地址的MAC路由的情况下,第二PE设备向第一PE设备通告到达所述第一MAC/IP Advertisement Route所包括的MAC地址的MAC路由。所述第一PE设备能够根据接收到的MAC路由,生成所述第一MAC转发表项。当第一PE设备接收到目的MAC地址为所述第一MAC/IP Advertisement Route所包括的MAC地址的数据流时,可以根据该第一MAC转发表项,通过第一链路向所述CE设备转发所述数据流。上述技术方案中,在CE设备多归多活接入多个PE设备的场景中,多个PE设备能够有效的形成负载分担,实现带宽资源的合理利用。
在一个具体的实施方式中,所述第一消息为第一边界网关协议更新BGP Update消息。关于所述第一BGP Update消息的具体格式(如采用哪些字段),可以参考上述方法实施例中对应部分的描述,此处不再赘述。
在一个具体的实施方式中,所述第二PE设备400还包括接收模块403。在所述发送模块向所述第一PE设备发送所述第一消息之后,接收模块403,用于接收所述第一PE设备发送的第二消息。所述第二消息携带第二MAC/IP Advertisement Route和下一跳网络地址。所述第二MAC/IP Advertisement Route包括目的MAC地址以及所述以太网段标识ESI;所述第二MAC/IP Advertisement Route中的目的MAC地址为所述第一MAC/IP Advertisement Route所包括的MAC地址,所述第二消息携带的所述下一跳网络地址为所述第一PE设备的网络地址。所述以太网段标识ESI被所述第二PE设备用于确定所述第二PE设备连接所述CE设备的接口为所述第二接口。所述确定的第二接口以及所述第二MAC/IP Advertisement Route所包括的MAC地址被所述第二PE设备用于生成第三MAC转发表项,所述第三MAC转发表项包括所述第二MAC/IP Advertisement Route所包括的MAC地址,所述第三转发表项包括的出接口的标识为所述第二接口的标识,所述第三MAC转发表项被所述第二PE设备用于转发目的MAC地址为所述第二MAC/IP Advertisement Route所包括的MAC地址的报文的表项。
所述处理模块401,还用于根据所述第一MAC/IP Advertisement Route所包括的MAC地址和所述第一PE设备的网络地址,生成第四MAC转发表项。所述第四MAC转发表项包括所述第一MAC/IP Advertisement Route所包括的MAC地址,所述第四MAC转发表项包括的下一跳网络地址为所述第一PE设备的网络地址,当所述第二链路发生故障时,所述第四MAC转发表项被所述第二PE设备用于转发目的MAC地址为所述第二MAC/IP Advertisement Route所包括的MAC地址的报文。
所述第二PE设备生成所述第三转发表项和所述第四转发表项之后,根据所述本地MAC转发表项(也可称之为第五MAC转发表项,第五MAC转发表项例如可以是所述第三MAC转发表项,或者在生成所述第三MAC转发表项之前已经保存的本地MAC转发表项)和所述第四MAC转发表项实现快速重路由FRR。当第二PE设备收到去往终端设备的已知单播流量(数据报文中携带的目的MAC地址为终端设备的 MAC地址)时,第二PE设备查询MAC转发表,当第二链路正常工作时,根据第三MAC转发表项的指示,直接通过第二链路向CE设备备转发报文。当第二链路存在故障时,第二PE设备收到去往终端设备的已知单播流量(数据报文中携带的目的MAC地址为所述第二MAC/IP Advertisement Route所包括的MAC地址)后,第二PE设备查询MAC转发表,根据备用转发表项的指示,即第四MAC转发表项的指示,向所述第一PE设备转发所述流量,通过所述第一PE设备向所述CE设备转发所述流量,从而提高了故障的收敛速度。
在一个具体的实施方式中,所述第二消息还携带有指示信息。所述处理模块503,还用于在所述接收模块接收所述第一PE设备发送的第二消息以后,根据所述指示信息的指示,避免向所述第一PE设备发送到达所述第二MAC/IP Advertisement Route所包括的MAC地址的MAC/IP Advertisement Route。从而避免形成环路。
图9是根据本申请一实施例提供的第一PE设备500的示意图。该第一PE设备500可以是图2中的PE1-2,可以用于执行图3,图6或图7所示的实施例中第一PE设备执行的步骤。用户边缘CE设备经由第一链路连接到所述第一PE设备的第一接口,所述CE设备经由第二链路连接到第二PE设备的第二接口。如图9所示,该第一PE设备500包括:接收模块501和处理模块502。
该接收模块501,用于接收所述第二PE设备发送的第一消息。所述第一消息携带第一MAC/IP Advertisement Route。所述第一MAC/IP Advertisement Route包括MAC地址以及用于标识以太网段ES的以太网段标识ESI,所述MAC地址为所述CE设备的MAC地址或所述CE设备所管辖的以太网虚拟私有网络EVPN的终端设备的MAC地址。所述以太网段ES包括所述第一链路和所述第二链路。该处理模块502,用于根据所述以太网段标识ESI确定所述第一PE设备连接所述CE设备的接口为所述第一接口。该处理模块502具体根据所述接收模块501接收到第一消息中携带的所述ESI确定所述第一PE设备连接所述CE设备的接口为所述第一接口。
该处理模块502,还用于根据所述确定的第一接口以及所述第一MAC/IP Advertisement Route所包括的MAC地址,生成第一MAC转发表项。所述第一MAC转发表项包含所述第一MAC/IP Advertisement Route所包括的MAC地址。所述第一MAC转发表项包含的出接口标识为所述第一接口的标识。所述第一MAC转发表项被所述第一PE设备用于向所述CE设备转发目的MAC地址为所述第一MAC/IP Advertisement Route所包括的MAC地址的报文。
上述技术方案中,在上述的第一PE设备没有从CE设备学习到到达所述第一MAC/IP Advertisement Route所包括的MAC地址的MAC路由的情况下,第二PE设备向第一PE设备通告到达所述第一MAC/IP Advertisement Route所包括的MAC地址的MAC路由。所述第一PE设备能够根据接收到的MAC路由,生成所述第一MAC转发表项。当第一PE设备接收到目的MAC地址为所述第一MAC/IP Advertisement Route所包括的MAC地址的数据流时,可以根据该第一MAC转发表项,直接通过第一链路向所述CE设备转发所述数据流。上述技术方案中,在CE设备多归多活接入多个PE设备的场景中,多个PE设备能够有效的形成负载分担,实现带宽资源的合理利用。
在一个具体的实施方式中,所述第一消息中还携带有下一跳网络地址,所述第一消息中的下一跳网络地址为所述第二PE设备的网络地址,例如,所述第二PE设备的环回地址。所述处理模块502,还用于根据所述第一消息,获取所述第二PE设备的网络地址。所述处理模块502,进一步用于根据所述第一MAC/IP Advertisement Route所包括的MAC地址以及所述第二PE设备的网络地址,生成第二MAC转发表项。所述第二MAC转发表项包括所述第一MAC/IP Advertisement Route所包括的MAC地址,所述第二MAC转发表项包含的下一跳网络地址为所述第二PE设备的网络地址。其中,当所述第一链路发生故障时,所述第二MAC转发表项被所述第一PE设备用于转发目的MAC地址为所述第一MAC/IP Advertisement Route所包括的MAC地址的报文。
当第一PE设备收到去往所述终端设备的已知单播流量(数据报文中携带的目的MAC地址为所述第一MAC/IP Advertisement Route所包括的MAC地址)时,第一PE设备查询MAC转发表,在所述第一链路处于正常工作状态时,根据所述第一MAC转发表项的指示,经由所述第一链路,直接通过所述CE设备转发报文。当所述第一链路故障时,第一PE设备收到所述已知单播流量(数据报文中携带的目的MAC地址为所述第一MAC/IP Advertisement Route所包括的MAC地址)时,根据第二MAC转发表项的指示,向所述第二PE设备转发所述流量,通过所述第二PE设备向所述CE设备转发所述流量,从而提高了故障的收敛速度。
在一个具体的实施方式中,所述第一消息为第一边界网关协议更新BGP Update消息。关于所述第一BGP Update消息的具体格式(如采用哪些字段或扩展字段),可以参考上述方法实施例中对应部分的描述,此处不再赘述。
在一个具体的实施方式中,所述第一PE设备还包括发送模块503。在所述接收模块接收所述第二PE设备发送的第一消息之后,
所述处理模块502,还用于生成第二消息。具体地,所述处理模块502根据所述接收模块501接收的所述第一消息生成所述第二消息。所述第二消息携带第二MAC/IP Advertisement Route和下一跳网络地址,所述第二MAC/IP Advertisement Route包括MAC地址和所述以太网段标识ESI。所述第二MAC/IP Advertisement Route中包括的MAC地址与所述第一MAC/IP Advertisement Route所包括的MAC地址相同,具体地,所述处理模块502获取所述第一消息中携带的所述第一MAC/IP Advertisement Route所包括的MAC地址,并将其封装在所述第二消息携带的所述第二MAC/IP Advertisement Route中。所述第二消息携带的所述下一跳网络地址为所述第一PE设备的网络地址。
所述发送模块503,还用于向所述第二PE设备发送所述第二消息,所述第二消息被所述第二PE设备用于生成第三MAC转发表项和第四MAC转发表项。其中,
所述第三MAC转发表项被所述第二PE设备用于转发目的MAC地址为所述第二MAC/IP Advertisement Route所包括的MAC地址的报文,所述第三MAC转发表项包括所述第二MAC/IP Advertisement Route所包括的MAC地址,所述第三MAC转发表项包含的出接口的标识为所述第二接口的标识。当所述第二链路发生故障时,所述第四MAC转发表项被所述第二PE设备用于转发目的MAC地址为所述第二MAC/IP Advertisement Route所包括的MAC地址的报文,所述第四MAC转发表项包括所述第 二MAC/IP Advertisement Route所包括的MAC地址,所述第四转发表项包含的下一跳网络地址为所述第一PE设备的网络地址。
通过上述方案,第一PE设备在收到所述第一消息以后,根据第一消息中携带的信息,在控制平面生成本地的主用MAC路由表项以及用于快速重路由的备用MAC路由表项,进一步的,控制平面将上述主用MAC路由表项和备用MAC路由表项下发到转发平面,生成用于实现快速重路由的第一MAC转发表项和第二MAC转发表项。并且,第一PE设备在收到所第一消息以后,生成本地的所述第一MAC转发表项后,还会将该本地的MAC路由回送给所述第二PE设备,使得第二PE设备生成用于实现快速从路由的备用MAC路由表项。而第二PE设备从CE设备学习到的MAC路由可以作为本地MAC路由,即主用MAC路由。当第二PE设备和CE设备连接的链路,例如,所述第二链路发生链路故障时,所述第二PE设备的本地MAC路由被撤销。当所述第二链路故障恢复后,第二PE设备可以根据所述第一PE设备通告的所述第二MAC/IP Advertisement Route路由,再次生成所述本地MAC路由,用于指导向所述CE设备转发流量。从而使得,在第二链路发送故障并再次恢复后,能够快速实现路由重定向,实现故障的快速收敛。
在一个具体的实施方式中,所述第二消息还携带有指示信息,所述指示信息用于指示所述第二PE设备在收到所述第二消息后,避免向所述第一PE设备发送到达所述第二MAC/IP Advertisement Route中包括的MAC地址的MAC/IP Advertisement Route,从而避免报文环路。
图10是根据本申请一实施例提供的第二PE设备600的示意图。该第二PE设备600可以是图2中的PE1-1,可以用于执行图3,图6或图7所示的实施例中第二PE设备执行的步骤。用户边缘CE设备经由第一链路连接到所述第一PE设备的第一接口,所述CE设备经由第二链路连接到第二PE设备的第二接口。如图10所示,所述第二PE设备600包括:输入接口601、输出接口602、处理器603和存储器604。该输入接口601、输出接口602、处理器603和存储器604可以通过总线系统605相连。
所述存储器604用于存储包括程序。所述处理器604,用于执行所述存储器604中的程序,以控制输入接口601接收信号、控制输出接口602发送信号以及实施图3,或图6或图7所对应的实施方式中第二PE设备所实施的各步骤及功能,此处不再赘述。上述输入接口601、输出接口602以及处理器603的具体实施方式可以相应参考上述图8实施方式中的接收模块403,发送模块402以及处理模块401中的具体说明,这里不再赘述。
图11是根据根据本申请一实施例提供的第一PE设备700的示意图。该第一PE设备700可以是图2中的PE1-2,可以用于执行图3,图6或图7所示的实施例中第一PE设备执行的步骤。用户边缘CE设备经由第一链路连接到所述第一PE设备的第一接口,所述CE设备经由第二链路连接到第二PE设备的第二接口。如图11所示,该第一PE设备700包括:输入接口701、输出接口702、处理器703和存储器704。该输入接口701、输出接口702、处理器703和存储器704可以通过总线系统705相连。
所述存储器704用于存储包括程序。所述处理器704,用于执行所述存储器704中的程序,以控制输入接口701接收信号、控制输出接口702发送信号以及实施图3, 或图6或图7所对应的实施方式中第二PE设备所实施的各步骤及功能,此处不再赘述。上述输入接口701、输出接口702、处理器703的具体实施方式可以相应参考上述图9实施方式中的接收模块501,发送模块503以及处理模块502中的具体说明,这里不再赘述。
应理解,在本申请实施例中,该处理器703和处理器803可以是中央处理单元(Central Processing Unit,简称为“CPU”),还可以是其他通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现成可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。
该存储器704和存储器804可以包括只读存储器和随机存取存储器,并分别向处理器703和处理器803提供指令和数据。存储器704或存储器804的一部分还可以包括非易失性随机存取存储器。例如,存储器704或存储器804还可以存储设备类型的信息。
该总线系统705和总线系统805除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。但是为了清楚说明起见,在图中将各种总线都标为总线系统。
在实现过程中,方法300的各步骤可以通过处理器603和处理器703中的硬件的集成逻辑电路或者软件形式的指令完成。结合本申请实施例所公开的定位方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质分别位于存储器604和存储器704中,处理器603读取存储器604中的信息,处理器703读取存储器704中的信息,结合其硬件完成上述方法300的步骤。为避免重复,这里不再详细描述。
需要说明的是,一个具体的实施方式中,图8中的处理模块401可以用图10的处理器603实现,发送模块402可以由图10的输出接口602实现,接收模块403可以由图10的输入接口601实现。同理,图9中的处理模块502用图11的处理器703实现,发送模块503可以由图11的输出接口702实现,接收模块501可以用由图11的输入接口701实现。
可以理解的是,图8至图11仅仅示出了第一PE设备和第二PE设备的简化设计。在实际应用中,第一PE设备和第二PE设备可以分别包含任意数量的接口,处理器和存储器等。
图12为本申请实施例提供的另一种第二PE设备1200的硬件结构示意图。图12所示的第二PE设备1200可以用于执行上述实施例的方法中第二PE设备执行的相应步骤。
如图12所示,所述第二PE设备包括:主控板1210、接口板1230、交换网板1220和接口板1240。主控板1210用于完成系统管理、设备维护、协议处理等功能。交换网板1220用于完成各接口板(接口板也称为线卡或业务板)之间的数据交换。接口板1230和1240用于提供各种业务接口(例如,同步点(英文:Point of Synchronization, POS)接口、前兆以太网(英文:Gigabit Ethernet,GE)接口、异步传输模式(英文:Asynchronous Transfer Mode,ATM)接口等),并实现数据包的转发。主控板1210、接口板1230和1240,以及交换网板1220之间通过系统总线与系统背板相连实现互通。接口板1230上的中央处理器1231用于对接口板进行控制管理并与主控板上的中央处理器进行通信。
主控板210上的中央处理器1211生成第一消息,并经由接口板1230上的中央处理器向物理接口卡1223向第一PE设备发送所述第一消息。其中,所述第一消息携带第一MAC/IP Advertisement Route,所述第一MAC/IP Advertisement Route包括MAC地址和用于标识以太网段ES的以太网段标识ESI,所述第一MAC/IP Advertisement Route包括的MAC地址为所述CE设备的MAC地址或所述CE设备所管辖的终端设备的MAC地址。其中,所述以太网段ES包括所述第一链路和所述第二链路。所述第一MAC/IP Advertisement Route被所述第一PE设备用于生成第一MAC转发表项,所述第一MAC转发表项包含所述第一MAC/IP Advertisement Route所包括的MAC地址,所述第一MAC转发表项包含的出接口标识为所述第一接口的标识。所述第一MAC转发表项被所述第二PE设备用于向所述CE设备转发目的MAC地址为所述第一MAC/IP Advertisement Route所包括的MAC地址的报文。
主控板1210上的中央处理器1211还用于从接口板1230上的物理接口卡1233获取来自所述第一PE设备发送的第二消息。所述第二消息携带第二MAC/IP Advertisement Route和下一跳网络地址,所述第二MAC/IP Advertisement Route包括目的MAC地址以及所述以太网段标识ESI。所述第二MAC/IP Advertisement Route中的目的MAC地址为所述第一MAC/IP Advertisement Route所包括的MAC地址。所述第二消息携带的所述下一跳网络地址为所述第一PE设备的网络地址;所述以太网段标识ESI被所述第二PE设备用于确定所述第二PE设备连接所述CE设备的接口为所述第二接口。所述确定的第二接口以及所述第二MAC/IP Advertisement Route所包括的MAC地址被所述第二PE设备用于生成第三MAC转发表项。所述第三MAC转发表项包括所述第二MAC/IP Advertisement Route所包括的MAC地址,所述第三转发表项包括的出接口的标识为所述第二接口的标识。所述第三MAC转发表项被所述第二PE设备用于转发目的MAC地址为所述第二MAC/IP Advertisement Route所包括的MAC地址的报文。
具体地,主控板1210上的中央处理器1211根据所述ESI确定所述第二PE设备连接所述CE设备的接口为所述第二接口,并根据所述确定的第二接口以及所述第二MAC/IP Advertisement Route所包括的MAC地址生成第三MAC转发表项。主控板1210上的中央处理器1211经由接口板1230上的中央处理器1231向接口板1230上的转发表项存储器1234发送所述第三MAC转发表项。
接口板1230上的转发表项存储器1234用于保存所述第三MAC转发表项。接口板1230上的中央处理器1231用于控制网络存储器1232获取转发表项存储器1234中的MAC转发表项。并且,中央处理器1231用于控制网络存储器1232经由物理接口卡1233完成流量的接收和转发。
应理解,本申请实施例中接口板1240上的操作与接口板1230的操作一致,为了 简洁,不再赘述。应理解,本实施例上第二PE设备1200可对应于上述方法实施例所具有的功能和/或所实施的各种步骤,为了简洁,在此不再赘述。
此外,需要说明的是,在本申请中,第一PE设备可以具有和第二PE设备相同的结构。在PE设备中,主控板可能有一块或多块,有多块的时候可以包括主用主控板和备用主控板。接口板可能有一块或多块,第二PE设备的数据处理能力越强,提供的接口板越多。接口板上的物理接口卡也可以有一块或多块。交换网板可能没有,也可能有一块或多块,有多块的时候可以共同实现负荷分担冗余备份。在集中式转发架构下,PE设备可以不需要交换网板,接口板承担整个系统的业务数据的处理功能。在分布式转发架构下,PE设备可以有至少一块交换网板,通过交换网板实现多块接口板之间的数据交换,提供大容量的数据交换和处理能力。所以,分布式架构的PE设备的数据接入和处理能力要大于集中式架构的设备。具体采用哪种架构,取决于具体的组网部署场景,此处不做任何限定。
图13为本申请实施例提供的另一种第二PE设备1300的硬件结构示意图。图13所示的第二PE设备1300可以用于执行上述实施例的方法中第二PE设备执行的相应步骤。
第二PE设备1300的这种产品形态适用于基于控制与转发分离的网络架构(例如,软件定义网络(英文:Software Defined Network,缩写:SDN))。在SDN中,如图12所示的第二PE设备1200的主控板1210从设备中分离出来,形成新的独立的物理设备(即如图13所示的控制器1210A),剩下的形成另一独立的物理设备(即如图13所示的第二PE转发设备1200A)。控制器1210A与第二PE转发设备1200A通过控制通道协议实现交互。控制通道协议可以是开放流(英文:OpenFlow)协议、路径计算通信协议(英文:Path Computation Element Communication Protocol,缩写:PCEP)、BGP、路由系统接口(英文:Interface to the Routing System,缩写:I2RS)等。也就是说,与上述图12所对应的实施例相比,本实施中的第二PE设备1300包括分离出去的控制器1210A和第二PE转发设备1200A,即在该实施例中,该第二PE设备1300也可以看成是一个系统。
控制器1210A可以是基于通用的物理服务器实现或者是专用的硬件结构实现,在一个设计示例中,所述控制器包括接收器、处理器、发送器、随机读取存储器(英文:Random Access Memory,RAM)、只读存储器(英文:Read-only Memory,ROM)以及总线(图中未示出)。其中,处理器通过总线分别耦接接收器、发送器、RAM以及ROM。其中,当需要运行控制器时,通过固化在ROM中的基本输入/输出系统(英文:Basic Input/output System,BIOS)或者嵌入式系统中的引导器(英文:bootloader)引导系统进行启动,引导控制器进入正常运行状态。在控制器进入正常运行状态后,在RAM中运行应用程序和操作系统,使得该处理器执行上述图12中主控板1210的所有功能和步骤。
第二PE转发设备1200A可以是基于专用的硬件结构实现,其功能和结构与上述图12中的接口板1230、接口板1240和交换网板1220的功能和结构保持一致,执行相应的功能和步骤。也可以是基于通用的物理服务器和网络功能虚拟化(英文:Netwrk Function Virtulization,缩写:NFV)技术实现的虚拟第二PE转发设备,所述虚拟第 二PE转发设备为虚拟路由器。在虚拟第PE转发设备的场景下,上述实体第二PE转发设备实施例中提到的该第PE转发设备包括接口板、交换网板以及处理器在虚拟环境下可以认为是其所基于通用的物理服务器分配给该虚拟第二PE转发设备所使用的接口资源、网络资源以及处理资源。采用通用物理服务器实施该第二转发PE设备的功能或步骤,或者采用通用物理服务器并利用NFV技术实施该第二转发PE设备的功能或步骤具体可以参考图10的实施例。
应理解,本实施例中第二PE设备1300中的控制器1210A和该第二PE转发设备1200A可以实现方法实施例中的第二PE设备所实施的各种功能、步骤,为了简洁,在此不再赘述。
图14提供了为本申请实施例提供的另一种第一PE设备1400的硬件结构示意图。图14所示的第一PE设备1400可以用于执行上述实施例的方法中第一PE设备执行的相应步骤。
如图14所示,所述第一PE设备包括:主控板1410、接口板1430、交换网板1420和接口板1440。主控板1410用于完成系统管理、设备维护、协议处理等功能。交换网板1420用于完成各接口板(接口板也称为线卡或业务板)之间的数据交换。接口板1430和1440用于提供各种业务接口(例如,POS接口、GE接口、ATM接口等),并实现数据包的转发。主控板1410、接口板1430和1440,以及交换网板1420之间通过系统总线与系统背板相连实现互通。接口板1430上的中央处理器1431用于对接口板进行控制管理并与主控板上的中央处理器进行通信。
接口板1430上的物理接口卡1433接收第二PE设备发送的第一消息,其中,所述第一消息携带第一MAC/IP Advertisement Route,所述第一MAC/IP Advertisement Route包括MAC地址以及用于标识以太网段ES的以太网段标识ESI,所述第一MAC/IP Advertisement Route包括的MAC地址为所述CE设备的MAC地址或所述CE设备所管辖的终端设备的MAC地址。其中,所述以太网段ES包括所述第一链路和所述第二链路。并且,经由接口板1430上的中央处理器1431向主控板1410上的中央处理器1411发送所述第一MAC/IP Advertisement Route。
主控板1410上的中央处理器1411用于获取所述第一MAC/IP Advertisement Route,并且,根据所述主控板1410上的中央处理器1411根据所述ESI确定所述第一PE设备连接所述CE设备的接口为所述第一接口。进一步的,所述中央处理器1411根据所述确定的第一接口以及所述第一MAC/IP Advertisement Route所包括的MAC地址生成第一MAC转发表项。所述第一MAC转发表项包含所述第一MAC/IP Advertisement Route所包括的MAC地址,所述第一MAC转发表项包含的出接口标识为所述第一接口的标识,所述第一MAC转发表项被所述第二PE设备用于向所述CE设备转发目的MAC地址为所述第一MAC/IP Advertisement Route所包括的MAC地址的报文。
主控板1410上的中央处理器1411经由接口板1430上的中央处理器1431向接口板1430上的转发表项存储器1434发送所述第一MAC转发表项。
接口板1430上的转发表项存储器1434用于保存所述第一MAC转发表项。接口板1430上的中央处理器1431用于控制网络存储器1432获取转发表项存储器1434中的MAC转发表项,并且,中央处理器1431用于控制网络存储器1432经由物理接口 卡1433完成流量的接收和发送。
主控板1410上的中央处理器1211还用于控制接口板1430完成流量的转发和处理。
应理解,本发明实施例中接口板1440上的操作与所述接口板1430的操作一致,为了简洁,不再赘述。应理解,本实施例的第一PE设备1400可对应于上述方法实施例所具有的功能和/或所实施的各种步骤,为了简洁,在此不再赘述。
图15为本申请实施例提供的另一种第一PE设备1500的硬件结构示意图。图15所示的第一PE设备1500可以用于执行上述实施例的方法中第一PE设备执行的相应步骤。
第一PE设备1500的这种产品形态适用于基于控制与转发分离的网络架构(例如,SDN))。在SDN中,如图14所示的第一PE设备1400的主控板1410从设备中分离出来,形成新的独立的物理设备(即如图15所示的控制器1410A),剩下的形成另一独立的物理设备(即如图14所示的第一PE转发设备1400A)。控制器1410A与第一PE转发设备1400A通过控制通道协议实现交互。控制通道协议可以是OpenFlow协议、PCEP、BGP、I2RS等。也就是说,与上述图14所对应的实施例相比,本实施中的第一PE设备1500包括分离出去的控制器1410A和第一PE转发设备1400A,即在该实施例中,该第二PE设备1500也可以看成是一个系统。
控制器1410A可以是基于通用的物理服务器实现或者是专用的硬件结构实现,在一个设计示例中,所述控制器包括接收器、处理器、发送器、RAM、ROM以及总线(图中未示出)。其中,处理器通过总线分别耦接接收器、发送器、RAM以及ROM。其中,当需要运行控制器时,通过固化在ROM中的BIOS或者嵌入式系统中的bootloader引导系统进行启动,引导控制器进入正常运行状态。在控制器进入正常运行状态后,在RAM中运行应用程序和操作系统,使得该处理器执行上述图14中主控板1410的所有功能和步骤。
第一PE转发设备1400A可以是基于专用的硬件结构实现,其功能和结构与上述图14中的接口板1430、接口板1440和交换网板1420的功能和结构保持一致,执行相应的功能和步骤。也可以是基于通用的物理服务器和网络功能虚拟化(英文:Netwrk Function Virtulization,缩写:NFV)技术实现的虚拟第一PE转发设备,所述虚拟第一PE转发设备为虚拟路由器。在虚拟第一PE转发设备的场景下,上述实体第一PE转发设备实施例中提到的该第一PE转发设备包括接口板、交换网板以及处理器在虚拟环境下可以认为是其所基于通用的物理服务器分配给该虚拟第一PE转发设备所使用的接口资源、网络资源以及处理资源。采用通用物理服务器实施该第一转发PE设备的功能或步骤,或者采用通用物理服务器并利用NFV技术实施该第二转发PE设备的功能或步骤具体可以参考图11的实施例。
应理解,本实施例中第一PE设备1500中的控制器1410A和该第一PE转发设备1400A可以实现方法实施例中的第一PE设备所实施的各种功能、步骤,为了简洁,在此不再赘述。
本申请还提供了一种通信系统,包括第一PE设备和第二PE设备。所述第一PE设备可以是图9、图11、图14或图15对应的实施例所提供的第一PE设备。所述第二PE设备可以是图8、图10、图12或图13对应的实施例所提供的第二PE设备。所 述通信系统用于执行图2-图7对应的实施例的方法300。
应理解,在本申请的各种实施例中,各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的模块及方法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。本说明书的各个部分均采用递进的方式进行描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点介绍的都是与其他实施例不同之处。尤其,对于装置和系统实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例部分的说明即可。
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。

Claims (10)

  1. 一种报文处理方法,应用于以太网虚拟私有网络EVPN中,用户边缘CE设备经由第一链路连接到第一运营商边缘PE设备的第一接口,所述CE设备经由第二链路连接到第二PE设备的第二接口,其特征在于,所述方法包括:
    所述第一PE设备接收所述第二PE设备发送的第一消息,所述第一消息携带第一媒体接入控制/互联网协议通告路由MAC/IP Advertisement Route,所述第一MAC/IP Advertisement Route包括MAC地址以及用于标识以太网段ES的以太网段标识ESI,所述第一MAC/IP Advertisement Route包括的MAC地址为所述CE设备的MAC地址或所述CE设备所管辖的终端设备的MAC地址,所述以太网段ES包括所述第一链路和所述第二链路;
    所述第一PE设备根据所述ESI确定所述第一PE设备连接所述CE设备的接口为所述第一接口;
    所述第一PE设备根据所述确定的第一接口以及所述第一MAC/IP Advertisement Route所包括的MAC地址生成第一MAC转发表项,所述第一MAC转发表项包含所述第一MAC/IP Advertisement Route所包括的MAC地址,所述第一MAC转发表项包含的出接口标识为所述第一接口的标识,所述第一MAC转发表项被所述第一PE设备用于向所述CE设备转发目的MAC地址为所述第一MAC/IP Advertisement Route所包括的MAC地址的报文。
  2. 根据权利要求1所述的方法,其特征在于,所述第一消息中还携带有下一跳网络地址,所述第一消息中的下一跳网络地址为所述第二PE设备的网络地址,所述方法还包括:
    所述第一PE设备根据所述第一消息,获取所述第二PE设备的网络地址;
    所述第一PE设备根据所述第一MAC/IP Advertisement Route所包括的MAC地址以及所述第二PE设备的网络地址,生成第二MAC转发表项,所述第二MAC转发表项包括所述第一MAC/IP Advertisement Route所包括的MAC地址,所述第二MAC转发表项包含的下一跳网络地址为所述第二PE设备的网络地址;
    其中,当所述第一链路发生故障时,所述第二MAC转发表项被所述第一PE设备用于转发目的MAC地址为所述第一MAC/IP Advertisement Route所包括的MAC地址的报文。
  3. 根据权利要求2所述的方法,其特征在于,所述第一消息为第一边界网关协议更新BGP Update消息。
  4. 根据权利要求1-3任一项所述的方法,其特征在于,在所述第一PE设备接收所述第二PE设备发送的第一消息之后,所述方法还包括:
    所述第一PE设备生成第二消息,所述第二消息携带第二MAC/IP Advertisement Route以及下一跳网络地址,所述第二MAC/IP Advertisement Route包括MAC地址和所述以太网段标识ESI,所述第二MAC/IP Advertisement Route中包括的MAC地址与所述第一MAC/IP Advertisement Route所包括的MAC地址相同,所述第二消息携带的所述下一跳网络地址为所述第一PE设备的网络地址;
    所述第一PE设备向所述第二PE设备发送所述第二消息,所述第二消息被所述第 二PE设备用于生成第三MAC转发表项和第四MAC转发表项;其中,
    所述第三MAC转发表项被所述第二PE设备用于转发目的MAC地址为所述第二MAC/IP Advertisement Route所包括的MAC地址的报文,所述第三MAC转发表项包括所述第二MAC/IP Advertisement Route所包括的MAC地址,所述第三MAC转发表项包含的出接口的标识为所述第二接口的标识;
    当所述第二链路发生故障时,所述第四MAC转发表项被所述第二PE设备用于转发目的MAC地址为所述第二MAC/IP Advertisement Route所包括的MAC地址的报文,所述第四MAC转发表项包括所述第二MAC/IP Advertisement Route所包括的MAC地址,所述第四转发表项包含的下一跳网络地址为所述第一PE设备的网络地址。
  5. 根据权利要求4所述的方法,其特征在于,所述第二消息还携带有指示信息,所述指示信息用于指示所述第二PE设备在收到所述第二MAC路由消息后,避免向所述第一PE设备发送到达所述第二MAC/IP Advertisement Route所包括的MAC地址的MAC/IP Advertisement Route。
  6. 一种第一运营商边缘PE设备,应用于以太网虚拟私有网络EVPN中,用户边缘CE设备经由第一链路连接到所述第一PE设备的第一接口,所述CE设备经由第二链路连接到第二PE设备的第二接口,其特征在于,所述第一PE设备包括:
    接收模块,用于接收所述第二PE设备发送的第一消息,所述第一消息携带第一媒体接入控制/互联网协议通告路由MAC/IP Advertisement Route,所述第一MAC/IP Advertisement Route包括MAC地址以及用于标识以太网段ES的以太网段标识ESI,所述第一MAC/IP Advertisement Route包括的MAC地址为所述CE设备的MAC地址或所述CE设备所管辖的终端设备的MAC地址,所述以太网段ES包括所述第一链路和所述第二链路;
    处理模块,用于根据所述ESI确定所述第一PE设备连接所述CE设备的接口为所述第一接口;
    所述处理模块,还用于根据所述确定的第一接口以及所述第一MAC/IP Advertisement Route所包括的MAC地址生成第一MAC转发表项,所述第一MAC转发表项包含所述第一MAC/IP Advertisement Route所包括的MAC地址,所述第一MAC转发表项包含的出接口标识为所述第二接口的标识,所述第一MAC转发表项被所述第一PE设备用于向所述CE设备转发目的MAC地址为所述第一MAC/IP Advertisement Route所包括的MAC地址的报文。
  7. 根据权利要求5所述的第一PE设备,其特征在于,所述第一消息中还携带有下一跳网络地址,所述第一消息中的下一跳网络地址为所述第二PE设备的网络地址;
    所述处理模块,还用于根据所述第一消息,获取所述第二PE设备的网络地址;
    所述处理模块,还用于根据所述第一MAC/IP Advertisement Route所包括的MAC地址以及所述第二PE设备的网络地址,生成第二MAC转发表项,所述第二MAC转发表项包括所述第一MAC/IP Advertisement Route所包括的MAC地址,所述第二MAC转发表项包含的下一跳网络地址为所述第二PE设备的网络地址;
    其中,当所述第一链路发生故障时,所述第二MAC转发表项被所述第二PE用于转发目的MAC地址为所述第一MAC/IP Advertisement Route所包括的MAC地址的报 文。
  8. 根据权利要求6或7所述的第一PE设备,其特征在于,
    所述处理模块,还用于在所述接收模块接收所述第二PE设备发送的第一消息之后生成第二消息,所述第二消息携带第二MAC/IP Advertisement Route和下一跳网络地址,所述第二MAC/IP Advertisement Route包括MAC地址和所述ESI,所述第二MAC/IP Advertisement Route包括的MAC地址与所述第一MAC/IP Advertisement Route包括的MAC地址相同,所述第二消息携带的所述下一跳网络地址为所述第一PE设备的网络地址;
    所述发送模块,还用于向所述第二PE设备发送所述第二消息,所述第二消息被所述第二PE设备用于生成第三MAC转发表项和第四MAC转发表项;其中,
    所述第三MAC转发表项被所述第二PE设备用于转发目的MAC地址为所述第二MAC/IP Advertisement Route所包括的MAC地址的报文,所述第三MAC转发表项包括所述第二MAC/IP Advertisement Route所包括的MAC地址,所述第三MAC转发表项包含的出接口的标识为所述第一接口的标识;
    当所述第二链路发生故障时,所述第四MAC转发表项被所述第二PE设备用于转发目的MAC地址为所述第二MAC/IP Advertisement Route所包括的MAC地址的报文,所述第四MAC转发表项包括所述第二MAC/IP Advertisement Route所包括的MAC地址,所述第四转发表项包含的下一跳网络地址为所述第一PE设备的网络地址。
  9. 根据权利要求8所述第一PE设备,其特征在于,所述第二消息还携带有指示信息,所述指示信息用于指示所述第二PE设备在收到所述第二消息后,避免向所述第一PE设备发送到达所述第二MAC/IP Advertisement Route所包括的MAC地址的MAC/IP Advertisement Route。
  10. 一种通信系统,其特征在于,包括权利要求6-9任一项所述的第一运营商边缘PE设备。
PCT/CN2017/115820 2017-03-14 2017-12-13 Evpn报文处理方法、设备及系统 WO2018166252A1 (zh)

Priority Applications (5)

Application Number Priority Date Filing Date Title
EP17900927.9A EP3591912B1 (en) 2017-03-14 2017-12-13 Evpn packet processing method, device and system
ES17900927T ES2886949T3 (es) 2017-03-14 2017-12-13 Procedimiento, dispositivo y sistema de procesamiento de paquetes EVPN
EP21171105.6A EP3923527A1 (en) 2017-03-14 2017-12-13 Evpn packet processing method, device, and system
US16/570,807 US11310079B2 (en) 2017-03-14 2019-09-13 EVPN packet processing method, device, and system for MAC learning via MAC/IP advertisement route
US17/697,245 US11677587B2 (en) 2017-03-14 2022-03-17 EVPN packet processing method, device, and system for mac learning via MAC/IP advertisement route

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710150686.6 2017-03-14
CN201710150686.6A CN108574639B (zh) 2017-03-14 2017-03-14 Evpn报文处理方法、设备及系统

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US16/570,807 Continuation US11310079B2 (en) 2017-03-14 2019-09-13 EVPN packet processing method, device, and system for MAC learning via MAC/IP advertisement route

Publications (1)

Publication Number Publication Date
WO2018166252A1 true WO2018166252A1 (zh) 2018-09-20

Family

ID=63522786

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/115820 WO2018166252A1 (zh) 2017-03-14 2017-12-13 Evpn报文处理方法、设备及系统

Country Status (5)

Country Link
US (2) US11310079B2 (zh)
EP (2) EP3923527A1 (zh)
CN (3) CN111510378A (zh)
ES (1) ES2886949T3 (zh)
WO (1) WO2018166252A1 (zh)

Families Citing this family (28)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111510378A (zh) * 2017-03-14 2020-08-07 华为技术有限公司 Evpn报文处理方法、设备及系统
CN111901235A (zh) * 2017-12-01 2020-11-06 华为技术有限公司 处理路由的方法和装置、以及数据传输的方法和装置
WO2019134067A1 (en) * 2018-01-02 2019-07-11 Telefonaktiebolaget Lm Ericsson (Publ) Controlling device and method implemented thereon for ethernet virtual private network
US11349749B2 (en) 2018-10-17 2022-05-31 Juniper Networks, Inc. Node protection for bum traffic for multi-homed node failure
CN111064659B (zh) * 2018-10-17 2022-07-19 瞻博网络公司 多宿主节点故障的bum流量的节点保护
CN111147381B (zh) * 2018-11-02 2022-01-18 华为技术有限公司 流量均衡方法和装置
CN110113260B (zh) * 2019-04-28 2021-07-06 新华三技术有限公司 一种转发表更新方法及装置
US11165681B2 (en) 2019-09-27 2021-11-02 Juniper Networks, Inc. Inter-autonomous system trace route message
CN116782336B (zh) * 2019-10-22 2024-07-19 华为技术有限公司 一种通信方法及装置
ES2922159T3 (es) * 2019-11-04 2022-09-09 Deutsche Telekom Ag Fiabilidad y selección de agregación para protocolos de red de multiconectividad
US11088871B1 (en) * 2019-12-31 2021-08-10 Juniper Networks, Inc. Fast convergence for MAC mobility
CN113132220B (zh) * 2019-12-31 2022-12-06 华为技术有限公司 一种路由信息的处理方法及装置
US11057295B1 (en) * 2020-01-07 2021-07-06 Juniper Networks, Inc. Loop avoidance and egress link protection with ethernet virtual private network (EVPN) fast reroute (FRR)
US11258711B2 (en) * 2020-06-04 2022-02-22 Vmware, Inc. Split-brain prevention in a high availability system during workload migration
CN111935206B (zh) * 2020-06-23 2023-05-23 新浪财经移动网络科技(北京)有限公司 报文处理方法、装置及网络设备
EP4187865A4 (en) * 2020-08-03 2023-10-11 Huawei Technologies Co., Ltd. METHOD, SYSTEM AND DEVICE FOR TRANSMITTING REACHABLE INFORMATION ON THE NETWORK LAYER AND NETWORK DEVICE
CN111917590B (zh) * 2020-08-11 2022-11-18 南京航空航天大学 制造物联网网关主备倒换数据包mac表处理装置及方法
CN114143257B (zh) * 2020-09-03 2023-04-28 华为技术有限公司 一种生成表项的方法、发送报文的方法、设备及系统
CN114531319A (zh) * 2020-10-31 2022-05-24 华为技术有限公司 报文发送方法、设备及系统
CN112737933B (zh) * 2020-12-24 2022-12-23 浪潮思科网络科技有限公司 一种基于云场景的网关系统及网关通信方法
CN114760248B (zh) * 2020-12-28 2023-11-17 北京华为数字技术有限公司 报文传输方法、设备及系统
CN112887139B (zh) * 2021-01-22 2022-05-27 新华三信息安全技术有限公司 报文处理方法及装置
US11711294B2 (en) * 2021-05-03 2023-07-25 Mellanox Technologies, Ltd. Fast rerouting using egress-port loopback
CN115706742A (zh) * 2021-08-13 2023-02-17 华为技术有限公司 传输网络层可达信息的方法、装置、设备、系统及介质
CN116074243A (zh) * 2021-11-03 2023-05-05 华为技术有限公司 一种报文传输方法、装置及设备
CN114697291B (zh) * 2022-03-30 2023-06-06 中国联合网络通信集团有限公司 可用ip地址段获取方法、装置、服务器及存储介质
CN115297069B (zh) * 2022-07-29 2024-06-07 中国电信股份有限公司 Evpn网络设备及mac地址学习方法、通信系统
CN115955439B (zh) * 2023-03-13 2023-05-23 苏州浪潮智能科技有限公司 数据报文的传输控制方法、系统、装置及存储介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130148657A1 (en) * 2011-12-07 2013-06-13 Cisco Technology, Inc. Mechanism for e-vpn interoperability with vpls
CN104365066A (zh) * 2013-05-24 2015-02-18 华为技术有限公司 用于以太虚拟专用网的方法和设备
CN105743689A (zh) * 2014-12-31 2016-07-06 瞻博网络公司 对多宿主以太网虚拟专网中的链路故障的快速收敛

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101977150B (zh) * 2010-11-05 2012-05-23 华为技术有限公司 一种l3vpn中实时恢复vpn报文转发的方法和设备
US8953590B1 (en) * 2011-03-23 2015-02-10 Juniper Networks, Inc. Layer two virtual private network having control plane address learning supporting multi-homed customer networks
CN104253759B (zh) * 2013-06-30 2017-08-29 华为技术有限公司 报文转发方法、装置及系统
US9397931B1 (en) * 2013-08-16 2016-07-19 Juniper Networks, Inc. Fast convergence in singly-homed ethernet virtual private networks
US9531564B2 (en) * 2014-01-15 2016-12-27 Cisco Technology, Inc. Single hop overlay architecture for line rate performance in campus networks
US9838310B1 (en) * 2015-10-22 2017-12-05 Cisco Technology, Inc. Mechanism for optimized customer MAC address flushing in PBB-EVPN
US9935783B2 (en) * 2016-01-07 2018-04-03 Juniper Networks, Inc. System for avoiding traffic flooding due to asymmetric MAC learning and achieving predictable convergence for PBB-EVPN active-active redundancy
US10164876B2 (en) * 2016-12-09 2018-12-25 Cisco Technology, Inc. Efficient multicast traffic forwarding in EVPN-based multi-homed networks
CN111510378A (zh) * 2017-03-14 2020-08-07 华为技术有限公司 Evpn报文处理方法、设备及系统
CN109218178B (zh) * 2017-07-05 2021-06-22 华为技术有限公司 一种报文处理方法及网络设备
US11438193B2 (en) * 2020-01-28 2022-09-06 Arista Networks, Inc. EVPN multihoming optimizations for ethernet segment connection interruptions

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130148657A1 (en) * 2011-12-07 2013-06-13 Cisco Technology, Inc. Mechanism for e-vpn interoperability with vpls
CN104365066A (zh) * 2013-05-24 2015-02-18 华为技术有限公司 用于以太虚拟专用网的方法和设备
CN105743689A (zh) * 2014-12-31 2016-07-06 瞻博网络公司 对多宿主以太网虚拟专网中的链路故障的快速收敛

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
DRAKE, J. ET AL.: "BGPMPLS Based Ethernet VPN draft-ietf-12vpn-evpn-11", NETWORK WORKING GROUP INTERNET -DRAFT, 18 October 2014 (2014-10-18), XP055539736 *
KEKEKEKE: "EVN-Exchanger-Huawei Enterprise Support Community", HUAWEI FORUM-TECHNOLOGY FAN, 26 November 2015 (2015-11-26), pages 1 - 16, XP009516792, Retrieved from the Internet <URL:https://forum.huawei.com/enterprise/zh/thread-335619.html> *
See also references of EP3591912A4

Also Published As

Publication number Publication date
US20220271974A1 (en) 2022-08-25
EP3591912B1 (en) 2021-06-30
ES2886949T3 (es) 2021-12-21
CN108574639A (zh) 2018-09-25
CN108574639B (zh) 2020-04-03
US11310079B2 (en) 2022-04-19
CN111510379B (zh) 2024-04-16
CN111510378A (zh) 2020-08-07
EP3591912A4 (en) 2020-02-26
EP3923527A1 (en) 2021-12-15
US11677587B2 (en) 2023-06-13
EP3591912A1 (en) 2020-01-08
CN111510379A (zh) 2020-08-07
US20200014557A1 (en) 2020-01-09

Similar Documents

Publication Publication Date Title
WO2018166252A1 (zh) Evpn报文处理方法、设备及系统
US11394644B2 (en) EVPN packet processing method, device, and system
US11533249B2 (en) Route processing method and apparatus, and data transmission method and apparatus
US11606292B2 (en) Route processing method, device, and system
CN103685022B (zh) 报文转发方法及服务提供商网络边缘设备
JP7140910B2 (ja) 通信方法、デバイス、及びシステム
WO2018103099A1 (zh) 发送和接收消息的方法、设备和系统
WO2019076295A1 (zh) 一种处理报文的方法、设备及系统
WO2018058639A1 (zh) 伪线负载分担的方法和设备
US11929923B2 (en) Packet transmission method and apparatus
CN110708229B (zh) 一种收发消息的方法、装置和系统
JP7528373B2 (ja) パケット送信方法、対応関係取得方法、装置、およびシステム
WO2022246693A1 (en) Method and apparatus for path switchover management

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17900927

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2017900927

Country of ref document: EP

Effective date: 20191001