WO2019056239A1 - Procédé et dispositif de synchronisation de paquets - Google Patents

Procédé et dispositif de synchronisation de paquets Download PDF

Info

Publication number
WO2019056239A1
WO2019056239A1 PCT/CN2017/102550 CN2017102550W WO2019056239A1 WO 2019056239 A1 WO2019056239 A1 WO 2019056239A1 CN 2017102550 W CN2017102550 W CN 2017102550W WO 2019056239 A1 WO2019056239 A1 WO 2019056239A1
Authority
WO
WIPO (PCT)
Prior art keywords
packet
esi
tunnel
virtual link
link tunnel
Prior art date
Application number
PCT/CN2017/102550
Other languages
English (en)
Chinese (zh)
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 CN201780093339.2A priority Critical patent/CN110945835B/zh
Priority to PCT/CN2017/102550 priority patent/WO2019056239A1/fr
Publication of WO2019056239A1 publication Critical patent/WO2019056239A1/fr

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling

Definitions

  • the present application relates to the field of communications technologies, and in particular, to a message synchronization method and apparatus.
  • FIG. 1 is a schematic diagram of a CE dual-homing network in the prior art.
  • a customer edge device CE
  • PORT port
  • PE provider edge device
  • the PE1 and the PE2 are connected to the PE3 through the network (for example, the WAN), and the PE3 and the CE2 are connected. Therefore, two data will exist between the CE2 and the CE1.
  • the forwarding path of the packets is CE2->PE3->PE1->(PORT)1->CE1 and CE2->PE3->PE2->(PORT)2->CE1.
  • ARP local address resolution protocol
  • the embodiment of the present invention provides a packet synchronization method and device, which solves the technical problem that the data packet forwarding fails, and the service in the network cannot be normally operated.
  • a first aspect of the present application provides a packet synchronization method, including the following steps: First, a first service provider edge router PE receives a first packet sent by a user border device CE; and then, the first PE is in the first Adding an Ethernet segment identifier ESI to the packet, and obtaining a second packet, where the ESI is an ESI corresponding to an access port of the first PE; and then, the first PE is configured according to an ESI and a virtual link tunnel.
  • the first PE sends the second packet to the second PE by using the virtual link tunnel, where the second packet
  • the second PE is configured to send a data packet to the CE, where the first PE and the second PE are both connected to the CE.
  • the first packet may be a control packet, a protocol packet, or a service packet, where the service packet is, for example, ARP, Dynamic Host Configuration Protocol (DHCP), or Internet Group Management Protocol ( Internet Group Management Protocol (IGMP), etc.
  • ARP Dynamic Host Configuration Protocol
  • IGMP Internet Group Management Protocol
  • a point-to-point virtual link tunnel is established between the first PE and the second PE, so that the first PE and the first PE There is no need for a direct link connection between the two PEs.
  • the first PE adds the ESI identifier to the first packet to obtain the second packet, and then passes the first PE and the second PE after establishing a point-to-point virtual link tunnel between the first PE and the second PE.
  • the virtual link tunnel sends the second packet to the second PE, so that the second PE sends the data packet to the CE according to the second packet, so that the data packet can be correctly forwarded. It ensures the normal operation of the business in the network.
  • the method before the first service provider edge router PE receives the first packet sent by the user border device CE, the method further includes:
  • the first PE receives a request message sent by the second PE, where the request message includes an ESI corresponding to an access port of the second PE.
  • the first PE adds the ESI to obtain the second packet after receiving the first packet sent by the CE.
  • the second packet is sent to the second PE through the virtual link tunnel, so that the first PE and the second PE can process the service in time.
  • the method before the first PE determines the virtual link tunnel corresponding to the ESI according to the correspondence between the ESI and the virtual link tunnel, the method further includes:
  • the first PE establishes a correspondence between the ESI and the virtual link tunnel, where the ESI is the access port of the first PE and the access port of the second PE distributed.
  • the ESI is allocated to the access port of the first PE and the access port of the second PE, respectively, and the first PE and the second PE are both connected to the CE, and will be the first when the network is connected.
  • the access port of the PE and the access port of the second PE are assigned the same ESI.
  • the virtual link tunnel includes a virtual extended local area network (Vxlan tunnel), a multi-protocol label switched MPLS tunnel, or a universal route encapsulated GRE tunnel.
  • Vxlan tunnel virtual extended local area network
  • MPLS tunnel multi-protocol label switched MPLS tunnel
  • GRE tunnel universal route encapsulated GRE tunnel
  • the aggregation network in the dual-homing network is an MPLS network
  • the virtual link tunnel is a GRE tunnel
  • the aggregation network in the dual-homing network is an IP network.
  • a second aspect of the present application provides a packet synchronization method, including:
  • the second service provider edge router PE receives the second packet sent by the first PE through the virtual link tunnel, where the virtual link tunnel is corresponding to the Ethernet segment identifier ESI corresponding to the access port of the first PE.
  • a link tunnel the second packet is a packet obtained by the first PE after receiving the first packet sent by the user border device CE, and the first PE and the first PE Two PEs are connected to the CE;
  • the second PE parses the second packet to obtain the first packet and the ESI;
  • the second PE sends a data packet to the CE according to the first packet and the ESI.
  • both the first PE and the second PE can simultaneously receive and process the packet, so that the first PE and the second PE are obtained. Both can maintain the software data entry of this machine.
  • the first PE adds the ESI identifier to the first packet to obtain the second packet, and then passes the first PE and the second PE after establishing a point-to-point virtual link tunnel between the first PE and the second PE.
  • the virtual link tunnel sends the second packet to the second PE, so that the second PE sends the data packet to the CE according to the second packet, so that the data packet can be correctly forwarded, thereby ensuring that the data packet is correctly forwarded.
  • the method before the second PE receives the second packet sent by the first PE by using the link tunnel, the method further includes:
  • the second PE sends a request message to the first PE, where the request message includes an ESI corresponding to the access port of the second PE, and the request message is used to request to obtain all the packets corresponding to the ESI.
  • the virtual link tunnel includes a virtual extended local area network (Vxlan tunnel), a multi-protocol label switched MPLS tunnel, or a universal route encapsulated GRE tunnel.
  • Vxlan tunnel virtual extended local area network
  • MPLS tunnel multi-protocol label switched MPLS tunnel
  • GRE tunnel universal route encapsulated GRE tunnel
  • the aggregation network in the dual-homing network is an MPLS network
  • the virtual link tunnel is a GRE tunnel
  • the aggregation network in the dual-homing network is an IP network.
  • a third aspect of the present application provides a message synchronization apparatus, including:
  • a receiving unit configured to receive a first packet sent by the user border device CE
  • a processing unit configured to add an Ethernet segment identifier ESI to the first packet to obtain a second packet; the ESI is an ESI corresponding to an access port of the first PE;
  • a determining unit configured to determine a virtual link tunnel corresponding to the ESI according to a correspondence between the ESI and the virtual link tunnel;
  • a sending unit configured to send, by using the virtual link tunnel, the second packet to the second PE, where the second packet is used to instruct the second PE to send a data packet to the user border device CE, where The first PE and the second PE are both connected to the CE.
  • the device further includes:
  • the receiving unit is configured to receive a request message sent by the second PE, where the request message includes an ESI corresponding to an access port of the second PE.
  • the device further includes:
  • a establishing unit configured to establish a virtual link tunnel between the first PE and the second PE
  • the establishing unit is further configured to establish a correspondence between the ESI and the virtual link tunnel, where the ESI is the access port of the first PE and the second PE respectively.
  • the access port is assigned.
  • the virtual link tunnel includes a virtual extended local area network (Vxlan tunnel), a multi-protocol label switched MPLS tunnel, or a universal route encapsulated GRE tunnel.
  • Vxlan tunnel virtual extended local area network
  • MPLS tunnel multi-protocol label switched MPLS tunnel
  • GRE tunnel universal route encapsulated GRE tunnel
  • a fourth aspect of the present application provides a message synchronization apparatus, including:
  • a receiving unit configured to receive, by using a virtual link tunnel, a second packet sent by the first PE, where the virtual link tunnel is a link corresponding to an Ethernet segment identifier ESI corresponding to an access port of the first PE a tunnel, the second packet is sent by the first PE after receiving the first packet sent by the user border device CE, and the first PE and the second PE are added.
  • the CE Connected to the CE;
  • the parsing unit is configured to parse the second packet to obtain the first packet and the ESI;
  • a sending unit configured to send a data packet to the CE according to the first packet and the ESI.
  • the sending unit is further configured to send a request message to the first PE, where the request message includes an ESI corresponding to an access port of the second PE, where the request message is used by Request for access All messages corresponding to ESI.
  • the virtual link tunnel includes a virtual extended local area network (Vxlan tunnel), a multi-protocol label switched MPLS tunnel, or a universal route encapsulated GRE tunnel.
  • Vxlan tunnel virtual extended local area network
  • MPLS tunnel multi-protocol label switched MPLS tunnel
  • GRE tunnel universal route encapsulated GRE tunnel
  • a fifth aspect of the present application provides a message synchronization apparatus, the apparatus comprising a processor and a memory, the memory is for storing a program, and the processor calls a program stored in the memory to execute the method provided by the first aspect of the application.
  • a sixth aspect of the present application provides a message synchronization apparatus, the apparatus comprising a processor and a memory, the memory is for storing a program, and the processor calls a program stored in the memory to perform the method provided by the second aspect of the present application.
  • a seventh aspect of the present application provides a PE comprising at least one processing element (or chip) for performing the method of the above first aspect.
  • An eighth aspect of the present application provides a PE comprising at least one processing element (or chip) for performing the method of the above second aspect.
  • a ninth aspect of the present application provides a message synchronization program for performing the method of the above first aspect when executed by a processor.
  • a tenth aspect of the present application provides a program product, such as a computer readable storage medium, comprising the program of the ninth aspect.
  • An eleventh aspect of the present application provides a message synchronization program for performing the method of the above second aspect when executed by a processor.
  • a twelfth aspect of the present application provides a program product, such as a computer readable storage medium, comprising the program of the eleventh aspect.
  • the packet synchronization method and device after receiving the first packet sent by the CE, the first PE adds an ESI to the first packet to obtain a second packet, where the ESI is the first PE.
  • the ESI corresponding to the access port determines the virtual link tunnel corresponding to the ESI according to the correspondence between the ESI and the virtual link tunnel, and sends the second to the second PE through the determined virtual link tunnel.
  • the packet is sent to the second PE to send a data packet to the CE according to the second packet.
  • the first PE adds the ESI identifier to the first packet to obtain the second packet, and the virtual link between the first PE and the second PE is established after the first PE adds the ESI identifier to obtain the second packet.
  • the second tunnel sends the second packet to the second PE, so that the second PE sends the data packet to the CE. This ensures that the data packet is correctly forwarded, thus ensuring normal operation of the network.
  • FIG. 1 is a schematic diagram of a CE dual-homing networking in the prior art
  • FIG. 2 is a schematic diagram of a usage scenario of a packet synchronization method according to an embodiment of the present disclosure
  • FIG. 3 is a schematic diagram of a CE multi-homing networking
  • Embodiment 4 is a signaling flowchart of Embodiment 1 of a message synchronization method of the present application
  • FIG. 5 is a signaling flowchart of Embodiment 2 of a message synchronization method of the present application
  • FIG. 6 is a schematic structural diagram of Embodiment 1 of a packet synchronization apparatus according to an embodiment of the present disclosure
  • FIG. 7 is a schematic structural diagram of Embodiment 2 of a packet synchronization apparatus according to an embodiment of the present disclosure
  • FIG. 8 is a schematic structural diagram of Embodiment 3 of a packet synchronization apparatus according to an embodiment of the present disclosure
  • 9A is a schematic structural diagram of a PE of the present application.
  • FIG. 9B is another schematic structural diagram of a PE of the present application.
  • Multi-homed networking which is an emergency disaster recovery mechanism that can provide normal communication in the event of a sudden disaster.
  • the multi-homing function means that one CE can belong to multiple different PEs at the same time. When one of the PEs fails, the services of the CE can also be forwarded through other PEs.
  • a unit in this application refers to a functional unit or a logical unit. It can be in the form of software, which is implemented by the processor executing program code; it can also be in hardware form.
  • Multiple means two or more, and other quantifiers are similar. "and/or”, describing the association relationship of the associated objects, indicating that there may be three relationships, for example, A and/or B, which may indicate that there are three cases where A exists separately, A and B exist at the same time, and B exists separately.
  • the character “/” generally indicates that the contextual object is an "or” relationship.
  • the ranges described in “above” or “below” and the like include boundary points.
  • FIG. 2 is a schematic diagram of a usage scenario of the packet synchronization method according to the embodiment of the present application.
  • the CE dual-homing network is configured. CE1, CE2, PE1, PE2, and PE3, where CE1 is connected to PE1 through port (PORT)1, and connected to PE2 through port (PORT)2. Both PE1 and PE2 are connected to PE3 through a network (such as a wide area network). CE2 is connected.
  • a virtual link tunnel exists between PE1 and PE2 to forward packets between PE1 and PE2.
  • PE1 and PE2 are configured with the same virtual local area network (vlan) and interface IP.
  • vlan virtual local area network
  • EVPN Ethernet virtual private network
  • CE2 forwards data packets to CE1
  • CE2->PE3->PE1->(PORT)1->CE1 CE2->PE3->PE2->(PORT) 2->CE1
  • CE1->(PORT)2- CE2->PE3->CE2
  • CE1 When CE1 forwards the data packet to CE2, CE1 will randomly select a path from the two paths to forward the data packet to CE2.
  • CE2 forwards the data packet to CE1, CE2 sends the data packet to PE3.
  • the PE3 forwards the data packet to the CE1 from the two paths.
  • PE1 or PE2 finds the corresponding port based on the local ARP and forwards the data packet to CE1. If the uplink data packet sent from CE1 to CE2 passes only through PE1, there is no ARP on CE1. At this time, if PE3 forwards the data packet to CE1 through PE2, PE2 sends an ARP request message to all CE1s connected to it.
  • the ARP request carries the destination network protocol (IP) address of the data packet.
  • IP network protocol
  • CE1 when CE1 receives the ARP request message and determines that the IP address carried in the ARP request message is its own address, the packet will be sent.
  • the number of packets sent by CE1 is two. If CE1 sends a packet through PE1, PE1 will not receive the packet from CE1. Therefore, PE3 fails to forward data packets to CE1 through PE2. The services in the network are not working properly.
  • a message synchronization method is proposed on the basis of the system architecture shown in FIG. 2, in which the PE1 receives the first packet sent by the CE, and then the first packet.
  • the Ethernet segment identifier (ESI) corresponding to the access port of the PE1 is added to obtain the second packet, and the virtual link corresponding to the ESI is determined according to the correspondence between the ESI and the virtual link tunnel. Tunnel, ok
  • the PE1 sends the second packet to the PE2 through the virtual link tunnel.
  • the PE2 sends a data packet to the CE1 according to the second packet.
  • the virtual link tunnel exists between the PE1 and the PE2. Both the PE1 and the PE2 can synchronize the packets through the virtual link tunnel. Therefore, whether the CE1 sends the packet to the PE1 or the PE2, the device can ensure the correct transmission of data packets, thus ensuring the normal operation of services on the network.
  • FIG. 3 is a schematic diagram of a CE multi-homing network.
  • CE 1 is mostly assigned to PE 1 and PE 2
  • CE 2 is mostly returned to PE 2 and PE 3
  • CE 1 and CE 2 are both Configure a B-type protection (TypeB) dual-homing/relay (Trunk) group.
  • PE 1 and PE 2 are configured with the same user-side vlan and interface IP, such as vlan 50 and IP: 50.1.1.1/24, that is, PE 1 and PE. 2
  • CE 1 is virtualized into a PE
  • PE 2 and PE 3 are configured with the same user-side vlan and interface IP, such as vlan 60 and IP: 60.1.1.1/24, that is, PE 2 and PE 3 are virtualized into one PE for CE 2.
  • a virtual link tunnel exists between PE 1 and PE 2, and a virtual link tunnel exists between PE 2 and PE 3. In this way, packets between PE 1 and PE 2 can be synchronized through the virtual link tunnel. Packets can be synchronized between PEs through virtual link tunnels.
  • the PE2 can determine the virtual link tunnel to forward packets through the correspondence between the ESI and the virtual link tunnel.
  • the dual-homing network is used for the description, and the method for synchronizing the packets in the multi-homing network is similar to the method for synchronizing the packets in the dual-homing network, and details are not described herein again.
  • FIG. 4 is a signaling flowchart of Embodiment 1 of a message synchronization method of the present application.
  • the method in this embodiment may include:
  • Step 401 The first PE receives the first packet sent by the CE.
  • the first packet may be a control packet, a protocol packet, or a service packet, where the service packet is, for example, an ARP, a dynamic host configuration protocol (DHCP), or an internet group management protocol. (internet group management protocol, IGMP), etc., of course, the first packet may also be other packets.
  • the specific format of the first packet is not limited in this embodiment.
  • the first PE and the second PE When the first PE and the second PE perform packet synchronization, they can perform real-time synchronization or batch synchronization.
  • the first PE triggers the synchronization of the packet after receiving the first packet sent by the CE.
  • the second PE may not exist when the first PE sends the first packet sent by the CE. After the second PE is working normally, the first PE has finished receiving the first packet. At this time, the real-time synchronization of the packet cannot be performed between the first PE and the second PE, but the batch synchronization is performed.
  • the second PE after the second PE works normally, the second PE sends a request message to the first PE, where the request message includes an ESI corresponding to the access port of the second PE, and the first PE The first packet is obtained locally according to the received request message, where the first packet includes information of all users corresponding to the ESI.
  • the first PE when the first PE receives the report sent by the CE After the text, the user information is generated by using the message, and after receiving the request message sent by the second PE, the first PE learns all the user information corresponding to the ESI corresponding to the access port of the first PE, and learns The obtained user information is encapsulated into the first message.
  • the ESI corresponding to the access port of the first PE is the same as the ESI corresponding to the access port of the second PE. Therefore, the first PE may be configured according to the ESI corresponding to the access port of the second PE in the request message. Obtaining a first packet corresponding to the ESI of the access port of the first PE.
  • Step 402 The first PE adds an ESI to the first packet to obtain a second packet.
  • the ESI is an ESI corresponding to an access port of the first PE.
  • the first PE after acquiring the first packet, the first PE adds the ESI corresponding to the access port of the first PE to the first packet according to the access link, and obtains the second packet.
  • the first PE may add an ESI in the packet header of the first packet, or may add an ESI at the end of the first packet, and of course, may also be in the first packet.
  • ESI is added to the field.
  • the specific manner of the ESI addition is not limited in this embodiment.
  • Step 403 The first PE determines a virtual link tunnel corresponding to the ESI according to the correspondence between the ESI and the virtual link tunnel.
  • a point-to-point virtual link tunnel is established between the first PE and the second PE, so that no direct link connection is needed between the first PE and the second PE.
  • the virtual link tunnel between the first PE and the second PE includes a virtual eXtensible LAN (Vxlan) tunnel and a multi-protocol label switching (MPLS) virtual private line service (virtual private wire service). , VWPS) tunnel or general routing encapsulation (GRE) tunnel.
  • Vxlan virtual eXtensible LAN
  • MPLS multi-protocol label switching
  • VRE virtual private line service
  • the aggregation network in the dual-homing network is an MPLS network.
  • the aggregation network in the dual-homing network is an IP network.
  • the first PE needs to establish the relationship between the ESI and the virtual link tunnel.
  • the first PE first establishes a virtual link tunnel between the first PE and the second PE, and after the establishment is completed, a correspondence between the ESI and the virtual link tunnel is established, where the ESI is the first for the CE.
  • the access port of the PE and the access port of the second PE are allocated, the first PE and the second PE are both connected to the CE, and when the network is connected, the access port of the first PE and the access of the second PE are The ports are assigned the same ESI.
  • a virtual link tunnel may be established independently for each ESI, that is, each ESI corresponds to a different virtual
  • the link tunnel can also be multiplexed with the same virtual link tunnel. That is, only one virtual link tunnel exists between the first PE and the second PE, and multiple ESIs correspond to the same virtual link tunnel.
  • step 402 and the step 403 are not performed in the sequence, and the step 402 is performed first, and then the step 403 is performed; or the step 403 is performed first, and then the step 402 is performed; This is not particularly limited.
  • Step 404 The first PE sends a second packet to the second PE by using the virtual link tunnel.
  • the second packet is used to instruct the second PE to send a data packet to the CE, and the first PE and the second PE are both connected to the CE.
  • the first PE and the second PE are both connected to the CE, and the link connecting the first PE or the second PE to the CE not only supports Ethernet Ethernet access but also supports passive optical network (passive optical network) Network, PON) access, which can increase the flexibility of access.
  • passive optical network passive optical network
  • the first PE After determining the virtual link tunnel corresponding to the ESI according to the ESI corresponding to the access port of the first PE, the first PE sends a second packet to the second PE by using the determined virtual link tunnel. After receiving the second packet, the second PE sends a data packet to the CE according to the second packet.
  • the second packet is not only used to indicate that the second PE sends a data packet to the CE, but also may be used to indicate that the second PE performs access security control for the CE information, and other services related to the user CE.
  • Step 405 The second PE parses the second packet to obtain the first packet and the ESI.
  • the second PE after receiving the second packet sent by the first PE, the second PE parses the second packet to obtain the first packet and the ESI.
  • Step 406 The second PE sends a data packet to the CE according to the first packet and the ESI.
  • the second PE may obtain the access port information of the local device according to the ESI obtained by the parsing.
  • the first packet includes a media access control (MAC) address of the CE
  • the first PE sends the second packet to the second PE by using the virtual link tunnel.
  • the second PE restores the first packet and the ESI, and obtains the MAC address of the CE by parsing the first packet, and then sends a data packet to the corresponding CE according to the access port information of the local device and the MAC address. Therefore, for the second PE, it is equivalent to directly receiving the packet sent by the CE, thereby ensuring correct forwarding of the data packet.
  • MAC media access control
  • the first packet may include other information that can uniquely identify the CE.
  • the content of the content in the first packet is not limited herein.
  • the CE can only receive one packet, but the first PE and the second PE can simultaneously receive and process the packet, so that the first PE and the first PE The second PE can maintain the software data entry of the machine.
  • the first PE and the second PE are peer-to-peer, that is, after the second PE obtains the first packet, the second PE adds the access port of the second PE to the first packet.
  • ESI and according to the virtual link tunnel corresponding to the ESI, the first message of the added ESI is sent to the first PE through the virtual link tunnel, so as to achieve packet synchronization between the first PE and the second PE.
  • the first PE after receiving the first packet sent by the CE, the first PE adds an ESI to the first packet to obtain a second packet, where the ESI is the first PE.
  • the ESI corresponding to the access port determines the virtual link tunnel corresponding to the ESI according to the correspondence between the ESI and the virtual link tunnel, and sends the second to the second PE through the determined virtual link tunnel.
  • the packet is sent to the second PE to send a data packet to the CE according to the second packet.
  • the first PE adds the ESI identifier to the first packet to obtain the second packet, and the virtual link between the first PE and the second PE is established after the first PE adds the ESI identifier to obtain the second packet.
  • the second tunnel sends the second packet to the second PE, so that the second PE sends the data packet to the CE. This ensures that the data packet is correctly forwarded, thus ensuring normal operation of the network.
  • FIG. 5 is a signaling flowchart of Embodiment 2 of a message synchronization method of the present application.
  • the first PE receives the first packet sent by the CE, and the first packet is the first ARP packet.
  • the method in this embodiment may include:
  • Step 501 The first PE receives the first ARP packet sent by the CE.
  • the first ARP packet carries the MAC address information of the CE, where the first ARP packet is used to indicate that the first PE or the second PE forwards the data packet to the CE corresponding to the MAC address information.
  • Step 502 The first PE adds an ESI corresponding to the access port of the first PE in the first ARP packet to obtain a second ARP packet.
  • Step 503 The first PE determines a virtual link tunnel corresponding to the ESI according to the correspondence between the ESI and the virtual link tunnel.
  • the virtual link tunnel corresponding to the ESI is a point-to-point virtual link tunnel between the first PE and the second PE, such as a Vxlan tunnel, an MPLS tunnel, or a GRE tunnel.
  • Step 504 The first PE sends a second ARP packet to the second PE by using the virtual link tunnel.
  • the first PE and the second PE are both connected to the CE, and the second ARP packet is used to instruct the second PE to send a data packet to the CE.
  • Step 505 The second PE parses the second ARP packet to obtain the first ARP packet and the ESI.
  • Step 506 The second PE sends a data packet to the CE according to the first ARP packet and the ESI.
  • the ESI corresponding to the access port of the first PE and the second PE is the same. Therefore, after obtaining the ESI, the second PE obtains the access port information of the local device according to the ESI, and parses the first ARP packet. The MAC address carried in the first ARP packet is obtained, so that the second PE will correctly send the data packet to the CE through the access port information and the MAC address.
  • the first PE after the first PE obtains the first packet, the first PE adds an ESI to the first packet to obtain a second packet, where the ESI is the access of the first PE.
  • the ESI corresponding to the port the first PE determines the virtual link tunnel corresponding to the ESI according to the correspondence between the ESI and the virtual link tunnel, and sends the second packet to the second PE by using the determined virtual link tunnel.
  • the second PE sends a data packet to the CE according to the second packet.
  • the first PE adds the ESI identifier to the first packet to obtain the second packet, and the virtual link between the first PE and the second PE is established after the first PE adds the ESI identifier to obtain the second packet.
  • the second tunnel sends the second packet to the second PE, so that the second PE sends the data packet to the CE. This ensures that the data packet is correctly forwarded, thus ensuring normal operation of the network.
  • FIG. 6 is a schematic structural diagram of Embodiment 1 of a packet synchronization apparatus according to an embodiment of the present disclosure.
  • the synchronization apparatus includes: a receiving unit 11, a processing unit 12, a determining unit 13, and a sending unit 14, where:
  • the receiving unit 11 is configured to receive the first packet sent by the user border device CE;
  • the processing unit 12 is configured to add an Ethernet segment identifier ESI to the first packet to obtain a second packet, where the ESI is an ESI corresponding to an access port of the first PE;
  • the determining unit 13 is configured to determine a virtual link tunnel corresponding to the ESI according to a correspondence between the ESI and the virtual link tunnel;
  • the sending unit 14 is configured to send the second packet to the second PE by using the virtual link tunnel, where the second packet is used to instruct the second PE to send a data packet to the user border device CE, where The first PE and the second PE are both connected to the CE.
  • the foregoing apparatus may be used to perform the method provided by the foregoing corresponding method embodiment, and the specific implementation manner and the technical effect are similar, and details are not described herein again.
  • the receiving unit 15 is further configured to receive a request message sent by the second PE, where the request message includes an ESI corresponding to an access port of the second PE.
  • the foregoing apparatus may be used to perform the method provided by the foregoing corresponding method embodiment, and the specific implementation manner and the technical effect are similar, and details are not described herein again.
  • FIG. 7 is a schematic structural diagram of Embodiment 2 of a packet synchronization apparatus according to an embodiment of the present disclosure.
  • the apparatus further includes: an establishing unit 15.
  • the establishing unit 15 is configured to establish a virtual link tunnel between the first PE and the second PE.
  • the establishing unit 15 is further configured to establish a correspondence between the ESI and the virtual link tunnel, where the ESI is the access port of the first PE and the second PE respectively.
  • the access port is assigned.
  • the virtual link tunnel includes a virtual extended local area network (Vxlan tunnel), a multi-protocol label switched MPLS tunnel, or a universal route encapsulated GRE tunnel.
  • Vxlan tunnel virtual extended local area network
  • MPLS tunnel multi-protocol label switched MPLS tunnel
  • GRE tunnel universal route encapsulated GRE tunnel
  • the foregoing apparatus may be used to perform the method provided by the foregoing corresponding method embodiment, and the specific implementation manner and the technical effect are similar, and details are not described herein again.
  • each unit of the above message synchronization device is only a division of a logical function, and the actual implementation may be integrated into one physical entity in whole or in part, or may be physically separated.
  • these units may all be implemented in the form of software by means of processing component calls; or may be implemented entirely in hardware; some units may be implemented by software in the form of processing component calls, and some units may be implemented in the form of hardware.
  • the obtaining unit may be a separately set processing element, or may be integrated in one chip of the PE, or may be stored in a memory of the PE in the form of a program, which is called and executed by a processing element of the PE. Get the function of the unit.
  • the implementation of other units is similar.
  • processing unit described herein can be an integrated circuit with signal processing capabilities.
  • each step of the above method or each of the above units may be completed by an integrated logic circuit of hardware in the processor element or an instruction in a form of software.
  • the above units may be one or more integrated circuits configured to implement the above methods, such as: one or more application specific integrated circuits (ASICs), or one or more microprocessors (digital signal processor) , DSP), or, one or more field programmable gate arrays (FPGAs), and the like.
  • ASICs application specific integrated circuits
  • DSP digital signal processor
  • FPGAs field programmable gate arrays
  • the computing unit may be a general purpose processor, such as a central processing unit (CPU) or other processor that can invoke the program.
  • CPU central processing unit
  • these units can be integrated and implemented in the form of a system-on-a-chip (SOC).
  • SOC system-on-a-chip
  • FIG. 8 is a schematic structural diagram of Embodiment 3 of a packet synchronization apparatus according to an embodiment of the present disclosure.
  • the synchronization apparatus includes: a receiving unit 21, a parsing unit 22, and a sending unit 23, where:
  • the receiving unit 21 is configured to receive, by using a virtual link tunnel, a second packet sent by the first PE, where the virtual link tunnel is a link corresponding to the Ethernet segment identifier ESI corresponding to the access port of the first PE. a tunnel, the second packet is sent by the first PE after receiving the first packet sent by the user border device CE, and the first PE and the second PE are added. Connected to the CE;
  • the parsing unit 22 is configured to parse the second packet to obtain the first packet and the ESI;
  • the sending unit 23 is configured to send a data message to the CE according to the first packet and the ESI.
  • the foregoing apparatus may be used to perform the method provided by the foregoing corresponding method embodiment, the specific implementation manner and the technical effect. Similar, no more details here.
  • the sending unit 23 is further configured to send a request message to the first PE, where the request message includes an ESI corresponding to an access port of the second PE, where the request message is used to request to obtain the All messages corresponding to ESI.
  • the virtual link tunnel includes a virtual extended local area network (Vxlan tunnel), a multi-protocol label switched MPLS tunnel, or a universal route encapsulated GRE tunnel.
  • Vxlan tunnel virtual extended local area network
  • MPLS tunnel multi-protocol label switched MPLS tunnel
  • GRE tunnel universal route encapsulated GRE tunnel
  • the foregoing apparatus may be used to perform the method provided by the foregoing corresponding method embodiment, and the specific implementation manner and the technical effect are similar, and details are not described herein again.
  • each unit of the above message synchronization device is only a division of a logical function, and the actual implementation may be integrated into one physical entity in whole or in part, or may be physically separated.
  • these units may all be implemented in the form of software by means of processing component calls; or may be implemented entirely in hardware; some units may be implemented by software in the form of processing component calls, and some units may be implemented in the form of hardware.
  • the receiving unit may be a separately set processing component, or may be integrated in one of the PE chips, or may be stored in the memory of the PE in the form of a program, which is called and executed by a certain processing component of the PE. The function of the receiving unit.
  • the implementation of other units is similar.
  • each step of the above method or each of the above units may be completed by an integrated logic circuit of hardware in the processor element or an instruction in a form of software.
  • the above units may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASICs), or one or more microprocessors (digital signal processor) , DSP), or, one or more field programmable gate arrays (FPGAs), and the like.
  • ASICs application specific integrated circuits
  • DSP digital signal processor
  • FPGAs field programmable gate arrays
  • the computing unit may be a general purpose processor, such as a central processing unit (CPU) or other processor that can invoke the program.
  • CPU central processing unit
  • these units can be integrated and implemented in the form of a system-on-a-chip (SOC).
  • SOC system-on-a-chip
  • FIG. 9A is a schematic structural diagram of a PE of the present application.
  • the PE 100 includes a processing unit 102 and a communication unit 103.
  • the processing unit 102 is configured to perform control management on the actions of the PE 100.
  • the processing unit 102 is configured to support the PE 100 to perform the steps in the foregoing packet synchronization method embodiment and/or other processes for the techniques described in this application.
  • the communication unit 103 is used to support communication between the PE 100 and other network entities, such as communication with terminal devices.
  • the PE 100 may also include a storage unit 101 for storing program codes and data of the PE 100.
  • the processing unit 102 may be a processor or a controller, for example, a central processing unit (CPU), a general-purpose processor, a digital signal processor (DSP), and an application specific integrated circuit. Circuit, ASIC), field programmable gate array (FPGA) or other programmable logic device, transistor logic device, hardware component, or any combination thereof. It is possible to implement or carry out the various illustrative logical blocks, modules and circuits described in connection with the present disclosure.
  • the processor may also be a combination of computing functions, for example, including one or more microprocessor combinations, a combination of a DSP and a microprocessor, and the like.
  • the communication unit 103 can be a communication interface, transceiver The transceiver, the transceiver circuit, and the like, wherein the communication interface is a collective name and may include one or more interfaces.
  • the storage unit 101 can be a memory.
  • the processing unit 102 is a processor
  • the communication unit 103 is a communication interface
  • the storage unit 101 is a memory
  • the PE involved in the present application may be the PE shown in FIG. 9B.
  • the PE 110 includes a processor 112, a communication interface 113, and a memory 111.
  • the PE 110 may also include a bus 114.
  • the communication interface 113, the processor 112, and the memory 111 may be connected to each other through a bus 114.
  • the bus 114 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA). Bus, etc.
  • PCI peripheral component interconnect
  • EISA extended industry standard architecture
  • the bus 114 can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 9B, but it does not mean that there is only one bus or one type of bus.
  • the memory 111 is used to store instructions executable by the processor 112, and the processor 112 is configured to call instructions stored in the memory 111 to perform the steps in the foregoing message synchronization method.
  • the present application further provides a message synchronization system, including the message synchronization device according to any of the above embodiments.
  • the present application further provides a storage medium, comprising: a readable storage medium and a computer program, the computer program being used to implement the message synchronization method provided by any of the foregoing embodiments.
  • the application also provides a program product comprising a computer program (ie, an execution instruction) stored in a readable storage medium.
  • a computer program ie, an execution instruction
  • At least one processor of the PE can read the computer program from a readable storage medium, and the at least one processor executes the computer program such that the PE implements the message synchronization method provided by the various embodiments described above.
  • the embodiment of the present application further provides a message synchronization apparatus, including at least one storage element and at least one processing element, wherein the at least one storage element is used to store a program, when the program is executed, causing the message synchronization apparatus to execute The operation of the PE in any of the above embodiments.
  • All or part of the steps of implementing the above method embodiments may be performed by hardware associated with the program instructions.
  • the aforementioned program can be stored in a readable memory.
  • the program when executed, performs the steps including the foregoing method embodiments; and the foregoing memory (storage medium) includes: read-only memory (ROM), RAM, flash memory, hard disk, solid state hard disk, tape (magnetic tape), floppy disk, optical disc, and any combination thereof.

Landscapes

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

Abstract

La présente invention concerne un procédé et un dispositif de synchronisation de paquets. Le procédé comprend les étapes suivantes consistant : à recevoir, par un premier routeur de périphérie de fournisseur (PE), un premier paquet envoyé par un dispositif de périphérie de client (CE) ; à ajouter, par le premier PE, un identifiant de segment Ethernet (ESI) dans le premier paquet pour obtenir un second paquet, l'ESI étant un ESI correspondant à un port d'accès du premier PE ; à déterminer, par le premier PE, en fonction d'une correspondance entre l'ESI et un tunnel de liaison virtuelle, un tunnel de liaison virtuelle correspondant à l'ESI ; à envoyer, par le premier PE, le second paquet à un second PE au moyen du tunnel de liaison virtuelle, le second paquet étant utilisé pour ordonner au second PE d'envoyer un paquet de données au CE, et le premier PE et le second PE étant tous deux connectés au CE. Le procédé de synchronisation de paquets fourni par la présente invention assure un transfert précis de paquets de données, garantissant ainsi un fonctionnement normal de services dans des réseaux.
PCT/CN2017/102550 2017-09-21 2017-09-21 Procédé et dispositif de synchronisation de paquets WO2019056239A1 (fr)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201780093339.2A CN110945835B (zh) 2017-09-21 2017-09-21 报文同步方法和装置
PCT/CN2017/102550 WO2019056239A1 (fr) 2017-09-21 2017-09-21 Procédé et dispositif de synchronisation de paquets

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/102550 WO2019056239A1 (fr) 2017-09-21 2017-09-21 Procédé et dispositif de synchronisation de paquets

Publications (1)

Publication Number Publication Date
WO2019056239A1 true WO2019056239A1 (fr) 2019-03-28

Family

ID=65809980

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/102550 WO2019056239A1 (fr) 2017-09-21 2017-09-21 Procédé et dispositif de synchronisation de paquets

Country Status (2)

Country Link
CN (1) CN110945835B (fr)
WO (1) WO2019056239A1 (fr)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024016799A1 (fr) * 2022-07-19 2024-01-25 中兴通讯股份有限公司 Procédé de transmission de données, équipement de périphérie de fournisseur et support d'enregistrement lisible par ordinateur

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113973045B (zh) * 2020-07-24 2024-02-23 中移(苏州)软件技术有限公司 一种报文传输方法及装置

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101815006A (zh) * 2010-03-02 2010-08-25 中兴通讯股份有限公司 一种穿越运营商网络的链路汇聚控制方法和系统
CN102571426A (zh) * 2011-12-29 2012-07-11 杭州华三通信技术有限公司 一种双归保护方法和装置
CN104202184A (zh) * 2014-08-22 2014-12-10 中国联合网络通信集团有限公司 一种快速回切业务的方法和装置
US9100213B1 (en) * 2011-06-08 2015-08-04 Juniper Networks, Inc. Synchronizing VPLS gateway MAC addresses
CN105591988A (zh) * 2015-09-24 2016-05-18 杭州华三通信技术有限公司 一种mac地址的同步方法和装置

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101599964A (zh) * 2009-06-25 2009-12-09 电子科技大学 一种基于端口信息表pit配置的用户可控l1ovpn接入方法
CN105790996A (zh) * 2014-12-26 2016-07-20 北京华为朗新科技有限公司 分布式网关备份处理方法及网络设备
US20170093611A1 (en) * 2015-09-29 2017-03-30 Juniper Networks, Inc. Egress node protection in evpn all-active topology
CN106656843A (zh) * 2015-10-30 2017-05-10 华为技术有限公司 一种负载分担方法以及相关装置
CN106789635B (zh) * 2016-03-25 2020-08-14 新华三技术有限公司 一种报文转发方法及装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101815006A (zh) * 2010-03-02 2010-08-25 中兴通讯股份有限公司 一种穿越运营商网络的链路汇聚控制方法和系统
US9100213B1 (en) * 2011-06-08 2015-08-04 Juniper Networks, Inc. Synchronizing VPLS gateway MAC addresses
CN102571426A (zh) * 2011-12-29 2012-07-11 杭州华三通信技术有限公司 一种双归保护方法和装置
CN104202184A (zh) * 2014-08-22 2014-12-10 中国联合网络通信集团有限公司 一种快速回切业务的方法和装置
CN105591988A (zh) * 2015-09-24 2016-05-18 杭州华三通信技术有限公司 一种mac地址的同步方法和装置

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024016799A1 (fr) * 2022-07-19 2024-01-25 中兴通讯股份有限公司 Procédé de transmission de données, équipement de périphérie de fournisseur et support d'enregistrement lisible par ordinateur

Also Published As

Publication number Publication date
CN110945835A (zh) 2020-03-31
CN110945835B (zh) 2021-08-20

Similar Documents

Publication Publication Date Title
CN109873760B (zh) 处理路由的方法和装置、以及数据传输的方法和装置
CN108574616B (zh) 一种处理路由的方法、设备及系统
KR102342286B1 (ko) Dcn 메시지 처리 방법, 네트워크 디바이스, 및 네트워크 시스템
WO2018120798A1 (fr) Procédé, dispositif et système de traitement de paquet vxlan
US11349687B2 (en) Packet processing method, device, and system
CN112565046B (zh) 同步多播路由器能力
WO2015165311A1 (fr) Procédé permettant de transmettre un paquet de données et dispositif côté fournisseur
JP2015523794A (ja) 別名、マルチパス透過的相互接続trillメッセージ処理方法及び装置
WO2018184496A1 (fr) Procédé d'accès multi-domicile, appareil, et nœud multi-domicile
WO2018058639A1 (fr) Procédé et appareil de partage de charge de pseudo-câble
WO2021093463A1 (fr) Procédé de transfert de paquets, premier dispositif de réseau et premier groupe de dispositifs
US9071457B2 (en) Provider network and provider edge apparatus
WO2020173424A1 (fr) Procédé de traitement de message et dispositif passerelle
WO2016197950A1 (fr) Procédé de détection d'itinéraire, dispositif et système de routeur
WO2013166911A1 (fr) Procédé permettant de traiter un conflit entre les identifiants des groupes de dispositifs dans un réseau et pont de route
WO2022160665A1 (fr) Procédé de transfert de paquets, procédé de traitement de paquets et dispositif
CN110945835B (zh) 报文同步方法和装置
WO2016095571A1 (fr) Procédé et dispositif pour établir un canal de multidiffusion
EP4325777A1 (fr) Procédé et dispositif pour élire un transitaire désigné (df)
US20220247598A1 (en) Packet Detection Method, Connectivity Negotiation Relationship Establishment Method, and Related Device
WO2021179979A1 (fr) Procédé de génération d'identifiant de segment (sid), et dispositif réseau
CN104378245A (zh) 在l2vpn架构的ac口上实现oam的方法及装置
WO2023143186A1 (fr) Procédé, système et appareil de transmission de données
WO2023125774A1 (fr) Procédé de transmission de paquet vxlan, dispositif de réseau, et système
WO2022183927A1 (fr) Procédé et appareil de transmission de paquets

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

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

Country of ref document: EP

Kind code of ref document: A1