CN110266594B - Cross-network-slice segmented routing forwarding method and device - Google Patents
Cross-network-slice segmented routing forwarding method and device Download PDFInfo
- Publication number
- CN110266594B CN110266594B CN201910582549.9A CN201910582549A CN110266594B CN 110266594 B CN110266594 B CN 110266594B CN 201910582549 A CN201910582549 A CN 201910582549A CN 110266594 B CN110266594 B CN 110266594B
- Authority
- CN
- China
- Prior art keywords
- network slice
- message
- srh
- endpoint
- identifier
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/20—Hop count for routing purposes, e.g. TTL
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/74—Address processing for routing
- H04L45/741—Routing in networks with a plurality of addressing schemes, e.g. with both IPv4 and IPv6
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/74—Address processing for routing
- H04L45/745—Address table lookup; Address filtering
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 method and a device for forwarding a segmented route of a cross-network slice, which relate to the technical field of communication, and the method comprises the following steps: obtaining a message to be transmitted, and determining that the message is forwarded between network slices at a local node; if the SRH in the message meets the preset condition, searching a network slice identifier corresponding to the parameters of the endpoint function in the message in a local network slice identifier mapping table; obtaining an effective segment identifier eSID of a next network slice in the SRH; updating the destination IP address of the message based on the network slice identifier and the eSIM to obtain an updated message; and searching the updated message to an outlet of the next hop according to the endpoint function so as to realize the cross-network forwarding of the updated message in the local network slice. The invention uses the network slice represented by the network slice identifier to forward the message from the previous network slice to the next network slice, thereby realizing the transmission of the message across the network slices and realizing the service intercommunication of different network slices.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for forwarding a segment route across network slices.
Background
SR (Segment Routing) technology is a new technology and a new standard discussed by IETF standardization organization, and most of the standards are still in draft stage at present. The SR is a source routing technology, path information is displayed in a message header, and each node only needs to determine the next operation according to the indication of the message header. The SR is further classified into SR MPLS and SRv6 according to different underlying forwarding technologies. SRv6 is a source Routing technology carrying SL (Segment list) by SRH (Segment Routing Header) extension Header, each Segment is marked by a 128-bit IPv6 address, and the message forwarding depends on IP address coding information. In an IPv6 router, the Segment list can only be represented by SID (Segment Identifier) in the form of IPv6 address, otherwise forwarding is not possible.
Patent 201811528314.3 redefines the SID encoding mode defined by the IETF organization as: network slice identification, Network, node identification locator, function identification, and parameter identification. The SID part including only the node identifier locator, the function identifier function and the parameter identifier is called eSID, and is stored in the SID list of the SRH header, and the content representing the network slice identifier part only exists in the destination IP address, so that the function defined by the IETF draft-IETF-spring-srv6-network-programming-00 standard is used, and the function does not have any information of the network slice, and therefore the function can be forwarded in only one network slice, thereby isolating different network slices, and making the services of different network slices incapable of intercommunication, and even impossible to realize cross-network slice transmission through cross-gateway nodes.
Disclosure of Invention
The invention aims to provide a method and a device for forwarding a segmented route of cross-network slices, which are used for realizing the transmission of messages across the network slices and further realizing the service intercommunication of different network slices.
The invention provides a segmented routing forwarding method for cross-network slicing, which comprises the following steps:
obtaining a message to be transmitted, and determining that the message is forwarded between network slices at a local node; wherein each port of the local node belongs to a different network slice;
if the SRH in the message meets the preset condition, searching a network slice identifier corresponding to the parameters of the endpoint function in the message in a local network slice identifier mapping table; the preset conditions comprise that the code in an NH domain is SRH and the number of the segment lists in the SRH reaches the specified number;
obtaining an effective segment identifier eSID of a next network slice in the SRH;
updating the destination IP address of the message based on the network slice identifier and the eSIM to obtain an updated message;
and searching the updated message to an outlet of a next hop according to the endpoint function so as to realize cross-network forwarding of the updated message in a local network slice.
Further, the endpoint functionality includes: a first endpoint function, named end.n, the parameters comprising: network slice indexing, wherein if the segment routing header SRH in the message satisfies a preset condition, searching a local network slice identifier mapping table for a network slice identifier corresponding to a parameter of an endpoint function in the message includes:
acquiring a first endpoint function end.N predefined in the message;
and if the SRH meets the preset condition that the code in the NH domain is SRH and the number of the segmentation lists in the SRH is more than 0, searching a network slice identifier corresponding to the network slice index contained in the parameter of the first endpoint function end.N in a mapping table of the local network slice index and the network slice identifier.
Further, the endpoint functionality includes: a first endpoint function end.n, the parameters comprising: the network slice indexing, which searches for the updated packet to go to the next hop exit according to the endpoint function, so that the forwarding of the updated packet across the network in the local network slice includes:
and searching the updated message in a routing table by using the updated destination IP address to go to an outlet of a next hop according to the first endpoint function end.N, so that the updated message realizes cross-network forwarding in a local network slice.
Further, the endpoint functionality includes: a second endpoint function, named end. If the segment routing header SRH in the message satisfies a preset condition, finding a network slice identifier corresponding to a parameter of an endpoint function in the message in a local network slice identifier mapping table includes:
acquiring a predefined second endpoint function end.NX in the message;
and if the SRH meets the preset condition that the code in the NH domain is SRH and the number of the segment lists in the SRH is more than 0, searching a network slice identifier corresponding to the adjacent identifier contained in the parameter of the second endpoint function end.
Further, the endpoint functionality includes: nx, the parameters comprising: the step of searching for the updated message to an exit of a next hop according to the endpoint function so that the updated message is forwarded across networks in a local network slice includes:
and searching the updated message in an adjacent identifier interface table by using the adjacent identifier according to the second endpoint function end.
Further, the endpoint functionality includes: nt, said parameters including: designating a lookup table identifier, and if the segment routing header SRH in the message satisfies a preset condition, finding a network slice identifier corresponding to a parameter of an endpoint function in the message in a local network slice identifier mapping table includes:
acquiring a predefined third endpoint function end.NT in the message;
and if the SRH meets the preset condition that the code in the NH domain is SRH and the number of the segment lists in the SRH is more than 0, searching a network slice identifier corresponding to the specified lookup table identifier contained in the parameter of the third endpoint function end.NT in a local specified lookup table identifier and network slice identifier mapping table.
Further, the endpoint functionality includes: nt, said parameters comprising: specifying a lookup table identifier, and looking up the updated packet to an exit of a next hop according to the endpoint function, so that the forwarding of the updated packet across networks in a local network slice includes:
and according to the third end point function end.NT, searching the updated message in a specified lookup table by using the specified lookup table identifier to go to the exit of the next hop so as to realize the cross-network forwarding of the updated message in the local network slice.
Further, the method further comprises:
defining a function end.Net;
combining the function end.Net and an endpoint function End defined by a standard to complete the first endpoint function end.N;
combining the function end.Net and an endpoint function end.X defined by a standard to complete the second endpoint function end.NX;
and combining the function end.Net and an end function end.T defined by the standard to complete the third end function end.NT.
The invention provides a segmented routing forwarding device across network slices, which comprises:
the determining module is used for acquiring the message to be transmitted and determining that the message is forwarded between network slices at a local node; wherein each port of the local node belongs to a different network slice;
a first searching module, configured to search, if a segment routing header SRH in the message meets a preset condition, a network slice identifier corresponding to a parameter of an endpoint function in the message in a local network slice identifier mapping table; the preset conditions comprise that the code in an NH domain is SRH and the number of the segment lists in the SRH reaches the specified number;
an obtaining module, configured to obtain an effective segment identifier eSID of a next network slice in the SRH;
the updating module is used for updating the destination IP address of the message based on the network slice identifier and the eSIM to obtain an updated message;
and the second searching module is used for searching the updated message for an outlet of a next hop according to the endpoint function so as to realize cross-network forwarding of the updated message in a local network slice.
The invention also provides an electronic device, which comprises a memory and a processor, wherein the memory stores a computer program capable of running on the processor, and the processor executes the computer program to realize the method of the invention.
The invention provides a method and a device for forwarding a segmented route of a cross-network slice, wherein the method comprises the following steps: obtaining a message to be transmitted, and determining that the message is forwarded between network slices at a local node; if the SRH in the message meets the preset condition, searching a network slice identifier corresponding to the parameters of the endpoint function in the message in a local network slice identifier mapping table; the preset conditions comprise that the code in the NH domain is SRH and the number of the segmented lists in the SRH reaches the specified number; obtaining an effective segment identifier eSID of a next network slice in the SRH; updating the destination IP address of the message based on the network slice identifier and the eSIM to obtain an updated message; and searching the updated message to an outlet of the next hop according to the endpoint function so as to realize the cross-network forwarding of the updated message in the local network slice. The invention uses the network slice represented by the network slice identifier to forward the message from the previous network slice to the next network slice, thereby realizing the transmission of the message across the network slices and realizing the service intercommunication of different network slices.
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 flowchart of a method for forwarding a segment route across network slices according to an embodiment of the present invention;
FIG. 2 is a flowchart of step S102 in FIG. 1;
FIG. 3 is another flowchart of step S102 in FIG. 1;
FIG. 4 is another flowchart of step S102 in FIG. 1;
fig. 5 is a structural diagram of a segment routing forwarding apparatus across network slices according to an embodiment of the present invention.
Icon:
11-a determination module; 12-a first lookup module; 13-an acquisition module; 14-an update module; 15-second lookup module.
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:
referring to fig. 1, an embodiment of the present invention provides a method for forwarding a segment route across a network slice, where the method includes:
step S101, obtaining a message to be transmitted, and determining that the message is forwarded between network slices at a local node; wherein, each port of the local node belongs to different network slices;
step S102, if the segment routing header SRH in the message meets the preset condition, searching a network segment identifier corresponding to the parameters of the endpoint function in the message in a local network segment identifier mapping table; the preset conditions comprise that the code in the NH domain is SRH and the number of the segmented lists in the SRH reaches the specified number;
step S103, obtaining an effective segment identifier eSID of the next network slice in the SRH;
step S104, updating the destination IP address of the message based on the network slice identifier and the eSIM to obtain an updated message;
and step S105, searching the updated message to an outlet of the next hop according to the endpoint function, so that the updated message can be forwarded across the network in the local network slice.
In the embodiment of the invention, the network is sliced, and the network slice identifiers are in one-to-one correspondence with the network slices. Although the message may mostly be transmitted within a slice, the possibility of transmission across network slices at certain routing nodes is not excluded.
The endpoint functions include a first endpoint function, a second endpoint function, and a third endpoint function, the first endpoint function may refer to a defined function end.n, the second endpoint function may refer to a defined function end.nx, and the third endpoint function may refer to a defined function end.nt, and in general, the function end.n, the function end.nx, and the function end.nt are all endpoint functions across network slices, and the following functions are described in detail:
the first endpoint function end.n corresponds to a standard document under the IETF standard organization, and is named END in IETF draft-IETF-spring-srv 6-network-programming-00. The first endpoint function end.n is configured to carry a network slice index of a next network slice, and search a local network slice index and network slice identifier mapping table for a network slice identifier corresponding to the network slice index included in the parameter of the first endpoint function end.n. When a message is forwarded across network slices, the network slice identifier in a destination IP address field needs to be refreshed by using the network slice identifier, then the next-hop eSID in the SRH is taken out to refresh the eSID part in the destination IP address, and the updated message is searched in a routing table by using the updated destination IP address and is sent to an outlet of the next hop.
The second endpoint function end.nx corresponds to a standard document under the IETF standard organization, and is named end.x in draft-IETF-spring-srv 6-network-programming-00. Nx is used to carry the adjacency identification of the next network slice, and to obtain the network slice identifier of the next network slice from the local network slice index and network slice identifier mapping table. When forwarding a message across network slices, the network slice identifier in the destination IP address field needs to be refreshed by using the network slice identifier, then the next-hop eSID in the SRH is taken out to refresh the eSID in the destination IP address, and the updated message is searched in the adjacent identification interface table by using the adjacent identification to go to the exit of the next hop.
The third endpoint function end.NT corresponds to a standard document under the IETF standard organization, and is named as end.T in IETF draft-IETF-spring-srv 6-network-programming-00. And the parameter of the third endpoint function end.nt is used for carrying the specified lookup table identifier of the next network slice, and searching the network slice identifier of the next network slice in the local specified lookup table identifier and network slice identifier mapping table. When a message is forwarded across network slices, the network slice identifier in the destination IP address field needs to be refreshed by using the network slice identifier, then the next-hop eSID in the SRH is taken out to refresh the eSID in the destination IP address, and the updated message is searched in the specified lookup table by using the specified lookup table identifier and is sent to the exit of the next hop.
In view of the number of types of definitions of the current standard (about 20 types), and considering the future application extension, there are 256 functions of 8bits, and the optional definitions 252, 253, and 254 of the embodiment of the present invention correspond to end.n, end.nx, and end.nt, respectively. For compliance with IETF standard recommendations, it may be optionally defined in the 49152-. The specific value is not specified here, but is configured by the network operator.
Further, the endpoint functions include: a first endpoint function end.n, the parameters comprising: the network slice index, referring to fig. 2, step S102, may include the following steps:
step S201, a first endpoint function end.N defined in the message in advance is obtained;
step S202, if the SRH satisfies the condition that the code in the NH domain is SRH and the number of segment lists in the SRH is greater than 0, then a network slice identifier corresponding to the network slice index included in the parameter of the first endpoint function end.n is searched in the local network slice index and network slice identifier mapping table.
Further, the endpoint functions include: a first endpoint function end.n, the parameters comprising: the network slice index, step S105, may include the steps of: and searching the updated message in the routing table by using the updated destination IP address according to the first endpoint function to be sent to the next hop outlet, so that the updated message can be forwarded across the network in the local network slice.
In the embodiment of the present invention, the parameter of the first endpoint function end.n is a network slice index, and a plurality of ports of the routing node supporting the first endpoint function end.n may belong to different network slices, where the ports correspond to the network slices one to one. For example, the following steps are carried out: if the routing node X has three ports, the message may be transmitted under which network slice according to the specific port selection. In practical application, if a routing node X receives a message and the eSID field of a network slice carried in the SRH of the message is the eSID of the routing node X, the routing node X operates as follows:
if NH is SRH and SL is >0, then searching for a network slice identifier corresponding to a network slice index included in a parameter of the first endpoint function end.n;
updating the eSIM of the next network slice according to the first endpoint function end.N;
updating the eSI field of the original network slice of the message by adopting the updated network slice identifier and the updated eSI of the next network slice, and SL-1;
when the SRH in the message does not satisfy the preset condition, that is, when NH ═ SRH and SL >0 are not satisfied at the same time, the message is discarded.
Further, the endpoint functions include: nx, the parameters include: adjacency identification, referring to fig. 3, step S102 may include the steps of:
step S301, a second endpoint function end.NX predefined in the message is obtained;
step S302, if the SRH satisfies the condition that the code in the NH domain is SRH and the number of segment lists in the SRH is greater than 0, then a network slice identifier corresponding to the neighbor identifier included in the parameter of the second endpoint function end.
Further, the endpoint functions include: nx, the parameters include: the adjacency identification, step S105 may include the steps of: and searching the updated message in the adjacent mark interface table by using the adjacent mark to go to the exit of the next hop according to the second endpoint function end.
In the embodiment of the present invention, the parameter of the second endpoint function end.nx is an adjacency identifier, and a plurality of ports of the routing node supporting the second endpoint function end.nx belong to different network slices, where the ports correspond to the network slices one to one. For example, the following steps are carried out: if the routing node X has three ports, the message may select which network slice to transmit according to the specific port. In practical application, if a routing node X receives a message and the eSID field of a network slice carried in the SRH of the message is the eSID of the routing node X, the routing node X operates as follows:
if NH is SRH and SL is >0, then searching for an adjacency identifier corresponding to a network slice index included in the parameter of the second endpoint function end.
The eSIM of the next network slice is updated according to a second endpoint function end.NX;
updating the eSI field of the original network slice of the message by adopting the updated network slice identifier and the updated eSI of the next network slice, and SL-1;
when the SRH in the message does not satisfy the preset condition, that is, when NH ═ SRH and SL >0 are not satisfied at the same time, the message is discarded.
Further, the endpoint functions include: nt, parameters include: specifying the look-up table identity, referring to fig. 4, step S102 may comprise the steps of:
step S401, a third endpoint function end.NT predefined in the message is obtained;
step S402, if the SRH satisfies the preset condition that the code in the NH domain is SRH and the number of segment lists in the SRH is greater than 0, then the network slice identifier corresponding to the specified lookup table identifier included in the parameter of the third endpoint function end.nt is searched in the local specified lookup table identifier and network slice identifier mapping table.
Further, the endpoint functions include: nt, parameters include: specifying the look-up table identification, step S105 may comprise the steps of: and according to the third end point function end.NT, searching the updated message in the appointed lookup table by utilizing the appointed lookup table identifier to go to the exit of the next hop, so that the updated message realizes the cross-network forwarding in the local network slice.
In this embodiment of the present invention, the parameter of the third end point function end.nt is a specified lookup table identifier, and a plurality of ports of the routing node supporting the third end point function end.nt belong to different network slices, where the ports correspond to the network slices one to one. For example, the following steps are carried out: if the routing node X has three ports, the message may select which network slice to transmit according to the specific port. In practical application, if a routing node X receives a message and the eSID field of a network slice carried in the SRH of the message is the eSID of the routing node X, the routing node X operates as follows:
if NH is SRH and SL is greater than 0, searching a specified lookup table identifier corresponding to a network slice index contained in the parameter of the third endpoint function end.NT;
updating the eSIM of the next network slice according to the third endpoint function end.NT;
updating the eSID field of the original network slice of the message by adopting the updated network slice identifier and the updated SID of the next network slice, and SL-1;
when the SRH in the message does not satisfy the preset condition, that is, when NH ═ SRH and SL >0 are not satisfied at the same time, the message is discarded.
In practical applications, the function of cross-network slice transmission may be implemented with two layers of SIDs instead. A function may be defined first: and the routing node receiving the indication of the function end.net needs to replace the network slice identifier carried in the message with the updated network slice identifier. A routing node of a network slice needs to process two layers of esids once to completely obtain all operation instructions. When a routing node encapsulates a message, if a certain remote routing node X needs to cross a slice network, two layers of SL for operation encapsulation of the routing node are needed to be stored in an SRH: one of the layers is end.net, the other layer is a standard document under the IETF standard organization, and the name is End/end.x/end.t defined by draft-IETF-spring-srv 6-network-programming-00. Specifically, the first endpoint function end.n may be implemented using the function end.net and a standard defined endpoint function End. The second endpoint function end.nx may be implemented with the function end.net and the standard defined endpoint function end.x. The previously described third end-point function end.nt can be implemented with the function end.net and the standard defined end-point function end.t.
Further, the method further comprises: defining a function end.Net; combining the function end.Net and an endpoint function End defined by a standard to complete a first endpoint function end.N; combining the function end.Net and an end function end.X defined by the standard to complete a second end function end.NX; and combining the function end.Net and the standard defined end function end.T to complete the third end function end.NT.
In an embodiment of the invention, the parameters of the function end.net are simply the index of the next network slice. The next network slice identifier to be forwarded can be found through the parameter; updating the network identifier field of the destination IP address based on the next network slice identifier; and then the table look-up forwarding in different modes is realized by combining the function End, end.X or end.T defined by the next layer of standard. And updates the eSID field of the destination IP address according to the eSID of the next lower layer.
If the routing node X receives a message, the eSID field of the network slice is the eSID of the routing node X, and the routing node X performs the following operations:
if NH is SRH and SL is greater than 2, searching for a network slice identifier corresponding to a network index included in a parameter of the function end.net;
network updates the network identification in the eSIM of the next network slice according to the function end.Net;
SL-1 takes out eSID in SRH, which may be one of End/end.X/end.T, and operates according to standard defined method. Taking out the eSID of SL-2 to refresh the eSID field of the next network slice, and carrying out SL-2 refreshing on the SL field in the SRH;
when the SRH in the message does not satisfy the preset condition, that is, when NH ═ SRH and SL >2 are not satisfied at the same time, the message is discarded.
The invention provides a method and a device for forwarding a segmented route of a cross-network slice, which relate to the technical field of communication, and the method comprises the following steps: obtaining a message to be transmitted, and determining that the message is forwarded between network slices at a local node; if the SRH in the message meets the preset condition, searching a network slice identifier corresponding to the parameters of the endpoint function in the message in a local network slice identifier mapping table; obtaining an effective segment identifier eSID of a next network slice in the SRH; updating the destination IP address of the message based on the network slice identifier and the eSIM to obtain an updated message; and searching the updated message to an outlet of the next hop according to the endpoint function so as to realize the cross-network forwarding of the updated message in the local network slice. The invention determines the next network slice through the segment routing path information of the message, determines the next network slice through which the next network slice is reached through the network slice identifier, the network slice corresponding to the network slice identifier is divided by the physical network in advance, and the network slice identifier is displayed in the segment identifier SID, therefore, the segment routing header SRH only needs to carry the information of the network slice, the information distribution can greatly save the expense of the message, the message passes through two routing nodes in the transmission process, the invention utilizes the network slice represented by the network slice identifier to forward the message from the previous network slice to the next network slice, realizes the transmission of the message across the network slices, and realizes the service intercommunication of different network slices.
Example two:
as shown in fig. 5, an embodiment of the present invention provides a segment routing and forwarding apparatus across a network slice, where the apparatus may include the following modules:
the determining module 11 is configured to obtain a packet to be transmitted, and determine that the packet is forwarded between network slices at a local node; wherein, each port of the local node belongs to different network slices;
a first searching module 12, configured to search, if a segment routing header SRH in a message meets a preset condition, a network slice identifier corresponding to a parameter of an endpoint function in the message in a local network slice identifier mapping table; the preset conditions comprise that the code in the NH domain is SRH and the number of the segmented lists in the SRH reaches the specified number;
an obtaining module 13, configured to obtain an effective segment identifier eSID of a next network slice in the SRH;
an update module 14, configured to update a destination IP address of the packet based on the network slice identifier and the eSID, to obtain an updated packet;
and the second searching module 15 is configured to search, according to the endpoint function, for an updated packet to go to an exit of a next hop, so that the updated packet is forwarded across networks in a local network slice.
The endpoint functionality includes: a first endpoint function end.n, the parameters comprising: the first lookup module 12 may include the following elements:
a first obtaining unit, configured to obtain a first endpoint function end.n predefined in the packet;
a first searching unit, configured to search, in a local network slice index and network slice identifier mapping table, a network slice identifier corresponding to a network slice index included in a parameter of the first endpoint function end.n if the SRH satisfies a condition that an encoding in an NH domain is an SRH and a preset condition that the number of segment lists in the SRH is greater than 0.
The endpoint functionality includes: a first endpoint function end.n, the parameters comprising: the network slice index, the second lookup module 15 includes:
and a second searching unit, configured to search, according to the first endpoint function end.n, the updated destination IP address in a routing table for the updated packet to go to an exit of a next hop, so that the updated packet is forwarded across networks in a local network slice.
The endpoint functionality includes: nx, the parameters comprising: the adjacency identification, the first lookup module 12 may include the following units:
a second obtaining unit, configured to obtain a second endpoint function end.nx predefined in the packet;
a third searching unit, configured to search, if the SRH satisfies that the code in the NH domain is an SRH and satisfies a preset condition that the number of segment lists in the SRH is greater than 0, a network slice identifier corresponding to an adjacency identifier included in a parameter of the second endpoint function end.
The endpoint functionality includes: nx, the parameters comprising: the adjacency identification, the second lookup module 15 includes:
and a fourth searching unit, configured to search, according to the second endpoint function end.nx, the updated packet in an adjacent identifier interface table by using the adjacent identifier to go to an exit of a next hop, so that the updated packet is forwarded across networks in a local network slice.
The endpoint functionality includes: nt, said parameters including: specifying the look-up table identity, the first look-up module 12 may comprise the following elements:
a third obtaining unit, configured to obtain a third endpoint function end.nt predefined in the packet;
a fifth searching unit, configured to search, in a local mapping table of specified lookup table identifiers and network slice identifiers, a network slice identifier corresponding to the specified lookup table identifier included in the parameter of the third endpoint function end.nt if the SRH satisfies that the code in the NH domain is an SRH and satisfies a preset condition that the number of segment lists in the SRH is greater than 0.
The endpoint functionality includes: nt, said parameters including: specifying the look-up table identity, the second look-up module 15 comprises:
and a sixth searching unit, configured to search, according to the third endpoint function end.nt, the updated packet in a designated lookup table by using the designated lookup table identifier to go to an exit of a next hop, so that the updated packet is forwarded across networks in a local network slice.
The device also comprises the following modules:
the definition module is used for defining a function end.Net;
a first completion module, configured to complete the first endpoint function end.n by combining the function end.net and an endpoint function End defined by a standard;
a second completion module, configured to complete the second endpoint function end.nx in combination with the function end.net and an endpoint function end.x defined by a standard;
and the third completion module is used for combining the function end.Net and an endpoint function end.T defined by the standard to complete the third endpoint function end.NT.
In another embodiment of the present invention, an electronic device is further provided, which includes a memory and a processor, where the memory stores a computer program executable on the processor, and the processor implements the steps of the method of the above method embodiment when executing the computer program.
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 method for segmented routing forwarding across network slices, comprising:
obtaining a message to be transmitted, and determining that the message is forwarded between network slices at a local node; wherein each port of the local node belongs to a different network slice;
if the SRH in the message meets the preset condition, searching a network slice identifier corresponding to the parameters of the endpoint function in the message in a local network slice identifier mapping table; the preset conditions comprise that the code in an NH domain is SRH and the number of the segment lists in the SRH reaches the specified number;
obtaining an effective segment identifier eSID of a next network slice in the SRH;
updating the destination IP address of the message based on the network slice identifier and the eSIM to obtain an updated message;
and searching the updated message to an outlet of a next hop according to the endpoint function so as to realize cross-network forwarding of the updated message in a local network slice.
2. The method of claim 1, wherein the endpoint functionality comprises: a first endpoint function, named end.n, the parameters comprising: network slice indexing, wherein if the segment routing header SRH in the message satisfies a preset condition, searching a local network slice identifier mapping table for a network slice identifier corresponding to a parameter of an endpoint function in the message includes:
acquiring a first endpoint function end.N predefined in the message;
and if the SRH meets the preset condition that the code in the NH domain is SRH and the number of the segmentation lists in the SRH is more than 0, searching a network slice identifier corresponding to the network slice index contained in the parameter of the first endpoint function end.N in a mapping table of the local network slice index and the network slice identifier.
3. The method of claim 2, wherein the endpoint functionality comprises: a first endpoint function end.n, the parameters comprising: the network slice indexing, which searches for the updated packet to go to the next hop exit according to the endpoint function, so that the forwarding of the updated packet across the network in the local network slice includes:
and searching the updated message in a routing table by using the updated destination IP address to go to an outlet of a next hop according to the first endpoint function end.N, so that the updated message realizes cross-network forwarding in a local network slice.
4. The method of claim 1, wherein the endpoint functionality comprises: a second endpoint function, named end. If the segment routing header SRH in the message satisfies a preset condition, finding a network slice identifier corresponding to a parameter of an endpoint function in the message in a local network slice identifier mapping table includes:
acquiring a predefined second endpoint function end.NX in the message;
and if the SRH meets the preset condition that the code in the NH domain is SRH and the number of the segment lists in the SRH is more than 0, searching a network slice identifier corresponding to the adjacent identifier contained in the parameter of the second endpoint function end.
5. The method of claim 4, wherein the endpoint functionality comprises: nx, the parameters comprising: the step of searching for the updated message to an exit of a next hop according to the endpoint function so that the updated message is forwarded across networks in a local network slice includes:
and searching the updated message in an adjacent identifier interface table by using the adjacent identifier according to the second endpoint function end.
6. The method of claim 1, wherein the endpoint functionality comprises: nt, said parameters including: designating a lookup table identifier, and if the segment routing header SRH in the message satisfies a preset condition, finding a network slice identifier corresponding to a parameter of an endpoint function in the message in a local network slice identifier mapping table includes:
acquiring a predefined third endpoint function end.NT in the message;
and if the SRH meets the preset condition that the code in the NH domain is SRH and the number of the segment lists in the SRH is more than 0, searching a network slice identifier corresponding to the specified lookup table identifier contained in the parameter of the third endpoint function end.NT in a local specified lookup table identifier and network slice identifier mapping table.
7. The method of claim 6, wherein the endpoint functionality comprises: nt, said parameters comprising: specifying a lookup table identifier, and looking up the updated packet to an exit of a next hop according to the endpoint function, so that the forwarding of the updated packet across networks in a local network slice includes:
and according to the third end point function end.NT, searching the updated message in a specified lookup table by using the specified lookup table identifier to go to the exit of the next hop so as to realize the cross-network forwarding of the updated message in the local network slice.
8. The method of claim 1, further comprising:
defining a function end.Net;
combining the function end.Net and an endpoint function End defined by a standard to complete a first endpoint function end.N;
combining the function end.Net and an endpoint function end.X defined by a standard to complete a second endpoint function end.NX;
and combining the function end.Net and an end function end.T defined by the standard to complete a third end function end.NT.
9. A segmented routing forwarding device across a network slice, comprising:
the determining module is used for acquiring the message to be transmitted and determining that the message is forwarded between network slices at a local node; wherein each port of the local node belongs to a different network slice;
a first searching module, configured to search, if a segment routing header SRH in the message meets a preset condition, a network slice identifier corresponding to a parameter of an endpoint function in the message in a local network slice identifier mapping table; the preset conditions comprise that the code in an NH domain is SRH and the number of the segment lists in the SRH reaches the specified number;
an obtaining module, configured to obtain an effective segment identifier eSID of a next network slice in the SRH;
the updating module is used for updating the destination IP address of the message based on the network slice identifier and the eSIM to obtain an updated message;
and the second searching module is used for searching the updated message for an outlet of a next hop according to the endpoint function so as to realize cross-network forwarding of the updated message in a local network slice.
10. An electronic device comprising a memory and a processor, wherein the memory stores a computer program operable on the processor, and wherein the processor implements the steps of the method according to any of the preceding claims 1 to 8 when executing the computer program.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910582549.9A CN110266594B (en) | 2019-06-28 | 2019-06-28 | Cross-network-slice segmented routing forwarding method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910582549.9A CN110266594B (en) | 2019-06-28 | 2019-06-28 | Cross-network-slice segmented routing forwarding method and device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN110266594A CN110266594A (en) | 2019-09-20 |
| CN110266594B true CN110266594B (en) | 2021-07-30 |
Family
ID=67923400
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201910582549.9A Active CN110266594B (en) | 2019-06-28 | 2019-06-28 | Cross-network-slice segmented routing forwarding method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN110266594B (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20230370375A1 (en) * | 2020-09-24 | 2023-11-16 | Zte Corporation | Data processing method and system, encapsulation node, and de-encapsulation node |
Families Citing this family (25)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110891022B (en) * | 2019-11-20 | 2021-11-16 | Ut斯达康通讯有限公司 | SRv 6-based virtual subnet identifier publishing method and device |
| CN112910774B (en) * | 2019-12-03 | 2022-11-04 | 中国电信股份有限公司 | Communication method, system and network forwarding equipment |
| CN110958181B (en) * | 2019-12-06 | 2021-08-17 | Ut斯达康通讯有限公司 | Method and device for distributing SRv 6-crossing slicing network by ISIS protocol |
| CN113055202A (en) * | 2019-12-26 | 2021-06-29 | 华为技术有限公司 | Method, device and system for transmitting data message |
| CN111064664B (en) * | 2020-01-03 | 2022-04-22 | 苏州盛科通信股份有限公司 | IPV6 segmented routing coding method |
| US11252101B1 (en) * | 2020-02-06 | 2022-02-15 | Arrcus Inc. | SID allocation |
| CN113259238B (en) * | 2020-02-07 | 2022-10-21 | 中国移动通信有限公司研究院 | Method and device for processing segment identifiers |
| CN111314219B (en) * | 2020-02-24 | 2022-12-09 | 苏州盛科通信股份有限公司 | Efficient forwarding method and device for IPv6 segmented routing |
| CN113497760B (en) * | 2020-04-07 | 2024-05-07 | 中兴通讯股份有限公司 | Segment routing header compression method, service processing method and device |
| CN114157600A (en) * | 2020-09-07 | 2022-03-08 | 华为技术有限公司 | Method, equipment and system for forwarding message |
| CN114567544A (en) * | 2020-11-27 | 2022-05-31 | 华为技术有限公司 | Route notification method, device and system |
| CN115004656B (en) * | 2020-11-27 | 2023-09-01 | 华为技术有限公司 | A message sending method, device and system |
| WO2022110535A1 (en) * | 2020-11-27 | 2022-06-02 | 华为技术有限公司 | Packet sending method, device, and system |
| CN112995030A (en) * | 2021-02-07 | 2021-06-18 | 中兴通讯股份有限公司 | Business processing method and device, storage medium and electronic device |
| CN114915584A (en) * | 2021-02-10 | 2022-08-16 | 华为技术有限公司 | Message forwarding method, device and system |
| CN113364677B (en) * | 2021-06-07 | 2022-06-07 | 北京工业大学 | An SRv6 Endpoint Fault Protection Method |
| CN113411258B (en) * | 2021-06-07 | 2024-03-12 | 新华三技术有限公司 | Message processing method and device |
| CN115865769A (en) * | 2021-09-23 | 2023-03-28 | 华为技术有限公司 | Message processing method, network equipment and system |
| CN117280671A (en) * | 2021-09-30 | 2023-12-22 | 新华三技术有限公司 | Message processing method, device, network equipment and medium |
| CN117176632A (en) * | 2022-05-28 | 2023-12-05 | 华为技术有限公司 | Message receiving method, message sending method, message forwarding device and message forwarding system |
| CN117255034A (en) * | 2022-06-10 | 2023-12-19 | 中兴通讯股份有限公司 | Slice information verification method and device |
| CN117377015A (en) * | 2022-06-30 | 2024-01-09 | 中国移动通信有限公司研究院 | Message transmission methods, devices, related equipment and storage media |
| CN115567434B (en) * | 2022-09-29 | 2024-07-23 | 新华三信息技术有限公司 | Data message forwarding method, device and routing equipment |
| CN119011337A (en) * | 2023-05-19 | 2024-11-22 | 华为技术有限公司 | Message forwarding method, device and system |
| CN119922120B (en) * | 2025-01-17 | 2025-11-18 | 迈普通信技术股份有限公司 | Message hardware forwarding method and network equipment |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107580360A (en) * | 2016-07-04 | 2018-01-12 | 中国移动通信有限公司研究院 | Method, device and network architecture for network slice selection |
| US10129894B2 (en) * | 2016-03-04 | 2018-11-13 | Huawei Technologies Co., Ltd. | Systems and methods for performing traffic engineering through network slices |
| US10235226B1 (en) * | 2018-07-24 | 2019-03-19 | Cisco Technology, Inc. | System and method for message management across a network |
| CN109787849A (en) * | 2017-11-10 | 2019-05-21 | 中国信息通信研究院 | A kind of OLT logical network test method |
| CN109803336A (en) * | 2017-11-17 | 2019-05-24 | 华为技术有限公司 | Session establishment method and device |
| CN109842507A (en) * | 2017-11-27 | 2019-06-04 | 华为技术有限公司 | A kind of network slice management method and equipment |
-
2019
- 2019-06-28 CN CN201910582549.9A patent/CN110266594B/en active Active
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US10129894B2 (en) * | 2016-03-04 | 2018-11-13 | Huawei Technologies Co., Ltd. | Systems and methods for performing traffic engineering through network slices |
| CN107580360A (en) * | 2016-07-04 | 2018-01-12 | 中国移动通信有限公司研究院 | Method, device and network architecture for network slice selection |
| CN109787849A (en) * | 2017-11-10 | 2019-05-21 | 中国信息通信研究院 | A kind of OLT logical network test method |
| CN109803336A (en) * | 2017-11-17 | 2019-05-24 | 华为技术有限公司 | Session establishment method and device |
| CN109842507A (en) * | 2017-11-27 | 2019-06-04 | 华为技术有限公司 | A kind of network slice management method and equipment |
| US10235226B1 (en) * | 2018-07-24 | 2019-03-19 | Cisco Technology, Inc. | System and method for message management across a network |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20230370375A1 (en) * | 2020-09-24 | 2023-11-16 | Zte Corporation | Data processing method and system, encapsulation node, and de-encapsulation node |
| US12381820B2 (en) * | 2020-09-24 | 2025-08-05 | Zte Corporation | Data processing method and system, encapsulation node, and de-encapsulation node |
Also Published As
| Publication number | Publication date |
|---|---|
| CN110266594A (en) | 2019-09-20 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN110266594B (en) | Cross-network-slice segmented routing forwarding method and device | |
| US11689452B2 (en) | Method for forwarding service data, network device, and network system | |
| CN107968750B (en) | Message transmission method, device and node | |
| EP3731471B1 (en) | Method and device for segment identifier offset distribution | |
| EP3070895B1 (en) | Encapsulation method and system for flow identifier | |
| EP3496345B1 (en) | Information management method, apparatus and system | |
| CN106572017B (en) | Sending method, receiving method and device of BIER information | |
| CN111385209B (en) | Message processing method, message forwarding method, device and equipment | |
| CN107770073B (en) | A method, device and system for information synchronization | |
| CN105577502B (en) | Service transmission method and device | |
| CN112995030A (en) | Business processing method and device, storage medium and electronic device | |
| CN107925613A (en) | Method, device and system for forwarding message in service function chain SFC | |
| EP3657742B1 (en) | Method and apparatus for processing modified packet | |
| CN103973567B (en) | Routing configuration method and device for virtual private network | |
| CN107707474B (en) | Route distribution method and system | |
| EP2638668A1 (en) | Prioritization of routing information updates | |
| FI123532B (en) | Procedure and apparatus for controlling routing data advertising | |
| CN105992297A (en) | SDN-based connection management and forwarding control method and related equipment | |
| CN105262686B (en) | Network connectivity verification method and device | |
| CN113285877A (en) | Message forwarding control method and related device | |
| US11784919B2 (en) | Method for sending BIERv6 packet and first network device | |
| CN115550256A (en) | BIER multicast slicing method based on SDN, storage medium and electronic equipment | |
| CN115250262A (en) | Message sending method and device, message receiving method and device, and storage medium | |
| CN107317740A (en) | A kind of processing method and processing device of data message | |
| CN117527690A (en) | Network addressing method, device, communication equipment and storage medium |
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 |