WO2014186978A1 - 用于以太虚拟专用网的方法和设备 - Google Patents

用于以太虚拟专用网的方法和设备 Download PDF

Info

Publication number
WO2014186978A1
WO2014186978A1 PCT/CN2013/076204 CN2013076204W WO2014186978A1 WO 2014186978 A1 WO2014186978 A1 WO 2014186978A1 CN 2013076204 W CN2013076204 W CN 2013076204W WO 2014186978 A1 WO2014186978 A1 WO 2014186978A1
Authority
WO
WIPO (PCT)
Prior art keywords
label
data packet
esi
identifier
message
Prior art date
Application number
PCT/CN2013/076204
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 EP20206842.5A priority Critical patent/EP3863233B1/en
Priority to EP13885138.1A priority patent/EP2991284B1/en
Priority to CN202110594975.1A priority patent/CN113542093A/zh
Priority to CN201380000487.7A priority patent/CN104365066B/zh
Priority to PCT/CN2013/076204 priority patent/WO2014186978A1/zh
Priority to CN201711084509.9A priority patent/CN108063716B/zh
Publication of WO2014186978A1 publication Critical patent/WO2014186978A1/zh

Links

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/4645Details on frame tagging
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/64Hybrid switching systems
    • H04L12/6418Hybrid transport
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks

Definitions

  • Embodiments of the present invention relate to the field of communication technologies, and, more particularly, to a method and apparatus for an Ethernet virtual private network. Background technique
  • the virtual private network refers to the Internet Protocol (IP)/Multi Protocol Label Switch (MPLS) bearer network to connect customer sites (Sites) in different regions.
  • IP Internet Protocol
  • MPLS Multi Protocol Label Switch
  • the site can be like the same LAN
  • the edge device that carries the Internet connection to the customer site and provides the VPN service is called the Provider Edge (PE) device.
  • PE Provider Edge
  • the key of the Ethernet VPN technology is: How does the PE device complete the Medium Access Control (MAC) learning and Message forwarding.
  • MAC Medium Access Control
  • the local PE device performs MAC address learning of the local site through the data plane, that is, the local PE receives the local site according to the local end.
  • the data packet sent is MAC addressable.
  • the MAC learning of the local PE device to the remote site is performed by the control plane through BGP signaling.
  • BGP signaling is advertised for each client MAC (C-MAC) in the same E-VPN, and the routes are flooded to all PE devices in the same E-VPN, where the clients under the same E-VPN
  • the site works like the same LAN (also known as an Ethernet VPN instance)
  • the embodiments of the present invention provide a method and a device for an Ethernet virtual private network, which can implement flow-based load sharing, reduce signaling overhead, and improve scalability of the control plane.
  • the first aspect provides a method for an Ethernet virtual private network, where the method includes: a first provider edge PE device receives a second data packet sent by a second PE device, and the second data packet carries a second The label and the second source medium access control MAC address; the first PE device determines, according to the second label, that the second data packet is that the second PE device is configured from the second PE The correspondence between the ES of the second PE device and the second source MAC address is established on the Ethernet segment ES.
  • the first PE device forwards the second data packet to an ES of the first PE device according to the second label.
  • the second label includes an ES routing label of an ES of the first PE device
  • the first PE device forwards the second data packet to the ES of the first PE device according to the second label, and includes: the first PE device according to the ES route of the ES of the first PE device
  • the label forwards the second data packet to the ES of the first PE device, where the ES routing label of the ES of the first PE device is received by the first PE device before the second data packet Issued to the second PE device.
  • the first PE device separately, according to the second label, the second data packet Forwarding is performed by multiple ESs of the first PE device.
  • the second label includes an outbound interface that is used to indicate that the second data packet is a first multicast routing label of the plurality of ESs of the first PE device, where the first PE device performs the second data packet by using multiple ESs of the first PE device according to the second label The forwarding, the first PE device forwards the second data packet by using multiple ESs of the first PE device according to the first multicast routing label.
  • the second label includes an Ethernet segment identifier ESI label of an ES of the second PE device
  • the first PE device determines, according to the second label, that the second data packet is received by the second PE device from the Ethernet segment ES of the second PE device, and includes: the first The PE device determines, according to the ESI label of the ES of the second PE device, that the second data packet is received by the second PE device from the ES of the second PE device.
  • the second data packet is sent by the second PE device by using an Internet Protocol IP tunnel
  • the second data packet further carries an IP address of the second PE device
  • the first PE device determines, according to the second label, that the second data packet is the second PE device Received on the Ethernet segment ES of the second PE device, including: the first PE device according to the The second data packet is received by the second PE device from the ES of the second PE device.
  • the first PE device sends a customer edge CE device to send from the ES of the first PE
  • the first data packet is configured by the first PE device to establish a correspondence between the ES of the first PE and the first source MAC address carried by the first data packet according to the first data packet.
  • the first PE device determines an outbound interface of the first data packet, The first data packet is forwarded through the outbound interface of the first data packet.
  • the first data packet is a unicast packet
  • the first PE device is configured
  • the first PE device is used. Determining, by the first PE device, that the outbound interface of the first data packet is one of the other ESs of the first PE device, and is forwarded by the outbound interface of the first data packet;
  • the outbound interface of the first data packet is an ES of the second PE device, and the first data packet is encapsulated, and the encapsulated first data packet is sent to the second PE device.
  • the first data packet carries the first label, and the first label is used to indicate to the second PE device that the first data packet is the first PE device from the first Received on the ES of a PE device and needs to pass the second The ES of the PE device is forwarded out.
  • the first label includes an ES routing label of the ES of the second PE device, and the An ESI label of the ES of the first PE device, where the ES routing label of the ES of the second PE device is used by the second PE device to determine that the first data packet needs to be performed by the ES of the second PE device Forwarding, and the ES routing label of the ES of the second PE device is advertised by the second PE device to the first PE device before the first PE device forwards the first data packet
  • the ESI label of the ES of the first PE device is used to indicate to the second PE device that the first data packet is received by the first PE device from an ES of the first PE device.
  • another aspect of the first aspect in combination with the first aspect or any of the above implementations, another aspect of the first aspect
  • the first PE device when the first data packet is a broadcast or a multicast packet, or the first data packet is a unicast packet, and the first PE device is the first If the correspondence between the first destination MAC address carried in the first data packet and the outbound interface of the first data packet is not established before the data packet is forwarded, the first PE device determines to be used for forwarding.
  • At least one target outbound interface of the first data packet when the at least one target outbound interface is an outbound interface of the first PE device, the first PE device passes the first data packet Translating at least one target outbound interface; or when the at least one target outbound interface is a plurality of target outbound interfaces, and the multiple target outbound interfaces are outbound interfaces of the second PE device,
  • the data packet is encapsulated, and the first data packet that is encapsulated carries the first label, and is forwarded to the second PE device by using a public network tunnel, where the first label is used to indicate to the second PE device.
  • the first data packet is the first PE Preparation received from said first device and ES PE needs to be forwarded through the second plurality of ES PE devices.
  • the first label includes an outbound interface that is used to indicate that the first data packet is a second multicast routing label of the plurality of ESs of the second PE device and an ESI label of the ES of the first PE device, where the second multicast routing label is used by the second PE device to determine the The data packet needs to be forwarded by the multiple ESs of the second PE device, and the ESI label of the ES of the first PE device is used to indicate to the second PE device that the first data packet is the The first PE device receives from the ES of the first PE device.
  • the encapsulated first data packet further carries an IP address of the first PE device
  • the IP address of the first PE device and the ESI label of the ES of the first PE device are used to indicate to the second PE device that the first data packet is the first PE device from the first Received on the ES of a PE device.
  • the method before the first PE device receives the second data packet sent by the second PE device, the method further includes: the first PE device receiving the first routing information sent by the second PE device, where the first routing information carries the identifier of the ES of the second PE device.
  • the first PE device allocates an ESI label to an identifier of an ES of the second PE device; Sending, by the first PE device, second ESI label information to the second PE device, where
  • the second ESI label information includes an identifier of the ES of the second PE device and an ESI label allocated by the first PE device for the identifier of the ES of the second PE device.
  • the method before the first PE device receives the second data packet sent by the second PE device, the method further includes: the first PE device receiving the third ESI tag information sent by the second PE device, where the third ESI tag information carries an IP address of the second PE device, and the second PE device The identifier of the ES and the ESI label assigned by the second PE device to the identifier of the ES of the second PE device.
  • the method before the first PE device receives the second data packet sent by the second PE device, the method further includes: the first PE device receives a second ESI label allocation response message sent by the label management device, and the second ESI label allocation response message carries the identifier of the ES of the second PE device by the label management device The assigned ESI label.
  • the first PE device is configured with an identifier of the ES of the second PE device and corresponding ESI label.
  • the method before the first PE device receives the second data packet sent by the second PE device, the method further includes: the first PE device assigning an ES routing label to an identifier of an ES of the second PE device; the first PE device sending, to the second PE device, an ES including the second PE device And the routing information of the ES routing label allocated by the first PE device to the identifier of the ES of the second PE device.
  • the first PE device allocates an ES route to an identifier of an ES of the second PE device Before the label, the first PE device receives the second ES automatic discovery information sent by the second PE device, where the second ES automatic discovery information includes the identifier of the ES of the second PE device and the second PE device ID of the VPN to which the ES belongs.
  • the method before the first PE device receives the second data packet sent by the second PE device, The method further includes: the first PE device sending third routing information to the second PE device, where the third routing information carries an identifier of an ES of the first PE device.
  • the method further includes: the first PE device receiving the second PE device The first ESI label information, the first ESI label information includes an identifier of an ES of the first PE device and an ESI label allocated by the second PE device for an identifier of an ES of the first PE device.
  • the method before the first PE device receives the second data packet sent by the second PE device, the method further includes: the first PE device sending fourth ESI label information to the second PE device, where the fourth ESI label information carries an IP address of the first PE device, and the first PE device The identifier of the ES and the ESI label assigned by the first PE device to the identifier of the ES of the first PE device.
  • the method further includes: the first PE device sends a first ESI label allocation request message to the label management device, where the first ESI label allocation request message carries an identifier of an ES of the first PE device; Receiving a first ESI label allocation response message sent by the label management device, where the first ESI label allocation response message carries an ESI label allocated by the label management device for an identifier of an ES of the first PE device.
  • the method before the first PE device receives the second data packet sent by the second PE device, the method further includes: the first PE device receiving the identifier of the ES that is sent by the second PE device, including the first PE device, and the second PE device, the identifier of the ES of the first PE device Routing information of the ES routing label.
  • the first PE device that receives the second PE device that is sent by the first PE device includes the first Before the identifier of the ES of the PE device and the routing information of the ES routing label allocated by the second PE device to the identifier of the ES of the first PE device
  • the method further includes: the first PE device to the second PE The device sends the first ES automatic discovery information, where the first ES automatic discovery information includes the identifier of the ES of the first PE device and the identifier of the VPN to which the ES of the first PE device belongs, the first ES automatic discovery The information is used to instruct the second PE device to allocate an ES routing label for the identifier of the ES of the first PE device.
  • a method for an Ethernet virtual private network includes: a second provider edge PE device encapsulating a second data packet, where the encapsulated second data packet carries a second a label and a second source MAC address; the second PE device sends the encapsulated second data packet to the first PE device, where the second label is used to indicate the second information to the first PE device.
  • the data packet is received by the second PE device from the Ethernet segment ES of the second PE device, and the encapsulated second data packet is used to enable the first PE device to establish the first Correspondence between the ES of the second PE device and the second source MAC address.
  • a method for an Ethernet virtual private network comprising: receiving, by a label management device, an Ethernet segment identification ESI label allocation request message sent by a first provider edge PE device, the ESI label allocation request The message carries an identifier of the Ethernet segment ES of the first PE device; the tag management device allocates an ESI tag for the identifier of the ES of the first PE device; the tag management device sends a message to the first PE device An ESI label assigns a response message, and sends a second ESI label allocation response message to the second PE device, where the first ESI label allocation response message and the second ESI label allocation response message both carry the allocated ESI a label, the allocated ESI label used by the first PE device to encapsulate a data message received from an ES of the first PE device and required to be forwarded, and indicating the data to the second PE device
  • the message is received by the first PE device from the ES of the first PE device.
  • the ESI label allocation request message further carries an identifier of an Ethernet virtual private network VPN to which the ES of the first PE device belongs
  • the assignment response message also carries the identifier of the VPN to which the ES of the first PE device belongs
  • the second ESI label assignment response message further carries the identifier of the VPN to which the ES of the first PE device belongs.
  • the label management device is a route reflector or a PE device or a centralized controller.
  • the fourth aspect provides a first provider edge PE device, where the device includes: a receiving unit, configured to receive a second data packet sent by the second PE device, where the second data packet carries the second label and a second source medium access control MAC address; a determining unit, configured to determine, according to the second label received by the receiving unit, that the second data packet is the second PE device from the second PE device.
  • the establishing unit is configured to establish a correspondence between the ES of the second PE device determined by the determining unit and the second source MAC address received by the receiving unit.
  • the first PE device further includes a first sending unit, where the first sending unit is configured to receive the second according to the receiving unit The tag forwards the second data packet through the ES of the first PE device.
  • the second label includes an ES routing label of an ES of the first PE device
  • the first sending unit is specifically configured to: forward, by using an ES routing label of the ES of the first PE device, the second data packet by using an ES of the first PE device, where the ES of the first PE device is The ES routing label is advertised to the second PE device by the first PE device before receiving the second data packet.
  • the second label includes an Ethernet segment identifier ESI label of an ES of the second PE device
  • the determining unit is configured to: determine, according to an ESI label of the ES of the second PE device, that the second data packet is received by the second PE device from an ES of the second PE device.
  • the first PE device further includes a second sending unit, where the second sending unit is used by The second data packet is forwarded by the multiple ESs of the first PE device according to the second label received by the receiving unit.
  • the second label includes an outbound interface that is used to indicate that the second data packet is a first multicast routing label of the multiple ESs of the first PE device, where the second sending unit is configured to: pass the second data packet to the first by using the first multicast routing label Multiple ESs of the PE device are forwarded.
  • the second label includes an Ethernet segment identifier ESI label of an ES of the second PE device
  • the determining unit is configured to: determine, according to an ESI label of the ES of the second PE device, that the second data packet is received by the second PE device from an ES of the second PE device.
  • the second data packet is sent by the second PE device by using an Internet Protocol IP tunnel
  • the second data packet further carries an IP address of the second PE device, where
  • the determining unit is configured to: determine, according to the IP address of the second PE device, and the ESI label of the ES of the second PE device, that the second data packet is the second PE device from the second PE device Received on the ES.
  • the receiving unit is further configured to: receive a customer edge from an ES of the first PE device The first data packet sent by the CE device; the establishing unit is further configured to: establish an ES of the first PE and the first data packet according to the first data packet received by the receiving unit Correspondence of the first source MAC address.
  • the determining unit is further configured to: determine the first datagram that is received by the receiving unit The outbound interface of the text; the first PE device further includes a third sending unit, where the third sending unit is configured to: pass the first data packet to the first data packet that is determined by the determining unit The outbound interface forwards.
  • the first data packet is a unicast packet
  • the first PE device In the case that the correspondence between the first destination MAC address carried in the first data packet and the outbound interface of the first data packet is established before the first data packet is forwarded, the third sending unit is specifically The method is: when the outbound interface of the first data packet that is determined by the determining unit is an ES in the first PE device, and forwarded by using the outbound interface of the first data packet; or The third sending unit is specifically configured to: when the outbound interface of the first data packet that is determined by the determining unit is an ES of the second PE device, encapsulate the first data packet, The second PE device sends the encapsulated first data packet, the encapsulated first data packet carries a first label, and the first label is used to indicate the second PE device
  • the first data packet is the first PE Preparation received from said first PE device ES and ES needs to be transmitted via said
  • the first label includes an ES routing label of the ES of the second PE device, and the An ESI label of the ES of the first PE device, where the ES routing label of the ES of the second PE device is used by the second PE device to determine that the first data packet needs to be performed by the ES of the second PE device Forwarding, and the ES routing label of the ES of the second PE device is issued by the second PE device before the first PE device forwards the first data packet to the
  • the ESI label of the ES of the first ⁇ device of the first PE device is used to indicate to the second PE device that the first data packet is an ES of the first PE device from the first PE device Received on.
  • the determining unit is further configured to: determine at least one target outbound interface for forwarding the first data packet; the third sending unit is specifically configured to: The at least one target outbound interface determined by the determining unit is an outbound interface of the first PE device, and the first data packet is forwarded through the at least one target outbound interface; or the third sending The unit is specifically configured to: when the determining unit determines that the at least one target outbound interface is a plurality of target outbound interfaces, and the multiple target outbound interfaces are outbound interfaces of the second PE device, The data packet is encapsulated, and the first data packet that is encapsulated carries
  • the first label includes an outbound interface that is used to indicate that the first data packet is a second multicast routing label of the plurality of ESs of the second PE device and an ESI label of the ES of the first PE device, where the second multicast routing label is used by the second PE device to determine the The data packet needs to be forwarded by the multiple ESs of the second PE device, and the ESI label of the ES of the first PE device is used to indicate to the second PE device that the first data packet is the The first PE device receives from the ES of the first PE device.
  • the encapsulated first data packet further carries an IP address of the first PE device
  • the IP address of the first PE device and the ESI label of the ES of the first PE device are used to indicate to the second PE device that the first data packet is the first PE device from the first Received on the ES of a PE device.
  • the receiving unit is further configured to: receive the first sent by the second PE device Routing information, the first routing information carries an identifier of an ES of the second PE device.
  • the establishing unit is further configured to: receive, by the receiving unit, the second PE device The identifier of the ES is assigned an ESI label; the first PE device further includes a fourth sending unit, where the fourth sending unit is configured to send second ESI label information, the second ESI label, to the second PE device.
  • the information includes an identifier of the ES of the second PE device and an ESI label allocated by the establishing unit for the identifier of the ES of the second PE device.
  • the receiving unit is further configured to receive a third ESI label sent by the second PE device Information, the third ESI label information carries an IP address of the second PE device, an identifier of an ES of the second PE device, and an identifier of the second PE device that is an identifier of an ES of the second PE device ESI label.
  • the receiving unit is further configured to: receive a second ESI label allocation response message sent by the label management device
  • the second ESI label allocation response message carries an ESI label allocated by the label management device for the identifier of the ES of the second PE device.
  • the first PE device further includes a storage unit, where the storage unit is configured to store a preset The identifier of the ES of the second PE device and the corresponding ESI label.
  • the establishing unit is further configured to: allocate an ES for the identifier of the ES of the second PE device a routing label; the first PE device further includes a fifth sending unit, where the fifth sending unit is configured to send, to the second PE device, an identifier of the ES that includes the second PE device, and the establishing unit is The routing information of the ES routing label allocated by the identifier of the ES of the second PE device.
  • the receiving unit is further configured to: receive the second ES automatic discovery information that is sent by the second PE device
  • the second ES automatic discovery information includes an identifier of an ES of the second PE device and an identifier of an Ethernet virtual private network VPN to which the ES of the second PE device belongs.
  • the first PE device further includes a sixth sending unit, the sixth sending list
  • the third routing information is used to send the third routing information to the second PE device, where the third routing information carries the identifier of the ES of the first PE device.
  • the receiving unit is further configured to: receive the first ESI label sent by the second PE device Information, the first ESI label information includes an identifier of an ES of the first PE device and an ESI label allocated by the second PE device for an identifier of an ES of the first PE device.
  • the first PE device further includes a ninth sending unit, where the ninth sending unit is used Transmitting, to the second PE device, fourth ESI label information, where the fourth ESI label information carries an IP address of the first PE device, an identifier of an ES of the first PE device, and the first PE device An ESI label assigned to the identity of the ES of the first PE device.
  • the first PE device further includes a seventh sending unit, where the seventh sending unit is used Transmitting, by the label management device, a first ESI label allocation request message, where the first ESI label allocation request message carries an identifier of an ES of the first PE device, and the receiving unit is configured to receive, by the label management device, And a first ESI label allocation response message, where the first ESI label allocation response message carries an ESI label allocated by the label management device for the identifier of the ES of the first PE device.
  • the receiving unit is further configured to: receive, by the second PE device, the The identifier of the ES of the PE device and the routing information of the ES routing label allocated by the second PE device to the identifier of the ES of the first PE device.
  • the first PE device device further includes an eighth sending unit, the eighth sending unit,
  • the first ES automatic discovery information is sent to the second PE device, where the first ES automatic discovery information includes an identifier of the ES of the first PE device and an identifier of the VPN to which the ES of the first PE device belongs.
  • the first ES auto-discovery information is used to instruct the second PE device to allocate an ES routing label for the identifier of the ES of the first PE device.
  • a second PE device configured to include: a packaging unit, configured to encapsulate a second data packet, where the encapsulated second data packet carries a second label and a second source MAC address
  • An address unit configured to send, by the first PE device, the encapsulated unit
  • the second data packet, the second label is used to indicate to the first PE device that the second data packet is received by the second PE device from an Ethernet segment ES of the second PE device
  • the encapsulated second data packet is used to enable the first PE device to establish a correspondence between the ES of the second PE device and the second source MAC address.
  • a label management device includes: a receiving unit, configured to receive an Ethernet segment identifier ESI label allocation request message sent by a first provider edge PE device, where the ESI label allocation request message carries An identifier of an Ethernet segment ES of the first PE device, an allocation unit, configured to allocate an ESI label to an identifier of an ES of the first PE device received by the receiving unit, and a sending unit, configured to send to the first PE
  • the device sends a first ESI label allocation response message, and sends a second ESI label allocation response message to the second PE device, where the first ESI label allocation response message and the second ESI label allocation response message both carry the An assigned ESI tag, the allocated ESI tag used by the first PE device to encapsulate a data message received from an ES of the first PE device and required to be forwarded, and indicating to the second PE device
  • the data packet is received by the first PE device from an ES of the first PE device.
  • the ESI label allocation request message further carries an identifier of an Ethernet virtual private network VPN to which the ES of the first PE device belongs
  • the assignment response message also carries the identifier of the VPN to which the ES of the first PE device belongs
  • the second ESI label assignment response message further carries the identifier of the VPN to which the ES of the first PE device belongs.
  • the label management device is a route reflector or a PE device or a centralized controller.
  • the first PE device performs the remote MAC address learning by using the received second data packet sent from the second PE device, and establishes the second source MAC address carried by the second PE device and the second data packet.
  • the first PE device learns the remote MAC address through the data plane, that is, the correspondence between the remote ES and the remote MAC address is established.
  • the remote CE is added to the PE, the multi-homed link between the CE and the PE is regarded as the same remote ES. Therefore, the C-MAC information exchange is not required through the control plane, thereby reducing the signaling overhead between the PE devices on the control plane and improving the scalability of the control plane.
  • FIG. 1 is a schematic scene diagram of an Ethernet VPN applicable to an embodiment of the present invention.
  • 2 is a schematic scene diagram of another Ethernet VPN that can be applied to an embodiment of the present invention.
  • 3 is a flow chart of a method for an Ethernet virtual private network in accordance with an embodiment of the present invention.
  • 4A is a schematic diagram of a data packet encapsulation format according to an embodiment of the present invention.
  • FIG. 4B is a schematic diagram of a data packet encapsulation format according to another embodiment of the present invention.
  • FIG. 5 is a flow chart of a method for an Ethernet virtual private network in accordance with another embodiment of the present invention.
  • 6 is a flow chart of a method for an Ethernet virtual private network in accordance with still another embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of a first PE device according to an embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of a second PE device according to an embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of a tag management device according to an embodiment of the present invention.
  • FIG. 10 is a block diagram of an apparatus in accordance with one embodiment of the present invention.
  • Figure 11 is a schematic structural view of a first PE device according to another embodiment of the present invention.
  • FIG. 12 is a schematic structural diagram of a second PE device according to another embodiment of the present invention.
  • FIG. 13 is a schematic structural diagram of a tag management device according to another embodiment of the present invention. detailed description
  • FIG. 1 is a schematic scene diagram of an Ethernet VPN applicable to an embodiment of the present invention.
  • three PE devices are described for the intra-domain scenario, namely PE1, PE2, and PE3, and five customer sites, namely Site 1, Site 2, Site 3, Site 4, and Site 5, respectively.
  • the Customer Edge (CE) devices are CE1, CE2, CE3, CE4, and CE5.
  • a user equipment is described in each CE.
  • a user equipment corresponds to a unique C-MAC address, MAC A under CE1, MAC B under CE2, MAC C under CE3, MAC D under CE4, and MAC address under CE5.
  • Site 1, Site 2, Site 3, Site 4, and Site 5 belong to the same Ethernet VPN instance E-VPN A, and are connected to each other across the bearer network.
  • Reasonable The solution may also include different Ethernet VPN instances in a domain, which is not limited by the embodiment of the present invention.
  • a single-homed or multi-homed link between a CE and a PE is called an Ethernet segment (ES).
  • ES Ethernet segment
  • a CE is connected to a PE
  • the single-homed link between the CE and the PE is called a single-homed ES.
  • a set of multiple-homed links between the CE and multiple PEs is called multi-homing ES.
  • the ES that is directly connected to the local end is called the local ES.
  • the ES that is not directly connected to the local end is called the remote ES.
  • the non-zero value of the ES uniquely identifies the identifier called the Ethernet Segment Identity (ESI).
  • ESI Ethernet Segment Identity
  • each ES corresponds to an ESI.
  • the ESI value needs to be unique across the entire network, either automatically or pre-configured.
  • the ESI value can be 6 bytes or other length.
  • the ES between CE1 and PE1 in the scenario of Figure 1 is a single-homed ESI, and the ES between CE2 and PE1 and PE2 is multi-homed to ES2. It should be understood that the embodiment of the present invention does not limit this.
  • the scene of the Ethernet VPN cross-domain can be schematically shown in Figure 2.
  • two domains are depicted, corresponding to one PE device, namely PE4 (corresponding customer site Site6) and PE5 (corresponding customer site).
  • Site7) the corresponding CE devices are CE6 and CE7.
  • Each CE describes a user equipment.
  • a user equipment corresponds to a unique C-MAC address, MAC F under CE6, and MAC G under CE7.
  • Site6 and Site7 belong to the same Ethernet VPN instance E-VPN A, and the bearer networks across different domains are connected to work like the same LAN.
  • the information exchange between the PEs in different domains needs to pass the ASBR (Autonomous System Border Router). For example, if ⁇ 4 sends a data packet to ⁇ 5, it needs to send the data packet to ASBR1, and ASBR1 forwards it to ASBR2, and ASBR2 sends the data packet to ⁇ 5.
  • ASBR Autonomous System Border Router
  • the embodiment of the present invention does not limit the number of devices of the bearer network, and may include fewer or more devices.
  • the number of the customer site (or the CE device) is not limited in the embodiment of the present invention.
  • one device can correspond to one or more Ethernet VPN instances, and the client site in each Ethernet VPN instance (
  • the number of CE devices or the number of CE devices is not limited and may be one or more. and many more. It should also be understood that there may be one or more user equipments (MAC addresses) under each CE, which is not limited by the present invention.
  • MAC addresses user equipments
  • MAC processing of the local PE device to the remote site is performed by the control plane through BGP signaling.
  • PE1 learns that the MAC E address is This is done by sending BGP signaling to PE1 through PE3.
  • BGP signaling is advertised for each C-MAC in the same E-VPN, and the routes are flooded to all PEs in the same E-VPN.
  • the C-MAC scale under each CE device. It can be very big. Therefore, when the network size is large, the signaling overhead will increase exponentially due to C-MAC routing, and the scalability of the control plane will be reduced.
  • PE devices are fully connected through PW.
  • the PE device learns the MAC address through the data plane and establishes the mapping between the MAC address and the PW.
  • a PE device can learn a specific MAC address through a PW of a remote PE.
  • PE3 can only learn MAC B from the PW connected to PE1, or PE3 can learn MAC B only from the PW connected to PE2, so PE3 sends data packets to the MAC.
  • B only PE1 or PE2 can be selected, and data files cannot be offloaded through PE1 and PE2 at the same time.
  • data packets from MAC B can only be sent to PE3 through PE1 or PE2. Therefore, in the VPLS technical solution, the requirement of flow-based load sharing in a multi-homing scenario cannot be realized.
  • an embodiment of the present invention provides a method and device for an Ethernet virtual private network.
  • the local PE implements the MAC address learning of the remote site based on the ES, and uses the learning result and the ES routing information to forward the Ethernet packets to the remote site.
  • Stream-based load sharing requirements while achieving high scalability of the control plane with lightweight routing.
  • the present invention will be described in conjunction with the scenario of FIG. 1.
  • the present invention is also applicable to a cross-domain scenario or a hierarchical Ethernet network networking scenario. It should be understood that the embodiments of the present invention are not limited thereto.
  • FIG. 3 is a flow chart of a method for an Ethernet virtual private network in accordance with an embodiment of the present invention. The method of Figure 3 is performed by the PE device.
  • the first PE device receives the second data packet sent by the second PE device, where the second data packet carries the second label and the second source MAC address.
  • the first PE device determines, according to the second label, that the second data packet is received by the second PE device from the ES of the second PE device, and establishes a correspondence between the ES of the second PE device and the second source MAC address.
  • the second data sent by the first PE device from the second PE device by the first PE device in the embodiment of the present invention The packet performs the remote MAC address learning, that is, the correspondence between the ES of the second PE device and the second source MAC address carried by the second data packet is established. That is to say, the first PE device performs remote MAC address learning through the data plane, and establishes a correspondence between the remote ES and the remote MAC address. Therefore, the C-MAC information exchange is not required through the control plane, thereby reducing the signaling overhead on the control plane between the PE devices and improving the scalability of the control plane.
  • the multiple-homed link between the remote CE and the remote PE is regarded by the first PE as the same remote ES.
  • the local PE device can reach the remote ES through multiple different remote PEs through the ES route delivered by the control plane.
  • the remote CE can reach the local PE device through different PEs that are multi-homed. In this way, flow-based load sharing can be implemented in some scenarios (such as multi-homing scenario multi-active mode).
  • the second label has a corresponding relationship with the ES of the second PE device
  • the first PE device may determine that the second data packet is the second according to the correspondence between the second label and the ES of the second PE device.
  • the PE device receives from the ES of the second PE device.
  • the second data packet is a known unicast data packet, that is, the second PE device has performed the second data packet carrying the second packet.
  • the learning of the destination MAC address establishes the correspondence between the ES of the first PE device and the second destination MAC address. Therefore, the second PE device can determine that the outbound interface of the second data packet is the ES of the first PE device.
  • the first PE device may forward the second data packet to the ES of the first PE device according to the second label.
  • the second label may include an ES routing label of the ES of the first PE device and an Ethernet segment identification ESI label of the ES of the second PE device (referred to as a “three-layer label scheme”), optionally, the first PE
  • the ES routing label of the ES of the device is sent by the first PE device to the second PE device, and is used to indicate to the first PE device that the second data packet needs to be forwarded from an ES of the first PE device;
  • the ESI label of the ES of the device is used to indicate to the first PE device that the second data message is received by the second PE device from the ES of the second PE device.
  • the second label is used to indicate to the first PE device that the second data packet is received by the second PE device from an ES of the second PE device and needs to be forwarded from an ES of the first PE device.
  • the "two-layer label scheme" For the "two-layer label scheme” ;).
  • the first PE device may And transmitting, by the second label, the second data packet by using multiple ESs of the first PE device.
  • the second label includes an interface for indicating that the interface is the first PE.
  • the ESI label of the ES of the second PE device is used to indicate to the first PE device that the second data message is received by the second PE device from the ES of the second PE device.
  • the second label is used to indicate to the first PE device that the second data packet is received by the second PE device from a certain ES of the second PE device and needs to be forwarded from multiple ESs of the first PE device (two Layer labeling scheme).
  • FIG. 4A shows a Layer 3 labeling scheme.
  • the routing label can be an ES routing label of an ES.
  • the PE device is used to determine which local ES to forward data packets.
  • the routing label may be a multicast routing label, that is, the multicast routing label indicates multiple ESs, and the PE device is used to determine from which local ESs to forward data packets.
  • the ESI tag is used by the PE device to determine from which remote ES the data message was received.
  • Figure 4B shows a two-layer labeling scheme.
  • the label in the encapsulation format of the two-layer labeling scheme indicates the mapping between the local ES and the remote ES of the PE.
  • the PE device that receives the data packet is used to determine the data packet. Which remote ES receives and needs to be forwarded from which local ES(s).
  • the PE1 receives the unicast label of the known unicast data packet sent by the PE3.
  • the routing label is the ES routing label of the ES1 that PE1 advertises to PE3.
  • the ESI label is the ESI label of the ES4. .
  • PE1 can determine to forward the data packet through ES1.
  • the encapsulation format of the known unicast data packet sent by the PE1 is a two-layer label scheme, and the label indicates to the PE1 that the data packet is received from the ES4 and needs to be forwarded from the ES1.
  • the encapsulation format of the BUM data packet sent by the PE1 is a Layer 3 label scheme
  • the routing label is a multicast routing label indicating that the interface is ES1 and ES2
  • the ESI label is the ESI label of the ES4.
  • PE1 can determine that the data packet needs to be forwarded through ES1 and ES2 respectively.
  • the ES4 ESI label it can be determined that the data packet is received from the ES4.
  • PE3 can receive data packets (such as MAC B) from the same source MAC address from PE1 and PE2 respectively.
  • the encapsulation format of the data packet is a Layer 3 label scheme
  • the routing label is PE3.
  • the ESI label is the ESI label of the ES2.
  • the PE3 can determine that the data packet is received from the ES2 and needs to forward the data packet through the ES4.
  • step 301 when the second data packet received by the first PE device is sent by the second PE device via an Internet Protocol (IP) tunnel (such as a GRE tunnel or a UDP tunnel),
  • IP Internet Protocol
  • the second data packet can also carry the IP address of the second PE device.
  • the first PE device determines, according to the IP address of the second PE device and the ESI label of the ES of the second PE device, that the second data packet is received by the second PE device from the ES of the second PE device, thereby completing the The establishment of the correspondence between the ESI of the PE of the second PE device and the second source MAC address.
  • IP Internet Protocol
  • the PE device can determine not only which local ES(s) the data packet needs to be forwarded, but also which remote ES(s) the data packet is received from.
  • the remote MAC address is learned through the data plane, and the correspondence between the remote ES and the remote MAC address is established.
  • the remote CE is added to the PE, the multi-homed link between the CE and the PE is regarded as the same remote ES.
  • the local PE device can reach the remote ES through multiple different remote PEs through the ES route delivered by the control plane.
  • the remote CE can reach the local PE device through multiple PEs that are multi-homed.
  • the first PE device may receive the ES device sent by the CE from the ES of the first PE (for convenience of description, the ES of the first PE device is represented by the first ES in the following example).
  • the first data packet the first PE device performs the local MAC address learning according to the first data packet, and establishes a correspondence between the first ES (such as the identifier of the first ES) and the first source MAC address carried by the first data packet. relationship.
  • the first PE device may determine an outbound interface of the first data packet, and forward the first data packet.
  • the PE device forwards the first data packet.
  • the correspondence between the first destination MAC address and the outbound interface ES of the first data packet has been established before:
  • the outbound interface ES corresponding to the first destination MAC address is one of the other ESs of the first PE device, in other words, the outbound interface corresponding to the first destination MAC address.
  • the ES is still a local ES, and is forwarded through the outbound interface ES corresponding to the first destination MAC address.
  • PE1 receives the unicast data packet sent by CE1 from ES1, and the unicast data packet carries the source MAC address MAC A and the destination MAC address MAC B.
  • PE1 performs local MAC address learning, that is, establishes the correspondence between ES1 and MAC A.
  • PE1 can directly forward the unicast data packet through ES2.
  • the ES of the second PE device when the determined outbound interface ES corresponding to the first destination MAC address is an ES of the second PE device (for convenience of description, the ES of the second PE device is represented by the second ES
  • the first PE device may encapsulate the first data packet, and send the encapsulated first data packet to the second PE device, where the encapsulated first data packet carries the first label.
  • the encapsulation format of the data packet of the first PE device may be the foregoing three-layer label scheme, that is, the first label may include the ES routing label of the second ES and the ESI label of the first ES, where the ES routing label of the second ES Is sent by the second PE device to the first PE device, and is used to indicate to the second PE device that the first data packet needs to be forwarded through the second ES; the ESI label of the ES of the first PE device is used to send to the second PE The device instructs the first data message to be received from the ES of the first PE device.
  • the second PE device can forward the first data packet from the second ES according to the ES routing label of the second ES, and determine, according to the ESI label of the first ES, that the first data packet is the first PE device.
  • PE1 receives the unicast data packet sent by CE1 from ES1, and the unicast data packet carries the source MAC address MAC A and the destination MAC address MAC D.
  • PE1 performs local MAC address learning, that is, establishes the correspondence between ES1 and MAC A. After PE1 has learned the remote MAC address and established the mapping between ES4 and MAC D, PE1 can encapsulate the unicast data packet.
  • the Layer 3 labeling scheme is used as an example to advertise the ES1 ESI label and PE3 to PE1.
  • the ES routing label of the ES4 is pushed into the label stack, that is, the encapsulated unicast data packet carries the ES1 ESI label and the ES routing label of the ES4 that PE3 issues to PE1. Therefore, the packet can be forwarded to the PE3 through the public network tunnel (the channel between the PE devices). Therefore, the PE3 can determine that the unicast data packet is received from the ES1 according to the ESI label.
  • the ES1 and the ES1 are established.
  • the corresponding relationship of the MAC A is the remote MAC learning performed by the PE3, and the unicast data packet is forwarded from the ES4 according to the routing label.
  • the first data packet is a broadcast or a multicast packet, or the first data packet is a unicast packet, and the first PE device forwards the first data packet before the first data packet is forwarded to the first data packet.
  • the first destination MAC address carried in the data packet is learned, such data packet is also called a BUM data packet.
  • the first PE device can traverse the outbound interface list corresponding to the BUM data packet. For each outgoing interface in the outbound interface list, the outbound interface belongs to the first PE. The first PE device forwards the packet through the outbound interface.
  • the outbound interface is the remote ES
  • the first data packet is encapsulated.
  • the encapsulated first data packet carries the first label.
  • the network tunnel forwards the packet to the second PE device.
  • the encapsulation format of the first data packet by the first PE device may be the foregoing three-layer label scheme, that is, the first label may include a multicast routing label for indicating that the interface is a plurality of ESs of the second PE device. And the ESI label of the first ES; or a two-layer label scheme, that is, the first label is used to indicate that the first data packet is received from the first ES and needs to be forwarded through multiple ESs to the second PE device respectively.
  • the second PE device may forward the first data packet to the multiple ESs of the second PE device according to the multicast routing label indicating that the interface is the multiple PEs of the second PE device, and according to the first ES
  • the ESI tag determines that the first data message is received by the first PE device from the first ES.
  • the second PE device may directly determine, according to the first label, that the first data packet is received by the first PE device from the first ES and needs to be forwarded by multiple ESs of the second PE device respectively.
  • PE1 receives the data packet sent by CE1 from ES1. If the packet is determined to be a BUM data packet and is forwarded by the head node replication mode, PE1 can be based on the VPN E- to which the ES 1 belongs. VPN A determines the outbound interface list corresponding to the BUM data packet, including ES2, ES3, ES4, and ES5. When the destination outbound interface is ES2, PE1 can forward the BUM data directly from ES2. When the outgoing interface of the target is ES4 and ES5, PE1 encapsulates the BUM data and forwards the encapsulated BUM data packet to PE3 through the public network tunnel.
  • PE1 encapsulates the BUM data packet and forwards the encapsulated BUM data packet to PE2 through the public network tunnel.
  • the process of encapsulating the BUM data packet may refer to the foregoing example of forwarding the known unicast packet, and details are not described herein.
  • PE3 can forward the data packet from all local ESs (ES4 and ES5) that belong to E-VPNA on PE3.
  • PE2 can forward the data packet to all local ESs (ES3s) belonging to E-VPNA on PE2.
  • the first PE device When the BUM data packet is forwarded by using the Label Switch Multicast mode, the first PE device forwards the packet directly to the local outbound interface corresponding to the BUM packet. If the packet needs to be forwarded to the remote PE. , the first PE device does not need to be targeted for each remote PE.
  • the first PE device encapsulates the first data packet, and the encapsulated first data packet carries the first label, and is encapsulated and forwarded to the second PE device through the public network tunnel.
  • a public network multicast tunnel can transmit BUM packets to all remote PE devices that belong to the same VPN.
  • the encapsulation format of the first data packet by the first PE may be the foregoing three-layer label scheme, that is, the first label may include a multicast routing label for indicating that the interface is a plurality of ESs of the second PE device, and The ESI label of the first ES; or a two-layer label scheme, that is, the first label indicates that the first data packet is received by the first PE device from the first ES and needs to pass through the second PE device respectively. The ES forwards it out.
  • the second PE device can forward the first data packet from the multiple ESs of the second PE device according to the multicast routing label indicating that the interface is the multiple PEs of the second PE device, and according to the first ES
  • the ESI tag determines that the first data message was received by the first PE device from the first ES.
  • the second PE device may directly determine, according to the first label, that the first data packet is received by the first PE device from the first ES and needs to be forwarded by multiple ESs of the second PE device respectively.
  • the PE3 receives the data packet sent by the CE4 from the ES4. If the packet is determined to be a BUM data packet and is forwarded by using a Label Switch Multicast (LSM) mode, The PE3 can determine the BUM text outgoing interface and the remote LSM channel according to the VPN E-VPN A to which the ES4 belongs.
  • the LSM refers to a point-to-multipoint (P2MP) and multiple point to multiple point (P2MP) tunnel to carry the VPN.
  • P2MP point-to-multipoint
  • P2MP multiple point to multiple point tunnel to carry the VPN.
  • PE3 directly forwards the BUM data packet from ES5.
  • PE3 does not need to perform packet replication and forwarding for each remote PE.
  • the packet is encapsulated in the public network multicast tunnel for encapsulation and forwarding, and the packet is encapsulated and forwarded through the public network.
  • the packets reach PE1 and PE2.
  • the PE1 and the PE2 can identify the corresponding source MAC address and the ES4 according to the multicast routing label.
  • the PE1 and the PE2 can respectively establish the correspondence between the source MAC address and the ES4. And forward the data packet from the local ES belonging to the E-VPNA.
  • PE3 pushes the ES4 ESI label and its published LSM multicast routing label into the label stack, that is, the encapsulated BUM data packet carries the ES4 ESI label and PE3 is released.
  • the LSM multicast routing label is sent to PE1 and PE2.
  • the encapsulated packets are encapsulated and forwarded through the public network multicast tunnel. After the public network multicast tunnel is forwarded, the packets reach PE1 and PE2. After receiving the BUM data packet sent by PE3, PE1 and PE2 receive the BUM data packet.
  • the packet can be identified from the remote ES4 according to the ESI label.
  • PE1 and PE2 can respectively establish the correspondence between the source MAC address of the packet and the ES4, and forward the data from the local ES belonging to the E-VPNA. Message.
  • the encapsulated first data packet may further carry the IP address of the first PE device.
  • the second PE device determines that the first data packet is received by the first PE device from the ES of the first PE device according to the IP address of the first PE device and the ESI label of the ES of the first PE device, so that the first data is completed.
  • the source MAC address of the message is established with the ESI of the ES of the first PE device.
  • the label encapsulated in the data packet can indicate which ES the packet originates from, and the remote PE can identify the data packet after receiving the data packet. From which remote ES the data packet is received, the MAC learning of the remote site is completed, and the learning result is used to guide the subsequent text forwarding.
  • the PE devices before the PE device performs MAC learning through the data plane, can exchange required routing information.
  • the PE device can obtain the ESI label by using the local dynamic configuration mode, that is, the PEs can firstly discover and distribute the ESI label after the ES is exchanged through the control plane information; or, the PE device can pass The global static configuration mode obtains the ESI label, that is, the ESI of each ES under each PE device and the corresponding ESI label are preset on each PE device, and the assigned ESI label can uniquely identify an ESI; or, the PE device can also The ESI label is obtained through the global dynamic configuration.
  • the ESI label is uniformly allocated by the label management device for the ES of each PE device.
  • the assigned ESI label can uniquely identify an ESI.
  • the label management device can be a route reflector. Reflector) can also be a PE device, or it can be a centralized controller of Software Defined Network (SDN).
  • SDN Software Defined Network
  • the embodiment of the present invention does not limit the manner in which the PE device obtains the routing information and the ESI label information.
  • the above solution enables the PE device to obtain the required encapsulation information when forwarding packets to the remote site.
  • the first PE device may receive the first routing information sent by the second PE device, where the first routing information includes the ES, by using the control plane to obtain the ESI label, and the POS label is obtained by using the local dynamic configuration mode.
  • the routing information format defined in the prior art E-VPN can be used, which is not limited herein.
  • the first PE device may discover the ES of the second PE device and the identifier of the ES of the second PE device according to the ES identifier carried in the ES routing information sent by the second PE device. Assign the ESI label.
  • the first PE device sends the second ESI label information to the second PE device, where the second ESI label information includes the identifier of the ES of the second PE device and the ESI label allocated by the first PE device for the identifier of the ES of the second PE device.
  • PE1 receives the ES4 routing information that PE3 sends to it, and then discovers the remote ES4.
  • PE1 allocates an ESI label to the remote ES4, and constructs the ESI label message to carry the identifier of the remote ES4. Its assigned ESI label is released to PE3.
  • the PE3 can encapsulate the ESI label assigned by the PE1 to the ES4 to indicate that the packet originates from the ES4.
  • the first PE device may further send the third routing information to the second PE device, where the third routing information includes the ES routing information or the multicast routing information.
  • the routing information format defined in the prior art E-VPN can be used, which is not limited herein.
  • the second PE device may discover the ES of the first PE device and the identifier of the ES of the first PE device according to the ES identifier carried in the ES routing information sent by the first PE device. Assign the ESI label.
  • the second PE device sends the first ESI label information to the first PE device, where the first ESI label information includes the identifier of the ES of the first PE device and the ESI label assigned by the second PE device to the identifier of the ES of the first PE device.
  • the first ESI label information includes the identifier of the ES of the first PE device and the ESI label assigned by the second PE device to the identifier of the ES of the first PE device.
  • PE1 sends the ES1 routing information to PE3, PE3 can discover the remote ESI, and PE3 allocates an ESI label to the remote ES1, and constructs the ESI label message to carry the identifier of the remote ES1 and The assigned ESI label is advertised to the PEL. If the data packet received from the ES1 needs to be sent to the PE3, the ESI label assigned by the PE3 to the ES1 can be encapsulated to indicate that the data packet originates from the ES1.
  • the first PE device may receive the third ESI label information sent by the second PE device, where the third ESI label information carries the IP address of the second PE device, and the second PE The identifier of the ES of the device and the ESI label assigned by the second PE device to the identifier of the ES of the second PE device.
  • the second PE device may encapsulate the second PE device. The identifier of the ES of the second PE device is assigned the ESI label and the IP address of the second PE device.
  • the first PE device may determine the ES of the second PE device according to the ESI label allocated by the second PE device for the identifier of the ES of the second PE device and the IP address of the second PE device.
  • the identifier establishes a correspondence between the identifier of the ES of the second PE device and the source MAC address carried by the second data packet.
  • the present invention does not limit the definition of the protocol message format carrying the third ESI tag information, and may define an independent protocol message format, or directly use or extend the existing protocol message format.
  • the first PE device may send the fourth ESI label information to the second PE device, where the fourth ESI label information carries the IP address of the first PE device, the identifier of the ES of the first PE device, and the first PE device is the first The ESI label assigned by the identity of the ES of the PE device.
  • the present invention does not limit the definition of the protocol message format carrying the fourth ESI tag information, and may define an independent protocol message format, or directly use or extend the existing protocol message format.
  • the second PE device may send a second ESI label allocation request message to the label management device, where the second ESI label allocation request message carries the identifier of the ES of the second PE device.
  • the label management device allocates an ESI label to the identifier of the ES of the second PE device, and sends a corresponding ESI label allocation response message to the first PE device and the second PE device, where each ESI label allocation response message carries the label management device.
  • the second PE device when the second PE device needs to forward the data packet to the first PE device and use the three-layer label scheme, the second PE device encapsulates the ESI label corresponding to the ES, and the first PE device can determine the data according to the ESI label.
  • the message is received from which ES of the second PE device.
  • the second ESI label allocation request message and each ESI label allocation response message may further carry the identifier of the VPN to which the ES of the second PE device belongs, so that when the network has different VPNs, the identifier of the VPN may be adopted. Make a distinction.
  • the first PE device may send a first ESI label allocation request message to the label management device, where the first ESI label allocation request message carries the identifier of the ES of the first PE device.
  • the label management device allocates an ESI label to the identifier of the ES of the first PE device, sends a first ESI label allocation response message to the first PE device, and sends a second ESI label allocation response message to the second PE device, where the first ESI label is assigned a response.
  • Both the message and the second ESI label assignment response message carry an ESI label assigned by the label management device to the identity of the ES of the first PE device.
  • the first PE device when the first PE device receives a data packet from a certain ES and needs to forward to the second PE device and uses the three-layer label scheme, the ESI label corresponding to the ES is encapsulated, and the second PE device can determine the data according to the ESI label.
  • the message is received from which ES of the first PE device.
  • the first ESI label allocation request message, The first ESI label allocation response message and the second ESI label allocation response message may also carry the identifier of the VPN to which the ES of the first PE device belongs, so that when the bearer network has different VPNs, the identifier of the VPN may be distinguished.
  • the first PE device allocates an ES routing information or an Ingress Replication mode multicast routing information to the second PE device, and assigns an identifier to the ES of the second PE device.
  • Different routing labels ES routing labels or multicast routing labels.
  • the first PE device may carry the identifier of the remote ES and the corresponding local ES identifier in the ES routing information, and the corresponding ES routing label.
  • the first PE device may carry the identifier of the remote ES, the multicast domain identifier, and the corresponding multicast routing label in the ingress replication mode multicast routing information.
  • the second PE device may encapsulate the routing label allocated by the first PE device to the ES of the second PE device to receive the data packet, to identify the The ES from which the data message originates and which ES(s) to forward from.
  • the first PE device may receive the second ES automatic discovery information sent by the second PE device, where the second ES automatic discovery information includes The identifier of the ES of the PE device may also include the identifier of the VPN to which the ES belongs. The identifier of the remote ES that can be found by the first PE device from the second ES automatic discovery information.
  • the first PE device may be pre-set with the identifier of the ES of the second PE device. It should be understood that the embodiments of the present invention are not limited thereto.
  • PE1 receives the ES auto-discovery information sent by the PE3, and finds that the two remote ESs, that is, the ES4 and the ES5, and the PE1 advertise the ES1 routing information or the ingress replication multicast routing information to the PE3.
  • ES4 and ES5 are assigned a different routing label.
  • the ES1 routing labels assigned to ES4 and ES5 are 1024 and 1025 respectively.
  • the ingress replication mode multicast routing labels assigned to ES4 and ES5 are 1124 and 1125 respectively.
  • PE1 advertises the assigned routing label information by advertising routing information to PE3.
  • the value of the ES route label encapsulated in the packet needs to be 1024 to identify the >3 ⁇ 4 text from the ES4. If the packet is sent from the ES5 and the packet is an unicast packet, the packet is encapsulated with the ingress reply. The value of the multicast routing label encapsulated in the packet is 1125. The message originates from ES5 and needs to be forwarded through all ESs of PE1 that belong to the same VPN (E-VPN A) as ES5.
  • E-VPN A VPN
  • the second PE device when the second PE device issues the ES routing information or the ingress replication mode multicast routing information to the first PE device, a different routing label is assigned to the identifier of each discovered remote ES.
  • the second PE device may carry the identifier of the remote ES and the corresponding local ES identifier, and the corresponding ES routing label, in the advertised ES routing information.
  • the second PE device may carry the identifier of the remote ES, the multicast domain identifier, and the corresponding multicast routing label in the ingress replication mode multicast routing information.
  • the second PE device When the first PE device needs to forward the data packet to the second PE device, the second PE device encapsulates the routing label assigned by the second PE device to the ES of the first PE device that receives the data packet, to identify the The ES from which the data message originates and which ES(s) to forward from.
  • the first PE device may send the first ES auto discovery information to the second PE device, so that the second PE device can discover which remote ES(s) are present.
  • the second PE device may be preset with the identifier of the ES of the first PE device. For the specific implementation, refer to the above example, and details are not described herein again.
  • the first PE device allocates a different routing label to the identifier of each local ES and sends the local end in the routing information when the multicast routing of the LSM mode is sent to the second PE device.
  • the identifier of the ES, the multicast domain ID, and the corresponding multicast routing label is sent to the second PE device.
  • the first PE device needs to perform the BUM data packet when the first PE device receives the data packet from the local ES and determines the BUM packet to be sent to the second PE device and is sent by using the LSM mode.
  • the encapsulated and encapsulated BUM packet carries the multicast routing label allocated by the first PE device to the local ES, to identify that the BUM data is originated from the local ES and needs to pass multiple ESs respectively.
  • the ES belongs to multiple ESs of the same VPN and forwards it out.
  • the first PE device receives the LSM mode multicast route sent by the second PE device, and the second PE device performs similar processing, and details are not described herein again.
  • PE3 when PE3 sends an LSM multicast route to PE1, it needs to assign a different route label to the local ES4 and ES5 and carry the local ES identifier and multicast in the routing information.
  • the domain ID and the corresponding multicast routing label (assuming that the routing labels assigned to ES4 and ES5 are 1024 and 1025, respectively).
  • the PE3 receives the data packet from the ES5 and determines that it is a BUM packet and sends it in the LSM mode, the PE3 needs to encapsulate the routing label 1025 to identify the data from the ES5.
  • the PE device exchanges the ES routing information, the multicast routing information, and the ESI label information (corresponding to the Layer 3 label scheme), or exchanges the ES automatic discovery information and the ES path.
  • the information and the multicast routing information (corresponding to the two-layer labeling scheme) enable the PE device to continuously obtain the encapsulation information required to reach the destination when forwarding the data packet to other PE devices, and also obtain which data packet the packet originates from.
  • the encapsulation information required by the ES so that the PE device can obtain the MAC address and the remote ES from the data plane using the label information encapsulated by the data packet when the PE device receives the packet from the remote PE device. Relationship. Therefore, the signaling overhead caused by exchanging MAC routes directly between the PE devices on the control plane is reduced, and the scalability of the control plane is greatly improved.
  • Figure 5 is a flow diagram of a method for an Ethernet virtual private network in accordance with one embodiment of the present invention.
  • the method of Figure 5 is performed by the PE device. And corresponds to the method of FIG. 3, and thus the description overlapping with the embodiment of FIG. 3 will be omitted as appropriate.
  • the second PE device encapsulates the second data packet, where the encapsulated second data packet carries the second label and the second source MAC address.
  • the second PE device sends the encapsulated second data packet to the first PE device, where the second label is used to indicate to the first PE device that the second data packet is the second PE device from the ES of the second PE device.
  • the received second encapsulated data packet is used to enable the first PE device to establish a correspondence between the ES of the second PE device and the second source MAC address.
  • the second PE device encapsulates the second data packet that is sent to the first PE device, and the encapsulated second data packet carries the second label and the second source MAC address.
  • the first PE device receives the encapsulated second data packet for remote MAC learning, and determines, according to the second label, that the second data packet is received by the second PE device from the ES of the second PE device, and establishes a second Correspondence between the ES of the PE device and the second source MAC address. That is, the first PE device performs remote MAC address learning through the data plane, that is, the correspondence between the remote ES and the remote MAC address is established. Therefore, the C-MAC information exchange is not required through the control plane, thereby reducing the signaling overhead on the control plane between the PE devices and improving the scalability of the control plane.
  • the multiple-homed link between the remote CE and the remote PE is regarded by the first PE as the same remote ES.
  • the local PE device can reach the remote ES through multiple different remote PEs through the ES route delivered by the control plane.
  • the remote CE can reach the local PE device through different PEs that are multi-homed. In this way, flow-based load sharing can be implemented in some scenarios (such as multi-homing scenario multi-active mode).
  • the second PE device may perform local MAC address learning according to the second data packet received from the ES of the second PE device, and establish an ES device of the second PE. Corresponding relationship between the identifier of the ES of the second PE device and the source MAC address carried by the second data packet.
  • the second PE device may exchange required control information with other PE devices before performing MAC learning through the data plane, so that the second PE device forwards the packet to the remote site.
  • the second PE device may exchange required control information with other PE devices before performing MAC learning through the data plane, so that the second PE device forwards the packet to the remote site.
  • FIG. 6 is a flow chart of a method for an Ethernet virtual private network in accordance with an embodiment of the present invention.
  • the method of Figure 6 is performed by the PE device. And corresponds to the method of FIG. 3, and thus the description overlapping with the embodiment of FIG. 3 will be omitted as appropriate.
  • the label management device receives the ESI label allocation request message sent by the first PE device, where the ESI label allocation request message carries the identifier of the ES of the first PE device.
  • the label management device allocates an ESI label to the identifier of the ES of the first PE device.
  • the label management device sends a first ESI label allocation response message to the first PE device, and sends a second ESI label allocation response message, a first ESI label allocation response message, and a second ESI label allocation response to the second PE device.
  • the message carries the assigned ESI label, and the allocated ESI label is used by the first PE device to encapsulate the data message received from the ES of the first PE device and needs to be forwarded, and the data message is indicated to the second PE device. It is the first PE device received from the ES of the first PE device.
  • the ESI label allocation request message, the first ESI label allocation response message, and the second identifier of the VPN to which the ES of the first PE device belongs may also be carried.
  • the label management device may be a route reflector, a PE device, a centralized controller of the SDN network, or the like.
  • the ESI label of each ES is allocated by the label management device.
  • the ESI label corresponding to the ES may be encapsulated. Indicates which ES the data packet originated from, and which ES of the remote remote PE device can receive.
  • FIG. 7 is a schematic structural diagram of a first PE device according to an embodiment of the present invention.
  • the first PE device 700 of FIG. 7 includes a receiving unit 701, a determining unit 702, and an establishing unit 703.
  • the receiving unit 701 is configured to receive a second data packet sent by the second PE device, where the second data packet carries the second label and the second source MAC address.
  • the determining unit 702 is configured to determine, according to the second label received by the receiving unit 701, that the second data packet is received by the second PE device from the ES of the second PE device.
  • the establishing unit 703 is configured to establish a correspondence between the ES of the second PE device determined by the determining unit 702 and the second source MAC address received by the receiving unit 701.
  • the first PE device performs the remote MAC address learning by using the received second data packet sent from the second PE device, that is, the ES of the second PE device and the second source MAC carried by the second data packet are established.
  • the correspondence of addresses That is to say, the first PE device learns the remote MAC address through the data plane, and establishes the correspondence between the remote ES and the remote MAC address. Therefore, the C-MAC information exchange is not required through the control plane, thereby reducing the signaling overhead on the control plane between the PE devices and improving the scalability of the control plane.
  • the multiple-homed link between the remote CE and the remote PE is regarded by the first PE as the same remote ES.
  • the local PE device can reach the remote ES through multiple different remote PEs through the ES route delivered by the control plane.
  • the remote CE can reach the local PE device through different PEs that are multi-homed. In this way, flow-based load sharing can be implemented in some scenarios (such as multi-homing scenario multi-active mode).
  • the first PE device 700 can implement the steps involved in the first PE device in the methods of FIG. 3 to FIG. 6. To avoid repetition, details are not described in detail.
  • the first PE device 700 may further include a first sending unit 704.
  • the first sending unit 704 is configured to forward the second data packet (which is a known unicast data packet) through the ES of the first PE device according to the second label received by the receiving unit 701.
  • the second label includes an ES routing label of the ES of the first PE device and an Ethernet segment identification ESI label of the ES of the second PE device (referred to as a “three-layer label scheme”), optionally, the first PE device
  • the ES routing label of the ES is advertised by the first PE device to the second PE device, and is used to indicate to the first PE device that the second data packet needs to be forwarded from an ES of the first PE device;
  • the ESI label of the ES is used to indicate to the first PE device that the second data message is received by the second PE device from the ES of the second PE device.
  • the second label is used to indicate to the first PE device that the second data packet is received by the second PE device from an ES of the second PE device and needs to be forwarded from an ES of the first PE device.
  • the "two-layer label scheme” For the "two-layer label scheme").
  • the first PE device 700 may further include a second sending unit 705, where the second sending unit 705 is configured to send the second data packet (for BUM data according to the second label received by the receiving unit 701.
  • the message is forwarded from multiple ESs of the first PE device.
  • the second label includes an ESI label (three-layer label scheme) for indicating a multicast routing label of the plurality of ESs of the first PE device and an ES of the second PE device.
  • the ESI label of the ES of the second PE device is used to indicate to the first PE device that the second data message is received by the second PE device from the ES of the second PE device.
  • the second label is used to indicate to the first PE device that the second data packet is received by the second PE device from a certain ES of the second PE device and needs to be forwarded from multiple ESs of the first PE device (two Layer labeling scheme).
  • the second data packet is sent by the second PE device through the Internet Protocol IP tunnel, and the second data packet further carries the IP address of the second PE device, and the determining unit 702 is specifically configured to: according to the second PE device The IP address and the ESI label of the ES of the second PE device determine that the second data message is received by the second PE device from the ES of the second PE device.
  • the receiving unit 701 is further configured to receive, by using the ES of the first PE, the first data packet sent by the CE device.
  • the establishing unit 703 is further configured to perform the local MAC address learning according to the first data packet received by the receiving unit 701, that is, the correspondence between the ES of the first PE and the first source MAC address carried by the first data packet.
  • the determining unit 702 is further configured to determine an outbound interface of the first data packet received by the receiving unit 701.
  • the first PE device further includes a third sending unit 706, and the third sending unit 706 is configured to forward the first data packet by using the outbound interface of the first data packet determined by the determining unit 702.
  • the first data packet is a unicast packet
  • the first PE device learns the first destination MAC address carried in the first data packet, that is, the first data is established before the first data packet is forwarded.
  • the third sending unit 706 is specifically configured to: when the outbound interface of the first data packet determined by the determining unit 702 is the first interface, the first destination MAC address and the outbound interface of the first data packet are An ES of the other ES of the PE device is forwarded through the outbound interface of the first data packet.
  • the third sending unit 706 is specifically configured to: after the outbound interface of the first data packet determined by the determining unit 702 is an ES of the second PE device, encapsulate the first data packet, and send the encapsulated to the second PE device
  • the first data packet, the encapsulated first data packet carries the first label.
  • the first label is used to indicate to the second PE device that the first data packet is received by the first PE device from the ES of the first PE device and needs to be forwarded through the ES of the second PE device.
  • the first label includes an ES routing label of the ES of the second PE device and an ESI label of the ES of the first PE device, and the ES routing label of the ES of the second PE device is issued by the second PE device to the first PE
  • the ESI label of the ES of the first PE device is used to indicate to the second PE device that the first data packet needs to be forwarded to the second PE device.
  • the text is received by the first PE device from the ES of the first PE device.
  • the first data packet is a broadcast or a multicast packet, or the first data packet is a unicast packet, and the first PE device forwards the first data packet before the first data packet is forwarded to the first data packet.
  • the first destination MAC address carried in the data packet is learned, that is, when the correspondence between the first destination MAC address carried in the first data packet and the outbound interface of the first data packet is not established, the data packet is also called For BUM data messages.
  • the determining unit 702 is further configured to: determine at least one target outbound interface for forwarding the first data packet.
  • the third sending unit 706 is specifically configured to: when the at least one target outbound interface determined by the determining unit 702 is an outbound interface of the first PE device, forward the first data packet by using at least one target outbound interface. Or the third sending unit 706 is specifically configured to: when the determining unit 702 determines that the at least one target outbound interface is multiple target outbound interfaces, and the multiple target outgoing interfaces are the outbound interfaces of the second PE device, the first data packet is used The first data packet that is encapsulated and encapsulated carries the first label, and is forwarded to the second PE device by using the public network tunnel, where the first label is used to indicate to the second PE device that the first data packet is the first PE device from the first The ES device receives the PE and needs to forward it through multiple ESs of the second PE device.
  • the first label includes a second multicast routing label indicating that the outbound interface of the first data packet is a plurality of ESs of the second PE device, and an ESI label of the ES of the first PE device, the second multicast
  • the routing label is used by the second PE device to determine that the first data packet needs to be forwarded by multiple ESs of the second PE device, and the ESI label of the ES of the first PE device is used to indicate the first data packet to the second PE device. It is the first PE device received from the ES of the first PE device.
  • the encapsulated first data packet may further carry an IP address of the first PE device, and the IP address of the first PE device and the ESI label of the ES of the first PE device are used to indicate the first to the second PE device.
  • the data message is received by the first PE device from the ES of the first PE device.
  • the receiving unit 701 is further configured to receive the first routing information (including the ES routing information or the multicast routing information) sent by the second PE device, where the first routing information carries the second PE device.
  • the logo of the ES Further, the establishing unit 703 is further configured to: allocate an ESI label to the identifier of the ES of the second PE device received by the receiving unit 701.
  • the first PE device further includes a fourth sending unit 707, where the fourth sending unit 707 is configured to send the second ESI label information to the second PE device, where the second ESI label information includes the identifier of the ES of the second PE device and the establishing unit 703 is The ESI label assigned to the identity of the ES of the second PE device.
  • the first PE device can also receive the multicast routing information sent by the second PE device.
  • the receiving unit 701 is further configured to receive third ESI label information sent by the second PE device, where the third ESI label information carries an IP address of the second PE device, and an ES of the second PE device.
  • the present invention does not limit the definition of the protocol message format carrying the third ESI tag information, and may define an independent protocol message format, or directly use or extend the existing protocol message format.
  • the receiving unit 701 is further configured to receive the second ES automatic discovery information sent by the second PE device, where the second ES automatic discovery information includes the identifier of the ES of the second PE device.
  • the first PE device may be pre-set with the identifier of the ES of the second PE device. It should be understood that the embodiments of the present invention are not limited thereto.
  • the establishing unit 702 is further configured to allocate a routing label to the identifier of the ES of the second PE device received by the receiving unit 701.
  • the first PE device further includes a fifth sending unit 709, configured to send, to the second PE device, the identifier of the ES including the second PE device and the route allocated by the establishing unit 703 to the identifier of the ES of the second PE device.
  • the routing information of the tag is not limited to a fifth sending unit 709, configured to send, to the second PE device, the identifier of the ES including the second PE device and the route allocated by the establishing unit 703 to the identifier of the ES of the second PE device. The routing information of the tag.
  • the first PE device further includes a sixth sending unit 710, where the sixth sending unit 710 is configured to send third routing information (including ES routing information or multicast routing) to the second PE device.
  • the third routing information carries the identifier of the ES of the first PE device.
  • the receiving unit 701 is further configured to receive the first ESI label information sent by the second PE device, where the first ESI label information includes the identifier of the ES of the first PE device and the identifier of the ES of the second PE device allocated by the second PE device. ESI label.
  • the first PE device can also send multicast routing information to the second PE device. For details, refer to the above.
  • the first PE device 700 may further include an eighth sending unit 712, where the eighth sending unit 712 is configured to send the first ES automatic discovery information to the second PE device, where the first ES automatic discovery information includes the first PE.
  • the first ES auto-discovery information is used to instruct the second PE device to allocate an ES routing label for the identifier of the ES of the first PE device.
  • the first PE device 700 may further include a storage unit 708, where the storage unit 708 is configured to store an ESI of each ES under each PE device and a corresponding ESI label, and the allocated ESI label can uniquely identify one ESI.
  • the ESI label can also be obtained through global dynamic configuration. That is, the ESI label is uniformly allocated by the label management device for the ES of each PE device, and the assigned ESI label can uniquely identify an ESI.
  • the label management device can It is a route reflector, it can also be a PE device, it can also be a centralized controller of SDN, and so on. It should be understood that the embodiment of the present invention does not limit the manner in which the PE device obtains routing information and ESI label information.
  • the second PE device may send a second ESI label allocation request message to the label management device, where the second ESI label allocation request message carries the identifier of the ES of the second PE device.
  • the label management device allocates an ESI label to the identifier of the ES of the second PE device, and sends a second ESI label allocation response message to the first PE device.
  • the receiving unit 701 is further configured to receive a second ESI label allocation response message sent by the label management device, where the second ESI label allocation response message carries an ESI label allocated by the label management device for the identifier of the ES of the second PE device.
  • the second PE device encapsulates the data packet that needs to be forwarded according to the ESI label, and the first PE device can determine, according to the ESI label, which ES of the second PE device the data packet is received.
  • the second ESI label allocation request message and the second ESI label allocation response message may further carry the identifier of the VPN to which the ES of the second PE device belongs, so that when the bearer network has different VPNs, the identifier of the VPN may be adopted. Make a distinction.
  • the first PE device 700 further includes a ninth sending unit 713, where the ninth sending unit 713 is configured to send fourth ESI label information to the second PE device, where the fourth ESI label information carries the IP address of the first PE device, The identifier of the ES of the first PE device and the ESI label assigned by the first PE device to the identifier of the ES of the first PE device.
  • the present invention does not limit the definition of the protocol message format carrying the fourth ESI tag information, and may define an independent protocol message format, or directly use or extend the existing protocol message format.
  • the first PE device device further includes a seventh sending unit 711, where the seventh sending unit 711 is configured to send a first ESI label allocation request message to the label management device, where the first ESI label allocation request message carries the first PE device The logo of the ES.
  • the receiving unit 701 is further configured to receive a first ESI label allocation response message sent by the label management device, where the first ESI label allocation response message carries the label management device to allocate an ESI label for the identifier of the ES of the first PE device.
  • the first PE device encapsulates the data message that needs to be forwarded according to the ESI label, and the second PE device can determine, according to the ESI label, which ES of the first PE device the data message is received.
  • the first ESI label allocation request message and the first ESI label allocation response message may further carry the identifier of the VPN to which the ES of the first PE device belongs, so that when the bearer network has different VPNs, the identifier of the VPN may be adopted. Make a distinction.
  • PE devices exchange ES routing information, multicast routing information, and The ESI label information (corresponding to the Layer 3 label scheme), or the exchange of the ES automatic discovery information, the ES routing information, and the multicast routing information (corresponding to the two-layer label scheme), so that the PE device continuously forwards data packets to other PE devices.
  • the information about the encapsulation required to reach the destination can be obtained, and the encapsulation information required by the ES from which the data packet is derived can be obtained, so that the PE device can encapsulate the data packet in the data plane when receiving the packet from the remote PE device.
  • the label information is obtained from which remote ES is derived from the packet, and the association between the MAC address and the remote ES is established. Therefore, the signaling overhead caused by exchanging MAC routes directly between the PE devices on the control plane is reduced, and the scalability of the control plane is greatly improved.
  • FIG. 8 is a schematic structural diagram of a second PE device according to an embodiment of the present invention.
  • the second PE device 800 of FIG. 8 includes a packaging unit 801 and a transmitting unit 802.
  • the encapsulating unit 801 is configured to encapsulate the second data packet, where the encapsulated second data packet carries the second label and the second source MAC address.
  • the sending unit 802 is configured to send, to the first PE device, the second data packet encapsulated by the encapsulating unit 801, where the second label is used to indicate to the first PE device that the second data packet is the second PE device from the second
  • the encapsulated second data packet received by the PE of the PE device is used to enable the first PE device to establish a correspondence between the ES of the second PE device and the second source MAC address.
  • the second PE device encapsulates the second data packet that is sent to the first PE device, and the encapsulated second data packet carries the second label and the second source MAC address.
  • the first PE device receives the encapsulated second data packet for remote MAC learning, and determines, according to the second label, that the second data packet is received by the second PE device from the ES of the second PE device, and establishes a second Correspondence between the ES of the PE device and the second source MAC address. That is, the first PE device performs remote MAC address learning through the data plane, that is, the correspondence between the remote ES and the remote MAC address is established. Therefore, the C-MAC information exchange is not required through the control plane, thereby reducing the signaling overhead on the control plane between the PE devices and improving the scalability of the control plane.
  • the multiple-homed link between the remote CE and the remote PE is regarded by the first PE as the same remote ES.
  • the local PE device can reach the remote ES through multiple different remote PEs through the ES route delivered by the control plane.
  • the remote CE can reach the local PE device through different PEs that are multi-homed. In this way, flow-based load sharing can be implemented in some scenarios (such as multi-homing scenario multi-active mode).
  • the second PE device 800 can implement the steps involved in the second PE device in the methods of FIG. 3 to FIG. 6. To avoid repetition, details are not described in detail. It should be understood that the second PE device 800 may also have the function of the first PE device. For specific implementations, reference may be made to the foregoing, and details are not described herein again.
  • FIG. 9 is a schematic structural diagram of a tag management device according to an embodiment of the present invention.
  • the tag management device 900 of FIG. 9 includes a receiving unit 901, an allocating unit 902, and a transmitting unit 903.
  • the receiving unit 901 is configured to receive an ESI label allocation request message sent by the first PE device, where the ESI label allocation request message carries an identifier of the ES of the first PE device.
  • the allocating unit 902 is configured to allocate an ESI label to the identifier of the ES of the first PE device received by the receiving unit 901.
  • the sending unit 903 is configured to send a first ESI label allocation response message to the first PE device, and send a second ESI label allocation response message to the second PE device, where the first ESI label allocation response message and the second ESI label allocation response message are both Carrying the ESI label allocated by the allocating unit 902, the allocated ESI label is used by the first PE device to encapsulate the data packet to be forwarded, and the second PE device is instructed to indicate that the data packet is the ES of the first PE device from the first PE device. Received on.
  • the tag management device 900 can implement the steps involved in the tag management device in the methods of FIGS. 3 to 6, and will not be described in detail in order to avoid redundancy.
  • the ESI label allocation request message, the first ESI label allocation response message, and the second ESI label allocation response message may further carry the identifier of the VPN to which the ES of the first PE device belongs.
  • the label management device may be a route reflector, a PE device, a centralized controller of the SDN network, or the like.
  • the ESI label of each ES is allocated by the label management device.
  • the ESI label corresponding to the ES may be encapsulated. Indicates which ES the data packet originated from, and which ES of the remote remote PE device can receive.
  • FIG. 10 illustrates an embodiment of a device in which device 1000 includes a processor 1001, a memory 1002, a transmitter 1003, and a receiver 1004.
  • the processor 1001 controls the operation of the device 1000.
  • the processor 1001 may also be referred to as a CPU (Central Processing Unit).
  • the memory 1002 can include read only memory and random access memory and provides instructions and data to the processor 1001.
  • a portion of the memory 1002 may also include non-volatile random rows Access memory (NVRAM).
  • NVRAM non-volatile random rows Access memory
  • the processor 1001, the memory 1002, the transmitter 1003 and the receiver 1004 are coupled together by a bus system 1010, wherein the bus system 1010 includes a power bus, a control bus, and a status signal bus in addition to the data bus.
  • bus system 1010 includes a power bus, a control bus, and a status signal bus in addition to the data bus.
  • various buses are labeled as bus system 1010 in the figure.
  • the above-described device 1000 can be applied to the method disclosed in the above embodiments of the present invention.
  • the processor 1001 may be an integrated circuit chip with signal processing capability.
  • each step of the above method may be completed by an integrated logic circuit of hardware in the processor 1001 or an instruction in the form of software.
  • FIG. 11 is a schematic structural diagram of a first PE device according to another embodiment of the present invention.
  • the first PE device 1100 of Figure 11 includes a receiver 1101 and a processor 1102.
  • the receiver 1101 is configured to receive a second data packet sent by the second PE device, where the second data packet carries the second label and the second source MAC address.
  • the processor 1102 is configured to determine, according to the second label received by the receiver 1101, that the second data packet is received by the second PE device from the ES of the second PE device, and establish the determined ES and receiver 1101 of the second PE device. Correspondence of the received second source MAC address.
  • the first PE device performs the remote MAC address learning by using the received second data packet sent from the second PE device, that is, the ES of the second PE device and the second source MAC carried by the second data packet are established.
  • the correspondence of addresses That is to say, the first PE device learns the remote MAC address through the data plane, and establishes the correspondence between the remote ES and the remote MAC address. Therefore, the C-MAC information exchange is not required through the control plane, thereby reducing the signaling overhead on the control plane between the PE devices and improving the scalability of the control plane.
  • the multiple-homed link between the remote CE and the remote PE is regarded by the first PE as the same remote ES.
  • the local PE device can reach the remote ES through multiple different remote PEs through the ES route delivered by the control plane.
  • the remote CE can reach the local PE device through different PEs that are multi-homed. In this way, flow-based load sharing can be implemented in some scenarios (such as multi-homing scenario multi-active mode).
  • the first PE device 1100 can implement various steps involved in the first PE device in the methods in FIG. 3 to FIG. 6. To avoid repetition, details are not described in detail.
  • the first PE device 1100 may further include a transmitter 1103.
  • the transmitter 1103 is configured to forward the second data packet (which is a known unicast data packet) through the ES of the first PE device according to the second label received by the receiver 1101.
  • the second label includes an ES routing label of the ES of the first PE device and an Ethernet segment identification ESI label of the ES of the second PE device (referred to as a “three-layer label scheme”), optionally, the first PE device
  • the ES routing label of the ES is advertised by the first PE device to the second PE device, and is used to indicate to the first PE device that the second data packet needs to be forwarded from an ES of the first PE device;
  • the ESI label of the ES is used to indicate to the first PE device that the second data message is received by the second PE device from the ES of the second PE device.
  • the second label is used to indicate to the first PE device that the second data packet is received by the second PE device from an ES of the second PE device and needs to be forwarded from an ES of the first PE device.
  • the "two-layer label scheme” For the "two-layer label scheme").
  • the transmitter 1103 is further configured to separately send the second data packet (for the BUM data packet) from the multiple ESs of the first PE device according to the second label received by the receiver 1101. Forward.
  • the second label includes an ESI label (a three-layer label scheme) for indicating a plurality of ES multicast routing labels of the first PE device and an ES of the second PE device.
  • the ESI label of the ES of the second PE device is used to indicate to the first PE device that the second data packet is received by the second PE device from the ES of the second PE device.
  • the second label is used to indicate to the first PE device that the second data packet is received by the second PE device from a certain ES of the second PE device and needs to be forwarded from multiple ESs of the first PE device (two Layer labeling scheme).
  • the second data packet is sent by the second PE device through the Internet Protocol IP tunnel, and the second data packet further carries the IP address of the second PE device, where the processor 1102 is specifically configured to: according to the second PE device The IP address and the ESI label of the ES of the second PE device determine that the second data message is received by the second PE device from the ES of the second PE device.
  • the receiver 1101 is further configured to receive, by using the ES of the first PE, the first data packet sent by the CE device.
  • the processor 1102 is further configured to perform the local MAC address learning according to the first data packet received by the receiver 1101, that is, the correspondence between the ES of the first PE and the first source MAC address carried by the first data packet. Further, the processor 1102 is specifically configured to determine an outbound interface of the first data packet received by the receiver 1101.
  • the transmitter 1103 is further configured to forward the first data packet by using an outbound interface of the first data packet determined by the processor 1102.
  • the first data packet is a unicast packet
  • the first PE device learns the first destination MAC address carried in the first data packet, that is, the first data is established before the first data packet is forwarded.
  • the sender 1103 is specifically configured to: use the first datagram determined by the processor 1102.
  • the outgoing interface of the packet is one of the other ESs of the first PE device, and is forwarded through the outbound interface of the first data packet.
  • the transmitter 1103 is specifically configured to: when the outbound interface of the first data packet determined by the processor 1102 is an ES of the second PE device, encapsulate the first data packet, and send the encapsulated first to the second PE device A data packet, the encapsulated first data packet carries the first label.
  • the first label is used to indicate to the second PE device that the first data packet is received by the first PE device from the ES of the first PE device and needs to be forwarded through the ES of the second PE device.
  • the first label includes an ES routing label of the ES of the second PE device and an ESI label of the ES of the first PE device, and the ES routing label of the ES of the second PE device is issued by the second PE device to the first PE
  • the ESI label of the ES of the first PE device is used to indicate to the second PE device that the first data packet is the first PE.
  • the device is received from the ES of the first PE device.
  • the first data packet is a broadcast or a multicast packet, or the first data packet is a unicast packet, and the first PE device forwards the first data packet before the first data packet is forwarded to the first data packet.
  • the first destination MAC address carried in the data packet is learned, that is, when the correspondence between the first destination MAC address carried in the first data packet and the outbound interface of the first data packet is not established, the data packet is also called For BUM data messages.
  • the processor 1102 is further configured to: determine at least one target outbound interface for forwarding the first data packet.
  • the transmitter 1103 is specifically configured to: when the at least one target outbound interface determined by the processor 1102 is an outbound interface of the first PE device, forward the first data packet by using at least one target outbound interface. Or, the transmitter 1103 is specifically configured to: when the processor 1102 determines that the at least one target outbound interface is a plurality of target outbound interfaces, and the multiple target outbound interfaces are the outbound interfaces of the second PE device, the first data packet is encapsulated The encapsulated first data packet carries the first label, and is forwarded to the second PE device by using the public network tunnel. The first label is used to indicate to the second PE device that the first data packet is the first PE device from the first PE device. Received on the ES and needs to be forwarded through multiple ESs of the second PE device.
  • the first label includes a second multicast routing label indicating that the outbound interface of the first data packet is a plurality of ESs of the second PE device, and an ESI label of the ES of the first PE device, the second multicast
  • the routing label is used by the second PE device to determine that the first data packet needs to be forwarded by multiple ESs of the second PE device, and the ESI label of the ES of the first PE device is used to indicate the first data packet to the second PE device. It is the first PE device received from the ES of the first PE device.
  • the encapsulated first data packet may further carry an IP address of the first PE device, where The IP address of a PE device and the ESI label of the ES of the first PE device are used to indicate to the second PE device that the first data message is received by the first PE device from the ES of the first PE device.
  • the receiver 1101 may be further configured to receive first routing information (including ES routing information or multicast routing information) sent by the second PE device, where the first routing information carries the second PE device.
  • the logo of the ES Further, the processor 1102 is further configured to: allocate an ESI label to the identifier of the ES of the second PE device received by the receiver 1101.
  • the transmitter 1103 is further configured to send the second ESI label information to the second PE device, where the second ESI label information includes an identifier of the ES of the second PE device and an ESI label allocated by the processor 1102 for the identifier of the ES of the second PE device.
  • the first PE device can also receive the multicast routing information sent by the second PE device. For details, refer to the foregoing.
  • the receiver 1101 may be further configured to receive third ESI label information sent by the second PE device, where the third ESI label information carries an IP address of the second PE device, and an ES of the second PE device.
  • the present invention does not limit the definition of the protocol message format carrying the third ESI tag information, and may define an independent protocol message format, or directly use or extend the existing protocol message format.
  • the receiver 1101 is further configured to receive second ES automatic discovery information sent by the second PE device, where the second ES automatic discovery information includes an identifier of the ES of the second PE device.
  • the first PE device may be pre-set with the identifier of the ES of the second PE device. It should be understood that the embodiments of the present invention are not limited thereto.
  • the processor 1102 is further configured to allocate a routing label to the identifier of the ES of the second PE device received by the receiver 1101.
  • the transmitter 1103 is further configured to send, to the second PE device, routing information including an identifier of the ES of the second PE device and a routing label allocated by the processor 1102 to the identifier of the ES of the second PE device.
  • the transmitter 1103 is further configured to send third routing information (including ES routing information or multicast routing information) to the second PE device, where the third routing information carries the ES of the first PE device.
  • logo The receiver 1101 may be further configured to receive the first ESI label information sent by the second PE device, where the first ESI label information includes an identifier of the ES of the first PE device sent by the transmitter 1103, and the second PE device is the first PE device. The ESI label assigned by the ES's identity.
  • the first PE device can also send multicast routing information to the second PE device. For details, refer to the above, and no further details are provided here.
  • the transmitter 1103 is further configured to send the first ES automatic discovery to the second PE device.
  • the information that the first ES auto-discovery information includes the identifier of the ES of the first PE device and the identifier of the VPN to which the ES of the first PE device belongs.
  • the first ES auto-discovery information is used to indicate that the second PE device is the ES of the first PE device.
  • the identity of the assigned ES routing label is further configured to send the first ES automatic discovery to the second PE device.
  • the first PE device 1100 may further include a memory 1104, configured to store a preset ESI of each ES under each PE device and a corresponding ESI label, where the allocated ESI label can uniquely identify an ESI.
  • the ESI label can also be obtained through global dynamic configuration. That is, the ESI label is assigned by the label management device to the ES of each PE device, and the assigned ESI label can uniquely identify an ESI.
  • the label management device may be a route reflector, a PE device, a centralized controller of the SDN, and the like. It should be understood that the manner in which the PE device obtains the routing information and the ESI label information is not limited in the embodiment of the present invention.
  • the second PE device may send a second ESI label allocation request message to the label management device, where the second ESI label allocation request message carries the identifier of the ES of the second PE device.
  • the label management device allocates an ESI label to the identifier of the ES of the second PE device, and sends a second ESI label allocation response message to the first PE device and the second PE device.
  • the receiver 1101 is further configured to receive a second ESI label allocation response message sent by the label management device, where the second ESI label allocation response message carries an ESI label allocated by the label management device for the identifier of the ES of the second PE device.
  • the second PE device encapsulates the data packet that needs to be forwarded according to the ESI label, and the first PE device can determine, according to the ESI label, which ES of the second PE device the data packet is received.
  • the second ESI label allocation request message and the second ESI label allocation response message may further carry the identifier of the VPN to which the ES of the second PE device belongs, so that when the bearer network has different VPNs, the identifier of the VPN may be adopted. Make a distinction.
  • the transmitter 1103 is further configured to send fourth ESI label information to the second PE device, where the fourth ESI label information carries an IP address of the first PE device, an identifier of the ES of the first PE device, and the The first PE device is an ESI label assigned to the identifier of the ES of the first PE device.
  • the present invention does not limit the definition of the protocol message format carrying the fourth ESI tag information, and may define an independent protocol message format, or directly use or extend the existing protocol message format.
  • the first ESI label allocation request message carries the identifier of the ES of the first PE device.
  • the receiver 1101 may be further configured to receive a first ESI label allocation response message sent by the label management device, where the first ESI label allocation response message carries the label management device as an ES of the first PE device.
  • the identity is assigned to the ESI tag.
  • the first PE device encapsulates the data message that needs to be forwarded according to the ESI label, and the second PE device can determine, according to the ESI label, which ES of the first PE device the data message is received.
  • the first ESI label allocation request message and the first ESI label allocation response message may further carry the identifier of the VPN to which the ES of the first PE device belongs, so that when the network has different VPNs, the VPN may be The identification is differentiated.
  • the PE device exchanges ES routing information, multicast routing information, and ESI label information (corresponding to a Layer 3 label scheme), or exchanges ES automatic discovery information, ES routing information, and multicast routing information (corresponding to two layers).
  • the labeling scheme enables the PE device to continuously obtain the encapsulation information required to reach the destination when forwarding the data packet to the other PE device, and also obtain the encapsulation information required for the ES from which the data packet originates, thereby making the PE
  • the device can use the label information encapsulated in the data packet to obtain the remote ES from which the packet originates, and establish the association between the MAC address and the remote ES. Therefore, the signaling overhead caused by exchanging MAC routes directly between the PE devices on the control plane is reduced, and the scalability of the control plane is greatly improved.
  • FIG. 12 is a schematic structural diagram of a second PE device according to another embodiment of the present invention.
  • the second PE device 1200 of Figure 12 includes a processor 1201 and a transmitter 1202.
  • the processor 1201 is configured to encapsulate the second data packet, where the encapsulated second data packet carries the second label and the second source MAC address.
  • the transmitter 1202 is configured to send, to the first PE device, a second data packet encapsulated by the processor 1201, where the second label is used to indicate to the first PE device that the second data packet is the second PE device from the second
  • the second source MAC address received by the PE of the PE device is used by the first PE device to establish a correspondence between the ES of the second PE device and the second source MAC address.
  • the second PE device encapsulates the second data packet that is sent to the first PE device, and the encapsulated second data packet carries the second label and the second source MAC address.
  • the first PE device receives the encapsulated second data packet for remote MAC learning, and determines, according to the second label, that the second data packet is received by the second PE device from the ES of the second PE device, and establishes a second Correspondence between the ES of the PE device and the second source MAC address. That is, the first PE device performs remote MAC address learning through the data plane, that is, the correspondence between the remote ES and the remote MAC address is established. Therefore, the C-MAC information exchange is not required through the control plane, thereby reducing the signaling overhead on the control plane between the PE devices and improving the scalability of the control plane.
  • the multi-homing between the remote CE and the remote PE The path is considered by the first PE device to be the same remote ES.
  • the local PE device can reach the remote ES through multiple different remote PEs through the ES route delivered by the control plane.
  • the remote CE can reach the local PE device through multiple PEs that are multi-homed. In this way, flow-based load sharing in certain scenarios (such as multi-homing scenario multi-active mode) can be implemented.
  • the second PE device 1200 can implement the steps involved in the second PE device in the methods of FIG. 3 to FIG. 6. To avoid repetition, details are not described in detail.
  • the second PE device 1200 may also have the function of the first PE device.
  • FIG. 13 is a schematic structural diagram of a tag management device according to an embodiment of the present invention.
  • the tag management device 1300 of FIG. 13 includes a receiver 1301, a processor 1302, and a transmitter 1303.
  • the receiver 1301 is configured to receive an ESI label allocation request message sent by the first PE device, where the ESI label allocation request message carries an identifier of the ES of the first PE device.
  • the processor 1302 is further configured to allocate an ESI label to the identifier of the ES of the first PE device received by the receiver 1301.
  • the transmitter 1303 is configured to send a first ESI label allocation response message to the first PE device, and send a second ESI label allocation response message to the second PE device, where the first ESI label allocation response message and the second ESI label allocation response message are both Carrying the assigned ESI label, the allocated ESI label is used by the first PE device to encapsulate the data message to be forwarded, and the second PE device is indicated that the data message is received by the first PE device from the ES of the first PE device. .
  • the tag management device 1300 can implement the steps involved in the tag management device in the methods of Figs. 3 to 6, and will not be described in detail in order to avoid redundancy.
  • the ESI label allocation request message, the first ESI label allocation response message, and the second ESI label allocation response message may further carry the identifier of the VPN to which the ES of the first PE device belongs.
  • the label management device may be a route reflector, a PE device, a centralized controller of the SDN network, or the like.
  • the ESI label of each ES is allocated by the label management device.
  • the ESI label corresponding to the ES may be encapsulated. Indicates which ES the data packet originated from, and which ES of the remote remote PE device can receive.
  • the disclosed systems, devices, and methods may be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not executed.
  • the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical, mechanical or otherwise.
  • the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the functions may be stored in a computer readable storage medium if implemented in the form of a software functional unit and sold or used as a standalone product.
  • the technical solution of the present invention which is essential to the prior art or part of the technical solution, may be embodied in the form of a software product stored in a storage medium, including
  • the instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and the like, which can store program codes. .

Landscapes

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

Abstract

本发明实施例提供一种用于以太虚拟专用网的方法和设备,该方法包括:第一提供商边缘PE设备接收第二PE设备发送的第二数据报文,所述第二数据报文携带第二标签和第二源媒体接入控制MAC地址;所述第一PE设备根据所述第二标签确定所述第二数据报文是所述第二PE设备从所述第二PE设备的以太网段ES上接收的,建立所述第二PE设备的ES和所述第二源MAC地址的对应关系。本端PE基于ES通过数据面实现远端站点MAC地址学习,无需通过控制平面进行C-MAC信息的交换,从而减少了PE设备之间在控制平面上的信令开销,提高控制平面的可扩展性。

Description

用于以太虚拟专用网的方法和设备 技术领域
本发明实施例涉及通信技术领域, 并且更具体地, 涉及用于以太虚拟专 用网的方法和设备。 背景技术
以太虚拟专用网( Virtual Private Network, VPN )指跨因特网协议( Internet Protocol, IP ) /多协议标签交换( Multi Protocol Label Switch, MPLS )承载 网将不同地域的客户站点 (Site )连接起来, 使这些站点能像同一个局域网
( Local Area Net, LAN )那样工作。 承载网上连接客户站点并提供 VPN服 务的边缘设备称为提供商边缘(Provider Edge, PE )设备, 而以太 VPN技 术的关键在于: PE设备如何完成媒体接入控制 (Medium Access Control, MAC ) 学习和报文转发。
现有机制, 在基于边界网关协议(Border GateWay Protocol, BGP )和 MPLS的以太 VPN技术中,本端 PE设备通过数据平面进行本端站点的 MAC 学习, 即由本端 PE根据收到的本端站点发送的数据报文获得 MAC可达信 息。 而本端 PE设备对远端站点的 MAC学习是由控制平面通过 BGP信令来 完成的。但是, 对同一 E-VPN中的每个客户 MAC ( C-MAC )都会发布 BGP 信令, 并且路由会扩散到同一个 E-VPN 中的所有 PE设备上, 其中同一个 E-VPN下的客户站点像同一个 LAN那样工作 (也称为一个以太 VPN实例
( Ethernet VPN Instance, EVI ) )。 因此, 在网络规模很大时, 会因 C-MAC 路由导致信令开销成爆炸式的增长, 降低控制平面的可扩展性。 发明内容
本发明实施例提供一种用于以太虚拟专用网的方法和设备, 能够实现基 于流的负载分担, 并减少信令开销, 提高控制平面的可扩展性。
第一方面, 提供了一种用于以太虚拟专用网的方法, 该方法包括第一提 供商边缘 PE设备接收第二 PE设备发送的第二数据报文, 所述第二数据报 文携带第二标签和第二源媒体接入控制 MAC地址; 所述第一 PE设备根据 所述第二标签确定所述第二数据报文是所述第二 PE设备从所述第二 PE设 备的以太网段 ES上接收的,建立所述第二 PE设备的 ES和所述第二源 MAC 地址的对应关系。
结合第一方面, 在第一方面的另一种实现方式中, 所述第一 PE设备根 据所述第二标签将所述第二数据报文通过所述第一 PE设备的 ES进行转发。
结合第一方面或其上述实现方式中的任一种实现方式,在第一方面的另 一种实现方式中,所述第二标签包括所述第一 PE设备的 ES的 ES路由标签, 所述第一 PE设备根据所述第二标签将所述第二数据报文通过所述第一 PE 设备的 ES进行转发, 包括: 所述第一 PE设备根据所述第一 PE设备的 ES 的 ES路由标签将所述第二数据报文通过所述第一 PE设备的 ES进行转发, 所述第一 PE设备的 ES的 ES路由标签是由所述第一 PE设备接收所述第二 数据报文前发布给所述第二 PE设备的。
结合第一方面或其上述实现方式中的任一种实现方式,在第一方面的另 一种实现方式中, 所述第一 PE设备根据所述第二标签将所述第二数据报文 分别通过所述第一 PE设备的多个 ES进行转发。
结合第一方面或其上述实现方式中的任一种实现方式,在第一方面的另 一种实现方式中, 所述第二标签包括用于指示所述第二数据报文的出接口为 所述第一 PE设备的多个 ES的第一组播路由标签, 所述第一 PE设备根据所 述第二标签将所述第二数据报文分别通过所述第一 PE设备的多个 ES进行 转发, 包括: 所述第一 PE设备根据所述第一组播路由标签将所述第二数据 报文分别通过所述第一 PE设备的多个 ES进行转发。
结合第一方面或其上述实现方式中的任一种实现方式,在第一方面的另 一种实现方式中, 所述第二标签包括所述第二 PE设备的 ES的以太网段标 识 ESI标签, 所述第一 PE设备根据所述第二标签确定所述第二数据报文是 所述第二 PE设备从所述第二 PE设备的以太网段 ES上接收的, 包括: 所述 第一 PE设备根据所述第二 PE设备的 ES的 ESI标签确定所述第二数据报文 是所述第二 PE设备从所述第二 PE设备的 ES上接收的。
结合第一方面或其上述实现方式中的任一种实现方式,在第一方面的另 一种实现方式中, 所述第二数据报文是由所述第二 PE设备经因特网协议 IP 隧道发送的, 所述第二数据报文还携带所述第二 PE设备的 IP地址, 所述第 一 PE设备根据所述第二标签确定所述第二数据报文是所述第二 PE设备从 所述第二 PE设备的以太网段 ES上接收的, 包括: 所述第一 PE设备根据所 述第二 PE设备的 IP地址和所述第二 PE设备的 ES的 ESI标签确定所述第 二数据报文是所述第二 PE设备从所述第二 PE设备的 ES上接收的。
结合第一方面或其上述实现方式中的任一种实现方式,在第一方面的另 一种实现方式中, 所述第一 PE设备从所述第一 PE的 ES上接收客户边缘 CE设备发送的第一数据报文;所述第一 PE设备根据所述第一数据报文建立 所述第一 PE的 ES和所述第一数据报文携带的第一源 MAC地址的对应关 系。
结合第一方面或其上述实现方式中的任一种实现方式,在第一方面的另 一种实现方式中, 所述第一 PE设备确定所述第一数据报文的出接口, 将所 述第一数据报文通过所述第一数据报文的出接口进行转发。
结合第一方面或其上述实现方式中的任一种实现方式,在第一方面的另 一种实现方式中, 在所述第一数据报文为单播报文且所述第一 PE设备将所 述第一数据报文进行转发前已建立所述第一数据报文携带的第一目的 MAC 地址与所述第一数据报文的出接口的对应关系的情况下, 当所述第一 PE设 备确定的所述第一数据报文的出接口为所述第一 PE设备的其它 ES 中的一 个 ES, 则通过所述第一数据报文的出接口进行转发; 当所述第一 PE设备确 定的所述第一数据报文的出接口是所述第二 PE设备的 ES,则对所述第一数 据报文进行封装, 向所述第二 PE设备发送所述封装后的第一数据报文, 所 述封装后的第一数据报文携带第一标签; 所述第一标签用于向所述第二 PE 设备指示所述第一数据报文是所述第一 PE设备从所述第一 PE设备的 ES上 接收的并需要通过所述第二 PE设备的 ES转发出去。
结合第一方面或其上述实现方式中的任一种实现方式,在第一方面的另 一种实现方式中, 所述第一标签包括所述第二 PE设备的 ES的 ES路由标签 和所述第一 PE设备的 ES的 ESI标签, 所述第二 PE设备的 ES的 ES路由 标签由所述第二 PE设备用于确定所述第一数据报文需要通过所述第二 PE 设备的 ES进行转发, 且所述第二 PE设备的 ES的 ES路由标签是由所述第 二 PE设备在所述第一 PE设备将所述第一数据报文进行转发前发布给所述 第一 PE设备的, 所述第一 PE设备的 ES的 ESI标签用于向所述第二 PE设 备指示所述第一数据报文是所述第一 PE设备从所述第一 PE设备的 ES上接 收的。
结合第一方面或其上述实现方式中的任一种实现方式,在第一方面的另 一种实现方式中, 在所述第一数据报文为广播或组播报文的情况下, 或者在 所述第一数据报文为单播报文且所述第一 PE设备将所述第一数据报文进行 转发前未建立所述第一数据报文携带的第一目的 MAC地址与所述第一数据 报文的出接口的对应关系的情况下, 所述第一 PE设备确定用于转发所述第 一数据报文的至少一个目标出接口; 当所述至少一个目标出接口是所述第一 PE设备的出接口,则所述第一 PE设备将所述第一数据报文通过所述至少一 个目标出接口进行转发; 或者当所述至少一个目标出接口是多个目标出接 口, 并且所述多个目标出接口是所述第二 PE设备的出接口, 则对所述第一 数据报文进行封装, 所述封装后的第一数据报文携带第一标签, 经由公网隧 道转发给所述第二 PE设备, 所述第一标签用于向所述第二 PE设备指示所 述第一数据报文是第一 PE设备从所述第一 PE设备的 ES上接收的并需要通 过所述第二 PE设备的多个 ES进行转发。
结合第一方面或其上述实现方式中的任一种实现方式,在第一方面的另 一种实现方式中, 所述第一标签包括用于指示所述第一数据报文的出接口为 所述第二 PE设备的多个 ES的第二组播路由标签和所述第一 PE设备的 ES 的 ESI标签, 所述第二组播路由标签由所述第二 PE设备用于确定所述第一 数据报文需要通过所述第二 PE设备的多个 ES进行转发, 所述第一 PE设备 的 ES的 ESI标签用于向所述第二 PE设备指示所述第一数据报文是所述第 一 PE设备从所述第一 PE设备的 ES上接收的。
结合第一方面或其上述实现方式中的任一种实现方式,在第一方面的另 一种实现方式中, 所述封装后的第一数据报文还携带所述第一 PE设备的 IP 地址, 所述第一 PE设备的 IP地址和所述第一 PE设备的 ES的 ESI标签用 于向所述第二 PE设备指示所述第一数据报文是所述第一 PE设备从所述第 一 PE设备的 ES上接收的。
结合第一方面或其上述实现方式中的任一种实现方式,在第一方面的另 一种实现方式中, 在第一 PE设备接收第二 PE设备发送的第二数据报文之 前, 所述方法还包括: 所述第一 PE设备接收所述第二 PE设备发送的第一 路由信息, 所述第一路由信息携带所述第二 PE设备的 ES的标识。
结合第一方面或其上述实现方式中的任一种实现方式,在第一方面的另 一种实现方式中, 所述第一 PE设备为所述第二 PE设备的 ES的标识分配 ESI标签; 所述第一 PE设备向所述第二 PE设备发送第二 ESI标签信息, 所 述第二 ESI标签信息包括所述第二 PE设备的 ES的标识及所述第一 PE设备 为所述第二 PE设备的 ES的标识分配的 ESI标签。
结合第一方面或其上述实现方式中的任一种实现方式,在第一方面的另 一种实现方式中, 在第一 PE设备接收第二 PE设备发送的第二数据报文之 前, 所述方法还包括: 所述第一 PE设备接收所述第二 PE设备发送的第三 ESI标签信息, 所述第三 ESI标签信息携带所述第二 PE设备的 IP地址、 所 述第二 PE设备的 ES的标识以及所述第二 PE设备为所述第二 PE设备的 ES 的标识所分配的 ESI标签。
结合第一方面或其上述实现方式中的任一种实现方式,在第一方面的另 一种实现方式中, 在第一 PE设备接收第二 PE设备发送的第二数据报文之 前, 所述方法还包括: 所述第一 PE设备接收标签管理设备发送的第二 ESI 标签分配响应消息, 所述第二 ESI标签分配响应消息携带所述标签管理设备 为所述第二 PE设备的 ES的标识分配的 ESI标签。
结合第一方面或其上述实现方式中的任一种实现方式,在第一方面的另 一种实现方式中, 所述第一 PE设备预先设置有所述第二 PE设备的 ES的标 识及对应的 ESI标签。
结合第一方面或其上述实现方式中的任一种实现方式,在第一方面的另 一种实现方式中, 在第一 PE设备接收第二 PE设备发送的第二数据报文之 前, 所述方法还包括: 所述第一 PE设备为所述第二 PE设备的 ES的标识分 配 ES路由标签; 所述第一 PE设备向所述第二 PE设备发送包括所述第二 PE设备的 ES的标识以及所述第一 PE设备为所述第二 PE设备的 ES的标识 分配的 ES路由标签的路由信息。
结合第一方面或其上述实现方式中的任一种实现方式,在第一方面的另 一种实现方式中,在所述第一 PE设备为所述第二 PE设备的 ES的标识分配 ES路由标签之前, 所述第一 PE设备接收第二 PE设备发送的第二 ES 自动 发现信息, 所述第二 ES自动发现信息包括所述第二 PE设备的 ES的标识和 所述第二 PE设备的 ES所属的 VPN的标识。
结合第一方面或其上述实现方式中的任一种实现方式,在第一方面的另 一种实现方式中, 在第一 PE设备接收第二 PE设备发送的第二数据报文之 前, 所述方法还包括: 所述第一 PE设备向所述第二 PE设备发送第三路由 信息, 所述第三路由信息携带所述第一 PE设备的 ES的标识。 结合第一方面或其上述实现方式中的任一种实现方式,在第一方面的另 一种实现方式中, 所述方法还包括: 所述第一 PE设备接收所述第二 PE设 备发送的第一 ESI标签信息, 所述第一 ESI标签信息包括所述第一 PE设备 的 ES的标识及所述第二 PE设备为所述第一 PE设备的 ES的标识分配的 ESI 标签。
结合第一方面或其上述实现方式中的任一种实现方式,在第一方面的另 一种实现方式中, 在所述第一 PE设备接收第二 PE设备发送的第二数据报 文之前, 所述方法还包括: 所述第一 PE设备向所述第二 PE设备发送第四 ESI标签信息, 所述第四 ESI标签信息携带所述第一 PE设备的 IP地址、 所 述第一 PE设备的 ES的标识以及所述第一 PE设备为所述第一 PE设备的 ES 的标识所分配的 ESI标签。
结合第一方面或其上述实现方式中的任一种实现方式,在第一方面的另 一种实现方式中, 在第一 PE设备接收第二 PE设备发送的第二数据报文之 前, 所述方法还包括: 所述第一 PE设备向标签管理设备发送第一 ESI标签 分配请求消息,所述第一 ESI标签分配请求消息携带所述第一 PE设备的 ES 的标识; 所述第一 PE设备接收所述标签管理设备发送的第一 ESI标签分配 响应消息, 所述第一 ESI标签分配响应消息携带所述标签管理设备为所述第 一 PE设备的 ES的标识分配的 ESI标签。
结合第一方面或其上述实现方式中的任一种实现方式,在第一方面的另 一种实现方式中, 在第一 PE设备接收第二 PE设备发送的第二数据报文之 前, 所述方法还包括: 所述第一 PE设备接收所述第二 PE设备发送的包括 所述第一 PE设备的 ES的标识以及所述第二 PE设备为所述第一 PE设备的 ES的标识分配的 ES路由标签的路由信息。
结合第一方面或其上述实现方式中的任一种实现方式,在第一方面的另 一种实现方式中, 在所述第一 PE设备接收所述第二 PE设备发送的包括所 述第一 PE设备的 ES的标识以及所述第二 PE设备为所述第一 PE设备的 ES 的标识分配的 ES路由标签的路由信息之前, 所述方法还包括: 所述第一 PE 设备向第二 PE设备发送第一 ES自动发现信息, 所述第一 ES自动发现信息 包括所述第一 PE设备的 ES的标识和所述第一 PE设备的 ES所属的 VPN的 标识, 所述第一 ES 自动发现信息用于指示所述第二 PE设备为所述第一 PE 设备的 ES的标识分配 ES路由标签。 第二方面, 提供了一种用于以太虚拟专用网的方法, 该方法包括: 第二 提供商边缘 PE设备对第二数据报文进行封装, 所述封装后的第二数据报文 携带第二标签和第二源 MAC地址;所述第二 PE设备向第一 PE设备发送所 述封装后的第二数据报文, 所述第二标签用于向所述第一 PE设备指示所述 第二数据报文是所述第二 PE设备从所述第二 PE设备的以太网段 ES上接收 的,所述封装后的第二数据报文用于使能所述第一 PE设备建立所述第二 PE 设备的 ES和所述第二源 MAC地址的对应关系。
第三方面, 提供了一种用于以太虚拟专用网的方法, 该方法包括: 标签 管理设备接收第一提供商边缘 PE设备发送的以太网段标识 ESI标签分配请 求消息, 所述 ESI标签分配请求消息携带所述第一 PE设备的以太网段 ES 的标识; 所述标签管理设备为所述第一 PE设备的 ES的标识分配 ESI标签; 所述标签管理设备向所述第一 PE设备发送第一 ESI标签分配响应消息, 并 向所述第二 PE设备发送第二 ESI标签分配响应消息, 所述第一 ESI标签分 配响应消息和所述第二 ESI标签分配响应消息均携带所述分配的 ESI标签, 所述分配的 ESI标签由所述第一 PE设备用于封装从所述第一 PE设备的 ES 上接收的并且需要转发的数据报文, 以及向所述第二 PE设备指示所述数据 报文是所述第一 PE设备从所述第一 PE设备的 ES上接收的。
结合第三方面, 在第三方面的另一种实现方式中, 所述 ESI标签分配请 求消息还携带所述第一 PE设备的 ES所属的以太虚拟专用网 VPN的标识, 所述第一 ESI标签分配响应消息还携带所述第一 PE设备的 ES所属的 VPN 的标识,以及所述第二 ESI标签分配响应消息还携带所述第一 PE设备的 ES 所属的 VPN的标识。
结合第三方面或其上述实现方式中的任一种实现方式,在第三方面的另 一种实现方式中,所述标签管理设备为路由反射器或 PE设备或集中控制器。
第四方面, 提供了一种第一提供商边缘 PE设备, 该设备包括: 接收单 元, 用于接收第二 PE设备发送的第二数据报文, 所述第二数据报文携带第 二标签和第二源媒体接入控制 MAC地址; 确定单元, 用于根据所述接收单 元接收的所述第二标签确定所述第二数据报文是所述第二 PE设备从所述第 二 PE设备的以太网段 ES上接收的; 建立单元, 用于建立所述确定单元确 定的所述第二 PE设备的 ES和所述接收单元接收的所述第二源 MAC地址的 对应关系。 结合第四方面, 在第一方面的另一种实现方式中, 所述第一 PE设备还 包括第一发送单元, 所述第一发送单元, 用于根据所述接收单元接收的所述 第二标签将所述第二数据报文通过所述第一 PE设备的 ES进行转发。
结合第四方面或其上述实现方式中的任一种实现方式,在第四方面的另 一种实现方式中,所述第二标签包括所述第一 PE设备的 ES的 ES路由标签, 所述第一发送单元具体用于: 根据所述第一 PE设备的 ES的 ES路由标签将 所述第二数据报文通过所述第一 PE设备的 ES进行转发, 所述第一 PE设备 的 ES的 ES路由标签是由所述第一 PE设备接收所述第二数据报文前发布给 所述第二 PE设备的。
结合第四方面或其上述实现方式中的任一种实现方式,在第四方面的另 一种实现方式中, 所述第二标签包括所述第二 PE设备的 ES的以太网段标 识 ESI标签, 所述确定单元具体用于: 根据所述第二 PE设备的 ES的 ESI 标签确定所述第二数据报文是所述第二 PE设备从所述第二 PE设备的 ES上 接收的。
结合第四方面或其上述实现方式中的任一种实现方式,在第四方面的另 一种实现方式中, 所述第一 PE设备还包括第二发送单元, 所述第二发送单 元, 用于根据所述接收单元接收的所述第二标签将所述第二数据报文分别通 过所述第一 PE设备的多个 ES进行转发。
结合第四方面或其上述实现方式中的任一种实现方式,在第四方面的另 一种实现方式中, 所述第二标签包括用于指示所述第二数据报文的出接口为 所述第一 PE设备的多个 ES的第一组播路由标签, 所述第二发送单元具体 用于: 根据所述第一组播路由标签将所述第二数据报文分别通过所述第一 PE设备的多个 ES进行转发。
结合第四方面或其上述实现方式中的任一种实现方式,在第四方面的另 一种实现方式中, 所述第二标签包括所述第二 PE设备的 ES的以太网段标 识 ESI标签, 所述确定单元具体用于: 根据所述第二 PE设备的 ES的 ESI 标签确定所述第二数据报文是所述第二 PE设备从所述第二 PE设备的 ES上 接收的。
结合第四方面或其上述实现方式中的任一种实现方式,在第四方面的另 一种实现方式中, 所述第二数据报文是由所述第二 PE设备经因特网协议 IP 隧道发送的, 所述第二数据报文还携带所述第二 PE设备的 IP地址, 所述确 定单元具体用于:根据所述第二 PE设备的 IP地址和所述第二 PE设备的 ES 的 ESI标签确定所述第二数据报文是所述第二 PE设备从所述第二 PE设备 的 ES上接收的。
结合第四方面或其上述实现方式中的任一种实现方式,在第四方面的另 一种实现方式中, 所述接收单元还用于: 从所述第一 PE设备的 ES上接收 客户边缘 CE设备发送的第一数据报文; 所述建立单元还用于: 根据所述接 收单元接收的所述第一数据报文建立所述第一 PE的 ES和所述第一数据报 文携带的第一源 MAC地址的对应关系。
结合第四方面或其上述实现方式中的任一种实现方式,在第四方面的另 一种实现方式中, 所述确定单元还用于: 确定所述接收单元接收的所述第一 数据报文的出接口; 所述第一 PE设备还包括第三发送单元, 所述第三发送 单元, 用于将所述第一数据报文通过所述确定单元确定的所述第一数据报文 的出接口进行转发。
结合第四方面或其上述实现方式中的任一种实现方式,在第四方面的另 一种实现方式中, 在所述第一数据报文为单播报文且所述第一 PE设备将所 述第一数据报文进行转发前已建立所述第一数据报文携带的第一目的 MAC 地址与所述第一数据报文的出接口的对应关系的情况下, 所述第三发送单元 具体用于: 当所述确定单元确定的所述第一数据报文的出接口为所述第一 PE设备的中的一个 ES, 则通过所述第一数据报文的出接口上进行转发; 或 者所述第三发送单元具体用于: 当所述确定单元确定的所述第一数据报文的 出接口是所述第二 PE设备的 ES , 则对所述第一数据报文进行封装, 向所述 第二 PE设备发送所述封装后的第一数据报文, 所述封装后的第一数据报文 携带第一标签, 所述第一标签用于向所述第二 PE设备指示所述第一数据报 文是所述第一 PE设备从所述第一 PE设备的 ES上接收的并需要通过所述第 二 PE设备的 ES转发出去。
结合第四方面或其上述实现方式中的任一种实现方式,在第四方面的另 一种实现方式中, 所述第一标签包括所述第二 PE设备的 ES的 ES路由标签 和所述第一 PE设备的 ES的 ESI标签, 所述第二 PE设备的 ES的 ES路由 标签由所述第二 PE设备用于确定所述第一数据报文需要通过所述第二 PE 设备的 ES进行转发, 且所述第二 PE设备的 ES的 ES路由标签是由所述第 二 PE设备在所述第一 PE设备将所述第一数据报文进行转发前发布给所述 第一 PE设备的, 所述第一 ΡΕ设备的 ES的 ESI标签用于向所述第二 PE设 备指示所述第一数据报文是所述第一 PE设备从所述第一 PE设备的 ES上接 收的。
结合第四方面或其上述实现方式中的任一种实现方式,在第四方面的另 一种实现方式中, 在所述第一数据报文为广播或组播报文的情况下, 或者在 所述第一数据报文为单播报文且所述第一 PE设备将所述第一数据报文进行 转发前未建立所述第一数据报文携带的第一目的 MAC地址与所述第一数据 报文的出接口的对应关系的情况下, 所述确定单元还用于: 确定用于转发所 述第一数据报文的至少一个目标出接口; 所述第三发送单元具体用于: 当所 述确定单元确定的所述至少一个目标出接口是所述第一 PE设备的出接口, 则将所述第一数据报文通过所述至少一个目标出接口进行转发; 或者所述第 三发送单元具体用于: 当所述确定单元确定所述至少一个目标出接口是多个 目标出接口, 并且所述多个目标出接口是所述第二 PE设备的出接口, 则对 所述第一数据 文进行封装, 所述封装后的第一数据 文携带第一标签, 经 由公网隧道转发给所述第二 PE设备, 所述第一标签用于向所述第二 PE设 备指示所述第一数据报文是第一 PE设备从所述第一 PE设备的 ES上接收的 并需要通过所述第二 PE设备的多个 ES进行转发。
结合第四方面或其上述实现方式中的任一种实现方式,在第四方面的另 一种实现方式中, 所述第一标签包括用于指示所述第一数据报文的出接口为 所述第二 PE设备的多个 ES的第二组播路由标签和所述第一 PE设备的 ES 的 ESI标签, 所述第二组播路由标签由所述第二 PE设备用于确定所述第一 数据报文需要通过所述第二 PE设备的多个 ES进行转发, 所述第一 PE设备 的 ES的 ESI标签用于向所述第二 PE设备指示所述第一数据报文是所述第 一 PE设备从所述第一 PE设备的 ES上接收的。
结合第四方面或其上述实现方式中的任一种实现方式,在第四方面的另 一种实现方式中, 所述封装后的第一数据报文还携带所述第一 PE设备的 IP 地址, 所述第一 PE设备的 IP地址和所述第一 PE设备的 ES的 ESI标签用 于向所述第二 PE设备指示所述第一数据报文是所述第一 PE设备从所述第 一 PE设备的 ES上接收的。
结合第四方面或其上述实现方式中的任一种实现方式,在第四方面的另 一种实现方式中, 所述接收单元还用于: 接收所述第二 PE设备发送的第一 路由信息, 所述第一路由信息携带所述第二 PE设备的 ES的标识。
结合第四方面或其上述实现方式中的任一种实现方式,在第四方面的另 一种实现方式中, 所述建立单元还用于: 为所述接收单元接收的所述第二 PE设备的 ES的标识分配 ESI标签;所述第一 PE设备还包括第四发送单元, 所述第四发送单元, 用于向所述第二 PE设备发送第二 ESI标签信息, 所述 第二 ESI标签信息包括所述第二 PE设备的 ES的标识及所述建立单元为所 述第二 PE设备的 ES的标识分配的 ESI标签。
结合第四方面或其上述实现方式中的任一种实现方式,在第四方面的另 一种实现方式中, 所述接收单元, 还用于接收所述第二 PE设备发送的第三 ESI标签信息, 所述第三 ESI标签信息携带所述第二 PE设备的 IP地址、 所 述第二 PE设备的 ES的标识以及所述第二 PE设备为所述第二 PE设备的 ES 的标识所分配的 ESI标签。
结合第四方面或其上述实现方式中的任一种实现方式,在第四方面的另 一种实现方式中, 所述接收单元还用于: 接收标签管理设备发送的第二 ESI 标签分配响应消息, 所述第二 ESI标签分配响应消息携带所述标签管理设备 为所述第二 PE设备的 ES的标识分配的 ESI标签。
结合第四方面或其上述实现方式中的任一种实现方式,在第四方面的另 一种实现方式中, 所述第一 PE设备还包括存储单元, 所述存储单元, 用于 存储预先设置的所述第二 PE设备的 ES的标识及对应的 ESI标签。
结合第四方面或其上述实现方式中的任一种实现方式,在第四方面的另 一种实现方式中, 所述建立单元还用于: 为所述第二 PE设备的 ES的标识 分配 ES路由标签; 所述第一 PE设备还包括第五发送单元, 所述第五发送 单元, 用于向所述第二 PE设备发送包括所述第二 PE设备的 ES的标识以及 所述建立单元为所述第二 PE设备的 ES的标识分配的 ES路由标签的路由信 息。
结合第四方面或其上述实现方式中的任一种实现方式,在第四方面的另 一种实现方式中, 所述接收单元还用于: 接收第二 PE设备发送的第二 ES 自动发现信息,所述第二 ES自动发现信息包括所述第二 PE设备的 ES的标 识和所述第二 PE设备的 ES所属的以太虚拟专用网 VPN的标识。
结合第四方面或其上述实现方式中的任一种实现方式,在第四方面的另 一种实现方式中, 所述第一 PE设备还包括第六发送单元, 所述第六发送单 元, 用于向所述第二 PE设备发送第三路由信息, 所述第三路由信息携带所 述第一 PE设备的 ES的标识。
结合第四方面或其上述实现方式中的任一种实现方式,在第四方面的另 一种实现方式中, 所述接收单元还用于: 接收所述第二 PE设备发送的第一 ESI标签信息,所述第一 ESI标签信息包括所述第一 PE设备的 ES的标识及 所述第二 PE设备为所述第一 PE设备的 ES的标识分配的 ESI标签。
结合第四方面或其上述实现方式中的任一种实现方式,在第四方面的另 一种实现方式中, 所述第一 PE设备还包括第九发送单元, 所述第九发送单 元, 用于向所述第二 PE设备发送第四 ESI标签信息, 所述第四 ESI标签信 息携带所述第一 PE设备的 IP地址、 所述第一 PE设备的 ES的标识以及所 述第一 PE设备为所述第一 PE设备的 ES的标识所分配的 ESI标签。
结合第四方面或其上述实现方式中的任一种实现方式,在第四方面的另 一种实现方式中, 所述第一 PE设备还包括第七发送单元, 所述第七发送单 元, 用于向标签管理设备发送第一 ESI标签分配请求消息, 所述第一 ESI标 签分配请求消息携带所述第一 PE设备的 ES的标识; 所述接收单元, 用于 接收所述标签管理设备发送的第一 ESI标签分配响应消息, 所述第一 ESI标 签分配响应消息携带所述标签管理设备为所述第一 PE设备的 ES的标识分 配的 ESI标签。
结合第四方面或其上述实现方式中的任一种实现方式,在第四方面的另 一种实现方式中, 所述接收单元还用于: 接收所述第二 PE设备发送的包括 所述第一 PE设备的 ES的标识以及所述第二 PE设备为所述第一 PE设备的 ES的标识分配的 ES路由标签的路由信息。
结合第四方面或其上述实现方式中的任一种实现方式,在第四方面的另 一种实现方式中, 所述第一 PE设备设备还包括第八发送单元, 所述第八发 送单元, 用于向第二 PE设备发送第一 ES自动发现信息, 所述第一 ES自动 发现信息包括所述第一 PE设备的 ES的标识和所述第一 PE设备的 ES所属 的 VPN的标识, 所述第一 ES自动发现信息用于指示所述第二 PE设备为所 述第一 PE设备的 ES的标识分配 ES路由标签。
第五方面, 提供了一种第二 PE设备, 该设备包括: 封装单元, 用于对 第二数据报文进行封装, 所述封装后的第二数据报文携带第二标签和第二源 MAC地址; 发送单元, 用于向第一 PE设备发送由所述封装单元进行封装后 的第二数据报文, 所述第二标签用于向所述第一 PE设备指示所述第二数据 报文是所述第二 PE设备从所述第二 PE设备的以太网段 ES上接收的,所述 封装后的第二数据报文用于使能所述第一 PE设备建立所述第二 PE设备的 ES和所述第二源 MAC地址的对应关系。
第六方面, 提供了一种标签管理设备, 该设备包括: 接收单元, 用于接 收第一提供商边缘 PE设备发送的以太网段标识 ESI标签分配请求消息, 所 述 ESI标签分配请求消息携带所述第一 PE设备的以太网段 ES的标识; 分 配单元,用于为所述接收单元接收的所述第一 PE设备的 ES的标识分配 ESI 标签; 发送单元, 用于向所述第一 PE设备发送第一 ESI标签分配响应消息, 并向所述第二 PE设备发送第二 ESI标签分配响应消息, 所述第一 ESI标签 分配响应消息和所述第二 ESI标签分配响应消息均携带所述分配的 ESI标 签, 所述分配的 ESI标签由所述第一 PE设备用于封装从所述第一 PE设备 的 ES上接收的并且需要转发的数据报文, 以及向所述第二 PE设备指示所 述数据报文是所述第一 PE设备从所述第一 PE设备的 ES上接收的。
结合第六方面, 在第六方面的另一种实现方式中, 所述 ESI标签分配请 求消息还携带所述第一 PE设备的 ES所属的以太虚拟专用网 VPN的标识, 所述第一 ESI标签分配响应消息还携带所述第一 PE设备的 ES所属的 VPN 的标识,以及所述第二 ESI标签分配响应消息还携带所述第一 PE设备的 ES 所属的 VPN的标识。
结合第六方面或其上述实现方式中的任一种实现方式,在第六方面的另 一种实现方式中,所述标签管理设备为路由反射器或 PE设备或集中控制器。
本发明实施例第一 PE设备通过接收的从第二 PE设备发送的第二数据 报文进行远端 MAC地址学习,建立第二 PE设备的 ES和第二数据报文携带 的第二源 MAC地址的对应关系。 也就是说, 第一 PE设备通过数据平面进 行远端 MAC地址学习, 即建立的是远端 ES与远端 MAC地址的对应关系。 当远端 CE多归到 PE时, CE与 PE之间的多归链路视为同一远端 ES。因此, 无需通过控制平面进行 C-MAC信息的交换, 从而减少了 PE设备之间在控 制平面上的信令开销, 提高控制平面的可扩展性。 附图说明
为了更清楚地说明本发明实施例的技术方案, 下面将对实施例或现有技 术描述中所需要使用的附图作筒单地介绍, 显而易见地, 下面描述中的附图 仅仅是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造 性劳动的前提下, 还可以根据这些附图获得其他的附图。
图 1是可应用于本发明实施例的一个以太网 VPN的示意性场景图。 图 2是可应用于本发明实施例的另一个以太网 VPN的示意性场景图。 图 3是本发明一个实施例的用于以太虚拟专用网的方法的流程图。
图 4A是本发明一个实施例的数据报文封装格式的示意图。
图 4B是本发明另一个实施例的数据报文封装格式的示意图。
图 5是本发明另一个实施例的用于以太虚拟专用网的方法的流程图。 图 6是本发明再一个实施例的用于以太虚拟专用网的方法的流程图。 图 7是本发明一个实施例的第一 PE设备的示意性结构图。
图 8是本发明一个实施例的第二 PE设备的示意性结构图。
图 9是本发明一个实施例的标签管理设备的示意性结构图。
图 10是本发明一个实施例的设备的框图。
图 11是本发明另一个实施例的第一 PE设备的示意性结构图。
图 12是本发明另一个实施例的第二 PE设备的示意性结构图。
图 13是本发明另一个实施例的标签管理设备的示意性结构图。 具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行 清楚、 完整地描述, 显然, 所描述的实施例是本发明的一部分实施例, 而不 是全部实施例。 基于本发明中的实施例, 本领域普通技术人员在没有做出创 造性劳动的前提下所获得的所有其他实施例, 都应属于本发明保护的范围。
图 1是可应用于本发明实施例的以太网 VPN的示意性场景图。 在图 1 的场景图中, 为域内场景, 描述了 3个 PE设备, 分别是 PE1、 PE2和 PE3, 5个客户站点, 分别是站点 (Site ) 1、 Site2、 Site3、 Site4 和 Site5, 相应的 客户边缘(Custom Edge, CE )设备分别是 CE1、 CE2、 CE3、 CE4和 CE5。 每个 CE下描述了一个用户设备, 一个用户设备对应唯一的 C-MAC地址, CE1下的 MAC A, CE2下的 MAC B, CE3下的 MAC C, CE4下的 MAC D, 以及 CE5下的 MAC E。 其中 Site 1、 Site2、 site3、 Site4 和 Site5属于同一个 以太 VPN实例 E-VPN A ,跨承载网连接起来像同一个 LAN—样工作。应理 解, 在一个域内还可以包括不同的以太 VPN实例, 本发明实施例对此并不 限定。
CE与 PE之间的单归或多归链路称为以太网段( Ethernet Segment, ES ), 如果 CE单归连接到一个 PE, 则 CE与 PE之间的单归链路称为单归 ES。 如 果 CE多归连接到多个 PE , 则 CE与多个 PE之间的一组多归链路称为多归 ES。 对 PE设备来说, 与本端直接连接的 ES称为本端 ES, 与本端非直接连 接的 ES称为远端 ES。ES的非零值唯一标识称为 ES的标识( Ethernet Segment Identity, ESI )。 对于同一 PE上的所有单归 ES, 可以每个 ES对应一个 ESI, 也可以多个 ES对应一个 ESI。 对于多归 ES, 则每个 ES对应一个 ESI。 ESI 值需要整网唯一, 可以自动生成, 也可以预先配置。 ESI取值可以为 6字节 或其它长度。 如图 1场景中的 CE1与 PE1之间的 ES是单归 ESI , CE2与 PE1和 PE2之间的 ES是多归 ES2。 应理解, 本发明实施例对此不作限定。
以太 VPN跨域的场景可以示意性的如图 2所示, 为了方便描述, 描绘 了 2个域, 分别对应 1个 PE设备, 分别是 PE4 (对应的客户站点 Site6 )和 PE5 (对应的客户站点 Site7 ) , 相应的 CE设备分别是 CE6和 CE7。 每个 CE 下描述了一个用户设备, 一个用户设备对应唯一的 C-MAC地址, CE6下的 MAC F, CE7下的 MAC G。 其中 Site6和 Site7属于同一个以太 VPN实例 E-VPN A, 跨不同域的承载网连接起来像同一个 LAN—样工作。 不同域的 PE设备之间进行信息交互(如数据报文传输或信令交互等 )需要通过 ASBR ( Autonomous System Border Router , 自治系统边界路由器)。 例如, ΡΕ4向 ΡΕ5 发送数据报文, 需要将数据报文发送给 ASBR1 , 由 ASBR1 转发给 ASBR2 , ASBR2再将数据报文发送给 ΡΕ5。
需要指出的是, 图 1和图 2的场景图仅仅是为了描述方便, 而非要限制 本发明的范围。 本发明实施例对承载网的 ΡΕ设备的数目不作限制, 可以包 括更少或更多个 ΡΕ设备。 本发明实施例对客户站点 (或 CE设备) 的数目 也不作限制, 在一个以太 VPN承载网中, 一个 ΡΕ设备可以对应 1个或多个 以太 VPN实例, 每个以太 VPN实例中的客户站点 (或 CE设备) 的数目也 不作限定, 可以是 1个或多个。 等等。 还应理解的是, 每个 CE下可以具有 1个或多个用户设备 ( MAC地址 ), 本发明对此不作限定。
在现有的机制中, 本端 PE设备对远端站点的 MAC学习是由控制平面 通过 BGP信令来完成的。 例如, 在图 1的场景中, PE1学习 MAC E地址是 通过 PE3向 PE1发送 BGP信令来完成的。 但是, 对同一 E-VPN中的每个 C-MAC都会发布 BGP信令, 并且路由会扩散到同一个 E-VPN中的所有 PE 设备上, 事实上, 每个 CE设备下的 C-MAC规模可能会很大。 因此, 在网 络规模很大时, 会因 C-MAC路由导致信令开销成爆炸式的增长, 降低控制 平面的可扩展性。
另一方面, 通过数据平面获取路由信息进行 MAC学习的方案, 如基于
LAN Service, VPLS ), PE设备之间通过 PW进行全连接。 PE设备通过数据 平面进行 MAC学习,建立的是 MAC地址与 PW的对应关系,一个 PE设备 只能通过一个远端 PE的一个 PW上学习到特定的 MAC地址。例如,在图 1 的场景中, PE3只能从与 PE1连接的 PW上学习到 MAC B, 或者 PE3只能 从与 PE2连接的 PW上学习到 MAC B,所以当 PE3将数据报文发送给 MAC B时, 只能选择 PE1或 PE2, 无法同时通过 PE1和 PE2实现数据 文的分 流。 同理, 来自 MAC B的数据报文也只能通过 PE1或 PE2发往 PE3。 因此, 在 VPLS技术方案中是无法实现多归场景下的基于流的负载分担的需求。
为了解决上述问题,本发明实施例提供了一种用于以太虚拟专用网的方 法和设备。 本端 PE基于 ES实现远端站点 MAC地址学习, 并利用这一学习 结果和 ES路由信息实现到远端站点的以太报文转发,在满足某些场景下(如 多归场景多活模式下)基于流的负载分担需求的同时, 以轻量级的路由实现 了控制平面的高可扩展性。
为方便描述, 本发明将结合图 1的场景进行描述, 本发明还可应用于跨 域的场景或层次化的以太 VPN组网场景, 应理解, 本发明实施例对此并不 作限制。
图 3是本发明一个实施例的用于以太虚拟专用网的方法的流程图。 图 3 的方法由 PE设备执行。
301 , 第一 PE设备接收第二 PE设备发送的第二数据报文, 第二数据报 文携带第二标签和第二源 MAC地址。
302, 第一 PE设备根据第二标签确定第二数据报文是第二 PE设备从第 二 PE设备的 ES上接收的, 建立第二 PE设备的 ES和第二源 MAC地址的 对应关系。
本发明实施例第一 PE设备通过接收的从第二 PE设备发送的第二数据 报文进行远端 MAC地址学习,即建立第二 PE设备的 ES和第二数据报文携 带的第二源 MAC地址的对应关系。 也就是说, 第一 PE设备通过数据平面 进行远端 MAC地址学习, 建立的是远端 ES与远端 MAC地址的对应关系。 因此, 无需通过控制平面进行 C-MAC信息的交换, 从而减少了 PE设备之 间在控制平面上的信令开销, 提高控制平面的可扩展性。
另夕卜, 当远端 CE多归到远端 PE时, 远端 CE与远端 PE之间的多归链 路被第一 PE设备视为同一远端 ES。 此时, 通过控制平面下发的 ES路由, 本端 PE设备可以通过多个不同的远端 PE到达远端 ES。 同样, 远端 CE可 以通过多归的不同 PE到达本端 PE设备。 这样, 能够实现某些场景下 (如 多归场景多活模式)基于流的负载分担。
具体地, 在步骤 302中, 第二标签与第二 PE设备的 ES具有对应关系, 第一 PE设备可以根据第二标签与第二 PE设备的 ES的对应关系确定第二数 据报文是第二 PE设备从第二 PE设备的 ES上接收的。
可选地, 作为一个实施例, 在一种可能的实现方式下, 第二数据报文为 已知单播数据报文, 也就是第二 PE设备已进行了第二数据报文携带的第二 目的 MAC地址的学习, 建立了第一 PE设备的 ES与第二目的 MAC地址的 对应关系。 因此, 第二 PE设备可以确定第二数据报文的出接口为第一 PE 设备的 ES。 第一 PE设备可以根据第二标签将第二数据报文通过第一 PE设 备的 ES进行转发。 进一步地, 第二标签可以包括第一 PE设备的 ES的 ES 路由标签和第二 PE设备的 ES的以太网段标识 ESI标签(称为 "三层标签 方案" ), 可选地, 第一 PE设备的 ES的 ES路由标签是由第一 PE设备发布 给第二 PE设备的, 用于向第一 PE设备指示第二数据报文需要从第一 PE设 备的某个 ES转发出去; 第二 PE设备的 ES的 ESI标签用于向第一 PE设备 指示第二数据报文是第二 PE设备从第二 PE设备的 ES上接收的。 或者, 第 二标签用于向第一 PE设备指示第二数据报文是第二 PE设备从第二 PE设备 的某个 ES上接收的并需要从第一 PE设备的某个 ES转发出去(称为 "两层 标签方案";)。
在另一种可能的实现方式下, 在第二数据报文为 BUM ( Broadcast Unknown-unitcast Multicast, 广播、 未知单播和组播报文的统称)数据报文 的情况下,第一 PE设备可以根据第二标签将第二数据报文分别通过第一 PE 设备的多个 ES 进行转发。 其中, 第二标签包括用于指示出接口为第一 PE 设备的多个 ES的组播路由标签和第二 PE设备的 ES的 ESI标签(三层标签 方案)。 第二 PE设备的 ES的 ESI标签用于向第一 PE设备指示第二数据报 文是第二 PE设备从第二 PE设备的 ES上接收的。 或者, 第二标签用于向第 一 PE设备指示第二数据报文是第二 PE设备从第二 PE设备的某个 ES上接 收的并需要从第一 PE设备的多个 ES转发出去 (两层标签方案)。
数据报文的具体的封装格式示意性的如图 4A或图 4B所示,其中 Eth Hdr 表示以太网头部, PDU表示原始的数据报文。 图 4A为三层标签方案, 路由 标签可以是某个 ES的 ES路由标签, 由 PE设备用于确定从哪个本端 ES转 发数据报文。 需要说明的是, 路由标签可以是组播路由标签, 即组播路由标 签指示多个 ES, 由 PE设备用于确定从哪些本端 ES转发数据报文。 ESI标 签由 PE设备用于确定数据报文是从哪个远端 ES上接收的。 图 4B为两层标 签方案, 两层标签方案的封装格式中的 "标签" 指示了 PE设备的本端 ES 与远端 ES的对应关系, 由接收数据报文的 PE设备用于确定数据报文从哪 个远端 ES接收并需要从哪个(些 )本端 ES上转发的。
以图 1的场景为例, PE1接收 PE3发送的已知单播数据报文的封装格式 为三层标签方案, 路由标签为 PE1发布给 PE3的 ES1的 ES路由标签, ESI 标签为 ES4的 ESI标签。 PE1根据 ES1的 ES路由标签可以确定将数据报文 通过 ES1转发, 根据 ES4的 ESI标签可以确定数据报文是从 ES4接收的。 又例如, PE1接收 PE3发送的已知单播数据报文的封装格式为两层标签方案, 标签向 PE1指示数据报文从 ES4上接收并需要从 ES1转发出去。 再例如, PE1接收 PE3发送的 BUM数据报文的封装格式为三层标签方案, 路由标签 为指示出接口为 ES1和 ES2的组播路由标签, ESI标签为 ES4的 ESI标签。 PE1根据该组播路由标签可以确定数据报文需要分别通过 ES1和 ES2转发, 根据 ES4的 ESI标签可以确定数据报文是从 ES4接收的。 再例如, 在多归 场景中, PE3可以分别从 PE1和 PE2接收来自同一个源 MAC地址的数据报 文(如 MAC B ) , 数据报文的封装格式为三层标签方案, 路由标签为 PE3发 布给 PE1和 PE2的 ES4的 ES路由标签, ESI标签为 ES2的 ESI标签, PE3 可以确定数据报文是从 ES2上接收的, 并需要将数据报文通过 ES4转发。
可选地, 在步骤 301中, 当第一 PE设备接收的第二数据报文是由第二 PE设备经因特网协议( Internet Protocol, IP )隧道(如 GRE隧道或 UDP隧 道)发送的时, 第二数据报文还可以携带第二 PE设备的 IP地址, 在步骤 302中,第一 PE设备根据第二 PE设备的 IP地址和第二 PE设备的 ES的 ESI 标签确定第二数据报文是第二 PE设备从第二 PE设备的 ES上接收的,从而 完成第二 PE设备的 ES的 ESI和第二源 MAC地址的对应关系的建立。
应理解, 上述例子仅仅是示例性的, 而非要限制本发明的范围。
通过上述方案, PE设备不仅可以确定数据报文需要通过哪个(些)本 端 ES转发, 还能够确定数据报文是从哪个(些)远端 ES接收的。 通过数 据平面对远端 MAC地址学习,建立的是远端 ES与远端 MAC地址的对应关 系。 当远端 CE多归到 PE时, CE与 PE之间的多归链路视为同一远端 ES。 此时, 通过控制平面下发的 ES路由, 本端 PE设备可以通过多个不同的远 端 PE到达远端 ES。 同样,远端 CE可以通过多归的不同 PE到达本端 PE设 备。 这样便能够实现多归场景多活模式下基于流的负载分担, 并且无需通过 控制平面进行 C-MAC信息的交换, 从而减少了 PE设备之间在控制平面上 的信令开销, 提高控制平面的可扩展性。
可选地, 作为另一个实施例, 第一 PE设备可以从第一 PE的 ES (为方 便描述, 下面例子中以 "第一 ES" 表示该第一 PE设备的 ES )上接收 CE 设备发送的第一数据报文, 第一 PE设备根据第一数据报文进行本端 MAC 地址学习, 建立第一 ES (如第一 ES的标识 )和第一数据报文携带的第一源 MAC地址的对应关系。
进一步地, 第一 PE设备可以确定第一数据报文的出接口, 对第一数据 文进行转发。
可选地, 在第一数据报文为单播报文且第一 PE设备已对第一数据报文 携带的第一目的 MAC地址进行学习的情况下, 即 PE设备将第一数据报文 进行转发前已建立了第一目的 MAC地址与第一数据报文的出接口 ES的对 应关系:
在一种可能的实现方式下, 当确定的与第一目的 MAC地址对应的出接 口 ES是第一 PE设备的其它 ES中的一个 ES, 换句话说, 与第一目的 MAC 地址对应的出接口 ES仍是某个本端 ES, 则通过与第一目的 MAC地址对应 的出接口 ES进行转发。
以图 1的场景为例, PE1从 ES1接收到 CE1发送的单播数据报文, 该 单播数据报文携带了源 MAC地址 MAC A和目的 MAC地址 MAC B。 PE1 进行本端 MAC地址学习, 即建立 ES1和 MAC A的对应关系。 当 PE1已经 建立了 ES2与 MAC B的对应关系,则 PE1可以直接将该单播数据报文通过 ES2转发。
在另一种可能的实现方式下, 当确定的与第一目的 MAC地址对应的出 接口 ES是第二 PE设备的某个 ES (为方便描述, 以第二 ES表示该第二 PE 设备的 ES ),则第一 PE设备可以对第一数据报文进行封装, 向第二 PE设备 发送封装后的第一数据报文, 封装后的第一数据报文携带第一标签。 第一 PE设备对数据报文的封装格式可以是上述的三层标签方案, 即第一标签可 以包括第二 ES的 ES路由标签和第一 ES的 ESI标签, 其中, 第二 ES的 ES 路由标签是由第二 PE设备发布给第一 PE设备的, 用于向第二 PE设备指示 第一数据报文需要通过第二 ES转发出去; 第一 PE设备的 ES的 ESI标签用 于向第二 PE设备指示第一数据报文从第一 PE设备的 ES上接收的。 这样, 第二 PE设备可以根据第二 ES的 ES路由标签将第一数据报文从第二 ES上 进行转发, 并根据第一 ES的 ESI标签确定第一数据报文是第一 PE设备从 第一 ES上接收的; 或者也可以是两层标签方案, 即采用第一标签向第二 PE 设备指示第一数据报文是第一 PE设备从第一 PE设备的 ES上接收的并需要 通过第二 PE设备的 ES转发出去。
以图 1的场景为例, PE1从 ES1接收到 CE1发送的单播数据报文, 该 单播数据报文携带了源 MAC地址 MAC A和目的 MAC地址 MAC D。 PEl 进行本端 MAC地址学习, 即建立 ES1和 MAC A的对应关系。 当 PE1已经 进行远端 MAC学习, 建立了 ES4与 MAC D的对应关系, 则 PE1可以将该 单播数据报文进行封装, 以三层标签方案为例, 将 ES1 的 ESI标签和 PE3 发布给 PE1的 ES4的 ES路由标签均压入标签栈, 即封装后的该单播数据报 文携带 ES1的 ESI标签和 PE3发布给 PE1的 ES4的 ES路由标签。 因此, 可以通过报文公网隧道( PE设备之间的通道)转发给 PE3 , 这样, PE3可以 根据 ESI标签判断出该单播数据报文是从 ES1上接收的, 可选地, 建立 ES1 和 MAC A的对应关系, 即 PE3进行的远端 MAC学习, 并且根据路由标签 将该单播数据报文从 ES4上转发。
可选地, 在第一数据报文为广播或组播报文的情况下, 或者在第一数据 报文为单播报文且第一 PE设备将第一数据报文进行转发前未对第一数据报 文携带的第一目的 MAC地址进行学习情况下, 这类数据报文也称为 BUM 数据报文。 使用头节点复制 ( Ingress Replication )方式转发 BUM报文时, 第一 PE 设备可以遍历 BUM数据报文对应的出接口列表, 对出接口列表中的每个出 接口, 当该出接口属于第一 PE设备, 则第一 PE设备直接通过该出接口转 发报文, 当该出接口为远端 ES, 则对第一数据报文进行封装, 封装后的第 一数据报文携带第一标签, 经公网隧道进行转发给第二 PE设备。
具体地, 第一 PE设备对第一数据报文的封装格式可以是上述的三层标 签方案, 即第一标签可以包括用于指示出接口为第二 PE设备的多个 ES的 组播路由标签和第一 ES的 ESI标签; 或者也可以是两层标签方案, 即采用 第一标签指示第一数据报文从第一 ES上接收并需要分别通过到第二 PE设 备的多个 ES转发出去。 这样, 第二 PE设备可以根据指示出接口为第二 PE 设备的多个 ES的组播路由标签将第一数据报文分别通过第二 PE设备的多 个 ES进行转发, 并根据第一 ES的 ESI标签确定第一数据报文是第一 PE设 备从第一 ES上接收的。 或者, 第二 PE设备可以直接根据第一标签确定第 一数据报文是第一 PE设备从第一 ES上接收的并需要分别通过第二 PE设备 的多个 ES转发。
例如, 在图 1的场景中, PE1从 ES1接收到 CE1发送的数据报文, 如 果该报文确定为 BUM数据报文且使用头节点复制方式转发, 则 PE1可以根 据 ES 1所属的 VPN E-VPN A确定该 BUM数据报文对应的出接口列表, 包 括 ES2、 ES3、 ES4和 ES5。 目标出接口为 ES2时, PE1可以直接将 BUM数 据才艮文从 ES2上转发。 目标出接口为 ES4和 ES5时, PE1对 BUM数据才艮文 进行封装, 将封装后的该 BUM数据报文经报文公网隧道转发给 PE3。 类似 地, 目标出接口为 ES3时, PE1对 BUM数据报文进行封装, 将封装后的该 BUM数据报文经报文公网隧道转发给 PE2。可选地,对该 BUM数据报文进 行封装的过程可以参考上述已知单播报文转发的例子, 此处不再赘述。 PE3 接收到 PE1发送的 BUM数据报文后,可以从 PE3下的所有属于 E-VPNA的 本端 ES上( ES4和 ES5 )转发该数据报文。 PE2接收到 PE1发送的 BUM数 据报文后, 可以通过 PE2下的所有属于 E-VPNA的本端 ES ( ES3 )转发该 数据报文。
使用标签交换组播( Label Switch Multicast )方式转发 BUM数据报文时, 对于 BUM报文对应的本地出接口, 第一 PE设备直接通过该出接口转发报 文, 如果报文需要转发到远端 PE, 则第一 PE设备不需要针对每个远端 PE 进行报文复制和转发, 第一 PE设备对第一数据报文进行封装, 封装后的第 一数据报文携带第一标签, 经公网隧道进行封装转发给第二 PE设备。 通过 公网组播隧道能将 BUM报文传输到属于同一 VPN的所有远端 PE设备。
具体地, 第一 PE对第一数据报文的封装格式可以是上述的三层标签方 案, 即第一标签可以包括用于指示出接口为第二 PE设备的多个 ES的组播 路由标签和第一 ES的 ESI标签; 或者也可以是两层标签方案, 即采用第一 标签指示第一数据报文是第一 PE设备从第一 ES上接收的并需要分别通过 第二 PE设备的多个 ES转发出去。 这样, 第二 PE设备可以根据指示出接口 为第二 PE设备的多个 ES的组播路由标签将第一数据报文分别从第二 PE设 备的多个 ES上进行转发, 并根据第一 ES的 ESI标签确定第一数据报文是 第一 PE设备从第一 ES上接收的。 或者, 第二 PE设备可以直接根据第一标 签确定第一数据报文是第一 PE设备从第一 ES上接收的并需要分别通过第 二 PE设备的多个 ES转发。
例如, 在图 1的场景中, PE3从 ES4接收到 CE4发送的数据报文, 如 果该报文确定为 BUM 数据报文且使用报文标签转换组播(Label Switch Multicast, LSM ) 方式转发, 则 PE3可以根据 ES4所属的 VPN E-VPN A确 定 BUM报文本地出接口和远端 LSM通道。其中, LSM是指用点到多点( Point to multiple point, P2MP )和多点到多点 ( Multiple Point to Multiple point, P2MP ) 隧道承载 VPN。 对于本地出接口 ES5, PE3直接将该 BUM数据报 文从 ES5上转发。 对于需要转发到远端 PE的情况, PE3不需要针对每个远 端 PE进行报文复制和转发。如果使用上述的两层标签封装方案,则使用 PE3 为 ES4分配的 LSM方式的组播路由标签对数据报文进行封装后, 将报文转 入公网组播隧道进行封装和转发, 经过公网组播隧道转发后, 报文到达 PE1 和 PE2。 PE1和 PE2接收到 PE3发送的 BUM数据报文后, 能根据组播路由 标签识别出4艮文源自远端 ES4,可选地, PE1和 PE2能分别建立 文源 MAC 地址与 ES4的对应关系, 并分别从属于 E-VPNA的本端 ES上转发该数据报 文。 如果使用上述的三层标签封装方案, 则 PE3将 ES4的 ESI标签和其发 布的 LSM方式的组播路由标签均压入标签栈, 即封装后的 BUM数据报文 携带 ES4的 ESI标签和 PE3发布给 PE1和 PE2的 LSM方式组播路由标签。 封装后的报文再经公网组播隧道进行封装和转发, 经过公网组播隧道转发 后,报文到达 PE1和 PE2。 PE1和 PE2接收到 PE3发送的 BUM数据报文后, 能根据 ESI标签识别出报文源自远端 ES4, 可选地, PE1和 PE2能分别建立 报文源 MAC地址与 ES4的对应关系, 并分别从属于 E-VPNA的本端 ES上 转发该数据报文。
可选地,当第一 PE设备经 IP隧道向第二 PE设备发送第一数据报文时, 上述封装后的第一数据报文还可以携带第一 PE设备的 IP地址。 这样。 第二 PE设备根据第一 PE设备的 IP地址和第一 PE设备的 ES的 ESI标签确定第 一数据报文是第一 PE设备从第一 PE设备的 ES上接收的,从而完成第一数 据才艮文的源 MAC地址与第一 PE设备的 ES的 ESI的建立。
通过上述方案, PE设备在向远端发送数据报文时, 通过对数据报文封 装的标签能够表示该报文源自哪个 ES,远端 PE接收到数据报文后就能根据 这一信息识别数据报文从哪个远端 ES接收, 从而完成远端站点的 MAC学 习, 并利用学习结果指导后续 文转发。
可选地, 作为另一个实施例, 在 PE设备通过数据平面进行 MAC学习 之前, PE设备之间可以交换所需要的路由信息。 可选地, 如果采用 "三层 标签方案", PE设备可以通过局部动态配置方式获取 ESI标签, 即 PE之间 通过控制平面信息交换先发现 ES后分配和发布 ESI标签; 或者, PE设备可 以通过全局静态配置方式获取 ESI标签, 即每个 PE设备上预先设置有各个 PE设备下的每个 ES的 ESI以及对应的 ESI标签,所分配的 ESI标签能唯一 标识一个 ESI; 或者, PE设备也可以通过全局动态配置方式获取 ESI标签, 即 ESI标签由标签管理设备为各个 PE设备的 ES的 ESI统一分配, 所分配 的 ESI标签能唯一标识一个 ESI, 其中, 标签管理设备可以是路由反射器 ( Route Reflector ),也可以是某个 PE设备,还可以是软件定义网络( Software Defined Network, SDN ) 的集中控制器(controller )等等。
应理解, 本发明实施例对于 PE设备获得路由信息和 ESI标签信息的方 式不作限制。
通过上述方案, 使得 PE设备在向远端站点转发报文时能够获取所需要 的封装信息。
具体地, 对于三层标签方案且使用局部动态配置方式获取 ESI标签时, 在步骤 301之前, 第一 PE设备可以通过控制平面接收第二 PE设备发送的 第一路由信息, 第一路由信息包括 ES路由信息或组播路由信息, 可以使用 现有技术 E-VPN中定义的路由信息格式, 此处不做限定。 进一步地, 如果使用局部动态配置方式获取 ESI标签, 第一 PE设备可 以根据第二 PE设备发送的 ES路由信息中携带的 ES标识发现第二 PE设备 的 ES并为第二 PE设备的 ES的标识分配 ESI标签。第一 PE设备向第二 PE 设备发送第二 ESI标签信息, 第二 ESI标签信息包括第二 PE设备的 ES的 标识及第一 PE设备为第二 PE设备的 ES的标识分配的 ESI标签。
例如, 在图 1的场景中, PE1接收 PE3向其发布的 ES4路由信息, 就可 以发现远端 ES4, PE1为远端 ES4分配一个 ESI标签, 并构造 ESI标签消息 携带远端 ES4的标识及为其分配的 ESI标签发布给 PE3。 后续 PE3从 ES4 上接收到报文需要向 PE1发送时, 就可以封装 PE1为 ES4分配的 ESI标签 以表示该报文源自 ES4。
相应地, 对于三层标签方案且使用局部动态配置方式获取 ESI标签时, 第一 PE设备还可以向第二 PE设备发送第三路由信息, 第三路由信息包括 ES路由信息或组播路由信息, 可以使用现有技术 E-VPN中定义的路由信息 格式, 此处不做限定。 进一步地, 当使用局部动态配置方式获取 ESI标签, 第二 PE设备可以根据第一 PE设备发送的 ES路由信息中携带的 ES标识发 现第一 PE设备的 ES并为第一 PE设备的 ES的标识分配 ESI标签。第二 PE 设备向第一 PE设备发送第一 ESI标签信息,第一 ESI标签信息包括第一 PE 设备的 ES的标识及第二 PE设备为第一 PE设备的 ES的标识分配的 ESI标 签。 具体例子可以参考上述, 此处不再赘述。
例如, 在图 1的场景中, PE1向 PE3发布的 ES1路由信息, PE3就可以 发现远端 ESI , PE3为远端 ES1分配一个 ESI标签, 并构造 ESI标签消息携 带远端 ES1的标识及为其分配的 ESI标签发布给 PEL后续 PE1如果从 ES1 上接收到数据报文需要向 PE3发送时, 就可以封装 PE3为 ES1分配的 ESI 标签以表示该数据报文源自 ES1。
特别地, 在使用局部动态配置方式获取 ESI标签方式中, 第一 PE设备 可以接收第二 PE设备发送的第三 ESI标签信息, 第三 ESI标签信息携带第 二 PE设备的 IP地址、 第二 PE设备的 ES的标识以及第二 PE设备为第二 PE设备的 ES的标识所分配的 ESI标签。 后续第二 PE设备通过第二 PE设 备的 ES接收到第二数据报文, 并需要经 IP隧道向第一 PE设备发送该第二 数据报文时, 第二 PE设备可以封装第二 PE设备为第二 PE设备的 ES的标 识所分配的 ESI标签和第二 PE设备的 IP地址。 当第一 PE设备接收到该封 装后的第二数据报文时, 第一 PE设备可以根据第二 PE设备为第二 PE设备 的 ES的标识所分配的 ESI标签和第二 PE设备的 IP地址确定第二 PE设备 的 ES的标识,建立第二 PE设备的 ES的标识和第二数据报文携带的源 MAC 地址的对应关系。本发明对携带第三 ESI标签信息的协议消息格式定义不作 限定, 可以定义独立的协议消息格式, 也可以直接利用或扩展现有协议消息 格式。
相应地, 第一 PE设备可以向第二 PE设备发送第四 ESI标签信息, 第 四 ESI标签信息携带第一 PE设备的 IP地址、 第一 PE设备的 ES的标识以 及第一 PE设备为第一 PE设备的 ES的标识所分配的 ESI标签。 同样, 本发 明对携带第四 ESI标签信息的协议消息格式定义不作限定, 可以定义独立的 协议消息格式, 也可以直接利用或扩展现有协议消息格式。
可选地, 在使用全局动态配置 ESI标签方式中, 第二 PE设备可以向标 签管理设备发送第二 ESI标签分配请求消息, 第二 ESI标签分配请求消息携 带第二 PE设备的 ES的标识。 标签管理设备为第二 PE设备的 ES的标识分 配 ESI标签, 向第一 PE设备和第二 PE设备分别发送相应的 ESI标签分配 响应消息, 每个 ESI标签分配响应消息均携带标签管理设备为第二 PE设备 的 ES的标识分配的 ESI标签。 这样, 第二 PE设备从某个 ES上接收数据报 文需要向第一 PE设备转发且使用三层标签方案时, 封装该 ES对应的 ESI 标签, 以及第一 PE设备可以根据该 ESI标签确定数据报文是从第二 PE设 备的哪个 ES上接收的。 可选地, 第二 ESI标签分配请求消息和各个 ESI标 签分配响应消息还可以携带第二 PE设备的 ES所属的 VPN的标识, 这样, 当^载网上具有不同的 VPN时, 可以通过 VPN的标识进行区分。
相应地, 第一 PE设备可以向标签管理设备发送第一 ESI标签分配请求 消息, 第一 ESI标签分配请求消息携带第一 PE设备的 ES的标识。 标签管 理设备为第一 PE设备的 ES的标识分配 ESI标签, 向第一 PE设备发送第一 ESI标签分配响应消息, 向第二 PE设备发送第二 ESI标签分配响应消息, 第一 ESI标签分配响应消息和第二 ESI标签分配响应消息均携带标签管理设 备为第一 PE设备的 ES的标识分配的 ESI标签。 这样, 第一 PE设备从某个 ES上接收数据报文需要向第二 PE设备转发且使用三层标签方案时,封装该 ES对应的 ESI标签,以及第二 PE设备可以根据该 ESI标签确定数据报文是 从第一 PE设备的哪个 ES上接收的。 可选地, 第一 ESI标签分配请求消息、 第一 ESI标签分配响应消息和第二 ESI标签分配响应消息还可以携带第一 PE设备的 ES所属的 VPN的标识, 这样, 当承载网上具有不同的 VPN时, 可以通过 VPN的标识进行区分。
具体地, 对于两层标签方案, 在步骤 301之前, 第一 PE设备在向第二 PE设备发布 ES路由信息或 Ingress Replication方式组播路由信息时, 针对 第二 PE设备的 ES的标识都分配一个不同的路由标签( ES路由标签或组播 路由标签)。 可选地, 第一 PE设备可以在 ES路由信息中携带远端 ES的标 识和对应的某个本端 ES标识, 以及相应的 ES路由标签。 或者, 第一 PE设 备可以在 Ingress Replication方式组播路由信息中携带远端 ES的标识、 组播 域标识及对应的组播路由标签。 后续第二 PE设备从本端 ES收到数据报文 需要向第一 PE设备转发时, 就可以封装第一 PE设备为第二 PE设备接收数 据报文的 ES所分配的路由标签, 以标识该数据报文源自哪个 ES并需要从 哪个(些) ES转发出去。
可选地,在第一 PE设备为第二 PE设备的 ES的标识分配路由标签之前, 第一 PE设备可以接收第二 PE设备发送的第二 ES 自动发现信息, 第二 ES 自动发现信息包括第二 PE设备的 ES的标识,还可以包括该 ES所属的 VPN 的标识。 第一 PE设备从第二 ES 自动发现信息中能够发现有哪些 (个)远 端 ES的标识。 当然, 第一 PE设备可以预先设置有第二 PE设备的 ES的标 识。 应理解, 本发明实施例对此并不限定。
例如, 在图 1的场景中, PE1接收 PE3发送的 ES自动发现信息, 发现 两个远端 ES, 即 ES4和 ES5, PE1 向 PE3发布 ES1路由信息或 Ingress Replication方式组播路由信息时,分别为 ES4和 ES5分配一个不同的路由标 签, 假设为 ES4和 ES5分配的 ES1路由标签分别为 1024和 1025, 为 ES4 和 ES5分配的 Ingress Replication方式组播路由标签分别为 1124和 1125。 PE1 通过向 PE3发布路由信息通告所分配的路由标签信息。 后续, 如果 PE3从 ES4上接收到报文且该报文为已知单播报文并需要发送 ES1 , 则需要对该报 文封装的 ES路由标签值为 1024, 以标识该>¾文源自 ES4并需要通过 ES1 转发出去; 如果 PE3从 ES5上接收到报文且该报文为未知单播报文并使用 Ingress Replication 方式发送, 则需要对该 文封装的组播路由标签值为 1125, 以标识该报文源自 ES5并需要分通过 PE1的所有与 ES5属于相同的 VPN ( E-VPN A ) 的 ES转发出去。 相应地, 第二 PE设备在向第一 PE设备发布 ES路由信息或 Ingress Replication方式组播路由信息时, 针对每一个发现的远端 ES的标识都分配 一个不同的路由标签。 可选地, 第二 PE设备可以在发布的 ES路由信息中 携带远端 ES的标识和对应的某个本端 ES标识, 以及相应的 ES路由标签。 或者, 第二 PE设备可以在 Ingress Replication方式组播路由信息中携带远端 ES 的标识、 组播域标识及对应的组播路由标签。 后续第一 PE设备从本端 ES收到数据报文需要向第二 PE设备转发时, 就可以封装第二 PE设备为第 一 PE设备接收数据报文的 ES所分配的路由标签, 以标识该数据报文源自 哪个 ES并需要从哪个(些) ES转发出去。 可选地, 第一 PE设备可以向第 二 PE设备发送第一 ES自动发现信息,以便第二 PE设备可以发现有哪些(个) 远端 ES。 或者, 第二 PE设备可以预先设置有第一 PE设备的 ES的标识。 具体的实现方式可以参考上述例子, 此处不再赘述。
对于两层标签方案, 如果使用 LSM方式发送 BUM报文时, 组播路由 的标签分配并不需要事先发现远端 ES。 具体地, 在步骤 301之前, 第一 PE 设备在向第二 PE设备发送 LSM方式的组播路由时, 为每个本端 ES的标识 分配一个不同的路由标签并在路由信息中携带该本端 ES标识、 组播域标识 及对应的组播路由标签。 后续如果第一 PE设备从某个本端 ES接收到数据 报文并确定为 BUM报文,需要向第二 PE设备发送且使用 LSM方式发送时, 第一 PE设备需要对该 BUM数据报文进行封装,封装后的 BUM报文携带第 一 PE设备为该本端 ES分配的组播路由标签,以标识该 BUM数据 文源自 该本端 ES并需要分别通过多个 ES(如与该本端 ES属于同一个 VPN的多个 ES )转发出去。 同样地, 对于第一 PE设备接收第二 PE设备发送的 LSM方 式组播路由, 第二 PE设备作类似处理, 此处不再赘述。
例如, 在图 1的场景中, PE3在向 PE1发送 LSM方式的组播路由时, 需要分别为本端 ES4和 ES5分配一个不同的路由标签并在路由信息中携带 该本端 ES标识、 组播域标识及对应的组播路由标签(假设为 ES4和 ES5分 配的路由标签分别为 1024和 1025 )。 当 PE3从 ES5上接收到数据报文, 并 确定为 BUM报文且使用 LSM方式发送时, PE3需要对该数据报文封装路由 标签 1025, 以标识该4艮文源自 ES5。
通过上述技术方案, PE设备之间交换 ES路由信息、 组播路由信息和 ESI标签信息 (对应三层标签方案), 或者, 交换 ES自动发现信息、 ES路 由信息和组播路由信息(对应两层标签方案), 使得 PE设备在向其它 PE设 备转发数据报文时, 不断能够获取到达目的地所需要的封装信息, 还能够获 取数据报文源自哪个 ES所需要的封装信息, 从而使得该 PE设备从远端 PE 设备接收报文时能够在数据平面利用数据报文封装的标签信息获取报文源 自哪个远端 ES , 建立 MAC地址与远端 ES的关联关系。 因而减少了 PE设 备之间直接在控制平面交换 MAC路由所带来的信令开销, 大大提高了控制 平面的可扩展性。
图 5是本发明一个实施例的用于以太虚拟专用网的方法的流程图。 图 5 的方法由 PE设备执行。 并且与图 3的方法相对应, 因此将适当省略与图 3 的实施例重复的描述。
501 , 第二 PE设备对第二数据报文进行封装,封装后的第二数据报文携 带第二标签和第二源 MAC地址。
502, 第二 PE设备向第一 PE设备发送封装后的第二数据报文, 第二标 签用于向第一 PE设备指示第二数据报文是第二 PE设备从第二 PE设备的 ES上接收的, 封装后的第二数据报文用于使能第一 PE设备建立第二 PE设 备的 ES和第二源 MAC地址的对应关系。
本发明实施例第二 PE设备对发送给第一 PE设备的第二数据报文进行 封装, 封装后的第二数据报文携带第二标签和第二源 MAC地址。 第一 PE 设备接收到该封装后的第二数据报文进行远端 MAC学习, 根据第二标签确 定第二数据报文是第二 PE设备从第二 PE设备的 ES上接收的, 建立第二 PE设备的 ES和第二源 MAC地址的对应关系。 也就是说, 第一 PE设备通 过数据平面进行远端 MAC地址学习,即建立的是远端 ES与远端 MAC地址 的对应关系。 因此, 无需通过控制平面进行 C-MAC信息的交换, 从而减少 了 PE设备之间在控制平面上的信令开销, 提高控制平面的可扩展性。
另夕卜, 当远端 CE多归到远端 PE时, 远端 CE与远端 PE之间的多归链 路被第一 PE设备视为同一远端 ES。 此时, 通过控制平面下发的 ES路由, 本端 PE设备可以通过多个不同的远端 PE到达远端 ES。 同样, 远端 CE可 以通过多归的不同 PE到达本端 PE设备。 这样, 能够实现某些场景下 (如 多归场景多活模式)基于流的负载分担。
可选地, 作为一个实施例, 第二 PE设备可以根据从第二 PE设备的 ES 上接收到的第二数据报文进行本端 MAC地址学习,建立第二 PE的 ES设备 (如第二 PE设备的 ES的标识)和第二数据报文携带的源 MAC地址的对应 关系。
可选地, 作为另一个实施例, 第二 PE设备可以在通过数据平面进行 MAC学习之前, 与其它 PE设备交换所需要的控制信息, 从而使第二 PE设 备在向远端站点转发报文时能够获取所需要的封装信息。
具体的例子可以参考上述, 此处不再赘述。
图 6是本发明一个实施例的用于以太虚拟专用网的方法的流程图。 图 6 的方法由 PE设备执行。 并且与图 3的方法相对应, 因此将适当省略与图 3 的实施例重复的描述。
601 ,标签管理设备接收第一 PE设备发送的 ESI标签分配请求消息, ESI 标签分配请求消息携带第一 PE设备的 ES的标识。
602, 标签管理设备为第一 PE设备的 ES的标识分配 ESI标签。
603 ,标签管理设备向所述第一 PE设备发送第一 ESI标签分配响应消息, 并向第二 PE设备发送第二 ESI标签分配响应消息, 第一 ESI标签分配响应 消息和第二 ESI标签分配响应消息均携带分配的 ESI标签,分配的 ESI标签 由第一 PE设备用于封装从第一 PE设备的 ES上接收的并且需要转发的数据 报文, 以及向第二 PE设备指示所述数据报文是第一 PE设备从第一 PE设备 的 ES上接收的。
可选地, ESI标签分配请求消息, 第一 ESI标签分配响应消息, 以及第 二还可以携带第一 PE设备的 ES所属的 VPN的标识。
可选地, 标签管理设备可以是路由反射器, 也可以是某个 PE设备, 还 可以是 SDN网络的集中控制器等等。
因此, 通过标签管理设备分配各个 ES的 ESI标签, 本端 PE设备从某 个 ES上接收数据报文需要向远端 PE设备转发且使用三层标签方案时, 可 以封装该 ES对应的 ESI标签以表示该数据报文源自哪个 ES,也可以从远端 远端 PE设备的哪个 ES上接收的。
图 7是本发明一个实施例的第一 PE设备的示意性结构图。 图 7的第一 PE设备 700包括接收单元 701、 确定单元 702和建立单元 703。
接收单元 701 , 用于接收第二 PE设备发送的第二数据报文, 第二数据 报文携带第二标签和第二源 MAC地址。 确定单元 702, 用于根据接收单元 701接收的第二标签确定第二数据报 文是第二 PE设备从第二 PE设备的 ES上接收的。
建立单元 703,用于建立确定单元 702确定的第二 PE设备的 ES和接收 单元 701接收的第二源 MAC地址的对应关系。
本发明实施例第一 PE设备通过接收的从第二 PE设备发送的第二数据 报文进行远端 MAC地址学习,即建立第二 PE设备的 ES和第二数据报文携 带的第二源 MAC地址的对应关系。 也就是说, 第一 PE设备通过数据平面 进行远端 MAC地址学习, 建立的是远端 ES与远端 MAC地址的对应关系。 因此, 无需通过控制平面进行 C-MAC信息的交换, 从而减少了 PE设备之 间在控制平面上的信令开销, 提高控制平面的可扩展性。
另夕卜, 当远端 CE多归到远端 PE时, 远端 CE与远端 PE之间的多归链 路被第一 PE设备视为同一远端 ES。 此时, 通过控制平面下发的 ES路由, 本端 PE设备可以通过多个不同的远端 PE到达远端 ES。 同样, 远端 CE可 以通过多归的不同 PE到达本端 PE设备。 这样, 能够实现某些场景下 (如 多归场景多活模式)基于流的负载分担。
第一 PE设备 700可实现图 3至图 6的方法中涉及第一 PE设备的各个 步骤, 为避免重复, 不再详细描述。
可选地,作为一个实施例,在一种可能的实现方式下, 第一 PE设备 700 还可以包括第一发送单元 704。 第一发送单元 704用于根据接收单元 701接 收的第二标签将第二数据报文(为已知单播数据报文)通过第一 PE设备的 ES进行转发。 其中, 第二标签包括第一 PE设备的 ES的 ES路由标签和第 二 PE设备的 ES的以太网段标识 ESI标签(称为 "三层标签方案" ), 可选 地, 第一 PE设备的 ES的 ES路由标签是由第一 PE设备发布给第二 PE设 备的, 用于向第一 PE设备指示第二数据报文需要从第一 PE设备的某个 ES 转发出去; 第二 PE设备的 ES的 ESI标签用于向第一 PE设备指示第二数据 报文是第二 PE设备从第二 PE设备的 ES上接收的。 或者, 第二标签用于向 第一 PE设备指示第二数据报文是第二 PE设备从第二 PE设备的某个 ES上 接收的并需要从第一 PE设备的某个 ES转发出去(称为 "两层标签方案")。
在另一种可能的实现方式下, 第一 PE设备 700还可以包括第二发送单 元 705, 第二发送单元 705用于根据接收单元 701接收的第二标签将第二数 据报文(为 BUM数据报文 )分别从第一 PE设备的多个 ES上进行转发。 其 中, 第二标签包括用于指示出接口为第一 PE设备的多个 ES的组播路由标 签和第二 PE设备的 ES的 ESI标签(三层标签方案)。 第二 PE设备的 ES的 ESI标签用于向第一 PE设备指示第二数据报文是第二 PE设备从第二 PE设 备的 ES上接收的。 或者, 第二标签用于向第一 PE设备指示第二数据报文 是第二 PE设备从第二 PE设备的某个 ES上接收的并需要从第一 PE设备的 多个 ES转发出去(两层标签方案)。
可选地, 第二数据报文是由第二 PE设备经因特网协议 IP隧道发送的, 第二数据报文还携带第二 PE设备的 IP地址, 确定单元 702具体用于: 根据 第二 PE设备的 IP地址和第二 PE设备的 ES的 ESI标签确定第二数据报文 是所述第二 PE设备从第二 PE设备的 ES上接收的。
可选地, 作为另一个实施例, 接收单元 701还可以用于从第一 PE的 ES 上接收 CE设备发送的第一数据报文。 建立单元 703还可以用于根据接收单 元 701接收的第一数据报文进行本端 MAC地址学习, 即建立第一 PE的 ES 和第一数据报文携带的第一源 MAC地址的对应关系。 进一步地, 确定单元 702还可以用于确定接收单元 701接收的第一数据报文的出接口。 所述第一 PE设备还包括第三发送单元 706,第三发送单元 706用于将第一数据报文通 过确定单元 702确定的第一数据报文的出接口进行转发。
再进一步地, 在第一数据报文为单播报文且第一 PE设备已对第一数据 报文携带的第一目的 MAC地址进行学习, 即将第一数据报文进行转发前已 建立第一数据报文携带的第一目的 MAC地址与第一数据报文的出接口的对 应关系的情况下, 第三发送单元 706具体用于: 当确定单元 702确定的第一 数据报文的出接口为第一 PE设备的其它 ES中的一个 ES, 则通过第一数据 报文的出接口进行转发。 或者第三发送单元 706具体用于: 当确定单元 702 确定的第一数据报文的出接口是第二 PE设备的 ES,则对第一数据报文进行 封装, 向第二 PE设备发送封装后的第一数据报文, 封装后的第一数据报文 携带第一标签。 第一标签用于向第二 PE设备指示第一数据报文是第一 PE 设备从第一 PE设备的 ES上接收的并需要通过第二 PE设备的 ES转发出去。 可选地, 第一标签包括第二 PE设备的 ES的 ES路由标签和第一 PE设备的 ES的 ESI标签,第二 PE设备的 ES的 ES路由标签是由第二 PE设备发布给 第一 PE设备的,用于向第二 PE设备指示第一数据报文需要通过第二 ES转 发出去; 第一 PE设备的 ES的 ESI标签用于向第二 PE设备指示第一数据报 文是第一 PE设备从第一 PE设备的 ES上接收的。
可选地, 在第一数据报文为广播或组播报文的情况下, 或者在第一数据 报文为单播报文且第一 PE设备将第一数据报文进行转发前未对第一数据报 文携带的第一目的 MAC地址进行学习, 即未建立第一数据 文携带的第一 目的 MAC地址与第一数据报文的出接口的对应关系的情况下, 这类数据报 文也称为 BUM数据报文。 可选地, 使用 Ingress Replication方式转发 BUM 报文时, 确定单元 702还可以用于: 确定用于转发第一数据报文的至少一个 目标出接口。 第三发送单元 706具体用于: 当确定单元 702确定的至少一个 目标出接口是第一 PE设备的出接口, 则将第一数据报文通过至少一个目标 出接口进行转发。 或者, 第三发送单元 706具体用于: 当确定单元 702确定 至少一个目标出接口是多个目标出接口, 并且多个目标出接口是第二 PE设 备的出接口, 则对第一数据报文进行封装封装后的第一数据报文携带第一标 签, 经由公网隧道转发给第二 PE设备, 第一标签用于向第二 PE设备指示 第一数据报文是第一 PE设备从第一 PE设备的 ES上接收的并需要通过第二 PE设备的多个 ES进行转发。
可选地, 第一标签包括用于指示第一数据报文的出接口为第二 PE设备 的多个 ES的第二组播路由标签和第一 PE设备的 ES的 ESI标签, 第二组播 路由标签由第二 PE设备用于确定第一数据报文需要通过第二 PE设备的多 个 ES进行转发, 第一 PE设备的 ES的 ESI标签用于向第二 PE设备指示第 一数据报文是第一 PE设备从第一 PE设备的 ES上接收的。
可选地, 封装后的第一数据报文还可以携带第一 PE设备的 IP地址, 第 一 PE设备的 IP地址和第一 PE设备的 ES的 ESI标签用于向第二 PE设备指 示第一数据报文是第一 PE设备从第一 PE设备的 ES上接收的。
可选地, 作为另一个实施例, 接收单元 701还可以用于接收第二 PE设 备发送的第一路由信息(包括 ES路由信息或组播路由信息 ), 第一路由信息 携带第二 PE设备的 ES的标识。 进一步地, 建立单元 703还可以用于: 为 接收单元 701接收的第二 PE设备的 ES的标识分配 ESI标签。 第一 PE设备 还包括第四发送单元 707 , 第四发送单元 707用于向第二 PE设备发送第二 ESI标签信息,第二 ESI标签信息包括第二 PE设备的 ES的标识及建立单元 703为第二 PE设备的 ES的标识分配的 ESI标签。 第一 PE设备还可以接收 第二 PE设备发送的组播路由信息, 可以参考上述, 此处不再赘述。 可选地, 作为另一个实施例, 接收单元 701还可以用于接收第二 PE设 备发送的第三 ESI标签信息,第三 ESI标签信息携带第二 PE设备的 IP地址、 第二 PE设备的 ES的标识以及第二 PE设备为第二 PE设备的 ES的标识所 分配的 ESI标签。本发明对携带第三 ESI标签信息的协议消息格式定义不作 限定, 可以定义独立的协议消息格式, 也可以直接利用或扩展现有协议消息 格式。
可选地, 作为另一个实施例, 接收单元 701还可以用于接收第二 PE设 备发送的第二 ES自动发现信息, 第二 ES自动发现信息包括第二 PE设备的 ES的标识。 当然, 第一 PE设备可以预先设置有第二 PE设备的 ES的标识。 应理解, 本发明实施例对此并不限定。 建立单元 702还可以用于为接收单元 701接收的第二 PE设备的 ES的标识分配路由标签。 第一 PE设备还包括第 五发送单元 709 ,第五发送单 709用于向第二 PE设备发送包括第二 PE设备 的 ES的标识以及建立单元 703为第二 PE设备的 ES的标识分配的路由标签 的路由信息。
可选地,作为另一个实施例,所述第一 PE设备还包括第六发送单元 710, 第六发送单元 710用于向第二 PE设备发送第三路由信息 (包括 ES路由信 息或组播路由信息), 第三路由信息携带第一 PE设备的 ES的标识。 接收单 元 701还可以用于接收第二 PE设备发送的第一 ESI标签信息, 第一 ESI标 签信息包括第一 PE设备的 ES的标识及第二 PE设备为第一 PE设备的 ES 的标识分配的 ESI标签。 第一 PE设备还可以向第二 PE设备发送组播路由 信息, 可以参考上述, 此处不再赘述。
可选地, 第一 PE设备 700设备还可以包括第八发送单元 712, 第八发 送单元 712, 用于向第二 PE设备发送第一 ES 自动发现信息, 第一 ES自动 发现信息包括第一 PE设备的 ES的标识和第一 PE设备的 ES所属的 VPN的 标识, 第一 ES 自动发现信息用于指示第二 PE设备为第一 PE设备的 ES的 标识分配 ES路由标签。
可选地, 第一 PE设备 700还可以包括存储单 708, 存储单元 708用于 存储预先设置的各个 PE设备下的每个 ES的 ESI以及相应的 ESI标签, 所 分配的 ESI标签能唯一标识一个 ESI。 或者, 也可以通过全局动态配置方式 获取 ESI标签, 即 ESI标签由标签管理设备为各个 PE设备的 ES的 ESI统 一分配, 所分配的 ESI标签能唯一标识一个 ESI。 其中, 标签管理设备可以 是路由反射器, 也可以是某个 PE设备, 还可以是 SDN的集中控制器等等。 应理解, 本发明实施例对于 PE设备获得路由信息和 ESI标签信息的方式不 作限制。
具体地, 第二 PE设备可以向标签管理设备发送第二 ESI标签分配请求 消息, 第二 ESI标签分配请求消息携带第二 PE设备的 ES的标识。 标签管 理设备为第二 PE设备的 ES的标识分配 ESI标签, 向第一 PE设备发送第二 ESI标签分配响应消息。 接收单元 701还可以用于接收标签管理设备发送的 第二 ESI标签分配响应消息, 第二 ESI标签分配响应消息携带标签管理设备 为第二 PE设备的 ES的标识分配的 ESI标签。 这样, 第二 PE设备根据该 ESI标签封装需要转发的数据报文, 以及第一 PE设备可以根据该 ESI标签 确定数据报文是从第二 PE设备的哪个 ES上接收的。 可选地, 第二 ESI标 签分配请求消息和第二 ESI标签分配响应消息还可以携带第二 PE设备的 ES 所属的 VPN的标识, 这样, 当承载网上具有不同的 VPN时, 可以通过 VPN 的标识进行区分。
可选地, 第一 PE设备 700还包括第九发送单元 713, 第九发送单元 713 用于向第二 PE设备发送第四 ESI标签信息,第四 ESI标签信息携带第一 PE 设备的 IP地址、 所述第一 PE设备的 ES的标识以及所述第一 PE设备为所 述第一 PE设备的 ES的标识所分配的 ESI标签。 同样, 本发明对携带第四 ESI标签信息的协议消息格式定义不作限定,可以定义独立的协议消息格式, 也可以直接利用或扩展现有协议消息格式。
可选地, 第一 PE设备设备还包括第七发送单元 711 , 第七发送单元 711 用于向标签管理设备发送第一 ESI标签分配请求消息, 第一 ESI标签分配请 求消息携带第一 PE设备的 ES的标识。 接收单元 701还可以用于接收标签 管理设备发送的第一 ESI标签分配响应消息, 第一 ESI标签分配响应消息携 带所述标签管理设备为第一 PE设备的 ES的标识分配 ESI标签。 这样, 第 一 PE设备根据该 ESI标签封装需要转发的数据报文, 以及第二 PE设备可 以根据该 ESI标签确定数据报文是从第一 PE设备的哪个 ES上接收的。 可 选地, 第一 ESI标签分配请求消息和第一 ESI标签分配响应消息还可以携带 第一 PE设备的 ES所属的 VPN的标识, 这样, 当承载网上具有不同的 VPN 时, 可以通过 VPN的标识进行区分。
通过上述技术方案, PE设备之间交换 ES路由信息、 组播路由信息和 ESI标签信息 (对应三层标签方案), 或者, 交换 ES自动发现信息、 ES路 由信息和组播路由信息(对应两层标签方案), 使得 PE设备在向其它 PE设 备转发数据报文时, 不断能够获取到达目的地所需要的封装信息, 还能够获 取数据报文源自哪个 ES所需要的封装信息, 从而使得该 PE设备从远端 PE 设备接收报文时能够在数据平面利用数据报文封装的标签信息获取报文源 自哪个远端 ES , 建立 MAC地址与远端 ES的关联关系。 因而减少了 PE设 备之间直接在控制平面交换 MAC路由所带来的信令开销, 大大提高了控制 平面的可扩展性。
图 8是本发明一个实施例的第二 PE设备的示意性结构图。 图 8的第二 PE设备 800包括封装单元 801和发送单元 802。
封装单元 801 , 用于对第二数据报文进行封装, 封装后的第二数据报文 携带第二标签和第二源 MAC地址。
发送单元 802, 用于向第一 PE设备发送由封装单元 801进行封装后的 第二数据报文, 第二标签用于向第一 PE设备指示第二数据报文是第二 PE 设备从第二 PE设备的 ES上接收的, 封装后的第二数据报文用于使能第一 PE设备建立第二 PE设备的 ES和第二源 MAC地址的对应关系。
本发明实施例第二 PE设备对发送给第一 PE设备的第二数据报文进行 封装, 封装后的第二数据报文携带第二标签和第二源 MAC地址。 第一 PE 设备接收到该封装后的第二数据报文进行远端 MAC学习, 根据第二标签确 定第二数据报文是第二 PE设备从第二 PE设备的 ES上接收的, 建立第二 PE设备的 ES和第二源 MAC地址的对应关系。 也就是说, 第一 PE设备通 过数据平面进行远端 MAC地址学习,即建立的是远端 ES与远端 MAC地址 的对应关系。 因此, 无需通过控制平面进行 C-MAC信息的交换, 从而减少 了 PE设备之间在控制平面上的信令开销, 提高控制平面的可扩展性。
另夕卜, 当远端 CE多归到远端 PE时, 远端 CE与远端 PE之间的多归链 路被第一 PE设备视为同一远端 ES。 此时, 通过控制平面下发的 ES路由, 本端 PE设备可以通过多个不同的远端 PE到达远端 ES。 同样, 远端 CE可 以通过多归的不同 PE到达本端 PE设备。 这样, 能够实现某些场景下 (如 多归场景多活模式)基于流的负载分担。
第二 PE设备 800可实现图 3至图 6的方法中涉及第二 PE设备的各个 步骤, 为避免重复, 不再详细描述。 应理解, 第二 PE设备 800还可以具有第一 PE设备的功能, 具体的实 施方式可以参考上述, 此处不再赘述。
图 9是本发明一个实施例的标签管理设备的示意性结构图。 图 9的标签 管理设备 900包括接收单元 901、 分配单元 902和发送单元 903。
接收单元 901 ,用于接收第一 PE设备发送的 ESI标签分配请求消息, ESI 标签分配请求消息携带第一 PE设备的 ES的标识。
分配单元 902,用于为接收单元 901接收的第一 PE设备的 ES的标识分 配 ESI标签。
发送单元 903 , 用于向第一 PE设备发送第一 ESI标签分配响应消息, 向第二 PE设备发送第二 ESI标签分配响应消息, 第一 ESI标签分配响应消 息和第二 ESI标签分配响应消息均携带分配单元 902分配的 ESI标签,分配 的 ESI标签由第一 PE设备用于封装需要转发的数据报文, 以及向第二 PE 设备指示数据报文是第一 PE设备从第一 PE设备的 ES上接收的。
标签管理设备 900可实现图 3至图 6的方法中涉及标签管理设备的各个 步骤, 为避免重复, 不再详细描述。
可选地, ESI标签分配请求消息、 第一 ESI标签分配响应消息以及第二 ESI标签分配响应消息还可以携带第一 PE设备的 ES所属的 VPN的标识。
可选地, 标签管理设备可以是路由反射器, 也可以是某个 PE设备, 还 可以是 SDN网络的集中控制器等等。
因此, 通过标签管理设备分配各个 ES的 ESI标签, 本端 PE设备从某 个 ES上接收数据报文需要向远端 PE设备转发且使用三层标签方案时, 可 以封装该 ES对应的 ESI标签以表示该数据报文源自哪个 ES,也可以从远端 远端 PE设备的哪个 ES上接收的。
具体的实施方式可以参考上述, 此处不再赘述。 实施例。 图 10示出了一种设备的实施例, 在该实施例中, 设备 1000包括处 理器 1001 , 存储器 1002, 发送器 1003和接收器 1004。 处理器 1001控制设 备 1000的操作, 处理器 1001还可以称为 CPU ( Central Processing Unit, 中 央处理单元)。 存储器 1002可以包括只读存储器和随机存取存储器, 并向处 理器 1001提供指令和数据。存储器 1002的一部分还可以包括非易失行随机 存取存储器( NVRAM )。 处理器 1001 , 存储器 1002, 发送器 1003和接收器 1004通过总线系统 1010耦合在一起, 其中总线系统 1010除包括数据总线 之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见, 在图中将各种总线都标为总线系统 1010。
上述本发明实施例揭示的方法可以应用上述的设备 1000。其中,处理器 1001可能是一种集成电路芯片, 具有信号的处理能力。 在实现过程中, 上述 方法的各步骤可以通过处理器 1001 中的硬件的集成逻辑电路或者软件形式 的指令完成。
进一步地,图 11是本发明另一个实施例的第一 PE设备的示意性结构图。 图 11的第一 PE设备 1100包括接收器 1101和处理器 1102。
接收器 1101 , 用于接收第二 PE设备发送的第二数据报文, 第二数据报 文携带第二标签和第二源 MAC地址。
处理器 1102, 用于根据接收器 1101接收的第二标签确定第二数据报文 是第二 PE设备从第二 PE设备的 ES上接收的; 建立确定的第二 PE设备的 ES和接收器 1101接收的第二源 MAC地址的对应关系。
本发明实施例第一 PE设备通过接收的从第二 PE设备发送的第二数据 报文进行远端 MAC地址学习,即建立第二 PE设备的 ES和第二数据报文携 带的第二源 MAC地址的对应关系。 也就是说, 第一 PE设备通过数据平面 进行远端 MAC地址学习, 建立的是远端 ES与远端 MAC地址的对应关系。 因此, 无需通过控制平面进行 C-MAC信息的交换, 从而减少了 PE设备之 间在控制平面上的信令开销, 提高控制平面的可扩展性。
另夕卜, 当远端 CE多归到远端 PE时, 远端 CE与远端 PE之间的多归链 路被第一 PE设备视为同一远端 ES。 此时, 通过控制平面下发的 ES路由, 本端 PE设备可以通过多个不同的远端 PE到达远端 ES。 同样, 远端 CE可 以通过多归的不同 PE到达本端 PE设备。 这样, 能够实现某些场景下 (如 多归场景多活模式)基于流的负载分担。
第一 PE设备 1100可实现图 3至图 6的方法中涉及第一 PE设备的各个 步骤, 为避免重复, 不再详细描述。
可选地,作为一个实施例,在一种可能的实现方式下,第一 PE设备 1100 还可以包括发送器 1103。发送器 1103用于根据接收器 1101接收的第二标签 将第二数据报文(为已知单播数据报文)通过第一 PE设备的 ES进行转发。 其中,第二标签包括第一 PE设备的 ES的 ES路由标签和第二 PE设备的 ES 的以太网段标识 ESI标签(称为 "三层标签方案"), 可选地, 第一 PE设备 的 ES的 ES路由标签是由第一 PE设备发布给第二 PE设备的, 用于向第一 PE设备指示第二数据报文需要从第一 PE设备的某个 ES转发出去;第二 PE 设备的 ES的 ESI标签用于向第一 PE设备指示第二数据报文是第二 PE设备 从第二 PE设备的 ES上接收的。 或者, 第二标签用于向第一 PE设备指示第 二数据报文是第二 PE设备从第二 PE设备的某个 ES上接收的并需要从第一 PE设备的某个 ES转发出去 (称为 "两层标签方案")。
在另一种可能的实现方式下, 发送器 1103还可以用于根据接收器 1101 接收的第二标签将第二数据报文(为 BUM数据报文)分别从第一 PE设备 的多个 ES上进行转发。 其中, 第二标签包括用于指示出接口为第一 PE设 备的多个 ES的组播路由标签和第二 PE设备的 ES的 ESI标签(三层标签方 案)。 第二 PE设备的 ES的 ESI标签用于向第一 PE设备指示第二数据报文 是第二 PE设备从第二 PE设备的 ES上接收的。 或者, 第二标签用于向第一 PE设备指示第二数据报文是第二 PE设备从第二 PE设备的某个 ES上接收 的并需要从第一 PE设备的多个 ES转发出去 (两层标签方案)。
可选地, 第二数据报文是由第二 PE设备经因特网协议 IP隧道发送的, 第二数据报文还携带第二 PE设备的 IP地址, 处理器 1102具体用于: 根据 第二 PE设备的 IP地址和第二 PE设备的 ES的 ESI标签确定第二数据报文 是所述第二 PE设备从第二 PE设备的 ES上接收的。
可选地, 作为另一个实施例, 接收器 1101还可以用于从第一 PE的 ES 上接收 CE设备发送的第一数据报文。 处理器 1102还可以用于根据接收器 1101接收的第一数据报文进行本端 MAC地址学习, 即建立第一 PE的 ES 和第一数据报文携带的第一源 MAC地址的对应关系。进一步地,处理器 1102 具体用于确定接收器 1101接收的第一数据报文的出接口。 发送器 1103还可 以用于将第一数据报文通过处理器 1102确定的第一数据报文的出接口进行 转发。
再进一步地, 在第一数据报文为单播报文且第一 PE设备已对第一数据 报文携带的第一目的 MAC地址进行学习, 即将第一数据报文进行转发前已 建立第一数据报文携带的第一目的 MAC地址与第一数据报文的出接口的对 应关系的情况下, 发送器 1103具体用于: 当处理器 1102确定的第一数据报 文的出接口为第一 PE设备的其它 ES中的一个 ES, 则通过第一数据报文的 出接口上进行转发。 或者发送器 1103具体用于: 当处理器 1102确定的第一 数据报文的出接口是第二 PE设备的 ES, 则对第一数据报文进行封装, 向第 二 PE设备发送封装后的第一数据报文, 封装后的第一数据报文携带第一标 签。 第一标签用于向第二 PE设备指示第一数据报文是第一 PE设备从第一 PE设备的 ES上接收的并需要通过第二 PE设备的 ES转发出去。 可选地, 第一标签包括第二 PE设备的 ES的 ES路由标签和第一 PE设备的 ES的 ESI 标签, 第二 PE设备的 ES的 ES路由标签是由第二 PE设备发布给第一 PE 设备的, 用于向第二 PE设备指示第一数据报文需要通过第二 ES转发出去; 第一 PE设备的 ES的 ESI标签用于向第二 PE设备指示第一数据报文是第一 PE设备从第一 PE设备的 ES上接收的。
可选地, 在第一数据报文为广播或组播报文的情况下, 或者在第一数据 报文为单播报文且第一 PE设备将第一数据报文进行转发前未对第一数据报 文携带的第一目的 MAC地址进行学习, 即未建立第一数据 文携带的第一 目的 MAC地址与第一数据报文的出接口的对应关系的情况下, 这类数据报 文也称为 BUM数据报文。 可选地, 使用 Ingress Replication方式转发 BUM 报文时, 处理器 1102还可以用于: 确定用于转发第一数据报文的至少一个 目标出接口。 发送器 1103具体用于: 当处理器 1102确定的至少一个目标出 接口是第一 PE设备的出接口, 则将第一数据报文通过至少一个目标出接口 进行转发。 或者, 发送器 1103具体用于: 当处理器 1102确定至少一个目标 出接口是多个目标出接口, 并且多个目标出接口是第二 PE设备的出接口, 则对第一数据报文进行封装封装后的第一数据报文携带第一标签, 经由公网 隧道转发给第二 PE设备, 第一标签用于向第二 PE设备指示第一数据报文 是第一 PE设备从第一 PE设备的 ES上接收的并需要通过第二 PE设备的多 个 ES进行转发。
可选地, 第一标签包括用于指示第一数据报文的出接口为第二 PE设备 的多个 ES的第二组播路由标签和第一 PE设备的 ES的 ESI标签, 第二组播 路由标签由第二 PE设备用于确定第一数据报文需要通过第二 PE设备的多 个 ES进行转发, 第一 PE设备的 ES的 ESI标签用于向第二 PE设备指示第 一数据报文是第一 PE设备从第一 PE设备的 ES上接收的。
可选地, 封装后的第一数据报文还可以携带第一 PE设备的 IP地址, 第 一 PE设备的 IP地址和第一 PE设备的 ES的 ESI标签用于向第二 PE设备指 示第一数据报文是第一 PE设备从第一 PE设备的 ES上接收的。
可选地,作为另一个实施例,接收器 1101还可以用于接收第二 PE设备 发送的第一路由信息(包括 ES路由信息或组播路由信息 ), 第一路由信息携 带第二 PE设备的 ES的标识。 进一步地, 处理器 1102还可以用于: 为接收 器 1101接收的第二 PE设备的 ES的标识分配 ESI标签。发送器 1103还可以 用于向第二 PE设备发送第二 ESI标签信息,第二 ESI标签信息包括第二 PE 设备的 ES的标识及处理器 1102为第二 PE设备的 ES的标识分配的 ESI标 签。 第一 PE设备还可以接收第二 PE设备发送的组播路由信息, 可以参考 上述, 此处不再赘述。
可选地, 作为另一个实施例,接收器 1101还可以用于接收第二 PE设备 发送的第三 ESI标签信息, 第三 ESI标签信息携带第二 PE设备的 IP地址、 第二 PE设备的 ES的标识以及第二 PE设备为第二 PE设备的 ES的标识所 分配的 ESI标签。本发明对携带第三 ESI标签信息的协议消息格式定义不作 限定, 可以定义独立的协议消息格式, 也可以直接利用或扩展现有协议消息 格式。
可选地, 作为另一个实施例,接收器 1101还可以用于接收第二 PE设备 发送的第二 ES 自动发现信息, 第二 ES 自动发现信息包括第二 PE设备的 ES的标识。 当然, 第一 PE设备可以预先设置有第二 PE设备的 ES的标识。 应理解,本发明实施例对此并不限定。处理器 1102还可以用于为接收器 1101 接收的第二 PE设备的 ES的标识分配路由标签。 发送器 1103还可以用于向 第二 PE设备发送包括第二 PE设备的 ES的标识以及处理器 1102为第二 PE 设备的 ES的标识分配的路由标签的路由信息。
可选地,作为另一个实施例, 发送器 1103还可以用于向第二 PE设备发 送第三路由信息(包括 ES路由信息或组播路由信息), 第三路由信息携带第 一 PE设备的 ES的标识。 接收器 1101还可以用于接收第二 PE设备发送的 第一 ESI标签信息,第一 ESI标签信息包括发送器 1103发送的第一 PE设备 的 ES的标识及第二 PE设备为第一 PE设备的 ES的标识分配的 ESI标签。 第一 PE设备还可以向第二 PE设备发送组播路由信息, 可以参考上述, 此 处不再赘述。
可选地, 发送器 1103还可以用于向第二 PE设备发送第一 ES自动发现 信息, 第一 ES 自动发现信息包括第一 PE设备的 ES的标识和第一 PE设备 的 ES所属的 VPN的标识, 第一 ES 自动发现信息用于指示第二 PE设备为 第一 PE设备的 ES的标识分配 ES路由标签。
可选地, 第一 PE设备 1100还可以包括存储器 1104, 存储器 1104用于 存储预先设置的各个 PE设备下的每个 ES的 ESI以及相应的 ESI标签, 所 分配的 ESI标签能唯一标识一个 ESI。 或者, 也可以通过全局动态配置方式 获取 ESI标签, 即 ESI标签由标签管理设备为各个 PE设备的 ES的 ESI统 一分配, 所分配的 ESI标签能唯一标识一个 ESI。 其中, 标签管理设备可以 是路由反射器, 也可以是某个 PE设备, 还可以是 SDN的集中控制器等等。 应理解, 本发明实施例对于 PE设备获得路由信息和 ESI标签信息的方式不 作限制。
具体地, 第二 PE设备可以向标签管理设备发送第二 ESI标签分配请求 消息, 第二 ESI标签分配请求消息携带第二 PE设备的 ES的标识。 标签管 理设备为第二 PE设备的 ES的标识分配 ESI标签, 向第一 PE设备和第二 PE设备发送第二 ESI标签分配响应消息。 接收器 1101还可以用于接收标签 管理设备发送的第二 ESI标签分配响应消息, 第二 ESI标签分配响应消息携 带标签管理设备为第二 PE设备的 ES的标识分配的 ESI标签。 这样, 第二 PE设备根据该 ESI标签封装需要转发的数据报文,以及第一 PE设备可以根 据该 ESI标签确定数据报文是从第二 PE设备的哪个 ES上接收的。 可选地, 第二 ESI标签分配请求消息和第二 ESI标签分配响应消息还可以携带第二 PE设备的 ES所属的 VPN的标识, 这样, 当承载网上具有不同的 VPN时, 可以通过 VPN的标识进行区分。
可选地,发送器 1103还可以用于向第二 PE设备发送第四 ESI标签信息, 第四 ESI标签信息携带第一 PE设备的 IP地址、 所述第一 PE设备的 ES的 标识以及所述第一 PE设备为所述第一 PE设备的 ES的标识所分配的 ESI标 签。 同样, 本发明对携带第四 ESI标签信息的协议消息格式定义不作限定, 可以定义独立的协议消息格式, 也可以直接利用或扩展现有协议消息格式。 配请求消息, 第一 ESI标签分配请求消息携带第一 PE设备的 ES的标识。 接收器 1101还可以用于接收标签管理设备发送的第一 ESI标签分配响应消 息,第一 ESI标签分配响应消息携带所述标签管理设备为第一 PE设备的 ES 的标识分配 ESI标签。 这样, 第一 PE设备根据该 ESI标签封装需要转发的 数据报文,以及第二 PE设备可以根据该 ESI标签确定数据报文是从第一 PE 设备的哪个 ES上接收的。 可选地, 第一 ESI标签分配请求消息和第一 ESI 标签分配响应消息还可以携带第一 PE设备的 ES所属的 VPN的标识,这样, 当^载网上具有不同的 VPN时, 可以通过 VPN的标识进行区分。
通过上述技术方案, PE设备之间交换 ES路由信息、 组播路由信息和 ESI标签信息 (对应三层标签方案), 或者, 交换 ES 自动发现信息、 ES路 由信息和组播路由信息(对应两层标签方案), 使得 PE设备在向其它 PE设 备转发数据报文时, 不断能够获取到达目的地所需要的封装信息, 还能够获 取数据报文源自哪个 ES所需要的封装信息, 从而使得该 PE设备从远端 PE 设备接收报文时能够在数据平面利用数据报文封装的标签信息获取报文源 自哪个远端 ES , 建立 MAC地址与远端 ES的关联关系。 因而减少了 PE设 备之间直接在控制平面交换 MAC路由所带来的信令开销, 大大提高了控制 平面的可扩展性。
图 12是本发明另一个实施例的第二 PE设备的示意性结构图。 图 12的 第二 PE设备 1200包括处理器 1201和发送器 1202。
处理器 1201 ,用于对第二数据报文进行封装,封装后的第二数据报文携 带第二标签和第二源 MAC地址。
发送器 1202, 用于向第一 PE设备发送由处理器 1201进行封装后的第 二数据报文, 第二标签用于向第一 PE设备指示第二数据报文是第二 PE设 备从第二 PE设备的 ES上接收的, 第二源 MAC地址用于第一 PE设备建立 第二 PE设备的 ES和第二源 MAC地址的对应关系。
本发明实施例第二 PE设备对发送给第一 PE设备的第二数据报文进行 封装, 封装后的第二数据报文携带第二标签和第二源 MAC地址。 第一 PE 设备接收到该封装后的第二数据报文进行远端 MAC学习, 根据第二标签确 定第二数据报文是第二 PE设备从第二 PE设备的 ES上接收的, 建立第二 PE设备的 ES和第二源 MAC地址的对应关系。 也就是说, 第一 PE设备通 过数据平面进行远端 MAC地址学习,即建立的是远端 ES与远端 MAC地址 的对应关系。 因此, 无需通过控制平面进行 C-MAC信息的交换, 从而减少 了 PE设备之间在控制平面上的信令开销, 提高控制平面的可扩展性。
另夕卜, 当远端 CE多归到远端 PE时, 远端 CE与远端 PE之间的多归链 路被第一 PE设备视为同一远端 ES。 此时, 通过控制平面下发的 ES路由, 本端 PE设备可以通过多个不同的远端 PE到达远端 ES。 同样, 远端 CE可 以通过多归的不同 PE到达本端 PE设备。 这样, 能够实现某些场景下 (如 多归场景多活模式)基于流的负载分担。
第二 PE设备 1200可实现图 3至图 6的方法中涉及第二 PE设备的各个 步骤, 为避免重复, 不再详细描述。
应理解, 第二 PE设备 1200还可以具有第一 PE设备的功能, 具体的实 施方式可以参考上述, 此处不再赘述。
图 13是本发明一个实施例的标签管理设备的示意性结构图。 图 13的标 签管理设备 1300包括接收器 1301 , 处理器 1302和发送器 1303。
接收器 1301 ,用于接收第一 PE设备发送的 ESI标签分配请求消息, ESI 标签分配请求消息携带第一 PE设备的 ES的标识。
处理器 1302,还用于为接收器 1301接收的第一 PE设备的 ES的标识分 配 ESI标签。
发送器 1303, 用于向第一 PE设备发送第一 ESI标签分配响应消息, 向 第二 PE设备发送第二 ESI标签分配响应消息, 第一 ESI标签分配响应消息 和第二 ESI标签分配响应消息均携带分配的 ESI标签, 分配的 ESI标签由第 一 PE设备用于封装需要转发的数据报文, 以及向第二 PE设备指示数据报 文是第一 PE设备从第一 PE设备的 ES上接收的。
标签管理设备 1300可实现图 3至图 6的方法中涉及标签管理设备的各 个步骤, 为避免重复, 不再详细描述。
可选地, ESI标签分配请求消息、 第一 ESI标签分配响应消息以及第二 ESI标签分配响应消息还可以携带第一 PE设备的 ES所属的 VPN的标识。
可选地, 标签管理设备可以是路由反射器, 也可以是某个 PE设备, 还 可以是 SDN网络的集中控制器等等。
因此, 通过标签管理设备分配各个 ES的 ESI标签, 本端 PE设备从某 个 ES上接收数据报文需要向远端 PE设备转发且使用三层标签方案时, 可 以封装该 ES对应的 ESI标签以表示该数据报文源自哪个 ES,也可以从远端 远端 PE设备的哪个 ES上接收的。
具体的实施方式可以参考上述, 此处不再赘述。 本领域普通技术人员可以意识到, 结合本文中所公开的实施例描述的各 示例的单元及算法步骤, 能够以电子硬件、 或者计算机软件和电子硬件的结 合来实现。 这些功能究竟以硬件还是软件方式来执行, 取决于技术方案的特 定应用和设计约束条件。 专业技术人员可以对每个特定的应用来使用不同方 法来实现所描述的功能, 但是这种实现不应认为超出本发明的范围。
所属领域的技术人员可以清楚地了解到, 为描述的方便和筒洁, 上述描 述的系统、 装置和单元的具体工作过程, 可以参考前述方法实施例中的对应 过程, 在此不再赘述。
在本申请所提供的几个实施例中, 应该理解到, 所揭露的系统、 装置和 方法, 可以通过其它的方式实现。 例如, 以上所描述的装置实施例仅仅是示 意性的, 例如, 所述单元的划分, 仅仅为一种逻辑功能划分, 实际实现时可 以有另外的划分方式, 例如多个单元或组件可以结合或者可以集成到另一个 系统, 或一些特征可以忽略, 或不执行。 另一点, 所显示或讨论的相互之间 的耦合或直接耦合或通信连接可以是通过一些接口, 装置或单元的间接耦合 或通信连接, 可以是电性, 机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作 为单元显示的部件可以是或者也可以不是物理单元, 即可以位于一个地方, 或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或 者全部单元来实现本实施例方案的目的。
另外, 在本发明各个实施例中的各功能单元可以集成在一个处理单元 中, 也可以是各个单元单独物理存在, 也可以两个或两个以上单元集成在一 个单元中。
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使 用时, 可以存储在一个计算机可读取存储介质中。 基于这样的理解, 本发明 的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部 分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质 中, 包括若干指令用以使得一台计算机设备(可以是个人计算机, 服务器, 或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。 而前 述的存储介质包括: U盘、移动硬盘、只读存储器( ROM , Read-Only Memory )、 随机存取存储器(RAM, Random Access Memory ), 磁碟或者光盘等各种可 以存储程序代码的介质。 以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不局限 于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易 想到变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护 范围应所述以权利要求的保护范围为准。

Claims

权利要求
1、 一种用于以太虚拟专用网的方法, 其特征在于, 包括:
第一提供商边缘 PE设备接收第二 PE设备发送的第二数据报文, 所述 第二数据报文携带第二标签和第二源媒体接入控制 MAC地址;
所述第一 PE设备根据所述第二标签确定所述第二数据报文是所述第二 PE设备从所述第二 PE设备的以太网段 ES上接收的, 建立所述第二 PE设 备的 ES和所述第二源 MAC地址的对应关系。
2、 如权利要求 1所述的方法, 其特征在于, 所述方法还包括: 所述第一 PE设备根据所述第二标签将所述第二数据报文通过所述第一 PE设备的 ES进行转发。
3、 如权利要求 2所述的方法, 其特征在于, 所述第二标签包括所述第 一 PE设备的 ES的 ES路由标签,
所述第一 PE设备根据所述第二标签将所述第二数据报文通过所述第一 PE设备的 ES进行转发, 包括:
所述第一 PE设备根据所述第一 PE设备的 ES的 ES路由标签将所述第 二数据报文通过所述第一 PE设备的 ES进行转发, 所述第一 PE设备的 ES 的 ES路由标签是由所述第一 PE设备接收所述第二数据报文前发布给所述 第二 PE设备的。
4、 如权利要求 1所述的方法, 其特征在于, 所述方法还包括: 所述第一 PE设备根据所述第二标签将所述第二数据报文分别通过所述 第一 PE设备的多个 ES进行转发。
5、 如权利要求 4所述的方法, 其特征在于, 所述第二标签包括用于指 示所述第二数据报文的出接口为所述第一 PE设备的多个 ES的第一组播路 由标签,
所述第一 PE设备根据所述第二标签将所述第二数据报文分别通过所述 第一 PE设备的多个 ES进行转发, 包括:
所述第一 PE设备根据所述第一组播路由标签将所述第二数据报文分别 通过所述第一 PE设备的多个 ES进行转发。
6、 如权利要求 1-5 中任一项所述的方法, 其特征在于, 所述第二标签 包括所述第二 PE设备的 ES的以太网段标识 ESI标签,
所述第一 PE设备根据所述第二标签确定所述第二数据报文是所述第二 PE设备从所述第二 PE设备的以太网段 ES上接收的, 包括: 所述第一 PE设备根据所述第二 PE设备的 ES的 ESI标签确定所述第二 数据报文是所述第二 PE设备从所述第二 PE设备的 ES上接收的。
7、 如权利要求 6所述的方法, 其特征在于, 所述第二数据报文是由所 述第二 PE设备经因特网协议 IP隧道发送的,所述第二数据报文还携带所述 第二 PE设备的 IP地址,
所述第一 PE设备根据所述第二标签确定所述第二数据报文是所述第二 PE设备从所述第二 PE设备的以太网段 ES上接收的, 包括:
所述第一 PE设备根据所述第二 PE设备的 IP地址和所述第二 PE设备 的 ES的 ESI标签确定所述第二数据报文是所述第二 PE设备从所述第二 PE 设备的 ES上接收的。
8、 如权利要求 1-7任一项所述的方法, 其特征在于, 所述方法还包括: 所述第一 PE设备从所述第一 PE的 ES上接收客户边缘 CE设备发送的 第一数据报文;
所述第一 PE设备根据所述第一数据报文建立所述第一 PE的 ES和所述 第一数据报文携带的第一源 MAC地址的对应关系。
9、 如权利要求 8所述的方法, 其特征在于, 所述方法还包括: 所述第一 PE设备确定所述第一数据报文的出接口, 将所述第一数据报 文通过所述第一数据报文的出接口进行转发。
10、 如权利要求 9所述的方法, 其特征在于, 在所述第一数据报文为单 播报文且所述第一 PE设备将所述第一数据报文进行转发前已建立所述第一 数据报文携带的第一目的 MAC地址与所述第一数据报文的出接口的对应关 系的情况下,
当所述第一 PE设备确定的所述第一数据报文的出接口为所述第一 PE 设备的其它 ES中的一个 ES, 则通过所述第一数据报文的出接口进行转发; 或者
当所述第一 PE设备确定的所述第一数据报文的出接口是所述第二 PE 设备的 ES, 则对所述第一数据报文进行封装, 向所述第二 PE设备发送所述 封装后的第一数据报文, 所述封装后的第一数据报文携带第一标签, 所述第 一标签用于向所述第二 PE设备指示所述第一数据报文是所述第一 PE设备 从所述第一 PE设备的 ES上接收的并需要通过所述第二 PE设备的 ES转发 出去。
11、 如权利要求 10所述的方法, 其特征在于, 所述第一标签包括所述 第二 PE设备的 ES的 ES路由标签和所述第一 PE设备的 ES的 ESI标签, 所述第二 PE设备的 ES的 ES路由标签由所述第二 PE设备用于确定所述第 一数据报文需要通过所述第二 PE设备的 ES进行转发,且所述第二 PE设备 的 ES的 ES路由标签是由所述第二 PE设备在所述第一 PE设备将所述第一 数据报文进行转发前发布给所述第一 PE设备的, 所述第一 PE设备的 ES的 ESI标签用于向所述第二 PE设备指示所述第一数据报文是所述第一 PE设备 从所述第一 PE设备的 ES上接收的。
12、 如权利要求 9所述的方法, 其特征在于, 在所述第一数据报文为广 播或组播报文的情况下, 或者在所述第一数据报文为单播报文且所述第一 PE设备将所述第一数据报文进行转发前未建立所述第一数据报文携带的第 一目的 MAC地址与所述第一数据报文的出接口的对应关系的情况下,
所述第一 PE设备确定用于转发所述第一数据报文的至少一个目标出接 口;
当所述至少一个目标出接口是所述第一 PE设备的出接口, 则所述第一 PE设备将所述第一数据报文通过所述至少一个目标出接口进行转发; 或者 当所述至少一个目标出接口是多个目标出接口, 并且所述多个目标出接 口是所述第二 PE设备的出接口, 则所述第一 PE设备对所述第一数据报文 进行封装, 所述封装后的第一数据报文携带第一标签, 所述第一 PE设备经 由公网隧道将所述封装后的第一数据报文转发给所述第二 PE设备, 所述第 一标签用于向所述第二 PE设备指示所述第一数据报文是第一 PE设备从所 述第一 PE设备的 ES上接收的并需要通过所述第二 PE设备的多个 ES进行 转发。
13、 如权利要求 12所述的方法, 其特征在于, 所述第一标签包括用于 指示所述第一数据报文的出接口为所述第二 PE设备的多个 ES的第二组播 路由标签和所述第一 PE设备的 ES的 ESI标签, 所述第二组播路由标签由 所述第二 PE设备用于确定所述第一数据报文需要通过所述第二 PE设备的 多个 ES进行转发, 所述第一 PE设备的 ES的 ESI标签用于向所述第二 PE 设备指示所述第一数据报文是所述第一 PE设备从所述第一 PE设备的 ES上 接收的。
14、 如权利要求 11或 13所述的方法, 其特征在于, 所述封装后的第一 数据报文还携带所述第一 PE设备的 IP地址,所述第一 PE设备的 IP地址和 所述第一 PE设备的 ES的 ESI标签用于向所述第二 PE设备指示所述第一数 据报文是所述第一 PE设备从所述第一 PE设备的 ES上接收的。
15、 如权利要求 1-14任一项所述的方法, 其特征在于, 在第一 PE设备 接收第二 PE设备发送的第二数据报文之前, 所述方法还包括:
所述第一 PE设备接收所述第二 PE设备发送的第一路由信息, 所述第 一路由信息携带所述第二 PE设备的 ES的标识。
16、 如权利要求 15所述的方法, 其特征在于, 所述方法还包括: 所述第一 PE设备为所述第二 PE设备的 ES的标识分配 ESI标签; 所述第一 PE设备向所述第二 PE设备发送第二 ESI标签信息, 所述第 二 ESI标签信息包括所述第二 PE设备的 ES的标识及所述第一 PE设备为所 述第二 PE设备的 ES的标识分配的 ESI标签。
17、 如权利要求 1-15任一项所述的方法, 其特征在于, 在第一 PE设备 接收第二 PE设备发送的第二数据报文之前, 所述方法还包括:
所述第一 PE设备接收所述第二 PE设备发送的第三 ESI标签信息, 所 述第三 ESI标签信息携带所述第二 PE设备的 IP地址、 所述第二 PE设备的 ES的标识以及所述第二 PE设备为所述第二 PE设备的 ES的标识所分配的 ESI标签。
18、 如权利要求 1-15任一项所述的方法, 其特征在于, 在第一 PE设备 接收第二 PE设备发送的第二数据报文之前, 所述方法还包括:
所述第一 PE设备接收标签管理设备发送的第二 ESI标签分配响应消息, 所述第二 ESI标签分配响应消息携带所述标签管理设备为所述第二 PE设备 的 ES的标识分配的 ESI标签。
19、 如权利要求 1-15任一项所述的方法, 其特征在于, 所述第一 PE设 备预先设置有所述第二 PE设备的 ES的标识及对应的 ESI标签。
20、 如权利要求 1-14任一项所述的方法, 其特征在于, 在第一 PE设备 接收第二 PE设备发送的第二数据报文之前, 所述方法还包括:
所述第一 PE设备为所述第二 PE设备的 ES的标识分配 ES路由标签; 所述第一 PE设备向所述第二 PE设备发送包括所述第二 PE设备的 ES 的标识以及所述第一 PE设备为所述第二 PE设备的 ES的标识分配的 ES路 由标签的路由信息。
21、 如权利要求 20所述的方法, 其特征在于, 在所述第一 PE设备为所 述第二 PE设备的 ES的标识分配 ES路由标签之前,
所述第一 PE设备接收第二 PE设备发送的第二 ES自动发现信息, 所述 第二 ES 自动发现信息包括所述第二 PE设备的 ES的标识和所述第二 PE设 备的 ES所属的虚拟专用网 VPN的标识。
22、 如权利要求 1-21任一项所述的方法, 其特征在于, 在所述第一 PE 设备接收第二 PE设备发送的第二数据报文之前, 所述方法还包括:
所述第一 PE设备向所述第二 PE设备发送第三路由信息, 所述第三路 由信息携带所述第一 PE设备的 ES的标识。
23、 如权利要求 22所述的方法, 其特征在于, 所述方法还包括: 所述第一 PE设备接收所述第二 PE设备发送的第一 ESI标签信息, 所 述第一 ESI标签信息包括所述第一 PE设备的 ES的标识及所述第二 PE设备 为所述第一 PE设备的 ES的标识分配的 ESI标签。
24、 如权利要求 1-22任一项所述的方法, 其特征在于, 在所述第一 PE 设备接收第二 PE设备发送的第二数据报文之前, 所述方法还包括:
所述第一 PE设备向所述第二 PE设备发送第四 ESI标签信息, 所述第 四 ESI标签信息携带所述第一 PE设备的 IP地址、 所述第一 PE设备的 ES 的标识以及所述第一 PE设备为所述第一 PE设备的 ES的标识所分配的 ESI 标签。
25、 如权利要求 1-24任一项所述的方法, 其特征在于, 在第一 PE设备 接收第二 PE设备发送的第二数据报文之前, 所述方法还包括:
所述第一 PE设备向标签管理设备发送第一 ESI标签分配请求消息, 所 述第一 ESI标签分配请求消息携带所述第一 PE设备的 ES的标识;
所述第一 PE设备接收所述标签管理设备发送的第一 ESI标签分配响应 消息, 所述第一 ESI 标签分配响应消息携带所述标签管理设备为所述第一 PE设备的 ES的标识分配的 ESI标签。
26、 如权利要求 1-21任一项所述的方法, 其特征在于, 在第一 PE设备 接收第二 PE设备发送的第二数据报文之前, 所述方法还包括:
所述第一 PE设备接收所述第二 PE设备发送的包括所述第一 PE设备的 ES的标识以及所述第二 PE设备为所述第一 PE设备的 ES的标识分配的 ES 路由标签的路由信息。
27、 如权利要求 26所述的方法, 其特征在于, 在所述第一 PE设备接收 所述第二 PE设备发送的包括所述第一 PE设备的 ES的标识以及所述第二 PE设备为所述第一 PE设备的 ES的标识分配的 ES路由标签的路由信息之 前, 所述方法还包括:
所述第一 PE设备向第二 PE设备发送第一 ES自动发现信息, 所述第一 ES 自动发现信息包括所述第一 PE设备的 ES的标识和所述第一 PE设备的 ES所属的 VPN的标识, 所述第一 ES 自动发现信息用于指示所述第二 PE 设备为所述第一 PE设备的 ES的标识分配 ES路由标签。
28、 一种用于以太虚拟专用网的方法, 其特征在于, 包括:
第二提供商边缘 PE设备对第二数据报文进行封装, 所述封装后的第二 数据报文携带第二标签和第二源媒体接入控制 MAC地址;
所述第二 PE设备向第一 PE设备发送所述封装后的第二数据报文, 所 述第二标签用于向所述第一 PE设备指示所述第二数据报文是所述第二 PE 设备从所述第二 PE设备的以太网段 ES上接收的, 所述封装后的第二数据 报文用于使能所述第一 PE设备建立所述第二 PE设备的 ES和所述第二源 MAC地址的对应关系。
29、 一种用于以太虚拟专用网的方法, 其特征在于, 包括:
标签管理设备接收第一提供商边缘 PE设备发送的以太网段标识 ESI标 签分配请求消息, 所述 ESI标签分配请求消息携带所述第一 PE设备的以太 网段 ES的标识;
所述标签管理设备为所述第一 PE设备的 ES的标识分配 ESI标签; 所述标签管理设备向所述第一 PE设备发送第一 ESI标签分配响应消息, 并向所述第二 PE设备发送第二 ESI标签分配响应消息, 所述第一 ESI标签 分配响应消息和所述第二 ESI标签分配响应消息均携带所述分配的 ESI标 签, 所述分配的 ESI标签由所述第一 PE设备用于封装从所述第一 PE设备 的 ES上接收的并且需要转发的数据报文, 以及向所述第二 PE设备指示所 述数据报文是所述第一 PE设备从所述第一 PE设备的 ES上接收的。
30、 如权利要求 29所述的方法, 其特征在于, 所述 ESI标签分配请求 消息还携带所述第一 PE设备的 ES所属的以太虚拟专用网 VPN的标识, 所 述第一 ESI标签分配响应消息还携带所述第一 PE设备的 ES所属的 VPN的 标识, 以及所述第二 ESI标签分配响应消息还携带所述第一 PE设备的 ES 所属的 VPN的标识。
31、 如权利要 29或 30所述的方法, 其特征在于, 所述标签管理设备为 路由反射器或 PE设备或集中控制器。
32、 一种第一提供商边缘 PE设备, 包括:
接收单元, 用于接收第二 PE设备发送的第二数据报文, 所述第二数据 报文携带第二标签和第二源媒体接入控制 MAC地址;
确定单元, 用于根据所述接收单元接收的所述第二数据报文携带的所述 第二标签确定所述第二数据报文是所述第二 PE设备从所述第二 PE设备的 以太网段 ES上接收的;
建立单元, 用于建立所述确定单元确定的所述第二 PE设备的 ES和所 述接收单元接收的所述第二源 MAC地址的对应关系。
33、 如权利要求 32所述的第一 PE设备, 其特征在于,
所述第一 PE设备还包括第一发送单元,
所述第一发送单元, 用于根据所述接收单元接收的所述第二数据报文携 带的所述第二标签将所述第二数据报文通过所述第一 PE设备的 ES进行转 发。
34、 如权利要求 33所述的第一 PE设备, 其特征在于, 所述第二标签包 括所述第一 PE设备的 ES的 ES路由标签,
所述第一发送单元具体用于: 根据所述第一 PE设备的 ES的 ES路由标 签将所述第二数据报文通过所述第一 PE设备的 ES进行转发, 所述第一 PE 设备的 ES的 ES路由标签是由所述第一 PE设备接收所述第二数据报文前发 布给所述第二 PE设备的。
35、 如权利要求 32所述的第一 PE设备, 其特征在于,
所述第一 PE设备还包括第二发送单元,
所述第二发送单元, 用于根据所述接收单元接收的所述第二标签将所述 第二数据报文分别通过所述第一 PE设备的多个 ES进行转发。
36、 如权利要求 35所述的第一 PE设备, 其特征在于, 所述第二标签包 括用于指示所述第二数据报文的出接口为所述第一 PE设备的多个 ES的第 一组播路由标签,
所述第二发送单元具体用于: 根据所述第一组播路由标签将所述第二数 据报文分别通过所述第一 PE设备的多个 ES进行转发。
37、 如权利要求 32-36任一项所述的第一 PE设备, 其特征在于, 所述 第二标签包括所述第二 PE设备的 ES的以太网段标识 ESI标签,
所述确定单元具体用于: 根据所述第二 PE设备的 ES的 ESI标签确定 所述第二数据报文是所述第二 PE设备从所述第二 PE设备的 ES上接收的。
38、 如权利要求 37所述的第一 PE设备, 其特征在于, 所述第二数据报 文是由所述第二 PE设备经因特网协议 IP隧道发送的,所述第二数据报文还 携带所述第二 PE设备的 IP地址,
所述确定单元具体用于: 根据所述第二 PE设备的 IP地址和所述第二 PE设备的 ES的 ESI标签确定所述第二数据报文是所述第二 PE设备从所述 第二 PE设备的 ES上接收的。
39、 如权利要求 32-38任一项所述的第一 PE设备, 其特征在于, 所述接收单元还用于:从所述第一 PE设备的 ES上接收客户边缘 CE设 备发送的第一数据报文;
所述建立单元还用于: 根据所述接收单元接收的所述第一数据报文建立 所述第一 PE的 ES和所述第一数据报文携带的第一源 MAC地址的对应关 系。
40、 如权利要求 39所述的第一 PE设备, 其特征在于,
所述确定单元还用于: 确定所述接收单元接收的所述第一数据报文的出 接口;
所述第一 PE设备还包括第三发送单元,
所述第三发送单元, 用于将所述第一数据报文通过所述确定单元确定的 所述第一数据报文的出接口进行转发。
41、 如权利要求 40所述的第一 PE设备, 其特征在于, 在所述第一数据 报文为单播报文且所述第一 PE设备将所述第一数据报文进行转发前已建立 所述第一数据报文携带的第一目的 MAC地址与所述第一数据报文的出接口 的对应关系的情况下,
所述第三发送单元具体用于: 当所述确定单元确定的所述第一数据报文 的出接口为所述第一 PE设备的其它 ES中的一个 ES, 则通过所述第一数据 报文的出接口进行转发; 或者
所述第三发送单元具体用于: 当所述确定单元确定的所述第一数据报文 的出接口是所述第二 PE设备的 ES, 则对所述第一数据报文进行封装, 向所 述第二 PE设备发送所述封装后的第一数据报文, 所述封装后的第一数据报 文携带第一标签, 所述第一标签用于向所述第二 PE设备指示所述第一数据 报文是所述第一 PE设备从所述第一 PE设备的 ES上接收的并需要通过所述 第二 PE设备的 ES转发出去。
42、 如权利要求 41所述的第一 PE设备, 其特征在于, 所述第一标签包 括所述第二 PE设备的 ES的 ES路由标签和所述第一 PE设备的 ES的 ESI 标签, 所述第二 PE设备的 ES的 ES路由标签由所述第二 PE设备用于确定 所述第一数据报文需要通过所述第二 PE设备的 ES进行转发, 且所述第二 PE设备的 ES的 ES路由标签是由所述第二 PE设备在所述第一 PE设备将所 述第一数据报文进行转发前发布给所述第一 PE设备的, 所述第一 PE设备 的 ES的 ESI标签用于向所述第二 PE设备指示所述第一数据报文是所述第 一 PE设备从所述第一 PE设备的 ES上接收的。
43、 如权利要求 39所述的第一 PE设备, 其特征在于, 在所述第一数据 报文为广播或组播报文的情况下, 或者在所述第一数据报文为单播报文且所 述第一 PE设备将所述第一数据报文进行转发前未建立所述第一数据报文携 带的第一目的 MAC 地址与所述第一数据报文的出接口的对应关系的情况 下,
所述确定单元还用于: 确定用于转发所述第一数据报文的至少一个目标 出接口;
所述第三发送单元具体用于: 当所述确定单元确定的所述至少一个目标 出接口是所述第一 PE设备的出接口, 则将所述第一数据报文通过所述至少 一个目标出接口进行转发; 或者
所述第三发送单元具体用于: 当所述确定单元确定所述至少一个目标出 接口是多个目标出接口, 并且所述多个目标出接口是所述第二 PE设备的出 接口, 则对所述第一数据报文进行封装, 所述封装后的第一数据报文携带第 一标签, 经由公网隧道转发给所述第二 PE设备, 所述第一标签用于向所述 第二 PE设备指示所述第一数据报文是第一 PE设备从所述第一 PE设备的 ES上接收的并需要通过所述第二 PE设备的多个 ES进行转发。
44、 如权利要求 43所述的第一 PE设备, 其特征在于, 所述第一标签包 括用于指示所述第一数据报文的出接口为所述第二 PE设备的多个 ES的第 二组播路由标签和所述第一 PE设备的 ES的 ESI标签, 所述第二组播路由 标签由所述第二 PE设备用于确定所述第一数据报文需要通过所述第二 PE 设备的多个 ES进行转发, 所述第一 PE设备的 ES的 ESI标签用于向所述第 二 PE设备指示所述第一数据报文是所述第一 PE设备从所述第一 PE设备的 ES上接收的。
45、 如权利要求 42或 44所述的第一 PE设备, 其特征在于, 所述封装 后的第一数据报文还携带所述第一 PE设备的 IP地址, 所述第一 PE设备的 IP地址和所述第一 PE设备的 ES的 ESI标签用于向所述第二 PE设备指示所 述第一数据报文是所述第一 PE设备从所述第一 PE设备的 ES上接收的。
46、 如权利要求 32-45任一项所述的第一 PE设备, 其特征在于, 所述接收单元还用于: 接收所述第二 PE设备发送的第一路由信息, 所 述第一路由信息携带所述第二 PE设备的 ES的标识。
47、 如权利要求 46所述的第一 PE设备, 其特征在于,
所述建立单元还用于: 为所述接收单元接收的所述第二 PE设备的 ES 的标识分配 ESI标签;
所述第一 PE设备还包括第四发送单元,
所述第四发送单元, 用于向所述第二 PE设备发送第二 ESI标签信息, 所述第二 ESI标签信息包括所述第二 PE设备的 ES的标识及所述建立单元 为所述第二 PE设备的 ES的标识分配的 ESI标签。
48、 如权利要求 32-46所述的第一 PE设备, 其特征在于,
所述接收单元,还用于接收所述第二 PE设备发送的第三 ESI标签信息, 所述第三 ESI标签信息携带所述第二 PE设备的 IP地址、 所述第二 PE设备 的 ES的标识以及所述第二 PE设备为所述第二 PE设备的 ES的标识所分配 的 ESI标签。
49、 如权利要求 32-46任一项所述的第一 PE设备, 其特征在于, 所述接收单元还用于: 接收标签管理设备发送的第二 ESI标签分配响应 消息, 所述第二 ESI 标签分配响应消息携带所述标签管理设备为所述第二 PE设备的 ES的标识分配的 ESI标签。
50、 如权利要求 32-46任一项所述的第一 PE设备, 其特征在于, 所述 第一 PE设备还包括存储单元,
所述存储单元, 用于存储预先设置的所述第二 PE设备的 ES的标识及 对应的 ESI标签。
51、 如权利要求 32-45任一项所述的第一 PE设备, 其特征在于, 所述建立单元还用于: 为所述第二 PE设备的 ES的标识分配 ES路由标 签;
所述第一 PE设备还包括第五发送单元,
所述第五发送单元, 用于向所述第二 PE设备发送包括所述第二 PE设 备的 ES的标识以及所述建立单元为所述第二 PE设备的 ES的标识分配的 ES路由标签的路由信息。
52、 如权利要求 51所述的第一 PE设备, 其特征在于,
所述接收单元还用于: 接收第二 PE设备发送的第二 ES自动发现信息, 所述第二 ES 自动发现信息包括所述第二 PE设备的 ES的标识和所述第二 PE设备的 ES所属的以太虚拟专用网 VPN的标识。
53、 如权利要求 32-52任一项所述的第一 PE设备, 其特征在于, 所述第一 PE设备还包括第六发送单元,
所述第六发送单元, 用于向所述第二 PE设备发送第三路由信息, 所述 第三路由信息携带所述第一 PE设备的 ES的标识。
54、 如权利要求 53所述的第一 PE设备, 其特征在于,
所述接收单元还用于:接收所述第二 PE设备发送的第一 ESI标签信息, 所述第一 ESI标签信息包括所述第一 PE设备的 ES的标识及所述第二 PE设 备为所述第一 PE设备的 ES的标识分配的 ESI标签。
55、 如权利要求 32-53任一项所述的第一 PE设备, 其特征在于, 所述第一 PE设备还包括第九发送单元,
所述第九发送单元, 用于向所述第二 PE设备发送第四 ESI标签信息, 所述第四 ESI标签信息携带所述第一 PE设备的 IP地址、 所述第一 PE设备 的 ES的标识以及所述第一 PE设备为所述第一 PE设备的 ES的标识所分配 的 ESI标签。
56、 如权利要求 32-55任一项所述的第一 PE设备, 其特征在于, 所述第一 PE设备设备还包括第七发送单元,
所述第七发送单元, 用于向标签管理设备发送第一 ESI标签分配请求消 息, 所述第一 ESI标签分配请求消息携带所述第一 PE设备的 ES的标识; 所述接收单元, 用于接收所述标签管理设备发送的第一 ESI标签分配响 应消息, 所述第一 ESI标签分配响应消息携带所述标签管理设备为所述第一 PE设备的 ES的标识分配的 ESI标签。
57、 如权利要求 32-52任一项所述的第一 PE设备, 其特征在于, 所述接收单元还用于: 接收所述第二 PE设备发送的包括所述第一 PE 设备的 ES的标识以及所述第二 PE设备为所述第一 PE设备的 ES的标识分 配的 ES路由标签的路由信息。
58、 如权利要求 57所述的第一 PE设备, 其特征在于,
所述第一 PE设备设备还包括第八发送单元,
所述第八发送单元, 用于向第二 PE设备发送第一 ES 自动发现信息, 所述第一 ES 自动发现信息包括所述第一 PE设备的 ES的标识和所述第一 PE设备的 ES所属的 VPN的标识,所述第一 ES自动发现信息用于指示所述 第二 PE设备为所述第一 PE设备的 ES的标识分配 ES路由标签。
59、 一种第二提供商边缘 PE设备, 其特征在于, 包括:
封装单元, 用于对第二数据报文进行封装, 所述封装后的第二数据报文 携带第二标签和第二源 MAC地址;
发送单元, 用于向第一 PE设备发送由所述封装单元生成的所述封装后 的第二数据报文, 所述第二标签用于向所述第一 PE设备指示所述第二数据 报文是所述第二 PE设备从所述第二 PE设备的以太网段 ES上接收的, 所述 封装后的第二数据报文用于使能所述第一 PE设备建立所述第二 PE设备的 ES和所述第二源 MAC地址的对应关系。
60、 一种标签管理设备, 其特征在于, 包括:
接收单元, 用于接收第一提供商边缘 PE设备发送的以太网段标识 ESI 标签分配请求消息, 所述 ESI标签分配请求消息携带所述第一 PE设备的以 太网段 ES的标识;
分配单元, 用于为所述接收单元接收的所述 ESI标签分配请求消息中携 带的所述第一 PE设备的 ES的标识分配 ESI标签;
发送单元, 用于向所述第一 PE设备发送第一 ESI标签分配响应消息, 并向所述第二 PE设备发送第二 ESI标签分配响应消息, 所述第一 ESI标签 分配响应消息和所述第二 ESI标签分配响应消息均携带所述分配的 ESI标 签, 所述分配的 ESI标签由所述第一 PE设备用于封装从所述第一 PE设备 的 ES上接收的并且需要转发的数据报文, 以及向所述第二 PE设备指示所 述数据报文是所述第一 PE设备从所述第一 PE设备的 ES上接收的。
61、 如权利要求 60所述的标签管理设备, 其特征在于, 所述 ESI标签 分配请求消息还携带所述第一 PE设备的 ES所属的以太虚拟专用网 VPN的 标识, 所述第一 ESI标签分配响应消息还携带所述第一 PE设备的 ES所属 的 VPN的标识,以及所述第二 ESI标签分配响应消息还携带所述第一 PE设 备的 ES所属的 VPN的标识。
62、 如权利要求 60或 61所述的标签管理设备, 其特征在于, 所述标签 管理设备为路由反射器或 PE设备或集中控制器。
PCT/CN2013/076204 2013-05-24 2013-05-24 用于以太虚拟专用网的方法和设备 WO2014186978A1 (zh)

Priority Applications (6)

Application Number Priority Date Filing Date Title
EP20206842.5A EP3863233B1 (en) 2013-05-24 Method and device used for ethernet virtual private network
EP13885138.1A EP2991284B1 (en) 2013-05-24 2013-05-24 Method and device used in ethernet virtual private network
CN202110594975.1A CN113542093A (zh) 2013-05-24 2013-05-24 用于以太虚拟专用网的方法和设备
CN201380000487.7A CN104365066B (zh) 2013-05-24 2013-05-24 用于以太虚拟专用网的方法和设备
PCT/CN2013/076204 WO2014186978A1 (zh) 2013-05-24 2013-05-24 用于以太虚拟专用网的方法和设备
CN201711084509.9A CN108063716B (zh) 2013-05-24 2013-05-24 用于以太虚拟专用网的方法和设备

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2013/076204 WO2014186978A1 (zh) 2013-05-24 2013-05-24 用于以太虚拟专用网的方法和设备

Publications (1)

Publication Number Publication Date
WO2014186978A1 true WO2014186978A1 (zh) 2014-11-27

Family

ID=51932734

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/076204 WO2014186978A1 (zh) 2013-05-24 2013-05-24 用于以太虚拟专用网的方法和设备

Country Status (3)

Country Link
EP (1) EP2991284B1 (zh)
CN (3) CN108063716B (zh)
WO (1) WO2014186978A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111490937A (zh) * 2019-01-28 2020-08-04 华为技术有限公司 一种建立跨域转发路径的方法、装置及系统

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111510378A (zh) * 2017-03-14 2020-08-07 华为技术有限公司 Evpn报文处理方法、设备及系统
CN108574630B (zh) * 2017-03-14 2020-06-02 华为技术有限公司 Evpn报文处理方法、设备及系统
CN108696414A (zh) * 2017-04-05 2018-10-23 中兴通讯股份有限公司 多归接入方法、装置及多归属节点
CN109861926B (zh) * 2017-11-30 2023-02-07 中兴通讯股份有限公司 报文的发送、处理方法、装置、节点、处理系统和介质
WO2019134067A1 (en) 2018-01-02 2019-07-11 Telefonaktiebolaget Lm Ericsson (Publ) Controlling device and method implemented thereon for ethernet virtual private network
CN110035012B (zh) * 2018-12-25 2021-09-14 中国银联股份有限公司 基于sdn的vpn流量调度方法以及基于sdn的vpn流量调度系统
CN115567441A (zh) * 2019-11-05 2023-01-03 华为技术有限公司 一种用于生成转发信息的方法、装置和系统
CN111083033B (zh) * 2019-12-20 2021-09-24 瑞斯康达科技发展股份有限公司 基于多协议标签交换协议的三层虚拟专用网
CN118055017A (zh) * 2022-11-16 2024-05-17 中兴通讯股份有限公司 一种以太网段标识符处理方法及装置

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070076709A1 (en) * 2005-07-01 2007-04-05 Geoffrey Mattson Apparatus and method for facilitating a virtual private local area network service with realm specific addresses
CN101345715A (zh) * 2008-08-28 2009-01-14 中兴通讯股份有限公司 基于vpls双归属网络的mac地址学习方法及系统
CN102932499A (zh) * 2012-11-01 2013-02-13 杭州华三通信技术有限公司 Vpls网络中的mac地址学习方法及设备

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101047601B (zh) * 2006-04-10 2010-12-01 华为技术有限公司 基于vpls的双归属网络的实现方法及系统
US7782763B2 (en) * 2007-03-13 2010-08-24 Alcatel Lucent Failure protection in a provider backbone bridge network using forced MAC flushing
MY152345A (en) * 2007-09-28 2014-09-15 Interdigital Patent Holdings Method and apparatus for layer 2 processing and creation of protocol data units for wireless communications
CN102045242B (zh) * 2009-10-21 2012-08-08 华为技术有限公司 网络通信方法和网络节点设备
US8767731B2 (en) * 2010-05-19 2014-07-01 Alcatel Lucent Method and apparatus for MPLS label allocation for a BGP MAC-VPN
CN102769574B (zh) * 2012-08-06 2015-04-08 华为技术有限公司 一种能够进行业务硬件加速的装置及其方法

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070076709A1 (en) * 2005-07-01 2007-04-05 Geoffrey Mattson Apparatus and method for facilitating a virtual private local area network service with realm specific addresses
CN101345715A (zh) * 2008-08-28 2009-01-14 中兴通讯股份有限公司 基于vpls双归属网络的mac地址学习方法及系统
CN102932499A (zh) * 2012-11-01 2013-02-13 杭州华三通信技术有限公司 Vpls网络中的mac地址学习方法及设备

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP2991284A4 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111490937A (zh) * 2019-01-28 2020-08-04 华为技术有限公司 一种建立跨域转发路径的方法、装置及系统

Also Published As

Publication number Publication date
CN108063716B (zh) 2021-08-31
CN104365066B (zh) 2017-11-24
CN113542093A (zh) 2021-10-22
EP2991284A1 (en) 2016-03-02
CN108063716A (zh) 2018-05-22
EP2991284A4 (en) 2016-07-20
EP3863233A1 (en) 2021-08-11
EP2991284B1 (en) 2020-12-16
CN104365066A (zh) 2015-02-18

Similar Documents

Publication Publication Date Title
KR102447132B1 (ko) 멀티 캐스트 데이터 전송 방법, 관련 장치 및 시스템
US10484203B2 (en) Method for implementing communication between NVO3 network and MPLS network, and apparatus
CN108063716B (zh) 用于以太虚拟专用网的方法和设备
EP3595248B1 (en) Static route advertisement
US10911262B2 (en) Deterministic forwarding across L2 and L3 networks
US7990963B1 (en) Exchange of control information for virtual private local area network (LAN) service multicast
WO2015165311A1 (zh) 传输数据报文的方法和供应商边缘设备
WO2021196717A1 (zh) 组播流量传输方法、装置、通信节点及存储介质
WO2014194711A1 (zh) 报文处理方法、设备标签处理方法及设备
WO2011047598A1 (zh) 网络通信方法和网络节点设备
WO2012106935A1 (zh) 数据通信网络配置方法、网关网元及数据通信系统
WO2017113772A1 (zh) 一种标签管理方法,数据流处理方法及设备
WO2019205836A1 (zh) 一种数据报文转发的方法及装置
WO2013139270A1 (zh) 实现三层虚拟专用网络的方法、设备及系统
WO2011054263A1 (zh) 一种三层虚拟专用网(vpn)的接入方法和接入系统
CN102571375B (zh) 组播转发方法、装置及网络设备
WO2015180120A1 (zh) 报文转发方法、转发表项下发方法及网络设备
US9521072B2 (en) Method and network device for distributing multi-protocol label switching labels
WO2013143275A1 (zh) 数据流的处理方法和系统以及设备
EP3863233B1 (en) Method and device used for ethernet virtual private network
Kumaki et al. Support for Resource Reservation Protocol Traffic Engineering (RSVP-TE) in Layer 3 Virtual Private Networks (L3VPNs)
CN113839873A (zh) 信息处理方法、节点及存储介质
Uttaro et al. BESS Workgroup J. Rabadan, Ed. Internet Draft S. Palislamovic W. Henderickx Intended status: Informational Nokia

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: 13885138

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 2013885138

Country of ref document: EP