Message transmission method, device and equipment and readable storage medium

CN116436907BActive Publication Date: 2026-08-18FIBERHOME TELECOMMUNICATION TECHNOLOGIES CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310337498.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-31
Publication Date
2026-08-18
Estimated Expiration
2043-03-31

AI Technical Summary

Technical Problem

[0008]本发明的主要目的在于提供一种报文传输方法、装置、设备及可读存储介质,旨在解决前双归保护和Bypass保护可以提高SRv6 SFC网络的可靠性,但只适用于静态代理,不支持动态代理,即不支持自学习,从而导致SRv6 SFC网络的效率较低的技术问题

Benefits of technology

[0037] In this invention, when a fault exists between the first proxy node and the service node, the first proxy node adds a new encapsulation header to the original packet to obtain a first packet, which is then sent to the second proxy node. The original packet includes an original segmented routing header. The second proxy node decapsulates the first packet and stores the original segmented routing header. The second proxy node then strips the new encapsulation header and the original segmented routing header to obtain a second packet, which is then sent to the service node. This invention, by retaining the original packet and the original segmented routing header and storing the original segmented routing header after decapsulation, enables the restoration of the segmented routing header for the packet after the service node returns a packet. This allows the SRv6 SFC network to support dynamic proxying in dual-path protection scenarios, improving the efficiency of the SRv6 SFC network. Furthermore, by adding a new encapsulation header to the original packet and using a segmented routing-based packet forwarding mechanism, the packet can be forwarded to the service node through a backup proxy node, thus achieving dual-path protection for the SRv6 SFC network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116436907B_ABST
    Figure CN116436907B_ABST
Patent Text Reader

Abstract

The application provides a message transmission method, device and equipment and a readable storage medium. The message transmission method comprises the following steps: when there is a fault between a first proxy node and a service node, the first proxy node adds a new encapsulation header to an original message to obtain a first message, and sends the first message to a second proxy node, wherein the original message comprises an original segment routing header; the second proxy node decapsulates the first message and stores the original segment routing header; the second proxy node peels off the new encapsulation header and the original segment routing header to obtain a second message, and sends the second message to the service node. According to the application, the original segment routing header is stored after the message is decapsulated, so that the segment routing header can be restored for the message after the message is returned to the service node, thereby supporting dynamic proxy. Moreover, the new encapsulation header is added to the original message, and the message is forwarded to the service node through a backup proxy node, so that double rules protection of an SRv6SFC network is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of communication technology, and in particular to a message transmission method, apparatus, device, and readable storage medium. Background Technology

[0002] SR (segment routing) is a technology for forwarding packets based on the concept of source routing. SRv6, or IPv6-based segment routing, is a technology that combines SR technology with the IPv6 protocol. In SRv6, packets carry an IPv6 header plus an SRH (segment routing header). The SRH includes information such as a SID list (segment ID, or SID for short) and SL (segmentleft, the number of remaining segments). The segment ID list contains one or more SIDs arranged in sequence. Each SID is a 128-bit IPv6 address and can represent a topology, command, or service. SL is a pointer, a value not less than 0, that points to the active SID in the segment list. This active SID is the destination address in the IPv6 header. When an SRv6-enabled node receives a packet, it reads the destination address and looks up the local SID table. If the destination address matches an SID in the local SID table, the packet is identified as an SRv6 packet, and the corresponding operation is performed based on the topology, command, or service corresponding to that SID.

[0003] SRv6 SFC (Service Function Chain, also known as a service chain) uses SRv6 TE Policy (Segment Routing Traffic Engineering Policy) to orchestrate the forwarding path of service packets. By adding path information from the SRv6 TE Policy to the original packet, it guides the packet through various service nodes along the specified path. Supported service nodes include firewalls, intrusion prevention systems, load balancers, and address translation devices. SRv6 SFC technology flexibly controls the service nodes through which service packets pass, meeting the security and reliability requirements of different services in the network. Figure 1 , Figure 1 The following is a typical network architecture diagram for an SRv6 SFC network, such as... Figure 1As shown, the SRv6 SFC network consists of SC (Service Classifier), SFF (Service Function Forwarder), SF (Service Function), and Tail Endpoint (the tail node of the SRv6 SFC network, i.e., the destination node of the SRv6TE Policy). It is used to guide specific user service packets to the designated service nodes for processing and forward them to their destination.

[0004] An SFC domain is an area containing SFC devices. SC is located at the edge of the SRv6 SFC network and is the source node of the SRv6 SFC network. SRv6 TE Policy needs to be created on the SC, and service packets are diverted to the SRv6 TEPolicy for forwarding. SF provides certain application services, such as firewall, load balancing, address translation, etc. SF can be a physical device or a software product deployed on a virtual machine. Service nodes that can recognize SRv6 packets are called SRv6-aware SFs, and service nodes that cannot recognize SRv6 packets are called SRv6-unaware SFs. SFF acts as a proxy for SF. Based on the SRv6 SID of the received packet, it transmits the packet to several SFs associated with the SFF for processing. After the SF processes the packet, it returns the packet to the SFF, and the SFF decides whether to continue forwarding the packet.

[0005] The SFC Proxy is located between the SFF and several associated SRv6-unaware SFs. It receives packets from the SFF on behalf of the SFs, removes the NSH (Network Service Header) encapsulation information, and sends the packets to the SRv6-unaware SFs through local logical components. It also receives packets sent back from the SRv6-unaware SFs, adds SRv6 encapsulation information to them, and then sends them to the SFF for processing. End.AS: Static proxy SID, published by the SRv6Proxy node. The function of End.AS is to strip the SRH header and send the packet to SF through the corresponding interface or virtual interface (e.g., the interface corresponding to the VLAN ID). After the packet carrying the specified VLAN ID returns from SF to SRv6 Proxy, the cached SRH is inserted into the returned packet according to the VLAN ID and forwarded again. The mapping relationship between SRH and virtual interface is generated through static configuration, hence the name static proxy SID. End.AD: Dynamic proxy SID, published by the SRv6 Proxy node. End.AD adds dynamic learning capability on the basis of static proxy SID, changing the mapping relationship between SRH and virtual interface from static configuration to dynamic generation based on the SRH of the received packet.

[0006] Reference Figure 2 , Figure 2 This diagram illustrates dual-homing protection and bypass protection in an SRv6 SFC network, as shown below. Figure 2 As shown, the SF service node can perform dual-homed access, meaning that the same SF service node can simultaneously access two proxy nodes (SFF). Through dual-homed access, SRv6 packets can be forwarded from either the first proxy node (SFF1) to the service node SF1, or from the second proxy node (SFF2) to the service node SF1. Therefore, even if one proxy node fails, SRv6 packets can still be forwarded from the other proxy node to the service node SF1, thus greatly improving network reliability. Furthermore, the two proxy nodes can share the burden of forwarding SRv6 packets and processing SRH, thus achieving load balancing and reducing the load on a single proxy node. In addition, SF includes Bypass protection. In a scenario with dual-homed SF access and Bypass SF protection, SF1 is dual-homed to both SFF1 and SFF2, with SF2 acting as a Bypass SF for SF1. When the path between SFF1 and SF1 is unreachable, traffic is forwarded to SF1 via SFF2. If the link between SFF2 and SF1 is unreachable, traffic is forwarded to SFF3.

[0007] While dual-homing and bypass protection can improve the reliability of SRv6 SFC networks, they only apply to static proxies (End.AS) and do not support dynamic proxies (End.AD), meaning they do not support self-learning, resulting in lower efficiency for SRv6 SFC networks. This is because in the dual-homing and bypass protection scenarios, only the primary proxy node SFF1 has complete packet information. In the event of a failure, when the primary proxy node SFF1 sends a packet to the backup proxy node SFF2 or the bypass node SFF3, it has already decapsulated the packet, carrying only the End.AS and End SID information of the backup proxy node SFF2 or the bypass node SFF3. Therefore, after the SF processes the return packet, the backup proxy node SFF2 can only rely on the static configuration of each data stream to restore the original SID list, thus increasing the workload of SRv6 SFC network service configuration. Summary of the Invention

[0008] The main objective of this invention is to provide a message transmission method, apparatus, device, and readable storage medium, aiming to solve the technical problem that while front-homing protection and bypass protection can improve the reliability of SRv6 SFC networks, they are only applicable to static proxies and do not support dynamic proxies, i.e., they do not support self-learning, thus resulting in low efficiency of SRv6 SFC networks.

[0009] In a first aspect, the present invention provides a message transmission method, the message transmission method comprising:

[0010] When there is a fault between the first proxy node and the service node, the first proxy node adds a new encapsulation header to the original message to obtain the first message, and sends the first message to the second proxy node. The original message includes the original segmentation routing header.

[0011] The second proxy node decapsulates the first packet and stores the original segmented routing header;

[0012] The second proxy node strips the new encapsulation header and the original segmented routing header to obtain the second packet, and then sends the second packet to the service node.

[0013] Optionally, the new encapsulation header includes a new destination address, and sending the first message to the second proxy node includes:

[0014] The first proxy node, based on the new destination address, looks up the routing table and sends the first packet to the second proxy node.

[0015] Optionally, the original message also includes the original destination address, and the new encapsulation header also includes a new segmentation routing header. The remaining segment count in the new segmentation routing header is 1, the segment identifier list in the new segmentation routing header is <dynamic proxy, segment identifier of the second proxy node>, and the new destination address is the segment identifier of the second proxy node. Before the first proxy node adds the new encapsulation header to the original message, it includes:

[0016] The first proxy node updates the original destination address of the original message to a dynamic proxy;

[0017] Before the second proxy node strips the new encapsulation header and the original segmented routing header to obtain the second packet, it includes:

[0018] The second proxy node decrements the number of remaining segments in the new segment routing header by 1 and updates the new destination address to a dynamic proxy.

[0019] Optionally, after sending the second message to the service node, the following steps are included:

[0020] The service node processes the second message to obtain the third message, and then returns the third message to the second proxy node.

[0021] The second proxy node restores the segmented routing header for the third message based on the stored original segmented routing header, obtains the fourth message, and sends the fourth message to the next node.

[0022] Optionally, the second proxy node restores the segmented routing header for the third packet based on the stored original segmented routing header, resulting in the fourth packet including:

[0023] The second proxy node adds the stored original segmented routing header to the header of the third packet;

[0024] The number of remaining segments in the original segmented routing header is reduced by 1, and the original destination address is updated to the next segment identifier in the segment identifier list of the original segmented routing header, resulting in the fourth packet.

[0025] Optionally, the original message further includes a destination option extended header and a hop-by-hop option extended header, following the storage of the original segmented routing header, including:

[0026] Store destination options extend the header and hop-by-hop options extend the header;

[0027] After restoring the segmented routing header for the third message, the following is included:

[0028] Extend the header for the third message recovery destination option and extend the header for the hop-by-hop option.

[0029] Optionally, the message transmission method further includes:

[0030] If a fault is detected between the second agent node and the service node, the system switches to the bypass protection path.

[0031] Secondly, the present invention also provides a message transmission device, the message transmission device comprising:

[0032] An add module is used to add a new encapsulation header to the original message when there is a fault between the first proxy node and the service node, so as to obtain the first message and send the first message to the second proxy node. The original message includes the original segmented routing header.

[0033] The storage module is used by the second proxy node to decapsulate the first packet and store the original segmented routing header;

[0034] The stripping module is used by the second proxy node to strip the new encapsulation header and the original segmented routing header to obtain the second packet, which is then sent to the service node.

[0035] Thirdly, the present invention also provides a message transmission device, the message transmission device including a processor, a memory, and a message transmission program stored in the memory and executable by the processor, wherein when the message transmission program is executed by the processor, it implements the steps of the message transmission method as described above.

[0036] Fourthly, the present invention also provides a readable storage medium storing a message transmission program, wherein when the message transmission program is executed by a processor, it implements the steps of the message transmission method as described above.

[0037] In this invention, when a fault exists between the first proxy node and the service node, the first proxy node adds a new encapsulation header to the original packet to obtain a first packet, which is then sent to the second proxy node. The original packet includes an original segmented routing header. The second proxy node decapsulates the first packet and stores the original segmented routing header. The second proxy node then strips the new encapsulation header and the original segmented routing header to obtain a second packet, which is then sent to the service node. This invention, by retaining the original packet and the original segmented routing header and storing the original segmented routing header after decapsulation, enables the restoration of the segmented routing header for the packet after the service node returns a packet. This allows the SRv6 SFC network to support dynamic proxying in dual-path protection scenarios, improving the efficiency of the SRv6 SFC network. Furthermore, by adding a new encapsulation header to the original packet and using a segmented routing-based packet forwarding mechanism, the packet can be forwarded to the service node through a backup proxy node, thus achieving dual-path protection for the SRv6 SFC network. Attached Figure Description

[0038] Figure 1 This is a typical network architecture diagram for an SRv6 SFC network;

[0039] Figure 2 A schematic diagram of dual-homing protection and bypass protection in an SRv6 SFC network;

[0040] Figure 3 This is a flowchart illustrating an embodiment of the message transmission method of the present invention;

[0041] Figure 4 This is a schematic diagram of the functional modules of an embodiment of the message transmission device of the present invention.

[0042] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0043] It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.

[0044] In a first aspect, embodiments of the present invention provide a message transmission method.

[0045] To more clearly demonstrate the message transmission method provided in the embodiments of this application, we will first introduce the application scenarios of the message transmission method provided in the embodiments of this application.

[0046] The message transmission method provided in this application is applied to an SRv6 SFC network. By adding path information of SRv6 TE Policy to the original message, the message is guided to pass through each service node sequentially along the specified path. The service node can perform dual-homed access, that is, the same service node can access two proxy nodes at the same time. Taking these two proxy nodes as the first proxy node and the second proxy node respectively, through dual-homed access, SRv6 messages can be forwarded from the first proxy node to the service node, or from the second proxy node to the service node. So even if one proxy node fails, the SRv6 message can still be forwarded from the other proxy node to the service node, thereby greatly improving network reliability. Dual-homed protection and bypass protection can improve the reliability of SRv6 SFC network, but they are only applicable to static proxy (End.AS) and do not support dynamic proxy (End.AD), that is, they do not support self-learning, which leads to low efficiency of SRv6 SFC network.

[0047] In one embodiment, reference is made to Figure 3 , Figure 3 This is a flowchart illustrating an embodiment of the message transmission method of the present invention, as shown below. Figure 3 As shown, the message transmission method includes:

[0048] Step S10: When there is a fault between the first proxy node and the service node, the first proxy node adds a new encapsulation header to the original message to obtain the first message, and sends the first message to the second proxy node. The original message includes the original segmentation routing header.

[0049] In this embodiment, the original packet refers to an SRv6 packet containing a segmented routing header (SRH). After receiving the original packet from the service classification node (SC) or other nodes, the first proxy node can detect the link status between the first proxy node and the service node through BFD (Bidirectional Forwarding Detection) configured between the first proxy node and the service node. When a fault is detected between the first proxy node and the service node, a new encapsulation header is added to the original packet. It should be noted that, unlike the traditional method of using a backup proxy node (i.e., the second proxy node), the primary proxy node (i.e., the first proxy node) will strip the original segmented routing header (SRH) carried by the original packet, retaining the original packet and the original segmented routing header (SRH) carried by it. This allows the segmented routing header to be restored for the packet after the service node returns the packet, thus supporting dynamic proxy. The new encapsulation header can be encapsulated using the H.Encap method. Then, the encapsulated first packet is sent to the service node via the backup second proxy node. Here, the primary proxy node (first proxy node) and the backup proxy node (second proxy node) are only used for naming purposes and do not represent fixed hardware or software locations.

[0050] Step S20: The second proxy node decapsulates the first packet and stores the original segmented routing header.

[0051] In this embodiment, after the second proxy node receives the first message sent by the first proxy node, the second proxy node decapsulates the first message to obtain the original segmented routing header and the newly added encapsulation header, and stores the original segmented routing header. Therefore, it can restore the segmented routing header for the message after the service node returns the message to support dynamic proxy.

[0052] In step S30, the second proxy node strips the new encapsulation header and the original segmented routing header to obtain the second packet, and sends the second packet to the service node.

[0053] In this embodiment, the second proxy node strips the new encapsulation header and the original segmented routing header to obtain a second packet that does not contain SRH. The second packet that does not contain SRH is sent to the service node for processing, thereby realizing the dual-track protection access of the service node and completing the proxy forwarding task of SRv6 packets.

[0054] In this embodiment, the original packet is an SRv6 packet containing a segmented routing header (SRH). After receiving the original packet from the service classification node (SC) or other nodes, the first proxy node, upon detecting a fault between itself and the service node, adds a new encapsulation header to the original packet, retaining both the original packet and the original segmented routing header (SRH). The encapsulated first packet is then sent to the backup second proxy node. The second proxy node decapsulates the first packet, obtaining the original segmented routing header and the newly added encapsulation header. The original segmented routing header is stored, enabling the restoration of the segmented routing header after the service node returns a packet. The second proxy node then strips the new encapsulation header and the original segmented routing header, obtaining a second packet without the SRH. This second packet without the SRH is sent to the service node for processing, thus achieving dual-track protection access for the service node and completing the proxy forwarding task of the SRv6 packet. This allows the SRv6 SFC network to support dynamic proxying in dual-track protection scenarios, improving the efficiency of the SRv6 SFC network.

[0055] Furthermore, in one embodiment, the new encapsulation header includes a new destination address, and step S10 includes:

[0056] The first proxy node, based on the new destination address, looks up the routing table and sends the first packet to the second proxy node.

[0057] In this embodiment, the first proxy node sends the first packet to the second proxy node by looking up the routing table based on the new destination address in the newly added encapsulation header, which is the segment identifier of the second proxy node.

[0058] Further, in one embodiment, the original message also includes the original destination address, the new encapsulation header also includes a new segmentation routing header, the remaining segment count of the new segmentation routing header is 1, the segment identifier list of the new segmentation routing header is <dynamic proxy, segment identifier of the second proxy node>, the new destination address is the segment identifier of the second proxy node, and before step S10, it includes:

[0059] The first proxy node updates the original destination address of the original message to a dynamic proxy;

[0060] Before step S30, the following is included:

[0061] The second proxy node decrements the number of remaining segments in the new segment routing header by 1 and updates the new destination address to a dynamic proxy.

[0062] In this embodiment, the original packet includes the original segmentation routing header and the original destination address ipv6 da. The new encapsulation header includes the new destination address new ipv6 da and the new segmentation routing header. The segment identifier list SID list of the new segmentation routing header is <Dynamic Proxy (END.AD), Segment Identifier (SID) of the Second Proxy Node>. The remaining number of segments in the new segmentation routing header is set to SL=1, which is used to indicate that the new destination address new ipv6 da of the current node is the segment identifier (SID) of the second proxy node.

[0063] Before the first proxy node adds a new encapsulation header to the original packet, the original destination address of the original packet is updated to the dynamic proxy (END.AD) to indicate that dynamic proxy should be performed on the packet. Then, the first proxy node adds a new encapsulation header to the original packet. The resulting first packet can be seen as follows:

[0064] New ipv6 da=backup SFF END SID

[0065] ____________________

[0066] New Encap SRH sidlist(SL=1):

[0067] END.AD

[0068] backup SFF END SID

[0069] ____________________

[0070] ipv6 da = END.AD

[0071] ________________

[0072] SRH sidlist:

[0073] Tail Dt4 / 6SID

[0074] SID n

[0075] SID n-1 ...

[0077] SID a

[0078] END.AD

[0079] ________________

[0080] UserData

[0081] Where, backup SFF represents the backup proxy node, i.e., the second proxy node; UserData represents the data portion of the original packet; and the content above ipv6 da=END.AD, i.e., New ipv6 da=backup SFF END SID and NewEncap SRH sidlist (SL=1):<END.AD,backup SFF END SID> This section, the newly added encapsulation header, is the part between IPv6 da=END.AD and User Data, i.e., the SRH sidlist:<Tail Dt4 / 6SID,SIDn,SID n-1...SID a,END.AD> This part is the original segment routing header of the original message.

[0082] After receiving the first packet, the second proxy node executes SL-1, resulting in SL=0 and New ipv6 da=END.AD. At this point, the End.AD withusd condition is satisfied, and the newly added outer encapsulation header is removed. Meanwhile, the original destination address ipv6 da=END.AD, and SL is not 0, satisfying the condition of forwarding the packet to the service node. After removing the outer new encapsulation header and the inner original segmentation routing header, the second proxy node sends the second packet, which does not contain SRH content, to the service node.

[0083] Further, in one embodiment, after step S30, the following is included:

[0084] The service node processes the second message to obtain the third message, and then returns the third message to the second proxy node.

[0085] The second proxy node restores the segmented routing header for the third message based on the stored original segmented routing header, obtains the fourth message, and sends the fourth message to the next node.

[0086] In this embodiment, after receiving the second message, the service node performs related business processing such as firewall, load balancing, and address translation, and then returns a third message to the second proxy node. The second proxy node then restores the segmented routing header for the third message to obtain the fourth message, and the fourth message with the restored segmented routing header is then sent to the next node.

[0087] Furthermore, in one embodiment, the second proxy node recovers the segmented routing header for the third message based on the stored original segmented routing header, resulting in a fourth message including:

[0088] The second proxy node adds the stored original segmented routing header to the header of the third packet;

[0089] The number of remaining segments in the original segmented routing header is reduced by 1, and the original destination address is updated to the next segment identifier in the segment identifier list of the original segmented routing header, resulting in the fourth packet.

[0090] In this embodiment, the second proxy node restores the segmented routing header for the third packet returned by the service node. That is, it adds the previously stored original segmented routing header to the header of the third packet, and at the same time, it reduces the remaining number of segments in the original segmented routing header by SL-1, updates the original destination address to the next segment identifier in the segment identifier list of the original segmented routing header, and obtains the fourth packet. The fourth packet is then sent to the next node, that is, according to the next segment identifier in the segment identifier list of the updated original segmented routing header, the routing table is looked up and the fourth packet is sent to the next node.

[0091] Further, in one embodiment, the original message further includes a destination option extended header and a hop-by-hop option extended header, and after storing the original segmented routing header, it includes:

[0092] Store destination options extend the header and hop-by-hop options extend the header;

[0093] After restoring the segmented routing header for the third message, the following is included:

[0094] Extend the header for the third message recovery destination option and extend the header for the hop-by-hop option.

[0095] In this embodiment, when the original message also includes a destination option extension header and a hop-by-hop option extension header, the destination option extension header and the hop-by-hop option extension header are simultaneously stored and learned for subsequent recovery of the destination option extension header and the hop-by-hop option extension header for the third message. This enables simultaneous support for network slicing and IOAM (In-band Operation, Administration, and Maintenance) functions in the scenario of dual-pattern protection of SRv6 SFC network.

[0096] Furthermore, in one embodiment, the message transmission method further includes:

[0097] If a fault is detected between the second agent node and the service node, the system switches to the bypass protection path.

[0098] In this embodiment, if there is also a fault between the second proxy node and the service node, i.e., the dual-path protection is unavailable, then the system switches to the bypass protection path. The first proxy node sends the encapsulated first message to the proxy node of the bypass protection path. The message processing method between the proxy node of the bypass protection path and its corresponding service node, as well as the message processing method of the proxy node of the bypass protection path after the service node returns the message, can adopt the same method as described above.

[0099] Secondly, embodiments of the present invention also provide a message transmission device.

[0100] Reference Figure 4 , Figure 4 This is a schematic diagram of the functional modules of an embodiment of the message transmission device of the present invention.

[0101] In this embodiment, the message transmission device includes:

[0102] Add module 10, which is used to add a new encapsulation header to the original message to obtain the first message when there is a fault between the first proxy node and the service node, and send the first message to the second proxy node. The original message includes the original segmented routing header.

[0103] Storage module 20 is used by the second proxy node to decapsulate the first packet and store the original segmented routing header;

[0104] The stripping module 30 is used by the second proxy node to strip the new encapsulation header and the original segmented routing header to obtain the second packet, and then send the second packet to the service node.

[0105] Furthermore, in one embodiment, the new encapsulation header includes a new destination address, and the adding module 10 is used for:

[0106] The first proxy node, based on the new destination address, looks up the routing table and sends the first packet to the second proxy node.

[0107] Further, in one embodiment, the original message further includes the original destination address, the new encapsulation header further includes a new segmentation routing header, the remaining segment count of the new segmentation routing header is 1, the segment identifier list of the new segmentation routing header is <dynamic proxy, segment identifier of the second proxy node>, the new destination address is the segment identifier of the second proxy node, and the message transmission device further includes a first update module, used for:

[0108] The first proxy node updates the original destination address of the original message to a dynamic proxy;

[0109] It also includes a second update module, used for:

[0110] The second proxy node decrements the number of remaining segments in the new segment routing header by 1 and updates the new destination address to a dynamic proxy.

[0111] Furthermore, in one embodiment, the message transmission device further includes a first recovery module, the first recovery module comprising:

[0112] The processing unit is used by the service node to perform business processing on the second message, obtain the third message, and return the third message to the second agent node;

[0113] The recovery unit is used by the second agent node to recover the segmented routing header for the third message based on the stored original segmented routing header, obtain the fourth message, and send the fourth message to the next node.

[0114] Furthermore, in one embodiment, the recovery unit is used for:

[0115] The second proxy node adds the stored original segmented routing header to the header of the third packet;

[0116] The number of remaining segments in the original segmented routing header is reduced by 1, and the original destination address is updated to the next segment identifier in the segment identifier list of the original segmented routing header, resulting in the fourth packet.

[0117] Furthermore, in one embodiment, the original message further includes a destination option extended header and a hop-by-hop option extended header, and the message transmission device further includes a learning module for:

[0118] Store destination options extend the header and hop-by-hop options extend the header;

[0119] It also includes a second recovery module for:

[0120] Extend the header for the third message recovery destination option and extend the header for the hop-by-hop option.

[0121] Furthermore, in one embodiment, the message transmission device further includes a detection module, used for:

[0122] If a fault is detected between the second agent node and the service node, the system switches to the bypass protection path.

[0123] The functions of each module in the above-mentioned message transmission device correspond to the steps in the above-mentioned message transmission method embodiment, and their functions and implementation processes will not be described in detail here.

[0124] Thirdly, embodiments of the present invention provide a message transmission device.

[0125] The message transmission device includes a processor, a memory, and a message transmission program stored in the memory and executable by the processor, wherein when the message transmission program is executed by the processor, it implements the steps of the message transmission method as described above.

[0126] Fourthly, embodiments of the present invention also provide a readable storage medium.

[0127] The present invention provides a message transmission program stored on a readable storage medium, wherein when the message transmission program is executed by a processor, it implements the steps of the message transmission method described above.

[0128] The method implemented when the message transmission program is executed can be referred to in various embodiments of the message transmission method of the present invention, and will not be repeated here.

[0129] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or system. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element.

[0130] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0131] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes several instructions to cause a terminal device to execute the methods described in the various embodiments of the present invention.

[0132] The above are merely preferred embodiments of the present invention and do not limit the scope of the patent. Any equivalent structural or procedural transformations made based on the description and drawings of the present invention, or direct or indirect applications in other related technical fields, are similarly included within the scope of patent protection of the present invention.

Claims

1. A method of transmitting a packet, characterized by, The message transmission method includes: When there is a fault between the first proxy node and the service node, the first proxy node adds a new encapsulation header to the original message to obtain the first message, and sends the first message to the second proxy node. The original message includes the original segmentation routing header. The second proxy node decapsulates the first packet and stores the original segmented routing header; The second proxy node strips the new encapsulation header and the original segmented routing header to obtain the second packet, and sends the second packet to the service node; The original message also includes the original destination address. The new encapsulation header includes the new destination address. The new encapsulation header also includes a new segmentation routing header. The remaining segment count in the new segmentation routing header is 1. The segment identifier list in the new segmentation routing header is <dynamic proxy, segment identifier of the second proxy node>. The new destination address is the segment identifier of the second proxy node. Before the first proxy node adds the new encapsulation header to the original message, the message includes: The first proxy node updates the original destination address of the original message to a dynamic proxy; Before the second proxy node strips the new encapsulation header and the original segmented routing header to obtain the second packet, it includes: The second proxy node decrements the number of remaining segments in the new segment routing header by 1 and updates the new destination address to a dynamic proxy.

2. The packet transmission method of claim 1, wherein, The new encapsulation header includes a new destination address, and sending the first message to the second proxy node includes: The first proxy node, based on the new destination address, looks up the routing table and sends the first packet to the second proxy node.

3. The packet transmission method of claim 1, wherein, After the second message is sent to the service node, the following steps are included: The service node processes the second message to obtain the third message, and then returns the third message to the second proxy node. The second proxy node restores the segmented routing header for the third message based on the stored original segmented routing header, obtains the fourth message, and sends the fourth message to the next node.

4. The packet transmission method of claim 3, wherein, The second proxy node restores the segmented routing header for the third packet based on the stored original segmented routing header, resulting in the fourth packet, which includes: The second proxy node adds the stored original segmented routing header to the header of the third packet; The number of remaining segments in the original segmented routing header is reduced by 1, and the original destination address is updated to the next segment identifier in the segment identifier list of the original segmented routing header, resulting in the fourth packet.

5. The message transmission method of claim 3, wherein, The original message also includes a destination option extended header and a hop-by-hop option extended header, following the storage of the original segmented routing header, and includes: Store destination options extend the header and hop-by-hop options extend the header; After restoring the segmented routing header for the third message, the following is included: Extend the header for the third message recovery destination option and extend the header for the hop-by-hop option.

6. The packet transmission method of claim 1, wherein, The message transmission method further includes: If a fault is detected between the second agent node and the service node, the system switches to the bypass protection path.

7. A packet transmission apparatus characterized by comprising: The message transmission device includes: An add module is used to add a new encapsulation header to the original message when there is a fault between the first proxy node and the service node, so as to obtain the first message and send the first message to the second proxy node. The original message includes the original segmented routing header. The storage module is used by the second proxy node to decapsulate the first packet and store the original segmented routing header; The stripping module is used by the second proxy node to strip the new encapsulation header and the original segmented routing header to obtain the second packet, and then send the second packet to the service node. The original message also includes the original destination address. The new encapsulation header includes the new destination address. The new encapsulation header also includes a new segmentation routing header. The remaining segment count in the new segmentation routing header is 1. The segment identifier list in the new segmentation routing header is <Dynamic Proxy, Segment Identifier of Second Proxy Node>. The new destination address is the segment identifier of the second proxy node. The message transmission device also includes a first update module, used for: The first proxy node updates the original destination address of the original message to a dynamic proxy; The message transmission device further includes a second update module, used for: The second proxy node decrements the number of remaining segments in the new segment routing header by 1 and updates the new destination address to a dynamic proxy.

8. A packet transmission apparatus characterized by comprising: The message transmission device includes a processor, a memory, and a message transmission program stored in the memory and executable by the processor, wherein when the message transmission program is executed by the processor, it implements the steps of the message transmission method as described in any one of claims 1 to 6.

9. A readable storage medium, characterized by, The readable storage medium stores a message transmission program, wherein when the message transmission program is executed by a processor, it implements the steps of the message transmission method as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Message transmission method, proxy node and storage medium

    CN112787931A