WO2017036384A1 - Équipement de bordure de fournisseur et procédé de transfert de données - Google Patents
Équipement de bordure de fournisseur et procédé de transfert de données Download PDFInfo
- Publication number
- WO2017036384A1 WO2017036384A1 PCT/CN2016/097378 CN2016097378W WO2017036384A1 WO 2017036384 A1 WO2017036384 A1 WO 2017036384A1 CN 2016097378 W CN2016097378 W CN 2016097378W WO 2017036384 A1 WO2017036384 A1 WO 2017036384A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- edge device
- mac address
- data packet
- carrier
- ethernet segment
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/02—Topology update or discovery
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/24—Multipath
- H04L45/245—Link aggregation, e.g. trunking
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/74—Address processing for routing
- H04L45/745—Address table lookup; Address filtering
Definitions
- the present application relates to the field of communications, and in particular, to an operator edge device and a data forwarding method.
- PBB EVPN Provider Backbone Bridging Ethernet Virtual Private Network
- B-MAC backbone media access control
- C-MAC Customer Media Access Control
- FIG. 1 shows an architectural diagram of a typical PBB EVPN network environment.
- the network environment includes at least the following network devices: a first customer edge (CE) device 110 (CE1), a second customer edge device 120 (CE2), and a first carrier edge (English: provider edge, PE) Device 130 (PE1), second carrier edge device 140 (PE2), and second carrier edge device 150 (PE3).
- PE1, PE2, and PE3 are configured with the PBB EVPN instance, and the PE device runs the Border Gateway Protocol (English name: Border Gateway Protocol, BGP).
- the CE1 uses link aggregation (link aggregation) and at least two of PE1 and PE2.
- the PE devices are connected, and the CE2 is connected to at least one PE including the PE3.
- the B-MAC address assigned to CE1 by PE1 and PE2 is B-MAC1, and the B-MAC address of PE3 corresponding to CE2 is B-MAC2.
- PE1, PE2, and PE3 each generate a forwarding path between the three through BGP.
- CE1 sends a packet to CE2, it sends the packet to PE1.
- PE1 obtains the correspondence between C-MAC1 and the interface that PE1 receives the packet based on the source C-MAC address (for example, C-MAC1).
- the interface is the interface of PE1 connected to CE1.
- PE1 encapsulates the outer header of the packet, and the source B-MAC address of the outer header is B-MAC1.
- PE1 sends the encapsulated packet to PE3.
- PE3 After receiving the packet, PE3 removes the outer header of the packet and sends the original packet to CE2. After receiving the packet whose destination C-MAC address is C-MAC1, CE2 sends the packet to PE3. PE3 encapsulates the outer header of the packet, and the destination B-MAC address of the outer header is B-MAC1. After PE3 has been BGP-enabled, both PE1 and PE2 have B-MAC1. Therefore, PE3 forwards the packets encapsulated with the outer header to PE1 and PE2 through load balancing. If PE3 sends the packet to PE1, PE1 removes the packet after receiving the packet from PE3. The outer header of the packet obtains the original packet whose destination C-MAC address is C-MAC1.
- the PE1 can unicast the packet to CE1 according to C-MAC1, as it has learned the mapping between C-MAC1 and the interface between PE1 and CE1. If PE3 sends the packet to PE2, PE2 removes the packet from the packet sent by PE3 and removes the outer header of the packet. The original packet with the destination C-MAC address being C-MAC1 is obtained. Since PE2 has not received the packet whose source address is C-MAC1, PE2 has not learned the correspondence between C-MAC1 and the interface between PE2 and CE1. PE2 can only send the packet in unknown unicast mode. Therefore, PE2 broadcasts the packet to all CE devices connected to PE2.
- the PE device can obtain the mapping between the C-MAC1 and the interface between the PE device and the CE device only after receiving the packet with the source address being C-MAC1. If CE1 selects the link that sends packets in the multiple physical links that form the logical link, the packets of the same source address may be used as the packets in one stream and passed through the fixed physical link. send. Therefore, CE1 may only send a packet with a specific source address to PE1 during the communication with CE2, so that PE2 cannot learn the source address. When PE3 sends a packet whose destination address is B-MAC1, the PE3 may send the packet to PE2. Each time PE2 receives the packets sent from CE2 to CE1, it needs to broadcast the received packets to all CEs. As a result, packet traffic is wasted and the forwarding performance of PEs is affected.
- the embodiment of the present invention provides an operator edge device and a data forwarding method.
- the technical solution is as follows:
- an operator edge device where the carrier edge device includes:
- a receiving module configured to receive a data packet, where the data packet is a data packet sent by the second client edge device to the first client edge device, where the outer B-MAC address of the data packet is the carrier The B-MAC address assigned by the edge device to the first customer edge device;
- a querying module configured to query an Ethernet segment identifier corresponding to a B-MAC address of the first client edge device in the forwarding table, where the forwarding table includes a one-to-one correspondence between multiple B-MAC addresses and multiple Ethernet segment identifiers Relationship, the Ethernet segment identifier is an identifier of a logical link between the operator edge device and the first client edge device;
- a decapsulation module configured to decapsulate the data packet to obtain a decapsulated data packet
- a sending module configured to forward the decapsulated data packet to the first customer edge device by using the logical link according to the Ethernet segment identifier.
- the carrier edge device further includes:
- a generating module configured to generate, after the receiving module receives the data packet, the B-MAC address allocated to the first client edge device, and generate the Ethernet segment identifier
- a relationship establishing module configured to establish, after the generating module generates the B-MAC address and the Ether segment identifier, a first between the B-MAC address and the Ether segment identifier in the forwarding table A correspondence.
- the carrier edge device is one of at least two carrier edge devices in the EVPN
- the logical link is The link between the first customer edge device and the at least two carrier edge devices is obtained by link aggregation, and the at least two carrier edge devices are passed by the first customer edge device by the logic Link connection.
- the generating module when the B-MAC address is generated, is configured to acquire the first client by using a link aggregation control protocol a device address of the edge device, and using the first algorithm to generate the B-MAC address according to the device address of the first client edge device; when using the first algorithm, the B-MAC address generated according to different device addresses
- the first algorithm is the same as the algorithm for generating a B-MAC address in the at least one carrier edge device, and the at least one carrier edge device is the operator in the at least two carrier edge devices. Other devices outside the edge device.
- the generating module is configured to acquire, by using a link aggregation control protocol, when the Ethernet segment identifier is generated The device address of the first client edge device is generated, and the Ethernet segment identifier is generated according to the device address of the first client edge device by using a second algorithm, and the second algorithm ensures that the Ethernet segment identifier generated according to different device addresses is different. .
- a data forwarding method comprising:
- the operator edge device receives the data packet, where the data packet is a data packet sent by the second client edge device to the first client edge device, where the outer B-MAC address of the data packet is the edge of the operator. a B-MAC address assigned by the device to the first customer edge device;
- the operator edge device queries the Ethernet segment identifier corresponding to the B-MAC address of the first client edge device in the forwarding table, where the forwarding table includes multiple B-MAC addresses to multiple Ethernet segment identifiers.
- the Ethernet segment identifier is an identifier of a logical link between the operator edge device and the first client edge device;
- the operator edge device forwards the decapsulated data packet to the first customer edge device by using the logical link according to the Ethernet segment identifier.
- the method further includes:
- the operator edge device Before receiving the data packet, the operator edge device generates the B-MAC address allocated to the first client edge device, and generates the Ethernet segment identifier;
- the operator edge device After generating the B-MAC address and the Ethernet segment identifier, the operator edge device immediately establishes a correspondence between the B-MAC address and the Ethernet segment identifier in the forwarding table.
- the carrier edge device is one of at least two carrier edge devices in the EVPN
- the logical link is the The link between the first customer edge device and the at least two carrier edge devices is obtained by link aggregation, and the at least two carrier edge devices are passed by the first customer edge device by the logic Link connection.
- the carrier edge device generates the B-MAC address that is allocated to the first customer edge device, including:
- the device address of the first customer edge device by using a link aggregation control protocol, and generating the B-MAC address according to the device address of the first client edge device by using a first algorithm;
- the first algorithm the B-MAC address generated by the different device addresses is different, and the first algorithm is the same as the algorithm used to generate the B-MAC address in the at least one carrier edge device, and the at least one carrier
- the edge device is other devices of the at least two carrier edge devices except the carrier edge device.
- the carrier edge device generates the Ethernet segment identifier, including:
- the carrier edge device receives the packet forwarded to the client edge device according to the destination B-MAC address forwarding table in the packet encapsulation header. Deriving an Ethernet segment identifier assigned to the logical link, and forwarding the decapsulated data packet to the client edge device through the logical link according to the Ethernet segment identifier; that is, the application is between the B-MAC address and the Ethernet segment identifier.
- the one-to-one correspondence determines the forwarding path when the packet is forwarded to the client edge device, and the forwarding path that fails to learn the packet forwarding to the client edge device due to the failure to receive the packet sent by the client edge device is resolved.
- the problem of sending packets to the client edge device through broadcast avoids the waste of packet traffic and improves the forwarding performance of the system.
- FIG. 1 is an architectural diagram of a PBB EVPN network environment
- FIG. 2 is a flowchart of a method for forwarding a data according to an embodiment of the present invention
- FIG. 3 is a flowchart of a method for data forwarding according to another embodiment of the present invention.
- FIG. 4 is a structural diagram of a carrier edge device according to an embodiment of the present invention.
- FIG. 5 is a structural diagram of a carrier edge device according to another embodiment of the present invention.
- FIG. 6 is a block diagram of a network device according to an embodiment of the present invention.
- PE1 and PE2 respectively generate a B-MAC address assigned to CE1, and PE1 and When generating the B-MAC address assigned to CE1, PE2 generates a B-MAC address based only on the device address of CE1 (for example, the MAC address of CE1) to ensure that the B-MAC addresses generated by the two are the same. For example, if the B-MAC addresses generated by PE1 and PE2 are both B-MAC1, after the B-MAC1 is generated, PE1 and PE2 notify the generated B-MAC1 to PE3 through BGP, and PE3 establishes B-MAC1 and PE3. Correspondence between the interfaces between PE1 and the interface between B-MAC1 and PE3 and PE2.
- CE1 when CE1 is connected to PE1 and PE2, multiple physical links between CE1 and PE1 and PE2 can be aggregated into one logical link through link aggregation, and PE1 and PE2 are generated separately.
- an Ethernet Segment Identifier (ESI) is generated, and the Ethernet segment identifier is the identifier of the logical link.
- PE1 and PE2 After generating the B-MAC1 ESIs, PE1 and PE2 immediately establish a correspondence between B-MAC1 and the respective generated ESIs in the forwarding table.
- each CE device has only one B-MAC address
- the B-MAC addresses of different CE devices are different, and the ESIs of the logical links connected to the PE devices and different CE devices are different.
- the correspondence between the plurality of B-MAC addresses and the plurality of ESIs is a one-to-one correspondence.
- the Ether segment identifier generated by PE1 is ESI1
- the correspondence between B-MAC1 and ESI1 is established.
- the Ether segment identifier generated by PE2 is ESI2
- the correspondence between B-MAC1 and ESI2 is established.
- ESI can also be generated by PE1 or PE2 according to the device address of CE1.
- the ESI generated by one PE device is only It is used to distinguish the various logical links connected to the PE device inside the PE device. Therefore, ESI1 and ESI2 may be the same or different.
- CE1 sends a packet to CE2
- CE1 sends the original packet to PE1 or PE2.
- the source address of the original packet is C-MAC1 and the destination address is C-MAC2.
- the PE1 or the PE2 sends the encapsulated packet to the PE3.
- the PE3 receives the packet. Decapsulation is performed to obtain the original packet, and the original packet is sent to CE2.
- PE3 also establishes a correspondence between B-MAC1 and C-MAC1.
- CE2 sends a packet to CE1
- CE2 sends the original packet to PE3.
- the source address of the original packet is C-MAC2 and the destination address is C-MAC1.
- the PE3 encapsulates the outer header of the packet, and the destination B-MAC address of the outer header is B-MAC1.
- both PE1 and PE2 have B-MAC1. Therefore, PE3 forwards the packet to the PE1 or PE2 through load balancing.
- PE1 or PE2 After receiving the encapsulated packet sent by PE3, PE1 or PE2 parses the outer header to obtain the destination B-MAC address of the packet as B-MAC1, and queries the forwarding table to obtain ESI1 or ESI2.
- the packet is decapsulated by the PE1 or the PE2 to obtain the original packet sent by the CE2, and the original packet is sent to the CE1 through the logical link identified as ESI1 or ESI2.
- a B-MAC address allocated by a PE device can be shared by multiple CE devices. Therefore, the forwarding path when forwarding packets to the CE device cannot be directly determined according to the B-MAC address. Even if a B-MAC address is only assigned to a CE device, the traditional PE device can only determine the learning mode by receiving the packet whose source address is a C-MAC address. Forwards the forwarding path of the packet whose destination address is the C-MAC address. If the PE does not receive the packet whose source address is the C-MAC address, the forwarding path of the packet whose destination address is the C-MAC address is not learned. The packet can only be forwarded by broadcast. .
- a B-MAC address generated by the PE device is allocated to only one CE device, and is immediately after the ESI is generated between the B-MAC address and the logical link between the CE device and the PE device.
- a one-to-one correspondence between the B-MAC address and the ESI is generated in the publication.
- FIG. 2 is a flowchart of a method for data forwarding according to an embodiment of the present invention.
- the method can be applied to the first carrier edge device 130 or the second carrier edge device 140 included in the network environment as shown in FIG. 1.
- the data forwarding method can include:
- Step 201 The operator edge device receives a data packet, where the data packet is a data packet sent by the second client edge device to the first client edge device, and the B-MAC address of the outer layer of the data packet is The carrier edge device is assigned to the B-MAC address of the first customer edge device.
- Step 202 The operator edge device queries the Ethernet segment identifier corresponding to the B-MAC address of the first client edge device in the forwarding table.
- the forwarding table includes a one-to-one correspondence between multiple B-MAC addresses and multiple Ethernet segment identifiers, where the Ethernet segment identifier is an identifier of a logical link between the operator edge device and the first client edge device. .
- Step 203 The operator edge device decapsulates the data packet to obtain a decapsulated data packet.
- Step 204 The operator edge device forwards the decapsulated data packet to the first customer edge device by using the logical link according to the Ethernet segment identifier.
- the edge device of the client when the edge device of the client accesses the edge device of the carrier through the logical link, the edge device of the carrier receives the packet forwarded to the edge device of the client. Deriving the Ethernet segment identifier assigned to the logical link from the forwarding table according to the destination B-MAC address in the packet header, and forwarding the decapsulated datagram to the client edge device according to the Ethernet segment identifier according to the Ethernet segment identifier
- the embodiment of the present invention determines the forwarding path when forwarding packets to the client edge device by using a one-to-one correspondence between the B-MAC address and the Ethernet segment identifier, and solves the problem that the packet sent by the client edge device has not been received. As a result, the forwarding path of the packet to the client edge device is not learned, so that the packet is sent to the client edge device through broadcast, which avoids the waste of packet traffic and improves the forwarding performance of the system.
- FIG. 3 is a flowchart of a method for data forwarding according to an embodiment of the present invention.
- the method can be applied to each device included in the network environment as shown in FIG. 1.
- the data forwarding method can include:
- Step 301 The first customer edge device connects the first carrier edge device and the second carrier edge device by using a logical link.
- the physical links between the first customer edge device and the first carrier edge device and the second carrier edge device are aggregated into one by link aggregation technology.
- Step 302 The first carrier edge device dynamically generates an ESI and a backbone medium access control address B-MAC1 allocated to the first customer edge device by using a link aggregation control protocol, and immediately generates a forwarding table after generating B-MAC1 and ESI. Establish a correspondence between B-MAC1 and ESI.
- the ESI is an identification of a logical link between the first carrier edge device and the first customer edge device.
- LACP Link Aggregation Control Protocol
- PBB EVPN Packet Control Protocol
- LACP runs between the logical link, the first carrier edge device, and the second carrier edge device.
- the first carrier edge device acquires the device address of the first customer edge device by using a link aggregation control protocol, and generates the B according to the device address of the first customer edge device by using a first algorithm.
- - MAC address when using the first algorithm, the B-MAC addresses generated according to different device addresses are different.
- the first carrier edge device obtains the device address of the first client edge device by using a link aggregation control protocol, and generates the Ethernet segment according to the device address of the first client edge device by using a second algorithm. Identification, the second algorithm ensures that the Ethernet segment identifiers generated according to different device addresses are different
- the first customer edge device simultaneously connects at least two carrier edge devices including the first carrier edge device and the second carrier edge device, in order to facilitate subsequent connection between the at least two carrier edge devices
- the load balancing is performed.
- the first algorithm in the first customer edge device is the same as the algorithm used to generate the B-MAC address in the at least one carrier edge device, and the at least one carrier edge device is the at least two carrier edge devices. Other carrier edge devices except the first carrier edge device. In this way, the at least two carrier edge devices will generate the same B-MAC1 when generating the B-MAC assigned to the first customer edge device.
- the forwarding table After the first carrier edge device generates the B-MAC1 and the ESI, a one-to-one correspondence between the B-MAC1 and the ESI is established in the forwarding table, so that the forwarding is forwarded to the first client edge device by using the query forwarding table. Text.
- Step 303 The second carrier edge device dynamically generates the ESI and the B-MAC1 allocated to the first customer edge device by using a link aggregation control protocol, and immediately establishes the B-MAC1 in the forwarding table after generating the B-MAC1 and the ESI.
- Step 304 The second customer edge device is connected to the third carrier edge device.
- Step 305 The third carrier edge device generates a backbone medium access control address B-MAC2 corresponding to the second customer edge device.
- Step 306 The first carrier edge device and the second carrier edge device respectively send the B-MAC1 allocated to the first customer edge device to the third carrier edge device.
- the first carrier edge device and the second carrier edge device can send the B-MAC1 to the third carrier edge device through BGP.
- Step 307 The third carrier edge device establishes a correspondence between the B-MAC1 and the interface between the third carrier edge device and the first carrier edge device, and the B-MAC1 and the third carrier edge device and the second operation respectively. The correspondence between the interfaces between the edge devices.
- the interface between the third carrier edge device and the first carrier edge device is interface 1, and the interface between the third carrier edge device and the second carrier edge device is interface 2. Because the first carrier edge device and the second carrier edge device send the backbone media access control addresses respectively assigned to the first client edge device, which are all B-MAC1, the third carrier edge device establishes forwarding. In the case of the path, it is considered that the data packets with the destination B-MAC address being B-MAC1 can be sent to the destination device through interface 1 and interface 2, that is, the correspondence between B-MAC1 and interface 1 and B-MAC1 and interface are established. The correspondence between the two forms a forwarding path for load sharing.
- Step 308 The first customer edge device sends a first data packet to the first operator edge device.
- the first client edge device When the first client edge device sends the first data packet to the second client edge device, the first data packet is first sent to the first carrier edge device by using the logical link, where the first data packet is sent.
- the source address included in the header is C-MAC1 and the destination address is C-MAC2.
- Step 309 The first carrier edge device encapsulates the first data packet, and sends the encapsulated first data packet to the third carrier edge device.
- the first carrier edge device After receiving the first data packet, the first carrier edge device encapsulates the first data packet, and encapsulates the outer header of the original packet, and the source B-MAC address in the outer header is B-MAC1. And adding the destination B-MAC address to the fixed multicast B-MAC address, and the first carrier edge device sends the encapsulated first data packet to each adjacent one that includes the third carrier edge device. Carrier edge equipment.
- Step 310 The third carrier edge device decapsulates the encapsulated first data packet, and sends the first data packet to the second client edge device.
- the third carrier edge device After receiving the encapsulated first data packet, the third carrier edge device parses the packet header to obtain a correspondence between the C-MAC1 and the B-MAC1, and decapsulates the encapsulated first data packet. Removing the outer header of the packet, and obtaining the decapsulated first data packet, where the decapsulated first data packet is sent by the first client edge device to the second client edge device, and the original first data is sent. When the message is sent.
- the third carrier edge device queries the third-operator edge device and the second interface according to the destination C-MAC address (ie, C-MAC2) in the decapsulated first data packet. The interface between the client edge devices sends the decapsulated first data packet to the queried interface.
- the third carrier edge device broadcasts the decapsulated first data packet to the edge device connected to the third carrier. Every customer edge device.
- Step 311 The second client edge device sends the second data packet to the third carrier edge device when the second data packet is returned.
- the second client edge device After receiving the first data packet, the second client edge device sends a second data packet to the edge device of the third carrier, where the source C-MAC address included in the second data packet is C-MAC2.
- the destination C-MAC address is C-MAC1.
- Step 312 The third carrier edge device encapsulates the second data packet, and sends the encapsulated second data packet to the first carrier edge device or the second carrier device according to the load sharing mechanism.
- the third carrier edge device After receiving the second data packet, the third carrier edge device passes the destination C-MAC address (ie, C-MAC1) in the packet of the second data, according to the C-MAC1 and B-MAC1 obtained in step 310.
- the corresponding relationship is searched for B-MAC1, and the second data packet is encapsulated, and the outer header is added.
- the source B-MAC address in the outer header is B-MAC2, and the destination B-MAC address is unicast B-MAC1.
- the third carrier edge device has the corresponding relationship between the B-MAC1 and the interface 1 and the interface 2, and the third carrier edge device further encapsulates the second data packet according to the traffic load sharing mechanism. It is sent to the first carrier edge device through interface 1, or sent to the second carrier edge device through interface 2.
- Step 313 If the first carrier edge device receives the encapsulated second data packet, the first carrier edge device queries the forwarding table corresponding to the B-MAC address B-MAC1 of the first client edge device.
- the Ethernet segment identifier ESI decapsulates the data packet to obtain a decapsulated second data packet, and forwards the decapsulated packet to the first client edge device according to the Ethernet segment identifier ESI according to the Second data message.
- the forwarding table is a forwarding table in which the correspondence between B-MAC1 and ESI is established in step 302.
- the first carrier edge device After receiving the encapsulated second data packet, the first carrier edge device parses the packet header, and establishes a correspondence between the C-MAC2 and the B-MAC2 according to the information in the packet header, and the subsequent first carrier edge device
- the data packet may be encapsulated and sent to the interface corresponding to the B-MAC2 according to the correspondence between the C-MAC2 and the B-MAC2, and need not be sent to the interface corresponding to the B-MAC2. All BGP neighbor devices.
- the first carrier edge device directly indexes to the ESI according to the destination B-MAC address in the packet header (ie, B-MAC1) and the correspondence between the pre-established B-MAC1 and the ESI, and obtains the first customer edge according to the ESI.
- the first carrier edge device forwards the decapsulated second data packet to the first client edge device through the logical link according to the ESI that is queried.
- Step 314 If the second carrier edge device receives the encapsulated second data packet, the second carrier edge device queries the forwarding table corresponding to the B-MAC address B-MAC1 of the first client edge device.
- the Ethernet segment identifier ESI decapsulates the data packet to obtain a decapsulated second data packet, and forwards the decapsulated packet to the first client edge device according to the Ethernet segment identifier ESI according to the Second data message.
- the process of forwarding the second data packet by the second carrier edge device to the first client edge device is similar to the process of forwarding the second data packet by the first carrier edge device to the first client edge device in steps 313 and 314. I won't go into details here.
- a B-MAC address generated by the operator edge device is only allocated to one customer edge device, and the B-MAC address assigned to a customer edge device is generated. And generating an ESI for identifying a logical link between the customer edge device and the operator edge device, and immediately generating a one-to-one correspondence between the B-MAC address and the ESI in the forwarding table, the operator edge device Even if the packet sent by the client edge device is not received, the forwarding path can be determined when the packet is forwarded to the client edge device, and the packet is not required to be forwarded through the broadcast mode, thereby avoiding wasteful copying of the packet traffic. Improve the forwarding performance of the system.
- FIG. 4 is a structural diagram of a carrier edge device according to an embodiment of the present invention.
- the carrier edge device may be the first carrier edge device 130 or the second carrier edge device 140 included in the network environment shown in FIG. 1.
- the carrier edge device can include:
- the receiving module 401 is configured to receive a data packet, where the data packet is a data packet sent by the second client edge device to the first client edge device, where the outer B-MAC address of the data packet is the operation a B-MAC address assigned by the Provider Edge device to the first Customer Edge Device;
- the querying module 402 is configured to query an Ethernet segment identifier corresponding to the B-MAC address of the first client edge device in the forwarding table, where the forwarding table includes multiple B-MAC addresses to multiple Ethernet segment identifiers.
- the Ethernet segment identifier is an identifier of a logical link between the operator edge device and the first client edge device;
- the decapsulation module 403 is configured to decapsulate the data packet to obtain a decapsulated data packet.
- the sending module 404 is configured to forward, by using the logical link, the decapsulated data packet to the first customer edge device according to the Ethernet segment identifier.
- the operator edge device shown in the embodiment of the present invention when receiving the packet forwarded to the client edge device, queries and allocates the logic to the logic according to the destination B-MAC address in the packet encapsulation header.
- the Ethernet segment identifier of the link according to the Ethernet segment identifier, forwards the decapsulated data packet to the client edge device by using the logical link; that is, the embodiment between the B-MAC address and the Ethernet segment identifier in the embodiment of the present invention
- a corresponding relationship is used to determine the forwarding path when the packet is forwarded to the client edge device, and the forwarding path for forwarding the packet to the client edge device is not received because the packet sent by the client edge device is not received.
- the problem of sending packets to the client edge device avoids the waste of packet traffic and improves the forwarding performance of the system.
- FIG. 5 is a structural diagram of a carrier edge device according to another embodiment of the present invention.
- the carrier edge device may be the first carrier edge device 130 or the second carrier edge device 140 included in the network environment shown in FIG. 1.
- the carrier edge device can include:
- the receiving module 401 is configured to receive a data packet, where the data packet is a data packet sent by the second client edge device to the first client edge device, where the outer B-MAC address of the data packet is the operation a B-MAC address assigned by the Provider Edge device to the first Customer Edge Device;
- the querying module 402 is configured to query an Ethernet segment identifier corresponding to the B-MAC address of the first client edge device in the forwarding table, where the forwarding table includes multiple B-MAC addresses to multiple Ethernet segment identifiers.
- the Ethernet segment identifier is an identifier of a logical link between the operator edge device and the first client edge device;
- the decapsulation module 403 is configured to decapsulate the data packet to obtain a decapsulated data packet.
- the sending module 404 is configured to forward, by using the logical link, the decapsulated data packet to the first customer edge device according to the Ethernet segment identifier.
- the carrier edge device further includes: a generating module 405 and a relationship establishing module 406;
- the generating module 405 is configured to generate, after the receiving module 401 receives the data packet, the B-MAC address that is allocated to the first client edge device, and generate the Ethernet segment identifier;
- the relationship establishing module 406 is configured to: after the generating module 405 generates the B-MAC address and the Ether segment identifier, immediately establish the B-MAC address and the Ether segment identifier in the forwarding table. One-to-one correspondence between the two.
- the carrier edge device is one of at least two carrier edge devices in the EVPN, and the at least two carrier edge devices are used by the first client edge device.
- a logical link is obtained by aggregating a link between the first customer edge device and each carrier edge device by a link aggregation technology.
- the generating module 405 is configured to acquire, by using a link aggregation control protocol, a device address of the first customer edge device, and use the first algorithm according to the first, when the B-MAC address is generated.
- the device address of the customer edge device generates the B-MAC address; when the first algorithm is used, the B-MAC address generated according to different device addresses is different.
- the generating module 405 is configured to acquire, by using a link aggregation control protocol, a device address of the first client edge device, and use a second algorithm according to the first client, when the identifier of the Ethernet segment is generated.
- the device address of the edge device generates the Ethernet segment identifier, and the second algorithm ensures that the Ethernet segment identifier generated according to different device addresses is different.
- the operator edge device one of at least two carrier edge devices in the E-VPN private network EVPN, and the at least two carrier edge devices are adopted by the first customer edge device
- the first algorithm is the same as the algorithm for generating a B-MAC address in the at least one carrier edge device, and the at least one carrier edge device is in the at least two carrier edge devices.
- Other devices than the carrier edge device.
- the carrier edge device shown in the embodiment of the present invention generates a B-MAC address only for one client edge device, and generates a B-MAC address assigned to a client edge device, and generates the B-MAC address.
- a one-to-one correspondence between the B-MAC address and the ESI is generated in the forwarding table, and the operator edge device does not receive the message.
- the packet sent by the client edge device can also determine the forwarding path when the packet is forwarded to the client edge device.
- the packet is not required to be forwarded through the broadcast mode, which avoids the waste of packet traffic and improves the forwarding of the system. Performance effect.
- the network device 600 may be the first carrier edge device 130 or the second carrier edge device 140 in the network environment shown in FIG. 1 above.
- the network device 600 can be a router.
- the network device may include: wherein the processor 602 may include a central processing unit (CPU) 602a and a forwarding processor 602b.
- the forwarding processor 602b may be a network processor (NP), an application-specific integrated circuit (ASIC), or a CPU or CPU core dedicated to forwarding.
- the memory 603 may be disposed in the forwarding processor 602b or may be independently provided.
- the memory 603 is configured to store a forwarding table, where the forwarding table includes a one-to-one correspondence between multiple B-MAC addresses and multiple Ethernet segment identifiers, where the Ethernet segment identifier is the network device and the first customer edge device.
- the transceiver 604 can be a An Ethernet interface controlled by forwarding processor 602b.
- the processor 602 is coupled to the transceiver 604, and is coupled to the processor 602 and the memory 603.
- the above connections can be implemented by bus or other means.
- the forwarding processor 602b is configured to control the transceiver 604 to receive a data packet, where the data packet is a data packet sent by the second client edge device to the first client edge device, where the data packet is outside the data packet.
- the layer backbone medium access control B-MAC address is a B-MAC address assigned by the network device to the first client edge device.
- the forwarding processor 602b is further configured to query an Ethernet segment identifier corresponding to a B-MAC address of the first client edge device in the forwarding table.
- the forwarding processor 602b is further configured to decapsulate the data packet to obtain a decapsulated data packet.
- the forwarding processor 602b is further configured to: according to the Ethernet segment identifier, control the transceiver 604 to forward the decapsulated data packet to the first customer edge device by using the logical link.
- the central processing unit 602a is configured to generate, after the network processor 602b controls the transceiver 604 to receive the data packet, the B-MAC address that is allocated to the first customer edge device. And generating the Ethernet segment identifier;
- the central processing unit 602a is further configured to immediately establish a one-to-one correspondence between the B-MAC address and the Ethernet segment identifier after generating the B-MAC address and the Ethernet segment identifier, and immediately The correspondence is stored in the forwarding table of the memory 603.
- the carrier edge device is one of at least two carrier edge devices in the EVPN, and the at least two carrier edge devices are used by the first client edge device.
- Logical link connection is one of at least two carrier edge devices in the EVPN, and the at least two carrier edge devices are used by the first client edge device.
- the central processing unit 602a when the B-MAC address is generated, is configured to control the transceiver 604 to obtain a device address of the first customer edge device by using a link aggregation control protocol, and The central processing unit 602a is further configured to generate, by using a first algorithm, the B-MAC address according to a device address of the first client edge device; when using the first algorithm, generate a B according to different device addresses. - The MAC address is different.
- the central processing unit 602a is configured to control the transceiver 604 to obtain a device address of the first client edge device by using a link aggregation control protocol, and The central processing unit 602a is further configured to generate the Ethernet segment identifier according to the device address of the first client edge device by using a second algorithm, where the second algorithm ensures that the Ethernet segment identifiers generated according to different device addresses are different.
- the operator edge device one of at least two carrier edge devices in the E-VPN private network EVPN, and the at least two carrier edge devices are adopted by the first customer edge device Logical link
- the first algorithm is the same as the algorithm for generating a B-MAC address in the at least one carrier edge device, and the at least one carrier edge device is the operation in the at least two carrier edge devices. Other devices outside the edge device.
- a generated B-MAC address is only allocated to one customer edge device, and a B allocated to a customer edge device is generated.
- a MAC address, and generating an ESI for identifying a logical link between the client edge device and the network device immediately generating a one-to-one correspondence between the B-MAC address and the ESI in the forwarding table, even if the network device If the packet sent by the client edge device is not received, the forwarding path of the packet is forwarded to the client edge device.
- the packet forwarding mode is not required to be forwarded through the broadcast mode. The effect of the system's forwarding performance.
- the carrier edge device provided by the foregoing embodiment is only described by dividing the foregoing functional modules when performing data forwarding.
- the function distribution may be completed by different functional modules according to requirements, that is, the internal components of the device.
- the structure is divided into different functional modules to perform all or part of the functions described above.
- the embodiment of the operator edge device and the data forwarding method provided by the foregoing embodiment are in the same concept, and the specific implementation process is described in the method embodiment, and details are not described herein again.
- a person skilled in the art may understand that all or part of the steps of implementing the above embodiments may be completed by hardware, or may be instructed by a program to execute related hardware, and the program may be stored in a computer readable storage medium.
- the storage medium mentioned may be a read only memory, a magnetic disk or an optical disk or the like.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
L'invention concerne un équipement de bordure de fournisseur et un procédé de transfert de données. Ledit procédé consiste à : recevoir un message de données, l'adresse de destination de commande d'accès au support (B-MAC) de réseau dorsal sur la couche extérieure de message de données étant une adresse B-MAC distribuée par un équipement de bordure de fournisseur à un premier équipement de bordure de client; interroger un identifiant de segment Ethernet correspondant à l'adresse B-MAC du premier équipement de bordure du client dans une table de transmission, la table de transmission comprenant des corrélations univoques entre une pluralité d'adresses B-MAC et une pluralité d'identifiants de segments Ethernet, conformément aux identifiants de segments Ethernet, transmettre, par l'intermédiaire d'une liaison logique, un message de données désencapsulé au premier équipement de bordure du client. La détermination, au moyen des corrélations univoques entre les adresses B-MAC et les identifiants de segments Ethernet, du chemin de transmission pour transférer un message à l'équipement de bordure du client permet d'éviter les pertes causées par la réplication de flux de messages, et de parvenir à améliorer la qualité de transmission du système.
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510553337.X | 2015-09-02 | ||
| CN201510553337.XA CN106487677B (zh) | 2015-09-02 | 2015-09-02 | 运营商边缘设备及数据转发方法 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2017036384A1 true WO2017036384A1 (fr) | 2017-03-09 |
Family
ID=58186727
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2016/097378 Ceased WO2017036384A1 (fr) | 2015-09-02 | 2016-08-30 | Équipement de bordure de fournisseur et procédé de transfert de données |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN106487677B (fr) |
| WO (1) | WO2017036384A1 (fr) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112671630A (zh) * | 2020-12-11 | 2021-04-16 | 北京东土军悦科技有限公司 | 一种组播方法、装置、网络设备及存储介质 |
| CN114866111A (zh) * | 2022-01-04 | 2022-08-05 | 天地融科技股份有限公司 | 一种地址绑定方法、系统、主控节点和设备节点 |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110798403B (zh) * | 2018-08-01 | 2021-02-23 | 华为技术有限公司 | 通信方法、通信设备和通信系统 |
| CN111510386B (zh) * | 2019-01-30 | 2023-06-20 | 华为技术有限公司 | 用于处理报文的方法和装置 |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102594651A (zh) * | 2011-01-07 | 2012-07-18 | 华为数字技术有限公司 | 一种pbb h-vpls网络中的业务保护方法 |
| US20140226531A1 (en) * | 2013-02-14 | 2014-08-14 | Telefonaktiebolaget L M Ericsson (Publ) | Multicast support for EVPN-SPBM based on the mLDP signaling protocol |
| CN104471899A (zh) * | 2012-05-10 | 2015-03-25 | 瑞典爱立信有限公司 | 通过ietf evpn的802.1aq支持 |
| CN104919767A (zh) * | 2013-01-21 | 2015-09-16 | 瑞典爱立信有限公司 | 用于实现在虚拟专用lan服务网络上的最短路径桥接mac模式支持的方法和装置 |
Family Cites Families (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101389147B (zh) * | 2008-10-29 | 2011-06-08 | 华为终端有限公司 | 一种基于点对多点网络的从节点数据互通装置、方法与系统 |
| CN101753464A (zh) * | 2010-01-22 | 2010-06-23 | 中兴通讯股份有限公司 | 路由收敛方法、运营商边缘设备及虚拟专用网系统 |
| CN103546374B (zh) * | 2012-07-10 | 2016-08-03 | 杭州华三通信技术有限公司 | 一种边缘二层网络中转发报文的方法和装置 |
| CN104378297B (zh) * | 2013-08-15 | 2018-01-16 | 新华三技术有限公司 | 一种报文转发方法及设备 |
| CN103780494B (zh) * | 2014-02-11 | 2016-09-07 | 杭州华三通信技术有限公司 | 一种用户信息获取方法和装置 |
| CN104836735B (zh) * | 2015-05-25 | 2018-11-09 | 新华三技术有限公司 | 跨bvlan的数据报文转发方法和装置 |
-
2015
- 2015-09-02 CN CN201510553337.XA patent/CN106487677B/zh active Active
-
2016
- 2016-08-30 WO PCT/CN2016/097378 patent/WO2017036384A1/fr not_active Ceased
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102594651A (zh) * | 2011-01-07 | 2012-07-18 | 华为数字技术有限公司 | 一种pbb h-vpls网络中的业务保护方法 |
| CN104471899A (zh) * | 2012-05-10 | 2015-03-25 | 瑞典爱立信有限公司 | 通过ietf evpn的802.1aq支持 |
| CN104919767A (zh) * | 2013-01-21 | 2015-09-16 | 瑞典爱立信有限公司 | 用于实现在虚拟专用lan服务网络上的最短路径桥接mac模式支持的方法和装置 |
| US20140226531A1 (en) * | 2013-02-14 | 2014-08-14 | Telefonaktiebolaget L M Ericsson (Publ) | Multicast support for EVPN-SPBM based on the mLDP signaling protocol |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112671630A (zh) * | 2020-12-11 | 2021-04-16 | 北京东土军悦科技有限公司 | 一种组播方法、装置、网络设备及存储介质 |
| CN112671630B (zh) * | 2020-12-11 | 2023-01-17 | 北京东土军悦科技有限公司 | 一种组播方法、装置、网络设备及存储介质 |
| CN114866111A (zh) * | 2022-01-04 | 2022-08-05 | 天地融科技股份有限公司 | 一种地址绑定方法、系统、主控节点和设备节点 |
| CN114866111B (zh) * | 2022-01-04 | 2023-12-12 | 天地融科技股份有限公司 | 一种地址绑定方法、系统、主控节点和设备节点 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN106487677A (zh) | 2017-03-08 |
| CN106487677B (zh) | 2019-10-01 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN103200069B (zh) | 一种报文处理的方法和设备 | |
| EP2600573B1 (fr) | Procédé adapté pour transmettre une relation de correspondance d'adresses dans un protocole de couche 2 utilisant le routage d'état de liaison | |
| US10193707B2 (en) | Packet transmission method and apparatus | |
| CN103227757B (zh) | 一种报文转发方法及设备 | |
| KR102054338B1 (ko) | 개별 관리들을 이용하는 vlan 태깅된 패킷들의 가상 포워딩 인스턴스들의 원단 주소들로의 라우팅 | |
| CN104660508B (zh) | 一种报文转发方法及装置 | |
| CN103944826B (zh) | Spbm网络中的表项聚合方法及设备 | |
| CN103905283B (zh) | 基于可扩展虚拟局域网的通信方法及装置 | |
| CN102316030B (zh) | 一种实现数据中心二层互联的方法和装置 | |
| CN106612224B (zh) | 应用于vxlan的报文转发方法和装置 | |
| CN106101023B (zh) | 一种vpls报文处理方法及设备 | |
| US20150358232A1 (en) | Packet Forwarding Method and VXLAN Gateway | |
| CN104702476B (zh) | 基于分布式网关的报文处理方法及网络虚拟化边缘点 | |
| CN103685006A (zh) | 一种在边缘设备上的报文转发方法和边缘设备 | |
| WO2022100554A1 (fr) | Procédé d'acheminement de message bier, dispositif et système | |
| CN107317752B (zh) | 一种转发数据报文的方法及装置 | |
| WO2019137355A1 (fr) | Procédé et dispositif de transmission de données, et système de réseau | |
| CN116547953A (zh) | 由网络结构控制平面实施段间流量策略 | |
| WO2013139270A1 (fr) | Procédé, dispositif et système pour implémenter un réseau privé virtuel en couche 3 | |
| WO2017036384A1 (fr) | Équipement de bordure de fournisseur et procédé de transfert de données | |
| WO2022053007A1 (fr) | Procédé et appareil de vérification d'accessibilité de réseau, et support de stockage informatique | |
| WO2020220459A1 (fr) | Procédé et système basés sur vxlan et openflow permettant de partager un réseau domestique virtuel | |
| CN105991446A (zh) | Trill网络中三层组网及数据处理方法、设备和系统 | |
| CN105493454A (zh) | 双活接入多链接透明互联(trill)边缘 | |
| WO2022199285A1 (fr) | Procédé et appareil de communication |
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: 16840813 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 16840813 Country of ref document: EP Kind code of ref document: A1 |