CN113472658B - Message packaging method, message forwarding method and device - Google Patents

Message packaging method, message forwarding method and device Download PDF

Info

Publication number
CN113472658B
CN113472658B CN202110730338.2A CN202110730338A CN113472658B CN 113472658 B CN113472658 B CN 113472658B CN 202110730338 A CN202110730338 A CN 202110730338A CN 113472658 B CN113472658 B CN 113472658B
Authority
CN
China
Prior art keywords
node
message
tail node
segment
module
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
CN202110730338.2A
Other languages
Chinese (zh)
Other versions
CN113472658A (en
Inventor
邹胜亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Security Technologies Co Ltd
Original Assignee
New H3C Security Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New H3C Security Technologies Co Ltd filed Critical New H3C Security Technologies Co Ltd
Priority to CN202110730338.2A priority Critical patent/CN113472658B/en
Publication of CN113472658A publication Critical patent/CN113472658A/en
Application granted granted Critical
Publication of CN113472658B publication Critical patent/CN113472658B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/34Source routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/22Alternate 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/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Abstract

In the method, a tail node can be designated in a segment routing policy under the condition that a penultimate node is configured in a penultimate pop-up mode, and address information of the tail node of an original segment routing policy is replaced by a private network routing tag by determining the private network routing tag, so that whether the tail node fails or not can be sensed in subsequent BFD detection according to the address of the tail node carried in the segment routing policy.

Description

Message packaging method, message forwarding method and device
Technical Field
The present disclosure relates to the field of technologies, and in particular, to a packet encapsulation method, a packet forwarding method, and an apparatus.
Background
SR (Segment Routing) adopts a source node path selection mechanism, encapsulates in advance the SID (Segment Identifier) of the Segment that the path needs to pass through at the source node, and when a packet passes through the SR node, the SR node forwards the packet according to the SID of the packet. Other nodes than the source node need not maintain path state. SRv6 means that an SR is used in an IPv6 network, and an IPv6 address is used as an SID to forward a packet.
SRv6 uses native IP address as data plane, naturally supports the advantages of cross-domain, equivalent routing and compatibility with non-SRv 6 nodes, becomes the necessary technical choice of future network, and SRv6-policy combines with controller to realize the advantage of traffic engineering tunnel, becomes one of mainstream technical choices, but there are some problems in realizing SRv 6-policy.
Disclosure of Invention
In order to overcome the problems in the related art, the present specification provides a packet encapsulation method, a packet forwarding method, and a device.
According to a first aspect of an embodiment of the present specification, a packet encapsulation method is provided, which is applied to a segment routing receiving segment routing policy, where the segment routing policy carries address information of a tail node;
receiving a service message;
searching a private network routing table according to the service message, and determining a private network routing label corresponding to the service message;
if the message is determined to need to be forwarded through a tunnel interface in an IPv 6-based segment routing SR tunnel mode according to a segment routing strategy, an SRH (sequence request path) header is packaged for the service message;
and the address information of the tail node carried in the SRH head is the private network routing label.
Optionally, the method further includes:
and determining a tail node corresponding to the segment routing strategy, and sending a BFD message to the tail node.
Optionally, the method further includes:
and if the tail node is determined to have a fault according to the BFD message, updating the SRH head to be packaged of the service message according to the backup path.
According to a second aspect of the embodiments of the present specification, there is provided a packet forwarding method applied to a segment routing SR node, where the SR node is configured in a penultimate hop pop-up mode, and the method includes:
receiving an IPv6 message;
if the SRH is determined to be the penultimate node, the SRH head is unpacked, and the destination address in the outer IPv6 head is changed into the segment identifier SID of the tail node in the SRH head, wherein the segment identifier SID of the tail node carried in the SRH head is a private network routing label corresponding to the IPv6 inner layer service message;
and forwarding the decapsulated message to a tail node in the same network segment as the private network routing label according to the private network routing label.
Optionally, the method provided by the second aspect further includes: and receiving a BFD message with a destination address as a tail node, wherein the destination address of the BFD message is generated according to tail node information in the segment routing strategy.
According to a third aspect of the embodiments of the present specification, there is provided a packet encapsulation apparatus, which is applied to an SR node, where the SR node in a network where the apparatus is located is configured as a penultimate hop pop-up mode, and the apparatus includes: the device comprises a first receiving module, a first packaging module and a first searching module;
the first receiving module is used for receiving a segment routing strategy, wherein the segment routing strategy carries address information of a tail node;
the first receiving module is also used for receiving a service message;
the first searching module is used for searching a private network routing table according to the service message and determining a private network routing label corresponding to the service message;
the first encapsulation module is used for encapsulating an SRH (sequence request) header for the service message if the first search module determines that the message needs to be forwarded through a tunnel interface based on an IPv6 segment routing SR tunnel mode according to a segment routing strategy;
and the address information of the tail node carried in the SRH head is the private network routing label.
Optionally, the apparatus further comprises: and the BFD module is used for determining a tail node corresponding to the segment routing strategy and sending a BFD message to the tail node.
Optionally, the first encapsulation module is further configured to update an SRH header to be encapsulated in a service packet according to a backup path if it is determined that the tail node fails according to the BFD packet.
According to a fourth aspect of the embodiments of the present specification, there is provided a packet forwarding apparatus, which is applied to an SR node, where the SR node is configured in a penultimate hop pop-up mode in a network where the apparatus is located, and the apparatus includes: the second receiving module, the second packaging module and the forwarding module;
the second receiving module is used for receiving the IPv6 message;
the second encapsulation module is used for decapsulating the SRH head and changing the destination address in the outer IPv6 head into a segment identifier SID of a tail node in the SRH head if the second encapsulation module determines that the second encapsulation module is the penultimate node, wherein the segment identifier SID of the tail node carried in the SRH head is a private network routing label corresponding to the IPv6 inner service message;
and the forwarding module is used for forwarding the decapsulated message to a tail node in the same network segment as the private network routing label according to the private network routing label.
Optionally, the second receiving module is further configured to receive a BFD packet whose destination address is a tail node, where the destination address of the BFD packet is generated according to tail node information in the segment routing policy.
The technical scheme provided by the embodiment of the specification can have the following beneficial effects:
in the method, a tail node may be specified in a segment routing policy under the condition that a penultimate hop node is configured as a penultimate segment pop-up mode (PSP), and address information of the tail node of an original segment routing policy is replaced with a private network routing tag by determining the private network routing tag, so that whether the tail node fails or not may be sensed in subsequent BFD detection according to an address of the tail node carried in the segment routing policy. In general, the penultimate pop-up mode is usually configured to be known in the whole path, i.e. the first node knows that the penultimate node is working in the PSP mode.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the specification.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present specification and together with the description, serve to explain the principles of the specification.
Fig. 1 is a schematic diagram of message forwarding in a penultimate hop pop-up mode provided in this specification;
fig. 2 is a schematic diagram of message forwarding in a penultimate pop mode provided in the present specification;
fig. 3 is a schematic flow chart of a message encapsulation method provided in this specification;
fig. 4 is a schematic diagram of a packet encapsulating an SRH header provided in the present specification;
fig. 5 is a schematic flow chart of a BFD detection method provided in an embodiment of the present specification;
fig. 6 is a flowchart illustrating a packet forwarding method provided in an embodiment of the present specification;
fig. 7 is a schematic structural diagram of a packet encapsulation apparatus provided in an embodiment of the present specification;
fig. 8 is a schematic structural diagram of a message forwarding apparatus provided in an embodiment of this specification;
fig. 9 is a schematic diagram of a network architecture according to another embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. The following description refers to the accompanying drawings in which the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with this description. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the specification, as detailed in the appended claims.
In the related art, fig. 1 shows a network architecture, where when a CE sends a packet to a CE2, a source IP address SA of the packet is 10.1.1.1, and a destination IP address DA is 10.2.2.2, and when the packet reaches a first node PE1, PE1 will direct the packet to SRv6-Policy, encapsulate SRH (Segment Routing Header), where there are two pieces of key information in the SRH, one is a Segment List in the form of an IPv6 address, and the Segment List is ordered to form an explicit path in SRv 6; another key field is Segment Left (SL), which is a pointer that indicates the currently active Segment List. The minimum value of Segment Left is 0 and the maximum value is the number of Segment List minus 1.Segment List is pushed in reverse order. As shown in fig. 1, the Segment List encapsulated by PE1 for the original message includes 3 SIDs, which are respectively expressed as Segment List [2] =2: :1, segment List [2] =3: :100, then as the packet encapsulating the SRH header is forwarded at the P node and PE2 node, the lowest Segment List [2] is the first Segment List processed at PE1, the middle Segment List [1] is the second one processed at the P device, and the upper Segment List [0] is the last one processed at PE 2. When the message reaches PE2, first PE2 updates the destination IP address DA to be the address pointed by Segment List [0], modifies the SL value, and when the SL =1 of the received message is identified and the destination IP address DA is self, decapsulates the IPv6 message header and the SRH of the message, searches an IPv4 VPN (Virtual Private Network) instance routing table and forwards the routing table to CE2.
Fig. 1 shows that the decapsulation method performed at the end node PE2 needs to complete the update of the destination address, the SL-1 action, the table lookup forwarding, and the like at the same time, and is very stressful for PE2 and complex to implement.
In another implementation, the IPv6 header and the SRH are decapsulated at the penultimate hop, and table lookup and forwarding are performed at the tail node PE2, which may reduce the pressure of a single node.
However, in this way, there may be some problems in some scenarios. Fig. 2 shows a schematic diagram of a network architecture, where multiple paths exist between PE2 and CE2, and as shown in fig. 2, when a head node deploys a path, because a penultimate hop pops up, a path configured with SRv6-policy can only be assigned to a P node of the penultimate hop and cannot be assigned to a PE2 node, an SRv6-policy configured with a head node PE1 can only be assigned to a forwarding path formed by two hop nodes PE1 to P, and a PE1 device iterates VPN SIDs of tail nodes PE2 and PE3 to SRH respectively according to a BGP protocol for encapsulation.
SBFD (Seamless Bidirectional Forwarding Detection) is used in conjunction with SRV6-policy to detect the accessibility of SRV6-policy tunnels, that is, only whether PE1 to P nodes are reachable or not can be detected, and SBFD cannot sense the failure of PE2 and PE3, that is, if PE2 node fails, the first node PE1 cannot sense the failure, and still continues to encapsulate the VPN SID information of PE2 and PE3 at the same time, resulting in packet loss of the packet encapsulating VPN SID of PE 2.
In the method, a tail node may be specified in a segment routing policy when a penultimate node is configured as a penultimate segment pop-up mode (PSP), and address information of the tail node of an original segment routing policy is replaced with a private network routing tag by determining the private network routing tag, so that whether the tail node fails or not may be sensed in subsequent BFD detection according to an address of the tail node carried in the segment routing policy. Generally, the penultimate pop-up mode generally knows the configuration of the entire path, i.e., the first node knows that the penultimate node is operating in the PSP mode.
Fig. 3 shows a flowchart of the packet encapsulation method provided in this embodiment, where the method provided in this embodiment may be applied to a first node in an SRv6 network, and may also be applied to any SR node. As shown in fig. 3, the method for encapsulating a packet provided in this embodiment includes:
step 101, receiving a segment routing policy, where the segment routing policy carries address information of a tail node.
The segment routing policy SR-policy specifies the network devices which pass through after entering the SR tunnel. In the segment routing traffic engineering, a node through which a path specified by a segment routing policy passes first is referred to as a first node in this embodiment, and a last node through which the path passes is referred to as a last node in this embodiment.
Taking the network architecture shown in fig. 4 as an example, the PE1 is taken as a head node, and the PE2 is taken as a tail node corresponding to the segment routing policy. The segment routing strategy can be manually created in a command line mode, issued by a controller or automatically calculated through route learning.
Step 103, receiving the service message.
And 105, searching a private network routing table according to the service message, and determining a private network routing label corresponding to the service message.
After receiving the message, the PE1 searches a corresponding routing table item of the VPN example according to an interface and a destination address of the message reaching the PE1, and finds a corresponding private network routing label.
The private network routing label may be encapsulated as a SID into an SRH header in step 107.
Step 107, if it is determined according to the segment routing policy that the packet needs to be forwarded through a tunnel interface in an IPv 6-based segment routing SR tunnel mode, encapsulating an SRH header for the service packet, where address information of a tail node carried in the SRH header is the private network routing label.
If the characteristics of the service message are matched with the segment routing strategy, the service message is guided to the IPv6 SR tunnel for forwarding. Specifically, what kind of characteristics of the service packet is used for the drainage, any mode in the prior art may be used, and details are not described in this embodiment.
After encapsulating the outer IPv6 header for the service packet, the PE1 forwards the encapsulated packet to the next-hop node.
Fig. 4 shows a message diagram encapsulating an SRH header provided in this embodiment. The SRH encapsulates a private network routing label of the PE2, and the VPN SID 3 is as follows.
In addition, it should be noted that, in the method provided in this embodiment, the execution order of step 101, step 102, and step 103 is not limited, as long as it is ensured that step 101 to step 103 precede step 104.
In the packet encapsulation method provided by this embodiment, the address information of the tail node specified in the original segment routing policy is replaced with the private network routing label of the tail node, so that the address information of the tail node can be specified in the segment routing policy, and the encapsulated SRH header can be popped up at the node of the last but one hop, thereby reducing the pressure of the tail node. Meanwhile, the private network routing label and the network segment address of the tail node belong to the same network segment, so that the penultimate node can completely forward the message to the tail node according to the private network routing label.
Example two
On the basis of the packet encapsulation method provided in the foregoing embodiment, this embodiment further provides a BFD detection method, fig. 5 shows a flowchart of the method, and as shown in fig. 5, the method includes:
step 101, receiving a segment routing strategy, wherein the segment routing strategy carries address information of a tail node;
step 103, receiving a service message;
step 105, searching a private network routing table according to the service message, and determining a private network routing label corresponding to the service message;
step 107, if it is determined according to the segment routing policy that the message needs to be forwarded through a tunnel interface in an IPv 6-based segment routing SR tunnel mode, encapsulating an SRH header for the service message;
and the address information of the tail node carried in the SRH head is the private network routing label.
And step 109, determining a tail node corresponding to the segment routing strategy, and sending a BFD message to the tail node.
Wherein steps 101 to 107 are similar to those of the above embodiments, and are not described again in this embodiment.
In the method provided by this embodiment, on the basis that the penultimate node is configured as the penultimate pop-up mode, since the segment routing policy carries the address information of the tail node (in the prior art, the address information of the tail node is not specified in the SR policy in the penultimate pop-up mode), when performing BFD detection, the BFD packet may be sent to the tail node according to the tail node information in the segment routing policy, so that it is still possible to detect whether the tail node fails in the scenario of the penultimate pop-up mode.
On the basis of the foregoing embodiment, in the method provided in this embodiment, if the current node determines that the tail node fails, the SRH header to be encapsulated in the service packet is updated according to the backup path.
The address information of the network device corresponding to the backup path may be obtained according to a Border Gateway Protocol (BGP), so when a failure of the main path is detected, for example, if the first node detects a failure of the PE1 in fig. 4, the address information of the network device PE3 corresponding to the backup path may be obtained through the BGP Protocol, and the first node updates the SRH header encapsulated by the service packet according to the address information of the PE 3. Specifically, the address information of PE2 in the original encapsulated SRH header is replaced with the address of PE 3.
Of course, the main path in this embodiment is described by taking only one device of PE2 between P and CE2 as an example, but in an actual networking environment, there may be multiple network devices between P and CE2.
EXAMPLE III
On the basis of the foregoing embodiments, this embodiment further provides a packet forwarding method, where the method may be applied to a segment routing SR node, where the SR node is configured in a penultimate hop pop-up mode, and fig. 6 is a flowchart of the packet forwarding method provided in this embodiment, and as shown in fig. 6, the packet forwarding method includes:
step 601, receiving an IPv6 message;
the IPv6 packet here encapsulates an SRH header and an IPv6 outer header.
Step 603, if the self is determined to be the penultimate node, decapsulating the SRH header, and changing the destination address in the outer IPv6 header to the segment identifier SID of the tail node in the SRH header, where the segment identifier SID of the tail node carried in the SRH header is a private network routing label corresponding to the IPv6 inner service packet;
and under the condition of a penultimate hop pop-up mode, if the SR node receiving the IPv6 message is the penultimate hop node, decapsulating the SRH header.
In the process of changing the destination address in the outer IPv6 header to the segment identifier SID of the head-to-tail node of the SRH, the destination address of the outer IPv6 header needs to be changed to the SID of the head-to-tail node of the SRH, where the SID is specifically a private network routing label corresponding to the inner service packet in the IPv6 packet. Specifically, the private network routing label may be a private network routing label determined by the first node searching for a corresponding routing entry of the VPN instance according to an interface through which the inner layer service packet reaches the first node and the destination address. For example, the private network routing label may be VPN SID 3 shown in FIG. 4.
Step 607, according to the private network routing label, the decapsulated packet is forwarded to the tail node in the same network segment as the private network routing label.
The private network routing label is generally the same as the network segment of the tail node, so the packet can be forwarded to the tail node.
On the basis of the above embodiment, the method further comprises: the SR node can also receive a BFD message with the destination address as a tail node. And generating the destination address of the BFD message according to tail node information in the segment routing strategy.
In the method provided by this embodiment, when performing BFD detection, a BFD packet may be sent to a tail node according to tail node information in the segment routing policy, so that whether the tail node fails may still be detected in a scenario of a penultimate hop pop-up mode.
Example four
On the basis of the first or second embodiment, this embodiment further provides a message encapsulation apparatus, which may be applied to an SR node, where the SR node in a network where the apparatus is located is configured in a penultimate hop pop-up mode, and the apparatus may be configured to execute the message encapsulation method provided in the first or second embodiment.
Fig. 7 shows a schematic structural diagram of a message detection apparatus, as shown in fig. 7, the message encapsulation apparatus includes:
a first receiving module 701, a first encapsulating module 702, and a first searching module 703;
the first receiving module 701 is configured to receive a segment routing policy, where the segment routing policy carries address information of a tail node;
the first receiving module 701 is further configured to receive a service packet;
the first searching module 703 is configured to search a private network routing table according to the service packet, and determine a private network routing tag corresponding to the service packet;
a first encapsulation module 702, configured to, if the first lookup module 703 determines, according to the segment routing policy, that the packet needs to be forwarded through a tunnel interface in an IPv 6-based segment routing SR tunnel mode, encapsulate, by the first encapsulation module 702, an SRH header for the service packet; and the address information of the tail node carried in the SRH head is the private network routing label.
Optionally, the apparatus further comprises: and a BFD module (not shown in the figure) configured to determine a tail node corresponding to the segment routing policy, and send a BFD packet to the tail node.
Optionally, the first encapsulating module 702 is further configured to update, according to the backup path, the SRH header to be encapsulated in the service packet if it is determined that the tail node fails according to the BFD packet.
On the basis of the third embodiment, this embodiment further provides a message forwarding apparatus, where the apparatus may be applied to an SR node, the SR node in a network where the apparatus is located is configured as a penultimate hop pop-up mode, and fig. 8 shows a schematic structural diagram of the message forwarding apparatus provided in this embodiment, and as shown in fig. 8, the apparatus includes: a second receiving module 801, a second encapsulating module 802, and a forwarding module 803;
the second receiving module 801 receives the IPv6 message;
the second encapsulating module 802 is configured to decapsulate the SRH header and change the destination address in the outer IPv6 header to the segment identifier SID of the tail node in the SRH header if it is determined that the second encapsulating module is the penultimate node, where the segment identifier SID of the tail node carried in the SRH header is a private network routing tag corresponding to the IPv6 inner service packet;
the forwarding module 803 is configured to forward the decapsulated packet to a tail node in the same network segment as the private network routing label according to the private network routing label.
The second receiving module 801 is further configured to receive a BFD packet whose destination address is a tail node, where the destination address of the BFD packet is generated according to tail node information in the segment routing policy.
EXAMPLE five
In this embodiment, a method for packet encapsulation is further provided, where fig. 9 shows a network architecture, a path still exists between a penultimate node P and a penultimate node PE2, and an SR node also exists between a P device and a PE2 device in fig. 9, where an end.x SID of a direct link between the P device and the PE2 is 2. The end.x SID is used to identify a certain link in the network.
Then the path may be configured in the segment routing policy to include a link between the penultimate hop node and the penultimate hop node, for example, the path configured by the segment routing policy is: PE1- > P- > PE2- > end.x, when BFD detection is carried out on a first node, whether end node PE2 fails is judged by judging whether end.x between a node with the second last hop and a node with the first last hop takes effect or not.
However, in this way, as long as the end.x link fails, the first node PE1 will be considered as the tail node PE2 failing, but actually, another SR node may reach PE2, and the detection manner may be inaccurate. And the end.x in the BFD detection mode must be fixedly configured and cannot be dynamically allocated. This implementation is relatively complex.
Furthermore, in the following detailed description, numerous specific details are set forth in order to provide a better understanding of the present disclosure. It will be understood by those skilled in the art that the present disclosure may be practiced without some of these specific details. In some instances, methods, means, elements and circuits that are well known to those skilled in the art have not been described in detail so as not to obscure the subject matter of the present disclosure.
In the embodiments provided in the present disclosure, it should be understood that the disclosed apparatus and method may be implemented in other ways. The apparatus embodiments described above are merely illustrative and, for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present disclosure may be integrated together to form an independent part, or each module may exist alone, or two or more modules may be integrated to form an independent part.
The functions may be stored in a readable storage medium if they are implemented in the form of software functional modules and sold or used as separate products. Based on such understanding, the technical solution of the present disclosure or portions thereof that contribute to the prior art in essence can be embodied in the form of a software product, which is stored in a readable storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method described in the embodiments of the present disclosure. And the aforementioned readable storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.

Claims (10)

1. A message encapsulation method is applied to a Segment Routing (SR) node, wherein the SR node is configured in a penultimate hop pop-up mode, and the method comprises the following steps:
receiving a segment routing strategy, wherein the segment routing strategy carries address information of a tail node;
receiving a service message;
searching a private network routing table according to the service message, and determining a private network routing label corresponding to the service message;
if the message is determined to need to be forwarded through a tunnel interface in an IPv 6-based segment routing SR tunnel mode according to a segment routing strategy, an SRH (sequence request path) header is packaged for the service message;
and the address information of the tail node carried in the SRH head is the private network routing label.
2. The method of claim 1, further comprising:
and determining a tail node corresponding to the segment routing strategy, and sending a BFD message to the tail node.
3. The method of claim 2, further comprising:
and if the tail node is determined to have a fault according to the BFD message, updating the SRH head to be packaged of the service message according to the backup path.
4. A message forwarding method is applied to a Segment Routing (SR) node, wherein the SR node is configured in a penultimate hop pop-up mode, and the method comprises the following steps:
receiving an IPv6 message;
if the SRH is determined to be the penultimate node, the SRH head is unpacked, and the destination address in the outer IPv6 head is changed into the segment identifier SID of the tail node in the SRH head, wherein the segment identifier SID of the tail node carried in the SRH head is a private network routing label corresponding to the IPv6 inner layer service message;
and forwarding the decapsulated message to a tail node in the same network segment as the private network routing label according to the private network routing label.
5. The method of claim 4, further comprising: and receiving a BFD message with a destination address as a tail node, wherein the destination address of the BFD message is generated according to tail node information in the segment routing strategy.
6. A message encapsulation device is applied to an SR node, the SR node in a network where the device is located is configured to be in a penultimate hop pop-up mode, and the device comprises:
the device comprises a first receiving module, a first packaging module and a first searching module;
the first receiving module is used for receiving a segment routing strategy, wherein the segment routing strategy carries address information of a tail node;
the first receiving module is also used for receiving a service message;
the first searching module is used for searching a private network routing table according to the service message and determining a private network routing label corresponding to the service message;
the first encapsulation module is used for encapsulating an SRH (sequence request) header for the service message if the first search module determines that the message needs to be forwarded through a tunnel interface based on an IPv6 segment routing SR tunnel mode according to a segment routing strategy;
and the address information of the tail node carried in the SRH head is the private network routing label.
7. The apparatus of claim 6, further comprising: and the BFD module is used for determining a tail node corresponding to the segment routing strategy and sending a BFD message to the tail node.
8. The apparatus according to claim 7, wherein the first encapsulation module is further configured to update an SRH header to be encapsulated in the service packet according to a backup path if it is determined that the tail node fails according to the BFD packet.
9. A message forwarding device is applied to an SR node, and the SR node is configured to be in a penultimate hop pop-up mode in a network where the device is located, and the device comprises: the second receiving module, the second packaging module and the forwarding module;
the second receiving module is used for receiving the IPv6 message;
the second encapsulation module is used for decapsulating the SRH head and changing the destination address in the outer IPv6 head into a segment identifier SID of a tail node in the SRH head if the second encapsulation module determines that the second encapsulation module is the penultimate hop node, wherein the segment identifier SID of the tail node carried in the SRH head is a private network routing label corresponding to the IPv6 inner layer service message;
and the forwarding module is used for forwarding the decapsulated message to a tail node in the same network segment as the private network routing label according to the private network routing label.
10. The apparatus of claim 9, wherein the second receiving module is further configured to receive a BFD packet with a destination address of a tail node, wherein the destination address of the BFD packet is generated according to tail node information in a segment routing policy.
CN202110730338.2A 2021-06-29 2021-06-29 Message packaging method, message forwarding method and device Active CN113472658B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110730338.2A CN113472658B (en) 2021-06-29 2021-06-29 Message packaging method, message forwarding method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110730338.2A CN113472658B (en) 2021-06-29 2021-06-29 Message packaging method, message forwarding method and device

Publications (2)

Publication Number Publication Date
CN113472658A CN113472658A (en) 2021-10-01
CN113472658B true CN113472658B (en) 2022-11-18

Family

ID=77873974

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110730338.2A Active CN113472658B (en) 2021-06-29 2021-06-29 Message packaging method, message forwarding method and device

Country Status (1)

Country Link
CN (1) CN113472658B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113973074B (en) * 2021-10-26 2022-12-20 新华三信息安全技术有限公司 Message processing method and device, electronic equipment and medium
CN114221904B (en) * 2021-12-15 2023-08-18 锐捷网络股份有限公司 Message forwarding method, device and system
CN114205293B (en) * 2021-12-20 2024-04-09 网络通信与安全紫金山实验室 Path determination method, path determination device, electronic equipment and storage medium
CN115277530B (en) * 2022-07-20 2024-04-26 杭州安恒信息技术股份有限公司 Data processing method, device, equipment and medium based on SRv protocol
CN116545909B (en) * 2023-07-03 2023-09-26 成都数维通信技术有限公司 Message forwarding method, traffic traction method, medium, equipment and system
CN116915685B (en) * 2023-09-06 2023-12-12 新华三技术有限公司 Message transmission method and device and electronic equipment

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101662426A (en) * 2009-09-30 2010-03-03 中兴通讯股份有限公司 T-MPLS tunnel protection processing method and system thereof
CN102098222A (en) * 2011-02-09 2011-06-15 中兴通讯股份有限公司 Application service message forwarding method and forwarding node adopting multi-protocol label switching (MPLS) technology
CN102724118A (en) * 2012-06-06 2012-10-10 华为技术有限公司 Label distribution method and device
CN109257279A (en) * 2018-10-26 2019-01-22 新华三技术有限公司 A kind of message forwarding method and device
CN110557329A (en) * 2018-05-30 2019-12-10 中兴通讯股份有限公司 message forwarding method, device and node
WO2020072079A1 (en) * 2018-10-05 2020-04-09 Cisco Technology, Inc. CROSS-DOMAIN CONTROL PLANE COLLABORATION FOR END-TO-END SRv6 SLA CONSTRAINED SERVICE DELIVERY
CN111490941A (en) * 2020-01-20 2020-08-04 新华三信息安全技术有限公司 Multi-protocol label switching MP L S label processing method and network equipment
CN111628995A (en) * 2020-05-26 2020-09-04 新华三信息安全技术有限公司 SID compression method, SID compression device, SID compression equipment and storage medium based on SRv6
CN111935014A (en) * 2020-10-19 2020-11-13 网络通信与安全紫金山实验室 Message forwarding method and device based on SRv6 network, storage medium and electronic equipment
CN112422435A (en) * 2020-11-13 2021-02-26 新华三技术有限公司合肥分公司 Message forwarding control method and device and electronic equipment
CN112804148A (en) * 2021-03-24 2021-05-14 新华三信息安全技术有限公司 Message forwarding method and device
CN112910772A (en) * 2019-11-19 2021-06-04 中国移动通信有限公司研究院 Message forwarding method and device based on segmented routing
CN112953831A (en) * 2021-01-22 2021-06-11 新华三大数据技术有限公司 Message forwarding method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10652144B2 (en) * 2018-01-09 2020-05-12 Cisco Technology, Inc. Segment routing network processing of packets including packets having a segment identifier structure providing processing and/or memory efficiencies
WO2020048493A1 (en) * 2018-09-05 2020-03-12 Huawei Technologies Co., Ltd. Segment routing in mpls network
US10917340B2 (en) * 2018-09-11 2021-02-09 Cisco Technology, Inc. In-situ passive performance measurement in a network environment

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101662426A (en) * 2009-09-30 2010-03-03 中兴通讯股份有限公司 T-MPLS tunnel protection processing method and system thereof
CN102098222A (en) * 2011-02-09 2011-06-15 中兴通讯股份有限公司 Application service message forwarding method and forwarding node adopting multi-protocol label switching (MPLS) technology
CN102724118A (en) * 2012-06-06 2012-10-10 华为技术有限公司 Label distribution method and device
CN110557329A (en) * 2018-05-30 2019-12-10 中兴通讯股份有限公司 message forwarding method, device and node
WO2020072079A1 (en) * 2018-10-05 2020-04-09 Cisco Technology, Inc. CROSS-DOMAIN CONTROL PLANE COLLABORATION FOR END-TO-END SRv6 SLA CONSTRAINED SERVICE DELIVERY
CN109257279A (en) * 2018-10-26 2019-01-22 新华三技术有限公司 A kind of message forwarding method and device
CN112910772A (en) * 2019-11-19 2021-06-04 中国移动通信有限公司研究院 Message forwarding method and device based on segmented routing
CN111490941A (en) * 2020-01-20 2020-08-04 新华三信息安全技术有限公司 Multi-protocol label switching MP L S label processing method and network equipment
CN111628995A (en) * 2020-05-26 2020-09-04 新华三信息安全技术有限公司 SID compression method, SID compression device, SID compression equipment and storage medium based on SRv6
CN111935014A (en) * 2020-10-19 2020-11-13 网络通信与安全紫金山实验室 Message forwarding method and device based on SRv6 network, storage medium and electronic equipment
CN112422435A (en) * 2020-11-13 2021-02-26 新华三技术有限公司合肥分公司 Message forwarding control method and device and electronic equipment
CN112953831A (en) * 2021-01-22 2021-06-11 新华三大数据技术有限公司 Message forwarding method and device
CN112804148A (en) * 2021-03-24 2021-05-14 新华三信息安全技术有限公司 Message forwarding method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
SR技术探究及实现;刘睿等;《网络新媒体技术》;20200515(第03期);全文 *
重构广域网关键技术;郭晓军等;《电信科学》;20170420(第04期);全文 *

Also Published As

Publication number Publication date
CN113472658A (en) 2021-10-01

Similar Documents

Publication Publication Date Title
CN113472658B (en) Message packaging method, message forwarding method and device
US11882203B2 (en) Providing efficiencies in processing and communicating internet protocol packets in a network using segment routing
US11627086B2 (en) Processing packets by an offload platform adjunct to a packet switching device
EP3471347B1 (en) Vxlan packet processing method, device and system
US10924399B2 (en) Segment routing packet policies and functions including an engineered reverse reply path providing efficiencies in communicating packets in a network
CN106330714B (en) Method and device for realizing service function chain
US20210399985A1 (en) Method for forwarding packet in network, network node, and network system
JP6581277B2 (en) Data packet transfer
US8520672B2 (en) Packet switching device using results determined by an application node
US8619773B2 (en) Service request packet including an exterior network protocol attribute
US10594513B2 (en) Packet communications providing packet forwarding efficiencies in a network including using a segment routing and tunnel exchange
WO2021258754A1 (en) Message indication method and apparatus, and device and storage medium
CN113381933B (en) SRv6 bidirectional forwarding detection method and system in network
JP2021530891A (en) Transmission path failure handling methods and devices, and systems
CN108718269B (en) Message processing method and device
WO2022042503A1 (en) Message transmission method, apparatus, and system
JP6850865B2 (en) Data stream processing method and first gateway equipment
CN113328937B (en) Method and device for realizing distributed aggregation
US8072908B2 (en) Partitioned forwarding of packets originated on a broadcast link among layer 2 forwarding devices of different adjacency networks
CN112565044B (en) Message processing method and device
CN112291234A (en) Flow reinjection method, device, equipment and computer readable storage medium
CN114844825A (en) Method for forwarding message and related equipment
CN117749700A (en) Corresponding relation acquisition method, parameter notification method, device, equipment and medium
CN116436907A (en) Message transmission method, device, equipment and readable storage medium
CN117917886A (en) Message processing method, device, 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