Message processing method and device, electronic equipment, storage medium and computer program product
By aggregating service nodes in the path in distributed machine learning to send messages and using network topology to plan the path, the problem of link bandwidth bottleneck and insufficient computing resources of the parameter server is solved, and the efficiency of model parameter update is improved.
Patent Information
- Application Number
- CN202410764012.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-06-13
AI Technical Summary
In distributed machine learning, parameter servers face link bandwidth bottlenecks and insufficient computing resources, resulting in low efficiency in updating model parameters.
Send messages through multiple service nodes in the aggregation path, use control nodes to plan paths based on the service capabilities of each node in the network topology, perform aggregation processing of message headers and loads, reduce the total amount of communication and computing resource usage, and utilize Bandwidth pressure is distributed among all nodes in the network topology.
It improves the efficiency of the parameter server in updating model parameters, solves the problems of bandwidth bottlenecks and insufficient computing resources, and achieves faster model parameter updates.
Smart Images

Figure CN118827508A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of distributed training technology, and in particular to a message processing method, device, electronic device, storage medium and computer program product. Background Art
[0002] In distributed machine learning, parameter servers (PS) are used to manage and share model parameters. The basic idea is to store model parameters on one or more central servers and share these parameters with work servers through messages. Each work server obtains the current model parameters from the parameter server to calculate local gradients, and returns the calculated local gradients to the parameter server through messages for parameter update. However, when multiple work servers send local gradient messages to the parameter server, they face link bandwidth bottlenecks. The last-hop link faces the INCAST multiple-to-one bandwidth bottleneck and the parameter server's own insufficient computing resources, resulting in low efficiency in message transmission from the work server to the parameter server or low efficiency in processing multiple local gradient messages by the parameter server. The parameter server cannot quickly use local gradients to update parameters, reducing the model's parameter update efficiency. Summary of the invention
[0003] The embodiments of the present application provide a message processing method, device, electronic device, storage medium and computer program product, which can improve the parameter update efficiency of the parameter server for the model.
[0004] The technical solution of this application is implemented as follows:
[0005] The present application provides a message processing method, including:
[0006] aggregating first messages respectively sent by multiple first service nodes in a path to obtain a second message; wherein the path is determined based on path information sent by a control node, and the path information is obtained by the control node performing path planning based on the service capabilities of each node in a network topology; the first service node and the first forwarding node in different paths are different;
[0007] The second message is sent to a second service node in the path.
[0008] In the above solution, before obtaining the second message from the first messages respectively sent by the multiple first service nodes in the aggregation path, the method further includes:
[0009] The local bitmap information and local node identifier sent by the receiving control node.
[0010] In the above solution, the first message includes: a message header and a message payload;
[0011] The message header includes at least one of the following: communication address information, first target bitmap information of a target forwarding node, and a plurality of protocol fields; and the message payload includes data to be aggregated.
[0012] In the above solution, the first messages respectively sent by the multiple first service nodes in the aggregation path to obtain the second message include:
[0013] Based on the matching results of the plurality of first target bitmap information and the local bitmap information, and the current computing resources, determining the aggregate detection results of the plurality of first messages; wherein each of the plurality of first target bitmap information belongs to the corresponding first message;
[0014] If the aggregation detection result indicates that aggregation of multiple first messages is supported, the data to be aggregated in the payloads of multiple messages are aggregated and combined with the message headers to obtain the second message.
[0015] In the above scheme, the data to be aggregated includes: N sub-data in a certain order; N is an integer greater than 0; the data to be aggregated in the payload of multiple messages are aggregated and combined with the message header to obtain a second message, including:
[0016] Aggregating the sub-data corresponding to the same order in the plurality of data to be aggregated to obtain an aggregated message payload part;
[0017] Modify the first protocol field in the message header to obtain an aggregate message header; wherein the modified first protocol field is used to indicate that the corresponding first message has been aggregated;
[0018] The aggregate message payload and the aggregate message header are combined to obtain the second message.
[0019] In the above scheme, after determining the aggregate detection results of the plurality of first messages based on the matching results of the plurality of first target bitmap information and the local bitmap information, and the current computing resources, the method further includes:
[0020] If the aggregation detection result indicates that aggregation of the plurality of first messages is not supported, modifying the second protocol field in the message header of each of the first messages to obtain a corresponding third message; wherein the modified second protocol field is used to indicate that the corresponding first forwarding node does not support aggregation;
[0021] Each of the third messages is sent to the second service node based on the next hop in the path information, so that the second service node aggregates multiple third messages and completes the model parameter update based on the aggregated messages.
[0022] In the above solution, after sending the second message to the second service node in the path, the method further includes:
[0023] receiving a fourth message sent by the second service node, and determining a message detection result for the fourth message; wherein the message detection result is used to indicate whether the fourth message is a one-to-many message sent to multiple first service nodes;
[0024] If the message detection result indicates that the fourth message is a one-to-many message sent to multiple first service nodes, copy the fourth message for each of the first service nodes to obtain a fifth message corresponding to each of the first service nodes;
[0025] The fifth message is sent to each corresponding first service node.
[0026] In the above solution, determining the message detection result for the fourth message includes:
[0027] The message detection result is determined based on the matching result between the second target bitmap information and the local bitmap information in the message header of the fourth message, and the third protocol field in the message header of the fourth message; wherein the third protocol field is used to characterize whether the fourth message is a one-to-many message sent to multiple first service nodes.
[0028] The embodiment of the present application also provides a message processing method, which is applied to a control node, including:
[0029] Perform path planning based on the service capabilities of each node in the acquired network topology to determine path information; wherein the path information is used to characterize the first service node, the first forwarding node, and the second service node included in each of the paths; the first service node and the first forwarding node in different paths are different;
[0030] The path information is sent to each of the nodes, so that the first forwarding node in each of the paths aggregates first messages respectively sent by a plurality of the first service nodes, and sends the aggregated second message to the second service node.
[0031] In the above solution, before performing path planning based on the service capability of each node in the acquired network topology and determining the path information, the method further includes:
[0032] According to each of the node configuration bitmap information and the corresponding relationship between the node identifier, a corresponding relationship set is formed;
[0033] The corresponding relationship set is sent to each service node in the network topology, and the bitmap information and the node identifier corresponding to each forwarding node are sent to the corresponding forwarding node; wherein the service nodes include: the first service node and the second service node; and the forwarding nodes include the first forwarding node.
[0034] In the above solution, the path planning is performed based on the service capability of each node in the acquired network topology to determine the path information, including:
[0035] Based on the service capabilities of each of the nodes obtained by processing a preset model, initial path information between each of the first service nodes and the corresponding second service node is determined; wherein the initial path information includes at least one of the following: port information and address information of each of the nodes in the path, and sending task information of each of the first service nodes;
[0036] Based on data representing the service capabilities of each forwarding node in the path represented by the initial path information, determining the first forwarding node having the strongest aggregation capability among the forwarding nodes;
[0037] The initial path information and the bitmap information of the first forwarding node are combined to determine the path information.
[0038] In the above solution, after determining the first forwarding node with the strongest aggregation capability among the forwarding nodes based on the service capability of each forwarding node in the path represented by the initial path information, the method further includes:
[0039] Obtaining the service capability of each forwarding node in the path information at predetermined intervals;
[0040] Based on the service capabilities of the forwarding nodes obtained each time, determining the first forwarding node with the strongest new aggregation capability among the forwarding nodes;
[0041] New path information is formed based on the newly determined first forwarding node and sent to each of the nodes.
[0042] The embodiment of the present application further provides a message processing device, which is applied to a first forwarding node, including:
[0043] an aggregation unit, configured to aggregate first messages respectively sent by a plurality of first service nodes in a path to obtain a second message; wherein the path is determined based on path information sent by a control node, and the path information is obtained by the control node performing path planning based on the service capabilities of each node in a network topology; and the first service node and the first forwarding node in different paths are different;
[0044] The first sending unit is configured to send the second message to a second service node in the path.
[0045] The embodiment of the present application further provides a message processing device, which is applied to a control node, including:
[0046] A path planning unit, configured to perform path planning based on the service capability of each node in the acquired network topology, and determine path information; wherein the path information is used to characterize the first service node, the first forwarding node, and the second service node included in each of the paths; the first service node and the first forwarding node in different paths are different;
[0047] The second sending unit is used to send the path information to each of the nodes, so that the first forwarding node in each of the paths aggregates the first messages respectively sent by multiple first service nodes, and sends the aggregated second message to the second service node.
[0048] An embodiment of the present application also provides an electronic device, including a first memory and a first processor, wherein the first memory stores a computer program that can be run on the first processor, and when the first processor executes the computer program, the steps in the method on the first forwarding node side are implemented.
[0049] An embodiment of the present application also provides an electronic device, including a second memory and a second processor, wherein the second memory stores a computer program that can be run on the second processor, and when the second processor executes the computer program, the steps in the method on the control node side are implemented.
[0050] An embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by the first processor, the steps in the method on the first forwarding node side are implemented.
[0051] An embodiment of the present application further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a second processor, the steps in the method on the control node side are implemented.
[0052] An embodiment of the present application further provides a computer program product, including a computer program, which implements the steps in the method on the first forwarding node side when executed by the first processor.
[0053] An embodiment of the present application further provides a computer program product, including a computer program, which implements the steps in the method on the control node side when executed by a second processor.
[0054] In the embodiment of the present application, the first messages sent by multiple first service nodes in the aggregation path are respectively obtained to obtain the second message; wherein the path is determined based on the path information sent by the control node, and the path information is obtained by the control node through path planning based on the service capabilities of each node in the network topology; the first service node and the first forwarding node in different paths are different; and the second message is sent to the second service node in the path. In this way, since multiple first messages are aggregated in the first forwarding node, a second message with a smaller amount of data is obtained, which reduces the total amount of communication between the first service node and the second service node, thereby reducing the computing resource occupation of the second service node when updating the model parameters, and improving the efficiency of the second service node for model parameter updates.
[0055] Furthermore, the path is obtained through path planning based on the service capabilities of each node in the network topology. Such path planning can maximize the use of the bandwidth capabilities of all current nodes, that is, all nodes with forwarding functions in the network topology can be used to upload the first message, thereby dispersing bandwidth pressure and solving the problem of bandwidth bottleneck.
[0056] Moreover, compared with the scheme of uploading messages through the default route in the related technology, the different schemes of the first service nodes and the first forwarding nodes in different paths can share the messages of each first service node in the network topology to different forwarding nodes, thereby reducing the delay in processing the message through the first forwarding device in the default route, and can quickly send the message to the second service node, thereby improving the efficiency of the second service node in updating the model parameters. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] Figure 1 An optional effect schematic diagram of the related technology provided in the embodiment of the present application;
[0058] Figure 2 An optional effect schematic diagram of the related technology provided in the embodiment of the present application;
[0059] Figure 3 An optional flowchart of a message processing method provided in an embodiment of the present application;
[0060] Figure 4 An optional flowchart of a message processing method provided in an embodiment of the present application;
[0061] Figure 5 An optional flowchart of a message processing method provided in an embodiment of the present application;
[0062] Figure 6 An optional flowchart of a message processing method provided in an embodiment of the present application;
[0063] Figure 7 An optional effect diagram of the message processing method provided in the embodiment of the present application;
[0064] Figure 8 An optional flowchart of a message processing method provided in an embodiment of the present application;
[0065] Fig. 9 An optional flowchart of a message processing method provided in an embodiment of the present application;
[0066] Fig.10 An optional flowchart of a message processing method provided in an embodiment of the present application;
[0067] Fig.11 An optional effect diagram of the message processing method provided in the embodiment of the present application;
[0068] Fig.12 An optional effect diagram of the message processing method provided in the embodiment of the present application;
[0069] Fig.13 An optional flowchart of a message processing method provided in an embodiment of the present application;
[0070] Fig.14 An optional flowchart of a message processing method provided in an embodiment of the present application;
[0071] Fig.15 An optional flowchart of a message processing method provided in an embodiment of the present application;
[0072] Fig.16 An optional flowchart of a message processing method provided in an embodiment of the present application;
[0073] Fig.17 An optional flowchart of a message processing method provided in an embodiment of the present application;
[0074] Fig.18 An optional flowchart of a message processing method provided in an embodiment of the present application;
[0075] Fig.19 An interactive schematic diagram of a message processing method provided in an embodiment of the present application;
[0076] Fig. 20 A schematic diagram of the structure of the message processing device provided in the embodiment of the present application Figure 1 ;
[0077] Fig.21 A hardware entity diagram of an electronic device provided in an embodiment of the present application Figure 1 ;
[0078] Fig. 22 A schematic diagram of the structure of the message processing device provided in the embodiment of the present application Figure 2 ;
[0079] Fig.23 A hardware entity diagram of an electronic device provided in an embodiment of the present application Figure 2 . DETAILED DESCRIPTION
[0080] In order to make the purpose, technical solutions and advantages of the present application clearer, the technical solutions of the present application are further elaborated in detail below in conjunction with the drawings and embodiments. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.
[0081] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0082] If similar descriptions of "first / second" appear in the application documents, the following instructions are added. In the following description, the terms "first\second\third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged in a specific order or sequence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.
[0083] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0084] In the related technologies, the existing distributed machine learning solutions have the following problems:
[0085] 1. Routing scheduling: Through advance planning, only the bandwidth imbalance problem of the working server and the parameter server is shared, which can effectively utilize all the current bandwidth, but the total amount of message communication between the working server and the parameter server has not changed. The INCAST multiple-to-one bandwidth bottleneck faced by the last hop link of the parameter server still exists, and the computing resource usage of the parameter server itself has not been reduced.
[0086] Combination Figure 1, where the work server is represented by W, the switch is represented by S, and the parameter server is represented by ps. When the ingress bandwidth from the work server to the switch is 1 Gbps, the aggregate bandwidth processed by the PS is 9 Gbps, and the bandwidth of each link (S1->S3, S2->S3, S1->S2) is 3 Gbps.
[0087] Set the routing strategy based on the path bandwidth constraints between the worker servers and parameter servers:
[0088] W4->S1->S2->S3->PS (to prevent congestion of S1->S3)
[0089] W1->S1->S3->PS
[0090] W2->S1->S3->PS
[0091] W5, W6->S2->S3->PS
[0092] W7, W8->S3->PS
[0093] If the sending gradient amount exceeds 1G, the messages exceeding the aggregate bandwidth of the PS will cause INCAST congestion from S3 to PS, so the sending gradient bandwidth of W1-W6 is 1G.
[0094] 2. On-network aggregation: No forwarding device is specified. Based on the default route, on-network computing is performed on the first forwarding device. It is not possible to use multiple forwarding devices to collaboratively offload the aggregation operation of the same computing task in the same computing group. Figure 2 To explain:
[0095] S1 aggregates W1, W2, W3, W4
[0096] S2 aggregates W5, W6
[0097] S3 aggregation W7, W8
[0098] When the ingress bandwidth from the working server to the switch is 1 Gbps, the aggregate bandwidth processed by the PS is 9 Gbps, and the bandwidth of each link (S1->S3, S2->S3, S1->S2) is 3 Gbps.
[0099] When the processing gradient bandwidth of S is 9G, the gradient exceeding the bandwidth is still sent to PS for processing.
[0100] Therefore, the gradient transmission bandwidth of W1 to W4 is 9 / 4=2.25G.
[0101] The bandwidth of the link is 3, and the remaining bandwidth is 3-2.25=0.75G. From the bandwidth to be aggregated sent to the PS, 0.75 / 4=0.18G. The calculated W1-W4 sending gradient bandwidth is 2.53G.
[0102] The bandwidth of gradient transmission of W5, W6, W7, and W8 is 3G. W1-W4 become the short board of gradient transmission in the computing group.
[0103] This application embodiment provides a message processing method, see Figure 3 , is an optional flow chart of the message processing method provided in the embodiment of the present application, which will be combined with Figure 3 The steps shown are explained:
[0104] S101, aggregating first messages respectively sent by multiple first service nodes in a path to obtain a second message; wherein, the path is determined based on path information sent by a control node, and the path information is obtained by the control node through path planning based on the service capabilities of each node in the network topology; the first service node and the first forwarding node in different paths are different.
[0105] In an embodiment of the present application, after the first forwarding node receives the path information sent by the control node, it determines the local node as the forwarding node for aggregating and forwarding the first message based on the path information. After obtaining the first messages respectively sent by multiple first service nodes in the corresponding path, the multiple first messages are aggregated to obtain the second message.
[0106] The first message includes: a message header and a message payload; the message header includes at least one of the following: communication address information, first target bitmap information of a target forwarding node, and multiple protocol fields; the message payload includes data to be aggregated. The first service node may be a working server, the first forwarding node may be a switch, and the second service node may be a parameter server.
[0107] Among them, the control node performs path planning for each node in the network topology by obtaining the service capabilities of each node in the network topology (including at least one of the following: egress bandwidth, link bandwidth, aggregate bandwidth, and tasks to be calculated) to determine path information. The first service node and the first forwarding node in the path represented by each path information are different. Exemplarily, the control node obtains the egress bandwidth, link bandwidth, and aggregate bandwidth of each node in the network topology, and models the above parameters to find the optimal solution to determine the path, and plans the local data calculation task of the first service node. The control node sends path information to the first service node, the first forwarding node, and the second service node in each path respectively.
[0108] In an embodiment of the present application, after receiving multiple first messages, the first forwarding node can aggregate the data to be aggregated (gradient data) in each first message in a certain order to obtain a second message.
[0109] In an embodiment of the present application, if after receiving multiple first messages, the first forwarding node detects that the local device does not support aggregation of multiple first messages, the multiple first messages are forwarded to the next hop node according to the next hop in the path.
[0110] S102: Send the second message to a second service node in the path.
[0111] In an embodiment of the present application, after the first forwarding node obtains the corresponding path information, the port and address information of the second service node in the corresponding path can be obtained. The second message is sent to the second service node based on the port and address information of the second service node. After the second service node receives the second message, the model can be gradient updated by the gradient parameters in the second message to obtain a new model.
[0112] Since multiple first messages are aggregated in the first forwarding node, a second message with a smaller data volume is obtained, which reduces the total amount of communication between the first service node and the second service node, thereby reducing the computing resource usage of the second service node when updating the model parameters, and improving the efficiency of the second service node in updating the model parameters.
[0113] Furthermore, the path is obtained through path planning based on the service capabilities of each node in the network topology. Such path planning can maximize the use of the bandwidth capabilities of all current nodes, that is, all nodes with forwarding functions in the network topology can be used to upload the first message, thereby dispersing bandwidth pressure and solving the problem of bandwidth bottleneck.
[0114] Moreover, compared with the scheme of uploading messages through the default route in the related technology, the different schemes of the first service nodes and the first forwarding nodes in different paths can share the messages of each first service node in the network topology to different forwarding nodes, thereby reducing the delay in processing the message through the first forwarding device in the default route, and can quickly send the message to the second service node, thereby improving the efficiency of the second service node in updating the model parameters.
[0115] See also Figure 4 , is an optional flow chart of the message processing method provided in the embodiment of the present application, Figure 3 S101 to S102 in the above can also be implemented through steps 1 to 6. The following steps are described below:
[0116] 1. Distribution of computing tasks.
[0117] In an embodiment of the present application, the control node obtains the export bandwidth of each node (related to the server computing power), the link bandwidth, and the aggregate bandwidth of the on-line computing forwarding device, and models the above parameters to find the optimal solution, and plans the local data computing tasks of the working server.
[0118] 2. Routing scheduling.
[0119] In an embodiment of the present application, the control node obtains the export bandwidth of each node (related to the server computing power), the link bandwidth, and the aggregate bandwidth of the computing forwarding device on the network, and models the above parameters to find the optimal solution to determine the path, obtain the path information, and send the path information to each node respectively, so as to realize the path scheduling of each node in the network topology.
[0120] 3. Gradients are calculated and sent to the forwarding device.
[0121] In the embodiment of the present application, the first service node 101 performs gradient calculation based on the parameters sent by the second service node 103 to determine the first message, and sends the first message to the first forwarding node 102 .
[0122] 4. Link bandwidth statistics.
[0123] In the embodiment of the present application, the first forwarding node 102 performs device link bandwidth statistics for nodes on the path.
[0124] 5. Gradient aggregation.
[0125] In the embodiment of the present application, after receiving multiple first messages, the first forwarding node 102 aggregates the gradient data respectively included in the multiple first messages to obtain a second message.
[0126] In the embodiment of the present application, the communication protocol between the first service node 101 and the second service node 103, the local identification of the first forwarding node 102, supports the parameter aggregation calculation of many-to-one messages selected at the first forwarding node 102. The first forwarding node 102 completes the device link bandwidth statistics and synchronizes to the control node regularly, and the control node calculates the scheduling strategy of the new task according to the latest link status. When the first forwarding node 102 cannot complete the gradient aggregation calculation task, a fallback mechanism is designed, and the second service node 103 implements gradient aggregation and parameter update.
[0127] 6. Gradient aggregation / update.
[0128] In the embodiment of the present application, the second service node 103 completes the gradient set\update and task scheduling update according to the second message (aggregated gradient or unaggregated local gradient) of the first forwarding node 102. The second service node 103 sends the message that needs to be sent to the first service node 101 to the first forwarding node 102 that needs to participate in the online computing in a one-to-one manner, and the first forwarding node 102 implements one-to-many message replication and transmission.
[0129] See also Figure 5 , is an optional flow chart of the message processing method provided in the embodiment of the present application, Figure 3 S201 may also be included before S101, and the following steps are described:
[0130] S201: Receive local bitmap information and a local node identifier sent by a control node.
[0131] In an embodiment of the present application, the control node can configure bitmap information and node identification for each node, and establish a corresponding relationship set between the bitmap information of each node and the corresponding node identification. The corresponding relationship set is sent to each service node in the network topology, and the bitmap information and node identification corresponding to each forwarding node are sent to the corresponding forwarding node. The first forwarding node receives the local bitmap information and local node identification corresponding to the first forwarding node sent by the control node.
[0132] The local bitmap information may be a bit in a bitmap table, and the local node identifier may be a character string corresponding to the first forwarding node.
[0133] In the embodiment of the present application, the local bitmap information and the local node identifier sent by the receiving control node are received. Since the first message includes the first target bitmap information, in the interactive message between the first service node and the second service node, the aggregation of multiple first messages is achieved by matching the local bitmap information with the first target bitmap information, and then the node for aggregating the message can be clearly specified, so that the interactive message scheme between the first service node and the second service node can adapt to more complex networking and be more scalable.
[0134] See also Figure 6 , is an optional flow chart of the message processing method provided in the embodiment of the present application, Figure 3 S101 in the above can also be implemented through S301 to S302. The following steps are described below:
[0135] S301. Determine aggregate detection results of multiple first messages based on matching results of multiple first target bitmap information and local bitmap information, and current computing resources.
[0136] In an embodiment of the present application, the first forwarding node matches the first target bitmap information in each first message with the local bitmap information to obtain a matching result. Based on the matching result and the current computing resources, the aggregation detection result of the multiple first messages is determined. The aggregation detection result is used to characterize whether the first forwarding node supports the aggregation of multiple first messages. Each of the multiple first target bitmap information belongs to the corresponding first message.
[0137] Exemplary, combined Figure 7 Based on the Internet Protocol (IP) protocol stack, the designed first message includes a message header and a message payload. The message header enables the first forwarding node to participate in the distributed machine learning computing task in a transparent manner, and specifies the on-line computing forwarding device participating in the aggregate computing through the bitmap. The first forwarding node can match the first target bitmap information with the local bitmap information to obtain a matching result.
[0138] Among them, in the message header: the first bitmap information is used to characterize the device that needs to implement parameter aggregation, which is indicated by the bitmap being set to 1; multiple protocol fields include: gID, jID, tID, FIN, RES and DI. Among them, gID: groupID is the calculation group ID; jID: jobID is the calculation job ID; tID: taskID is the task ID; FIN: finish 0: calculation is not finished; 1: calculation is finished; RES: Resend 1: the switch has no resources to calculate, and the calculation is completed by the PS; DI: Direction 0: message sent from the worker to the PS; 1: message sent from the PS to the worker.
[0139] In the payload of the message: gi1, gi2, ..., gin are the calculation data to be aggregated. When Di = 0; W1, W2, ..., Wn in the payload of the message are the parameter data to be distributed. When Di = 1.
[0140] S302: If the aggregation detection result indicates that aggregation of multiple first messages is supported, aggregate the data to be aggregated in the payloads of multiple messages and combine them with the message headers to obtain the second message.
[0141] In the embodiment of the present application, if the first target bitmap information in the plurality of first messages matches the local bitmap information, and the current computing resources meet the predetermined conditions, it is determined that the first forwarding node supports the aggregation detection results of the plurality of first messages. Then the first forwarding node aggregates the data to be aggregated in the payload of the plurality of messages and combines it with the message header to obtain the second message.
[0142] In the embodiment of the present application, the first forwarding node may combine a plurality of data to be aggregated in a certain order, and then combine the data with a message header of any first message to obtain a second message.
[0143] Exemplary, combined Figure 7 Each first message includes a message payload part, which aggregates multiple calculation data to be aggregated (gi1, gi2, ..., gin) and combines them with the message header of any message to obtain a second message.
[0144] In an embodiment of the present application, based on the matching results of the first target bitmap information and the local bitmap information in the plurality of the first messages, and the current computing resources, the aggregation detection results of the plurality of the first messages are determined. If the aggregation detection result indicates support for the aggregation of the plurality of the first messages, the data to be aggregated in the plurality of the message payload parts are aggregated and combined with the message header to obtain the second message. In this way, the plurality of first messages with a larger amount of data can be converted into second messages with a smaller amount of data, thereby reducing the total amount of communication between the first service node and the second service node, solving the INCAST many-to-one bandwidth bottleneck problem faced by the last hop link of the second service node, and also reducing the computing resource usage of the second service node when processing received messages.
[0145] See also Figure 8 , is an optional flow chart of the message processing method provided in the embodiment of the present application, Figure 6 S302 in the embodiment can also be implemented through S303 to S304, and the following steps are described:
[0146] S303: If the aggregation detection result indicates that aggregation of the plurality of first messages is not supported, modify the second protocol field in the message header of each of the first messages to obtain a corresponding third message.
[0147] In an embodiment of the present application, if the first target bitmap information in multiple first messages matches the local bitmap information, and the current computing resources do not meet the predetermined conditions, then it is determined that the aggregation detection result of the aggregation of multiple first messages is not supported. The first forwarding node modifies the second protocol field in the message header of each of the first messages to obtain a third message corresponding to each first message. The modified second protocol field is used to indicate that the corresponding first forwarding node does not support the aggregation of the first message.
[0148] Exemplary, combined Figure 7 The first forwarding node may modify the RES field in the message header of the first message to 1 to obtain a third message, which is used to indicate that the first forwarding node does not support aggregation of the first message.
[0149] S304: Send each of the third messages to the second service node based on the next hop in the path information, so that the second service node aggregates multiple third messages and completes model parameter update based on the aggregated messages.
[0150] In the embodiment of the present application, the first forwarding node sends the third message to the node indicated by the next hop based on the port and address information of the next hop represented in the path information, and sends the third message to the second service node through the node indicated by the next hop. After the second service node aggregates the plurality of the third messages, it completes the model parameter update based on the aggregated messages.
[0151] In an embodiment of the present application, if the aggregation detection result indicates that the aggregation of multiple first messages is not supported, the second protocol field in the message header of each first message is modified to obtain a corresponding third message. Each third message is sent to the second service node based on the next hop in the path information, so that the second service node can aggregate multiple third messages and complete the model parameter update based on the aggregated message. In this way, when the first service node receives a message aggregated from a local device but has insufficient computing resources, it can also forward multiple first messages without affecting the message interaction between the first service node and the second service node in the path.
[0152] See also Fig. 9 , is an optional flow chart of the message processing method provided in the embodiment of the present application, Figure 6 S302 in the embodiment can also be implemented through S401 to S403, and the following steps are described:
[0153] S401 , aggregating the sub-data corresponding to the same order in a plurality of the data to be aggregated to obtain an aggregated message payload part.
[0154] In the embodiment of the present application, the data to be aggregated of each first message includes: N sub-data in a certain order; N is an integer greater than 0. The first forwarding node can aggregate the sub-data in the first order among the multiple data to be aggregated to obtain the first aggregated sub-data, and then aggregate them in order to finally obtain N aggregated sub-data. The N aggregated sub-data are combined in order to obtain the aggregated message payload.
[0155] Exemplarily, the data to be aggregated of the first message 1 includes N sub-data: g11, g12, ..., g1n; the data to be aggregated of the first message 1 includes N sub-data: g21, g22, ..., g2n; the data to be aggregated of the first message N includes N sub-data: gN1, gN2, ..., gNn. The first forwarding node can aggregate g11, g21 to gN1 to obtain the first aggregated sub-data, until the aggregation is completed for g1n, g2n to gNn, and N aggregated sub-data are obtained.
[0156] S402: Modify the first protocol field in the message header to obtain an aggregate message header; wherein the modified first protocol field is used to indicate that the corresponding first message has been aggregated.
[0157] In the embodiment of the present application, the first forwarding node may modify the first protocol field in the message header of any first message to obtain an aggregate message header, wherein the modified first protocol field is used to indicate that the corresponding first message has been aggregated.
[0158] Exemplary, combined Figure 7 The first forwarding node may modify the FIN field in the message header of the first message to 1 to obtain an aggregate message header, which is used to indicate that the corresponding first message has been aggregated.
[0159] S403: Combine the aggregated message payload and the aggregated message header to obtain the second message.
[0160] In the embodiment of the present application, the first forwarding node combines the aggregated message payload and the aggregated message header to obtain a second message, and sends the determined second message to the second service node via the next hop.
[0161] In an embodiment of the present application, sub-data corresponding to the same order in multiple data to be aggregated are aggregated to obtain an aggregated message payload. The first protocol field in the message header is modified to obtain an aggregated message header; wherein the modified first protocol field is used to indicate that the corresponding first message has been aggregated. The aggregated message payload and the aggregated message header are combined to obtain a second message. In this way, by aggregating N sub-data of the data to be aggregated in multiple first messages in order, not only the data volume of the multiple first messages is reduced, but also this scheme of aggregating N sub-data in order does not disrupt the order of the gradient in the data to be aggregated, and a second message with a smaller data volume and undistorted data can be obtained. This reduces the total amount of communication between the first service node and the second service node, thereby reducing the computing resource occupation of the second service node when updating the model parameters, and improving the efficiency of the second service node for model parameter updates.
[0162] See also Fig.10 , is an optional flow chart of the message processing method provided in the embodiment of the present application, Figure 3 S102 in the embodiment may further include S501 to S503, and the following steps are described:
[0163] S501. Receive a fourth message sent by the second service node, and determine a message detection result for the fourth message; wherein the message detection result is used to indicate whether the fourth message is a one-to-many message sent to multiple first service nodes.
[0164] In an embodiment of the present application, the first forwarding node receives a fourth message sent by the second service node, and determines a message detection result for the fourth message; wherein the message detection result is used to characterize whether the fourth message is a one-to-many message sent to multiple first service nodes.
[0165] In an embodiment of the present application, the message structure of the fourth message is the same as the message structure of the first message. The fourth message includes: a message header and a message payload. The message header has multiple protocol fields, communication address information, and second target bitmap information. The message payload includes: data to be distributed. The first forwarding node determines the message detection result based on the matching result of the second target bitmap information and the local bitmap information in the message header of the fourth message, and the third protocol field in the message header of the fourth message; wherein the third protocol field is used to characterize whether the fourth message is a one-to-many message sent to multiple first service nodes.
[0166] Exemplarily, the first forwarding node may determine that the fourth message is a one-to-many message sent to multiple first service nodes based on field DI=1 in multiple protocol fields in the fourth message and that the second target location information matches the local bitmap information.
[0167] S502: If the message detection result indicates that the fourth message is a one-to-many message sent to multiple first service nodes, copy the fourth message for each first service node to obtain a fifth message corresponding to each first service node.
[0168] In an embodiment of the present application, if the message detection result indicates that the fourth message is a one-to-many message sent to multiple first service nodes, the fourth message is copied for each of the first service nodes, and the destination address information in the message copied for each first service node is modified to the first information of the corresponding first service node, thereby obtaining a fifth message corresponding to each of the first service nodes.
[0169] Exemplarily, the second service node sends a fourth message W0 (destination IP: 1.1.1.S, ***) to the first forwarding node (IP: 1.1.1.S). The first forwarding node determines that it needs to be copied and distributed in the device according to the bitmap, and then sends the parameter W to each first service node after copying the fourth message. The first forwarding node uses the IP address of the first service node 1 to modify the destination IP in the fourth message W0, and obtains the fifth message (destination IP: 1.1.1.1, ***) sent to the first service node 1. The fifth message corresponding to each first service node can be obtained by referring to this solution.
[0170] S503: Send the fifth message to each corresponding first service node.
[0171] In the embodiment of the present application, the first forwarding node sends each fifth message to the corresponding first service node.
[0172] In an embodiment of the present application, a fourth message sent by the second service node is received, and a message detection result is determined for the fourth message; if the message detection result indicates that the fourth message is a one-to-many message sent to multiple first service nodes, the fourth message is copied for each first service node to obtain a fifth message corresponding to each first service node. The fifth message is sent to each corresponding first service node. In this way, the second message obtained by aggregating multiple first messages is forwarded by the first forwarding node, and the received fourth message is forwarded one-to-many, so that the first forwarding node can simultaneously offload the many-to-one aggregation calculation and the one-to-many multicast calculation, thereby reducing the computing resource occupation of the forwarding path and the computing device.
[0173] The scheme in this application will be described in detail in the following examples:
[0174] Combination Fig.11There are N working servers (first service nodes) and one parameter server (second service node), which are interconnected through forwarding devices X and Y (forwarding nodes). Working server 1 (IP: 1.1.1.1) ~ working server N (IP: 1.1.1.N) obtain model parameters W0 from parameter server (IP: 1.1.1.P) respectively. The corresponding bitmap of forwarding device X (first forwarding node) is 00000001, and the corresponding bitmap of forwarding device Y is 01000000.
[0175] Working server 1 to working server N respectively send the calculated local gradient gi (first message) to the parameter server.
[0176] The message sent by working server 1 to parameter server:
[0177] Destination IP: 1.1.1.P; Source IP: 1.1.1.1;
[0178] 01000000;gId,jId,tId;FIN:0;RS:0;DI:0,g11,g12,...,g1n
[0179] The message sent by the working server N to the parameter server:
[0180] Destination IP: 1.1.1.P; Source IP: 1.1.1.N;
[0181] 01000000;gId,jId,tId;FIN:0;RS:0;DI:0,gN1,gN2,...,gNn
[0182] The messages sent from working server 2 to working server N-1 to the parameter server are similar.
[0183] Forwarding device X determines based on the bitmap that the message does not need to be aggregated on this device, and forwards it to the next-hop forwarding device Y.
[0184] Forwarding device Y performs gradient aggregation on the received multiple message payloads and sends the aggregation parameters to the parameter server.
[0185] Message sent to parameter server:
[0186] Destination IP:1.1.1.P; Source IP:1.1.1.S;01000000;
[0187] gId, jId, tId; FIN: 1; RS: 0, DI: 0, gr1, gr2,..., grn.
[0188] The parameter server sends the model parameters W0 (destination IP: 1.1.1.S, source IP: 1.1.1.P, 01000000, gId, jId, tId, FIN: 0, RS: 0, DI: 1, w1, w2, ..., wn) to the forwarding device Y (IP: 1.1.1.S).
[0189] Forwarding device Y determines that the message is a one-to-many message sent from the parameter server to the working server according to DI=1, and determines that it needs to be copied and distributed in this device according to the bit map. Then, after copying the original message, it sends the model parameter W0 to working servers 1 to N respectively.
[0190] The forwarding device X determines based on the bitmap that the message does not need to be copied and distributed on the local device, and directly forwards the message.
[0191] Message sent to working server 1:
[0192] Destination IP:1.1.1.1,Source IP,1.1.1.P,01000000,gId,jId,tId,FIN:0,RS:0,DI:1,w1,w2,...,wn
[0193] N packets to the working server:
[0194] Destination IP:1.1.1.N,Source IP:1.1.1.P,01000000,gId,jId,tId,FIN:0,RS:0,DI:1,w1,w2,...,wn
[0195] The messages sent to working server 2 to working server N-1 are similar.
[0196] Combination Fig.12 There are N working servers (first service nodes) and one parameter server (second service node), which are interconnected through forwarding devices X and Y (forwarding nodes). Working server 1 (IP: 1.1.1.1) ~ working server N (IP: 1.1.1.N) respectively obtain model parameter W0 from parameter server (IP: 1.1.1.P). The corresponding bitmap of forwarding device X is 00000001, and the corresponding bitmap of forwarding device Y is 01000000.
[0197] Worker server 1 (IP: 1.1.1.1) ~ Worker server N (IP: 1.1.1.N) respectively obtain the model parameter W0 from the parameter server (IP: 1.1.1.P). The bitmap corresponding to forwarding device X is 00000001, and the bitmap corresponding to forwarding device Y is 01000000. Worker server 1 ~ Worker server N respectively send the calculated local gradient gi to the parameter server.
[0198] The message sent by working server 1 to parameter server:
[0199] Destination IP: 1.1.1.P; Source IP: 1.1.1.1;
[0200] 01000000;gId,jId,tId;FIN:0;RS:0;DI:0,g11,g12,...,g1n
[0201] The message sent by the working server N to the parameter server:
[0202] Destination IP: 1.1.1.P; Source IP: 1.1.1.N;
[0203] 01000000;gId,jId,tId;FIN:0;RS:0;DI:0,gN1,gN2,...,gNn
[0204] The messages sent from working server 2 to working server N-1 to the parameter server are similar.
[0205] Forwarding device X determines that the message does not need to be aggregated on this device based on the bitmap, and forwards it to the next-hop forwarding device Y. Forwarding device Y checks and finds that it does not have aggregation resources and cannot support aggregation calculation of the current gradient data, so it sets the message RES in 4 to 1, indicating that this message is a data message to be aggregated that is retransmitted to the parameter server.
[0206] Message 1 sent to parameter server:
[0207] Destination IP:1.1.1.P; Source IP:1.1.1.S;01000000;
[0208] gId, jId, tId; FIN: 1; RS: 1, DI: 0, gr1, gr2,..., grn.
[0209] Message N sent to the parameter server:
[0210] Destination IP: 1.1.1.P; Source IP: 1.1.1.N;
[0211] gId,jId,tId;FIN:0;RS:1;DI:0,gN1,gN2,...,gNn
[0212] Messages 2 to N-1 are similar.
[0213] When the parameter server receives the gradient data message with RS set to 1, it completes the parameter aggregation calculation on the server and sends the updated parameter data back to all working servers. The specific process is the same as sending W0.
[0214] The parameter server sends the model parameter W0 (destination IP: 1.1.1.S, source IP: 1.1.1.P, 01000000, gId, jId, tId, FIN: 1, RS: 1, DI: 1, w1, w2, ..., wn) to the forwarding device (IP: 1.1.1.S).
[0215] Forwarding device Y determines that the message is a one-to-many message sent from the parameter server to the working server according to DI=1, and determines that it needs to be copied and distributed in this device according to the bit map. Then, after copying the original message, it sends parameter W to working servers 1 to N respectively.
[0216] The forwarding device X determines based on the bitmap that the message does not need to be copied and distributed on the local device, and directly forwards the message.
[0217] The forwarding device Y sends the parameter W0 to the working server 1 to the working server N respectively.
[0218] Message sent to working server 1:
[0219] Destination IP:1.1.1.1,Source IP,1.1.1.P,01000000,gId,jId,tId,FIN:0,RS:0,DI:0,w1,w2,...,wn
[0220] N packets to the working server:
[0221] Destination IP:1.1.1.N,Source IP:1.1.1.P,01000000,gId,jId,tId,FIN:0,RS:0,DI:0,w1,w2,...,wn
[0222] The messages sent to working server 2 to working server N-1 are similar.
[0223] See also Fig.13 , is an optional flow chart of the message processing method provided in the embodiment of the present application, and the steps are described as follows:
[0224] S11, input port receiving.
[0225] In the embodiment of the present application, the forwarding message inlet port of the first forwarding node receives the first message, which has the same function as an ordinary forwarding device.
[0226] S12: message analysis.
[0227] In the embodiment of the present application, the first forwarding node extracts a flag bit Differentiated Services Code Point (DSCP) of the message.
[0228] S13: Check whether to aggregate the message.
[0229] In the embodiment of the present application, the first forwarding node determines whether the data packet is to be aggregated based on the DSCP, and if yes, executes S17, otherwise executes S14.
[0230] S14, forward table lookup.
[0231] In the embodiment of the present application, the first forwarding node determines the next hop destination and the egress port of the message according to the destination IP of the message, which has the same function as an ordinary forwarding device.
[0232] S15: reverse analysis of the message.
[0233] In the embodiment of the present application, the first forwarding node completes the corresponding message filling and encapsulation operation according to the next hop destination and the egress port, which is the same as an ordinary forwarding device.
[0234] S16, send at the outgoing port.
[0235] In the embodiment of the present application, the first forwarding node forwards the message outgoing port message sending process, which has the same function as an ordinary forwarding device.
[0236] S17: Whether to aggregate on this device.
[0237] In the embodiment of the present application, if it is a message to be aggregated, the bitmap is extracted to determine whether it is aggregated in this device, and if so, S18 is executed, otherwise S14 is executed.
[0238] S18. Search for aggregated resources.
[0239] In an embodiment of the present application, the first forwarding node searches for aggregation resources based on the information in the data message to be aggregated (gID, jID, tID, defined in "System Design-Protocol Design").
[0240] S19: Whether aggregation is supported.
[0241] In the embodiment of the present application, if the first forwarding node does not currently find the corresponding aggregation resource, it is considered that the current device does not have the ability to perform calculations for this aggregate data message, and the message Res protocol field is modified, and it needs to be sent to the destination server for aggregation calculation. If the corresponding aggregation resource is currently found, the data aggregation operation is performed.
[0242] S20, performing gradient aggregation calculation.
[0243] In the embodiment of the present application, the first forwarding node performs aggregation calculation on the received data message to be aggregated and the current aggregated data, and determines whether the current round of aggregation calculation has been completed.
[0244] S21. Modify the RS flag of the message.
[0245] In the embodiment of the present application, after the first forwarding node completes aggregation and the aggregation data of this round has been collected, the DSCP of the message is modified to make it a normal forwarding message, and it is sent back to the inbound port message parsing process for normal forwarding.
[0246] S22: Whether the aggregation is completed.
[0247] In the embodiment of the present application, the first forwarding node determines whether to complete the aggregation of multiple messages based on the path information sent by the control node. The path information includes the messages that the first forwarding node needs to aggregate and the message source node information. If the aggregation is completed, S23 is executed, otherwise S24 is executed.
[0248] S23. Modify the FIN flag of the message.
[0249] In the embodiment of the present application, the first forwarding node modifies the FIN field in the aggregated message.
[0250] S24. The message is discarded.
[0251] In the embodiment of the present application, if the aggregated data of this round is not collected after the data corresponding to this message is aggregated, this message is discarded and the forwarding process ends. The above modules work together to complete the forwarding and calculation functions of the message processing pipeline of the forwarding device.
[0252] See also Fig.14 , is an optional flow chart of the message processing method provided in the embodiment of the present application, and the steps are described as follows:
[0253] S701. Perform path planning based on the service capabilities of each node in the acquired network topology to determine path information; wherein the path information is used to characterize the first service node, the first forwarding node, and the second service node included in each of the paths; the first service node and the first forwarding node in different paths are different.
[0254] In an embodiment of the present application, the control node obtains the service capability of each node in the network topology. Based on the service capability of each node, path planning is performed to determine the path through which the message can be transmitted through different forwarding nodes, and the path information of each path is sent to each node. Among them, the path information may include the port information, IP address information, etc. corresponding to the first service node, the second forwarding node, and the second service node included in each path. The first service node and the first forwarding node in different paths are different.
[0255] The service capability of each node may include at least one of the following: egress bandwidth, link bandwidth, aggregate bandwidth, and tasks to be calculated.
[0256] S702: Send the path information to each of the nodes, so that the first forwarding node in each of the paths aggregates first messages respectively sent by a plurality of the first service nodes, and sends the aggregated second message to the second service node.
[0257] In the embodiment of the present application, the first forwarding node sends the path information to each node. After each node obtains the path information, it can obtain the role of the local device in the corresponding path based on the path information, and obtain the port, IP address information, etc. corresponding to at least one of the first service node, the first forwarding node, and the second service node in the same path. The first forwarding node in the same path can send the first message to the first forwarding node in the path, the first forwarding node aggregates multiple first messages to obtain a second message, and the first forwarding node sends the second message obtained by the aggregation to the second service node.
[0258] Based on the service capabilities of each node in the acquired network topology, path planning is performed to determine path information; wherein the path information is used to characterize the first service node, the first forwarding node, and the second service node included in each of the paths; the first service node and the first forwarding node in different paths are different. The path information is sent to each of the nodes so that the first forwarding node in each of the paths can aggregate the first messages sent by multiple first service nodes, and send the aggregated second message to the second service node. In this way, since multiple first messages are aggregated in the first forwarding node, a second message with a smaller amount of data is obtained, which reduces the total amount of communication between the first service node and the second service node, thereby reducing the computing resource occupation of the second service node when updating model parameters, and improving the efficiency of the second service node in updating model parameters.
[0259] Furthermore, the path is obtained through path planning based on the service capabilities of each node in the network topology. Such path planning can maximize the use of the bandwidth capabilities of all current nodes, that is, all nodes with forwarding functions in the network topology can be used to upload the first message, thereby dispersing bandwidth pressure and solving the problem of bandwidth bottleneck.
[0260] Moreover, compared with the scheme of uploading messages through the default route in the related technology, the different schemes of the first service nodes and the first forwarding nodes in different paths can share the messages of each first service node in the network topology to different forwarding nodes, thereby reducing the delay in processing the message through the first forwarding device in the default route, and can quickly send the message to the second service node, thereby improving the efficiency of the second service node in updating the model parameters.
[0261] See also Fig.15 , is an optional flow chart of the message processing method provided in the embodiment of the present application, Fig.14 Before S701 in the method, the following steps may also be included: S801 to S802. The following steps are described below:
[0262] S801. Configure the correspondence between the bitmap information and the node identifier for each of the nodes to form a correspondence set.
[0263] In an embodiment of the present application, after obtaining the service capability of each node in the network topology, the control node may configure the correspondence between the bitmap information and the node identifier for each node, and combine the correspondence of each node to obtain a correspondence set.
[0264] In an embodiment of the present application, the control node can obtain the address information of all nodes (forwarding devices and servers) in the computing network topology through the network management protocol, assign a unique identifier to each node, and establish a correspondence set between a 64-bit bitmap table and the unique identifier of the forwarding device, where each bit in the bitmap table corresponds to a forwarding device.
[0265] S802: Send the corresponding relationship set to each service node in the network topology, and send the bitmap information and the node identifier corresponding to each forwarding node to the corresponding forwarding node.
[0266] In the embodiment of the present application, the control node sends the corresponding relationship set to each service node (the first service node and the second service node), and sends the bitmap information and node identifier of the forwarding node to the corresponding forwarding node.
[0267] In the embodiment of the present application, the control node sends the full bitmap table (corresponding relationship set) to all computing servers (including the first service node and the second service node) at the same time on the network computing control plane. The control node sends each forwarding device (forwarding node) its own unique identifier and the corresponding bit of the bitmap. The control node is coordinated by the two modules of "computing task distribution" and "routing scheduling strategy" to complete the distribution of computing tasks and routing.
[0268] In an embodiment of the present application, a correspondence between bitmap information and node identifiers is configured for each of the nodes to form a correspondence set. The correspondence set is sent to each service node in the network topology, and the bitmap information and node identifier corresponding to each forwarding node are sent to the corresponding forwarding node. In this way, the first service node can also configure the first message based on the bitmap information of the determined forwarding node. After receiving the first message, the forwarding node can determine whether aggregation is required at this node based on the matching result between the local bitmap information and the bitmap information in the first message. This scheme for matching and aggregating based on bitmap information adds a forwarding device that participates in the calculation of the bitmap information in the interactive message between the first service node and the second service node, and can clearly specify the device that calculates the message, so that the network computing scheme can adapt to more complex networking and be more scalable.
[0269] Exemplary, combined Fig.16 , the working logic of the "computing task distribution" and "routing scheduling strategy" of the control node can be implemented through steps S25 to S32, which will be explained in combination with the steps:
[0270] S25, calculate the task, obtain the server list and gradient sending bandwidth, parameter server list.
[0271] In the embodiment of the present application, the control node obtains the server IP list and the gradient sending bandwidth, and the parameter server IP list.
[0272] S26. Obtain the topology from the computing server to the parameter server and the switch number bitmap in the topology.
[0273] In an embodiment of the present application, the control node obtains the service capability of the computing server to the parameter server and the service capability of the forwarding device in the network topology, and configures the correspondence between the node identifier and the corresponding bitmap information for each node.
[0274] S27, switch bitmap, upstream and downstream IP addresses of the switch.
[0275] In the embodiment of the present application, the control node sends the computing task distribution based on the bitmap information of the switch and the IP address information of the upstream and downstream nodes of the switch.
[0276] S28. Obtain the aggregation capability of the switch.
[0277] In an embodiment of the present application, a "computing task distribution" module in a control node obtains the aggregate bandwidth of each switch in a network topology.
[0278] S29, switch bitmap, aggregate bandwidth.
[0279] In an embodiment of the present application, the "computing task distribution" module in the control node transmits the bitmap information of the switch and the corresponding aggregate bandwidth to the corresponding "routing scheduling" module.
[0280] S30: Task planning modeling, solving the next hop from the work server to the parameter server and the aggregation switch bitmap.
[0281] In an embodiment of the present application, the "routing scheduling" module in the control node performs task planning modeling based on the acquired switch bitmap information and aggregate bandwidth, and determines the next hop for the working server to send a message to the parameter server and the bitmap information of the switch in the path.
[0282] S31, working server, switch bitmap.
[0283] S32: Send the gradient calculation task, parameter server IP, bitmap, and the next hop to the parameter server to the working server; send the aggregation task to the switch in the bitmap; send the aggregation task to the parameter server.
[0284] In an embodiment of the present application, the working server uses the communication protocol in the path information of the present application to send local gradients to the parameter server, and supports the selection of on-line computing forwarding devices for parameter aggregation. The forwarding device completes the device link bandwidth statistics and synchronizes to the on-line computing control plane at regular intervals. The control node calculates the scheduling strategy for new tasks based on the latest link status. The forwarding device aggregates the received local gradients and sends the aggregated parameters to the parameter server. A fallback mechanism is designed in this case. When the forwarding device cannot complete the gradient aggregation, it carries an uncalculated flag, and the parameter server implements gradient aggregation and parameter update. The parameter server receives the gradient aggregation results of the forwarding device and completes the parameter update; the parameter server receives the unaggregated gradient and implements gradient aggregation and parameter update.
[0285] See also Fig.17 , is an optional flow chart of the message processing method provided in the embodiment of the present application, Fig.14 S701 in the above can also be implemented through S901 to S903. The following steps are described below:
[0286] S901. Determine the initial path information between each of the first service nodes and the corresponding second service node based on the data representing the service capabilities of each of the nodes obtained through processing based on a preset model; wherein the initial path information includes at least one of the following: port information and address information of each of the nodes in the path, and sending task information of each of the first service nodes.
[0287] In the embodiment of the present application, after obtaining the data representing the service capabilities of each node, the control node performs task planning modeling based on the data representing the service capabilities of each node, and determines the initial path information between each first service node and the corresponding second service node. Among them, the modeling constraint solving can be performed by combining formulas (1) to (4), and finally solving the constraint satisfying and Make λ the maximum value, and then determine the initial path information.
[0288] Formula (1) indicates that the gradients sent by each worker n can only be aggregated in the switch s or the parameter server α.
[0289] where λ is the sum of the gradient rates sent by all workers n to switch s.
[0290] The sum of the gradient rates sent by all workers to switch s must be less than the aggregation capacity of the switch.
[0291] The sum of the gradient rates sent by all workers to the parameter server α and the gradient rates sent by all switches to the parameter server α must be less than the uplink bandwidth B from the switch to the parameter server. α .
[0292] Formula description and constraints:
[0293] Indicates whether the gradient data emitted by worker n is aggregated by switch s.
[0294] Indicates whether the gradient data emitted by worker n is aggregated by parameter server α.
[0295] represents the rate at which worker n sends gradient data to the parameter server α.
[0296] represents the rate at which worker n sends gradient data to switch s. Once the switch performs gradient aggregation, the result should be sent to the parameter server α.
[0297] y s, represents the sending rate of the switch to the parameter server α.
[0298] C s The ability to perform gradient aggregation for switches.
[0299] S902: Based on the service capabilities of the respective forwarding nodes in the path represented by the initial path information, determine the first forwarding node having the strongest aggregation capability among the forwarding nodes.
[0300] In the embodiment of the present application, since a path may include multiple forwarding nodes, the control node analyzes the service capabilities of the multiple forwarding nodes and determines the first forwarding node with the strongest aggregation capability.
[0301] S903: Combine the initial path information and the bitmap information of the first forwarding node to determine the path information.
[0302] In the embodiment of the present application, the control node combines the initial path information and the bitmap information of the first forwarding node determined for the path represented by the initial path information to obtain the path information. The control node sends the determined path information to each node in the path.
[0303] In an embodiment of the present application, the service capabilities of each node obtained by processing based on a preset model are used to determine the initial path information between each first service node and the corresponding second service node. Based on the service capabilities of each forwarding node in the path represented by the initial path information, the first forwarding node with the strongest aggregation capability is determined among the forwarding nodes. The initial path information and the bitmap information of the first forwarding node are combined to determine the path information. Since the path is obtained by path planning based on the service capabilities of each node in the network topology, such path planning can maximize the use of the bandwidth capabilities of all current nodes, that is, all nodes with forwarding functions in the network topology can be used to upload the first message, dispersing the bandwidth pressure and solving the problem of bandwidth bottleneck. In addition, the first forwarding node in the path is the forwarding node with the strongest aggregation capability. By aggregating multiple first messages through the forwarding node with the strongest aggregation capability, the message interaction efficiency between the first service node and the second service node can also be improved, while improving the efficiency of the second service node in updating the model parameters.
[0304] See also Fig.18 , is an optional flow chart of the message processing method provided in the embodiment of the present application, and the steps are described as follows:
[0305] S904: Obtain the service capability of each forwarding node in the path information at predetermined intervals.
[0306] In the embodiment of the present application, the control node obtains the service capability of each forwarding node in each path information at a predetermined time interval.
[0307] The predetermined time interval may be one day or one week, and in the embodiment of the present application, there is no restriction on the specific duration of the predetermined time interval. The control node may obtain the corresponding aggregate bandwidth from each forwarding node as the corresponding service capability.
[0308] S905: Based on the service capabilities of the forwarding nodes obtained each time, determine the first forwarding node with the strongest new aggregation capability among the forwarding nodes.
[0309] In the embodiment of the present application, after the control node obtains the service capabilities (aggregate bandwidth) of each forwarding node, it determines the forwarding node with the largest aggregate bandwidth as the new first forwarding node with the strongest aggregation capability.
[0310] S906: Form new path information based on the newly determined first forwarding node, and send the new path information to each of the nodes.
[0311] In an embodiment of the present application, the control node may combine the initial path information with the bitmap information of the new first forwarding node, determine new path information, and send the new path information to each node in the path.
[0312] In an embodiment of the present application, the service capability of each forwarding node in the path information is obtained at a predetermined time interval. Based on the service capability of each forwarding node obtained each time, a new first forwarding node with the strongest aggregation capability is determined among the forwarding nodes. New path information is formed based on the newly determined first forwarding node and sent to each node. In this way, since the service capability of each node is variable, by determining a new first forwarding node with the strongest aggregation capability at predetermined time intervals, it can be ensured that the aggregation efficiency of the forwarding node used for aggregation during the message interaction between the first service node and the second service node will not be reduced, thereby ensuring the message interaction efficiency between the first service node and the second service node, and also ensuring the efficiency of the second service node in updating the model parameters.
[0313] See also Fig.19 , is an interactive schematic diagram of the message processing method provided in the embodiment of the present application, and the steps are described as follows:
[0314] S100, a first forwarding node aggregates first messages respectively sent by multiple first service nodes in a path to obtain a second message; wherein, the path is determined based on path information sent by a control node, and the path information is obtained by the control node through path planning based on the service capabilities of each node in the network topology; the first service node and the first forwarding node in different paths are different.
[0315] In the embodiment of the present application, the implementation steps of step S100 can be implemented with reference to S101 and are not described in detail here.
[0316] S200. The first forwarding node sends the second message to the second service node in the path.
[0317] In the embodiment of the present application, the implementation steps of step S200 can be implemented with reference to S102 and will not be described in detail here.
[0318] See also Fig. 20 , which is a schematic diagram of the structure of the message processing device provided in the embodiment of the present application Figure 1 .
[0319] The embodiment of the present application further provides a message processing device 600 , which is applied to a first forwarding node and includes: an aggregation unit 601 and a first sending unit 602 .
[0320] an aggregation unit 601, configured to aggregate first messages respectively sent by multiple first service nodes in a path to obtain a second message; wherein the path is determined based on path information sent by a control node, and the path information is obtained by the control node performing path planning based on the service capabilities of each node in a network topology; and the first service node and the first forwarding node in different paths are different;
[0321] The first sending unit 602 is configured to send the second message to a second service node in the path.
[0322] In the embodiment of the present application, the message processing device 600 is used to receive local bitmap information and local node identification sent by the control node.
[0323] In the embodiment of the present application, the first message includes: a message header and a message payload;
[0324] The message header includes at least one of the following: communication address information, first target bitmap information of a target forwarding node, and a plurality of protocol fields; and the message payload includes data to be aggregated.
[0325] In the embodiment of the present application, the aggregation unit 601 in the message processing device 600 is used to determine the aggregate detection results of the plurality of first messages based on the matching results of the plurality of first target bitmap information and the local bitmap information, and the current computing resources; wherein each of the plurality of first target bitmap information belongs to the corresponding first message;
[0326] If the aggregation detection result indicates that aggregation of the plurality of the first messages is supported, the data to be aggregated in the payloads of the plurality of the messages are aggregated and combined with the message headers to obtain the second message.
[0327] In the embodiment of the present application, the data to be aggregated includes: N sub-data in a certain order; N is an integer greater than 0; the aggregation unit 601 in the message processing device 600 is used to aggregate the sub-data corresponding to the same order in the plurality of the data to be aggregated to obtain an aggregated message payload;
[0328] Modify the first protocol field in the message header to obtain an aggregate message header; wherein the modified first protocol field is used to indicate that the corresponding first message has been aggregated;
[0329] The aggregate message payload and the aggregate message header are combined to obtain the second message.
[0330] In the embodiment of the present application, the aggregation unit 601 in the message processing device 600 is used to modify the second protocol field in the message header of each of the first messages to obtain a corresponding third message if the aggregation detection result indicates that aggregation of multiple first messages is not supported; wherein the modified second protocol field is used to indicate that the corresponding first forwarding node does not support aggregation;
[0331] Each of the third messages is sent to the second service node based on the next hop in the path information, so that the second service node aggregates multiple third messages and completes the model parameter update based on the aggregated messages.
[0332] In the embodiment of the present application, the message processing device 600 is used to receive a fourth message sent by the second service node, and determine a message detection result for the fourth message; wherein the message detection result is used to indicate whether the fourth message is a one-to-many message sent to multiple first service nodes;
[0333] If the message detection result indicates that the fourth message is a one-to-many message sent to multiple first service nodes, the fourth message is copied for each first service node to obtain a fifth message corresponding to each first service node; the first sending unit 602 in the message processing device 600 is used to send the fifth message to each corresponding first service node.
[0334] In an embodiment of the present application, the message processing device 600 is used to determine the message detection result based on the matching result of the second target bitmap information and the local bitmap information in the message header of the fourth message, and the third protocol field in the message header of the fourth message; wherein the third protocol field is used to characterize whether the fourth message is a one-to-many message sent to multiple first service nodes.
[0335] It should be noted that in the embodiment of the present application, if the above-mentioned message processing method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application can be essentially or partly reflected in the form of a software product that contributes to the relevant technology. The computer software product is stored in a storage medium, including a number of instructions to enable a message processing device (which can be a personal computer, etc.) to execute all or part of the methods of each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a disk or an optical disk. In this way, the embodiment of the present application is not limited to any specific combination of hardware and software.
[0336] Correspondingly, an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps in the method on the first forwarding node side are implemented.
[0337] It should be noted here that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.
[0338] It should be noted that Fig.21 A hardware entity diagram of an electronic device provided in an embodiment of the present application Figure 1 ,like Fig.21As shown, an embodiment of the present application provides an electronic device 700, including a first memory 702 and a first processor 701, wherein the first memory 702 stores a computer program that can be run on the first processor 701, and the processor 701 implements the steps in the above method when executing the program, wherein;
[0339] The first processor 701 generally controls the overall operations of the electronic device 700 .
[0340] The first memory 702 is configured to store instructions and applications executable by the first processor 701, and can also cache data to be processed or processed by the first processor 701 and various modules in the electronic device 700 (for example, image data, audio data, voice communication data, and video communication data), which can be implemented through flash memory (FLASH) or random access memory (Random Access Memory, RAM).
[0341] Correspondingly, an embodiment of the present application also provides a computer program product, including a computer program, which can be executed by the processor 701 of the electronic device 700 to complete the steps in the method on the message processing device 600 side.
[0342] See also Fig. 22 , which is a schematic diagram of the structure of the message processing device provided in the embodiment of the present application Figure 2 .
[0343] The embodiment of the present application further provides a message processing device 800 , which is applied to a control node and includes: a path planning unit 801 and a second sending unit 802 .
[0344] A path planning unit 801 is used to perform path planning based on the service capabilities of each node in the acquired network topology, and determine path information; wherein the path information is used to characterize the first service node, the first forwarding node, and the second service node included in each of the paths; the first service node and the first forwarding node in different paths are different;
[0345] The second sending unit 802 is used to send the path information to each of the nodes, so that the first forwarding node in each of the paths aggregates the first messages respectively sent by multiple first service nodes, and sends the aggregated second message to the second service node.
[0346] In an embodiment of the present application, the second sending unit 802 in the message processing device 800 is used to configure the correspondence between the bitmap information and the node identifier for each of the nodes to form a correspondence set; the correspondence set is sent to each service node in the network topology, and the bitmap information and the node identifier corresponding to each forwarding node are sent to the corresponding forwarding node; wherein the service nodes include: the first service node and the second service node; the forwarding nodes include the first forwarding node.
[0347] In the embodiment of the present application, the path planning unit 801 in the message processing device 800 is used to process the data representing the service capabilities of each of the nodes acquired based on a preset model, and determine the initial path information between each of the first service nodes and the corresponding second service node; wherein the initial path information includes at least one of the following: port information and address information of each of the nodes in the path, and sending task information of each of the first service nodes;
[0348] Based on the service capabilities of the respective forwarding nodes in the path represented by the initial path information, determining the first forwarding node having the strongest aggregation capability among the respective forwarding nodes;
[0349] The initial path information and the bitmap information of the first forwarding node are combined to determine the path information.
[0350] In the embodiment of the present application, the path planning unit 801 in the message processing device 800 is used to obtain the service capability of each forwarding node in the path information at intervals of a predetermined time;
[0351] Based on the service capabilities of the forwarding nodes obtained each time, determining the first forwarding node with the strongest new aggregation capability among the forwarding nodes;
[0352] New path information is formed based on the newly determined first forwarding node and sent to each of the nodes.
[0353] Correspondingly, an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps in the method on the control node side are implemented.
[0354] It should be noted here that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.
[0355] It should be noted that Fig.23A hardware entity diagram of an electronic device provided in an embodiment of the present application Figure 2 ,like Fig.23 As shown, an embodiment of the present application provides an electronic device 900, including a second memory 902 and a second processor 901, wherein the second memory 902 stores a computer program that can be run on the second processor 901, and the processor 901 implements the steps in the above method when executing the program, wherein;
[0356] The second processor 901 generally controls the overall operation of the electronic device 900 .
[0357] The second memory 902 is configured to store instructions and applications executable by the second processor 901, and can also cache data to be processed or processed by the second processor 901 and various modules in the electronic device 900 (for example, image data, audio data, voice communication data, and video communication data), which can be implemented through flash memory (FLASH) or random access memory (Random Access Memory, RAM).
[0358] Correspondingly, an embodiment of the present application also provides a computer program product, including a computer program, which can be executed by the processor 901 of the electronic device 900 to complete the steps in the method on the message processing device 800 side.
[0359] It should be understood that "one embodiment" or "an embodiment" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application. The above-mentioned sequence numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments.
[0360] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0361] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the device or unit can be electrical, mechanical or other forms.
[0362] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0363] In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be a separate unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0364] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: a mobile storage device, a read-only memory (ROM), a magnetic disk or an optical disk, and other media that can store program codes.
[0365] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can be essentially or partly reflected in the form of a software product that contributes to the relevant technology. The computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods of each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a mobile storage device, ROM, a disk, or an optical disk.
[0366] The above are only implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A message processing method, characterized in that: Applied to the first forwarding node, comprising: aggregating first messages respectively sent by multiple first service nodes in a path to obtain a second message; wherein the path is determined based on path information sent by a control node, and the path information is obtained by the control node performing path planning based on the service capabilities of each node in a network topology; the first service node and the first forwarding node in different paths are different; The second message is sent to a second service node in the path.
2. The message processing method according to claim 1, characterized in that: Before obtaining the second message from the first messages respectively sent by the multiple first service nodes in the aggregation path, the method further includes: The local bitmap information and local node identifier sent by the receiving control node.
3. The message processing method according to claim 1, characterized in that: The first message includes: a message header and a message payload; The message header includes at least one of the following: communication address information, first target bitmap information of a target forwarding node, and a plurality of protocol fields; and the message payload includes data to be aggregated.
4. The message processing method according to any one of claims 1 to 3, characterized in that: The first messages respectively sent by the multiple first service nodes in the aggregation path are used to obtain the second message, including: Based on the matching results of the plurality of first target bitmap information and the local bitmap information, and the current computing resources, determining the aggregate detection results of the plurality of first messages; wherein each of the plurality of first target bitmap information belongs to the corresponding first message; If the aggregation detection result indicates that aggregation of multiple first messages is supported, the data to be aggregated in the payloads of multiple messages are aggregated and combined with the message headers to obtain the second message.
5. The message processing method according to claim 4, characterized in that: The data to be aggregated includes: N sub-data in a certain order; N is an integer greater than 0; the data to be aggregated in the payload of the plurality of messages is aggregated and combined with the message header to obtain a second message, including: Aggregating the sub-data corresponding to the same order in the plurality of data to be aggregated to obtain an aggregated message payload part; Modify the first protocol field in the message header to obtain an aggregate message header; wherein the modified first protocol field is used to indicate that the corresponding first message has been aggregated; The aggregate message payload and the aggregate message header are combined to obtain the second message.
6. The message processing method according to claim 4, characterized in that: After determining the aggregate detection results of the plurality of first messages based on the matching results of the plurality of first target bitmap information and the local bitmap information, and the current computing resources, the method further includes: If the aggregation detection result indicates that aggregation of the plurality of first messages is not supported, modifying the second protocol field in the message header of each of the first messages to obtain a corresponding third message; wherein the modified second protocol field is used to indicate that the corresponding first forwarding node does not support aggregation; Each of the third messages is sent to the second service node based on the next hop in the path information, so that the second service node aggregates multiple third messages and completes the model parameter update based on the aggregated messages.
7. The message processing method according to any one of claims 1 to 3, characterized in that: After sending the second message to the second service node in the path, the method further includes: receiving a fourth message sent by the second service node, and determining a message detection result for the fourth message; wherein the message detection result is used to indicate whether the fourth message is a one-to-many message sent to multiple first service nodes; If the message detection result indicates that the fourth message is a one-to-many message sent to multiple first service nodes, copy the fourth message for each of the first service nodes to obtain a fifth message corresponding to each of the first service nodes; The fifth message is sent to each corresponding first service node.
8. The message processing method according to claim 7, characterized in that: The determining a message detection result for the fourth message includes: The message detection result is determined based on the matching result between the second target bitmap information and the local bitmap information in the message header of the fourth message, and the third protocol field in the message header of the fourth message; wherein the third protocol field is used to characterize whether the fourth message is a one-to-many message sent to multiple first service nodes.
9. A message processing method, characterized in that: Applied to control nodes, including: Perform path planning based on the service capabilities of each node in the acquired network topology to determine path information; wherein the path information is used to characterize the first service node, the first forwarding node, and the second service node included in each of the paths; the first service node and the first forwarding node in different paths are different; The path information is sent to each of the nodes, so that the first forwarding node in each of the paths aggregates first messages respectively sent by a plurality of the first service nodes, and sends the aggregated second message to the second service node.
10. The message processing method according to claim 9, characterized in that: Before performing path planning based on the service capability of each node in the acquired network topology and determining the path information, the method further includes: According to each of the node configuration bitmap information and the corresponding relationship between the node identifier, a corresponding relationship set is formed; The corresponding relationship set is sent to each service node in the network topology, and the bitmap information and the node identifier corresponding to each forwarding node are sent to the corresponding forwarding node; wherein the service nodes include: the first service node and the second service node; and the forwarding nodes include the first forwarding node.
11. The message processing method according to claim 10, characterized in that: The performing path planning based on the service capability of each node in the acquired network topology and determining the path information includes: Based on the data representing the service capabilities of each of the nodes obtained through processing with a preset model, initial path information between each of the first service nodes and the corresponding second service node is determined; wherein the initial path information includes at least one of the following: port information and address information of each of the nodes in the path, and sending task information of each of the first service nodes; Based on the service capabilities of the respective forwarding nodes in the path represented by the initial path information, determining the first forwarding node having the strongest aggregation capability among the respective forwarding nodes; The initial path information and the bitmap information of the first forwarding node are combined to determine the path information.
12. The message processing method according to claim 11, characterized in that: After determining the first forwarding node with the strongest aggregation capability among the forwarding nodes based on the service capability of each forwarding node in the path represented by the initial path information, the method further includes: Obtaining the service capability of each forwarding node in the path information at predetermined intervals; Based on the service capabilities of each of the forwarding nodes obtained each time, determining the first forwarding node with the strongest new aggregation capability among the forwarding nodes; New path information is formed based on the newly determined first forwarding node and sent to each of the nodes.
13. A message processing device, characterized in that: Applied to the first forwarding node, comprising: an aggregation unit, configured to aggregate first messages respectively sent by a plurality of first service nodes in a path to obtain a second message; wherein the path is determined based on path information sent by a control node, and the path information is obtained by the control node performing path planning based on the service capabilities of each node in a network topology; and the first service node and the first forwarding node in different paths are different; The first sending unit is configured to send the second message to a second service node in the path.
14. A message processing device, characterized in that: Applied to control nodes, including: A path planning unit, configured to perform path planning based on the service capability of each node in the acquired network topology, and determine path information; wherein the path information is used to characterize the first service node, the first forwarding node, and the second service node included in each of the paths; the first service node and the first forwarding node in different paths are different; The second sending unit is used to send the path information to each of the nodes, so that the first forwarding node in each of the paths aggregates the first messages respectively sent by multiple first service nodes, and sends the aggregated second message to the second service node.
15. An electronic device, characterized in that: The invention comprises a memory and a processor, wherein the memory stores a computer program executable on the processor, and the processor implements the steps of the method described in any one of claims 1 to 8 or the steps of the method described in any one of claims 9 to 12 when executing the computer program.
16. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the computer program implements the steps of the method according to any one of claims 1 to 8, or implements the steps of the method according to any one of claims 9 to 12.
17. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the computer program implements the steps of the method according to any one of claims 1 to 8, or implements the steps of the method according to any one of claims 9 to 12.
Citation Information
Patent Citations
Load balancing method and device for multiple transmission lines
CN111049752A
Cross-device link aggregation message processing method and system, switch and storage medium
CN115665033A
Message transmission method and device, storage medium and electronic device
CN117978738A
Paging cause determination for inactive device in the 5g system
US20210127351A1
