CN110266592B - Communication method and device for SRV6 network and IP MPLS network - Google Patents

Communication method and device for SRV6 network and IP MPLS network Download PDF

Info

Publication number
CN110266592B
CN110266592B CN201910546486.1A CN201910546486A CN110266592B CN 110266592 B CN110266592 B CN 110266592B CN 201910546486 A CN201910546486 A CN 201910546486A CN 110266592 B CN110266592 B CN 110266592B
Authority
CN
China
Prior art keywords
network
message
format conversion
srv6
mpls
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.)
Active
Application number
CN201910546486.1A
Other languages
Chinese (zh)
Other versions
CN110266592A (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.)
UTStarcom Telecom Co Ltd
Original Assignee
UTStarcom Telecom 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 UTStarcom Telecom Co Ltd filed Critical UTStarcom Telecom Co Ltd
Priority to CN201910546486.1A priority Critical patent/CN110266592B/en
Publication of CN110266592A publication Critical patent/CN110266592A/en
Application granted granted Critical
Publication of CN110266592B publication Critical patent/CN110266592B/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
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/659Internet protocol version 6 [IPv6] addresses

Landscapes

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

Abstract

The invention provides a communication method and a device of an SRV6 network and an IP MPLS network, relating to the technical field of communication, comprising the steps of receiving a first message sent by a first operator network edge device in a first network, wherein the first network is an SRV6 network or an IP MPLS network; determining a target message format conversion table matched with the first message in a preset message format conversion library; and converting the first message into a corresponding second message according to the target message format conversion table, and sending the second message to a second operator network edge device of a second network, wherein the second network is an SRV6 network or an IP MPLS network, and the second network is different from the first network. The method can convert the first message transmitted in the first network into the second message transmitted in the second network by setting the preset message format conversion library, thereby realizing the intercommunication requirement of multiple CEs between the SRV 6-crossing network and the IP MPLS network and relieving the technical problem that the intercommunication method of the SRV6 network and the IP MPLS network wastes communication resources in the prior art.

Description

Communication method and device for SRV6 network and IP MPLS network
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a communication method and apparatus for an SRV6 network and an IP MPLS network.
Background
Segment Routing (Segment Routing) is to meet the traffic engineering of network devices, and to make the network administrator more simply, conveniently and quickly schedule traffic in the network, and this technique can be applied to the forwarding planes of MPLS (Multi-Protocol Label Switching) and IPV6(Internet Protocol version 6, version 6 of the Internet Protocol). This technology (SRV 6, Segment routing IPV6, Segment routing protocol based on IPV 6) applied to IPV6 forwarding plane redefines the IPV6 address of 128 bits widely used at present as SRV6 SID (Segment ID), and the coding mode of SID generally includes a routing field Locator, a function field function, and a parameter field alignment, where the Locator represents the network element where the SID is located, the function represents the processing mode of the SID after receiving a packet, and the alignment is attached after the function and represents parameters that the SID needs to carry a specific service.
A Network that provides IPV 6L 3VPN (Layer3Virtual Private Network, three-Layer Virtual Private Network), IPV4(Internet protocol version 4 ) L3VPN, VPWS (Virtual Private line Service, Virtual Private line Service), and EVPN (Ethernet Virtual Private Network) services based on an MPLS Network is called an IP MPLS Network.
The SRV6 Network and the IP MPLS Network both have corresponding message formats transmitted in the Network, and if a message needs to be transmitted between CEs (Customer Edge devices) accessing the two networks, the same Network must be accessed to establish a communication connection, assuming that the CE at one end of the SRV6 Network needs to communicate with the CE at the other end of the IP MPLS Network, the prior art may adopt the solution shown in fig. 1 or fig. 2, but both the solutions need to plan and configure an IP address and a VRF (Virtual Private Network Routing and Forwarding, Virtual Private Network Routing and Virtual Switching Instance) on a newly established link for services of the IPV 6L 3VPN and services of the IPV 4L 3VPN, both the two solutions need to plan and configure resources of a VSI (Virtual Switching Instance) on the newly established link for services of the VPWS and services of the IP MPLS pn, and both the two solutions must cause IP Forwarding tables (IP Edge devices, carrier network edge devices) and SRV6 PE.
In summary, the interworking method between the SRV6 network and the IP MPLS network in the prior art has a technical problem of wasting communication resources.
Disclosure of Invention
The invention aims to provide a communication method and a communication device for an SRV6 network and an IP MPLS network, so as to relieve the technical problem of communication resource waste in the intercommunication method of the SRV6 network and the IP MPLS network in the prior art.
In a first aspect, a communication method between an SRV6 network and an IP MPLS network provided by the present invention is applied to a target operator network edge device, where the target operator network edge device is used to implement interworking between an SRV6 network and an IP MPLS network, and includes:
receiving a first message sent by a first operator network edge device in a first network, wherein the first network is an SRV6 network or an IP MPLS network;
determining a target message format conversion table matched with the first message in a preset message format conversion library;
and converting the first message into a corresponding second message according to the target message format conversion table, and sending the second message to a second operator network edge device of a second network, wherein the second network is an SRV6 network or an IP MPLS network, and the second network is different from the first network.
Further, if the first network is an SRV6 network and the second network is an IP MPLS network, the first packet is an SRV6 packet;
determining a target message format conversion table matched with the first message in a preset message format conversion library comprises:
acquiring a segment identifier of a destination IP address in external IPV6header information of the SRV6 message;
judging whether the segment identifier is matched with a segment identifier in a segment identifier library, wherein the segment identifier library comprises the segment identifier of the target operator network edge device;
and if so, matching the segment identifier with the preset message format conversion library to obtain a matched message format conversion table, and taking the matched message format conversion table as a target message format conversion table.
Further, converting the first packet into a corresponding second packet according to the target packet format conversion table includes:
deleting external IPV6header information of the SRV6 message and/or segment routing header information of the SRV6 message to obtain an IP MPLS intermediate message;
obtaining label information in the target message format conversion table, wherein the label information includes: the external label information represents transmission path information of the second message in the IP MPLS network, and the internal label information represents service type information required by the second message in the IP MPLS network;
and encapsulating the label information in the IP MPLS intermediate message according to the message format of the IP MPLS network to obtain the second message.
Further, if the first network is an IP MPLS network and the second network is an SRV6 network, the first packet is an IP MPLS packet;
determining a target message format conversion table matched with the first message in a preset message format conversion library comprises:
obtaining the internal label information of the IP MPLS message;
and matching the internal label information with the preset message format conversion library to obtain a matched message format conversion table, and taking the matched message format conversion table as a target message format conversion table.
Further, converting the first packet into a corresponding second packet according to the target packet format conversion table includes:
deleting the external label information and the internal label information of the IP MPLS message to obtain an SRV6 intermediate message;
acquiring external IPV6header information in the target message format conversion table and/or segment routing header information in the target message format conversion table;
and encapsulating the external IPV6header information and/or the segment routing header information in the SRV6 intermediate message according to the message format of the SRV6 network to obtain the second message.
In a second aspect, the present invention further provides a communication apparatus for an SRV6 network and an IP MPLS network, which is applied to a target operator network edge device, where the target operator network edge device is configured to implement interworking between an SRV6 network and an IP MPLS network, and includes:
a receiving module, configured to receive a first message sent by a first operator network edge device in a first network, where the first network is an SRV6 network or an IP MPLS network;
the determining module is used for determining a target message format conversion table matched with the first message in a preset message format conversion library;
and the conversion module is used for converting the first message into a corresponding second message according to the target message format conversion table and sending the second message to a second operator network edge device of a second network, wherein the second network is an SRV6 network or an IP MPLS network, and the second network is different from the first network.
Further, if the first network is an SRV6 network and the second network is an IP MPLS network, the first packet is an SRV6 packet;
the determining module comprises:
a first obtaining unit, configured to obtain a segment identifier of a destination IP address in external IPV6header information of the SRV6 packet;
a judging unit, configured to judge whether the segment identifier matches a segment identifier in a segment identifier library, where the segment identifier library includes the segment identifier of the target operator network edge device;
and the first matching unit is used for matching the segment identifier with the preset message format conversion base to obtain a matched message format conversion table if the segment identifier is matched with the preset message format conversion base, and taking the matched message format conversion table as a target message format conversion table.
Further, the conversion module includes:
a first deleting unit, configured to delete external IPV6header information of the SRV6 packet and/or segment routing header information of the SRV6 packet, to obtain an IP MPLS intermediate packet;
a second obtaining unit, configured to obtain tag information in the target packet format conversion table, where the tag information includes: the external label information represents transmission path information of the second message in the IP MPLS network, and the internal label information represents service type information required by the second message in the IP MPLS network;
and the first encapsulating unit is used for encapsulating the label information in the IP MPLS intermediate message according to the message format of the IP MPLS network to obtain the second message.
Further, if the first network is an IP MPLS network and the second network is an SRV6 network, the first packet is an IP MPLS packet;
the determining module further comprises:
a third obtaining unit, configured to obtain internal label information of the IP MPLS packet;
and the second matching unit is used for matching the internal label information with the preset message format conversion library to obtain a matched message format conversion table, and taking the matched message format conversion table as a target message format conversion table.
Further, the conversion module further includes:
a second deleting unit, configured to delete the external label information and the internal label information of the IP MPLS packet, to obtain an SRV6 intermediate packet;
a fourth obtaining unit, configured to obtain external IPV6header information in the target packet format conversion table and/or segment routing header information in the target packet format conversion table;
and the second encapsulating unit is used for encapsulating the external IPV6header information and/or the segment routing header information into the SRV6 intermediate message according to the message format of the SRV6 network to obtain the second message.
The invention provides a communication method of an SRV6 network and an IP MPLS network, which is applied to target operator network edge equipment, wherein the target operator network edge equipment is used for realizing the intercommunication of the SRV6 network and the IP MPLS network, and comprises the following steps: receiving a first message sent by a first operator network edge device in a first network, wherein the first network is an SRV6 network or an IP MPLS network; determining a target message format conversion table matched with the first message in a preset message format conversion library; and converting the first message into a corresponding second message according to the target message format conversion table, and sending the second message to a second operator network edge device of a second network, wherein the second network is an SRV6 network or an IP MPLS network, and the second network is different from the first network.
In the prior art, when multiple CEs have an interworking requirement between the SRV 6-crossing network and the IP MPLS network, resources such as IP addresses, VRFs, VSIs, etc. of the intermediate PEs need to be occupied, compared with the network intercommunication method in the prior art, the communication method of the SRV6 network and the IP MPLS network provided by the invention can convert the first message transmitted in the first network into the second message transmitted in the second network by using the target operator network edge equipment only by setting the preset message format conversion library for the target operator network edge equipment intercommunicating the SRV6 network and the IP MPLS network, on the premise of not occupying resources such as IP addresses, VRF, VSI and the like of network edge equipment of an intermediate operator, the intercommunication requirement of multiple CEs between the SRV 6-crossing network and the IP MPLS network is realized, and the technical problem that communication resources are wasted by an intercommunication method of the SRV6 network and the IP MPLS network in the prior art is solved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a schematic diagram of an interworking method between an SRV6 network and an IP MPLS network in the prior art according to an embodiment of the present invention;
fig. 2 is a schematic diagram of another interworking method between an SRV6 network and an IP MPLS network in the prior art according to an embodiment of the present invention;
fig. 3 is a flowchart of a communication method between an SRV6 network and an IP MPLS network according to an embodiment of the present invention;
fig. 4 is a schematic diagram illustrating an interworking method between an SRV6 network and an IP MPLS network according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a format of a message sent by a user network edge device CE in the prior art according to an embodiment of the present invention;
fig. 6 is a schematic diagram of a format of a message transmitted in an SRV6 network in the prior art according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a message format conversion table for converting an SRV6 message into an IP MPLS message according to an embodiment of the present invention;
fig. 8 is a schematic diagram of a format of a packet transmitted in an IP MPLS network in the prior art according to an embodiment of the present invention;
fig. 9 is a schematic diagram of a message format conversion table for converting an IP MPLS message into an SRV6 message according to an embodiment of the present invention;
fig. 10 is a schematic diagram of a communication device of an SRV6 network and an IP MPLS network according to an embodiment of the present invention.
Detailed Description
The technical solutions of the present invention will be described clearly and completely with reference to the following embodiments, and it should be understood that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The first embodiment is as follows:
fig. 3 is a flowchart of a communication method between an SRV6 network and an IP MPLS network according to an embodiment of the present invention, which is applied to a target operator network edge device, where the target operator network edge device is used to implement interworking between an SRV6 network and the IP MPLS network, and the method includes the following steps:
step S102, receiving a first message sent by a first operator network edge device in a first network, wherein the first network is an SRV6 network or an IP MPLS network;
specifically, as shown in fig. 4, to implement the communication between CE1 and CE2 in the figure, CE1 sends a message to a first operator network edge PE1 in a first network, and then first operator network edge PE1 encapsulates the received message according to a message format transmitted in the first network to obtain a first message, and sends the first message to a target operator network edge (target PE in fig. 4), and further, the target operator network edge receives the first message sent by first operator network edge PE1 in the first network, and the following description will specifically describe a case where the first network is an SRV6 network or an IP MPLS network, respectively.
Step S104, determining a target message format conversion table matched with the first message in a preset message format conversion library;
after receiving the first message, the target operator network edge device determines a target message format conversion table matched with the first message in a preset message format conversion library according to specific information carried by the first message, wherein each message format conversion table corresponds to a conversion relation of message formats between networks, each VPN service type corresponds to a specific message format conversion table, and hereinafter, specific processes of determining the target message format conversion table are respectively described for two transmission directions of the CE message in the SRV6 network and the IP MPLS network.
Step S106, the first message is converted into a corresponding second message according to the target message format conversion table, and the second message is sent to a second operator network edge device of a second network, wherein the second network is an SRV6 network or an IP MPLS network, and the second network is different from the first network.
In the embodiment of the present invention, a set of message format conversion tables for converting a first message into a second message is referred to as a preset message format conversion library, where a message transmitted in a second network is referred to as a second message, the second network is an SRV6 network or an IP MPLS network, and the second network is different from the first network, that is, when the first network is an SRV6 network, the second network is an IP MPLS network, and when the first network is an IP MPLS network, the second network is an SRV6 network.
After the target message format conversion table is determined, the target operator network edge device converts the first message into a corresponding second message according to the target message format conversion table, and sends the second message to a second operator network edge device PE2 of a second network, so that the intercommunication between the first network and the second network is already realized, and then the PE2 converts the received second message into a message which can be identified by the CE2 according to the message processing mode of the second network and sends the message to the CE2, thereby realizing the communication between the CE1 accessed to the first network and the CE2 accessed to the second network. Hereinafter, specific processes of performing message format conversion according to a target message format conversion table will be described respectively for two transmission directions of a CE message in an SRV6 network and an IP MPLS network.
In the prior art, when multiple CEs have an interworking requirement between the SRV 6-crossing network and the IP MPLS network, resources such as IP addresses, VRFs, VSIs, etc. of the intermediate PEs need to be occupied, compared with the network intercommunication method in the prior art, the communication method of the SRV6 network and the IP MPLS network provided by the invention can convert the first message transmitted in the first network into the second message transmitted in the second network by using the target operator network edge equipment only by setting the preset message format conversion library for the target operator network edge equipment intercommunicating the SRV6 network and the IP MPLS network, on the premise of not occupying resources such as IP addresses, VRF, VSI and the like of network edge equipment of an intermediate operator, the intercommunication requirement of multiple CEs between the SRV 6-crossing network and the IP MPLS network is realized, and the technical problem that communication resources are wasted by an intercommunication method of the SRV6 network and the IP MPLS network in the prior art is solved.
The above briefly describes the processing procedure of the message according to the method of the present invention, and the following describes in detail the process of determining the target message format conversion table matching the first message in the preset message format conversion library when the first network is the SRV6 network and the second network is the IP MPLS network.
In an optional implementation manner, if the first network is an SRV6 network and the second network is an IP MPLS network, the first message is an SRV6 message;
the method for determining the target message format conversion table matched with the first message in the preset message format conversion library comprises the following steps:
step S201, obtaining segment identification of destination IP address in external IPV6header information of SRV6 message;
step S202, judging whether the segment identification is matched with the segment identification in a segment identification library, wherein the segment identification library comprises the segment identification of the network edge equipment of the target operator;
specifically, fig. 5 is a schematic diagram of a format of a message sent by the CE, where if the first network is an SRV6 network and the second network is an IP MPLS network, the first message is an SRV6 message, and a format of a message transmitted in the SRV6 network is as shown in fig. 6, an operator network edge device in the SRV6 network provides service access and service exit, the operator network edge device at an entrance is responsible for service access, and corresponding external IPV6header information (external IPV6header) is added according to different service types; adding segment routing header information (SRH) according to the traffic engineering instruction, and judging whether an SRH exists or not according to whether the service needs to perform traffic engineering or not; and whether or not to carry an inner L2 header (inner layer2 header, internal two-layer network header information), depending on the traffic type, for IPV 6L 3VPN traffic, IPV 4L 3VPN traffic cannot carry an inner L2 header; VPWS business carries inner L2 header; EVPN traffic may or may not carry an inner L2 header.
Wherein, the external IPV6header is provided with a DIP (destination IP address) field, stores the SID of the target routing node, the SRH includes a segment list, the ordered arrangement of the SIDs in the segment list determines the forwarding path of the SRV6 message in the SRV6 network, and after locally hitting the SID (End or end.x) pointed to by the pointer in the segment list, the Endpoint device in the SRV6 network corrects the segment left value in the SRH, copies the next SID in the segment list in the SRH to the DIP field in the external IPV6header, and then forwards the SRV6 message.
Therefore, after acquiring the SRV6 message, the target operator network edge device first acquires the segment id SID of the destination IP address in the external IPV6header information of the SRV6 message, and then determines whether the SID matches the segment id in the segment id library, where the segment id library includes the segment id of the target operator network edge device, and in order to provide a comprehensive service processing function, multiple types of SIDs are configured on the target operator network edge device, so the target operator network edge device has at least one SID, where a SID capable of implementing a function of converting the SRV6 message into an IP MPLS message (a message transmitted in an IP MPLS network) is called an end.btm (Binding to MPLS network), and in order to fully utilize network resources, and distinguish from a function field (function) of the SID already defined at present, a function field encoding of the end.btm type is defined as 0x1000 (or may be another field allowing MPLS to be customized in the prior art), the specific function parameters aiming at different service types are set in parameter fields (entries), SID parameter fields of different service types are different, the invention does not limit the SID name and the value of the function field for realizing the conversion function from SRV6 message to IP MPLS message, and users can set according to the situation.
And step S203, if the segment identifiers are matched with the preset message format conversion base, matching message format conversion tables are obtained, and the matched message format conversion tables are used as target message format conversion tables.
If it is determined that the segment identifier matches the segment identifier in the segment identifier library, a message format conversion table matching the segment identifier is further determined, that is, in the present invention, a message format conversion table is preset for each segment identifier SID, specifically, referring to the example in fig. 7, values in the table in fig. 7 are set according to the actual service type, and in the present invention, no one-to-one enumeration is performed, and the matched message format conversion table is used as a target message format conversion table for converting the SRV6 message into the IP MPLS message.
In the above, a process of determining a target packet format conversion table matched with the first packet in the preset packet format conversion library when the first network is an SRV6 network and the second network is an IP MPLS network is described in detail, and a process of converting the first packet into a corresponding second packet according to the target packet format conversion table is described in detail below.
In an optional embodiment, converting the first packet into a corresponding second packet according to the target packet format conversion table includes the following steps:
step 301, deleting external IPV6header information of the SRV6 message and/or segment routing header information of the SRV6 message to obtain an IP MPLS intermediate message;
specifically, fig. 6 already shows the format of the message transmitted in the SRV6 network, and for the format of the message transmitted in the IP MPLS network, referring to fig. 8 specifically, after determining the target message format conversion table, the target operator network edge device first deletes the external IPV6header information of the received SRV6 message and/or the segment routing header information SRH of the SRV6 message, and refers to the SRV6 message from which the above two pieces of information are deleted as the IP MPLS intermediate message.
It has been described above that whether there is segment routing header information SRH depends on whether the service needs to perform traffic engineering, if the service type required by the current message does not need to perform traffic engineering, then the SRV6 message will not contain segment routing header information SRH when the provider network edge device of the SRV6 network accesses the message sent by the CE and converts the message sent by the CE into a message transmitted in the SRV6 network, otherwise, if the service type required by the current message needs to perform traffic engineering, the SRV6 message will contain segment routing header information SRH.
Step 302, obtaining label information in a target message format conversion table, wherein the label information includes: the method comprises the steps that external label information and internal label information are obtained, the external label information represents transmission path information of a second message in the IP MPLS network, and the internal label information represents service type information required by the second message in the IP MPLS network;
further, according to the format of the message transmitted in the IP MPLS network shown in fig. 8, after obtaining the IP MPLS intermediate message, to obtain a complete IP MPLS message, it is further required to obtain external label information (LSP label value) and internal label information (inner label value), where the external label information represents transmission path information of the second message in the IP MPLS network, the internal label information represents service type information required by the second message in the IP MPLS network, and the target message format conversion table is preset with the above label information (external label information and internal label information).
Step 303, encapsulating the label information in the IP MPLS intermediate message according to the message format of the IP MPLS network, so as to obtain a second message.
After all information forming the IP MPLS message is obtained, the label information is packaged in the IP MPLS intermediate message according to the message format of the IP MPLS network, and a second message is obtained, wherein the second message is also the IP MPLS message corresponding to the SRV6 message.
The above description describes in detail the process of transmitting a message from the first network to the second network when the first network is the SRV6 network and the second network is the IP MPLS network, and the following description specifically describes the process of transmitting a message from the first network to the second network when the first network is the IP MPLS network and the second network is the SRV6 network.
In an optional implementation manner, if the first network is an IP MPLS network and the second network is an SRV6 network, the first packet is an IP MPLS packet;
the method for determining the target message format conversion table matched with the first message in the preset message format conversion library comprises the following steps:
step 401, obtaining internal label information of an IP MPLS message;
and 402, matching the internal label information with a preset message format conversion base to obtain a matched message format conversion table, and taking the matched message format conversion table as a target message format conversion table.
Specifically, if the first network is an IP MPLS network and the second network is an SRV6 network, the first message is an IP MPLS message, an operator network edge device in the IP MPLS network provides service access and service egress, the operator network edge device at the entrance is responsible for service access, corresponding inner labels are added according to different service types, and different inner label values represent different VPN service types. The LSP label represents path information in the IP MPLS network.
Therefore, after the network edge device of the target operator acquires the IP MPLS message, different from the processing mode of the IP MPLS message by the operator network edge equipment at the exit in the prior art, the target operator network edge equipment firstly acquires the internal label information of the IP MPLS message, then, the internal label information is matched with the preset message format conversion library to obtain a matched message format conversion table, that is, a message format conversion table is preset in the preset message format conversion library for each piece of internal label information (i.e., inner label value), which can be referred to as an example in fig. 9, the values in the table in fig. 9 are set according to the actual service types, and the present invention does not enumerate one by one, and uses the matched message format conversion table as the target message format conversion table for converting the IP MPLS message into the SRV6 message.
In an optional embodiment, converting the first packet into a corresponding second packet according to the target packet format conversion table includes the following steps:
step 501, deleting external label information and internal label information of the IP MPLS message to obtain an SRV6 intermediate message;
according to the message formats transmitted in the SRV6 network and the IP MPLS network, after determining the target message format conversion table, the target operator network edge device first deletes the external label information and the internal label information of the received IP MPLS message, and the IP MPLS message from which the two kinds of information are deleted is called as an SRV6 intermediate message.
Step 502, obtaining external IPV6header information in a target message format conversion table and/or segment routing header information in the target message format conversion table;
further, according to the message format transmitted in the SRV6 network shown in fig. 6, after obtaining the SRV6 intermediate message, to obtain a complete SRV6 message, it is also necessary to obtain external IPV6header information and/or segment routing header information SRH, and whether segment routing header information SRH exists depends on whether the service needs to perform traffic engineering, and the above information is preset in the target message format conversion table.
Step 503, according to the message format of the SRV6 network, encapsulating the external IPV6header information and/or segment routing header information in the SRV6 intermediate message to obtain a second message.
After all the information forming the SRV6 message is acquired, the external IPV6header information and/or the segment routing header information SRH are encapsulated in the SRV6 intermediate message according to the message format of the SRV6 network, so that a second message is acquired, and the second message is also the SRV6 message corresponding to the IP MPLS message.
In summary, the communication method for the SRV6 network and the IP MPLS network provided by the present invention adds an end.btm type SID to implement the intercommunication between the SRV6 network and the IP MPLS network, and in a scenario where multiple CE networks are accessed, a target operator network edge device needs to set multiple end.btms, and a preset message format conversion library is set on a forwarding layer, so that the intercommunication between two different networks can be completed.
In the message transmission direction from the SRV6 network to the IP MPLS network, the target operator network edge device needs to add an identification of the SID of end.btm type, determine a corresponding target message format conversion table according to the SID in the SRV6 message, and add corresponding label information (internal label information and external label information) according to the target message format conversion table; in the message transmission direction from the IP MPLS network to the SRV6 network, the target operator network edge device needs to identify the internal label information in the IP MPLS message, determine the corresponding target message format conversion table according to the internal label information, and then add the corresponding external IPV6head information and/or segment routing head information SRH according to the target message format conversion table; in the control layer, the controller may issue the processing contents of all the above message format conversion tables to the network edge device of the target operator belonging to both the SRV6 network and the IP MPLS network, so as to implement the intercommunication between the SRV6 network and the IP MPLS network.
Example two:
the embodiment of the present invention further provides a communication device for an SRV6 network and an IP MPLS network, where the communication device for the SRV6 network and the IP MPLS network is mainly used to execute the communication method for the SRV6 network and the IP MPLS network provided in the foregoing content of the embodiment of the present invention, and the following description specifically describes the communication device for the SRV6 network and the IP MPLS network provided in the embodiment of the present invention.
Fig. 10 is a schematic diagram of a communication apparatus of an SRV6 network and an IP MPLS network according to an embodiment of the present invention, as shown in fig. 10, the apparatus mainly includes a receiving module 10, a determining module 20, and a converting module 30, where:
a receiving module, configured to receive a first message sent by a first operator network edge device in a first network, where the first network is an SRV6 network or an IP MPLS network;
the determining module is used for determining a target message format conversion table matched with the first message in a preset message format conversion library;
and the conversion module is used for converting the first message into a corresponding second message according to the target message format conversion table and sending the second message to a second operator network edge device of a second network, wherein the second network is an SRV6 network or an IP MPLS network, and the second network is different from the first network.
In the prior art, when multiple CEs have an interworking requirement between the SRV 6-crossing network and the IP MPLS network, resources such as IP addresses, VRFs, VSIs, etc. of the intermediate PEs need to be occupied, compared with the network intercommunication method in the prior art, the communication method of the SRV6 network and the IP MPLS network provided by the invention can convert the first message transmitted in the first network into the second message transmitted in the second network by using the target operator network edge equipment only by setting the preset message format conversion library for the target operator network edge equipment intercommunicating the SRV6 network and the IP MPLS network, on the premise of not occupying resources such as IP addresses, VRF, VSI and the like of network edge equipment of an intermediate operator, the intercommunication requirement of multiple CEs between the SRV 6-crossing network and the IP MPLS network is realized, and the technical problem that communication resources are wasted by an intercommunication method of the SRV6 network and the IP MPLS network in the prior art is solved.
Further, if the first network is an SRV6 network and the second network is an IP MPLS network, the first message is an SRV6 message;
the determining module comprises:
the first obtaining unit is used for obtaining a segment identifier of a destination IP address in external IPV6header information of the SRV6 message;
a judging unit, configured to judge whether the segment identifier matches a segment identifier in a segment identifier library, where the segment identifier library includes segment identifiers of network edge devices of a target operator;
and the first matching unit is used for matching the segment identifier with a preset message format conversion base to obtain a matched message format conversion table if the segment identifier is matched with the preset message format conversion base, and taking the matched message format conversion table as a target message format conversion table.
Further, the conversion module comprises:
the first deleting unit is used for deleting external IPV6header information of the SRV6 message and/or segment routing header information of the SRV6 message to obtain an IP MPLS intermediate message;
a second obtaining unit, configured to obtain tag information in a target packet format conversion table, where the tag information includes: the method comprises the steps that external label information and internal label information are obtained, the external label information represents transmission path information of a second message in the IP MPLS network, and the internal label information represents service type information required by the second message in the IP MPLS network;
and the first encapsulating unit is used for encapsulating the label information in the IP MPLS intermediate message according to the message format of the IP MPLS network to obtain a second message.
Further, if the first network is an IP MPLS network and the second network is an SRV6 network, the first packet is an IP MPLS packet;
the determination module further comprises:
a third obtaining unit, configured to obtain internal label information of the IP MPLS packet;
and the second matching unit is used for matching the internal label information with a preset message format conversion base to obtain a matched message format conversion table, and taking the matched message format conversion table as a target message format conversion table.
Further, the conversion module further comprises:
a second deleting unit, configured to delete external label information and internal label information of the IP MPLS packet, to obtain an SRV6 intermediate packet;
a fourth obtaining unit, configured to obtain external IPV6header information in the target packet format conversion table and/or segment routing header information in the target packet format conversion table;
and the second encapsulating unit is used for encapsulating the external IPV6header information and/or the segment routing header information into the SRV6 intermediate message according to the message format of the SRV6 network to obtain a second message.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A communication method between SRV6 network and IP MPLS network is applied to target operator network edge equipment, the target operator network edge equipment is used for realizing the intercommunication between SRV6 network and IP MPLS network, and the method is characterized by comprising the following steps:
receiving a first message sent by a first operator network edge device in a first network, wherein the first network is an SRV6 network or an IP MPLS network;
determining a target message format conversion table matched with the first message in a preset message format conversion library; each message format conversion table corresponds to a conversion relation of message formats among networks;
and converting the first message into a corresponding second message according to the target message format conversion table, and sending the second message to a second operator network edge device of a second network, wherein the second network is an SRV6 network or an IP MPLS network, and the second network is different from the first network.
2. The communication method according to claim 1, wherein if the first network is an SRV6 network and the second network is an IP MPLS network, the first packet is an SRV6 packet;
determining a target message format conversion table matched with the first message in a preset message format conversion library comprises:
acquiring a segment identifier of a destination IP address in external IPV6header information of the SRV6 message;
judging whether the segment identifier is matched with a segment identifier in a segment identifier library, wherein the segment identifier library comprises the segment identifier of the target operator network edge device;
and if so, matching the segment identifier with the preset message format conversion library to obtain a matched message format conversion table, and taking the matched message format conversion table as a target message format conversion table.
3. The communication method of claim 2, wherein converting the first packet into a corresponding second packet according to the destination packet format conversion table comprises:
deleting external IPV6header information of the SRV6 message and/or segment routing header information of the SRV6 message to obtain an IP MPLS intermediate message;
obtaining label information in the target message format conversion table, wherein the label information includes: the external label information represents transmission path information of the second message in the IP MPLS network, and the internal label information represents service type information required by the second message in the IP MPLS network;
and encapsulating the label information in the IP MPLS intermediate message according to the message format of the IP MPLS network to obtain the second message.
4. The communication method according to claim 1, wherein if the first network is an IP MPLS network and the second network is an SRV6 network, the first packet is an IP MPLS packet;
determining a target message format conversion table matched with the first message in a preset message format conversion library comprises:
obtaining the internal label information of the IP MPLS message;
and matching the internal label information with the preset message format conversion library to obtain a matched message format conversion table, and taking the matched message format conversion table as a target message format conversion table.
5. The communication method of claim 4, wherein converting the first packet into a corresponding second packet according to the destination packet format conversion table comprises:
deleting the external label information and the internal label information of the IP MPLS message to obtain an SRV6 intermediate message;
acquiring external IPV6header information in the target message format conversion table and/or segment routing header information in the target message format conversion table;
and encapsulating the external IPV6header information and/or the segment routing header information in the SRV6 intermediate message according to the message format of the SRV6 network to obtain the second message.
6. A communication apparatus between SRV6 network and IP MPLS network, applied to a target operator network edge device, where the target operator network edge device is configured to implement interworking between SRV6 network and IP MPLS network, and the apparatus includes:
a receiving module, configured to receive a first message sent by a first operator network edge device in a first network, where the first network is an SRV6 network or an IP MPLS network;
the determining module is used for determining a target message format conversion table matched with the first message in a preset message format conversion library; each message format conversion table corresponds to a conversion relation of message formats among networks;
and the conversion module is used for converting the first message into a corresponding second message according to the target message format conversion table and sending the second message to a second operator network edge device of a second network, wherein the second network is an SRV6 network or an IP MPLS network, and the second network is different from the first network.
7. The communications apparatus as claimed in claim 6, wherein if the first network is an SRV6 network and the second network is an IP MPLS network, the first packet is an SRV6 packet;
the determining module comprises:
a first obtaining unit, configured to obtain a segment identifier of a destination IP address in external IPV6header information of the SRV6 packet;
a judging unit, configured to judge whether the segment identifier matches a segment identifier in a segment identifier library, where the segment identifier library includes the segment identifier of the target operator network edge device;
and the first matching unit is used for matching the segment identifier with the preset message format conversion base to obtain a matched message format conversion table if the segment identifier is matched with the preset message format conversion base, and taking the matched message format conversion table as a target message format conversion table.
8. The communications apparatus of claim 7, wherein the conversion module comprises:
a first deleting unit, configured to delete external IPV6header information of the SRV6 packet and/or segment routing header information of the SRV6 packet, to obtain an IP MPLS intermediate packet;
a second obtaining unit, configured to obtain tag information in the target packet format conversion table, where the tag information includes: the external label information represents transmission path information of the second message in the IP MPLS network, and the internal label information represents service type information required by the second message in the IP MPLS network;
and the first encapsulating unit is used for encapsulating the label information in the IP MPLS intermediate message according to the message format of the IP MPLS network to obtain the second message.
9. The communications apparatus as claimed in claim 6, wherein if the first network is an IP MPLS network and the second network is an SRV6 network, the first packet is an IP MPLS packet;
the determining module further comprises:
a third obtaining unit, configured to obtain internal label information of the IP MPLS packet;
and the second matching unit is used for matching the internal label information with the preset message format conversion library to obtain a matched message format conversion table, and taking the matched message format conversion table as a target message format conversion table.
10. The communications apparatus of claim 9, wherein the conversion module further comprises:
a second deleting unit, configured to delete the external label information and the internal label information of the IP MPLS packet, to obtain an SRV6 intermediate packet;
a fourth obtaining unit, configured to obtain external IPV6header information in the target packet format conversion table and/or segment routing header information in the target packet format conversion table;
and the second encapsulating unit is used for encapsulating the external IPV6header information and/or the segment routing header information into the SRV6 intermediate message according to the message format of the SRV6 network to obtain the second message.
CN201910546486.1A 2019-06-21 2019-06-21 Communication method and device for SRV6 network and IP MPLS network Active CN110266592B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910546486.1A CN110266592B (en) 2019-06-21 2019-06-21 Communication method and device for SRV6 network and IP MPLS network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910546486.1A CN110266592B (en) 2019-06-21 2019-06-21 Communication method and device for SRV6 network and IP MPLS network

Publications (2)

Publication Number Publication Date
CN110266592A CN110266592A (en) 2019-09-20
CN110266592B true CN110266592B (en) 2021-07-30

Family

ID=67920631

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910546486.1A Active CN110266592B (en) 2019-06-21 2019-06-21 Communication method and device for SRV6 network and IP MPLS network

Country Status (1)

Country Link
CN (1) CN110266592B (en)

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111181852B (en) * 2019-12-30 2021-04-02 清华大学 Sending method, receiving method and device thereof
CN113132226A (en) * 2019-12-30 2021-07-16 华为技术有限公司 Method, device and system for sending message
CN111064664B (en) * 2020-01-03 2022-04-22 苏州盛科通信股份有限公司 IPV6 segmented routing coding method
CN112511483A (en) * 2020-03-02 2021-03-16 中兴通讯股份有限公司 Data forwarding method, equipment and storage medium
CN113630316B (en) * 2020-05-06 2022-12-06 华为技术有限公司 Data transmission method and communication device
CN113852550A (en) * 2020-06-28 2021-12-28 华为技术有限公司 Method, device, network equipment, system and storage medium for sending message
EP4145797A4 (en) * 2020-06-30 2023-06-21 New H3C Technologies Co., Ltd. Fault detection method and apparatus, and pe device
CN114338518A (en) * 2020-09-30 2022-04-12 华为技术有限公司 Route processing method and network equipment
CN114650256A (en) * 2020-12-17 2022-06-21 中兴通讯股份有限公司 Message processing method, node and computer readable storage medium
CN113726653B (en) * 2021-07-12 2023-12-29 新华三信息安全技术有限公司 Message processing method and device
CN113660151B (en) * 2021-08-09 2023-03-14 中国电信股份有限公司 L2VPN cross-service communication method, device, electronic equipment and readable medium
CN116264589A (en) * 2021-12-13 2023-06-16 华为技术有限公司 Message transmission method and device
CN114448881B (en) * 2022-02-25 2023-06-09 烽火通信科技股份有限公司 Method and system for inter-operating communication of cross-SR MPLS and SRV6 domains
CN116743733A (en) * 2022-03-03 2023-09-12 中兴通讯股份有限公司 Message sending method and device, storage medium and electronic device
CN115022121A (en) * 2022-05-31 2022-09-06 中国电信股份有限公司 Message processing method, device, equipment and medium
CN117555957A (en) * 2024-01-12 2024-02-13 中电数据产业有限公司 Automatic adaptation and conversion method and system for API message format

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101114971A (en) * 2006-07-27 2008-01-30 华为技术有限公司 Method for implementing virtual private network based on IPv6 address structure
CN101316260A (en) * 2007-05-30 2008-12-03 华为技术有限公司 Packaging conversion method and packaging conversion equipment
CN102904814A (en) * 2012-10-19 2013-01-30 福建星网锐捷网络有限公司 Data transmission method, source PE (Provider Edge router), object PE and data transmission system
CN109218200A (en) * 2018-11-26 2019-01-15 新华三技术有限公司 A kind of message processing method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8345700B2 (en) * 2009-12-17 2013-01-01 Verizon Patent And Licensing, Inc. Embedding of MPLS labels in IP address fields
US10506083B2 (en) * 2017-06-27 2019-12-10 Cisco Technology, Inc. Segment routing gateway storing segment routing encapsulating header used in encapsulating and forwarding of returned native packet

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101114971A (en) * 2006-07-27 2008-01-30 华为技术有限公司 Method for implementing virtual private network based on IPv6 address structure
CN101316260A (en) * 2007-05-30 2008-12-03 华为技术有限公司 Packaging conversion method and packaging conversion equipment
CN102904814A (en) * 2012-10-19 2013-01-30 福建星网锐捷网络有限公司 Data transmission method, source PE (Provider Edge router), object PE and data transmission system
CN109218200A (en) * 2018-11-26 2019-01-15 新华三技术有限公司 A kind of message processing method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
SRv6 and MPLS interworking;S .Agrawal等;《IETF》;20181022;全文 *

Also Published As

Publication number Publication date
CN110266592A (en) 2019-09-20

Similar Documents

Publication Publication Date Title
CN110266592B (en) Communication method and device for SRV6 network and IP MPLS network
CN107872542B (en) Data transmission method and network equipment
EP3782336B1 (en) Multi-vrf universal device internet protocol address for fabric edge devices
US10454880B2 (en) IP packet processing method and apparatus, and network system
CN112039920B (en) Communication method, communication device, electronic device and storage medium
EP1811728B1 (en) Method, system and device of traffic management in a multi-protocol label switching network
WO2008092357A1 (en) A method and device for establishing a pseudo wire tunnel and transmitting message using it
EP2916491A1 (en) Tunnelling time-critical messages between substations over WAN
WO2012155867A1 (en) Packet sending method and access controller
JP5679343B2 (en) Cloud system, gateway device, communication control method, and communication control program
EP2822238B1 (en) Method and device for establishing a pseudo wire
CN103795630A (en) Message transmitting method and device of label switching network
CN112422397B (en) Service forwarding method and communication device
KR20220160639A (en) Message interaction methods, devices, facilities and storage media
US20190007368A1 (en) DHCP in Layer-3 Overlay with Anycast Address Support and Network Address Transparency
CN110677337B (en) Data forwarding method and device, network equipment and computer readable storage medium
EP3836495B1 (en) Communication method and communication device
US7835388B2 (en) Communication method for interworking of local heterogeneous link layer protocols and apparatus thereof
CN115002029B (en) Traffic forwarding method, device, equipment and storage medium
CN100479457C (en) Implementation method for transferring data in virtual private network
CN106656786B (en) Flow protection method and device
WO2023029750A1 (en) Mac learning method and apparatus, electronic device, and storage medium
WO2024139367A1 (en) Virtual private local area network service (vpls) message forwarding method and apparatus
CN114039814B (en) Message forwarding method and device, electronic equipment and storage medium
CN114006860B (en) User access method, system 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