A computing power routing method and device
By using computing power routing method between network equipment and service ends, and using the target address information in the extended message header for address conversion, the problem of high pressure on network equipment and difficulty in service flow adhesion is solved, and efficient service flow routing and service adhesion is achieved.
Patent Information
- Application Number
- CN202211314290.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-25
- Publication Date
- 2025-04-18
- Estimated Expiration
- 2042-10-25
AI Technical Summary
In the prior art, network equipment needs to maintain a large number of session tables, resulting in high processing pressure, and it is difficult to ensure the adhesion of service flow when the terminal moves, which easily leads to service interruption.
By introducing computing power routing methods between the service end and the network device, using the target address information in the extended message header for address conversion, the target address information is directly obtained from the uplink message, without establishing a session table, and the correct routing of the service flow data is achieved.
It reduces the capacity occupancy of network equipment maintenance session tables, reduces processing pressure, realizes business adhesion during terminal network switching, and avoids business interruption.
Smart Images

Figure CN115801672B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of communication technology, and in particular, to a computing power routing method and device. Background Art
[0002] The computing network is a network architecture that deeply integrates computing power and network. It connects widely distributed computing resources through the network. In the computing network, resource utilization is optimized by scheduling computing applications to the optimal computing nodes. Network resources and computing power resources change in real time, and the above-mentioned optimal computing nodes are also changing. If the data of a business flow is dispersed to different computing nodes for processing, it will cause business interruption.
[0003] In the related art, the stickiness of service flows is maintained by network devices, that is, the network devices maintain a session table for each service flow, which includes the mapping between the identifier of the service flow and the computing node providing the service. The network device queries the session table and sends the data of a service flow to the same computing node for processing.
[0004] However, the above method requires the network device to maintain a large number of session tables, which consumes the capacity of the network device and brings great processing pressure to the network device. Summary of the invention
[0005] The embodiments of the present application provide a computing power routing method and apparatus for reducing the processing pressure of network devices caused by maintaining a session table.
[0006] In a first aspect, an embodiment of the present application provides a first computing power routing method, which is applied to a network device, and the method includes:
[0007] In response to a non-first first uplink message for a target service flow sent by a service end, address conversion is performed on the non-first first uplink message based on target address information corresponding to a target computing power node in an extended message header of the non-first first uplink message to obtain a second uplink message;
[0008] Sending the second uplink message to the target computing power node based on the target address information;
[0009] Among them, the target address information in the non-first first uplink message is sent to the service end after the network device receives the target address information fed back by the target computing power node when processing the previous second uplink message of the target service flow; or, the target address information in the non-first first uplink message is determined by the service end based on a preset corresponding relationship, and the preset corresponding relationship includes the mapping between the target address information received by the service end after triggering the first first uplink message and the target service flow.
[0010] In the above scheme, whenever the target computing power node receives an uplink message for the target business flow, it will feedback its address (target address information); after receiving the target address information, the business end copies the target address information in its extended message header to the extended message header of the uplink message for the target business flow that needs to be sent; or, after the business end triggers the first first uplink message and receives the target address information, it establishes a preset correspondence between the target address information and the target business flow (because the feedback target address information is generated based on the previous uplink message, the preset correspondence is also generated when sending the first uplink message). After receiving the non-first uplink message for the target service flow, the network device directly obtains the target address information from the extended message header in the uplink message, and can know which computing power node the uplink message needs to be sent to without establishing a session table. Therefore, the above method can save the capacity occupied by the network device to maintain the session table, greatly reduce the processing pressure of the network device, and realize the service adhesion of the terminal when performing network switching, and solve the service interruption problem when the terminal moves.
[0011] In some optional implementations, performing address conversion on the non-first first uplink message based on the target address information corresponding to the target computing power node in the extended message header of the non-first first uplink message to obtain the second uplink message includes:
[0012] The original destination address in the non-first first uplink message is replaced with the destination address information to obtain the second uplink message.
[0013] In some optional implementations, the method further includes:
[0014] In response to a first first uplink message for a target service flow sent by a service end, a target computing power node is selected from all candidate computing power nodes based on computing power status information of each candidate computing power node corresponding to the target service flow; wherein the first first uplink message does not include target address information;
[0015] The second uplink message is sent to the target computing power node based on the target address information of the selected target computing power node.
[0016] In some optional implementations, if the target address information in the non-first first uplink message is determined by the service end based on a preset corresponding relationship, after selecting the target computing power node from all candidate computing power nodes, it also includes:
[0017] Sending the target address information of the selected target computing power node to the service end, so that the service end determines the preset corresponding relationship based on the target address information of the selected target computing power node; or
[0018] After receiving the target address information fed back by the target computing node when processing the first second uplink message of the target service flow, the fed back target address information is sent to the service end, so that the service end determines the preset corresponding relationship based on the fed back target address information.
[0019] In some optional implementations, if the target address information in the non-first first uplink message is sent to the service end after the network device receives the target address information fed back by the target computing power node when processing the previous second uplink message of the target service flow, then after sending the second uplink message to the target computing power node based on the target address information, it also includes:
[0020] In response to a next first downlink message for the target service flow sent by the target computing power node, performing address conversion on the next first downlink message to obtain a next second downlink message;
[0021] The next second downlink message is sent to the service end corresponding to the first uplink message, so that when the service end sends the next first uplink message for the target service flow to the network device, the target address information in the next second downlink message is copied to the extended message header of the next first uplink message.
[0022] In a second aspect, an embodiment of the present application provides a second computing power routing method, which is applied to a service end, and the method includes:
[0023] Receive target address information corresponding to the target computing power node for the target service flow sent by the network device;
[0024] Copying the target address information to an extended message header of a non-first first uplink message for the target service flow, and sending the non-first first uplink message to a network device, so that the network device performs address conversion on the non-first first uplink message based on the target address information, and sends a second uplink message after address conversion to the target computing power node based on the target address information;
[0025] Among them, the target address information in the extended message header of the non-first first uplink message is sent to the service end after the network device receives the target address information fed back by the target computing power node when processing the previous second uplink message of the target service flow.
[0026] In some optional implementations, before receiving the target address information corresponding to the target computing power node for the target service flow sent by the network device, the method further includes:
[0027] The first first uplink message for the target business flow is sent to the network device, so that after receiving the first first uplink message, the network device selects the target computing power node from the alternative computing power nodes of the target business flow, and sends the second uplink message to the target computing power node based on the target address information of the selected target computing power node; wherein the first first uplink message does not contain the target address information.
[0028] In a third aspect, an embodiment of the present application provides a third computing power routing method, which is applied to a service end, and the method includes:
[0029] Determine the target address information corresponding to the target service flow based on a preset corresponding relationship; the preset corresponding relationship includes a mapping between the target address information received by the service end after triggering the first first uplink message and the target service flow;
[0030] The target address information is placed in an extended message header of the non-first first uplink message for the target service flow, and the non-first first uplink message is sent to a network device, so that the network device performs address conversion on the non-first first uplink message based on the target address information, and sends the second uplink message after the address conversion to the target computing power node corresponding to the target address information.
[0031] In a fourth aspect, an embodiment of the present application provides a fourth computing power routing method, which is applied to a target computing power node, and the method includes:
[0032] In response to a second uplink message sent by the network device, a first downlink message is generated based on the uplink data in the second uplink message, and the target address information corresponding to the target computing power node is placed in the extended message header of the first downlink message; wherein the second uplink message is obtained by performing address conversion on the first uplink message for the target service flow sent by the service end by the network device;
[0033] The first downlink message is sent to the network device so that after the service end receives the second downlink message sent by the network device, it copies the target address information in the second downlink message to the extended message header of the next first uplink message; wherein the second downlink message is obtained by the network device performing address conversion on the first downlink message.
[0034] In a fifth aspect, an embodiment of the present application provides a fifth computing power routing method, which is applied to a target computing power node, and the method includes:
[0035] After receiving the first second uplink message for the target service flow sent by the network device, a first first downlink message is generated based on the uplink data in the first second uplink message, and the target address information corresponding to the target computing power node is placed in the extended message header of the first first downlink message; wherein the first second uplink message is obtained by the network device performing address conversion based on the target address information corresponding to the target computing power node in the extended message header of the first first uplink message;
[0036] The first first downlink message is fed back to the network device so that after the service end receives the first second downlink message sent by the network device, it determines the preset correspondence between the target address information and the target service flow, and places the target address information in a non-first first uplink message; wherein the first second downlink message is obtained by the network device performing address conversion on the first first downlink message.
[0037] In a sixth aspect, an embodiment of the present application provides a first computing power routing device, which is applied to a network device, and the device includes:
[0038] An address conversion module, configured to respond to a non-first first uplink message for a target service flow sent by a service end, and perform address conversion on the non-first first uplink message based on target address information corresponding to a target computing power node in an extended message header of the non-first first uplink message to obtain a second uplink message;
[0039] A forwarding module, configured to send the second uplink message to the target computing power node based on the target address information;
[0040] Among them, the target address information in the non-first first uplink message is sent to the service end after the network device receives the target address information fed back by the target computing power node when processing the previous second uplink message of the target service flow; or, the target address information in the non-first first uplink message is determined by the service end based on a preset corresponding relationship, and the preset corresponding relationship includes the mapping between the target address information received by the service end after triggering the first first uplink message and the target service flow.
[0041] In a seventh aspect, an embodiment of the present application provides a second computing power routing device, which is applied to a service end, and the device includes:
[0042] An address determination module is used to receive target address information corresponding to a target computing power node for a target service flow sent by a network device;
[0043] A first sending module, used to copy the target address information to an extended message header of a non-first first uplink message for the target service flow, and send the non-first first uplink message to a network device, so that the network device performs address conversion on the non-first first uplink message based on the target address information, and sends a second uplink message after address conversion to the target computing power node based on the target address information;
[0044] Among them, the target address information in the extended message header of the non-first first uplink message is sent to the service end after the network device receives the target address information fed back by the target computing power node when processing the previous second uplink message of the target service flow.
[0045] In an eighth aspect, an embodiment of the present application provides a third computing power routing device, which is applied to a service end, and the device includes:
[0046] An address mapping module, used to determine the target address information corresponding to the target service flow based on a preset corresponding relationship; the preset corresponding relationship includes a mapping between the target address information received by the service end after triggering the first first uplink message and the target service flow;
[0047] The second sending module is used to place the target address information in the extended message header of the non-first first uplink message for the target service flow, and send the non-first first uplink message to the network device, so that the network device performs address conversion on the non-first first uplink message based on the target address information, and sends the second uplink message after the address conversion to the target computing power node corresponding to the target address information.
[0048] In a ninth aspect, an embodiment of the present application provides a fourth computing power routing device, which is applied to a target computing power node, and the device includes:
[0049] A first address adding module, configured to generate a first downlink message based on the uplink data in the second uplink message in response to the second uplink message sent by the network device, and place the target address information corresponding to the target computing power node in the extended message header of the first downlink message; wherein the second uplink message is obtained by performing address conversion on the first uplink message for the target service flow sent by the service end by the network device;
[0050] The third sending module is used to send the first downlink message to the network device, so that after the service end receives the second downlink message sent by the network device, it copies the target address information in the second downlink message to the extended message header of the next first uplink message; wherein, the second downlink message is obtained by the network device performing address conversion on the first downlink message.
[0051] In a tenth aspect, an embodiment of the present application provides a fifth computing power routing device, which is applied to a target computing power node, and the device includes:
[0052] A second address adding module is used to generate a first first downlink message based on the uplink data in the first second uplink message after receiving the first second uplink message for the target service flow sent by the network device, and place the target address information corresponding to the target computing power node in the extended message header of the first first downlink message; wherein the first second uplink message is obtained by the network device performing address conversion based on the target address information corresponding to the target computing power node in the extended message header of the first first uplink message;
[0053] The fourth sending module is used to feed back the first first downlink message to the network device, so that after the service end receives the first second downlink message sent by the network device, it determines the preset correspondence between the target address information and the target service flow, and places the target address information in a non-first first uplink message; wherein, the first second downlink message is obtained by the network device performing address conversion on the first first downlink message.
[0054] In the eleventh aspect, an embodiment of the present application provides a network device, comprising at least one processor and at least one memory, wherein the memory stores a computer program, and when the program is executed by the processor, the processor executes any computing power routing method described in the first aspect above.
[0055] In the twelfth aspect, an embodiment of the present application provides a business end, comprising at least one processor and at least one memory, wherein the memory stores a computer program, and when the program is executed by the processor, the processor executes the computing power routing method described in any one of the second aspect or the third aspect.
[0056] In the thirteenth aspect, an embodiment of the present application provides a target computing power node, comprising at least one processor and at least one memory, wherein the memory stores a computer program, and when the program is executed by the processor, the processor executes the computing power routing method described in any one of the fourth or fifth aspects above.
[0057] In the fourteenth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program executable by a processor. When the program runs on the processor, the processor executes the computing power routing method described in any one of the first aspect, second aspect, third aspect, fourth aspect or fifth aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0059] Figure 1 A schematic diagram of the system architecture of the computing power network provided in the embodiment of the present application;
[0060] Figure 2 A schematic diagram of an application scenario provided for an embodiment of the present application;
[0061] Figure 3 An interactive flow chart of the first computing power routing method provided in an embodiment of the present application;
[0062] Figure 4 A schematic diagram of the structure of the extended message header provided in the embodiment of the present application;
[0063] Figure 5 An interactive flow chart of the second computing power routing method provided in an embodiment of the present application;
[0064] Figure 6 A schematic diagram of the correspondence between computing nodes and applications provided in an embodiment of the present application;
[0065] Figure 7 A schematic diagram of a message forwarding process provided in an embodiment of the present application;
[0066] Figure 8 An interactive flow chart of a third computing power routing method provided in an embodiment of the present application;
[0067] Fig. 9 A schematic diagram of a flow chart of a first computing power routing method provided in an embodiment of the present application;
[0068] Fig.10 A schematic diagram of a flow chart of a second computing power routing method provided in an embodiment of the present application;
[0069] Fig.11 A schematic diagram of a flow chart of a third computing power routing method provided in an embodiment of the present application;
[0070] Fig.12 A schematic diagram of a fourth computing power routing method provided in an embodiment of the present application;
[0071] Fig.13 A flowchart of a fifth computing power routing method provided in an embodiment of the present application;
[0072] Fig.14A schematic diagram of the structure of a first computing power routing device provided in an embodiment of the present application;
[0073] Fig.15 A schematic diagram of the structure of a second computing power routing device provided in an embodiment of the present application;
[0074] Fig.16 A schematic diagram of the structure of a third computing power routing device provided in an embodiment of the present application;
[0075] Fig.17 A schematic diagram of the structure of a fourth computing power routing device provided in an embodiment of the present application;
[0076] Fig.18 A schematic diagram of the structure of a fifth computing power routing device provided in an embodiment of the present application;
[0077] Fig.19 A schematic diagram of the structure of a network device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0078] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present application.
[0079] The terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, unless otherwise specified, "plurality" means two or more.
[0080] In the description of this application, it should be noted that, unless otherwise clearly specified and limited, the term "connection" should be understood in a broad sense, for example, it can be directly connected, or indirectly connected through an intermediate medium, or it can be the internal connection of two devices. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.
[0081] The computing power network is a network architecture that deeply integrates computing power and network. It connects widely distributed computing power resources through the network. Figure 1As shown in the figure, the computing network includes three levels of computing resources: cloud computing nodes, edge computing nodes, and end computing nodes; among them, end computing nodes include terminal devices such as mobile phones, computers, and notebooks; edge computing nodes include computing nodes in wireless access networks (such as base stations), computing nodes in passive optical networks (PON) (such as routers, operator service equipment), etc. In practical applications, the architecture of the computing network may include more levels of computing resources, or fewer levels of computing resources, and computing nodes at each level may be implemented in other ways.
[0082] In the computing network, by scheduling computing applications to the optimal computing nodes, the user experience is improved and the computing and network resource utilization is optimized. Network resources and computing resources change in real time, and the above-mentioned optimal computing nodes are also changing. If the data of a business flow is dispersed to different computing nodes for processing, it will cause business interruption.
[0083] See also Figure 2 As shown, for business flow 1 triggered by the business end, the optional computing nodes are computing node 1, computing node 2, and computing node 3; at the initial moment, the optimal computing node is determined to be computing node 1, and then the optimal computing node is determined to be computing node 2. In this way, the data of business flow 1 is dispersed to computing node 1 and computing node 2, which will cause business interruption of business flow 1.
[0084] In some embodiments, the stickiness of service flows is maintained by network devices, that is, the network devices maintain a session table for each service flow, which includes a mapping between the identifier of the service flow and the computing node providing the service. The network device queries the session table and sends the data of a service flow to the same computing node for processing. Figure 2 For example, a mapping between business flow 1 and computing node 1 is established, and the data of business flow 1 is processed by computing node 1.
[0085] However, in actual applications, computing networks need to process numerous business flows. When business is concurrent, network devices need to maintain a large number of session tables, which consumes the capacity of network devices and brings great processing pressure to network devices. In addition, terminal mobility causes changes in access routers, so the stickiness of business flows cannot be guaranteed, resulting in business interruption.
[0086] In view of this, an embodiment of the present application proposes a computing power routing method and device, which is applied to a network device, including: in response to a non-first first uplink message for a target business flow sent by a service end, address conversion is performed on the non-first first uplink message based on the target address information corresponding to the target computing power node in the extended message header of the non-first first uplink message to obtain a second uplink message; based on the target address information, the second uplink message is sent to the target computing power node; wherein the target address information in the non-first first uplink message is sent to the service end by the network device after receiving the target address information fed back by the target computing power node when processing the previous second uplink message of the target business flow; or, the target address information in the non-first first uplink message is determined by the service end based on a preset corresponding relationship, and the preset corresponding relationship includes a mapping between the target address information received by the service end after triggering the first first uplink message and the target business flow.
[0087] In the above scheme, whenever the target computing power node receives an uplink message for the target business flow, it will feedback its address (target address information); after receiving the target address information, the business end copies the target address information in its extended message header to the extended message header of the uplink message for the target business flow that needs to be sent; or, after the business end triggers the first first uplink message and receives the target address information, it establishes a preset correspondence between the target address information and the target business flow (because the feedback target address information is generated based on the previous uplink message, the preset correspondence is also generated when sending the first uplink message). After receiving the non-first uplink message for the target service flow, the network device directly obtains the target address information from the extended message header in the uplink message, and can know which computing power node the uplink message needs to be sent to without establishing a session table. Therefore, the above method can save the capacity occupied by the network device to maintain the session table, greatly reduce the processing pressure of the network device, and realize the service adhesion of the terminal when performing network switching, and solve the service interruption problem when the terminal moves.
[0088] The following will be combined with the accompanying drawings and specific embodiments to describe in detail the technical solution of the present application and how the technical solution of the present application solves the above technical problems. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.
[0089] Figure 3 The interactive flow chart of the first computing power routing method provided in the embodiment of the present application is as follows: Figure 3 As shown, the following steps are included:
[0090] Step S301: The target computing power node generates a first downlink message based on the uplink data in the second uplink message in response to the second uplink message sent by the network device.
[0091] The second uplink message is obtained by performing address conversion on the first uplink message for the target service flow sent by the service end by the network device.
[0092] The target computing power node is a node that provides computing power resources for the target business flow.
[0093] Exemplarily, whenever the computing power node receives an uplink message sent by the business end through the network device, it is necessary to parse the uplink message, determine the uplink data carried by the uplink message, obtain the downlink data for the uplink message by processing the uplink data, and generate a first downlink message containing the downlink data.
[0094] Step S302: The target computing power node places the target address information corresponding to the target computing power node in the extended message header of the first downlink message.
[0095] In this embodiment, the service end needs to send an uplink message containing the target address information to the network device, so that the network device can determine which computing power node to send the uplink message to (that is, which computing power node is the target computing power node for processing the uplink message) without maintaining a session table.
[0096] Based on this, the target computing power node will place its address (target address information) in the extended message header of the downlink message, so that after the business end receives the downlink message, it can copy the target address information in the next uplink message to be sent.
[0097] Step S303: The target computing power node sends the first downlink message to the network device.
[0098] Exemplarily, the network device includes multiple routers, and the target computing power node sends the first downlink message to the corresponding first router in the network device.
[0099] Step S304: The network device performs address translation on the first downlink message to obtain a second downlink message.
[0100] During implementation, the source address in the first downlink message is the address of the above-mentioned target computing node (i.e., the above-mentioned target address information), and the target address is the address of the service end; by converting the address of the target computing node in the first downlink message into the address of the application corresponding to the target service flow, the target address remains unchanged, and a second downlink message is obtained.
[0101] Exemplarily, the downlink data is placed in the data part of the second downlink message, the extended message header of the first downlink message is used as the extended message header of the second downlink message, the source address of the second downlink message is set to the address of the application corresponding to the above-mentioned target service flow, and the target address of the second downlink message is set to the address of the service end, so as to obtain the above-mentioned second downlink message.
[0102] Step S305: The network device sends the second downlink message to the service end.
[0103] Exemplarily, the network device includes multiple routers, and the network device sends the first uplink message to the service end through the second router corresponding to the service end.
[0104] Step S306: The service end copies the target address information in the second downlink message to the extended message header of the non-first first uplink message for the target service flow.
[0105] Exemplarily, after receiving the downlink message from the target computing power node, the service end copies the target address information in its extended message header to the extended message header of the uplink message that needs to be sent for the target service flow (since the above-mentioned downlink message is generated based on the previous uplink message, only the uplink message that is not the first time will carry the target address information).
[0106] Step S307: The service end sends the non-first first uplink message to the network device.
[0107] Exemplarily, the service end sends the first uplink message to the currently corresponding first router.
[0108] Step S308: The network device responds to the non-first first uplink message for the target service flow sent by the service end, performs address conversion on the non-first first uplink message based on the target address information corresponding to the target computing power node in the non-first first uplink message, and obtains a second uplink message.
[0109] Exemplarily, the target address in the first uplink message is the address of the application corresponding to the above-mentioned target business flow, and the source address is the address of the business end; by converting the address of the application corresponding to the target business flow in the first uplink message into the address of the target computing power node, the source address remains unchanged, and the second uplink message is obtained.
[0110] In some optional implementation manners, this step may be implemented by, but not limited to, the following methods:
[0111] The original destination address in the non-first first uplink message is replaced with the destination address information to obtain the second uplink message.
[0112] Exemplarily, the uplink data is placed in the data part of the second uplink message, the extended message header of the first uplink message is used as the extended message header of the second uplink message, the original target address of the second uplink message (the address of the above-mentioned application) is replaced with the above-mentioned target address information, and the source address of the second uplink message is set to the address of the service end, so as to obtain the above-mentioned second uplink message.
[0113] Step S309: The network device sends the second uplink message to the target computing power node based on the target address information.
[0114] Exemplarily, after receiving a non-first uplink message for a target service flow, the network device directly obtains the target address information from the extended message header in the uplink message, and can know to which computing node the uplink message needs to be sent without establishing a session table.
[0115] It can be understood that after receiving the second uplink message, the target computing node has to continue the data processing process, that is, repeat the above steps. For details, please refer to the above steps S301 to S309, which will not be repeated here.
[0116] In the above scheme, whenever the target computing power node receives an uplink message for the target business flow, it will place its address (target address information) in the extended message header of the downlink message; after receiving the downlink message from the target computing power node, the business end copies the target address information in the extended message header to the extended message header of the uplink message for the target business flow that needs to be sent (since the above downlink message is generated based on the previous uplink message, only the non-first uplink message will carry the target address information); after receiving the non-first uplink message for the target business flow, the network device directly obtains the target address information from the extended message header in the uplink message, and can know which computing power node the uplink message needs to be sent to without establishing a session table. Therefore, the above method can save the capacity occupied by the network device to maintain the session table, greatly reduce the processing pressure of the network device, and also realize the service adhesion of the terminal when performing network switching, and solve the service interruption problem when the terminal moves.
[0117] This embodiment does not limit the specific implementation method of the above message and the specific structure of the extended message header. For example, the above message is a message in Internet Protocol Version 6 (IPv6); see Figure 4 As shown, the extended header (DOH) includes a next header (Next Header) field, a routing header length (Hdr ExtLen) field, and an option (options) field; the above-mentioned target address information is written into the above-mentioned options field.
[0118] Above Figure 4 This is only an exemplary description of the extended message header. In practice, the extended message header may also include other fields, and this application does not make any specific limitations on this.
[0119] Figure 5 The interactive flow chart of the second computing power routing method provided in the embodiment of the present application is as follows: Figure 5 As shown, the following steps are included:
[0120] Step S501: The service end sends the first first uplink message for the target service flow to the network device.
[0121] As mentioned above, the above-mentioned downlink message is generated based on the previous uplink message, so only the non-first uplink message will carry the target address information. For the first uplink message of the target service flow, there is no previous uplink message. Therefore, the service end cannot place the target address information in the first uplink message of the target service flow.
[0122] Step S502: The network device selects a target computing power node from all candidate computing power nodes based on the computing power status information of each candidate computing power node corresponding to the target service flow.
[0123] Exemplarily, the first uplink message of the target service flow received by the network device does not contain the target address information corresponding to the target computing power node, and it is necessary to select the optimal target computing power node for the target service flow.
[0124] See also Figure 6 As shown, the target business flow requests application 1, and there are computing nodes 1, computing node 2, computing node 3 and computing node 4 in the computing network; among them, computing node 1 can process the data of application 1 and application 2, computing node 2 can process the data of application 1 and application 3, computing node 3 can process the data of application 2 and application 3, and computing node 4 can process the data of application 1 and application 2; the candidate computing nodes corresponding to the target business flow are computing node 1, computing node 2 and computing node 4; according to the computing power status information of these three computing nodes (including computing delay, network delay, bandwidth and other parameters), the optimal target computing node is determined.
[0125] Above Figure 6 This is just an example. In actual applications, the computing network can include more computing nodes and handle more applications, which will not be elaborated here.
[0126] Step S503: The network device performs address conversion on the first uplink message based on the target address information corresponding to the selected target computing power node to obtain a second uplink message.
[0127] The implementation of step S503 is similar to that of the above step S308, and the only difference is the method of obtaining the target address information, which will not be repeated here.
[0128] Step S504: The network device sends the second uplink message to the target computing power node based on the target address information.
[0129] For example, after receiving the first uplink message for the target service flow, the network device needs to first select the target computing node, and then determine the target address information corresponding to the target computing node, so as to know which computing node the uplink message needs to be sent to. In this way, the target computing node will be used to process the data of the target service flow in the future.
[0130] Step S505: The target computing power node generates a first downlink message based on the uplink data in the second uplink message.
[0131] The second uplink message is obtained by performing address conversion on the first uplink message for the target service flow sent by the service end by the network device.
[0132] Step S506: The target computing power node places the target address information corresponding to the target computing power node in the extended message header of the first downlink message.
[0133] Step S507: The target computing power node sends the first downlink message to the network device.
[0134] Step S508: The network device performs address translation on the first downlink message to obtain a second downlink message.
[0135] Step S509: The network device sends the second downlink message to the service end.
[0136] Step S510: The service end copies the target address information in the second downlink message to the extended message header of the non-first first uplink message for the target service flow.
[0137] Step S511: The service end sends the non-first first uplink message to the network device.
[0138] Step S512: The network device responds to the non-first first uplink message for the target service flow sent by the service end, performs address conversion on the non-first first uplink message based on the target address information corresponding to the target computing power node in the non-first first uplink message, and obtains a second uplink message.
[0139] Step S513: The network device sends the second uplink message to the target computing power node based on the target address information.
[0140] The specific implementation of steps S504 to S513 may refer to the above embodiment and will not be described in detail here.
[0141] In the above scheme, since the above-mentioned downlink message is generated based on the previous uplink message, only the non-first uplink message will carry the target address information, and for the first uplink message of the target service flow, there is no previous uplink message. Therefore, the service end cannot place the target address information in the first uplink message of the target service flow. After receiving the first uplink message for the target service flow, the network device accurately selects the target computing power node suitable for the target service flow based on the computing power status information of the candidate computing power node, and then determines the target address information corresponding to the target computing power node, so as to know which computing power node the uplink message needs to be sent to. In this way, the target computing power node will be used to process the data of the above-mentioned target service flow in the future.
[0142] See also Figure 7 As shown, a specific message forwarding process in an embodiment of the present application is shown. In this application scenario, the service end (the current address is IP1) sends the message 1 (first request) of the target service flow to the router IR1 through the current corresponding router IR1 in the mobile backhaul network access network device; wherein the data part in the message 1 is uplink data 1, the source address (Source Address, SA) is IP1, and the destination address (Destination or Target Address, DA) is SID1 (the address of the application corresponding to the target service flow);
[0143] The network device selects a target computing node (computing node 3) from all candidate computing nodes based on the computing power status information of each candidate computing node corresponding to the target service flow;
[0144] Perform address translation on message 1, and translate the address of the application corresponding to the target service flow in DA into the address BID3 of computing node 3, to obtain message 2;
[0145] Router IR1 encapsulates message 2 to obtain message 3, and transmits message 3 to router ER3 corresponding to computing power node 3.
[0146] Router ER3 decapsulates message 3 to obtain the above-mentioned message 2, and sends message 2 to computing power node 3.
[0147] Computing node 3 processes uplink data 1 in message 2 to obtain downlink data 1;
[0148] Computing node 3 generates message 4 and sends it to the router ER3. The data part of message 4 is downlink data 1, SA is BID3, DA is IP1, and DOH (extended message header) is the address of BID3.
[0149] The network device performs address translation on message 4, converting the address of computing node 3 in SA into the address SID1 of the application corresponding to the target service flow, and obtains message 5;
[0150] Router ER3 encapsulates message 5 to obtain message 6, and transmits message 6 to the router IR1.
[0151] Router IR1 decapsulates message 6 to obtain the message 5, and sends message 5 to the service end.
[0152] The service end (current address is IP2) sends message 7 of the target service flow to the current corresponding router IR2 through the fixed access network; the data part in message 7 is uplink data 2, SA is IP2, DA is SID1, and DOH is the address of BID3;
[0153] The network device parses DOH and determines that the address of the target computing power node is BID3;
[0154] Perform address translation on message 7, and translate the address of the application corresponding to the target service flow in DA into the address BID3 of computing power node 3, to obtain message 8;
[0155] Router IR2 encapsulates message 8 to obtain message 9, and transmits message 9 to router ER3 corresponding to computing power node 3.
[0156] Router ER3 decapsulates message 9 to obtain the above-mentioned message 8, and sends message 8 to computing power node 3.
[0157] Computing node 3 processes uplink data 2 in message 8 to obtain downlink data 2;
[0158] Computing node 3 generates message 10 and sends message 10 to the router ER3. The data part of message 10 is downlink data 2, SA is BID3, DA is IP2, and DOH is the address of BID3.
[0159] The network device performs address translation on message 10, converting the address of computing node 3 in SA into the address SID1 of the application corresponding to the target service flow, and obtains message 11;
[0160] Router ER3 encapsulates message 11 to obtain message 12, and transmits message 12 to the router IR2.
[0161] Router IR2 decapsulates message 12 to obtain the message 11, and sends message 11 to the service end.
[0162] The above examples are only for more clearly illustrating the message transmission process, and the present application is not limited thereto.
[0163] Figure 8 The interactive flow chart of the third computing power routing method provided in the embodiment of the present application is as follows: Figure 8 As shown, the following steps are included:
[0164] Step S801: The service end sends the first first uplink message for the target service flow to the network device.
[0165] Step S802: The network device selects a target computing power node from all candidate computing power nodes based on the computing power status information of each candidate computing power node corresponding to the target service flow.
[0166] Step S803: The network device performs address conversion on the first uplink message based on the target address information corresponding to the selected target computing power node to obtain a second uplink message.
[0167] Step S804: The network device sends the second uplink message to the target computing power node based on the target address information.
[0168] Step S805: The target computing power node generates a first downlink message based on the uplink data in the second uplink message.
[0169] The second uplink message is obtained by performing address conversion on the first uplink message for the target service flow sent by the service end by the network device.
[0170] Step S806: The target computing power node places the target address information corresponding to the target computing power node in the extended message header of the first downlink message.
[0171] Step S807: The target computing power node sends the first downlink message to the network device.
[0172] Step S808: The network device performs address translation on the first downlink message to obtain a second downlink message.
[0173] Step S809: The network device sends the second downlink message to the service end corresponding to the first uplink message.
[0174] The specific implementation of steps S801 to S809 can refer to the above embodiment and will not be described again here.
[0175] Step S810: The service end establishes a preset correspondence between the target address information in the second downlink message and the above-mentioned target service flow.
[0176] During implementation, after the network device selects the target computing power node for the target business flow, all subsequent services of the target business flow are processed by the target computing power node. Therefore, after the business end receives the message carrying the target address information corresponding to the target computing power node, a preset correspondence between the target address information and the above-mentioned target business flow is established. The business end can subsequently query the preset correspondence when sending any subsequent uplink message other than the first one.
[0177] Step S811: The service end determines the target address information corresponding to the target service flow based on the preset corresponding relationship, and places the target address information in the extended message header of the non-first first uplink message.
[0178] Exemplarily, the above-mentioned preset correspondence includes the mapping between the target address information received by the service end after triggering the first first uplink message and the above-mentioned target service flow; in this way, the service end can determine the target address information corresponding to the target service flow by querying the preset correspondence, and then copy the target address information in all subsequent uplink messages that need to be sent.
[0179] Step S812: The service end sends the non-first first uplink message to the network device.
[0180] Step S813: The network device responds to the non-first first uplink message for the target service flow sent by the service end, performs address conversion on the non-first first uplink message based on the target address information corresponding to the target computing power node in the non-first first uplink message, and obtains a second uplink message.
[0181] Step S814: The network device sends the second uplink message to the target computing power node based on the target address information.
[0182] The specific implementation of steps S812 to S814 can refer to the above embodiment and will not be described again here.
[0183] In the above scheme, after the service end triggers the first uplink message and receives the target address information, it establishes a preset correspondence between the target address information and the target service flow (since the feedback target address information is generated based on the previous uplink message, the preset correspondence is also established after sending the first uplink message, and therefore only the non-first uplink message will carry the target address information); after the network device receives the non-first uplink message for the target service flow, it directly obtains the target address information from the extended message header in the uplink message, and can know which computing node the uplink message needs to be sent to without establishing a session table. Therefore, the above method can save the capacity occupied by the network device to maintain the session table, greatly reduce the processing pressure of the network device, and also realize the service adhesion of the terminal when performing network switching, and solve the service interruption problem when the terminal moves.
[0184] In some optional implementations, after the network device selects the target computing power node from all candidate computing power nodes, the above-mentioned target address information can be sent to the business end, and the business end determines the above-mentioned preset corresponding relationship based on the target address information of the target computing power node selected by the network device.
[0185] The specific implementation method is the same as above Figure 8 The embodiments are similar and will not be described again here.
[0186] In the embodiment of the present application, the computing power routing method performed by the network device is as follows: Fig. 9 As shown, the following steps are included:
[0187] Step S901: In response to a non-first first uplink message for a target service flow sent by a service end, address conversion is performed on the non-first first uplink message based on target address information corresponding to a target computing power node in an extended message header of the non-first first uplink message to obtain a second uplink message;
[0188] Step S902: Sending the second uplink message to the target computing power node based on the target address information;
[0189] Among them, the target address information in the non-first first uplink message is sent to the service end after the network device receives the target address information fed back by the target computing power node when processing the previous second uplink message of the target service flow; or, the target address information in the non-first first uplink message is determined by the service end based on a preset corresponding relationship, and the preset corresponding relationship includes the mapping between the target address information received by the service end after triggering the first first uplink message and the target service flow.
[0190] In some optional implementations, performing address conversion on the non-first first uplink message based on the target address information corresponding to the target computing power node in the extended message header of the non-first first uplink message to obtain the second uplink message includes:
[0191] The original destination address in the non-first first uplink message is replaced with the destination address information to obtain the second uplink message.
[0192] In some optional implementations, the method further includes:
[0193] In response to a first first uplink message for a target service flow sent by a service end, a target computing power node is selected from all candidate computing power nodes based on computing power status information of each candidate computing power node corresponding to the target service flow; wherein the first first uplink message does not include target address information;
[0194] The second uplink message is sent to the target computing power node based on the target address information of the selected target computing power node.
[0195] In some optional implementations, if the target address information in the non-first first uplink message is determined by the service end based on a preset corresponding relationship, after selecting the target computing power node from all candidate computing power nodes, it also includes:
[0196] Sending the target address information of the selected target computing power node to the service end, so that the service end determines the preset corresponding relationship based on the target address information of the selected target computing power node; or
[0197] After receiving the target address information fed back by the target computing node when processing the first second uplink message of the target service flow, the fed back target address information is sent to the service end, so that the service end determines the preset corresponding relationship based on the fed back target address information.
[0198] In some optional implementations, if the target address information in the non-first first uplink message is sent to the service end after the network device receives the target address information fed back by the target computing power node when processing the previous second uplink message of the target service flow, then after sending the second uplink message to the target computing power node based on the target address information, it also includes:
[0199] In response to a next first downlink message for the target service flow sent by the target computing power node, performing address conversion on the next first downlink message to obtain a next second downlink message;
[0200] The next second downlink message is sent to the service end corresponding to the first uplink message, so that when the service end sends the next first uplink message for the target service flow to the network device, the target address information in the next second downlink message is copied to the extended message header of the next first uplink message.
[0201] In the embodiment of the present application, the first computing power routing method executed by the service end is as follows Fig.10 As shown, the following steps are included:
[0202] Step S1001: receiving target address information corresponding to a target computing node for a target service flow sent by a network device;
[0203] Step S1002: copying the target address information to an extended message header of a non-first first uplink message for the target service flow, and sending the non-first first uplink message to a network device, so that the network device performs address conversion on the non-first first uplink message based on the target address information, and sends a second uplink message after address conversion to the target computing power node based on the target address information;
[0204] Among them, the target address information in the extended message header of the non-first first uplink message is sent to the service end after the network device receives the target address information fed back by the target computing power node when processing the previous second uplink message of the target service flow.
[0205] In some optional implementations, before receiving the target address information corresponding to the target computing power node for the target service flow sent by the network device, the method further includes:
[0206] The first first uplink message for the target business flow is sent to the network device, so that after receiving the first first uplink message, the network device selects the target computing power node from the alternative computing power nodes of the target business flow, and sends the second uplink message to the target computing power node based on the target address information of the selected target computing power node; wherein the first first uplink message does not contain the target address information.
[0207] In the embodiment of the present application, the second computing power routing method executed by the service end is as follows Fig.11 As shown, the following steps are included:
[0208] Step S1101: determining the target address information corresponding to the target service flow based on a preset corresponding relationship; the preset corresponding relationship includes a mapping between the target address information received by the service end after triggering the first first uplink message and the target service flow;
[0209] Step S1102: Place the target address information in an extended message header of the non-first first uplink message for the target service flow, and send the non-first first uplink message to a network device, so that the network device performs address conversion on the non-first first uplink message based on the target address information, and sends the second uplink message after the address conversion to the target computing power node corresponding to the target address information.
[0210] In the embodiment of the present application, the first computing power routing method executed by the target computing power node is as follows Fig.12 As shown, the following steps are included:
[0211] Step S1201: In response to a second uplink message sent by the network device, a first downlink message is generated based on the uplink data in the second uplink message, and the target address information corresponding to the target computing power node is placed in the extended message header of the first downlink message; wherein the second uplink message is obtained by performing address conversion on the first uplink message for the target service flow sent by the service end by the network device;
[0212] Step S1202: Send the first downlink message to the network device so that after receiving the second downlink message sent by the network device, the service end copies the target address information in the second downlink message to the extended message header of the next first uplink message; wherein the second downlink message is obtained by the network device performing address conversion on the first downlink message.
[0213] In the embodiment of the present application, the second computing power routing method executed by the target computing power node is as follows Fig.13 As shown, the following steps are included:
[0214] Step S1301: after receiving the first second uplink message for the target service flow sent by the network device, generate the first first downlink message based on the uplink data in the first second uplink message, and place the target address information corresponding to the target computing power node in the extended message header of the first first downlink message; wherein the first second uplink message is obtained by the network device performing address conversion based on the target address information corresponding to the target computing power node in the extended message header of the first first uplink message;
[0215] Step S1302: Feedback the first first downlink message to the network device, so that after the service end receives the first second downlink message sent by the network device, it determines the preset correspondence between the target address information and the target service flow, and places the target address information in a non-first first uplink message; wherein the first second downlink message is obtained by the network device performing address conversion on the first first downlink message.
[0216] Figures 9 to 13 The specific implementation of the embodiment can refer to the implementation of the above-mentioned interaction method, and the repeated parts will not be repeated.
[0217] like Fig.14 As shown, based on Fig. 9 The computing power routing method shown in the figure has the same inventive concept, and the embodiment of the present application provides a first computing power routing device 1400, which is applied to a network device, and the device includes:
[0218] The address conversion module 1401 is used to respond to the non-first first uplink message for the target service flow sent by the service end, and perform address conversion on the non-first first uplink message based on the target address information corresponding to the target computing power node in the extended message header of the non-first first uplink message to obtain a second uplink message;
[0219] Forwarding module 1402, configured to send the second uplink message to the target computing power node based on the target address information;
[0220] Among them, the target address information in the non-first first uplink message is sent to the service end after the network device receives the target address information fed back by the target computing power node when processing the previous second uplink message of the target service flow; or, the target address information in the non-first first uplink message is determined by the service end based on a preset corresponding relationship, and the preset corresponding relationship includes the mapping between the target address information received by the service end after triggering the first first uplink message and the target service flow.
[0221] In some optional implementation manners, the address conversion module 1401 is specifically used for:
[0222] The original destination address in the non-first first uplink message is replaced with the destination address information to obtain the second uplink message.
[0223] Some optional implementations further include a computing power node selection module 1403, which is used to:
[0224] In response to a first first uplink message for a target service flow sent by a service end, a target computing power node is selected from all candidate computing power nodes based on computing power status information of each candidate computing power node corresponding to the target service flow; wherein the first first uplink message does not include target address information;
[0225] The address conversion module 1401 is also used for:
[0226] The second uplink message is sent to the target computing power node based on the target address information of the selected target computing power node.
[0227] In some optional implementations, if the target address information in the non-first first uplink message is determined by the service end based on a preset corresponding relationship, after the computing power node selection module 1403 selects the target computing power node from all candidate computing power nodes, the forwarding module 1402 is further used to:
[0228] Sending the target address information of the selected target computing power node to the service end, so that the service end determines the preset corresponding relationship based on the target address information of the selected target computing power node; or
[0229] After receiving the target address information fed back by the target computing node when processing the first second uplink message of the target service flow, the fed back target address information is sent to the service end, so that the service end determines the preset corresponding relationship based on the fed back target address information.
[0230] In some optional implementations, if the target address information in the non-first first uplink message is sent to the service end after the network device receives the target address information fed back by the target computing power node when processing the previous second uplink message of the target service flow, the address conversion module 1401 is further used to:
[0231] After the forwarding module 1402 sends the second uplink message to the target computing power node based on the target address information, in response to the next first downlink message for the target service flow sent by the target computing power node, the next first downlink message is address converted to obtain a next second downlink message;
[0232] The forwarding module 1402 is further used for:
[0233] The next second downlink message is sent to the service end corresponding to the first uplink message, so that when the service end sends the next first uplink message for the target service flow to the network device, the target address information in the next second downlink message is copied to the extended message header of the next first uplink message.
[0234] like Fig.15 As shown, based on Fig.10 The computing power routing method shown in the figure has the same inventive concept, and the embodiment of the present application provides a second computing power routing device 1500, which is applied to the service end, and the device includes:
[0235] The address determination module 1501 is used to receive target address information corresponding to the target computing power node for the target service flow sent by the network device;
[0236] The first sending module 1502 is used to copy the target address information to the extended message header of the non-first first uplink message for the target service flow, and send the non-first first uplink message to the network device, so that the network device performs address conversion on the non-first first uplink message based on the target address information, and sends the second uplink message after the address conversion to the target computing power node based on the target address information;
[0237] Among them, the target address information in the extended message header of the non-first first uplink message is sent to the service end after the network device receives the target address information fed back by the target computing power node when processing the previous second uplink message of the target service flow.
[0238] In some optional implementation manners, the first sending module 1502 is further configured to:
[0239] Before the address determination module 1501 receives the target address information corresponding to the target computing power node for the target business flow sent by the network device, the first first uplink message for the target business flow is sent to the network device, so that after receiving the first first uplink message, the network device selects the target computing power node from the alternative computing power nodes of the target business flow, and sends the second uplink message to the target computing power node based on the target address information of the selected target computing power node; wherein the first first uplink message does not contain the target address information.
[0240] like Fig.16 As shown, based on Fig.11 The computing power routing method shown in the figure has the same inventive concept, and the embodiment of the present application provides a third computing power routing device 1600, which is applied to the service end, and the device includes:
[0241] The address mapping module 1601 is used to determine the target address information corresponding to the target service flow based on a preset corresponding relationship; the preset corresponding relationship includes the mapping between the target address information received by the service end after triggering the first first uplink message and the target service flow;
[0242] The second sending module 1602 is used to place the target address information in the extended message header of the non-first first uplink message for the target service flow, and send the non-first first uplink message to the network device, so that the network device performs address conversion on the non-first first uplink message based on the target address information, and sends the second uplink message after the address conversion to the target computing power node corresponding to the target address information.
[0243] like Fig.17 As shown, based on Fig.12 The computing power routing method shown in FIG. 1 is the same as the inventive concept, and the embodiment of the present application provides a fourth computing power routing device 1700, which is applied to a target computing power node, and the device includes:
[0244] The first address adding module 1701 is used to generate a first downlink message based on the uplink data in the second uplink message in response to the second uplink message sent by the network device, and place the target address information corresponding to the target computing power node in the extended message header of the first downlink message; wherein the second uplink message is obtained by performing address conversion on the first uplink message sent by the network device for the target service flow by the service end;
[0245] The third sending module 1702 is used to send the first downlink message to the network device, so that after the service end receives the second downlink message sent by the network device, it copies the target address information in the second downlink message to the extended message header of the next first uplink message; wherein, the second downlink message is obtained by the network device performing address conversion on the first downlink message.
[0246] like Fig.18 As shown, based on Fig.13 The computing power routing method shown in FIG. 1 is the same as the inventive concept, and the embodiment of the present application provides a fourth computing power routing device 1800, which is applied to a target computing power node, and the device includes:
[0247] The second address adding module 1801 is used to generate a first first downlink message based on the uplink data in the first second uplink message after receiving the first second uplink message for the target service flow sent by the network device, and place the target address information corresponding to the target computing power node in the extended message header of the first first downlink message; wherein the first second uplink message is obtained by the network device performing address conversion based on the target address information corresponding to the target computing power node in the extended message header of the first first uplink message;
[0248] The fourth sending module 1802 is used to feed back the first first downlink message to the network device, so that after the service end receives the first second downlink message sent by the network device, it determines the preset correspondence between the target address information and the target service flow, and places the target address information in a non-first first uplink message; wherein, the first second downlink message is obtained by the network device performing address conversion on the first first downlink message.
[0249] Figure 13 to Figure 18 The specific implementation of the embodiment can refer to the implementation of the above-mentioned interaction method, and the repeated parts will not be repeated.
[0250] Based on the same technical concept, the embodiment of the present application also provides a network device 1900, such as Fig.19As shown, it includes at least one processor 1901 and a memory 1902 connected to the at least one processor. The specific connection medium between the processor 1901 and the memory 1902 is not limited in the embodiment of the present application. Fig.19 For example, the processor 1901 and the memory 1902 are connected via a bus 1903. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.19 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.
[0251] Among them, the processor 1901 is the control center of the network device, which can use various interfaces and lines to connect various parts of the network device, and realize data processing by running or executing instructions stored in the memory 1902 and calling data stored in the memory 1902. Optionally, the processor 1901 may include one or more processing units, and the processor 1901 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application program, etc., and the modem processor mainly processes the issuance of instructions. It is understandable that the above-mentioned modem processor may not be integrated into the processor 1901. In some embodiments, the processor 1901 and the memory 1902 may be implemented on the same chip, and in some embodiments, they may also be implemented separately on independent chips.
[0252] Processor 1901 can be a general-purpose processor, such as a central processing unit (CPU), a digital signal processor, an application-specific integrated circuit (ASIC), a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, and can implement or execute the methods, steps and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor can be a microprocessor or any conventional processor, etc. The steps of the method disclosed in the embodiment of the computing power routing method can be directly embodied as a hardware processor for execution, or can be executed by a combination of hardware and software modules in the processor.
[0253] Memory 1902, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer executable programs and modules. Memory 1902 may include at least one type of storage medium, such as flash memory, hard disk, multimedia card, card-type memory, random access memory (Random Access Memory, RAM), static random access memory (Static Random Access Memory, SRAM), programmable read-only memory (Programmable Read Only Memory, PROM), read-only memory (Read Only Memory, ROM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), magnetic memory, disk, optical disk, etc. Memory 1902 is any other medium that can be used to carry or store the desired program code in the form of an instruction or data structure and can be accessed by a computer, but is not limited thereto. The memory 1902 in the embodiment of the present application can also be a circuit or any other device that can realize a storage function, for storing program instructions and / or data.
[0254] In the embodiment of the present application, the memory 1902 stores a computer program. When the program is executed by the processor 1901, the processor 1901 executes:
[0255] In response to a non-first first uplink message for a target service flow sent by a service end, address conversion is performed on the non-first first uplink message based on target address information corresponding to a target computing power node in an extended message header of the non-first first uplink message to obtain a second uplink message;
[0256] Sending the second uplink message to the target computing power node based on the target address information;
[0257] Among them, the target address information in the non-first first uplink message is sent to the service end after the network device receives the target address information fed back by the target computing power node when processing the previous second uplink message of the target service flow; or, the target address information in the non-first first uplink message is determined by the service end based on a preset corresponding relationship, and the preset corresponding relationship includes the mapping between the target address information received by the service end after triggering the first first uplink message and the target service flow.
[0258] In some optional implementation manners, the processor 1901 specifically performs:
[0259] The original destination address in the non-first first uplink message is replaced with the destination address information to obtain the second uplink message.
[0260] In some optional implementations, the processor 1901 further executes:
[0261] In response to a first first uplink message for a target service flow sent by a service end, a target computing power node is selected from all candidate computing power nodes based on computing power status information of each candidate computing power node corresponding to the target service flow; wherein the first first uplink message does not include target address information;
[0262] Sending a second uplink message to the target computing power node based on the target address information of the selected target computing power node;
[0263] The second uplink message is sent to the target computing power node based on the target address information.
[0264] In some optional implementations, if the target address information in the non-first first uplink message is determined by the service end based on a preset corresponding relationship, after selecting the target computing power node from all candidate computing power nodes, the processor 1901 further executes:
[0265] Sending the target address information of the selected target computing power node to the service end, so that the service end determines the preset corresponding relationship based on the target address information of the selected target computing power node; or
[0266] After receiving the target address information fed back by the target computing node when processing the first second uplink message of the target service flow, the fed back target address information is sent to the service end, so that the service end determines the preset corresponding relationship based on the fed back target address information.
[0267] In some optional implementations, if the target address information in the non-first first uplink message is sent to the service end after the network device receives the target address information fed back by the target computing power node when processing the previous second uplink message of the target service flow, then after sending the second uplink message to the target computing power node based on the target address information, the processor 1901 further executes:
[0268] In response to a next first downlink message for the target service flow sent by the target computing power node, performing address conversion on the next first downlink message to obtain a next second downlink message;
[0269] The next second downlink message is sent to the service end corresponding to the first uplink message, so that when the service end sends the next first uplink message for the target service flow to the network device, the target address information in the next second downlink message is copied to the extended message header of the next first uplink message.
[0270] Based on the same technical concept, an embodiment of the present application further provides a service end, including at least one processor and at least one memory, wherein the memory stores a computer program, and when the program is executed by the processor, the processor executes:
[0271] Receive target address information corresponding to the target computing power node for the target service flow sent by the network device;
[0272] Copying the target address information to an extended message header of a non-first first uplink message for the target service flow, and sending the non-first first uplink message to a network device, so that the network device performs address conversion on the non-first first uplink message based on the target address information, and sends a second uplink message after address conversion to the target computing power node based on the target address information;
[0273] Among them, the target address information in the extended message header of the non-first first uplink message is sent to the service end after the network device receives the target address information fed back by the target computing power node when processing the previous second uplink message of the target service flow.
[0274] In some optional implementations, before receiving the target address information corresponding to the target computing power node for the target service flow sent by the network device, the processor further executes:
[0275] The first first uplink message for the target business flow is sent to the network device, so that after receiving the first first uplink message, the network device selects the target computing power node from the alternative computing power nodes of the target business flow, and sends the second uplink message to the target computing power node based on the target address information of the selected target computing power node; wherein the first first uplink message does not contain the target address information.
[0276] Based on the same technical concept, an embodiment of the present application further provides another service end, including at least one processor and at least one memory, wherein the memory stores a computer program, and when the program is executed by the processor, the processor executes:
[0277] Determine the target address information corresponding to the target service flow based on a preset corresponding relationship; the preset corresponding relationship includes a mapping between the target address information received by the service end after triggering the first first uplink message and the target service flow;
[0278] The target address information is placed in an extended message header of the non-first first uplink message for the target service flow, and the non-first first uplink message is sent to a network device, so that the network device performs address conversion on the non-first first uplink message based on the target address information, and sends the second uplink message after the address conversion to the target computing power node corresponding to the target address information.
[0279] Based on the same technical concept, an embodiment of the present application further provides a target computing power node, including at least one processor and at least one memory, wherein the memory stores a computer program, and when the program is executed by the processor, the processor executes:
[0280] In response to a second uplink message sent by the network device, a first downlink message is generated based on the uplink data in the second uplink message, and the target address information corresponding to the target computing power node is placed in the extended message header of the first downlink message; wherein the second uplink message is obtained by performing address conversion on the first uplink message for the target service flow sent by the service end by the network device;
[0281] The first downlink message is sent to the network device so that after the service end receives the second downlink message sent by the network device, it copies the target address information in the second downlink message to the extended message header of the next first uplink message; wherein the second downlink message is obtained by the network device performing address conversion on the first downlink message.
[0282] Based on the same technical concept, an embodiment of the present application further provides another target computing power node, including at least one processor and at least one memory, wherein the memory stores a computer program, and when the program is executed by the processor, the processor executes:
[0283] After receiving the first second uplink message for the target service flow sent by the network device, a first first downlink message is generated based on the uplink data in the first second uplink message, and the target address information corresponding to the target computing power node is placed in the extended message header of the first first downlink message; wherein the first second uplink message is obtained by the network device performing address conversion based on the target address information corresponding to the target computing power node in the extended message header of the first first uplink message;
[0284] The first first downlink message is fed back to the network device so that after the service end receives the first second downlink message sent by the network device, it determines the preset correspondence between the target address information and the target service flow, and places the target address information in a non-first first uplink message; wherein the first second downlink message is obtained by the network device performing address conversion on the first first downlink message.
[0285] Based on the same technical concept, an embodiment of the present application also provides a computer-readable storage medium, which stores a computer program executable by a processor. When the program runs on the processor, the processor executes the steps of the above-mentioned computing power routing method.
[0286] 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.
[0287] 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 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 produce 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.
[0288] 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 including 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.
[0289] 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 in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0290] Although the preferred embodiments of the present application have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.
[0291] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations 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 computing power routing method, characterized in that: Applied to a network device, the method comprises: In response to a non-first first uplink message for a target service flow sent by a service end, address conversion is performed on the non-first first uplink message based on target address information corresponding to a target computing power node in an extended message header of the non-first first uplink message to obtain a second uplink message; Sending the second uplink message to the target computing power node based on the target address information; Among them, the target address information in the non-first first uplink message is sent to the service end after the network device receives the target address information fed back by the target computing power node when processing the previous second uplink message of the target service flow; or, the target address information in the non-first first uplink message is determined by the service end based on a preset corresponding relationship, and the preset corresponding relationship includes the mapping between the target address information received by the service end after triggering the first first uplink message and the target service flow.
2. The method according to claim 1, characterized in that Performing address conversion on the non-first first uplink message based on the target address information corresponding to the target computing power node in the extended message header of the non-first first uplink message to obtain a second uplink message, including: The original destination address in the non-first first uplink message is replaced with the destination address information to obtain the second uplink message.
3. The method according to claim 1, characterized in that The method further includes: In response to a first first uplink message for a target service flow sent by a service end, a target computing power node is selected from all candidate computing power nodes based on computing power status information of each candidate computing power node corresponding to the target service flow; wherein the first first uplink message does not include target address information; The second uplink message is sent to the target computing power node based on the target address information of the selected target computing power node.
4. The method according to claim 3, characterized in that If the target address information in the non-first first uplink message is determined by the service end based on a preset corresponding relationship, after selecting the target computing power node from all candidate computing power nodes, the method further includes: Sending the target address information of the selected target computing power node to the service end, so that the service end determines the preset corresponding relationship based on the target address information of the selected target computing power node; or After receiving the target address information fed back by the target computing node when processing the first second uplink message of the target service flow, the fed back target address information is sent to the service end, so that the service end determines the preset corresponding relationship based on the fed back target address information.
5. The method according to any one of claims 1 to 3, characterized in that: If the target address information in the non-first first uplink message is sent to the service end after the network device receives the target address information fed back by the target computing power node when processing the last second uplink message of the target service flow, then after sending the second uplink message to the target computing power node based on the target address information, it also includes: In response to a next first downlink message for the target service flow sent by the target computing power node, performing address conversion on the next first downlink message to obtain a next second downlink message; The next second downlink message is sent to the service end corresponding to the first uplink message, so that when the service end sends the next first uplink message for the target service flow to the network device, the target address information in the next second downlink message is copied to the extended message header of the next first uplink message.
6. A computing power routing method, characterized in that: Applied to the business end, the method includes: Receive target address information corresponding to the target computing power node for the target service flow sent by the network device; Copying the target address information to an extended message header of a non-first first uplink message for the target service flow, and sending the non-first first uplink message to a network device, so that the network device performs address conversion on the non-first first uplink message based on the target address information, and sends a second uplink message after address conversion to the target computing power node based on the target address information; Among them, the target address information in the extended message header of the non-first first uplink message is sent to the service end after the network device receives the target address information fed back by the target computing power node when processing the previous second uplink message of the target service flow.
7. The method according to claim 6, characterized in that Before receiving the target address information corresponding to the target computing power node for the target service flow sent by the network device, the method further includes: The first first uplink message for the target business flow is sent to the network device, so that after receiving the first first uplink message, the network device selects the target computing power node from the alternative computing power nodes of the target business flow, and sends the second uplink message to the target computing power node based on the target address information of the selected target computing power node; wherein the first first uplink message does not contain the target address information.
8. A computing power routing method, characterized in that: Applied to the business end, the method includes: Determine the target address information corresponding to the target service flow based on a preset corresponding relationship; the preset corresponding relationship includes a mapping between the target address information received by the service end after triggering the first first uplink message and the target service flow; The target address information is placed in an extended message header of the non-first first uplink message for the target service flow, and the non-first first uplink message is sent to a network device, so that the network device performs address conversion on the non-first first uplink message based on the target address information, and sends the second uplink message after the address conversion to the target computing power node corresponding to the target address information.
9. A computing power routing method, characterized in that: Applied to the target computing power node, the method includes: In response to a second uplink message sent by the network device, a first downlink message is generated based on the uplink data in the second uplink message, and the target address information corresponding to the target computing power node is placed in the extended message header of the first downlink message; wherein the second uplink message is obtained by performing address conversion on the first uplink message for the target service flow sent by the service end by the network device; The first downlink message is sent to the network device so that after the service end receives the second downlink message sent by the network device, it copies the target address information in the second downlink message to the extended message header of the next first uplink message; wherein the second downlink message is obtained by the network device performing address conversion on the first downlink message.
10. A computing power routing method, characterized in that: Applied to the target computing power node, the method includes: After receiving the first second uplink message for the target service flow sent by the network device, a first first downlink message is generated based on the uplink data in the first second uplink message, and the target address information corresponding to the target computing power node is placed in the extended message header of the first first downlink message; wherein the first second uplink message is obtained by the network device performing address conversion based on the target address information corresponding to the target computing power node in the extended message header of the first first uplink message; The first first downlink message is fed back to the network device so that after the service end receives the first second downlink message sent by the network device, it determines the preset correspondence between the target address information and the target service flow, and places the target address information in a non-first first uplink message; wherein the first second downlink message is obtained by the network device performing address conversion on the first first downlink message.
11. A computing power routing device, characterized in that: Applied to network equipment, the device comprises: An address conversion module, configured to respond to a non-first first uplink message for a target service flow sent by a service end, and perform address conversion on the non-first first uplink message based on target address information corresponding to a target computing power node in an extended message header of the non-first first uplink message to obtain a second uplink message; A forwarding module, configured to send the second uplink message to the target computing power node based on the target address information; Among them, the target address information in the non-first first uplink message is sent to the service end after the network device receives the target address information fed back by the target computing power node when processing the previous second uplink message of the target service flow; or, the target address information in the non-first first uplink message is determined by the service end based on a preset corresponding relationship, and the preset corresponding relationship includes the mapping between the target address information received by the service end after triggering the first first uplink message and the target service flow.
12. A computing power routing device, characterized in that: Applied to the business end, the device includes: An address determination module is used to receive target address information corresponding to a target computing power node for a target service flow sent by a network device; A first sending module, used to copy the target address information to an extended message header of a non-first first uplink message for the target service flow, and send the non-first first uplink message to a network device, so that the network device performs address conversion on the non-first first uplink message based on the target address information, and sends a second uplink message after address conversion to the target computing power node based on the target address information; Among them, the target address information in the extended message header of the non-first first uplink message is sent to the service end after the network device receives the target address information fed back by the target computing power node when processing the previous second uplink message of the target service flow.
13. A computing power routing device, characterized in that: Applied to the business end, the device includes: An address mapping module, used to determine the target address information corresponding to the target service flow based on a preset corresponding relationship; the preset corresponding relationship includes a mapping between the target address information received by the service end after triggering the first first uplink message and the target service flow; The second sending module is used to place the target address information in the extended message header of the non-first first uplink message for the target service flow, and send the non-first first uplink message to the network device, so that the network device performs address conversion on the non-first first uplink message based on the target address information, and sends the second uplink message after the address conversion to the target computing power node corresponding to the target address information.
14. A computing power routing device, characterized in that: Applied to the target computing power node, the device includes: A first address adding module, configured to generate a first downlink message based on the uplink data in the second uplink message in response to the second uplink message sent by the network device, and place the target address information corresponding to the target computing power node in the extended message header of the first downlink message; wherein the second uplink message is obtained by performing address conversion on the first uplink message for the target service flow sent by the service end by the network device; The third sending module is used to send the first downlink message to the network device, so that after the service end receives the second downlink message sent by the network device, it copies the target address information in the second downlink message to the extended message header of the next first uplink message; wherein, the second downlink message is obtained by the network device performing address conversion on the first downlink message.
15. A computing power routing device, characterized in that: Applied to the target computing power node, the device includes: A second address adding module is used to generate a first first downlink message based on the uplink data in the first second uplink message after receiving the first second uplink message for the target service flow sent by the network device, and place the target address information corresponding to the target computing power node in the extended message header of the first first downlink message; wherein the first second uplink message is obtained by the network device performing address conversion based on the target address information corresponding to the target computing power node in the extended message header of the first first uplink message; The fourth sending module is used to feed back the first first downlink message to the network device, so that after the service end receives the first second downlink message sent by the network device, it determines the preset correspondence between the target address information and the target service flow, and places the target address information in a non-first first uplink message; wherein, the first second downlink message is obtained by the network device performing address conversion on the first first downlink message.
Citation Information
Patent Citations
Load balancing method and device thereof
CN108449282A
Message sending method, network equipment and computer readable storage medium
CN110247848A