Traffic transmission path planning method and apparatus, and device and storage medium

By building a communication traffic loop, priority is given to connecting task devices in series in the same LA group, which solves the problem of inefficiency caused by traffic across LA groups and achieves more efficient communication between task devices.

WO2025139162A1PCT designated stage expired Publication Date: 2025-07-03TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/122688
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-12-29
Filing Date
2024-09-30
Publication Date
2025-07-03

AI Technical Summary

Technical Problem

In the planning of traffic transmission paths, the prior art fails to effectively avoid cross-LA group traffic between task devices, resulting in inefficient communication.

Method used

By determining the LA group to which the task equipment belongs, a communication traffic loop is built, so that the devices of the same LA group are connected in series first, forming a transmission path closed loop to reduce the traffic across LA groups.

Benefits of technology

It improves the communication efficiency between task devices, reduces unnecessary cross-LA group traffic, optimizes communication paths, and improves the efficiency and reliability of task execution.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024122688_03072025_PF_FP_ABST
    Figure CN2024122688_03072025_PF_FP_ABST
Patent Text Reader

Abstract

A traffic transmission path planning method and apparatus, and a device and a storage medium, which belong to the technical field of communications. The technical solution provided in the present application can be applied to scenarios such as cloud technology, artificial intelligence, intelligent transportation and driver assistance. The method comprises: determining access layer (LA) groups to which N task devices each belong, wherein the N task devices jointly execute the same task; and on the basis of the LA groups to which the N task devices each belong, determining a communication traffic ring formed by the N task devices, wherein task devices belonging to the same LA group are in serial communication connection. In the method, during the construction of a communication traffic ring, the relative communication positions of N task devices are rationally planned on the basis of LA groups to which the N task devices each belong, and devices belonging to the same LA group are preferentially connected in series for communication, and thus unnecessary cross-LA-group traffic transmission is avoided during traffic transmission, thereby improving the communication efficiency between the task devices.
Need to check novelty before this filing date? Find Prior Art

Description

Method, device, equipment and storage medium for planning traffic transmission paths

[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on December 29, 2023, with application number 2023118700939 and application name “Planning method, device, equipment and storage medium for traffic transmission path”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of communication technology, and in particular to traffic transmission path planning technology. Background Art

[0003] Traffic transmission path planning is used to ensure the efficiency and reliability of data transmission between task devices by reasonably planning the traffic transmission path.

[0004] In related technologies, topology affinity is often used when planning traffic transmission paths. Specifically, for an AI (Artificial Intelligence) large-scale model task, when assigning task devices to perform the task, the task is preferably assigned to task devices in the same LA (Access Layer) group. If all task devices involved in the AI ​​large-scale model task can belong to the same LA group, the traffic transmission path will be optimal.

[0005] However, due to the limited number of LA ports and the limited number of task devices that can be connected, when the number of task devices involved in a task exceeds the maximum number that can be connected to the LA, cross-LA group traffic will inevitably occur. In other words, multiple task devices used to perform the same task belong to different LA groups. However, the relevant technology does not consider how to rationally plan the traffic transmission paths formed by multiple task devices. This will cause traffic to frequently cross LA groups when communicating between task devices, affecting the communication efficiency between task devices.

[0006] Summary of the Invention

[0007] The embodiments of the present application provide a method, apparatus, device, and storage medium for planning a traffic transmission path, which can reasonably plan traffic transmission paths, avoid unnecessary cross-LA group traffic transmission, and improve communication efficiency between task devices. The technical solutions provided by the embodiments of the present application are as follows:

[0008] According to one aspect of an embodiment of the present application, a method for planning a traffic transmission path is provided, which is performed by a computer device. The method includes:

[0009] Determine LA groups to which N task devices belong, wherein each LA group includes at least one task device and an LA connected to the at least one task device, the N task devices belong to at least two LA groups, and the N task devices jointly perform the same task, where N is an integer greater than 1;

[0010] According to the LA groups to which the N task devices respectively belong, a communication traffic ring composed of the N task devices is determined, wherein the communication traffic ring is a closed transmission path loop formed by the N task devices being communicated and connected in sequence, and in the communication traffic ring, each of the task devices belonging to the same LA group is communicated and connected in series.

[0011] According to one aspect of an embodiment of the present application, a device for planning a traffic transmission path is provided, the device comprising:

[0012] a determination module, configured to determine LA groups to which N task devices each belong, wherein each LA group includes at least one task device and an LA connected to the at least one task device, the N task devices belong to at least two LA groups, and the N task devices jointly perform the same task, where N is an integer greater than 1;

[0013] A module is obtained, which is used to determine a communication traffic ring composed of the N task devices according to the LA groups to which the N task devices respectively belong, wherein the communication traffic ring is a closed transmission path loop formed by the N task devices being communicated and connected in sequence, and in the communication traffic ring, each of the task devices belonging to the same LA group is communicated and connected in series.

[0014] According to one aspect of an embodiment of the present application, a computer device is provided, comprising a processor and a memory, wherein a computer program is stored in the memory, and the computer program is loaded and executed by the processor to implement the above-mentioned traffic transmission path planning method.

[0015] According to one aspect of an embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored. The computer program is loaded and executed by a processor to implement the above-mentioned method for planning a traffic transmission path.

[0016] According to one aspect of an embodiment of the present application, a computer program product is provided, which includes a computer program stored in a computer-readable storage medium, and a processor reads and executes the computer program from the computer-readable storage medium to implement the above-mentioned traffic transmission path planning method.

[0017] The technical solutions provided by the embodiments of the present application include at least the following beneficial effects:

[0018] During the construction of the communication traffic ring, the relative communication positions of the N task devices are rationally planned based on the LA groups to which they each belong. Task devices belonging to the same LA group are prioritized for serial communication, and the N task devices are then combined into a closed transmission path loop, serving as the final communication traffic ring. This method prioritizes serial communication between devices in the same LA group. Therefore, unnecessary cross-LA group traffic transmission can be avoided during traffic transmission, reducing cross-LA group traffic and improving communication efficiency between task devices. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] FIG1 is a schematic diagram of an implementation environment of a solution provided by an embodiment of the present application;

[0020] FIG2 is a schematic diagram of traffic transmission based on a ring topology structure provided by an embodiment of the present application;

[0021] FIG3 is a flow chart of a method for planning a traffic transmission path provided by one embodiment of the present application;

[0022] FIG4 is a schematic diagram of a communication traffic ring including four task devices provided by one embodiment of the present application;

[0023] FIG5 is a schematic diagram of a communication traffic ring including four task devices provided by another embodiment of the present application;

[0024] FIG6 is a schematic diagram of a task device including multiple network cards provided by one embodiment of the present application;

[0025] FIG7 is a flow chart of a method for planning a traffic transmission path provided by another embodiment of the present application;

[0026] FIG8 is a schematic diagram of a method for obtaining a hash value in a cloud environment provided by one embodiment of the present application;

[0027] FIG9 is a schematic diagram of experimental results comparing flow ratios across LA groups provided by one embodiment of the present application;

[0028] FIG10 is a schematic diagram of the results of an AllReduce performance comparison experiment provided by an embodiment of the present application;

[0029] FIG11 is a block diagram of a flow transmission path planning device provided by one embodiment of the present application;

[0030] FIG12 is a structural block diagram of a computer device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0031] In order to make the objectives, technical solutions and advantages of this application clearer, the implementation methods of this application will be further described in detail below with reference to the accompanying drawings.

[0032] Please refer to Figure 1, which shows a schematic diagram of an implementation environment of a solution provided by an embodiment of the present application. The implementation environment of the solution may include at least two task devices 10, at least two LAs 20, and at least one LC (Layer Convergence) 30.

[0033] In some embodiments, the task device 10 may be an electronic device such as a PC (Personal Computer) or a server. The server may be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms.

[0034] In some embodiments, the task devices 10 communicate with each other based on a Ring-based (ring structure) method, and communication specifically refers to the transmission of traffic (data) between the task devices 10. Specifically, at least two task devices 10 involved in the AI ​​large model task are connected end to end in traffic interaction to form a ring, which is also called a communication traffic ring, that is, the traffic interacted between the task devices 10 is transmitted through a ring topology structure. For each task device 10, there is only one left neighbor and one right neighbor, which receives data from the left neighbor and sends data to the right neighbor. For example, as shown in Figure 2, it is assumed that the AI ​​large model task involves 4 task devices, namely task device 1, task device 2, task device 3 and task device 4. These 4 task devices communicate based on the Ring-based method, and are connected end to end in traffic interaction to form a ring. For task device 1, it can only receive data from its left neighbor, task device 4, and send data to its right neighbor, task device 2.

[0035] In some embodiments, each task device 10 can be connected to one or more LAs, each LA can be connected to one or more task devices, and each LA can be connected to one or more LCs, which is not limited in this application.

[0036] In some embodiments, when any two task devices 10 belong to the same LA group, they can communicate via the connected LA 20. For example, as shown in FIG1 , task devices 1 and 2 belong to the same LA group and can communicate via either LA 1 or LA 2, although this application does not limit this.

[0037] In some embodiments, when any two task devices 10 do not belong to the same LA group and need to transmit traffic across the LA group, the two task devices 10 can communicate with each other through the LA and LC connected to them. For example, as shown in Figure 1, task device 1 and task device 3 can communicate through LA1, LC1, and LA3, or through LA2, LC2, and LA3, but this application does not limit this.

[0038] In some embodiments, the technical solution proposed in this application can be applied to the parallel execution scenario of artificial intelligence models, that is, at least two task devices 10 jointly execute the same AI large model task, thereby achieving the effects of improving computing efficiency, increasing system fault tolerance, shortening training time and reducing communication overhead.

[0039] Please refer to Figure 3, which shows a flow chart of a method for planning a traffic transmission path provided by one embodiment of the present application. The execution entity of each step of the method can be a computer device, for example, the computer device can be the task device 10 in the solution implementation environment shown in Figure 1. The method can include the following steps 310-320.

[0040] Step 310: Determine the LA groups to which the N task devices belong, where each LA group includes at least one task device and an LA connected to the at least one task device. The N task devices belong to at least two LA groups, and the N task devices jointly perform the same task, where N is an integer greater than 1.

[0041] For example, the N task devices mentioned above can jointly execute an AI large model task, which refers to an artificial intelligence algorithm or task that requires a large amount of calculation and processing. Typically, this task requires a large amount of data processing, calculation, training, and optimization, requiring powerful computing and storage resources. To improve the execution efficiency and performance of this task, the AI ​​large model task can be distributed to the N task devices for execution. This can fully utilize the computing power of each task device, speed up task processing, and reduce the burden on individual task devices.

[0042] The large AI model task is distributed to N task devices for parallel execution. During parallel execution, data exchange and collaborative processing are required between the task devices, such as message passing and data transmission. By exchanging data, sharing computation results, and synchronizing execution status among the N task devices, efficient task allocation and collaborative processing are achieved, thereby improving the execution efficiency and performance of the large AI model task.

[0043] Of course, in actual applications, the above-mentioned N task devices can not only be used to jointly execute AI large model tasks, but can also be used to jointly execute other tasks that require more computing resources. The embodiment of this application does not impose any limitations on the tasks jointly executed by the N task devices.

[0044] A task device refers to a device that participates in the execution of a task and has computing or execution capabilities. LA can be used for communication between task devices. LA is part of a local area network (LAN), which provides data exchange, forwarding, and distribution functions, allowing communication and data transmission between task devices. For at least two task devices connected to the same LA, the task devices can communicate directly through the LA without the need for network devices at other levels. LA can achieve data transmission between task devices by forwarding data packets based on the MAC (Media Access Control) address of the target task device or other identification information of the target task device; the target task device here refers to the recipient of the data packet, that is, the task device that receives the data packet.

[0045] An LA group is a collection of task devices and LAs connected to them, and can be used as a unit in a network architecture. Each LA group contains at least one task device and an LA connected to it. As shown in Figure 4, LA group 1 includes task device 1, task device 2, and access layer switches LA1, LA2, LA3, and LA4 connected to them. LA group 2 includes task device 3, task device 4, and access layer switches LA5, LA6, LA7, and LA8 connected to them. Task device 1, task device 2, task device 3, and task device 4 all perform the same task.

[0046] In some embodiments, LA can be configured with multiple ports, and each task device is connected to LA through one of the ports. For multiple task devices in the same LA group, when data exchange is required between the task devices, they can transmit data packets through LA. LA will determine the forwarding path of the data packet based on the MAC address of the target task device and accurately deliver the data packet to the target task device. For example, please refer to Figure 4, sub-figure (a) shows the LA group division of 4 task devices, where task device 1 and task device 2 belong to LA group 1, and task device 3 and task device 4 belong to LA group 2. Sub-figure (b) shows the communication traffic ring composed of 4 task devices. Assuming that task device 1 wants to send data to task device 2, that is, the target task device is task device 2, first task device 1 can send a data packet to LA1, and LA1 forwards the received data packet to task device 2. Alternatively, task device 1 can also choose LA2 to forward the data packet, or LA3 to forward the data packet, or LA4 to forward the data packet, and this application does not limit this.

[0047] In some embodiments, when multiple task devices in different LA groups need to exchange data, they can transmit data packets through the LA and LC. Specifically, the LA first forwards the data packet sent by the task device to the connected LC. The LC then forwards the data packet to the target LA. The target LA can be determined based on the MAC address of the target task device in the data packet. The target LA then uses forwarding and routing functions to accurately transmit the data packet to the target task device, thereby enabling data transmission between task devices across LA groups. The LC is located between the LA and the core layer switch SGLC. Its main function is to receive data packets from the LA and transmit the data packets from the LA to the SGLC or other target devices. In this application, the LC is used to transmit data packets from the LA to the target LA. For example, please refer to Figure 5. Sub-figure (a) shows the LA group division of four task devices, where task devices 1 and 2 belong to LA group 1, and task devices 3 and 4 belong to LA group 2. Sub-figure (b) shows the communication traffic ring composed of four task devices. Assume that task device 1 wants to send data to task device 3, that is, the target task device is task device 3, and task device 1 and task device 3 belong to different LA groups. First, task device 1 can send a data packet to LA1. Then, LA1 forwards the received data packet to LC2. LC2 then sends the received data packet to LA5. Finally, LA5 sends the data packet to task device 3. Similarly, LA1 can be replaced by LA2, LA3, or LA4, LC2 can be replaced by LC1, and LA5 can be replaced by LA6, LA7, or LA8. This application does not limit this.

[0048] In some embodiments, for communication between two task devices that are not directly connected in a communication traffic ring, data transmission between the two task devices that are not directly connected can be achieved through an intermediate task device. For example, please refer to Figure 4, assuming that task device 1 wants to send data to task device 3, that is, the target task device is task device 3, task device 1 and task device 3 belong to different LA groups, and task device 1 and task device 3 are not directly connected in the communication traffic ring shown in Figure 4. The intermediate task device between task device 1 and task device 3 is task device 2. First, task device 1 sends data to task device 2 that is directly connected to it through an access layer switch (such as LA1, LA2, LA3 or LA4), and then task device 2 forwards the data to the LA (such as LA5, LA6, LA7 or LA8) that is directly connected to task device 3 through the access layer switch (such as LA1, LA2, LA3 or LA4) and LC (such as LC1 or LA2). Finally, the LA transmits the data to task device 3.

[0049] The above method, by using LA and LC for communication between task devices, can achieve efficient and low-latency data transmission, provide a faster and more stable communication environment, and thus support the collaborative execution of the same task between task devices.

[0050] In some embodiments, the network segment information corresponding to each of N task devices is obtained, and the network segment information corresponding to the task device is used to indicate the network address segment to which the task device belongs; based on the network segment information corresponding to each of the N task devices, the LA group to which each of the N task devices belongs is determined, wherein task devices belonging to the same network address segment are divided into the same LA group, and task devices belonging to different network address segments are divided into different LA groups.

[0051] As shown in Figure 4, the network address segments indicated by the network segment information corresponding to task device 1 and task device 2 are the same, so task device 1 and task device 2 are both divided into LA group 1, and the network address segments indicated by the network segment information corresponding to task device 3 and task device 4 are the same, so task device 3 and task device 4 are both divided into LA group 2.

[0052] A network address segment refers to a part of an IP (Internet Protocol) address, which is used to divide the address ranges of different networks. A network address segment can be determined based on an IP address and a subnet mask. Specifically, an IP address consists of 32-bit binary digits, one part of which is used to represent the network address and the other part is used to represent the host address. The subnet mask is a 32-bit binary digit used to identify the division of the network address and the host address in the IP address. By applying a subnet mask to the IP address, a network address can be obtained, which is the above-mentioned network address segment. The main function of a network address segment is to divide the LA groups to which task devices belong, so that task devices with the same network address segment are divided into the same LA group. If two task devices have the same network address segment, that is, they have the same network address part, then they belong to the same LA group.

[0053] This method, which groups task devices into corresponding LA groups based on network segment information, facilitates management and control of communication and data exchange between task devices. Task devices within the same LA group can communicate directly, while communication between task devices in different LA groups must be forwarded through an LC or other network device. This improves network efficiency and security.

[0054] In some embodiments, for each of the N task devices, the network segment information corresponding to the network card of the task device is obtained by calling the communication library as the network segment information corresponding to the task device; wherein, the network card of the task device is the hardware interface for the task device to communicate with the external network or other devices, and the communication library is used to provide functions and interfaces related to network communication.

[0055] A network card (NIC) is a computer hardware device used to establish a physical link between a computer device and a network. A NIC is typically connected to a LA via a network cable, and one LA can connect to multiple NICs. Through the connection between the NIC and LA, task devices can communicate over the network, enabling data transmission and exchange. In a network, when task devices need to communicate, a data packet needs to be sent to the LA via the NIC. The LA then sends the data packet to the target task device. If the target task device of the data packet is not in the same LA group, the LA forwards the data packet to the upper-layer device, which can be the LC. The LC checks the LA where the target task device of the data packet is located, then forwards the data packet to the LA where the target task device is located, which then sends the data packet to the target task device.

[0056] Obtaining the network segment information corresponding to the task device's network card by calling the communication library means obtaining the task device's network card information, including the card's name, MAC address, IP address, subnet mask, etc., by calling the functions or interfaces provided in the communication library. This information can then be used to calculate the task device's network segment information and use it as the task device's corresponding network segment information.

[0057] The process of obtaining the network card information of the task device by calling the communication library is as follows: run the task on the task device and call the method of obtaining the network card information in the communication library at the same time; obtain the network card information, including the network card name, MAC address, IP address, subnet mask, etc.; calculate the network segment information of the task device based on the obtained IP address and subnet mask; use the calculated network segment information of the task device as the network segment information of the task device, which will be used for subsequent operations such as task device LA group division.

[0058] This method, by invoking the communication library to obtain the network segment information corresponding to N task devices, avoids the hassle of manual configuration and automatically identifies the task device's network segment information. Furthermore, based on this acquired network segment information, it can perform intelligent network management operations such as LA grouping for task devices and traffic transmission path planning, improving the efficiency and accuracy of network configuration.

[0059] In some embodiments, each task device is configured with multiple network cards. Different network cards can access different LA ports. Different LAs have different network segment information, so different network cards correspond to different network segment information. For example, referring to Figure 6, each task device can be configured with eight network cards: NIC 61, NIC 62, NIC 63, NIC 64, NIC 65, NIC 66, NIC 67, and NIC 68. For each LA in the same LA group, two LAs with the same grayscale value represent the same network segment information, while LAs with different grayscale values ​​represent different network segment information. For example, LA69 and LA610 have the same network segment information, while LA69 and LA611 have different network segment information. For LAs in different LA groups, the same grayscale value represents different network segment information, and different grayscale values ​​also represent different network segment information. For example, LA69 and LA612 have different network segment information, while LA69 and LA613 have different network segment information. Network card 61 and network card 62 can connect to LA69 and LA610, respectively. The network segment information corresponding to network card 61 and network card 62 is the same. For task devices belonging to the same LA group, the network segment information corresponding to their first network card is the same. For task devices belonging to different LA groups, the network segment information corresponding to their first network card is different.

[0060] In some embodiments, based on the configuration parameters of the communication library, the network segment information corresponding to the first network card of the task device is obtained as the network segment information corresponding to the task device; wherein the first network card is one of the multiple network cards of the task device, and the configuration parameters are used to indicate the first network card among the multiple network cards.

[0061] The first network card refers to any network card in the task device. For example, referring to FIG6 , the first network card may be any network card among the eight network cards.

[0062] The communication library's configuration parameters are a set of parameters used to specify the library's behavior and settings. Specifically, the communication library's configuration parameters include a network card selection parameter, which indicates which network card's network segment information should be selected as the network segment information corresponding to the task device. This parameter is used to indicate the first network card among multiple network cards in the task device.

[0063] Optionally, the communication library's configuration parameters may also include security parameters for setting the library's security options, such as encryption algorithms, authentication methods, and access control. They may also include performance optimization parameters for adjusting the library's performance and resource utilization, such as buffer size, number of concurrent connections, and timeout period.

[0064] The above method can easily obtain the network segment information corresponding to the first network card of the task device through the configuration parameters of the communication library as the network segment information corresponding to the task device, thereby achieving more flexible and scalable network configuration.

[0065] In some embodiments, please refer to Figure 7, which shows a flow chart of a method for planning a traffic transmission path provided by another embodiment of the present application. For each task device, in the startup module, after starting the artificial intelligence AI large model, the model will call the Ring-based algorithm of the communication library to allow multiple task devices to synchronize data and enable the task device to enter the initialization ring building state. In the initialization ring building module, the communication library of the task device will actively retrieve the network card information of the task device and try to obtain the network segment information of the task device. Entering the topology perception module, when N task devices perform the initialization ring building operation in the communication library, the bootstrap network will organize the interaction of relevant information (such as network segment information) between the task devices. The bootstrap network is used to support communication between task devices. It is a bridge for data interaction between task devices. Specifically, the bootstrap network can collect the network segment information of all task devices through the AllGather (global collection) operation. For each task device, based on the network segment information of this task device and other task devices, the LA group information of this task device and other task devices can be obtained.

[0066] In some cloud environments, due to virtualization, security, and other factors, the communication library may not be able to obtain the task device's network card information. Therefore, network topology positioning cannot be performed directly based on the task device's network segment information. To address this issue, the hash values ​​corresponding to each of the N task devices can be obtained and used to determine the LA group to which the task device belongs.

[0067] Specifically, the hash value corresponding to each of the N task devices is obtained, and the hash value corresponding to the task device is determined according to the identification information of the task device through a hash algorithm; according to the hash value corresponding to each of the N task devices, the LA group to which the N task devices belong is determined, wherein the task devices corresponding to the same hash value are divided into the same LA group, and the task devices corresponding to different hash values ​​are divided into different LA groups.

[0068] A hash value is a unique numerical value calculated using a hash algorithm based on the identification information of a task device. A hash algorithm is an algorithm that maps data of any size to a fixed-size value. Optionally, the hash algorithm may be MD5 (Message Digest Algorithm 5), SHA1 (Secure Hash Algorithm 1), SHA256 (Secure Hash Algorithm 256-bit), or the like. The identification information of a task device may be a unique identifier for the task device, such as a device ID (Identification), MAC address, or IP address.

[0069] In network topology positioning, a hash algorithm can be used to map the identification information of the task device into a corresponding hash value.

[0070] The above method collects the identification information of N task devices and then calculates the corresponding hash value through a hash algorithm. Task devices with the same hash value are assigned to the same LA group, while task devices with different hash values ​​are assigned to different LA groups. This allows task devices to be effectively grouped to achieve corresponding network topology positioning without relying on their network segment information.

[0071] In some embodiments, for each of the N task devices, a hash value corresponding to the task device is obtained from the controller through the communication thread of the communication library; wherein the controller is used to manage and schedule communication information of the N task devices, and the communication library is used to provide functions and interfaces related to network communication.

[0072] Referring to Figure 8, each task device initiates a request to the controller through the communication library's communication thread, requesting the hash value corresponding to that task device. This is accomplished through the interface provided by the communication library. After receiving the request, the controller uses a hash algorithm to calculate the hash value corresponding to the task device based on the task device's identification information (such as device ID, IP address, etc.). The controller returns the calculated hash value to the communication thread of the task device that initiated the request.

[0073] The communication library's communication thread is the thread running within the library responsible for handling communication operations for task devices. The controller is the component responsible for centrally managing and scheduling communication information for N task devices. It performs hash calculations based on task device identification information (such as device ID and IP address), enabling grouping and locating of task devices. It also manages and schedules communication between task devices, ensuring orderly collaboration among them.

[0074] The above method, through the centralized management and scheduling of N task devices by a controller, ensures orderly, efficient, and stable communication between task devices and guarantees the secure transmission of data between them. Furthermore, by using a hash algorithm to locate task devices, task devices can be effectively divided into corresponding LA groups, thereby improving the efficiency and reliability of data transmission between task devices. Furthermore, through the communication threads of the communication library, task devices can quickly and accurately obtain their corresponding hash values, facilitating topological awareness and organization of task devices, further improving the efficiency and quality of collaboration between task devices.

[0075] In some embodiments, referring to FIG. 7 , in the topology awareness module, when the bootstrap network in the communication library is initialized, the communication thread obtains the hash value of the task device from the controller.

[0076] Step 320, based on the LA groups to which the N task devices belong, determine the communication traffic ring composed of N task devices, wherein the communication traffic ring is a closed transmission path loop formed by the N task devices communicating in sequence. In the communication traffic ring, each task device belonging to the same LA group is communicated in series.

[0077] When N task devices jointly execute a large AI model task, the AI ​​model typically calls three collective communication primitives: AllReduce (global reduction), ReduceScatter (distributed reduction), and AllGather, to synchronize and transmit data between multiple task devices. AllReduce reduces the data values ​​to be reduced on each task device through specific reduction operations (such as addition and multiplication) and synchronously returns the reduced results to each task device. AllReduce is commonly used in computational scenarios such as aggregating model parameters and calculating loss functions, significantly accelerating computation. ReduceScatter reduces the data values ​​to be reduced on each task device through specific reduction operations and disperses the reduced results across multiple task devices. ReduceScatter is commonly used to reduce global data to each task device for parallel processing. In ReduceScatter, each task device receives only a portion of the reduced results from other task devices, rather than the entire result. This helps reduce communication link load and data transmission latency, thereby improving communication efficiency. AllGather gathers the local data of each task device to form a global view and then synchronously returns the local data to each task device. In the AllGather operation, each task device sends its local data to all task devices and collects the local data from all task devices. The AllGather operation allows the local data on each task device to be gathered to form a global view, allowing for parallel computation and processing. These three types of collective communication primitives are implemented using a Ring-based approach, combining N task devices into a communication traffic ring. The communication traffic ring determines the transmission path for communication traffic between the N task devices. Different communication traffic transmission paths directly affect the amount of traffic across LA groups, which in turn affects communication efficiency.

[0078] Specifically, to synchronize and transfer data for large models, these collective communication primitives require data transmission between multiple task devices. Implemented using a ring-based structure, these collective communication primitives connect N task devices into a communication traffic ring, establishing a data communication path between these devices. Different task devices may belong to different LA groups, which results in data being transferred across LA groups. If the amount of data transferred across these groups is large, this increases communication latency and bandwidth pressure, reducing communication efficiency. Therefore, constructing a reasonable communication traffic ring is crucial for optimizing the performance of collective communication primitives.

[0079] In some embodiments, please refer to FIG7 . In the same LA group classification module, according to the LA groups to which the N task devices belong, each task device belonging to the same LA group is divided into the same task device group, and each task device belonging to different LA groups is divided into different task device groups (this division rule can also be referred to as the principle that devices with the same LA group are classified into the same group of task devices), thereby obtaining M groups of task devices, where M is an integer greater than 1. In the logical series connection module, for each group of task devices in the M groups of task devices, each task device contained therein is connected in communication series to obtain a task device chain. In the topology affinity ring building module, the M task device chains are connected in communication in sequence to obtain a communication traffic ring composed of N task devices. Finally, when the N task devices communicate, the traffic is transmitted in the order of the ring.

[0080] A task device chain defines the order and direction of data transmission between task devices. It can be used to specify the direction of data transmission and reception, as well as the path along which data is transmitted. For a task device chain [task device A -> task device D], task device A sends data, and task device D receives it.

[0081] Any task device has obtained the topological location information of other task devices. For each task device, the obtained information may be, for example: [Task device A: LA Group 1, Task device B: LA Group 2, Task device C: LA Group 2, Task device D: LA Group 1, Task device E: LA Group 3]. Based on this information, the task devices in the same LA group are clustered, and N task devices are divided into three groups: LA Group 1: [Task device A, Task device D], LA Group 2: [Task device B, Task device C], and LA Group 3: [Task device E].

[0082] In some embodiments, based on the above information, each task device contained in each of the M groups of task devices is connected in series to obtain M task device chains. In these task device chains, the relative positions of the task devices in each group can be arranged in a variety of ways, which is not limited in this application. For example, in the process of building a communication library ring, the devices of the same LA group are logically connected in series first. For example, for LA group 1 in the above example, the task device chain can be [task device A->task device D] or [task device D->task device A]. For LA group 2 in the above example, the task device chain can be [task device B->task device C] or [task device C->task device B]. The setting of the task device chain can be flexibly configured according to specific needs and system architecture. According to the different positions and traffic transmission paths between the task devices, a suitable task device chain can be determined. By setting up an appropriate task device chain, the path and direction of data transmission can be optimized, and communication efficiency and performance can be improved.

[0083] In some embodiments, the relative positions of the task devices within each group are arranged differently, and the traffic transmission paths are also different. For a task device chain [task device A -> task device D], task device A sends data and task device D receives the data. For a task device chain [task device D -> task device A], task device D sends data and task device A receives the data.

[0084] In some embodiments, M task device chains are connected in sequence to obtain a communication traffic ring consisting of N task devices. The M task device chains can be arranged in a variety of ways to obtain different communication traffic rings, which is not limited in this application. For the task device chain [task device A->task device D], the task device chain [task device B->task device C] and the task device chain [task device E], the communication traffic ring can be [task device A->task device D->task device B->task device C->task device E->task device A], and the communication traffic ring can also be [task device A->task device D->task device E->task device B->task device C->task device A]. For the task device chain [task device D->task device A], the task device chain [task device C->task device B] and the task device chain [task device E], the communication traffic ring can be [task device D->task device A->task device C->task device B->task device E->task device D], and the communication traffic ring can also be [task device D->task device A->task device E->task device C->task device B->task device D]. This application does not limit this. Therefore, this application allows for a variety of different arrangements to connect M task device chains to form a communication traffic ring consisting of N task devices. This flexibility enables the technical solution to adapt to different network topologies and environmental requirements and provide more efficient communication transmission. During implementation, the appropriate task device chain arrangement can be selected according to specific needs to meet the communication needs of different scenarios.

[0085] In some embodiments, if the network segment information of N task devices is obtained, the N task devices can also be divided into M groups of task devices according to the network segment information corresponding to the N task devices, based on the principle that devices with the same network segment information are classified into the same group of task devices. For example, for each task device, the information obtained can be [task device A: network segment 1, task device B: network segment 2, task device C: network segment 2, task device D: network segment 1, task device E: network segment 3]. Based on the above information, the task devices in the same network segment are clustered, and the N task devices are divided into 3 groups of task devices. Network segment 1: [device A, device D], network segment 2: [device B, device C] and network segment 3: [device E]. The present application does not limit how to divide N task devices into M groups of task devices. They can be divided according to the LA group of the N task devices, or according to the network segment information of the N task devices. The division method can be flexibly adjusted according to specific needs and scenarios.

[0086] The above method can effectively manage and optimize the communication between N task devices. This organization ensures that communication traffic is transmitted within the same LA group as much as possible, reducing cross-LA group traffic and further improving communication efficiency and reliability.

[0087] In some embodiments, the technical solution proposed in this application can greatly reduce the traffic across LA groups. Exemplarily, as shown in Figure 5, when the order of the communication traffic ring composed of task devices is task device 1->task device 3->task device 2->task device 4->task device 1, specifically, when task device 1 and task device 3 communicate, task device 1 and task device 3 belong to different LA groups, so it is necessary to transmit traffic across LA groups. Exemplarily, LA1, LC1, and LA5 can be selected for forwarding traffic; when task device 3 and task device 2 communicate, task device 3 and task device 2 belong to different LA groups, so it is necessary to transmit traffic across LA groups. Exemplarily, LA5, LC2, and LA4 can be selected for forwarding traffic; when task device 2 and task device 4 communicate, task device 2 and task device 4 belong to different LA groups, so it is necessary to transmit traffic across LA groups. Exemplarily, LA2, LC2, and LA6 can be selected for forwarding traffic; when task device 4 and task device 1 communicate, task device 4 and task device 1 belong to different LA groups, so it is necessary to transmit traffic across LA groups. Exemplarily, LA6, LC2, and LA4 can be selected for forwarding traffic. Therefore, according to the above traffic communication ring, the number of times the traffic crosses the LA group is 4 times, and the number of times the traffic is restricted within the LA group is 0 times, that is, each traffic communication is across the LA group. We can establish an indicator to measure the quality of the communication traffic ring, that is, The communication traffic ring shown in Figure 4 has a traffic topology affinity.

[0088] According to the technical solution provided in the present application, topology affinity planning is performed for the four task devices, as shown in Figure 5, and the ring order of the task devices is changed to task device 1->task device 2->task device 3->task device 4->task device 1. When task device 1 and task device 2 communicate, task device 1 and task device 2 belong to the same LA group, so there is no need to transmit traffic across the LA group. For example, LA1 can be selected for forwarding traffic; when task device 2 and task device 3 communicate, task device 2 and task device 3 belong to different LA groups, so there is need to transmit traffic across the LA group. For example, LA1, LC1, and LA5 can be selected for forwarding traffic; when task device 3 and task device 4 communicate, task device 3 and task device 4 belong to the same LA group, so there is no need to transmit traffic across the LA group. For example, LA5 can be selected for forwarding traffic; when task device 4 and task device 1 communicate, task device 4 and task device 1 belong to different LA groups, so there is need to transmit traffic across the LA group. For example, LA8, LC1, and LA4 can be selected for forwarding traffic. Therefore, according to the communication traffic ring, the number of times the traffic crosses the LA group is 2, and the number of times the traffic is limited within the LA group is 2. Compared with Figure 4, the traffic across the LA group decreases by 50%, and the traffic topology affinity is Achieve optimal topological affinity.

[0089] In some embodiments, the technical solution provided by this application reduces the traffic across LA groups. The specific measured data is shown in Figure 9, where the horizontal axis represents time and the vertical axis represents the traffic ratio across LA groups. When the artificial intelligence AI large model task runs on the AllReduce (ring) of communication library 1, the traffic across LA groups is as high as 91%, where AllReduce (ring) is a collective communication primitive using a ring topology structure for synchronizing and transmitting data between multiple task devices. By using this communication primitive, task devices can perform reduction operations on their data and then transmit the results to other task devices through a ring path. However, without optimization, large amounts of data transmission across LA groups may result in higher communication delays and bandwidth pressure. To solve this problem, this application provides a topology affinity technical solution, which optimizes the connection relationship between task devices through communication library 2, reducing traffic transmission across LA groups. In actual tests, this technical solution reduced traffic across LA groups by 75%. Among them, communication library 1 and communication library 2 are open source communication libraries available.

[0090] In some embodiments, the present application conducted comparative tests to evaluate the performance of the technical solution provided by the present application in terms of AllReduce performance and proved that it has stronger stability, wherein AllReduce is a collective communication operation in parallel computing, which is used to reduce data in multiple task devices and distribute the results to all task devices. It is used to implement global reduction operations in parallel computing, such as summation, averaging, etc. Figure 10 shows the test results, where the horizontal axis represents the number of runs and the vertical axis represents the bus bandwidth. The test environment is a cloud environment, using a single network card and 4 task devices, and 200 long-term stability tests were performed between communication library 1 and communication library 2. According to the data in the figure, it can be observed that the bus bandwidth of communication library 1 fluctuates greatly, while the bandwidth of communication library 2 is close to stable with almost no jitter. This is because the communication library 2 in the technical solution provided by the present application utilizes the characteristics of topological affinity to place communication traffic in the same LA group as much as possible, thereby reducing the probability of load imbalance. Load imbalance may cause some task devices to process too much data while other task devices are idle, thereby affecting the overall communication performance and efficiency. By optimizing the communication paths between task devices, Communication Library 2 successfully reduced data transmission across LA groups, making communication traffic more evenly distributed within each LA group. This optimized design enables Communication Library 2 to have more stable bus bandwidth performance during the AllReduce process, reduces communication latency, and improves data transmission efficiency between task devices. Therefore, based on the technical solution provided by this application, the comparative test results show that Communication Library 2 has stronger stability, can effectively reduce load imbalance problems, and optimize the utilization of bus bandwidth, thereby improving the performance of AllReduce and overall communication efficiency.

[0091] In some embodiments, the technical solution provided by this application uses a method to reduce the probability of hash conflicts to improve performance. In the training of large model tasks, due to the lack of topological affinity conditions, there is a load imbalance on the link. By introducing relevant optimization measures at the communication level, significant performance improvements have been achieved. Specifically, at the communication level, we conducted performance index tests on large model tasks. Without using topological affinity to bypass the load imbalance link, the measured bandwidth of the task's 4G message is 87.51GB / s. However, through our technical solution, after using topological affinity to bypass the load imbalance link, the bandwidth was increased to 140.71GB / s, an increase of nearly 60%. This means that by reducing the load imbalance of the link, the data transmission rate is significantly improved. In addition to performance improvements at the communication level, our technical solution also improves performance indicators for tasks. After optimization, the sample transmission rate increased by 11.4%. Through this improvement, we can process task data more efficiently.

[0092] In some embodiments, the technical solution provided by the present application allows network architects to limit traffic as much as possible within the LA group. When traffic is transmitted within the LA group, the LA convergence ratio can be improved due to its localized characteristics. The LA convergence ratio (Local Area Convergence Ratio) refers to the distribution ratio of traffic transmitted within a specific network area (within the LA group) within the area (within the LA group). By limiting traffic transmission within a smaller area (within the LA group), cross-regional transmission requirements can be reduced, and the delay and resource consumption caused by cross-regional (LA group) communications can be reduced. By improving the LA convergence ratio, the number of LCs and SGLCs built can be reduced, thereby achieving the purpose of reducing costs.

[0093] The technical solution provided by this application, during the construction of the communication traffic ring, rationally plans the relative communication positions of N task devices based on the LA groups to which they each belong, prioritizes communication in series between the various task devices belonging to the same LA group, and then forms a closed transmission path loop of the N task devices as the final communication traffic ring. Because the above method prioritizes serial communication between devices in the same LA group, it can avoid unnecessary cross-LA group traffic transmission during traffic transmission, reducing cross-LA group traffic and improving communication efficiency between task devices.

[0094] The following are device embodiments of the present application, which can be used to implement the method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.

[0095] Please refer to Figure 11, which shows a block diagram of a traffic transmission path planning device provided by one embodiment of the present application. The device has the function of implementing the above-mentioned traffic transmission path planning method. The function can be implemented by hardware or by hardware executing corresponding software. The device can be a computer device or can be set in a computer device. The device 1100 can include: a determination module 1110 and an acquisition module 1120.

[0096] Determination module 1110 is used to determine the access layer switch LA group to which each of N task devices belongs, wherein each LA group includes at least one task device and an LA connected to at least one task device, the N task devices belong to at least two LA groups, the N task devices jointly perform the same task, and N is an integer greater than 1.

[0097] Obtain module 1120, which is used to determine the communication traffic ring composed of the N task devices according to the LA groups to which the N task devices respectively belong, wherein the communication traffic ring is a closed transmission path loop formed by the N task devices being communicated and connected in sequence, and in the communication traffic ring, each of the task devices belonging to the same LA group is communicated and connected in series.

[0098] In some embodiments, the determination module 1110 includes: a first acquisition unit and a first determination unit (not shown in FIG. 11 ).

[0099] The first acquiring unit is configured to acquire network segment information corresponding to each of the N task devices, where the network segment information corresponding to the task device is used to indicate the network address segment to which the task device belongs.

[0100] The first determination unit is used to determine the LA group to which the N task devices each belong based on the network segment information corresponding to each of the N task devices, wherein task devices belonging to the same network address segment are divided into the same LA group, and task devices belonging to different network address segments are divided into different LA groups.

[0101] In some embodiments, the first acquiring unit is specifically configured to:

[0102] For each of the N task devices, the network segment information corresponding to the network card of the task device is obtained by calling the communication library as the network segment information corresponding to the task device; wherein, the network card of the task device is the hardware interface for the task device to communicate with the external network or other devices, and the communication library is used to provide functions and interfaces related to network communication.

[0103] In some embodiments, the first acquiring unit is specifically configured to:

[0104] According to the configuration parameters of the communication library, the network segment information corresponding to the first network card of the task device is obtained as the network segment information corresponding to the task device; wherein, the first network card of the task device is one of the multiple network cards of the task device, and the configuration parameters are used to indicate the first network card among the multiple network cards.

[0105] In some embodiments, the determination module 1120 includes: a second acquisition unit and a second determination unit (not shown in FIG. 11 ).

[0106] The second acquiring unit is configured to acquire a hash value corresponding to each of the N task devices, where the hash value corresponding to the task device is determined according to identification information of the task device through a hash algorithm.

[0107] The second determination unit is used to determine the LA group to which the N task devices each belong based on the hash value corresponding to each of the N task devices, wherein task devices corresponding to the same hash value are divided into the same LA group, and task devices corresponding to different hash values ​​are divided into different LA groups.

[0108] In some embodiments, the second acquiring unit is specifically configured to:

[0109] For each of the N task devices, a hash value corresponding to the task device is obtained from the controller through the communication thread of the communication library; wherein the controller is used to manage and schedule communication information of the N task devices, and the communication library is used to provide functions and interfaces related to network communication.

[0110] In some embodiments, the obtaining module 1120 is specifically configured to:

[0111] According to the LA groups to which the N task devices respectively belong, the task devices belonging to the same LA group are divided into the same task device group, and the task devices belonging to different LA groups are divided into different task device groups, thereby obtaining M groups of task devices, where M is an integer greater than 1; for each group of task devices in the M groups of task devices, the individual task devices contained therein are connected in series for communication, thereby obtaining M task device chains; the M task device chains are connected in sequence for communication, thereby obtaining the communication traffic ring.

[0112] The technical solution provided by this application, during the construction of the communication traffic ring, rationally plans the relative communication positions of N task devices based on the LA groups to which they each belong, prioritizes communication in series between the various task devices belonging to the same LA group, and then forms a closed transmission path loop of the N task devices as the final communication traffic ring. Because the above method prioritizes serial communication between devices in the same LA group, it can avoid unnecessary cross-LA group traffic transmission during traffic transmission, reducing cross-LA group traffic and improving communication efficiency between task devices.

[0113] It should be noted that the apparatus provided in the above embodiments, when implementing its functions, is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the apparatus and method embodiments provided in the above embodiments are based on the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.

[0114] Please refer to FIG12 , which shows a structural block diagram of a computer device 1200 provided in one embodiment of the present application.

[0115] Typically, the computer device 1200 includes a processor 1210 and a memory 1220 .

[0116] The processor 1210 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1210 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field Programmable Gate Array), or PLA (Programmable Logic Array). The processor 1210 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 1210 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1210 may also include an AI processor for processing computing operations related to machine learning.

[0117] Memory 1220 may include one or more computer-readable storage media, which may be non-transitory. Memory 1220 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices and flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in memory 1220 is used to store a computer program, which is configured to be executed by one or more processors to implement the above-mentioned traffic transmission path planning method.

[0118] Those skilled in the art will appreciate that the structure shown in FIG12 does not limit the computer device 1200 , and may include more or fewer components than shown, or combine certain components, or adopt a different component arrangement.

[0119] In some embodiments, a computer-readable storage medium is further provided, wherein the storage medium stores a computer program, and the computer program is loaded and executed by a processor to implement the above-mentioned method for planning a traffic transmission path.

[0120] Optionally, the computer-readable storage medium may include: ROM (Read-Only Memory), RAM (Random-Access Memory), SSD (Solid State Drives), or an optical disk, etc. Among them, the random access memory may include ReRAM (Resistance Random Access Memory) and DRAM (Dynamic Random Access Memory).

[0121] In some embodiments, a computer program product is also provided, which includes a computer program stored in a computer-readable storage medium, and a processor reads and executes the computer program from the computer-readable storage medium to implement the above-mentioned traffic transmission path planning method.

[0122] It should be understood that the "multiple" mentioned in this article refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent three situations: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the previous and subsequent associated objects are in an "or" relationship. In addition, the step numbers described in this article only illustrate a possible execution sequence between the steps. In some other embodiments, the above steps may not be executed in the order of the numbers, such as two steps with different numbers are executed at the same time, or two steps with different numbers are executed in the opposite order to the diagram. The embodiments of the present application do not limit this.

[0123] The above description is merely an exemplary embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.

Claims

1. A method for planning a traffic transmission path, executed by a computer device, the method comprising: Determine the access layer switch LA groups to which each of the N task devices belongs, where each LA group includes at least one of the task devices and an LA connected to at least one of the task devices, the N task devices belong to at least two LA groups, the N task devices jointly execute the same task, and N is an integer greater than 1; According to the LA groups to which the N task devices belong, determine the communication traffic loop formed by the N task devices, where the communication traffic loop is a transmission path closed loop formed by the N task devices communicating with each other in sequence. In the communication traffic loop, the task devices belonging to the same LA group are connected in series for communication.

2. The method according to claim 1, wherein determining the LA groups to which the N task devices belong includes: Obtain the network segment information corresponding to each of the N task devices, where the network segment information corresponding to the task device is used to indicate the network address segment to which the task device belongs; According to the network segment information corresponding to each of the N task devices, determine the LA groups to which the N task devices belong, where the task devices belonging to the same network address segment are divided into the same LA group, and the task devices belonging to different network address segments are divided into different LA groups.

3. The method according to claim 2, wherein obtaining the network segment information corresponding to each of the N task devices includes: For each of the N task devices, by calling a communication library, obtain the network segment information corresponding to the network card of the task device as the network segment information corresponding to the task device; Wherein, the network card of the task device is a hardware interface for the task device to communicate with an external network or other devices, and the communication library is used to provide functions and interfaces related to network communication.

4. The method according to claim 3, wherein by calling a communication library, obtaining the network segment information corresponding to the network card of the task device as the network segment information corresponding to the task device includes: According to the configuration parameters of the communication library, obtain the network segment information corresponding to the first network card of the task device as the network segment information corresponding to the task device; Wherein, the first network card of the task device is one of the multiple network cards of the task device, and the configuration parameters are used to indicate the first network card among the multiple network cards.

5. The method according to any one of claims 1 to 4, wherein determining the LA groups to which the N task devices belong includes: Obtain the hash values corresponding to each of the N task devices, where the hash value corresponding to the task device is determined according to the identification information of the task device by a hash algorithm; According to the hash values corresponding to each of the N task devices, determine the LA groups to which the N task devices belong, where the task devices corresponding to the same hash value are divided into the same LA group, and the task devices corresponding to different hash values are divided into different LA groups.

6. The method according to claim 5, wherein the obtaining of the hash values respectively corresponding to the N task devices comprises: For each of the N task devices, obtaining, through a communication thread of a communication library, the hash value corresponding to the task device from a controller; wherein the controller is used for managing and scheduling communication information of the N task devices, and the communication library is used for providing functions and interfaces related to network communication.

7. The method according to any one of claims 1 to 6, wherein the determining of the communication traffic loop formed by the N task devices according to the LA groups to which the N task devices respectively belong comprises: According to the LA groups to which the N task devices respectively belong, dividing the task devices belonging to the same LA group into the same task device group, and dividing the task devices belonging to different LA groups into different task device groups, to obtain M groups of task devices, where M is an integer greater than 1; For each group of task devices among the M groups of task devices, connecting the respective task devices included therein in series for communication, to obtain a task device chain; Connecting the M task device chains in series for communication in sequence, to obtain the communication traffic loop.

8. A device for planning a traffic transmission path, the device comprising: a determining module, configured to determine the access layer switch LA groups to which N task devices respectively belong, wherein each LA group includes at least one of the task devices and an LA connected to at least one of the task devices, the N task devices belong to at least two LA groups, the N task devices jointly execute the same task, and N is an integer greater than 1; a obtaining module, configured to determine the communication traffic loop formed by the N task devices according to the LA groups to which the N task devices respectively belong, wherein the communication traffic loop is a closed-loop transmission path formed by connecting the N task devices in series for communication in sequence, and in the communication traffic loop, the respective task devices belonging to the same LA group are connected in series for communication.

9. A computer device, the computer device comprising a processor and a memory, wherein a computer program is stored in the memory, and the computer program is loaded and executed by the processor to implement the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and the computer program is loaded and executed by a processor to implement the method according to any one of claims 1 to 7.

11. A computer program product, the computer program product comprising a computer program, the computer program being stored in a computer-readable storage medium, and a processor reads and executes the computer program from the computer-readable storage medium to implement the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Cooperative training method and device based on intelligent computing network, terminal and storage medium

    CN115297008A

  • Flow transmission path planning method and device, equipment and storage medium

    CN118612131A