CN113328937A - Method and device for realizing distributed aggregation - Google Patents

Method and device for realizing distributed aggregation Download PDF

Info

Publication number
CN113328937A
CN113328937A CN202110376155.5A CN202110376155A CN113328937A CN 113328937 A CN113328937 A CN 113328937A CN 202110376155 A CN202110376155 A CN 202110376155A CN 113328937 A CN113328937 A CN 113328937A
Authority
CN
China
Prior art keywords
interface
identifier
address information
sid
vlan
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.)
Granted
Application number
CN202110376155.5A
Other languages
Chinese (zh)
Other versions
CN113328937B (en
Inventor
陈建
王丽媛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN202110376155.5A priority Critical patent/CN113328937B/en
Publication of CN113328937A publication Critical patent/CN113328937A/en
Application granted granted Critical
Publication of CN113328937B publication Critical patent/CN113328937B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/34Source routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/24Multipath
    • H04L45/245Link aggregation, e.g. trunking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/50Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing

Landscapes

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

Abstract

The application provides a method and a device for realizing distributed aggregation, wherein the method is applied to a first PE, and comprises the following steps: receiving a first service message sent by a CE through a first interface, wherein the first service message comprises address information of the CE; generating an address information table item matched with the CE according to the address information of the CE; and sending synchronization information to the second PE through the control channel, wherein the synchronization information comprises an address information table entry of the CE, a first SID label under a first VSI instance included by the first PE and a group identifier of a DR group to which the first interface belongs, so that the second PE issues the address information table entry of the CE to the second interface according to the first SID label and the group identifier, the second SID label under the first VSI instance included by the second PE is the same as the first SID label, and the second interface and the first interface belong to the same DR group.

Description

Method and device for realizing distributed aggregation
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for implementing distributed aggregation.
Background
Segment Routing (abbreviated as Segment Routing) adopts a source node path selection mechanism, and Segment identifiers (abbreviated as SID) of segments to be passed by a path are packaged at a source node in advance. When the service message passes through the SR node, the node forwards the service message according to the SID included in the service message. Except for the source node, other nodes do not need to maintain the path state. The IPv6 SR (english: Segment routing IPv6, abbreviated as SRv6) refers to that an SR technology is used in an IPv6 network, and an IPv6 address is used as an SID to further implement forwarding of a service packet.
SRv6 network is a new network based on IPv6 network, and currently, the backbone network is evolving to SRv6 network. Distributed Aggregation (MLAG) networking is one of the mature networks for access to a Multi-homing Circuit (AC) in the existing VXLAN network.
The VXLAN MLAG networking realizes MLAG networking access to a two-layer VPN through a VXLAN network, and further realizes the synchronization of forwarding table items such as MAC or ARP among a group of service Provider network edges (PE) accessed by a user network Edge (CE for short) in a multi-homing way.
According to the foregoing, the current MLAG networking access to the two-layer VPN needs to be realized by the VXLAN networking. Even if the MLAG networking is implemented to access the two-layer VPN in the SRv6 network, the configuration of the relevant content of the VXLAN MLAG is performed first, and then VXLAN over SRv6, namely VXLAN over IPv6 over SRv6, is configured redundantly and complexly.
Disclosure of Invention
In view of this, the present application provides a method and an apparatus for implementing distributed aggregation, so as to solve the problem that configuration is redundant and complicated in the process of implementing MLAG networking to access a two-layer VPN in an SRv6 network.
In a first aspect, the present application provides a method for implementing distributed aggregation, where the method is applied to a first PE, the first PE is in an SRv6 network, the SRv6 network further includes a second PE and a CE, a control channel has been established between the first PE and the second PE, and the CE accesses the first PE and the second PE in a multi-homing manner, where the method includes:
receiving a first service message sent by the CE through a first interface, wherein the first service message comprises address information of the CE;
generating an address information table item matched with the CE according to the address information of the CE;
sending synchronization information to the second PE through the control channel, where the synchronization information includes an address information entry of the CE, a first SID tag under a first VSI instance included in the first PE, and a group identifier of a DR group to which the first interface belongs, so that the second PE issues the address information entry of the CE to a second interface according to the first SID tag and the group identifier, where a second SID tag under the first VSI instance included in the second PE is the same as the first SID tag, and the second interface and the first interface belong to the same DR group.
In a second aspect, the present application provides an apparatus for implementing distributed aggregation, where the apparatus is applied to a first PE, the first PE is in an SRv6 network, the SRv6 network further includes a second PE and a CE, a control channel has been established between the first PE and the second PE, and the CE accesses the first PE and the second PE in a multi-homing manner, and the apparatus includes:
a receiving unit, configured to receive, through a first interface, a first service packet sent by the CE, where the first service packet includes address information of the CE;
the generating unit is used for generating an address information table item matched with the CE according to the address information of the CE;
a sending unit, configured to send synchronization information to the second PE through the control channel, where the synchronization information includes an address information entry of the CE, a first SID tag under a first VSI instance included in the first PE, and a group identifier of a DR group to which the first interface belongs, so that the second PE issues the address information entry of the CE to a second interface according to the first SID tag and the group identifier, where a second SID tag under the first VSI instance included in the second PE is the same as the first SID tag, and the second interface and the first interface belong to the same DR group.
In a third aspect, the present application provides a network device comprising a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to perform the method provided by the first aspect of the present application.
Therefore, by applying the method and the device for implementing distributed aggregation provided by the present application, through the first interface, the first PE receives the first service packet sent by the CE, where the first service packet includes address information of the CE; according to the address information of the CE, the first PE generates an address information table item matched with the CE; through the control channel, the first PE sends synchronization information to the second PE, the synchronization information comprises an address information table entry of the CE, a first SID label under a first VSI instance included by the first PE and a group identifier of a DR group to which the first interface belongs, so that the second PE sends the address information table entry of the CE to the second interface according to the first SID label and the group identifier, a second SID label under the first VSI instance included by the second PE is the same as the first SID label, and the second interface and the first interface belong to the same DR group.
Therefore, the technical scheme for realizing the access of the MLAG networking to the two-layer VPN in the SRv6 network is provided. The problem that redundancy and complexity are configured in the process of realizing the access of the MLAG networking to the two-layer VPN in the SRv6 network is solved.
Drawings
Fig. 1 is a flowchart of a method for implementing distributed aggregation according to an embodiment of the present application;
fig. 2 is a schematic diagram of a two-layer VPN multi-homing access networking under SRv6 networks according to an embodiment of the present application;
fig. 3 is a structural diagram of an apparatus for implementing distributed aggregation according to an embodiment of the present application;
fig. 4 is a hardware structure of a network device according to an embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the corresponding listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
The following describes in detail a method for implementing distributed aggregation provided in the embodiments of the present application. Referring to fig. 1, fig. 1 is a flowchart of a method for implementing distributed aggregation according to an embodiment of the present application. The method is applied to the first PE, and the implementation method of distributed aggregation provided in the embodiment of the present application may include the following steps.
Step 110, receiving, through a first interface, a first service packet sent by the CE, where the first service packet includes address information of the CE.
Specifically, the first PE, the second PE, and the third PE belong to a two-layer VPN VPLS network. And the CE is used as access equipment and accesses the first PE and the second PE through MLAG networking and multi-homing.
In this embodiment of the present application, the CE sends the first service packet, and sends the service packet to the first PE or the second PE through a hash (hash) algorithm. The service packet is sent to the first PE for illustration.
The first PE includes a first interface that interfaces with the CE. Through a first interface, a first PE receives a first service message sent by a CE, wherein the first service message comprises address information of the CE. The address information of the CE may specifically be MAC address information and IP address information of the CE.
And after receiving the first service message, the first PE acquires the address information of the CE from the first service message.
As shown in fig. 2, fig. 2 is a schematic diagram of a two-layer VPN multi-homing access networking under SRv6 network according to an embodiment of the present application. In fig. 2, PE1, PE2, and PE3 all belong to a two-layer VPN VPLS network, and CE1 is used as an access device to access PE1 and PE2 through MLAG networking and multi-homing.
The CE1 sends the first service packet, and sends the first service packet to PE1 or PE2 through a hash algorithm. The first service packet is sent to PE1 for illustration.
The downstream Interface for connecting PE and CE is the first Interface (Interface g0/1 in FIG. 2). Through the first interface, the PE1 receives a first service packet sent by the CE1, where the first service packet includes MAC address information (1-1-1-1) and IP address information (200.200.200.2) of the CE.
After receiving the first service packet, PE1 obtains the MAC address information and IP address information of the CE from the first service packet.
Further, before this step, the method further includes a step in which the first PE receives the configuration instruction, and configures the forwarding instance and the port of the first PE according to the configuration instruction.
The first PE receives a configuration instruction, wherein the configuration instruction is input by a user (or a manager), or is issued after the controller receives the configuration instruction input by the user (or the manager). The configuration instruction includes a Virtual Switch Instance (VSI Instance), a configuration identifier, a first SID tag, a group identifier, and an identifier of a first interface.
According to the VSI instance configuration identification, the first PE configures a first VSI instance in the first PE, and configures a first SID label in the first VSI instance; and configuring the group identifier at a first interface corresponding to the identifier of the first interface according to the identifier of the first interface, and binding the first interface with the first VSI instance.
It should be noted that, in this embodiment of the present application, the second PE also receives the configuration instruction, and performs a process of configuring the forwarding instance and the port thereof according to the configuration instruction. The configuration process of the second PE is the same as that of the first PE, and will not be repeated here.
For example, the first VSI instance configured by the first PE at itself is specifically:
a first PE:
configuring VSI forwarding instance:
vsi 1
in-sid 12:10000: 0-key configuration 1: the first PE and the second PE are both configured with the same SID to realize load sharing and generation of IPL link between the first PE and the second PE
interface g0/1
port drni-group 100
xconnect vsi 1
The first VSI instance of the second PE in its own configuration is specifically:
and a second PE:
configuring VSI forwarding instance:
vsi 1
in-sid 12:10000: 0-key configuration 1: the first PE and the second PE are both configured with the same SID to realize load sharing and generation of IPL link between the first PE and the second PE
interface g0/1
port drni-group 100
xconnect vsi 1
In the foregoing configuration instruction, the configuration of MLAG networking is further performed on the first PE and the second PE, and the configuration of MLAG networking performed on the first PE and the second PE can be implemented according to a related configuration of an existing MLAG networking, which is not repeated here.
The first PE and the second PE are adjacent to each other in the MLAG networking, each PE includes an Interface (Interface g0/1 in fig. 2), which is a two-layer aggregation Interface (or DR Interface) connected to the external device, and Distributed aggregation interfaces (in english: Distributed Relay interfaces, DR interfaces for short) connected to the same aggregation group on the external device belong to the same DR group. Each PE further includes an internal control link Port (i.e., an Intra-Port, abbreviated as IPP) Port (Interface g0/2 in fig. 2), which is connected to an Interface included in the peer device for internal control. The Link between the two IPP ports is an internal control Link (IPL for short), and the first PE and the second PE exchange protocol messages and transmit data flow through the IPL Link.
In this embodiment of the present application, after the IPL link is established between the first PE and the second PE, a socket connection is created on the IPL link, and the socket connection may be referred to as a control channel. Through the control channel, the table entry synchronization between the first PE and the second PE can be realized.
And step 120, generating an address information table item matched with the CE according to the address information of the CE.
Specifically, according to the description in step 110, after acquiring the address information of the CE from the first service packet, the first PE learns the address information of the CE and generates an address information entry matching the CE.
After the first PE generates the address information table item matched with the CE, the first SID label under the first VSI instance and the group identification of the DR group to which the first interface belongs are obtained.
The first PE generates synchronization information, wherein the synchronization information comprises an address information table entry of the CE, a first SID label under the first VSI instance and a group identifier of a DR group to which the first interface belongs.
According to the foregoing example, the PE1 acquires the MAC address information and the IP address information of the CE from the first traffic message, and then generates a MAC address table entry (MAC-IP-CE1) of the CE 1.
PE1 generates synchronization information that includes the MAC address entry of CE1, a first SID tag (12:10000::0), and a group identification (100).
Step 130, sending synchronization information to the second PE through the control channel, where the synchronization information includes an address information entry of the CE, a first SID tag under a first VSI instance included in the first PE, and a group identifier of a DR group to which the first interface belongs, so that the second PE issues the address information entry of the CE to a second interface according to the first SID tag and the group identifier, where a second SID tag under the first VSI instance included in the second PE is the same as the first SID tag, and the second interface and the first interface belong to the same DR group.
Specifically, according to the description of step 120, after the first PE generates the synchronization information, the first PE sends the synchronization information to the second PE through the control channel. After receiving the synchronization information, the second PE obtains the address information entry of the CE, the first SID tag included in the first PE under the first VSI instance, and the group identifier of the DR group to which the first interface belongs from the synchronization information.
According to the first SID label, the second PE searches for a second SID label which is the same as the first SID label in which VSI instance of multiple VSI instances configured by the second PE. And if a second SID label identical to the first SID label exists in one VSI example, the second PE determines that the address information table entry of the CE is to be issued to the VSI example.
In an embodiment of the present application, the second PE determines that the self-configured first VSI instance includes a second SID tag identical to the first SID tag. Meanwhile, the second PE determines that the address information table entry of the CE is to be issued to the first VSI instance.
According to the group identification, the second PE searches whether an interface belonging to a DR group corresponding to the group identification exists in the first VSI instance. And if the interface in the DR group corresponding to the group identifier exists, the second PE determines that the address information table entry of the CE is to be issued to the interface.
In an embodiment of the present application, the second PE determines that the second Interface (Interface g0/1 in fig. 2) in the first VSI instance belongs to an Interface within the DR group corresponding to the group identification. Meanwhile, the second PE determines that the address information table entry of the CE is to be issued to the second interface.
According to the foregoing example, PE1 sends synchronization information to PE2 via a control channel. After receiving the synchronization information, PE2 obtains the MAC address table entry, the first SID tag (12:10000::0) and the group ID (100) of CE1 from the synchronization information.
PE2 looks up multiple VSI instances of its own configuration according to 12:10000:: 0. PE2 determines that the self-configured first VSI instance includes a second SID tag that is the same as 12:10000:: 0. Meanwhile, the PE2 determines that the MAC address table entry of the CE1 should be issued to the first VSI instance.
According to 100, PE2 looks up in the first VSI instance whether there are interfaces that belong within the DR group to which the group identification corresponds. PE2 determines that the second Interface in the first VSI instance (Interface g0/1 in FIG. 2) belongs to an Interface within the DR group to which the group identification corresponds. Meanwhile, the PE2 determines that the MAC address table entry of the CE1 should be issued to the second interface.
Therefore, by applying the method and the device for implementing distributed aggregation provided by the present application, through the first interface, the first PE receives the first service packet sent by the CE, where the first service packet includes address information of the CE; according to the address information of the CE, the first PE generates an address information table item matched with the CE; through the control channel, the first PE sends synchronization information to the second PE, the synchronization information comprises an address information table entry of the CE, a first SID label under a first VSI instance included by the first PE and a group identifier of a DR group to which the first interface belongs, so that the second PE sends the address information table entry of the CE to the second interface according to the first SID label and the group identifier, a second SID label under the first VSI instance included by the second PE is the same as the first SID label, and the second interface and the first interface belong to the same DR group.
Therefore, the technical scheme for realizing the access of the MLAG networking to the two-layer VPN in the SRv6 network is provided. The problem that redundancy and complexity are configured in the process of realizing the access of the MLAG networking to the two-layer VPN in the SRv6 network is solved.
Optionally, in an embodiment of the present application, the first interface includes a first AC port. The synchronization information generated by the first PE further comprises a VLAN identification of a VLAN to which the first AC port belongs.
The first PE sends synchronization information to the second PE. After receiving the synchronization information, the second PE obtains the address information entry of the CE, the first SID tag included in the first VSI instance by the first PE, the group identifier of the DR group to which the first interface belongs, and the VLAN identifier of the VLAN to which the first AC port belongs from the synchronization information.
As can be seen from the foregoing description, after the second PE determines that the address information entry of the CE should be issued to the second interface, it searches whether there is an AC port belonging to the VLAN corresponding to the VLAN identifier in the multiple AC ports included in the second interface according to the VLAN identifier. And if the AC port in the VLAN corresponding to the VLAN identifier exists, the second PE determines that the address information table entry of the CE is to be issued to the AC port.
In this embodiment, the second PE determines that the second AC port belongs to an AC port in the VLAN corresponding to the VLAN id. Meanwhile, the second PE determines that the address information table entry of the CE is to be issued to the second AC port.
Optionally, in this embodiment of the present application, a process of the third PE accessing the CE in a load sharing manner is further included.
Specifically, as shown in fig. 2, PE3 in fig. 2 may learn the address information of CE1 through the service packet transmitted by CE1 and forwarded by PE1 or PE2, or PE3 may learn the address information of CE1 through the EVPN two-type route synchronized by PE1 or PE 2.
After PE3 learns the address information of CE1, it generates a host route to CE 1. The outgoing direction of the host route is a tunnel (tunnel) port, and the destination addresses of the tunnel port are SID labels of PE1 and PE2, namely 12:10000:: 0.
In this embodiment, the service packet may specifically be an SRv6 service packet. SRv6 the service message includes an IPv6 base header, an SRH header, and an original message. In forwarding SRv6 the traffic packet, forwarding may be performed based on the SID list in the SRH header.
When the PE3 forwards the service packet to the CE1, the destination address of the outgoing direction is the SID label of PE1/PE 2. Thus, the equivalent Path (IGP under ECMP) is naturally formed with the exit direction being PE1/PE 2.
Optionally, in this embodiment of the present application, the method further includes a process that when a link between the first PE and the CE is abnormal, the first PE forwards the service packet through an IPL link established with the second PE.
Specifically, as can be seen from the foregoing, when the PE3 forwards the service packet to the CE1, the outgoing direction is the equivalent path formed by the PE1/PE 2. As shown in fig. 2, the PE3 sends the second service packet to the CE1, and sends the second service packet to the PE1 or the PE2 by using a hash algorithm. The second service packet is sent to PE1 for example.
PE1 receives the second service packet sent by PE 3. And determining that the next hop is CE1 according to the SID list, decapsulating the second service message by the PE1, stripping the IPv6 basic header and the SRH header, and acquiring the original message.
If the link between PE1 and CE1 is abnormal at this time, PE1 encapsulates the first VLAN id outside the original packet, where the first VLAN id includes the outer layer VLAN id and the memory VLAN id. The PE1 obtains the third service packet, and forwards the third service packet to the PE2 through the IPL.
After receiving the third service packet, PE2 decapsulates the third service packet, strips the first VLAN id, and obtains the original packet. Based on the first VLAN id, PE2 recovers a third SID label, and determines, from the multiple VIS instances configured by itself, a VIS instance matching the third SID label, that is, a second VSI instance.
PE2 forwards the original message within the second VSI instance and eventually to CE 1.
Further, the first VLAN id may be generated by:
PE1 maps a first magnitude value (a bit value corresponding to each of the first 32 bits) corresponding to a first number of bits (e.g., the first 32 bits) included in a first SID tag (i.e., 12:10000::0) configured within its own first VSI instance to a first VLAN identification. Wherein, the first 16 bits are mapped into an inner VLAN, and the second 16 bits are mapped into an outer VLAN.
Based on the same inventive concept, the embodiment of the application also provides a distributed aggregation implementation device corresponding to the distributed aggregation implementation method. Referring to fig. 3, fig. 3 is a structural diagram of an implementation apparatus for distributed aggregation according to an embodiment of the present application. The apparatus is applied to a first PE, the first PE is in an SRv6 network, the SRv6 network further includes a second PE and a CE, a control channel has been established between the first PE and the second PE, and the CE accesses the first PE and the second PE in a multi-homing manner, and the apparatus includes:
a receiving unit 310, configured to receive, through a first interface, a first service packet sent by the CE, where the first service packet includes address information of the CE;
a generating unit 320, configured to generate an address information entry matching the CE according to the address information of the CE;
a sending unit 330, configured to send synchronization information to the second PE through the control channel, where the synchronization information includes an address information entry of the CE, a first SID tag under a first VSI instance included in the first PE, and a group identifier of a DR group to which the first interface belongs, so that the second PE issues the address information entry of the CE to a second interface according to the first SID tag and the group identifier, where a second SID tag under the first VSI instance included in the second PE is the same as the first SID tag, and the second interface and the first interface belong to the same DR group.
Optionally, the receiving unit 310 is further configured to receive a configuration instruction, where the configuration instruction includes a VSI instance configuration identifier, the first SID tag, the group identifier, and an identifier of the first interface;
the device further comprises: a configuration unit (not shown in the figure), configured to configure the first VSI instance in the first PE according to the VSI instance configuration identifier, and configure the first SID tag within the first VSI instance;
and configuring the group identifier at a first interface corresponding to the identifier of the first interface according to the identifier of the first interface, and binding the first interface and the first VSI instance.
Optionally, the first interface comprises a first AC port; the synchronization information further includes a VLAN identifier of a VLAN to which the first AC port belongs, so that the second PE issues the address information entry of the CE to a second AC port included in a second interface according to the VLAN identifier, where the second AC interface and the first AC port belong to the same VLAN.
Optionally, the first PE includes an IPP port, and the first PE establishes an IPL with the second PE through the IPP port;
the receiving unit 310 is further configured to receive a second service packet sent by a third PE;
the sending unit 330 is further configured to, when a link between the CE and the second PE is abnormal, forward a third service packet to the second PE through the IPL, where the third service packet includes a first VLAN identifier, so that the second PE restores a third SID tag according to the first VLAN identifier, determines, through the third SID tag, a second VSI instance corresponding to the third SID tag, and forwards an original packet included in the third service packet in the second VSI instance.
Optionally, the apparatus further comprises: a mapping unit (not shown in the figure), configured to map a first quantity value corresponding to a first quantity of bits included in the first SID tag as the first VLAN identifier, so that when the second service packet is received and a link between the CE and the second service packet is abnormal, the first VLAN identifier is carried in the second service packet to obtain the third service packet, and an original packet included in the third service packet is forwarded in a VLAN corresponding to the first VLAN identifier.
Therefore, by applying the device for implementing distributed aggregation provided by the present application, through the first interface, the device receives the first service packet sent by the CE, where the first service packet includes address information of the CE; according to the address information of the CE, the device generates an address information table item matched with the CE; through the control channel, the device sends synchronization information to the second PE, the synchronization information comprises an address information table entry of the CE, a first SID label under a first VSI instance included by the first PE and a group identifier of a DR group to which the first interface belongs, so that the second PE issues the address information table entry of the CE to the second interface according to the first SID label and the group identifier, a second SID label under the first VSI instance included by the second PE is the same as the first SID label, and the second interface and the first interface belong to the same DR group.
Therefore, the technical scheme for realizing the access of the MLAG networking to the two-layer VPN in the SRv6 network is provided. The problem that redundancy and complexity are configured in the process of realizing the access of the MLAG networking to the two-layer VPN in the SRv6 network is solved.
Based on the same inventive concept, the present application further provides a network device, as shown in fig. 4, including a processor 410, a transceiver 420, and a machine-readable storage medium 430, where the machine-readable storage medium 430 stores machine-executable instructions capable of being executed by the processor 410, and the processor 410 is caused by the machine-executable instructions to perform an implementation method of distributed aggregation provided by the present application. The apparatus for implementing distributed aggregation shown in fig. 3 can be implemented by using a hardware structure of a network device as shown in fig. 4.
The computer-readable storage medium 430 may include a Random Access Memory (RAM) or a Non-volatile Memory (NVM), such as at least one disk Memory. Alternatively, the computer-readable storage medium 430 may also be at least one memory device located remotely from the processor 410.
The Processor 410 may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; the Integrated Circuit can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA), or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
In the embodiment of the present application, the processor 410 is caused by machine executable instructions by reading the machine executable instructions stored in the machine readable storage medium 430, so as to enable the processor 410 itself and the call transceiver 420 to execute the implementation method of the distributed aggregation described in the embodiment of the present application.
In addition, the present application embodiment provides a machine-readable storage medium 430, and the machine-readable storage medium 430 stores machine executable instructions, which when invoked and executed by the processor 410, cause the processor 410 itself and the invoking transceiver 420 to perform the implementation method of distributed aggregation described in the present application embodiment.
The implementation process of the functions and actions of each unit in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the application. One of ordinary skill in the art can understand and implement it without inventive effort.
For the implementation apparatus of distributed aggregation and the machine-readable storage medium embodiment, since the content of the related method is substantially similar to that of the foregoing method embodiment, the description is relatively simple, and for the relevant points, reference may be made to part of the description of the method embodiment.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims (10)

1. A method for realizing distributed aggregation is applied to a first PE, the first PE is in SRv6 network, the SRv6 network further includes a second PE and a CE, a control channel has been established between the first PE and the second PE, the CE accesses the first PE and the second PE in a multi-homing manner, and the method includes:
receiving a first service message sent by the CE through a first interface, wherein the first service message comprises address information of the CE;
generating an address information table item matched with the CE according to the address information of the CE;
sending synchronization information to the second PE through the control channel, where the synchronization information includes an address information entry of the CE, a first SID tag under a first VSI instance included in the first PE, and a group identifier of a DR group to which the first interface belongs, so that the second PE issues the address information entry of the CE to a second interface according to the first SID tag and the group identifier, where a second SID tag under the first VSI instance included in the second PE is the same as the first SID tag, and the second interface and the first interface belong to the same DR group.
2. The method according to claim 1, wherein before receiving, via the first interface, the first service packet sent by the CE, the method further comprises:
receiving a configuration instruction, wherein the configuration instruction comprises a VSI instance configuration identifier, the first SID tag, the group identifier, and an identifier of the first interface;
configuring the first VSI instance in the first PE according to the VSI instance configuration identification, and configuring the first SID label in the first VSI instance;
and configuring the group identifier at a first interface corresponding to the identifier of the first interface according to the identifier of the first interface, and binding the first interface and the first VSI instance.
3. The method of claim 1, wherein the first interface comprises a first AC port;
the synchronization information further includes a VLAN identifier of a VLAN to which the first AC port belongs, so that the second PE issues the address information entry of the CE to a second AC port included in a second interface according to the VLAN identifier, where the second AC interface and the first AC port belong to the same VLAN.
4. The method of claim 3, wherein the first PE comprises an IPP port through which the first PE establishes an IPL with the second PE; the method further comprises the following steps:
receiving a second service message sent by a third PE;
and when the link between the CE and the PE is abnormal, forwarding a third service message to the second PE through the IPL, wherein the third service message comprises a first VLAN identifier, so that the second PE restores a third SID label according to the first VLAN identifier, determines a second VSI instance corresponding to the third SID label through the third SID label, and forwards an original message included in the third service message in the second VSI instance.
5. The method according to claim 4, wherein before receiving the second service packet sent by the third PE, the method further comprises:
and mapping a first quantity value corresponding to a first quantity of bits included in the first SID tag as the first VLAN identifier, so that when the second service message is received and a link between the CE and the second service message is abnormal, the first VLAN identifier is carried in the second service message to obtain the third service message, and an original message included in the third service message is forwarded in a VLAN corresponding to the first VLAN identifier.
6. An apparatus for implementing distributed aggregation, where the apparatus is applied to a first PE, the first PE is in an SRv6 network, the SRv6 network further includes a second PE and a CE, a control channel has been established between the first PE and the second PE, and the CE accesses the first PE and the second PE in a multi-homing manner, and the apparatus includes:
a receiving unit, configured to receive, through a first interface, a first service packet sent by the CE, where the first service packet includes address information of the CE;
the generating unit is used for generating an address information table item matched with the CE according to the address information of the CE;
a sending unit, configured to send synchronization information to the second PE through the control channel, where the synchronization information includes an address information entry of the CE, a first SID tag under a first VSI instance included in the first PE, and a group identifier of a DR group to which the first interface belongs, so that the second PE issues the address information entry of the CE to a second interface according to the first SID tag and the group identifier, where a second SID tag under the first VSI instance included in the second PE is the same as the first SID tag, and the second interface and the first interface belong to the same DR group.
7. The apparatus of claim 6, wherein the receiving unit is further configured to receive a configuration instruction, and wherein the configuration instruction comprises a VSI instance configuration identifier, the first SID tag, the group identifier, and an identifier of the first interface;
the device further comprises: a configuration unit, configured to configure the first VSI instance in the first PE according to the VSI instance configuration identifier, and configure the first SID tag in the first VSI instance;
and configuring the group identifier at a first interface corresponding to the identifier of the first interface according to the identifier of the first interface, and binding the first interface and the first VSI instance.
8. The apparatus of claim 6, wherein the first interface comprises a first AC port;
the synchronization information further includes a VLAN identifier of a VLAN to which the first AC port belongs, so that the second PE issues the address information entry of the CE to a second AC port included in a second interface according to the VLAN identifier, where the second AC interface and the first AC port belong to the same VLAN.
9. The apparatus of claim 8, wherein the first PE comprises an IPP port, the first PE establishing an IPL with the second PE through the IPP port;
the receiving unit is further configured to receive a second service packet sent by a third PE;
the sending unit is further configured to forward, when a link between the sending unit and the CE is abnormal, a third service packet to the second PE through the IPL, where the third service packet includes a first VLAN identifier, so that the second PE restores a third SID tag according to the first VLAN identifier, determines, through the third SID tag, a second VSI instance corresponding to the third SID tag, and forwards an original packet included in the third service packet in the second VSI instance.
10. The apparatus of claim 9, further comprising:
a mapping unit, configured to map a first quantity value corresponding to a first quantity of bits included in the first SID tag as the first VLAN identifier, so that when the second service packet is received and a link between the CE and the second service packet is abnormal, the first VLAN identifier is carried in the second service packet to obtain the third service packet, and an original packet included in the third service packet is forwarded in a VLAN corresponding to the first VLAN identifier.
CN202110376155.5A 2021-04-08 2021-04-08 Method and device for realizing distributed aggregation Active CN113328937B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110376155.5A CN113328937B (en) 2021-04-08 2021-04-08 Method and device for realizing distributed aggregation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110376155.5A CN113328937B (en) 2021-04-08 2021-04-08 Method and device for realizing distributed aggregation

Publications (2)

Publication Number Publication Date
CN113328937A true CN113328937A (en) 2021-08-31
CN113328937B CN113328937B (en) 2022-05-24

Family

ID=77414586

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110376155.5A Active CN113328937B (en) 2021-04-08 2021-04-08 Method and device for realizing distributed aggregation

Country Status (1)

Country Link
CN (1) CN113328937B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113746717A (en) * 2021-09-07 2021-12-03 中国联合网络通信集团有限公司 Network equipment communication method and network equipment communication device
CN115632982A (en) * 2022-10-21 2023-01-20 杭州云合智网技术有限公司 Optimization method for controlling EVPN and DRNI environment resources based on SDN

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015070667A1 (en) * 2013-11-13 2015-05-21 华为技术有限公司 Method for issuing route information, and method and apparatus for transmitting packet
CN108259304A (en) * 2017-12-28 2018-07-06 新华三技术有限公司 A kind of forwarding-table item synchronous method and device
CN109067634A (en) * 2018-09-28 2018-12-21 新华三技术有限公司 A kind of forwarding-table item creation method and device
US20200296025A1 (en) * 2017-12-01 2020-09-17 Huawei Technologies Co., Ltd. Route Processing Method and Apparatus, and Data Transmission Method and Apparatus
US20200389391A1 (en) * 2019-01-30 2020-12-10 Huawei Technologies Co., Ltd. Packet processing method and apparatus
CN112187609A (en) * 2020-09-21 2021-01-05 新华三信息安全技术有限公司 Table entry generation method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015070667A1 (en) * 2013-11-13 2015-05-21 华为技术有限公司 Method for issuing route information, and method and apparatus for transmitting packet
US20200296025A1 (en) * 2017-12-01 2020-09-17 Huawei Technologies Co., Ltd. Route Processing Method and Apparatus, and Data Transmission Method and Apparatus
CN108259304A (en) * 2017-12-28 2018-07-06 新华三技术有限公司 A kind of forwarding-table item synchronous method and device
CN109067634A (en) * 2018-09-28 2018-12-21 新华三技术有限公司 A kind of forwarding-table item creation method and device
US20200389391A1 (en) * 2019-01-30 2020-12-10 Huawei Technologies Co., Ltd. Packet processing method and apparatus
CN112187609A (en) * 2020-09-21 2021-01-05 新华三信息安全技术有限公司 Table entry generation method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
C. FILSFILS等: "Segment Routing Architecture draft-ietf-spring-segment-routing-12", 《IETF 》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113746717A (en) * 2021-09-07 2021-12-03 中国联合网络通信集团有限公司 Network equipment communication method and network equipment communication device
CN113746717B (en) * 2021-09-07 2023-04-18 中国联合网络通信集团有限公司 Network equipment communication method and network equipment communication device
CN115632982A (en) * 2022-10-21 2023-01-20 杭州云合智网技术有限公司 Optimization method for controlling EVPN and DRNI environment resources based on SDN

Also Published As

Publication number Publication date
CN113328937B (en) 2022-05-24

Similar Documents

Publication Publication Date Title
CN109873760B (en) Method and device for processing route, and method and device for data transmission
US11671367B1 (en) Methods and apparatus for improving load balancing in overlay networks
US11075774B2 (en) VXLAN packet processing method, device, and system
CN107547402B (en) Forwarding table generation method and device
CN109218178B (en) Message processing method and network equipment
CN109861924B (en) Message sending and processing method and device, PE node and node
EP2600573B1 (en) Method for transmitting addresses correspondence relationship in second-layer protocol using link status routing
US9749239B2 (en) Transparent Rbridge
EP4231597A1 (en) Method for forwarding bier message, and device and system
JP2019033534A (en) Data packet transfer
CN112019433B (en) Message forwarding method and device
CN113328937B (en) Method and device for realizing distributed aggregation
CN112887139B (en) Message processing method and device
WO2018058639A1 (en) Pseudo wire load sharing method and apparatus
CN111740907A (en) Message transmission method, device, equipment and machine readable storage medium
WO2022068436A1 (en) Service processing method and related device
CN112104547B (en) Method and device for avoiding loop in EVPN multi-homing networking
CN112822097A (en) Message forwarding method, first network device and first device group
CN113726653B (en) Message processing method and device
CN108306825B (en) Equivalent forwarding table item generation method and VTEP device
CN108768845B (en) Multi-homing host routing synchronization method and device
CN113452606B (en) Communication method and device
CN114520762B (en) BIERv6 message sending method and first network equipment
CN112367238B (en) Message processing method and device
WO2024001701A1 (en) Data processing method, apparatus and system

Legal Events

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