A service routing method and device

By carrying the service node address information in the message, the problem of high cost of CFN routing nodes is solved, the stickiness of the session flow is maintained and the service node is quickly switched, and the reliability and efficiency of the system are improved.

CN112491717BActive Publication Date: 2024-10-22HUAWEI TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN201910867138.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-09-12
Publication Date
2024-10-22
Estimated Expiration
2039-09-12

AI Technical Summary

Technical Problem

In edge computing and IoT scenarios where Computational First Network (CFN) handles huge amounts of access, routing nodes need to establish a huge number of session flow tables to ensure line-speed forwarding of service packets and session flow stickiness, resulting in a large cost burden. .

Method used

By carrying the service node address information in the packet, the routing node does not need to save the path information table, thereby reducing the load, maintaining the dynamic nature of the service routing while maintaining the stickiness of the session flow, and realizing fast switching and overload management of the service node.

Benefits of technology

It reduces the forwarding burden of routing nodes, improves session reliability and flow stickiness, reduces costs, and can quickly switch to other available nodes when the service node is unavailable.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112491717B_ABST
    Figure CN112491717B_ABST
Patent Text Reader

Abstract

The present application provides a service routing method and device to solve the problem of high cost burden of current CFN Router. The method includes: a first routing node receives a first message, the first message carries service identification information and first service node address information, and forwards the first message based on the first service node address information. The service identification information is used to represent the identification of the first service provided by at least two service nodes including the first service node, and the first service node address information is used to represent the address of the first service node.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a service routing method and device. Background Art

[0002] The computing first network (CFN) proposes that the Internet Protocol (IP) address of the service node is replaced by a message with a service identification (ID) as the destination. That is, the edge computing nodes that provide the same service expose the same IP address (i.e., service ID) to the CFN. When a user initiates a service request, the computing router device / computing node (hereinafter referred to as CFN Router / CFN Node) can select a suitable service node from among many service nodes to provide services to the user based on the service ID combined with the real-time network and service status.

[0003] When performing service routing, CFN Router needs to provide flow stickiness guarantee for service packets belonging to the same session, that is, to direct service packets belonging to the same session to the same service node. The usual practice is to establish a path information table in CFNRouter based on the attributes of the service. The path information table records the path information of the session, such as source address, service ID, service node IP and other information, so that service packets belonging to the same session can be directed to the same service node according to the path information table.

[0004] The rise of edge computing and the Internet of Things will bring about a massive amount of access. To achieve line-speed forwarding of service messages and maintain the stickiness of each session flow, CFN Router needs to establish a huge number of session flow tables, which imposes a heavy cost burden on CFN Router. Summary of the invention

[0005] The present application provides a service routing method and device to solve the problem of heavy cost burden of current CFN Router.

[0006] In a first aspect, a service routing method of an embodiment of the present application includes: a first routing node receives a first message, the first message carries service identification information and first service node address information, and forwards the first message based on the first service node address information. The service identification information is used to represent the identification of a first service provided by at least two service nodes including the first service node, and the first service node address information is used to represent the address of the first service node.

[0007] Subsequent messages of the service in the embodiment of the present application can carry the service node address information, so that the routing node can obtain the service node address information from the message without saving the path information table. Through the service routing method provided by the embodiment of the present application, the routing node does not need to maintain the path information table for recording the service forwarding information (or status), thereby reducing the load of the routing node, and maintaining the flow viscosity of the session while maintaining the dynamic nature of the service routing.

[0008] In a possible design, when the first routing node forwards the first message based on the first service node address information, it can first determine whether the first service node corresponding to the first service node address information is available. If the first service node is available, the first routing node forwards the first message to the first service node. Alternatively, if the first service node is unavailable, the first routing node forwards the first message according to the service identification information. In the above manner, the routing node can quickly switch to other available service nodes when the first service node is unavailable.

[0009] In one possible design, the first routing node can determine whether the first service node is available based on a filter list, where the filter list is used to indicate that one or more service nodes are unavailable. In the above design, by storing the filter list in the first routing node, it can be ensured that the first message is directed to an available service node, thereby improving the reliability of the session.

[0010] In a possible design, the service node is unavailable, which may refer to the service node being overloaded or faulty or the message being unreachable. The message being unreachable may refer to the message being unable to reach the service node due to network congestion. Through the above design, the first routing node may also achieve a balance of service nodes.

[0011] In one possible design, before the first routing node determines whether the first service node is available based on the filter list, the first routing node may determine that the first service node is unavailable, update the filter information to the filter list, and broadcast the filter information, where the filter information is used to indicate that the first service node is unavailable. In the above design, the routing node can monitor the status and availability of the service node in real time, and establish a filter list through control plane diffusion, so that the service node can quickly switch to other available service nodes when overloaded or failover occurs.

[0012] In a possible design, before the first routing node determines whether the first service node is available based on the filter list, the first routing node may also receive the filter information broadcast by the second routing node and update the filter information to the filter list, where the filter information is used to indicate that the first service node is unavailable. In the above design, the routing node may also receive the filter information diffused by other routing nodes to establish a filter list, so that the service node can quickly switch to other available service nodes when overloaded or failover occurs.

[0013] In a possible design, after the first routing node forwards the first message according to the service identification information, the first routing node sends a connection reset message to the client node, and the connection service message can be used to trigger the client node to re-initiate a Transmission Control Protocol TCP connection. In the above design, the routing node can trigger the client node to reconnect when it finds that the service node is unavailable, thereby reducing the interruption delay of the session.

[0014] In a possible design, after the first routing node forwards the first message according to the service identification information, the method further includes: the first routing node obtains the address information of the second service node, the second service node address information is used to represent the address of the second service node, the first routing node sends the second service node address information, and the at least two service nodes include the second service node. Through the above design, the vCFN node can obtain the new service node address information after the service node is switched, thereby improving the reliability of the session.

[0015] In one possible design, before the first routing node receives the first message from the client node, the first routing node can obtain the first service node address information. The first routing node sends a second message, and the second message carries the first service node address information. Through the above design, the vCFN can obtain the first service node address information, so that the first service node address information can be carried in subsequent messages.

[0016] In a possible design, before the first routing node obtains the first service node address information, the first routing node receives a third message, the third message carrying the service identification information. Through the above design, the first routing node can send the first service node address information under the triggering of the first message.

[0017] In a possible design, the third message carries request information for requesting the address information of the first service node. In the above design, the first routing node may send the address information of the first service node under an explicit request.

[0018] In a possible design, the request information may be carried in an IP extension field of the third message. Alternatively, the request information may also be carried in a destination address field of the third message, and the request information is the service node address information set to a preset value.

[0019] In a possible design, the first message may also carry routing node identification information, and the routing node identification information is used to represent the common identification of multiple routing nodes. Through the above design, subsequent messages can pass through the routing node, so that they can be forwarded by the routing node, and then when the service node is unavailable, they can be switched to other service nodes under the control of the routing node.

[0020] In one possible design, the SRV6 header of the first message may carry the service identification information and the first service node address information. Alternatively, the destination address field of the first message may also carry the service identification information and the first service node address information. Alternatively, the IP extension field of the first message may also carry the service identification information and the first service node address information.

[0021] In the second aspect, the service routing method of the embodiment of the present application includes: a session maintaining device obtains a first message, the first message carries service identification information, wherein the service identification information is used to characterize the identification of a first service provided by at least two service nodes. The session maintaining device adds the first service node address information in the first message and sends it to the routing node, wherein the first service node address information is used to characterize the address of the first service node, and the at least two service nodes include the first service node. In the embodiment of the present application, the session maintaining device can add the service node address information in subsequent messages of the service, so that the routing node can obtain the path information from the message without saving the path information table. The service routing method provided by the embodiment of the present application can reduce the burden on the path information table of the forwarding plane of the routing node, and the session maintaining device can maintain the flow viscosity of the session while maintaining the dynamic nature of the service routing.

[0022] In a possible design, when the session maintaining device adds the first service node address information in the first message and sends it to the routing node, it can add the first service node address information and routing node identification information in the first message and send it to the routing node, and the routing node identification information is used to represent the common identification of multiple routing nodes. In the above design, by adding the routing node identification information in the message, subsequent messages can pass through the routing node, so that they can be forwarded by the routing node, and then when the service node is unavailable, they can be switched to other service nodes under the control of the routing node.

[0023] In one possible design, before the session maintaining device adds the first service node address information in the first message, the session maintaining device can search for the first service node address information in the path information table based on the source address information and service identification information carried by the first message, and the path information table records the mapping relationship between one or more sessions and the service node address information. In the embodiment of the present application, by introducing a vCFN device to record the status of the service session (such as the service node address information), the vCFN device obtains the service node address information by an explicit or implicit method, so that a path mapping relationship for the Service ID can be established, and then the subsequent messages sent by the client node can carry the service node address information through the vCFN device, so that the routing node can obtain the service node address information from the message without saving the path information table.

[0024] In a possible design, before the session maintaining device adds the first service node address information to the first message and sends it to the routing node, the session maintaining device can receive a second message from the routing node or the service node, the second message carrying the service identification information and the first service node address information; the session maintaining device records the first service node address information in the path information table. Through the above design, the session maintaining device can obtain the service node address information, so as to maintain the path information table.

[0025] In one possible design, before the session holding device receives the second message from the routing node or the service node, the session holding device can send a third message to the routing node, and the third message carries the service identification information. In the above design, the session holding device can obtain the service node address information through the first message request.

[0026] In a possible design, the third message may carry service identification information and request information for requesting the address information of the first service node. Through the above design, the session maintaining device may explicitly request to obtain the address information of the service node.

[0027] In a possible design, the request information may be carried in the IP extension field of the third message. Alternatively, the request information may be carried in the destination address field of the third message, and the request information is the service node address information set to a preset value.

[0028] In a possible design, after the session maintaining device adds the first service node address information in the first message and sends it to the routing node, the session maintaining device can receive a fourth message from the routing node or the service node, the fourth message carries service identification information and second service node address information, wherein the second service node address information is used to characterize the address of the second service node, and at least two service nodes include the second service node; the session maintaining device updates the first service node address information recorded in the path information table to the second service node address information. Through the above design, the session maintaining device can update the path information table in time after the service node is switched, thereby improving the reliability of the session.

[0029] In one possible design, the session maintaining device may add the first service node address information in the SRV6 header of the first message; or, the session maintaining device may add the first service node address information in the destination address field of the first message; or, the session maintaining device may add the first service node address information in the IP extension field of the first message.

[0030] On the third aspect, the service routing method of the embodiment of the present application includes: the service node generates a first message, the first message carries service identification information, and sends it after adding service node address information in the first message, the first service node address information is used to characterize the address of the first service node, at least two service nodes include a service node, and the service node address information is used to characterize the address of the service node. In the embodiment of the present application, the service node can send the service node address information to the session maintenance device, so that the session maintenance device saves the service node address information, and then the session maintenance device can maintain the flow viscosity of the session while maintaining the dynamic nature of the service routing. Through the above method, the routing node does not need to save the path information table, thereby reducing the burden of the path information table of the forwarding plane of the routing node.

[0031] In a possible design, before the service node adds the service node address information in the first message, the service node can receive a second message, the second message carrying the service identification information. Through the above design, the service node can send the service node address information under the trigger of the first message.

[0032] In a possible design, the second message may carry request information for requesting the service node address information. In the above design, the service node may send the first service node address information under an explicit request.

[0033] In one possible design, the IP extension field of the second message may carry request information; or, the destination address field of the second message may also carry request information, where the request information is service node address information set to a preset value.

[0034] In one possible design, the service node may add the service node address information in the SRV6 header of the first message; or, the service node may add the service node address information in the IP extension option of the first message; or, the service node may add the service node address information in the destination address field of the first message.

[0035] In a possible design, the service node may also add routing identification information in the first message, and the routing identification information is used to represent the common identification of multiple routing nodes. In the above design, by adding routing node identification information in the message, subsequent messages can pass through the routing node, and thus can be forwarded by the routing node, and then can be switched to other service nodes under the control of the routing node when the service node is unavailable.

[0036] In a fourth aspect, the present application provides a service routing device, which may be a network device, or a chip or chipset in a network device, wherein the network device may be a routing node, a session holding device, or a service node. The device may include a processing unit and a transceiver unit. When the device is a network device, the processing unit may be a processor, and the transceiver unit may be a communication interface; the device may also include a storage unit, and the storage unit may be a memory; the storage unit is used to store instructions, and the processing unit executes the instructions stored in the storage unit to enable the routing node to perform the corresponding function in the first aspect above, or to enable the session holding device to perform the corresponding function in the second aspect above, or to enable the service node to perform the corresponding function in the third aspect above. When the device is a chip or chipset in a routing node, the processing unit may be a processor, and the transceiver unit may be an input / output interface, a pin or a circuit, etc.; the processing unit executes the instructions stored in the storage unit to enable the routing node to perform the corresponding function in the first aspect above, or to enable the session holding device to perform the corresponding function in the second aspect above, or to enable the service node to perform the corresponding function in the third aspect above. The storage unit may be a storage unit (eg, register, cache, etc.) within the chip or chipset, or may be a storage unit (eg, read-only memory, random access memory, etc.) within the routing node and located outside the chip or chipset.

[0037] In a fifth aspect, the present application also provides a computer-readable storage medium, wherein the computer-readable storage medium includes instructions, and when the computer-readable storage medium is run on a computer, the computer executes the methods described in the above aspects.

[0038] In a sixth aspect, the present application also provides a computer program product comprising instructions, which, when executed, enables the methods described in the above aspects to be executed.

[0039] In a seventh aspect, the present application provides a chip, the chip comprising a processor and a communication interface, the communication interface is used to receive code instructions and transmit them to the processor. The processor is used to call the code instructions transmitted by the communication interface to execute the methods described in the above aspects. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 A schematic diagram of session flow stickiness provided for this application;

[0041] Figure 2 A schematic diagram of a binary information matching process provided in this application;

[0042] Figure 3 A schematic diagram of the architecture of a communication system provided for this application;

[0043] Figure 4 A schematic diagram of the architecture of a communication system provided for this application;

[0044] Figure 5 A flowchart of a service routing method provided for this application;

[0045] Fig. 6A A coding schematic diagram provided for this application;

[0046] Figure 6B A message guidance diagram provided for this application;

[0047] Figure 7 A schematic diagram of a process of obtaining path information of a vCFN provided by the present application;

[0048] Figure 8 A schematic diagram of a process of a client node sending a subsequent message provided by the present application;

[0049] Fig. 9 A schematic diagram of another process of obtaining path information of vCFN provided by this application;

[0050] Fig.10 A schematic diagram of another process of obtaining path information of vCFN provided by the present application;

[0051] Fig.11 A schematic diagram of a process of a client node sending a subsequent message to a first service node provided in the present application;

[0052] Fig.12 A schematic diagram of another process of obtaining path information of vCFN provided by the present application;

[0053] Fig.13 A schematic diagram of a session flow stickiness process provided by this application;

[0054] Fig.14 A schematic diagram of another process of a client node sending a subsequent message to a first service node provided in the present application;

[0055] Fig.15 A schematic diagram of the structure of a service routing device provided by this application;

[0056] Fig.16 A schematic diagram of the structure of a service routing device provided in this application. DETAILED DESCRIPTION

[0057] To facilitate understanding of the embodiments of the present application, the following terms related to the embodiments of the present application are introduced:

[0058] 1. Service ID: Currently, the Internet Protocol Anycast (IPanycast) technology can be used for addressing between different edge computing nodes, that is, the edge computing nodes (also called service nodes) that provide the same service expose the same Internet Protocol (IP) address to the network, and the IP address can be regarded as the Service ID. Alternatively, it can also be understood that the service nodes that provide the same service correspond to the same identifier, which is the Service ID.

[0059] 2. Service IP address: IP address of the service node.

[0060] 3. CFN RIB: The routing node obtains the calculated routing table of the Service ID based on the service diffusion protocol and the measured network status.

[0061] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.

[0062] With the rise of 5G, smart cities, and the Internet of Things, the analysis and storage of massive data poses a huge challenge to network bandwidth. Since many data streams are generated by terminal devices (such as user devices), it is impossible to make real-time decisions through cloud computing processing and analysis, resulting in serious network latency. Therefore, compared to cloud computing, using edge computing nodes (such as access room servers or aggregation room servers close to users) to provide services for user devices can greatly reduce the network overhead and network waiting time due to the short transmission path and low latency.

[0063] Currently, computing first network (CFN) proposes to use Service ID instead of Service IP as the destination address of the message. The computing router device / computing node (hereinafter referred to as CFN Router / CFNNode) can select a suitable service node to access from many service nodes based on the real-time network and service status.

[0064] Due to the dynamics of services and networks (such as service load, network congestion, etc.), CFN Router may select different service nodes for addressing the same Service ID at different times. When performing service routing, CFNRouter needs to provide flow stickiness guarantee for messages belonging to the same session, that is, to direct messages belonging to the same session to the same service node. The usual practice is to establish a path information table in CFN Router according to the attributes of the service. The path information table records the 5-tuple or 2-tuple flow table of the session, wherein the 5-tuple flow table may include source address (referred to as SRC IP), source port (referred to as SRC PORT), Service ID (referred to as SERV ID), service port (referred to as SERV PORT), transmission protocol (referred to as Protocol), and path information (referred to as PATH INFO), wherein the path information may be Service IP: Service ID, or the path information may also be CFN ID: Service IP: Service ID, as shown in Table 1. The 2-tuple flow table may include source address (SRC IP), SERV ID, and path information, as shown in Table 2.

[0065] Table 1

[0066]

[0067] Table 2

[0068]

[0069] Among them, TCP is the abbreviation of transmission control protocol.

[0070] like Figure 1 As shown in the figure, service node 1, service node 2, and service node 3 all provide Service A. Among them, Edge 2 has the lowest load and the smallest delay. The packets with Service A as the destination will be directed to the service node 2 site, and a forwarding flow table will be established to continuously direct the service packets belonging to the same session to service node 2 to ensure the flow stickiness of the service.

[0071] The CFN node can match the five-tuple information or two-tuple information of the message with the path information table, and then forward it according to the matching result. The matching process of the two-tuple information can be as follows: Figure 2 As shown. After receiving the message, the CFN node matches the source address of the message with the SRC IP table entry in the path information table. If there is no match, the message is discarded. If the source address matches successfully, the destination address of the message is matched with the SERV ID table entry in the session flow table where the source address matches successfully. If there is no match, the message is discarded. If the destination address matches successfully, the transmission protocol information of the message is matched with the Protocol table entry in the session flow table where the destination address matches successfully. If there is no match, the message is discarded. If the transmission protocol matches successfully, the message is forwarded according to the path information in the session flow table where the transmission protocol matches successfully.

[0072] The rise of edge computing and the Internet of Things will bring about a massive amount of access. To achieve line-speed forwarding of service messages and maintain the stickiness of each session flow, CFN Router needs to establish a huge number of session flow tables, which imposes a heavy cost burden on CFN Router.

[0073] Based on this, the embodiment of the present application provides a service routing method and device for solving the problem of high cost burden of CFNRouter in the prior art. The method and the device are based on the same inventive concept. Since the principles of solving the problem by the method and the device are similar, the implementation of the device and the method can refer to each other, and the repeated parts will not be repeated.

[0074] The embodiments of the present application can be applied in a communication system, which may include routing nodes and service nodes, wherein a routing node can be connected to one or more service nodes. Routing nodes can be used to provide service routing, such as routing service messages sent by user devices to service nodes, wherein the service routing node that the user device first accesses can be called a network entry (Ingress) node, and other service routing nodes can be called network exit (Egress) nodes. The Ingress node can be responsible for routing messages sent by users to the Egress node, and the Egress node can be responsible for routing messages sent by users to the service node. In a specific implementation, the Egress node can also be the Ingress node itself. A service node refers to a node that provides services to users, and may also be called an edge computing node, etc. For example, Figure 3 A schematic diagram of a communication system structure is shown. It should be understood that Figure 3 This is only an exemplary description and does not specifically limit the number of service routing nodes and service nodes included in the communication system.

[0075] The embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0076] The present application designs a device for carrying computing services, which can be called a session holding device (virtual computing first network, vCFN). The session holding device can maintain a path information table, which records the path information of one or more sessions, wherein the path information can include service node address information, routing node address information, and service identification information.

[0077] vCFN can be deployed before computing routing nodes. For example, vCFN can be deployed on client nodes, such as personal computers (PCs), mobile phones, tablets, laptops, PDAs, mobile internet devices (MIDs), wearable devices, such as smart watches, smart bracelets, pedometers, etc. vCFN can also be deployed at any physical location between the client node and the routing node, such as: broadband remote access server (BRAS), user plane function (UPF), and even the routing node itself (physically integrated, logically isolated). vCFN is used to maintain the flow stickiness of the session by unloading the path information table from the routing node to the vCFN, thereby reducing the light load of the routing node. For example, Figure 4 shown.

[0078] For the convenience of description. Hereinafter, the device used to carry computing services will be referred to as vCFN, and the routing node will be referred to as CFN node. It should be understood that vCFN and CFN node are only exemplary names, and they may be named as others in specific implementations. As long as the node can carry computing services, it can be understood as the vCFN involved in the embodiments of the present application, and as long as the node can implement service routing, it can be understood as the routing node involved in the embodiments of the present application.

[0079] For services that need to maintain session flow stickiness, that is, the packets of the same service need to be directed to the same service node, vCFN can establish and maintain a path information table, which records the mapping relationship between one or more service sessions and path information to maintain service stickiness. The mapping table supports multiple types such as two-tuple and five-tuple, as shown in Table 3.

[0080] Table 3

[0081]

[0082] TTL is the survival time value (time to live).

[0083] The present application embodiment provides a service routing method that can be Figure 5 As shown, this method can be applied as Figure 4 The communication system shown in FIG. 1 , the method specifically comprises:

[0084] S501, the vCFN obtains a first message, wherein the first message carries service identification information, wherein the service identification information is used to represent the identification of a first service provided by at least two service nodes. One or more nodes can provide the first service, and the first service corresponds to an identification.

[0085] In an exemplary description, the service identification information may be a service ID of the service, a code of an Sservice ID of the service, an index of an Sservice ID of the service, etc. The following description is made by taking the service identification information as Service ID as an example.

[0086] In one implementation, the vCFN may be deployed on a client node, and the first message may be obtained by the vCFN functional module from within the client node.

[0087] In another implementation manner, the vCFN may be deployed outside the client node, and the first message may be sent by the client node to the vCFN.

[0088] S502, the vCFN adds the first service node address information to the first message and sends it to the CFN node, wherein the first service node address information is used to represent the address of the first service node, and the at least two service nodes may include the first service node. Correspondingly, the CFN node receives the first message.

[0089] Optionally, the vCFN may add path information to the first message, and the path information may include at least the first service node address information.

[0090] Exemplarily, the first service node address information may be the service IP of the first service node, the first service node address information may also be the encoding of the Sservice IP of the first service node, the first service node address information may also be the index of the Sservice IP of the first service node, etc.

[0091] In an exemplary description, for the encoding of Sservice IP, the path information (PATH INFO) = CFNID->Service IP->Service ID can be encoded to generate the destination path key (Destination Path Key) = encoding definition->CFN ID->Service IP->Service ID. For example, the encoding can be defined as FCC6: 4-byte encoding (EG:FCC6:00000001), or FCC4: 2-byte encoding (EG:FCC4:0001). Taking the Destination Pathkey with the encoding definition of FCC6 as an example, it can be as follows Fig. 6A shown.

[0092] In one implementation, vCFN may be deployed on a client node, and step S402 may be executed by the client node, specifically, by a vCFN functional module of the client node. For example, the first message obtained by the vCFN functional module from the client node may carry a Service ID. The vCFN functional module searches for the corresponding first service node address information based on the tuple information (such as binary information, triple information, quadruple information, quintuple information, etc.) of the first message, adds the service node address information to the first message based on the first service node address information, and sends the message to the CFN node.

[0093] In another implementation, the vCFN may be deployed outside the client node, and step S402 may be performed by the vCFN. For example, the client node may transmit a first message to the vCFN, and the transmitted first message may carry a Service ID. The vCFN searches for the corresponding first service node address information according to the multi-tuple information (such as two-tuple information, three-tuple information, four-tuple information, five-tuple information, etc.) of the first message, and forwards the message to the CFN node after adding the service node address information to the first message according to the first service node address information.

[0094] Taking the two-tuple information as an example, the vCFN can search for the first service node address information in the path information table according to the source address and service identification information carried by the first message. Further, the vCFN can search for the corresponding path information in the path information table according to the source address and service identification information carried by the first message, and then obtain the first service node address information from the found path information. The specific process of searching for path information is similar to Figure 2 Similar, the similarities will not be repeated.

[0095] Exemplarily, the vCFN may add the first service node address information to the SRV6 header of the first message. Alternatively, the vCFN may add the first service node address information to the destination address field of the first message. Alternatively, the vCFN may add the first service node address information to the IP extension field of the first message.

[0096] Furthermore, vCFN can also add routing node identification information in the first message, which can also be understood as the path information can also include routing node identification information. The routing node identification information is used to represent the common identification (CFNID) of multiple CFN nodes. For example, multiple CFN nodes can correspond to the same IP address, and the CFNID can be the IP address. Correspondingly, the first message received by the CFN node can also carry routing node identification information.

[0097] Optionally, the routing node identification information may be a common identification of some specific routing nodes, and these routing nodes may have functions such as rerouting and monitoring the status of service nodes. By adding routing node identification information in the first message, the first message can pass through a specific routing node, so that the routing node can switch the first message to other available service nodes in a timely manner when monitoring that the first service node is unavailable, thereby improving the reliability of the session.

[0098] Exemplarily, the routing node identification information may be a CFNID, the routing node identification information may also be a code of the CFNID, or the routing node identification information may be an index of the CFNID.

[0099] S403: The CFN node forwards the first message based on the first service node address information.

[0100] In one implementation manner, the first service node is available, and the CFN node forwards the first message to the first service node.

[0101] In another implementation manner, the first service node is unavailable, and the CFN node forwards the first message based on the service identification information.

[0102] Further, the CFN node can be addressed based on the service identification information. For example, the CFN node can address the next hop according to the CFNRIB, the next hop is the Egress node, and the first message is forwarded to the Egress node. The Egress node further addresses according to the CFN RIB addressing, determines the second service node, and forwards the first message to the second service node. The at least two service nodes mentioned above may also include a second service node. The Egress node and the CFN node may be two different CFN nodes, and the Egress node and the CFN node may be the same CFN node. In this case, the CFN node can determine the second service node according to the CFN RIB addressing and forward the first message.

[0103] When the first service node is unavailable, a new service node (i.e., the second service node), CFN node, or vCFN can terminate the currently unavailable service, such as initiating a connection reset (TCP Reset) to notify the client node to re-initiate the TCP connection, so that the client node can quickly reconnect to the service.

[0104] In some embodiments, the CFN node may determine whether the first service node is available based on a filter list, and the filter list is used to indicate that one or more service nodes are unavailable. The unavailability of the service node may refer to an overload or failure of the service node or an unreachable message. The unreachable message may refer to network congestion causing the message to be unable to reach the service node, etc. For example, the CFN node may match the service identification information and the service node address information carried by the first message with the filter list. If the match is successful, it can be determined that the first service node is unavailable, otherwise it can be determined that the first service node is available.

[0105] Before the CFN node determines whether the first service node is available based on the filtering list, the CFN node may record filtering information of the first service node in the filtering list, where the filtering information is used to indicate that the first service node is unavailable.

[0106] In one implementation, the CFN node may update the filtering information to the filtering list when determining that the first service node is unavailable. Further, the CFN node may also broadcast the filtering information.

[0107] In another implementation manner, the CFN node may also update the filtering information into the filtering list by receiving the filtering information broadcasted by other CFN nodes.

[0108] Take the service ID serviceA as an example. Figure 6BAs shown in the figure, since the MEC0 node is unavailable, CFN nodes 0 to 3 add filtering information indicating that the MEC0 node is unavailable in their own saved filtering list, and the messages of ServiceA will be directed to other service nodes, such as MEC1, MEC2, and MEC3. Among them, MEC node is a service node.

[0109] In one implementation, when the first service node is unavailable and switches to the second service node, the second service node or routing node may send a fourth message to the vCFN, and the fourth message may carry new path information, and the new path information includes the second service node address information used to characterize the address of the second service node. Accordingly, the vCFN may receive the fourth message. The vCFN may match and compare the path information in the fourth message with the established path information, and update the mapping relationship between the session and the path information if they are inconsistent.

[0110] In an exemplary description, the process of the vCFN acquiring the address information of the first service node may be:

[0111] A1. The CFN node obtains address information of the first service node.

[0112] CFN nodes can obtain path information in any of the following ways:

[0113] Method 1: The CFN node is both a CFN Ingress and a CFN Egress, so the CFN node can determine the address information of the first service node after addressing the first service node. Optionally, the CFN node can determine the path information after addressing the first service node, and the path information includes the first service node address information, and can also include routing node identification information, and can also include service identification information, etc.

[0114] Mode 2: The CFN node is CFN Ingress, and CFN Egress is another CFN node. In this case, the CFN node can obtain the first service node address information from CFN Egress. Optionally, the CFN node can obtain path information from CFNEgress, and the path information includes the first service node address information, and may also include routing node identification information, service identification information, and the like.

[0115] A2: The CFN node sends a third message to the vCFN, where the third message carries the address information of the first service node.

[0116] A3. After receiving the third message, the vCFN obtains the address information of the first service node and records the address information of the first service node in the path information table.

[0117] Optionally, after receiving the third message, the vCFN obtains path information including the address information of the first service node, and records the path information in a path information table.

[0118] Furthermore, in step A1, the CFN node may obtain the first service node address information by triggering the first packet of the customer node, wherein the first packet may be a message that does not have the corresponding first service node address information in the path information table. The process of triggering by the first packet may be as follows:

[0119] K1, vCFN receives a second message transmitted by an application of a client node, where the second message carries service identification information.

[0120] In addition, the second message may also carry request information for requesting the address information of the first service node.

[0121] Exemplarily, the IP extension field of the second message may carry the request information; or, the destination address field of the second message may also carry the request information, wherein the request information is the service node address information set to a preset value.

[0122] K2: The vCFN determines that the path information table does not contain the service node address information of the second message.

[0123] K3, vCFN forwards the second message to the CFN node (CFN Ingress), and the CFN node addresses the next hop according to the CFN RIB, and the next hop is the CFN egress node (CFN Egress), until the first service node, wherein the CFN Ingress and the CFN Egress can be the same node or different nodes.

[0124] In one implementation, the vCFN may transparently transmit the second message to the CFN ingress node.

[0125] In another implementation, the vCFN may also forward the request information for requesting the path information in the second message to the CFN ingress node.

[0126] In step A1, the CFN node may obtain the first service node address information may also be triggered by service node switching. For example, when the service node is switched from another service node to the first service node, the CFN node obtains the first service node address information and sends it to the vCFN.

[0127] In another exemplary description, the process of the vCFN acquiring the address information of the first service node may also be:

[0128] P1, the first service node sends a third message to the vCFN. The third message carries the address information of the first service node.

[0129] Exemplarily, the service node may add the first service node address information in the SRV6 header of the third message; or, the service node may add the first service node address information in the IP extension option of the third message; or, the service node may add the first service node address information in the destination address field of the third message.

[0130] In addition, the service node may also add routing identification information to the third message.

[0131] P2. After receiving the third message, the vCFN obtains the address information of the first service node and records the address information of the first service node in the path information table.

[0132] Furthermore, in step P1, the first service node sending the first service node address information to the vCFN may be triggered by the first packet of the client node. The process of being triggered by the first packet may refer to the above K1 to K3.

[0133] In step P1, the first service node sending the first service node address information to the vCFN may also be triggered by service node switching. For example, when the service node is switched from another service node to the first service node, the first service node sends the first service node address information to the vCFN.

[0134] In order to better understand the service routing method provided in the embodiment of the present application, the routing process of the message is described in detail below in combination with the specific message format. For the convenience of description, the information set including service node address information, routing node information, and service identification information is referred to as path information below. In embodiment 1, the path information is carried in the SRV6 header of the message.

[0135] The process of vCFN obtaining path information through the first packet and the response message of the first packet can be as follows: Figure 7 As shown:

[0136] B1. The format of the second message sent by the client node may be second message=(SRC:UE, DST:SID)payload.

[0137] B2: vCFN transparently transmits the second message to CFN Ingress.

[0138] B3, CFN Ingress addresses CFN Egress and forwards the second message to CFN Egress. The format of the second message forwarded by CFN Ingress may be second message=(SRC: UE, DST: CFN Egress) SRH(SID, CFNEgress, SL=2) payload.

[0139] B4, CFN Egress addresses the first service node and forwards the second message to the server network port of the first service node. The format of the second message forwarded by the CFN Egress may be second message = (SRC: UE, DST: SIP1) SRH (SID, SIP1, SL = 1) payload.

[0140] Among them, after addressing based on the second message, CFN Ingress and CFNCFN Egress can forward the second message to the first service node by using segment routing / source routing (segment routing, SR) or a tunnel.

[0141] B5, the server network port of the first service node forwards the second message to the server local loopback interface (loopback) of the first service node. The format of the second message forwarded by the first service node can be second message = (SRC: UE, DST: SID) SRH (SID, SIP1, SL = 0) payload.

[0142] In the message format, SRC represents the source address, DST represents the destination address, payload is data, SRH() is the SRV6 header, SID represents the Service ID of the target service, SIP1 represents the ServiceIP of the first service node, CFNEgress represents the IP address of CFN Egress, and SL represents the number of routing hops.

[0143] B6, the server loopback of the first service node sends a third message to the server network port of the first service node. The format of the third message sent by the server loopback of the first service node can be third message = (SRC: SID, DST: SIP1) SRH (UE, CFN ID, SIP1, SL = 2) payload.

[0144] B7, after receiving the third message, the server network port of the first service node forwards it to CFNIngress. The format of the third message forwarded by the first service node can be third message = (SRC: SIP, DST: CFN ID) SRH (UE, CFN ID, SIP1, SL = 1) payload.

[0145] B8, after receiving the third message forwarded by the server network port of the first service node, the CFN node forwards it to the vCFN. The format of the third message forwarded by the CFN node can be third message = (SRC: SID, DST: UE) SRH (UE, CFN ID, SIP1, SL = 0) payload.

[0146] B10, after receiving the third message forwarded by the CFN node, the vCFN obtains the path information and records the path information in the path information table.

[0147] The process of the client node sending subsequent messages can be as follows Figure 8 As shown, the subsequent message may refer to a message including corresponding path information in the path information table of the vCFN, such as the first message mentioned above:

[0148] C1, the client node sends a first message to the vCFN, wherein the format of the first message sent by the client node may be first message = (SRC: UE, DST: SID) payload.

[0149] C2, vCFN adds path information to the SRV6 header of the first message and forwards it to the CFN node. The format of the first message forwarded by vCFN can be first message = (SRC: UE, DST: SID) SRH (SID, SIP1, CFN ID, SL = 2) payload.

[0150] C3, after receiving the first message carrying the path information, the CFN node adjusts the routing hops and sends the adjusted first message to the server network port of the first service node. The format of the first message sent by the CFN node can be first message = (SRC: UE, DST: SID) SRH (SID, SIP1, CFN ID, SL = 1) payload.

[0151] C4, after receiving the first message, the server network port of the first service node further adjusts the routing hops and sends it to the server loopback of the first service node. The format of the first message sent by the first service node can be first message = (SRC: UE, DST: SID) SRH (SID, SIP1, CFN ID, SL = 0) payload.

[0152] In the message format, CFN ID is a common identifier of multiple routing nodes.

[0153] Taking the third message as an example, the process of the service node sending the message can refer to the above steps B6 to B10.

[0154] Among them, in step B10, if vCFN determines that the path information carried in the message from the service node is inconsistent with the path information recorded in the path information table, the path information table is updated according to the path information carried in the message. For example, the service node is switched from the first service node to the second service node. After receiving the fourth message sent by the second service node, vCFN updates the path information table according to the path information carried in the fourth message.

[0155] Embodiment 2: The path information is carried in the IP protocol extension (option) field or the destination address field of the message.

[0156] In an exemplary description, the process of vCFN obtaining path information through the first packet and the response message of the first packet can be as follows: Fig. 9 As shown:

[0157] D1, the client node sends a second message to the vCFN. The format of the second message sent by the client node may be second message=(SRC:UE, DST:SID)DestOpt(ServiceBindREQ)payload.

[0158] D 2, vCFN carries the request information for requesting path information in the second message and then forwards the second message to the CFN node. The format of the second message forwarded by vCFN can be second message = (SRC: UE, DST: SID) DestOpt (ServiceBindREQ) payload. Among them, DestOpt is the IP option field of the message, and is used to request path information when DestOpt is ServiceBindREQ.

[0159] D 3, the CFN node addresses the first service node.

[0160] It should be understood that step D3 describes the case where CFN Ingress and CFN Egress are the same node. When CFN Ingress and CFN Egress are different nodes, the CFN Ingress addressing process is similar to steps B3 and B4.

[0161] D 4. The CFN node forwards the second message to the server network port of the first service node. The format of the second message forwarded by the CFN node may be second message=(SRC:UE, DST:SIP1)SRH(SID, SIP1, SL=1)payload.

[0162] D 5. The server network port of the first service node forwards the second message to the server loopback of the first service node. The format of the second message forwarded by the first service node may be second message = (SRC: UE, DST: SID) SRH (SID, SIP1, SL = 0) payload.

[0163] D 6. The CFN node sends a third message to the vCFN, and the third message carries the path information. The format of the third message sent by the CFN node may be third message = (SRC: SID, DST: UE) DestOpt (ServiceBindRSP: PATH INFO) payload.

[0164] There is no strict execution order between step D 6 and step D 4. D 4 may be executed first and then D 6, or D 6 may be executed first and then D 4, or D 4 and D 6 may be executed simultaneously.

[0165] In one implementation, when the service node is switched from the first service node to the second service node, the CFN node may send a message carrying new path information to the vCFN, so that the vCFN may update the path information table according to the new path information. For the specific process, please refer to step D6.

[0166] In another exemplary description, the process of vCFN obtaining the path information through the first packet and the response message of the first packet can also be as follows: Fig.10 As shown:

[0167] F1, the client node sends a second message to the vCFN. The format of the second message sent by the client node may be second message=(SRC:UE, DST:SID)DestOpt(ServiceBindREQ)payload.

[0168] F2, vCFN carries the request information for requesting path information in the second message and then sends the second message to the CFN node. The format of the second message forwarded by vCFN can be second message = (SRC: UE, DST: SID) DestOpt (ServiceBindREQ) payload.

[0169] F3, the CFN node addresses the first service node.

[0170] It should be understood that step E3 describes the case where CFN Ingress and CFN Egress are the same node. When CFN Ingress and CFN Egress are different nodes, the CFN Ingress addressing process is similar to steps B3 and B4.

[0171] F4, the CFN node forwards the second message to the server network port of the first service node. The format of the second message forwarded by the CFN node may be second message = (SRC: UE, DST: SIP1) DestOpt (ServiceBindREQ) SRH (SID, SIP1, SL = 1) payload.

[0172] F5, the server network port of the first service node forwards the second message to the server loopback of the first service node. The format of the second message forwarded by the first service node can be second message = (SRC: UE, DST: SID) DestOpt (ServiceBindREQ) SRH (SID, SIP1, SL = 0) payload.

[0173] F6, the server network port of the first service node sends a third message to the vCFN, the third message carrying path information. The format of the third message sent by the first service node can be third message = (SRC: SID, DST: UE) DestOpt (ServiceBindRSP: PATH INFO) payload.

[0174] In one implementation, when the service node is switched from the first service node to the second service node, the second service node may send a message carrying new path information to the vCFN, so that the vCFN may update the path information table according to the new path information. For the specific process, please refer to step F6.

[0175] Taking the first message as an example, the process of the client node sending subsequent messages to the first service node can be as follows: Fig.11 As shown:

[0176] E1, the client node sends a first message to the vCFN, wherein the format of the first message sent by the client node may be first message = (SRC: UE, DST: SID) payload.

[0177] E2, vCFN adds path information to the first message and forwards it to the CFN node. When the path information is carried in the IPoption field, the format of the first message forwarded by vCFN can be first message = (SRC: UE, DST: SID) DestOpt (ServiceForward: PATH KEY) payload, and when DestOpt is ServiceForward, it is used to request multiple messages to be forwarded. When the path information is carried in the destination address field, the format of the first message forwarded by vCFN can be first message = (SRC: UE, DST: PATH KEY) payload. PATH KEY can be the encoding of (SID, SIP1, CFN ID, SL = 2).

[0178] E3, after receiving the first message carrying the path information, the CFN node decodes and obtains the path information, and adjusts the routing hops to send the adjusted first message to the server network port of the first service node. The format of the first message sent by the CFN node can be first message = (SRC: UE, DST: SID) SRH (SID, SIP1, CFN ID, SL = 1) payload.

[0179] E4, after receiving the first message, the server network port of the first service node further adjusts the routing hops and sends it to the server loopback of the first service node. The format of the first message sent by the server network port of the first service node can be first message = (SRC: UE, DST: SID) SRH (SID, SIP1, CFN ID, SL = 0) payload.

[0180] Embodiment 3: Encoding the destination address to carry the path information.

[0181] The process of vCFN obtaining path information through the first packet and the response message of the first packet can be as follows: Fig.12 As shown:

[0182] G1, the format of the second message sent by the client node can be second message = (SRC: UE, DST: SID) payload.

[0183] G 2, vCFN encodes the destination address of the second message and forwards it to the routing node. The destination address of the second message may be encoded by adding CFNID and ServiceIP information to the destination address field. In the second message, the ServiceIP in the destination address field may be set to a preset value (such as 0) to generate a Binding Key to request path information. The format of the second message forwarded by vCFN may be second message = (SRC: UE, DST: Binding Key) payload.

[0184] In an exemplary description, Binding Key = Coding Definition->CFN ID->Service IP (set to 0)->Service ID. The coding definition can be FCC6: 4-byte coding (EG: FCC6: 00000001), or FCC4: 2-byte coding (EG: FCC4: 0001). Take the Binding Key with the coding definition of FCC6 as an example. Fig.13 shown.

[0185] G3, the CFN node addresses the first service node.

[0186] It should be understood that step D3 describes the case where CFN Ingress and CFN Egress are the same node. When CFN Ingress and CFN Egress are different nodes, the CFN Ingress addressing process is similar to steps B3 and B4.

[0187] G 4. The CFN node forwards the second message to the server network port of the first service node. The format of the second message forwarded by the CFN node may be second message=(SRC:UE, DST:SIP1)SRH(SID, SIP1, SL=1)payload.

[0188] G5, the server network port of the first service node forwards the second message to the server loopback of the first service node. The format of the second message forwarded by the first service node can be second message = (SRC: UE, DST: SID) SRH (SID, SIP1, SL = 0) payload.

[0189] G 6. The first service node sends a third message to the vCFN, and the third message carries the path information. The format of the third message sent by the CFN node may be third message = (SRC: PATH KEY, DST: UE) payload.

[0190] The first service node encodes the source address of the third message, for example, adds CFNID and ServiceIP information in the source address field. In the third message, the ServiceIP in the destination address field can be set to the ServiceIP of the first service node to generate a PATH KEY to carry path information.

[0191] In an exemplary description, PATH KEY = encoding definition->CFN ID->Service IP (Service IP of the first service node)->Service ID. The encoding definition may be FCC6: 4-byte encoding (EG: FCC6: 00000001), or FCC4: 2-byte encoding (EG: FCC4: 0001).

[0192] In one implementation, when the service node is switched from the first service node to the second service node, the second service node may send a message carrying new path information to the vCFN, so that the vCFN may update the path information table according to the new path information. For the specific process, please refer to step G6.

[0193] Taking the first message as an example, the process of the client node sending subsequent messages to the first service node can be as follows: Fig.14 As shown:

[0194] H1, the client node sends a first message to the vCFN, wherein the format of the first message sent by the client node may be first message = (SRC: UE, DST: SID) payload.

[0195] H2, the vCFN encodes the first message and forwards it to the CFN node. The format of the first message forwarded by the vCFN may be first message = (SRC: UE, DST: PATH KEY) payload.

[0196] The PATH KEY can refer to the relevant description in G6, which will not be repeated here.

[0197] H3, after receiving the first message carrying the path information, the CFN node decodes and obtains the path information, and adjusts the routing hops to send the adjusted first message to the server network port of the first service node. The format of the first message sent by the CFN node can be first message = (SRC: UE, DST: SID) SRH (SID, SIP1, CFN ID, SL = 1) payload.

[0198] H4, after receiving the first message, the server network port of the first service node further adjusts the routing hops and sends it to the server loopback of the first service node. The format of the first message sent by the server network port of the first service node can be first message = (SRC: UE, DST: SID) SRH (SID, SIP1, CFN ID, SL = 0) payload.

[0199] In the embodiment of the present application, a vCFN device is introduced to record the status of the service session (such as path information). The vCFN device obtains the path information through an explicit or implicit method, so that a path mapping relationship for the Service ID can be established, and then the subsequent message sent by the client node can carry the path information through the vCFN device, so that the routing node can obtain the path information from the message without saving the path information table. The service routing method provided by the embodiment of the present application can reduce the burden of the path information table of the forwarding plane of the routing node, and by including the path information table in the vCFN device, the flow viscosity of the session can be maintained while maintaining the dynamic nature of the service routing.

[0200] In addition, routing nodes can monitor the status and availability of service nodes in real time, and establish filter lists through control plane diffusion, so that service nodes can quickly switch to other available service nodes in the event of overload or failover.

[0201] Based on the same inventive concept as the method embodiment, the present application embodiment provides a service routing device, the structure of which can be as follows: Fig.15 As shown, it includes a processing unit 1501 and a transceiver unit 1502.

[0202] In one implementation, the device is specifically used to implement Figures 5 to 14 The function of the routing node in the embodiment, the device can be the routing node itself, or it can be a chip or chipset in the routing node or a part of the chip used to execute the function of the related method. Specifically, the transceiver unit 1502 is used to send and receive messages. The processing unit 1501 is used to execute through the transceiver unit 1502: receiving a first message, the first message carries service identification information and first service node address information, wherein the service identification information is used to represent the identification of the first service provided by at least two service nodes, and the first service node address information is used to represent the address of the first service node, and the at least two service nodes include the first service node; forwarding the first message based on the first service node address information.

[0203] Exemplarily, the SRV6 header of the first message may carry service identification information and first service node address information; or, the destination address field of the first message may also carry service identification information and first service node address information; or, the IP extension field of the first message may also carry service identification information and first service node address information.

[0204] In some embodiments, when forwarding the first message based on the first service node address information, the processing unit 1501 can be specifically used to: if the first service node is available, forward the first message to the first service node; or if the first service node is unavailable, forward the first message according to the service identification information.

[0205] The processing unit 1501 may also be configured to: determine whether the first service node is available based on a filter list, where the filter list is used to indicate that one or more service nodes are unavailable.

[0206] The unavailability of the service node may refer to an overload or failure of the service node or an unreachable message.

[0207] Before determining whether the first service node is available based on the filtering list, the processing unit 1501 can also be used to: determine that the first service node is unavailable; update filtering information to the filtering list, and broadcast the filtering information, where the filtering information is used to indicate that the first service node is unavailable.

[0208] Before determining whether the first service node is available based on the filter list, the processing unit 1501 can also be used to: receive filtering information broadcast by the second routing node through the transceiver unit 1502, the filtering information is used to indicate that the first service node is unavailable; and update the filtering information to the filter list.

[0209] After forwarding the first message according to the service identification information, the processing unit 1501 can also be used to: send a connection reset message to the client node through the transceiver unit 1502, and the connection service message is used to trigger the client node to re-initiate the transmission control protocol TCP connection.

[0210] After forwarding the first message according to the service identification information, the processing unit 1501 can also be used to: obtain the second service node address information, the second service node address information is used to characterize the address of the second service node, and at least two service nodes include the second service node; send the second service node address information through the transceiver unit 1502.

[0211] The processing unit 1501 can also be used to: obtain the address information of the first service node; and send a second message through the transceiver unit 1502, before the first routing node receives the first message from the client node. The second message carries the address information of the first service node.

[0212] The processing unit 1501, before acquiring the first service node address information, may also be configured to: receive a third message through the transceiver unit 1502, where the third message carries the service identification information.

[0213] Exemplarily, the third message may carry request information for requesting the address information of the first service node.

[0214] For example, the IP extension field of the third message may carry the request information; or, the destination address field of the third message may also carry the request information, and the request information is the service node address information set to a preset value.

[0215] In addition, the first message may also carry routing node identification information, where the routing node identification information is used to represent a common identification of multiple routing nodes.

[0216] In another implementation, the device is specifically used to implement Figures 5 to 14 The function of the session holding device in the embodiment may be the session holding device itself, or may be a chip or chipset in the session holding device or a part of the chip used to execute the function of the related method. Specifically, the transceiver unit 1502 is used to send and receive messages; the processing unit 1501 is used to execute: obtaining a first message, the first message carries service identification information, wherein the service identification information is used to characterize the identification of the first service provided by at least two service nodes; after adding the first service node address information to the first message, sending it to the routing node through the transceiver unit 1502, wherein the first service node address information is used to characterize the address of the first service node, and the at least two service nodes include the first service node.

[0217] In some embodiments, when adding the first service node address information in the first message, the processing unit 1501 can be specifically used to: add the first service node address information in the SRV6 header of the first message; or, add the first service node address information in the destination address field of the first message; or, add the first service node address information in the IP extension field of the first message.

[0218] When adding the first service node address information to the first message, the processing unit 1501 may be specifically used to: add the first service node address information and routing node identification information to the first message, where the routing node identification information is used to represent a common identification of multiple routing nodes.

[0219] The processing unit 1501, before adding the first service node address information in the first message, can also be used to: search for the first service node address information in the path information table based on the source address information and service identification information carried by the first message, and the path information table records the mapping relationship between one or more sessions and the service node address information.

[0220] The processing unit 1501, after adding the first service node address information in the first message and before sending it to the routing node, can also be used to: receive a second message from the routing node or the service node through the transceiver unit 1502, the second message carrying the service identification information and the first service node address information; record the first service node address information in the path information table.

[0221] The processing unit 1501, before receiving the second message from the routing node or the service node through the transceiver unit 1502, can also be used to: send a third message to the routing node through the transceiver unit 1502, where the third message carries the service identification information.

[0222] The third message may carry request information for requesting the address information of the first service node.

[0223] Exemplarily, the IP extension field of the third message may carry the request information; or, the destination address field of the third message may also carry the request information, where the request information is the service node address information set to a preset value.

[0224] The processing unit 1501, after adding the first service node address information in the first message and sending it to the routing node, can also be used to: receive a fourth message from the routing node or the service node through the transceiver unit 1502, the fourth message carries service identification information and second service node address information, wherein the second service node address information is used to represent the address of the second service node, and at least two service nodes include the second service node; update the first service node address information recorded in the path information table to the second service node address information.

[0225] In another implementation, the device is specifically used to implement Figures 5 to 14 The function of the service node in the embodiment, the device can be the service node itself, or it can be a chip or a chipset in the service node or a part of the chip used to execute the function of the related method. Specifically, the transceiver unit 1502 is used to send and receive messages; the processing unit 1501 is used to execute: generate a first message, the first message carries service identification information, the service identification information is used to represent the identification of the first service provided by at least two service nodes, and the at least two service nodes include the service node; after adding the service node address information in the first message, it is sent through the transceiver unit 1502, wherein the service node address information is used to represent the address of the service node.

[0226] Processing unit 1501, when adding service node address information in the first message, can be specifically used to: add the service node address information in the SRV6 header of the first message; or, add the service node address information in the IP extension option of the first message; or, add the service node address information in the destination address field of the first message.

[0227] In some embodiments, when the processing unit 1501 adds the service node address information in the first message, it can be specifically used to:

[0228] The service node address information and routing identification information are added to the first message, where the routing identification information is used to represent a common identification of multiple routing nodes.

[0229] The processing unit 1501, before adding the service node address information to the first message, can also be used to: receive a second message through the transceiver unit 1502, where the second message carries the service identification information.

[0230] The second message may carry request information for requesting the service node address information.

[0231] For example, the IP extension field of the second message may carry the request information. Alternatively, the destination address field of the second message may also carry the request information, where the request information is the service node address information set to a preset value.

[0232] The division of modules in the embodiments of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional module in each embodiment of the present application may be integrated into a processor, or may exist physically separately, or two or more modules may be integrated into one module. The above-mentioned integrated modules may be implemented in the form of hardware or in the form of software functional modules.

[0233] The integrated module can be implemented in the form of hardware, and the service routing device can be implemented as follows: Fig.16 As shown, the processing unit 1501 may be a processor 1602. The processor 1602 may be a central processing unit (CPU), or a digital processing module, etc. The transceiver unit 1502 may be a communication interface 1601, and the communication interface 1601 may be a transceiver, or an interface circuit such as a transceiver circuit, or a transceiver chip, etc. The service routing device further includes: a memory 1603, which is used to store the program executed by the processor 1601. The memory 1603 may be a non-volatile memory, such as a hard disk drive (HDD) or a solid-state drive (SSD), etc., or a volatile memory (volatile memory), such as a random-access memory (RAM). The memory 1603 is any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.

[0234] The processor 1602 is used to execute the program code stored in the memory 1603, specifically to execute the actions of the above-mentioned processing unit 1501, which will not be repeated in this application.

[0235] The specific connection medium between the communication interface 160, the processor 1602 and the memory 1603 is not limited in the embodiment of the present application. Fig.16 The memory 1603, the processor 1602 and the communication interface 1601 are connected via a bus 1604. Fig.16 The connections between the other components are shown in bold lines, which are only for illustration and are not intended to be limiting. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.16 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0236] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0237] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0238] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0239] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0240] Obviously, those skilled in the art can make various changes and modifications to the embodiments of the present application without departing from the scope of the embodiments of the present application. Thus, if these modifications and variations of the embodiments of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A service routing method, characterized in that: include: The first routing node receives a first message, the first message carrying service identification information, first service node address information, and routing node identification information, wherein the service identification information is used to represent an identification of a first service provided by at least two service nodes, the first service node address information is used to represent an address of the first service node, the at least two service nodes include the first service node, the routing node identification information is used to represent a common identification of multiple routing nodes, the multiple routing nodes have functions of rerouting and monitoring the status of service nodes, and the multiple routing nodes include the first routing node; If the first service node is available, the first routing node forwards the first message to the first service node; Alternatively, if the first service node is unavailable, the first routing node forwards the first message according to the service identification information; wherein, the unavailability of the first service node indicates that the first service node is overloaded.

2. The method according to claim 1, characterized in that The method further comprises: The first routing node determines whether the first service node is available based on a filter list, the filter list being used to indicate that one or more service nodes are unavailable.

3. The method according to claim 1 or 2, characterized in that After the first routing node forwards the first message according to the service identification information, the method further includes: The first routing node sends a connection reset message to the client node, where the connection reset message is used to trigger the client node to re-initiate a Transmission Control Protocol TCP connection.

4. The method according to any one of claims 1 to 3, characterized in that After the first routing node forwards the first message according to the service identification information, the method further includes: The first routing node acquires address information of a second service node, where the address information of the second service node is used to represent an address of the second service node, and the at least two service nodes include the second service node; The first routing node sends the second service node address information.

5. The method according to any one of claims 1 to 4, characterized in that: Before the first routing node receives the first message from the client node, the method further includes: The first routing node obtains the address information of the first service node; The first routing node sends a second message, where the second message carries the address information of the first service node.

6. The method according to claim 5, characterized in that Before the first routing node obtains the address information of the first service node, the method includes: The first routing node receives a third message, where the third message carries the service identification information.

7. A service routing method, characterized in that: include: The session maintaining device obtains a first message, where the first message carries service identification information, wherein the service identification information is used to represent an identification of a first service provided by at least two service nodes; The session maintaining device adds the first service node address information and the routing node identification information to the first message and sends it to the routing node, wherein the first service node address information is used to represent the address of the first service node, the at least two service nodes include the first service node, the routing node identification information is used to represent the common identification of multiple routing nodes including the routing node, and the multiple routing nodes have the functions of rerouting and monitoring the status of the service nodes.

8. The method according to claim 7, characterized in that Before the session maintaining device adds the first service node address information to the first message, the method further includes: The session maintaining device searches for the first service node address information in a path information table based on the source address information and the service identification information carried in the first message. The path information table records a mapping relationship between one or more sessions and service node address information.

9. The method according to claim 8, characterized in that Before the session maintaining device adds the first service node address information to the first message and sends the message to the routing node, the method further includes: The session maintaining device receives a second message from the routing node or the service node, where the second message carries the service identification information and the first service node address information; The session maintaining device records the first service node address information in the path information table.

10. The method according to claim 9, characterized in that Before the session maintaining device receives the second message from the routing node or the service node, the method further includes: The session maintaining device sends a third message to the routing node, where the third message carries the service identification information.

11. The method according to any one of claims 8 to 10, characterized in that After the session maintaining device adds the first service node address information to the first message and sends the message to the routing node, the method further includes: The session maintaining device receives a fourth message from the routing node or the service node, the fourth message carrying the service identification information and the second service node address information, wherein the second service node address information is used to represent the address of the second service node, and the at least two service nodes include the second service node; The session maintaining device updates the first service node address information recorded in the path information table to the second service node address information.

12. A service routing method, characterized in that: include: The service node generates a first message, the first message carries service identification information and routing identification information, the service identification information is used to represent the identification of a first service provided by at least two service nodes, the at least two service nodes include the service node, the routing identification information is used to represent the common identification of multiple routing nodes, and the multiple routing nodes have the function of rerouting and monitoring the status of the service node; The service node adds service node address information to the first message and then sends the message, wherein the service node address information is used to represent the address of the service node.

13. The method according to claim 12, characterized in that Before the service node adds the service node address information to the first message, the method further includes: The service node receives a second message, where the second message carries the service identification information.

14. A service routing device, characterized in that: include: A transceiver unit, used for sending and receiving messages; A processing unit, configured to execute, through the transceiver unit: Receive a first message, the first message carrying service identification information, first service node address information, and routing node identification information, wherein the service identification information is used to represent an identification of a first service provided by at least two service nodes, the first service node address information is used to represent an address of a first service node, the at least two service nodes include the first service node, and the routing node identification information is used to represent a common identification of multiple routing nodes, and the multiple routing nodes have the function of rerouting and monitoring the status of the service nodes; If the first service node is available, forwarding the first message to the first service node; Alternatively, if the first service node is unavailable, forward the first message according to the service identification information; wherein, the unavailability of the first service node indicates that the first service node is overloaded.

15. The device according to claim 14, characterized in that The processing unit is further used for: A determination is made whether the first service node is available based on a filter list, the filter list being used to indicate that one or more service nodes are unavailable.

16. The device according to claim 14 or 15, characterized in that The processing unit, after forwarding the first message according to the service identification information, is further configured to: A connection reset message is sent to the client node through the transceiver unit, and the connection reset message is used to trigger the client node to re-initiate a transmission control protocol TCP connection.

17. The device according to any one of claims 14 to 16, characterized in that The processing unit, after forwarding the first message according to the service identification information, is further configured to: Acquire address information of a second service node, where the address information of the second service node is used to represent an address of the second service node, and the at least two service nodes include the second service node; The second service node address information is sent through the transceiver unit.

18. The device according to any one of claims 14 to 17, characterized in that The processing unit is further configured to: before the first routing node receives the first message from the client node: Obtaining the address information of the first service node; A second message is sent through the transceiver unit, where the second message carries the first service node address information.

19. The device according to claim 18, characterized in that The processing unit, before acquiring the first service node address information, is further configured to: A third message is received through the transceiver unit, where the third message carries the service identification information.

20. A service routing device, characterized in that: include: A transceiver unit, used for sending and receiving messages; Processing unit for performing: Acquire a first message, where the first message carries service identification information, wherein the service identification information is used to represent an identification of a first service provided by at least two service nodes; After adding the first service node address information and the routing node identification information to the first message, the message is sent to the routing node through the transceiver unit, wherein the first service node address information is used to represent the address of the first service node, the at least two service nodes include the first service node, the routing node identification information is used to represent the common identification of multiple routing nodes including the routing node, and the multiple routing nodes have the function of rerouting and monitoring the status of the service nodes.

21. The device according to claim 20, characterized in that The processing unit, before adding the first service node address information to the first message, is further configured to: The first service node address information is searched in a path information table based on the source address information and the service identification information carried in the first message. The path information table records a mapping relationship between one or more sessions and service node address information.

22. The device according to claim 21, characterized in that The processing unit, after adding the first service node address information to the first message and before sending the message to the routing node, is further configured to: receiving, by the transceiver unit, a second message from the routing node or the service node, where the second message carries the service identification information and the first service node address information; The first service node address information is recorded in the path information table.

23. The device according to claim 22, characterized in that The processing unit, before receiving the second message from the routing node or the service node through the transceiver unit, is further configured to: A third message is sent to the routing node through the transceiver unit, where the third message carries the service identification information.

24. The device according to any one of claims 21 to 23, characterized in that The processing unit, after adding the first service node address information to the first message and sending the message to the routing node, is further configured to: Receiving, by the transceiver unit, a fourth message from the routing node or the service node, the fourth message carrying the service identification information and the second service node address information, wherein the second service node address information is used to represent the address of the second service node, and the at least two service nodes include the second service node; The first service node address information recorded in the path information table is updated to the second service node address information.

25. A service routing device, characterized in that: include: A transceiver unit, used for sending and receiving messages; Processing unit for performing: Generate a first message, the first message carrying service identification information, the service identification information is used to represent an identification of a first service provided by at least two service nodes, the at least two service nodes including the service node; After adding service node address information and routing identification information to the first message, the message is sent through the transceiver unit, wherein the service node address information is used to represent the address of the service node, and the routing identification information is used to represent the common identification of multiple routing nodes, and the multiple routing nodes have the functions of rerouting and monitoring the status of the service nodes.

26. The device according to claim 25, characterized in that The processing unit, before adding the service node address information to the first message, is further configured to: A second message is received through the transceiver unit, where the second message carries the service identification information.

27. A computer-readable storage medium, characterized in that: The method comprises instructions which, when executed on a computer, cause the computer to execute the method according to any one of claims 1 to 6, or the method according to any one of claims 7 to 11, or the method according to any one of claims 12 to 13.

28. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores programs or instructions, and when the programs or instructions are read and executed by one or more processors, they can implement the method described in any one of claims 1 to 6, or the method described in any one of claims 7 to 11, or the method described in any one of claims 12 to 13.

Citation Information

Patent Citations

  • Processing method and device of service request in network

    CN109379291A

  • Method and device for transmitting data message

    CN109495320A

  • Service invocation method, device and system

    CN109542641A

  • Determining highest workloads for nodes in an overlay network

    US20060120391A1

  • Message processing method, computing device, and message processing apparatus

    WO2018058677A1