CN113726653A - Message processing method and device - Google Patents

Message processing method and device Download PDF

Info

Publication number
CN113726653A
CN113726653A CN202110783184.3A CN202110783184A CN113726653A CN 113726653 A CN113726653 A CN 113726653A CN 202110783184 A CN202110783184 A CN 202110783184A CN 113726653 A CN113726653 A CN 113726653A
Authority
CN
China
Prior art keywords
label
route
data message
sid
data packet
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
CN202110783184.3A
Other languages
Chinese (zh)
Other versions
CN113726653B (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.)
New H3C Security Technologies Co Ltd
Original Assignee
New H3C Security 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 New H3C Security Technologies Co Ltd filed Critical New H3C Security Technologies Co Ltd
Priority to CN202110783184.3A priority Critical patent/CN113726653B/en
Publication of CN113726653A publication Critical patent/CN113726653A/en
Application granted granted Critical
Publication of CN113726653B publication Critical patent/CN113726653B/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
    • 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
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/82Miscellaneous aspects
    • H04L47/825Involving tunnels, e.g. MPLS
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion

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 message processing method and a device, the method is applied to a first network device, the first network device is in SRv6 networks, a first PE is also included in SRv6 networks, the method comprises the following steps: receiving a first data message sent by a first PE through an SRv6 tunnel, wherein the first data message comprises a first type SID; acquiring a first label for forwarding a first data message according to the first type SID; sending a second data message to a second network device through an MPLS (multi-protocol label switching) path, wherein the second data message comprises a first label, so that the second network device obtains a second label and a third label for forwarding the second data message according to the first label, and sends a third data message to a second PE (provider edge), wherein the third data message comprises the second label and the third label; and the second network equipment and the second PE are both in the MPLS group network.

Description

Message processing method and device
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for processing a packet.
Background
Currently, increasingly diverse network services place varying performance demands on the network. For example, a Segment Routing IPv6 (abbreviated as SRv6) network and a Multi-protocol Label Switching (abbreviated as MPLS) network are mixed and networked, so as to provide different services for users and meet user requirements.
Fig. 1 is a schematic diagram of SRv6 network and MPLS network hybrid networking, as shown in fig. 1. In fig. 1, node 1 is in the MPLS network, node 3 is in the SRv6 network, and node 2 is at the edge of the MPLS network, SRv6 network as a gateway.
In one case, as shown in fig. 2, fig. 2 is a schematic diagram of forwarding a data packet from an existing MPLS network to an SRv6 network. In fig. 3, location (Site) a accesses node 1, Site b accesses node 3. After the node 3 learns the Locator route of the location (Site) B, the node 3 adds the learned location (Locator) route of the Site B into a routing table under a VRFA according to a VPN instance (VRFA) to which an interface establishing connection with the Site B per se belongs, and the next hop in the VRFA routing table is the address of the node 3. And generating a corresponding forwarding table by the node 3 according to the VRFA routing table. Node 3 advertises the Locator route of the SiteB to node 2 via the BGP protocol. And the node 2 learns the Locator route of the SiteB, adds the learned Locator route of the SiteB into a routing table under the VRFA, and modifies the next hop into a label of the node 2. And the node 2 generates a label forwarding table, the VRFA routing table needs to be searched when the label forwarding table indicates that the message with the destination address of SiteB is forwarded, and the next hop is determined to be the node 3 through the VRFA routing table. Node 2 advertises the Locator route of the SiteB to node 1 via the BGP protocol. And the node 1 learns the Locator route of the SiteB, adds the learned Locator route of the SiteB into a routing table under the VRFA, and modifies the next hop into a label of the node 1. Node 1 generates a label forwarding table.
The SiteA sends an original data message to the node 1, wherein the source address is the IP address of the SiteA, and the destination address is the IP address of the SiteB. Node 1 looks up the label forwarding table and encapsulates the MPLS header. The outgoing label of the MPLS header is the incoming label of node 2. After receiving the first data message, the node 2 forwards a forwarding table outgoing label according to the incoming label searching label, and searches a VRFA routing table according to the outgoing label to determine that the next hop is the node 3. The node 2 strips off the MPLS header and regenerates an IPv6 header, where the source address of the IPv6 header is the Segment Identifier (SID) of the node 2 and the destination address is the SID of the node 3. After receiving the second data message, the node 3 confirms that the destination address is the node itself, and the node 3 strips the IPv6 header. And forwarding the original data message to the SiteB according to the destination address of the original data message.
In another case, as shown in fig. 3, fig. 3 is a schematic diagram of forwarding a data packet from an existing SRv6 network to an MPLS network. In fig. 3, SiteA access node 1, SiteB access node 3. After the node 1 learns the host route of the SiteA, the node 1 adds the learned host route of the SiteA into a routing table under a VRFA according to a VPN instance (VRFA) to which an interface establishing connection with the SiteA belongs, and the next hop in the VRFA routing table is a label of the node 1. And generating a corresponding forwarding table by the node 1 according to the VRFA routing table. Node 1 advertises the host route of SiteA to node 2 via the BGP protocol. And the node 2 learns the host route of the SiteA, adds the learned host route of the SiteA into a routing table under the VRFA, and modifies the next hop into a label of the node 2. And the node 2 generates a label forwarding table, the VRFA routing table needs to be searched when the label forwarding table indicates that the message with the destination address of SiteA is forwarded, and the next hop is determined to be the node 1 through the VRFA routing table. Node 2 advertises the host route of SiteA to node 3 via the BGP protocol. And the node 3 learns the host route of the SiteA, adds the learned host route of the SiteA into a routing table under the VRFA, and modifies the next hop into the address of the node 3. And generating a corresponding forwarding table by the node 3 according to the VRFA routing table.
The siteB sends an original data message to the node 3, wherein the source address is the IP address of the siteB, and the destination address is the IP address of the siteA. Node 3 looks up the forwarding table and encapsulates the IPv6 header. The source address of the IPv6 header is the SID of node 3 and the destination address is the SID of node 2. After receiving the first data message, the node 2 searches a label forwarding table and a VRFA routing table according to the destination address to determine that the next hop is the node 1. Node 2 strips off the IPv6 header and regenerates an MPLS header with the outgoing label of the MPLS header being the incoming label of node 1. After receiving the second data message, the node 1 confirms that the incoming label is self, and the node 1 strips the MPLS header. And forwarding the original data message to the SiteA according to the destination address of the original data message.
In the hybrid networking, when each network device forwards a data message, it needs to search the forwarding table and then search the VRF table again, and the intermediate device in the multi-networking needs to repackage the message, which results in huge workload.
Disclosure of Invention
In view of this, the present application provides a message processing method and apparatus, so as to implement message interworking between an SRv6 network and an MPLS network hybrid network.
In a first aspect, the present application provides a message processing method, where the method is applied to a first network device, the first network device is in an SRv6 mesh, a first PE is further included in the SRv6 mesh, and the method includes:
receiving a first data message sent by the first PE through an SRv6 tunnel, where the first data message includes a first type SID;
acquiring a first label for forwarding the first data message according to the first type SID;
sending a second data message to a second network device through an MPLS (multi-protocol label switching) path, wherein the second data message comprises the first label, so that the second network device obtains a second label and a third label for forwarding the second data message according to the first label, and sends a third data message to a second PE (provider edge), and the third data message comprises the second label and the third label;
wherein the second network device and the second PE are both in an MPLS network.
In a second aspect, the present application provides a message processing method, where the method is applied to a first network device, the first network device is in an SRv6 mesh, a first PE is further included in the SRv6 mesh, and the method includes:
receiving a first data message sent by second network equipment through an MPLS (multi-protocol label switching) path, wherein the first data message comprises a first label;
acquiring a first type SID for forwarding the first data message according to the first label;
sending a second data message to the first PE through an SRv6 tunnel, where the second data message includes the first-type SID, so that the first PE strips the first-type SID from the second data message according to the first-type SID, and sends an original data message to the CE;
wherein the second network device is within an MPLS group network.
In a third aspect, the present application provides a message processing apparatus, where the method is applied to a first network device, the first network device is in an SRv6 mesh, the SRv6 mesh further includes a first PE, and the apparatus includes:
a receiving unit, configured to receive, through an SRv6 tunnel, a first data packet sent by the first PE, where the first data packet includes a first type SID;
an obtaining unit, configured to obtain, according to the first type SID, a first tag used for forwarding the first data packet;
a sending unit, configured to send a second data packet to a second network device through an MPLS label switched path, where the second data packet includes the first label, so that the second network device obtains, according to the first label, a second label and a third label for forwarding the second data packet, and sends a third data packet to a second PE, where the third data packet includes the second label and the third label;
wherein the second network device and the second PE are both in an MPLS network.
In a fourth aspect, the present application provides a message processing apparatus, where the method is applied to a first network device, the first network device is in an SRv6 mesh, a first PE is further included in the SRv6 mesh, and the apparatus includes:
a receiving unit, configured to receive a first data packet sent by a second network device through an MPLS label switched path, where the first data packet includes a first label;
an obtaining unit, configured to obtain a first type SID used for forwarding the first data packet according to the first tag;
a sending unit, configured to send a second data packet to the first PE through an SRv6 tunnel, where the second data packet includes the first-type SID, so that the first PE strips the first-type SID from the second data packet according to the first-type SID, and sends an original data packet to the CE;
wherein the second network device is within an MPLS group network.
In a fifth 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.
In a sixth 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 message processing method and apparatus provided by the present application, through an SRv6 tunnel, a first network device receives a first data message sent by a first PE, where the first data message includes a first type SID; according to the first type SID, the first network equipment acquires a first label for forwarding a first data message; through the MPLS label switching path, the first network equipment sends a second data message to the second network equipment, wherein the second data message comprises a first label, so that the second network equipment obtains a second label and a third label for forwarding the second data message according to the first label, and sends a third data message to the second PE, wherein the third data message comprises the second label and the third label; and the second network equipment and the second PE are both in the MPLS group network.
Thus, by establishing the association relationship between the MPLS label and the SID, the intercommunication between SRv6 networking and MPLS networking is realized in the process of forwarding the data message. The configuration of each boundary device is simplified, and the occupation of the routing resources of the boundary devices is saved.
Drawings
Fig. 1 is a schematic diagram of SRv6 network and MPLS network hybrid networking;
fig. 2 is a schematic diagram illustrating forwarding of data packets from an MPLS network to an SRv6 network in the prior art;
fig. 3 is a schematic diagram illustrating forwarding of a data packet from an existing SRv6 network to an MPLS network;
fig. 4 is a flowchart of a message processing method according to an embodiment of the present application;
fig. 5 is a flowchart of another message processing method according to an embodiment of the present application;
fig. 6 is a networking schematic diagram illustrating a method for implementing a packet processing in a hybrid networking according to an embodiment of the present application;
fig. 7 is a schematic networking diagram illustrating another method for implementing packet processing in a hybrid networking according to an embodiment of the present application;
fig. 8 is a structural diagram of a message processing apparatus according to an embodiment of the present application;
fig. 9 is a structural diagram of another message processing apparatus according to an embodiment of the present application;
fig. 10 is a hardware structure of a network device according to an embodiment of the present application.
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 the message processing method provided in the embodiment of the present application in detail. Referring to fig. 4, fig. 4 is a flowchart of a message processing method according to an embodiment of the present application. The method is applied to the first network device, and the embodiment of the application can be applied to the environments of L3VPN, EVPN L3VPN and EVPN L2 VPN. The message processing method provided by the embodiment of the application can comprise the following steps.
Step 410, receiving a first data packet sent by the first PE through an SRv6 tunnel, where the first data packet includes a first type SID.
Specifically, the first network device is in SRv6 mesh, and the SRv6 mesh further includes a first network-side Edge device (PE for short). The first PE may be coupled to a first Customer Edge (CE).
In the embodiment of the application, a first host accessing a first CE sends an original data packet to a second host in advance.
And after receiving the original data message, the first CE sends the original data message to the first PE. After receiving the original data message, the first PE searches a local forwarding table item according to a destination address included in the original data message, and acquires an output interface and next hop information from the local forwarding table item. The next hop information indicates the first network device.
According to the next hop information, the first PE encapsulates an IPv6 extension header and an SRH header on the outer layer of the original data message to obtain a first data message. The first datagram includes a first type SID.
Wherein, the destination address of the IPv6 extension header is the SID of the first type. The first type SID is specifically an end.t SID.
Through the SRv6 tunnel, the first PE sends a first data packet to the first network device.
In this embodiment, the first network device may be specifically an autonomous system border router.
Step 420, according to the first type SID, obtaining a first label for forwarding the first data packet.
Specifically, according to the description in step 410, after the first network device obtains the first type SID from the first data packet, according to the first type SID, the first network device obtains a forwarding entry matched with the first type SID from a local forwarding table. The first network device obtains a first label from the forwarding table entry.
In the embodiment of the present application, the forwarding table entry includes an outgoing interface, next hop information, and a first tag. The first label is specifically an MPLS label that forwards the first data packet to an MPLS network in the MPLS network group, and the MPLS label is a private network label.
Step 430, sending a second data packet to a second network device through an MPLS label switched path, where the second data packet includes the first label, so that the second network device obtains a second label and a third label for forwarding the second data packet according to the first label, and sends a third data packet to a second PE, where the third data packet includes the second label and the third label.
Specifically, according to the description in step 420, after obtaining the first label, the first network device strips the IPv6 extension header and the SRH header from the first data packet to obtain the original data packet. And the first network equipment encapsulates the first label on the outer layer of the original data message to obtain a second data message.
And through the MPLS label switching path, the first network equipment sends a second data message to the second network equipment, wherein the second data message comprises the first label.
And after receiving the second data message, the second network equipment acquires the first label from the second data message. And acquiring a label forwarding table entry corresponding to the first label from the local label forwarding table according to the first label. And the second network equipment acquires the next hop information and the outgoing label from the label forwarding table entry. Wherein, the next hop information is indicated as the second PE, and the outgoing label is the second label.
And the second network equipment strips the first label from the second data message to obtain the original data message. And the second network equipment firstly encapsulates the second label on the outer layer of the original data message, and then encapsulates the third label to obtain a third data message. Wherein, the third label is a public network label.
And through the MPLS label switching path, the second network equipment sends a third data message to the second PE, wherein the third data message comprises a second label and a third label.
And after receiving the third data message, the second PE acquires a second label and a third label from the third data message. And according to the second label, after the second PE determines that the second PE is the tail node, the second PE strips the second label and the third label from the third data message to obtain the original data message. And searching a local forwarding table according to the destination address included in the original data message, and acquiring a forwarding table item matched with the destination address from the local forwarding table. And the second PE acquires the information of the output interface and the next hop from the forwarding table entry. Wherein the next hop information is indicated as the second CE.
And the second PE sends the original data message to the second CE. And after receiving the original data message, the second CE sends the original data message to a second host corresponding to the destination address according to the destination address included in the original data message. And the second network equipment and the second PE are both in the MPLS group network.
It should be noted that, in the embodiment of the present application, an end.t type of an existing SID is borrowed, an association relationship between the SRv6SID and an MPLS label is established, and the association relationship between the SID and the MPLS label may be indicated in a function (function) field of the SID. In practical applications, the type of SID, for example, end.m type, may be created separately and the association relationship between the SID and the MPLS label may be established SRv6, and the association relationship between the SID and the MPLS label may be indicated in a function (function) field of the SID.
In the embodiment of the present application, SRv6 networking and MPLS networking in the hybrid networking are respectively in different AS domains. Thus, cross-domain message interaction is realized.
Therefore, by applying the message processing method provided by the present application, through an SRv6 tunnel, a first network device receives a first data message sent by a first PE, where the first data message includes a first type SID; according to the first type SID, the first network equipment acquires a first label for forwarding a first data message; through the MPLS label switching path, the first network equipment sends a second data message to the second network equipment, wherein the second data message comprises a first label, so that the second network equipment obtains a second label and a third label for forwarding the second data message according to the first label, and sends a third data message to the second PE, wherein the third data message comprises the second label and the third label; and the second network equipment and the second PE are both in the MPLS group network.
Thus, by establishing the association relationship between the MPLS label and the SID, the intercommunication between SRv6 networking and MPLS networking is realized in the process of forwarding the data message. The configuration of each boundary device is simplified, and the occupation of the routing resources of the boundary devices is saved.
Optionally, before step 410 of the embodiment of the present application, a process of receiving a route advertisement by a first network device is further included.
Specifically, after learning the private network route (e.g., IPv4 route) of the first host, the second CE establishes a forwarding table entry locally. And the second CE sends the private network route of the first host to the second PE, wherein the private network route of the first host comprises the address of the first host and the next hop information.
After receiving the private network route of the first host, the second PE learns the private network route of the first host and allocates an MPLS label, namely a second label, to the private network route. And the second PE establishes a label forwarding table item locally. The label forwarding table entry comprises a first host address, next hop information and a second label.
The second PE modifies next hop information included in the private network route of the first host to its own address and generates a route advertisement (e.g., a VPN-IPv4 route, or an EVPN class five route) including the private network route of the first host including the first host address, the next hop information, and the second label.
And the second PE sends the route notification to the second network equipment through the MP-IBGP protocol.
And after receiving the route notice, the second network equipment acquires and learns the private network route of the first host from the route notice. The second network device assigns an MPLS label, i.e., the first label, to the private network route. And the second network equipment establishes the incidence relation between the second label and the first label. And the second network equipment establishes a label forwarding table item locally. The label forwarding table entry comprises a first host address, next hop information, a second label and a first label.
The second network device modifies next hop information included in a private network route of the first host to its own address and generates a first route advertisement (e.g., a VPN-IPv4 route, or an EVPN class five route) including a first route including the first host address, the next hop information, and a first label.
The second network device sends the first route advertisement to the first network device via the MP-EBGP protocol.
After receiving the first route advertisement, the first network device obtains and learns the first route from the first route advertisement. The first network equipment distributes the first type SID for the route and establishes the association relation between the first type SID and the first label. The first network device generates a first forwarding table entry. The first forwarding table entry includes a first host address, next hop information, a first tag, and a first type SID.
The first network device modifies the next-hop information to its address and generates a second route advertisement (e.g., a VPN-IPv4 route, or an EVPN class five route) that includes a second route that includes the first host address, the next-hop information, and the first type SID.
The first network device sends a second route advertisement to the first PE via the MP-IBGP protocol.
And after receiving the second route advertisement, the first PE acquires and learns the second route from the second route advertisement. The first PE generates a forwarding table entry. The first forwarding table entry includes a first host address, next hop information, and a first type SID.
The first PE modifies the next hop information to its own address and generates a private network route (e.g., a VPN-IPv4 route) of the first host, the first PE transmitting the private network route of the first host to the first CE, the private network route of the first host including the first host address and the next hop information.
The first CE learns private network routes to the first host.
Optionally, in this embodiment of the present application, the method further includes a process that the hybrid networking is located in an AS domain, and the interworking between the networking and the MPLS networking is implemented SRv 6.
Specifically, the first network device is at SRv6 networking edge and MPLS networking edge, the third PE is within SRv6 networking, and the fourth PE is within MPLS networking. The first CE accesses the third PE, and the second CE accesses the fourth PE.
In the embodiment of the application, a first host accessing a first CE sends an original data packet to a second host in advance.
And after receiving the original data message, the first CE sends the original data message to the third PE. After receiving the original data message, the third PE searches for a local forwarding table entry according to the destination address included in the original data message, and acquires the output interface and the next hop information from the local forwarding table entry. The next hop information indicates the first network device.
And according to the next hop information, the third PE encapsulates an IPv6 extension header and an SRH header on the outer layer of the original data message to obtain a third data message. The third datagram includes a second type SID.
Wherein, the destination address of the IPv6 extension header is the SID of the second type. The second type SID is specifically end.DT4SID.
Through the SRv6 tunnel, the third PE sends a third datagram to the first network device.
In this embodiment, the first network device may specifically be a cross-networking boundary PE.
And after the first network equipment receives the third data message and acquires the second type SID from the third data message, the first network equipment acquires a forwarding table item matched with the second type SID from a local forwarding table according to the second type SID. And the first network equipment acquires the fourth label from the forwarding table entry.
In this embodiment of the present application, the forwarding table entry includes an outgoing interface, next hop information, and a fourth tag. The fourth label is specifically an MPLS label that forwards the third data packet to an MPLS network in the MPLS network group, where the MPLS label is a private network label.
And after the first network device acquires the fourth label, stripping the IPv6 extension header and the SRH header from the third data message to obtain the original data message. And the first network equipment firstly encapsulates the fourth label on the outer layer of the original data message, and then encapsulates the fifth label to obtain the fourth data message. Wherein, the fifth label is a public network label.
And through the MPLS label switching path, the first network equipment sends a fourth data message to the fourth PE, wherein the fourth data message comprises a fourth label and a fifth label.
And after receiving the fourth data message, the fourth PE acquires a fourth label and a fifth label from the fourth data message. And according to the fourth label, after the fourth PE determines that the fourth PE is the tail node, the fourth PE strips the fourth label and the fifth label from the fourth data message to obtain the original data message. And searching a local label forwarding table according to the destination address included in the original data message, and acquiring a label forwarding table item matched with the destination address from the local label forwarding table. And the fourth PE acquires the information of the output interface and the next hop from the label forwarding table entry. Wherein the next hop information is indicated as the second CE.
And the fourth PE sends the original data message to the second CE. And after receiving the original data message, the second CE sends the original data message to a second host corresponding to the destination address according to the destination address included in the original data message.
In the embodiment of the application, SRv6 networking and MPLS networking in the hybrid networking are in one AS domain. Therefore, cross-networking message interaction between the first CE and the second CE is realized.
Optionally, in this embodiment of the present application, the method further includes a process that the hybrid networking is located in an AS domain, and routing interworking between the SRv6 networking and the MPLS networking is implemented.
Specifically, after learning the private network route (e.g., IPv4 route) of the first host, the second CE establishes a forwarding table entry locally. And the second CE sends the private network route of the first host to the fourth PE, wherein the private network route of the first host comprises the address of the first host and the next hop information.
After receiving the private network route of the first host, the fourth PE learns the private network route of the first host, and allocates an MPLS label, that is, a fourth label, to the private network route. And the fourth PE establishes a label forwarding table item locally. The label forwarding table entry includes a first host address, next hop information, and a fourth label.
The fourth PE modifies next hop information included in the private network route of the first host to its address and generates a third route advertisement (e.g., a VPN-IPv4 route) including a third route including the first host address, the next hop information, and a fourth label.
The fourth PE sends a third route advertisement to the first network device via the MP-IBGP protocol.
And after receiving the third route notice, the first network equipment acquires and learns the third route from the third route notice. And the first network equipment distributes a second type SID for the route and establishes an association relation between the second type SID and a fourth label. And the first network equipment generates a second forwarding table item. The second forwarding table entry includes a first host address, next hop information, a fourth tag, and a second type SID.
The first network device modifies the next hop information to its address and generates a fourth route advertisement (e.g., EVPN class five route) that includes a fourth route that includes the first host address, the next hop information, and the second type SID.
The first network device sends a second route advertisement to the third PE via the MP-IBGP protocol.
And after receiving the second route notice, the third PE acquires and learns a fourth route from the second route notice. And the third PE generates a forwarding table entry. The forwarding table entry includes a first host address, next hop information, and a second type SID.
The third PE modifies the next hop information to its own address and generates a private network route (e.g., IPv4 route) of the first host, and the third PE sends the private network route of the first host to the first CE, the private network route of the first host including the first host address and the next hop information.
The first CE learns private network routes to the first host.
Optionally, in this embodiment of the present application, the first type SID and the second type SID are prefixes of SIDs of the first network device.
The following describes the message processing method provided in the embodiment of the present application in detail. Referring to fig. 5, fig. 5 is a flowchart of another message processing method according to an embodiment of the present application. The method is applied to the first network device, and the embodiment of the application can be applied to the environments of L3VPN, EVPN L3VPN and EVPN L2 VPN. The message processing method provided by the embodiment of the application can comprise the following steps.
Step 510, receiving a first data packet sent by a second network device through an MPLS label switched path, where the first data packet includes a first label.
Specifically, the first network device is in an SRv6 mesh, which also includes a first PE within the SRv6 mesh. The first PE may be connected to the first CE. The second network device is within an MPLS network-group that also includes a fourth PE. The fourth PE may be connected to the second CE.
The fourth PE is only illustrated as an example, so as to avoid collision with the PE in the subsequent embodiment, and the PE name is not limited in practical application.
In the embodiment of the present application, a second host accessing a second CE sends an original data packet to a first host accessing a first CE in advance.
And after receiving the original data message, the second CE sends the original data message to the fourth PE. And after receiving the original data message, the fourth PE searches a local label forwarding table item according to the destination address included in the original data message, and acquires the label and the next hop information from the local label forwarding table item. The next hop information indicates that the second network device is labeled as a fourth label (for illustration only, to avoid collision with the label in the following embodiments, and the label name is not limited in practical applications).
According to the next hop information, the fourth PE encapsulates the fourth label on the outer layer of the original data packet, and then encapsulates the fifth label (which is merely an example to illustrate and avoid a label collision with a label in a subsequent embodiment, and does not limit a label name in practical application), so as to obtain the encapsulated original data packet.
Wherein, the fourth label is an MPLS label, and the MPLS label is a private network label; the fifth label is a public network label.
And the fourth PE sends the encapsulated original data message to the second network equipment through the MPLS label switched path.
And the second network equipment acquires the fourth label from the encapsulated original data message after receiving the encapsulated original data message. And acquiring a label forwarding table entry corresponding to the fourth label from the local label forwarding table according to the fourth label. And the second network equipment acquires the next hop information and the outgoing label from the label forwarding table entry. Wherein, the next hop information indicates a first network device, and the outgoing label is a first label.
And the second network equipment strips the fourth label and the fifth label from the packaged original data message to obtain the original data message. And the second network equipment encapsulates the first label on the outer layer of the original data message to obtain the first data message.
Through the MPLS label switched path, the second network device sends a first data packet to the first network device, where the first data packet includes a first label.
The first network device receives a first data packet.
In this embodiment, the first network device and the second network device may be specifically autonomous system border routers.
Step 520, according to the first label, obtaining a first type SID for forwarding the first data packet.
Specifically, according to the description in step 510, after the first network device obtains a label from the first data packet, according to the first label, the first network device obtains a forwarding table entry matched with the first label from the local forwarding table. The first network device obtains the outgoing interface, the next hop information and the first type SID from the forwarding table entry.
The first type SID is specifically an end.t SID.
Step 530, sending a second data packet to the first PE through an SRv6 tunnel, where the second data packet includes the first-type SID, so that the first PE strips the first-type SID from the second data packet according to the first-type SID, and sends the remaining packets to the CE.
Specifically. According to the description in step 520, after obtaining the first type SID, the first network device strips the first label from the first data packet to obtain the original data packet. And according to the next hop information, the first network equipment encapsulates an IPv6 extension header and an SRH header on the outer layer of the original data message to obtain a second data message.
Wherein, the destination address of the IPv6 extension header is the SID of the first type.
Through the SRv6 tunnel, the first network device sends a second datagram to the first PE.
And after receiving the second data message, the first PE acquires the first type SID from the second data message. And according to the first type SID, after the first PE determines that the first PE is the tail node, the first PE strips the first type SID from the second data message to obtain the original data message. And searching a local forwarding table according to the destination address included in the original data message, and acquiring a forwarding table item matched with the destination address from the local forwarding table. And the first PE acquires the information of the output interface and the next hop from the forwarding table entry. Wherein the next hop information is indicated as the first CE.
The first PE sends an original data message to the first CE. And after receiving the original data message, the first CE sends the original data message to the first host corresponding to the destination address according to the destination address included in the original data message.
It should be noted that, in the embodiment of the present application, an end.t type of an existing SID is borrowed, and an association relationship between the SID and an MPLS label is established SRv6, and in practical applications, a type of the SID, for example, an end.m type, may be separately created, and an association relationship between the SRv6SID and the MPLS label is established.
In the embodiment of the present application, SRv6 networking and MPLS networking in the hybrid networking are respectively in different AS domains. Thus, cross-domain message interaction is realized.
Therefore, by applying the message processing method provided by the present application, through the MPLS label switched path, the first network device receives a first data message sent by the second network device, where the first data message includes a first label; according to the first label, the first network equipment acquires a first type SID for forwarding the first data message; through the SRv6 tunnel, the first network device sends a second data message to the first PE, where the second data message includes the first-type SID, so that the first PE strips the first-type SID from the second data message according to the first-type SID, and sends the original data message to the CE; wherein the second network device is within the MPLS group network.
Thus, by establishing the association relationship between the MPLS label and the SID, the intercommunication between SRv6 networking and MPLS networking is realized in the process of forwarding the data message. The configuration of each boundary device is simplified, and the occupation of the routing resources of the boundary devices is saved.
Optionally, before step 510 of this embodiment of the present application, a process of receiving a route advertisement by a first network device is further included.
Specifically, after learning the private network route (e.g., IPv4 route) of the first host, the first CE establishes a forwarding table entry locally. The first CE sends a private network route of the first host to the first PE, wherein the private network route of the first host comprises a first host address and next hop information. After receiving the private network route of the first host, the first PE learns the private network route of the first host and allocates a first type SID to the private network route. The first PE establishes a forwarding table item locally. The forwarding table entry includes a first host address, next hop information, and a first type SID.
The first PE modifies next hop information included in a private network route of the first host to its own address and generates a first route advertisement (e.g., a VPN-IPv4 route, or an EVPN class five route) including a first route including the first host address, the next hop information, and the first type SID.
The first PE sends a first route advertisement to a first network device through an MP-IBGP protocol.
After receiving the first route advertisement, the first network device obtains and learns the first route from the first route advertisement. The first network device assigns an MPLS label, i.e., a first label, to the first route. The first network equipment establishes the association relation between the first label and the first type SID. The first network device establishes a first forwarding table entry locally. The first forwarding table entry includes a first host address, next hop information, a first tag, and a first type SID.
The first network device modifies next hop information included in the first route to its own address and generates a second route advertisement (e.g., a VPN-IPv4 route, or an EVPN class five route) including a second route including the first host address, the next hop information, and the first label.
The first network device sends a second route advertisement to the second network device via the MP-EBGP protocol.
And after receiving the second route advertisement, the second network equipment acquires and learns the second route from the second route advertisement. The second network device assigns an MPLS label, i.e., a fourth label, to the second route. And the second network equipment establishes the incidence relation between the fourth label and the first label. And the second network equipment generates a label forwarding table item. The label forwarding table entry comprises a first host address, next hop information, a first label and a fourth label.
The second network device modifies the next hop information to its own address and generates a route advertisement (e.g., a VPN-IPv4 route, or EVPN class five route) that includes a private network route for the first host that includes the first host address, the next hop information, and the fourth label.
And the second network equipment sends the route notice to the fourth PE through the MP-IBGP protocol.
And after receiving the route notice, the fourth PE acquires and learns the private network route of the first host. And the fourth PE generates a forwarding table entry. The forwarding table entry includes a first host address, next hop information, and a fourth tag.
The fourth PE modifies the next hop information to its own address and generates a private network route (e.g., a VPN-IPv4 route) of the first host, and the fourth PE sends the private network route of the first host to the second CE, the private network route of the first host including the first host address and the next hop information.
The second CE learns private network routes to the first host.
Optionally, in this embodiment of the present application, the method further includes a process that the hybrid networking is located in an AS domain, and the interworking between the networking and the MPLS networking is implemented SRv 6.
Specifically, the first network device is at SRv6 networking edge and MPLS networking edge, the second PE is within MPLS networking, and the third PE is within SRv6 networking. The first CE accesses the second PE, and the second CE accesses the third PE.
In the embodiment of the present application, a first host accessing a first CE sends an original data packet to a second host accessing a second CE in advance.
And after receiving the original data message, the first CE sends the original data message to the second PE. After receiving the original data message, the second PE searches a local label forwarding table item according to a destination address included in the original data message, and acquires a label and next hop information from the local label forwarding table item. The next hop information indicates that the first network device is labeled as a second label.
And according to the next hop information, the second PE firstly encapsulates the second label on the outer layer of the original data message, and then encapsulates the third label to obtain a third data message.
Wherein, the second label is an MPLS label, and the MPLS label is a private network label; the third label is a public network label.
And the second PE sends a third data message to the first network equipment through the MPLS label switching path.
And after receiving the third data message, the first network equipment acquires the second label from the third data message. And acquiring a forwarding table item matched with the second label from the local forwarding table according to the second label. And the first network equipment acquires the output interface, the next hop information and the second type SID from the forwarding table entry.
The second type SID is specifically end.dt4 SID.
And after the first network equipment acquires the first type SID, stripping the second label and the third label from the third data message to obtain the original data message. And according to the next hop information, the first network equipment encapsulates an IPv6 extension header and an SRH header on the outer layer of the original data message to obtain a fourth data message.
Wherein, the destination address of the IPv6 extension header is the SID of the second type.
Through the SRv6 tunnel, the first network device sends a fourth data packet to the third PE.
And after receiving the fourth data message, the third PE acquires the second type SID from the fourth data message. And according to the SID of the second type, the third PE determines that the third PE is the tail node. And the third PE strips the SID of the second type from the fourth data message to obtain the original data message. And according to the destination address included in the original data message, the third PE searches a local forwarding table and acquires a forwarding table item matched with the destination address from the local forwarding table. And the third PE acquires the information of the output interface and the next hop from the forwarding table entry. Wherein the next hop information is indicated as the second CE.
And the third PE sends the original data message to the second CE. And after receiving the original data message, the second CE sends the original data message to a second host corresponding to the destination address according to the destination address included in the original data message.
In the embodiment of the present application, SRv6 networking and MPLS networking in the hybrid networking are respectively in the same AS domain. Therefore, cross-networking message interaction is realized.
Optionally, in this embodiment of the present application, the method further includes a process that the hybrid networking is located in an AS domain, and routing interworking between the SRv6 networking and the MPLS networking is implemented.
Specifically, after learning the private network route (e.g., IPv4 route) of the second host, the second CE establishes a forwarding table entry locally. And the second CE sends the private network route of the second host to the third PE, wherein the private network route of the second host comprises the address of the second host and the next hop information.
And after receiving the private network route of the second host, the third PE learns the private network route of the second host and allocates the second type SID for the private network route. And the third PE establishes a forwarding table item locally. The forwarding table entry includes a second host address, next hop information, and a second type SID.
The third PE modifies next hop information included in the private network route of the second host to its own address and generates a third route advertisement (e.g., EVPN class five route) including a third route including the second host address, the next hop information, and the second type SID.
The third PE sends a third route advertisement to the first network device via the MP-IBGP protocol.
And after receiving the third route notice, the first network equipment acquires and learns the third route from the third route notice. The first network device assigns an MPLS label, i.e., a second label, to the third route. And the first network equipment establishes the association relationship between the second label and the second type SID. And the first network equipment establishes a second forwarding table item locally. The second forwarding table entry includes a second host address, next hop information, a second tag, and a second type SID.
The first network device modifies next hop information included in the third route to its own address and generates a fourth route advertisement (e.g., a VPN-IPv4 route) including a fourth route including the second host address, the next hop information, and the second label.
And the first network equipment sends a fourth route advertisement to the second PE through the MP-IBGP protocol.
And after receiving the fourth route advertisement, the second PE acquires and learns the private network route of the second host from the fourth route advertisement. And the second PE generates a label forwarding table entry. The label forwarding table entry includes a second host address, next hop information, and a second label.
The second PE modifies the next hop information to its own address and generates a private network route (e.g., VPN-IPv4 route) for the second host, the second PE sending the private network route for the second host to the first CE, the private network route for the second host including the second host address and the next hop information.
The first CE learns private network routes to the second host.
The following describes the message processing method provided in the embodiment of the present application in detail. Referring to fig. 6, fig. 6 is a networking schematic diagram illustrating a method for implementing a message processing in a hybrid networking according to an embodiment of the present application.
In fig. 6, PE1 and ASBR1 are in an MPLS network, and PE2 and ASBR2 are in a SRv6 network. CE1 accesses PE1, CE2 accesses PE 2. The first host accesses CE1 and the second host accesses CE 2. The MPLS networking and SRv6 networking are respectively in different AS domains.
After the CE1 and the CE2 learn the private network routes of the host, the private network routes of the host are published in the network.
The example is described where CE2 learns private network routes to a first host.
After the CE1 learns the private network route (e.g., IPv4 route) of the first host, the forwarding table entry is established locally. CE1 sends the first host's private network route to PE1, which includes the first host address and next hop information. After receiving the private network route of the first host, PE1 learns the private network route of the first host and assigns an MPLS label, i.e., L1, to the private network route. PE1 locally establishes a label forwarding entry. The label forwarding entry includes a first host address, next hop information, and L1.
The PE1 modifies next hop information included in a private network route of the first host to its own address and generates a first route advertisement (e.g., a VPN-IPv4 route, or an EVPN class five route) including the private network route of the first host including the first host address, the next hop information, and L1.
PE1 sends a first route advertisement to ASBR1 via MP-IBGP protocol.
The ASBR1, upon receiving the first route advertisement, obtains and learns the private network route of the first host therefrom. The ASBR1 assigns an MPLS label, L2, to the private network route. ASBR1 establishes the association relationship between L2 and L1. ASBR1 locally builds a label forwarding entry. The label forwarding entry includes a first host address, next hop information, L2, and L1.
The ASBR1 modifies the next hop information included in the private network route of the first host to its own address and generates a second route advertisement (e.g., a VPN-IPv4 route, or EVPN class five route) including the first host address, the next hop information, and L2.
Through the MP-EBGP protocol, ASBR1 sends a second route advertisement to ASBR 2.
After receiving the second route advertisement, the ASBR2 obtains and learns the private network route of the first host. The ASBR2 assigns the end.t type SID to the route, and establishes the association relationship between the end.t type SID and L2. ASBR2 establishes forwarding entries locally. The forwarding entry includes the first host address, next hop information, L2, and an end.t type SID.
The ASBR2 modifies the next hop information to its own address and generates a third route advertisement (e.g., a VPN-IPv4 route, or EVPN class five route) that includes the first host's private network route including the first host address, the next hop information, and the end.t type SID.
Through the MP-IBGP protocol, ASBR2 sends a third route advertisement to PE 2.
PE2, upon receiving the third route advertisement, obtains and learns the private network route of the first host therefrom. PE2 establishes the forwarding table entries locally. The forwarding table entry includes a first host address, next hop information, and an end.t type SID.
PE2 modifies the next hop information to its address and generates a private network route (e.g., VPN-IPv4 route) for the first host, PE2 sends the private network route for the first host to CE2, the private network route for the first host including the first host address and the next hop information.
CE2 learns private network routes to the first host.
In contrast to the above process, CE2 publishes the private network route of the second host, and CE1 learns the private network route to the second host, which is only briefly described herein.
After the CE2 learns the private network route (e.g., IPv4 route) of the second host, the forwarding table entry is established locally. CE2 sends PE2 a private network route for the second host that includes the second host address and next hop information. After receiving the private network route of the second host, the PE2 learns the private network route of the second host, and assigns an end.t type SID to the private network route. PE2 establishes the forwarding table entries locally. The forwarding table entry includes the second host address, next hop information, and an end.t type SID.
The PE2 modifies next hop information included in the private network route of the second host to its own address and generates a first route advertisement (e.g., a VPN-IPv4 route, or an EVPN five-type route) including the second host address, the next hop information, and an end.t-type SID.
PE2 sends a first route advertisement to ASBR2 via MP-IBGP protocol.
The ASBR2, upon receiving the first route advertisement, obtains and learns the private network route of the second host therefrom. ASBR2 assigns an MPLS label, L2, to the private network route of the second host. ASBR2 establishes an association of L2 with SID of end.t type. ASBR2 establishes forwarding entries locally. The forwarding entry includes the second host address, next hop information, L2, and an end.t type SID.
The ASBR2 modifies the next hop information included in the first route advertisement to its own address and generates a second route advertisement (e.g., a VPN-IPv4 route, or an EVPN class five route) that advertises a second host address, next hop information, and L2.
Through the MP-EBGP protocol, ASBR2 sends a second route advertisement to ASBR 1.
After receiving the second route advertisement, the ASBR1 obtains and learns the private network route of the second host. ASBR1 assigns an MPLS label, L1, to the private network route of the second host. ASBR1 establishes the association relationship between L1 and L2. ASBR1 locally builds a label forwarding entry. The label forwarding entry includes a second host address, next hop information, L2, and L1.
The ASBR1 modifies the next hop information to its own address and generates a third route advertisement (e.g., a VPN-IPv4 route, or EVPN class five route) that includes the second host's private network route, including the first host address, the next hop information, and L1.
Through the MP-IBGP protocol, ASBR1 sends a third route advertisement to PE 1.
PE1, upon receiving the third route advertisement, obtains and learns the private network route of the second host therefrom. PE1 establishes the forwarding table entries locally. The forwarding entry includes the second host address, next hop information, and L1.
PE1 modifies the next hop information to its own address and generates a private network route (e.g., VPN-IPv4 route) for the second host, PE1 sends the private network route for the second host to CE1, the private network route for the first host including the second host address and the next hop information.
CE1 learns private network routes to the second host.
After each network device in the hybrid network learns the private network route of the host, the first host and the second host can realize cross-domain message interaction.
The second host sends a data packet to the first host for example.
After receiving the original data packet sent by the second host, the CE2 sends the original data packet to the PE 2. After receiving the original data packet, PE2 searches for a local forwarding table entry according to a destination address included in the original data packet, and obtains an egress interface and next hop information from the local forwarding table entry. The next hop information indicates ASBR 2.
According to the next hop information, the PE2 encapsulates the IPv6 extension header and the SRH header on the outer layer of the original data packet, to obtain a first data packet. The first datagram includes an end.t type SID.
Wherein, the destination address of the IPv6 extension header is SID of end.T type.
PE2 sends the first data packet to ASBR2 through an SRv6 tunnel.
After the ASBR2 acquires the SID of the end.t type from the first data packet, according to the SID of the end.t type, the ASBR2 acquires a forwarding table entry matched with the SID of the end.t type from the local forwarding table. ASBR2 obtains L2 from the forwarding entry.
After the ASBR2 obtains the L2, the IPv6 extension header and the SRH header are stripped from the first data packet to obtain an original data packet. The ASBR2 encapsulates the L2 in the outer layer of the original data packet to obtain a second data packet.
Through the MPLS label switched path, ASBR2 sends a second datagram to ASBR1, the second datagram including L2.
After receiving the second data message, the ASBR1 obtains L2 therefrom. According to L2, a label forwarding table entry corresponding to L2 is obtained from the local label forwarding table. ASBR1 obtains next hop information and an out-label from a label forwarding entry. Wherein, the next hop information is indicated as PE1, and the out-label is L1.
And the ASBR1 strips the L1 from the second data message to obtain an original data message. The ASBR1 encapsulates the L1 in the outer layer of the original data packet, and then encapsulates the LY to obtain the third data packet. Wherein LY is a public network label.
Through the MPLS label switched path, ASBR1 sends a third datagram to PE1, the third datagram including L1 and LY.
After receiving the third data packet, PE1 obtains L1 and LY therefrom. According to L1, after PE1 determines that the PE is a tail node, PE1 strips L1 and LY from the third data packet to obtain the original data packet. And searching a local forwarding table according to the destination address included in the original data message, and acquiring a forwarding table item matched with the destination address from the local forwarding table. PE1 obtains the egress interface and next hop information from the forwarding table entry. Where the next hop information is indicated as CE 1.
PE1 sends the original data message to CE 1. After receiving the original data packet, the CE1 sends the original data packet to the first host corresponding to the destination address according to the destination address included in the original data packet.
In contrast to the above process, the first host may also send a data packet to the second host, which is only briefly described here.
After receiving the original data packet sent by the first host, the CE1 sends the original data packet to the PE 1. After receiving the original data packet, PE1 searches for a local label forwarding table entry according to a destination address included in the original data packet, and obtains an outgoing label and next hop information from the local label forwarding table entry. The next hop information indicates ASBR1 with out-label L1.
According to the next hop information, the PE1 encapsulates the L1 in the outer layer of the original data packet, and then encapsulates the LY to obtain the first data packet. Wherein LY is a public network label.
Through the MPLS label switched path, PE1 sends a first data packet to ASBR 1.
After receiving the first data message, the ASBR1 obtains L1 therefrom. According to L1, a label forwarding table entry corresponding to L1 is obtained from the local label forwarding table. ASBR1 obtains next hop information and an out-label from a label forwarding entry. Wherein, the next hop information is indicated as ASBR2 and the out label is L2.
The ASBR1 strips the L1 and LY from the first data packet to obtain the original data packet. The ASBR1 encapsulates the L2 in the outer layer of the original data packet to obtain a second data packet.
Through the MPLS label switched path, ASBR1 sends a second datagram to ASBR2, the second datagram including L2.
ASBR2 receives the second data packet.
After the ASBR2 acquires the L2 from the second data packet, according to the L2, the ASBR1 acquires a forwarding table entry matched with the L2 from the local forwarding table. ASBR2 obtains the egress interface, next hop information, and end.t type SID from the forwarding table entry.
After the ASBR2 obtains the end.t type SID, the L2 is stripped from the second data packet to obtain the original data packet. According to the next hop information, the ASBR2 encapsulates an IPv6 extension header and an SRH header in the outer layer of the original data packet, to obtain a third data packet.
Wherein, the destination address of the IPv6 extension header is the SID of the first type.
Through the SRv6 tunnel, ASBR2 sends the third datagram to PE 2.
After receiving the third data packet, PE2 obtains the SID of end.t type from the third data packet. According to the end.T type SID, after PE2 determines that the end.T type SID is a tail node, PE2 strips the end.T type SID from the third data message to obtain the original data message. And searching a local forwarding table according to the destination address included in the original data message, and acquiring a forwarding table item matched with the destination address from the local forwarding table. PE2 obtains the egress interface and next hop information from the forwarding table entry. Where the next hop information is indicated as CE 2.
PE2 sends the original data message to CE 2. After receiving the original data packet, the CE2 sends the original data packet to the second host corresponding to the destination address according to the destination address included in the original data packet.
In the embodiment of the present application, SRv6 networking and MPLS networking in the hybrid networking are respectively in different AS domains. Thus, cross-domain message interaction is realized.
The following describes the message processing method provided in the embodiment of the present application in detail. Referring to fig. 7, fig. 7 is a schematic networking diagram illustrating another method for implementing packet processing in a hybrid networking according to an embodiment of the present application.
In fig. 7, PE2 is at the edge of MPLS networking as well as the edge of SRv6 networking. PE1 is in an MPLS network and PE3 is in a SRv6 network. CE1 accesses PE1, CE2 accesses PE 3. The first host accesses CE1 and the second host accesses CE 2. MPLS networking is within the same AS domain AS SRv6 networking.
After the CE1 and the CE2 learn the private network routes of the host, the private network routes of the host are published in the network.
The example is described where CE2 learns private network routes to a first host.
After the CE1 learns the private network route (e.g., IPv4 route) of the first host, the forwarding table entry is established locally. CE1 sends the first host's private network route to PE1, which includes the first host address and next hop information.
After receiving the private network route of the first host, PE1 learns the private network route of the first host and assigns an MPLS label, i.e., L1, to the private network route. PE1 locally establishes a label forwarding entry. The label forwarding entry includes a first host address, next hop information, and L1.
The PE1 modifies next hop information included in a private network route of the first host to its own address and generates a first route advertisement (e.g., a VPN-IPv4 route) including the first host address, the next hop information, and L1.
PE1 sends a first route advertisement to PE2 via the MP-IBGP protocol.
PE2 receives the first route advertisement and obtains and learns the private network route of the first host therefrom. The PE2 allocates SID of end.DT4 type to private network route of the first host, and establishes association relation between SID of end.DT4 type and L1. PE2 establishes the forwarding table entries locally. The forwarding entry includes the first host address, next hop information, L1, and an end.dt4 type SID.
PE2 modifies the next hop information to its own address and generates a second route advertisement (e.g., EVPN class five route) that includes the first host address, the next hop information, and an end.dt4 type SID.
PE2 sends a second route advertisement to PE3 via the MP-IBGP protocol.
PE3, upon receiving the second route advertisement, obtains and learns the private network route of the first host therefrom. PE3 establishes the forwarding table entries locally. The forwarding table entry includes a first host address, next hop information, and an end.dt4 type SID.
PE3 modifies the next hop information to its own address and generates a private network route (e.g., IPv4 route) for the first host, and PE3 sends the private network route for the first host to CE2, the private network route for the first host including the first host address and the next hop information.
CE2 learns private network routes to the first host.
In contrast to the above process, CE2 publishes the private network route of the second host, and CE1 learns the private network route to the second host, which is only briefly described herein.
After the CE2 learns the private network route (e.g., IPv4 route) of the second host, the forwarding table entry is established locally. CE2 sends PE3 a private network route for the second host that includes the second host address and next hop information.
After receiving the private network route of the second host, the PE3 learns the private network route of the second host, and assigns an end.dt4 type SID to the private network route. PE3 establishes the forwarding table entries locally. The forwarding table entry includes the second host address, next hop information, and an end.dt4 type SID.
The PE3 modifies next hop information included in a private network route of the second host to its own address and generates a first route advertisement (e.g., EVPN class five route) including the second host address, the next hop information, and an end.dt4 type SID.
PE3 sends a first route advertisement to PE2 via the MP-IBGP protocol.
PE2 receives the first route advertisement and obtains and learns the private network route of the second host therefrom. PE2 assigns an MPLS label, L1, to the private network route of the second host. PE2 establishes an association of L1 with an end.dt4 type SID. PE2 establishes the forwarding table entries locally. The forwarding entry includes the second host address, next hop information, L1, and an end.dt4 type SID.
PE2 modifies the next hop information included in the first route advertisement to its own address and generates a second route advertisement (e.g., a VPN-IPv4 route) that includes the second host address, the next hop information, and L1.
PE1 sends a second route advertisement to PE1 via the MP-IBGP protocol.
PE1, upon receiving the second route advertisement, obtains and learns the private network route of the second host therefrom. PE1 establishes a local forwarding entry locally. The local forwarding entry includes a second host address, next hop information, and L1.
PE1 modifies the next hop information to its address and generates a private network route (e.g., VPN-IPv4 route) for the second host, PE1 sends the private network route for the second host to CE1, the private network route for the second host including the second host address and the next hop information.
CE1 learns private network routes to the second host.
After each network device in the hybrid network learns the private network route of the host, the first host and the second host can realize cross-domain message interaction.
The second host sends a data packet to the first host for example.
After receiving the original data packet sent by the second host, the CE2 sends the original data packet to the PE 3. After receiving the original data packet, PE3 searches for a local forwarding table entry according to a destination address included in the original data packet, and obtains an egress interface and next hop information from the local forwarding table entry. The next hop information indicates PE 2.
According to the next hop information, the PE3 encapsulates the IPv6 extension header and the SRH header on the outer layer of the original data packet, to obtain a first data packet. The first data message includes an end.DT4 type SID. Wherein, the destination address of the IPv6 extension header is the SID of the second type.
Through the SRv6 tunnel, PE3 sends a first data packet to PE 2.
After receiving the first data message, PE2 obtains the SID of end.dt4 type from the first data message. According to the end.DT4 type SID, PE2 obtains a forwarding table entry matched with the end.DT4 type SID from the local forwarding table. PE2 obtains L1 from the forwarding entry.
After obtaining the L1, the PE2 strips the IPv6 extension header and the SRH header from the first data packet to obtain an original data packet. The PE2 encapsulates the L1 in the outer layer of the original data packet, and then encapsulates the LY to obtain the second data packet. Wherein LY is a public network label.
Through the MPLS label switched path, PE2 sends a second data message to PE1, the second data message including L1 and LY.
After receiving the second data packet, PE1 obtains L1 and LY therefrom. According to L1, after PE1 determines that the PE is a tail node, PE1 strips L1 and LY from the second data packet to obtain the original data packet. And searching a local label forwarding table according to the destination address included in the original data message, and acquiring a label forwarding table item matched with the destination address from the local label forwarding table. PE1 obtains the egress interface and next hop information from the label forwarding table entry. Where the next hop information is indicated as CE 1.
PE1 sends the original data message to CE 1. After receiving the original data packet, the CE1 sends the original data packet to the second host corresponding to the destination address according to the destination address included in the original data packet.
In contrast to the above process, the first host may also send a data packet to the second host, which is only briefly described here.
After receiving the original data packet sent by the first host, the CE1 sends the original data packet to the PE 1. After receiving the original data packet, PE1 searches for a local label forwarding table entry according to a destination address included in the original data packet, and obtains an outgoing label and next hop information from the local label forwarding table entry. The next hop information indicates PE2 with an out-label of L1.
According to the next hop information, the PE1 encapsulates the L1 in the outer layer of the original data packet, and then encapsulates the LY to obtain the first data packet. Wherein LY is a public network label.
Through the MPLS label switched path, PE1 sends a first data packet to PE 2.
After receiving the first data packet, PE2 obtains L1 therefrom. According to L1, a forwarding table entry matching L1 is obtained from the local forwarding table. PE2 obtains the egress interface, next hop information, and end.dt4 type SID from the forwarding table entry.
After obtaining the SID of end.dt4 type, PE2 strips L1 and LY from the first data packet to obtain the original data packet. According to the next hop information, the PE2 encapsulates the IPv6 extension header and the SRH header on the outer layer of the original data packet, to obtain a second data packet.
Wherein, the destination address of the IPv6 extension header is SID of end.DT4 type.
PE2 sends the second data packet to PE3 through the SRv6 tunnel.
After receiving the second data packet, PE3 obtains the SID of end.dt4 type from the second data packet. From the end.dt4 type SID, PE3 determines itself to be the tail node. PE3 strips the SID of end.dt4 type from the second data message to obtain the original data message. According to the destination address included in the original data message, PE3 searches the local forwarding table, and obtains a forwarding table entry matching the destination address from the local forwarding table. PE3 obtains the egress interface and next hop information from the forwarding table entry. Where the next hop information is indicated as CE 2.
PE3 sends the original data message to CE 2. After receiving the original data packet, the CE2 sends the original data packet to the second host corresponding to the destination address according to the destination address included in the original data packet.
In the embodiment of the application, SRv6 networking and MPLS networking in the hybrid networking are in one AS domain. Therefore, cross-networking message interaction is realized.
Based on the same inventive concept, the embodiment of the application also provides a message processing device corresponding to the message processing method. Referring to fig. 8, fig. 8 is a structural diagram of a message processing apparatus according to an embodiment of the present application. The apparatus is applied to a first network device, the first network device is in SRv6 networks, a first PE is further included in SRv6 networks, and the apparatus includes:
a receiving unit 810, configured to receive, through an SRv6 tunnel, a first data packet sent by the first PE, where the first data packet includes a first type SID;
an obtaining unit 820, configured to obtain, according to the first type SID, a first tag for forwarding the first data packet;
a sending unit 830, configured to send a second data packet to a second network device through an MPLS label switched path, where the second data packet includes the first label, so that the second network device obtains, according to the first label, a second label and a third label for forwarding the second data packet, and sends a third data packet to a second PE, where the third data packet includes the second label and the third label;
wherein the second network device and the second PE are both in an MPLS network.
Optionally, the receiving unit 810 is further configured to receive a first route advertisement sent by the second network device, where the first route advertisement includes a first route, and the first route includes a host address, next hop information, and the first label;
the device further comprises: an establishing unit (not shown in the figure), configured to modify the next hop information to an address of the first router, allocate the first type SID to the first router, and establish an association relationship between the first type SID and the first label;
a generating unit (not shown in the figure), configured to generate a first forwarding table entry corresponding to the first route according to the host address, the modified next hop information, the first type SID, and the first label;
the sending unit 830 is further configured to send a second route advertisement to the first PE, where the second route advertisement includes a second route, and the second route includes the host address, the modified next hop information, and the first type SID.
Optionally, the first network device is at SRv6 networking edge and MPLS networking edge;
the receiving unit 810 is further configured to receive, through the SRv6 tunnel, a third data packet sent by a third PE, where the third data packet includes a second type SID;
the obtaining unit 820 is further configured to obtain a fourth label and a fifth label for forwarding the first data packet according to the second type SID;
the sending unit 830 is further configured to send a fourth data packet to a fourth PE through an MPLS label switched path, where the fourth data packet includes the fourth label and a fifth label, so that after determining that a next hop is a CE according to the fourth label, the fourth label and the fifth label are stripped from the fourth data packet, and send a remaining packet to the CE;
wherein the third PE is in SRv6 mesh and the fourth PE is in MPLS mesh.
Optionally, the receiving unit 810 is further configured to receive a third route advertisement sent by the fourth PE, where the third route advertisement includes a third route, and the third route includes a host address, next hop information, and the fourth label;
the establishing unit (not shown in the figure) is further configured to modify the next hop information to an address of the first router, assign the second type SID to the third router, and establish an association relationship between the second type SID and the fourth label;
the generating unit (not shown in the figure) is further configured to generate a second forwarding table entry corresponding to the third route according to the host address, the modified next hop information, the second type SID, and the fourth label;
the sending unit 830 is further configured to send a fourth route advertisement to the third PE, where the fourth route advertisement includes a fourth route, and the fourth route includes the host address, the modified next-hop information, and the second type SID.
Optionally, the first type SID and the second type SID are prefixes of SIDs of the first network device.
Therefore, by using the message processing apparatus provided in the present application, through an SRv6 tunnel, a first network device receives a first data message sent by a first PE, where the first data message includes a first type SID; according to the first type SID, the first network equipment acquires a first label for forwarding a first data message; through the MPLS label switching path, the first network equipment sends a second data message to the second network equipment, wherein the second data message comprises a first label, so that the second network equipment obtains a second label and a third label for forwarding the second data message according to the first label, and sends a third data message to the second PE, wherein the third data message comprises the second label and the third label; and the second network equipment and the second PE are both in the MPLS group network.
Thus, by establishing the association relationship between the MPLS label and the SID, the intercommunication between SRv6 networking and MPLS networking is realized in the process of forwarding the data message. The configuration of each boundary device is simplified, and the occupation of the routing resources of the boundary devices is saved.
Based on the same inventive concept, the embodiment of the application also provides a message processing device corresponding to the message processing method. Referring to fig. 9, fig. 9 is a structural diagram of another message processing apparatus according to an embodiment of the present application. The apparatus is applied to a first network device, the first network device is in SRv6 networks, a first PE is further included in SRv6 networks, and the apparatus includes:
a receiving unit 910, configured to receive a first data packet sent by a second network device through an MPLS label switched path, where the first data packet includes a first label;
an obtaining unit 920, configured to obtain a first type SID for forwarding the first data packet according to the first label;
a sending unit 930, configured to send a second data packet to the first PE through an SRv6 tunnel, where the second data packet includes the first-type SID, so that the first PE strips the first-type SID from the second data packet according to the first-type SID, and sends an original data packet to the CE;
wherein the second network device is within an MPLS group network
Optionally, the receiving unit 910 is further configured to receive a first route advertisement sent by the first PE, where the first route advertisement includes a first route, and the first route includes a host address, next hop information, and the first type SID;
the device further comprises: an establishing unit (not shown in the figure), configured to modify the next hop information to an address of the first network device, allocate the first label to the first route, and establish an association relationship between the first label and the first type SID;
a generating unit (not shown in the figure), which generates a first forwarding table entry corresponding to the first route according to the host address, the modified next hop information, the first label, and the first type SID;
the sending unit 930 is further configured to send a second route advertisement to the second network device, where the second route advertisement includes a second route, and the second route includes the host address, the modified next hop information, and the first label.
Optionally, the first network device is at SRv6 networking edge and MPLS networking edge;
the receiving unit 910 is further configured to notify the MPLS label switched path, and receive a third data packet sent by a second PE, where the second data packet includes a second label and a third label;
the obtaining unit 920 is further configured to obtain a second type SID used for forwarding the first data packet according to the second label;
the sending unit 930 is further configured to send, through the SRv6 tunnel, a fourth data packet to a third PE, where the fourth data packet includes the second-type SID, so that the third PE strips the second-type SID from the fourth data packet according to the second-type SID, and sends the original data packet to the CE;
wherein the third PE is within an MPLS mesh group.
Optionally, the receiving unit 910 is further configured to receive a third route advertisement sent by the third PE, where the third route advertisement includes a third route, and the third route includes a host address, next hop information, and the second type SID;
the establishing unit (not shown in the figure) is further configured to modify the next hop information to an address of the first network device, assign the second label to the third route, and establish an association relationship between the second label and the second type SID;
the generating unit (not shown in the figure) is further configured to generate a second forwarding table entry corresponding to the second route according to the host address, the modified next hop information, the second tag, and the second type SID;
the sending unit 930 is further configured to send a fourth route advertisement to the second PE, where the fourth route advertisement includes a fourth route, and the fourth route includes the host address, the modified next-hop information, and the second label.
Optionally, the first type SID is a prefix of the SID of the first PE;
the second type SID is a prefix of a SID of the third PE.
Therefore, by applying the message processing method provided by the present application, through the MPLS label switched path, the first network device receives a first data message sent by the second network device, where the first data message includes a first label; according to the first label, the first network equipment acquires a first type SID for forwarding the first data message; through the SRv6 tunnel, the first network device sends a second data message to the first PE, where the second data message includes the first-type SID, so that the first PE strips the first-type SID from the second data message according to the first-type SID, and sends the original data message to the CE; wherein the second network device is within the MPLS group network.
Thus, by establishing the association relationship between the MPLS label and the SID, the intercommunication between SRv6 networking and MPLS networking is realized in the process of forwarding the data message. The configuration of each boundary device is simplified, and the occupation of the routing resources of the boundary devices is saved.
Based on the same inventive concept, the embodiment of the present application further provides a network device, as shown in fig. 10, including a processor 1010, a transceiver 1020, and a machine-readable storage medium 1030, where the machine-readable storage medium 1030 stores machine-executable instructions capable of being executed by the processor 1010, and the processor 1010 is caused by the machine-executable instructions to perform the message processing method provided by the embodiment of the present application. The message processing apparatus shown in fig. 8 and 9 may be implemented by using a network device hardware structure shown in fig. 10.
The computer-readable storage medium 1030 may include a Random Access Memory (RAM) and a Non-volatile Memory (NVM), such as at least one disk Memory. Alternatively, the computer-readable storage medium 1030 may also be at least one memory device located remotely from the processor 1010.
The Processor 1010 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 1010 is caused by machine executable instructions, which are read from the machine readable storage medium 1030, to implement the processor 1010 itself and the call transceiver 1020 to execute the message processing method described in the foregoing embodiment of the present application.
In addition, the present application provides a machine-readable storage medium 1030, where the machine-readable storage medium 1030 stores machine-executable instructions, and when the machine-executable instructions are called and executed by the processor 1010, the machine-executable instructions cause the processor 1010 itself and the calling transceiver 1020 to execute the message processing method described in the foregoing embodiment of the present application.
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.
As for the message processing apparatus and the machine-readable storage medium, the content of the related method is substantially similar to that of the foregoing method embodiment, so that the description is relatively simple, and for the relevant points, reference may be made to the partial 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 (12)

1. A message processing method, applied to a first network device, where the first network device is in an SRv6 mesh, and a first PE is further included in the SRv6 mesh, where the method includes:
receiving a first data message sent by the first PE through an SRv6 tunnel, where the first data message includes a first type SID;
acquiring a first label for forwarding the first data message according to the first type SID;
sending a second data message to a second network device through an MPLS (multi-protocol label switching) path, wherein the second data message comprises the first label, so that the second network device obtains a second label and a third label for forwarding the second data message according to the first label, and sends a third data message to a second PE (provider edge), and the third data message comprises the second label and the third label;
wherein the second network device and the second PE are both in an MPLS network.
2. The method according to claim 1, wherein before the receiving the first data packet sent by the first PE through the SRv6 tunnel, the method further comprises:
receiving a first route advertisement sent by the second network device, wherein the first route advertisement comprises a first route, and the first route comprises a host address, next hop information and the first label;
modifying the next hop information into the address of the first router, distributing the first type SID for the first router, and establishing the association relationship between the first type SID and the first label;
generating a first forwarding table entry corresponding to the first route according to the host address, the modified next hop information, the first type SID and the first label;
and sending a second route advertisement to the first PE, wherein the second route advertisement comprises a second route, and the second route comprises the host address, the modified next hop information and the first type SID.
3. The method of claim 1, wherein the first network device is at an SRv6 networking edge and an MPLS networking edge; the method further comprises the following steps:
receiving a third data message sent by a third PE through the SRv6 tunnel, where the third data message includes a second type SID;
acquiring a fourth label and a fifth label for forwarding the first data message according to the second type SID;
sending a fourth data message to a fourth PE through an MPLS (multi-protocol label switching) path, wherein the fourth data message comprises a fourth label and a fifth label, so that the fourth label and the fifth label are stripped from the fourth data message and the rest message is sent to a CE after the next hop is determined to be the CE according to the fourth label;
wherein the third PE is in SRv6 mesh and the fourth PE is in MPLS mesh.
4. The method according to claim 3, wherein before receiving the third data packet sent by the third PE through the SRv6 tunnel, the method further comprises:
receiving a third route advertisement sent by the fourth PE, wherein the third route advertisement comprises a third route, and the third route comprises a host address, next hop information, and the fourth label;
modifying the next hop information into the address of the first router, distributing the second type SID to the third router, and establishing the association relationship between the second type SID and the fourth label;
generating a second forwarding table entry corresponding to the third route according to the host address, the modified next hop information, the second type SID and the fourth label;
sending a fourth route advertisement to the third PE, the fourth route advertisement including a fourth route, the fourth route including the host address, the modified next-hop information, and the second type SID.
5. The method of claim 2 or 4, wherein the first type SID and the second type SID are prefixes of the SID of the first network device.
6. A message processing method, applied to a first network device, where the first network device is in an SRv6 mesh, and a first PE is further included in the SRv6 mesh, where the method includes:
receiving a first data message sent by second network equipment through an MPLS (multi-protocol label switching) path, wherein the first data message comprises a first label;
acquiring a first type SID for forwarding the first data message according to the first label;
sending a second data message to the first PE through an SRv6 tunnel, where the second data message includes the first-type SID, so that the first PE strips the first-type SID from the second data message according to the first-type SID, and sends an original data message to the CE;
wherein the second network device is within an MPLS group network.
7. The method of claim 6, wherein before receiving the first data packet sent by the second network device through the MPLS label switched path, the method further comprises:
receiving a first route advertisement sent by the first PE, wherein the first route advertisement comprises a first route, and the first route comprises a host address, next hop information and the first type SID;
modifying the next hop information into the address of the first network equipment, distributing the first label to the first route, and establishing the association relationship between the first label and the first type SID;
generating a first forwarding table entry corresponding to the first route according to the host address, the modified next hop information, the first label and the first type SID;
and sending a second route advertisement to the second network equipment, wherein the second route advertisement comprises a second route, and the second route comprises the host address, the modified next hop information and the first label.
8. The method of claim 6, wherein the first network device is at an SRv6 networking edge and an MPLS networking edge; the method further comprises the following steps:
announcing the MPLS label switched path, and receiving a third data message sent by a second PE, wherein the second data message comprises a second label and a third label;
acquiring a second type SID for forwarding the first data message according to the second label;
sending a fourth data packet to a third PE through the SRv6 tunnel, where the fourth data packet includes the second-type SID, so that the third PE strips the second-type SID from the fourth data packet according to the second-type SID, and sends an original data packet to a CE;
wherein the third PE is within an MPLS mesh group.
9. The method according to claim 8, wherein before said notifying the MPLS label switched path and receiving the third datagram sent by the second PE, the method further comprises:
receiving a third route advertisement sent by the third PE, wherein the third route advertisement comprises a third route, and the third route comprises a host address, next hop information and the second type SID;
modifying the next hop information into the address of the first network device, assigning the second label to the third route, and establishing an association relationship between the second label and the second type SID;
generating a second forwarding table entry corresponding to the second route according to the host address, the modified next hop information, the second label and the second type SID;
sending a fourth route advertisement to the second PE, the fourth route advertisement including a fourth route, the fourth route including the host address, the modified next-hop information, and the second label.
10. The method as recited in claim 9, wherein the first type SID is a prefix of the SID of the first PE;
the second type SID is a prefix of a SID of the third PE.
11. A message processing apparatus, where the apparatus is applied to a first network device, the first network device is in SRv6 networks, a first PE is further included in SRv6 networks, and the apparatus includes:
a receiving unit, configured to receive, through an SRv6 tunnel, a first data packet sent by the first PE, where the first data packet includes a first type SID;
an obtaining unit, configured to obtain, according to the first type SID, a first tag used for forwarding the first data packet;
a sending unit, configured to send a second data packet to a second network device through an MPLS label switched path, where the second data packet includes the first label, so that the second network device obtains, according to the first label, a second label and a third label for forwarding the second data packet, and sends a third data packet to a second PE, where the third data packet includes the second label and the third label;
wherein the second network device and the second PE are both in an MPLS network.
12. A message processing apparatus, where the apparatus is applied to a first network device, the first network device is in SRv6 networks, a first PE is further included in SRv6 networks, and the apparatus includes:
a receiving unit, configured to receive a first data packet sent by a second network device through an MPLS label switched path, where the first data packet includes a first label;
an obtaining unit, configured to obtain a first type SID used for forwarding the first data packet according to the first tag;
a sending unit, configured to send a second data packet to the first PE through an SRv6 tunnel, where the second data packet includes the first-type SID, so that the first PE strips the first-type SID from the second data packet according to the first-type SID, and sends an original data packet to the CE;
wherein the second network device is within an MPLS group network.
CN202110783184.3A 2021-07-12 2021-07-12 Message processing method and device Active CN113726653B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110783184.3A CN113726653B (en) 2021-07-12 2021-07-12 Message processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110783184.3A CN113726653B (en) 2021-07-12 2021-07-12 Message processing method and device

Publications (2)

Publication Number Publication Date
CN113726653A true CN113726653A (en) 2021-11-30
CN113726653B CN113726653B (en) 2023-12-29

Family

ID=78673210

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110783184.3A Active CN113726653B (en) 2021-07-12 2021-07-12 Message processing method and device

Country Status (1)

Country Link
CN (1) CN113726653B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023179656A1 (en) * 2022-03-24 2023-09-28 中国移动通信有限公司研究院 Srv6 message processing method and apparatus, communication device, and storage medium
WO2023208056A1 (en) * 2022-04-29 2023-11-02 华为技术有限公司 Method, apparatus and system for processing message

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102904814A (en) * 2012-10-19 2013-01-30 福建星网锐捷网络有限公司 Data transmission method, source PE (Provider Edge router), object PE and data transmission system
US20180309596A1 (en) * 2017-04-20 2018-10-25 Cisco Technology, Inc. Evpn implicit aliasing
CN110266592A (en) * 2019-06-21 2019-09-20 Ut斯达康通讯有限公司 The communication means and device of SRV6 network and IP MPLS network
CN111713079A (en) * 2018-10-22 2020-09-25 思科技术公司 Packet network interworking including segment routing
CN112511423A (en) * 2020-09-03 2021-03-16 中兴通讯股份有限公司 Message processing method, boundary device and computer readable medium
US20210083902A1 (en) * 2018-06-01 2021-03-18 Huawei Technologies Co., Ltd. Method for Managing Virtual Private Network, and Device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102904814A (en) * 2012-10-19 2013-01-30 福建星网锐捷网络有限公司 Data transmission method, source PE (Provider Edge router), object PE and data transmission system
US20180309596A1 (en) * 2017-04-20 2018-10-25 Cisco Technology, Inc. Evpn implicit aliasing
US20210083902A1 (en) * 2018-06-01 2021-03-18 Huawei Technologies Co., Ltd. Method for Managing Virtual Private Network, and Device
CN111713079A (en) * 2018-10-22 2020-09-25 思科技术公司 Packet network interworking including segment routing
CN110266592A (en) * 2019-06-21 2019-09-20 Ut斯达康通讯有限公司 The communication means and device of SRV6 network and IP MPLS network
CN112511423A (en) * 2020-09-03 2021-03-16 中兴通讯股份有限公司 Message processing method, boundary device and computer readable medium

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
S. AGRAWAL等: "SRv6 and MPLS interworking draft-agrawal-spring-srv6-mpls-interworking-03", 《IETF 》 *
S. AGRAWAL等: "SRv6 and MPLS interworking draft-agrawal-spring-srv6-mpls-interworking-03", 《IETF 》, 14 August 2020 (2020-08-14) *
唐永林等: "SRv6的分段标识符结构的改善", 《电信科学》 *
唐永林等: "SRv6的分段标识符结构的改善", 《电信科学》, no. 04, 20 April 2020 (2020-04-20) *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023179656A1 (en) * 2022-03-24 2023-09-28 中国移动通信有限公司研究院 Srv6 message processing method and apparatus, communication device, and storage medium
WO2023208056A1 (en) * 2022-04-29 2023-11-02 华为技术有限公司 Method, apparatus and system for processing message

Also Published As

Publication number Publication date
CN113726653B (en) 2023-12-29

Similar Documents

Publication Publication Date Title
CN110830352B (en) Method and device for realizing VPN cross-domain and boundary node
US10476796B2 (en) Packet processing method, and device and system
US10700891B2 (en) Method for implementing service chain, device, and system
US10484203B2 (en) Method for implementing communication between NVO3 network and MPLS network, and apparatus
US11689452B2 (en) Method for forwarding service data, network device, and network system
CN112511444B (en) Multicast traffic transmission method, device, communication node and storage medium
US9509609B2 (en) Forwarding packets and PE devices in VPLS
US9860169B1 (en) Neighbor resolution for remote EVPN hosts in IPV6 EVPN environment
EP2750329B1 (en) Method and device for sending internet protocol packets
WO2015165311A1 (en) Method for transmitting data packet and provider edge device
WO2015192501A1 (en) Address information publishing method and apparatus
CN102413060B (en) User private line communication method and equipment used in VPLS (Virtual Private LAN (Local Area Network) Service) network
CN105453513B (en) Message forwarding method, forwarding-table item delivery method and the network equipment
CN113726653B (en) Message processing method and device
US20160285755A1 (en) Service label routing in a network
US20190149462A1 (en) Method and system using a scalable label scheme for aliasing in a multihomed ethernet virtual private network (evpn) network
CA2974353A1 (en) System and method for identifying a communication for routing purposes using internet protocol addresses that are allocated by and shared amongst internet service provider networks
CN111147376B (en) Route updating method, device, equipment and medium
CN106230730B (en) Multicast transmission method and device
US20230081052A1 (en) Method and apparatus for sending multicast packet
WO2023051179A1 (en) Method and apparatus for receiving border gateway protocol routing, method and apparatus for sending border gateway protocol routing, and storage medium
WO2023284675A1 (en) Forwarding table lookup method and apparatus, and storage medium and electronic apparatus
JP2012175198A (en) Circulation route setting system and method
WO2023016234A1 (en) Method and apparatus for publishing rt4 routing message r4, and storage medium and electronic apparatus
CN115460138A (en) Network intercommunication method and device

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