Data processing method and apparatus, and network device
By dividing computing priority and storage priority ports in HPC network equipment, and using port type selection information and virtual queue policies, the impact of storage IO traffic on computing performance in HPC scenarios is solved, and traffic isolation and performance improvement are achieved.
Patent Information
- Application Number
- PCT/CN2024/089584
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-27
- Filing Date
- 2024-04-24
- Publication Date
- 2024-10-31
AI Technical Summary
In high-performance computing (HPC) scenarios, the bursty and periodic characteristics of storage IO lead to network congestion and affect the communication performance of computing tasks. It is difficult for existing technology to make reasonable scheduling between computing traffic and storage IO traffic, resulting in Performance degrades.
By dividing the computing priority port and the storage priority port in the network device, and carrying the port type selection information in the packet, querying and forwarding the packet according to the routing table, avoiding the collision of storage IO traffic and computing traffic, using virtual queues and port priorities Strategies to achieve traffic isolation and optimized forwarding.
Without increasing costs, it solves the performance impact caused by burst storage IO traffic, and is suitable for combination solutions of different application types, improving network utilization and forwarding efficiency, and avoiding traffic collisions and performance degradation.
Smart Images

Figure CN2024089584_31102024_PF_FP_ABST
Abstract
Description
Data processing method, device and network equipment
[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on April 27, 2023, with application number 202310481500.0 and application name “A Data Processing Method, Apparatus and Network Equipment”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of information technology (IT), and in particular to a data processing method, apparatus, and network equipment. Background Art
[0003] In the field of supercomputers (abbreviated as "supercomputers"), as cluster size and the amount of computing data increase, storage input / output (IO) is becoming an increasingly critical factor in the performance of high-performance computing (HPC) systems. Generally speaking, storage IO in HPC scenarios often exhibits both bursty and periodic characteristics. Burstiness refers to the generation of large amounts of IO in a short period of time, primarily occurring during application startup and shutdown, and checkpoints, when a large number of file read and write operations occur. Periodicity refers to the periodicity of storage IO. This is because HPC businesses often set fixed data storage and checkpoint periods. This period is the period during which compute nodes read and write to backend storage.
[0004] Currently, in HPC scenarios, periodic and bursty storage I / O often generates a large amount of read and write request traffic on the network, which can easily cause congestion on the network, affecting the communication performance of other computing tasks. Therefore, how to properly schedule computing traffic and storage I / O traffic to ensure that neither affects performance is a pressing technical issue.
[0005] Summary of the Invention
[0006] The present application provides a data processing method, apparatus, network device, device, computer storage medium and computer product, which can realize the reasonable scheduling of computing traffic and storage IO traffic.
[0007] In a first aspect, the present application provides a data processing method that can be applied to a network device. The network device may be, but is not limited to, a switch. Exemplarily, the network device may include: at least one first port and at least one second port. The first port is configured to prioritize forwarding data related to computing services. The second port is configured to prioritize forwarding data related to storage I / O services.
[0008] The method may include: obtaining a first message sent by a first node, the first message carrying port type selection information, the port type selection information being used to indicate the type of a port for forwarding the first message; obtaining a target port from a routing table based on the port type selection information; and forwarding the first message using the target port.
[0009] In this way, when a network device forwards a message transmitted by a node, it can select the port type information carried in the message, query the port used to forward the message from its routing table, and use this port to forward the message. This allows different messages to be forwarded using different types of ports. When computing traffic and storage IO traffic arrive at the network device at the same time, the network device can select the corresponding port to forward the traffic, avoiding the collision of storage IO traffic with computing traffic. This solves the performance impact caused by storage IO traffic bursts without increasing costs, and is suitable for different application types.
[0010] In one possible implementation, the data carried in the first message is related to computing services. In this case, the port type selection information indicates that a computing-prioritized port is selected, which is used to preferentially forward data related to computing services. Thus, when the data carried in the first message is related to computing services, only ports that prioritize forwarding computing-related data can be used to forward the message, thereby preventing the traffic for forwarding the message from colliding with storage I / O traffic.
[0011] In one possible implementation, the data carried in the first message is related to the computing business. In this case, the port type selection information is: select a computing-priority port, and when the computing-priority port is congested, select an idle storage-priority port, and the storage-priority port is used to give priority to forwarding data related to the storage IO business. In this way, when the data carried in the first message is related to the computing business, you can first select from the ports that give priority to forwarding data related to the computing business. When these ports are all busy, you can choose to give priority to forwarding data related to the storage IO business to forward the message, thereby avoiding the traffic when forwarding the message from colliding with the storage IO traffic, while improving the forwarding efficiency of the message.
[0012] In one possible implementation, the data carried in the first message is related to storage I / O services. In this case, the port type selection information indicates that a storage-priority port is selected, which is used to preferentially forward data related to storage I / O services. Thus, when the data carried in the first message is related to storage I / O services, only ports that prioritize forwarding data related to storage I / O services can be used to forward the message, thereby preventing the traffic for forwarding the message from colliding with computing traffic.
[0013] In one possible implementation, the data carried in the first message is related to the storage IO service. In this case, the port type selection information is: select a storage priority port, and when the storage priority port is congested, select to use an idle computing priority port, and the computing priority port is used to give priority to forwarding data related to the computing service. In this way, when the data carried in the first message is related to the storage IO service, you can first select from the ports that give priority to forwarding data related to the storage IO service. When these ports are all busy, you can choose to give priority to forwarding data related to the computing service to forward the message, thereby avoiding the traffic when forwarding the message and the computing traffic from colliding with each other, while improving the forwarding efficiency of the message.
[0014] In a second aspect, the present application provides a data processing method that can be applied to a first node. The method can include: sending a first message to a network device, the first message carrying port type selection information, the port type selection information being used to indicate the type of a port that forwards the first message.
[0015] In a possible implementation, the data carried in the first message is related to computing services, and the port type selection information is: selecting a computing-priority port, which is used to preferentially forward data related to computing services.
[0016] In one possible implementation, the data carried in the first message is related to the computing service, and the port type selection information is: select a computing-priority port, and when the computing-priority port is congested, select an idle storage-priority port. The storage-priority port is used to preferentially forward data related to the storage IO service.
[0017] In a possible implementation, the data carried in the first message is related to the storage IO service, and the port type selection information is: selecting a storage-priority port, which is used to preferentially forward data related to the storage IO service.
[0018] In one possible implementation, the data carried in the first message is related to the storage IO service, and the port type selection information is: select a storage priority port, and when the storage priority port is congested, select an idle computing priority port. The computing priority port is used to preferentially forward data related to the computing service.
[0019] In a possible implementation, the port type selection information is determined based on a service type of data carried in the first message.
[0020] In a third aspect, the present application provides a data processing device, deployed on a network device, comprising: a communication module and a processing module. The communication module is configured to obtain a first message sent by a first node, the first message carrying port type selection information indicating the type of port forwarding the first message. The processing module is configured to query a routing table for a target port based on the port type selection information. The communication module is further configured to forward the first message using the target port.
[0021] In a possible implementation, the data carried in the first message is related to computing services. In this case, the port type selection information is: selecting a computing-priority port, which is used to preferentially forward data related to computing services.
[0022] In one possible implementation, the data carried in the first message is related to computing services. In this case, the port type selection information is as follows: a computing-priority port is selected, and when the computing-priority port is congested, an idle storage-priority port is used. The storage-priority port is used to preferentially forward data related to storage IO services.
[0023] In a possible implementation, the data carried in the first message is related to storage IO services. In this case, the port type selection information is: selecting a storage-priority port, which is used to preferentially forward data related to storage IO services.
[0024] In one possible implementation, the data carried in the first message is related to storage I / O services. In this case, the port type selection information is as follows: a storage-priority port is selected, and when the storage-priority port is congested, an idle computing-priority port is used. The computing-priority port is used to preferentially forward data related to computing services.
[0025] In a fourth aspect, the present application provides a data processing device, deployed at a first node, comprising: a communication module, configured to send a first message to a network device, the first message carrying a port priority, the port priority being used to indicate a type of port forwarding the first message.
[0026] In a possible implementation, the data carried in the first message is related to computing services, and the port type selection information is: selecting a computing-priority port, which is used to preferentially forward data related to computing services.
[0027] In one possible implementation, the data carried in the first message is related to the computing service, and the port type selection information is: select a computing-priority port, and when the computing-priority port is congested, select an idle storage-priority port. The storage-priority port is used to preferentially forward data related to the storage IO service.
[0028] In a possible implementation, the data carried in the first message is related to the storage IO service, and the port type selection information is: selecting a storage-priority port, which is used to preferentially forward data related to the storage IO service.
[0029] In one possible implementation, the data carried in the first message is related to the storage IO service, and the port type selection information is: select a storage priority port, and when the storage priority port is congested, select an idle computing priority port. The computing priority port is used to preferentially forward data related to the computing service.
[0030] In a possible implementation, the port type selection information is determined based on a service type of data carried in the first message.
[0031] In a fifth aspect, the present application provides a network device comprising: at least one first port and at least one second port. The first port is configured to preferentially forward data related to computing services. The second port is configured to preferentially forward data related to storage IO services.
[0032] In a sixth aspect, the present application provides a device comprising: at least one memory for storing programs; and at least one processor for executing the programs stored in the memory; wherein, when the program stored in the memory is executed, the processor is used to execute the method described in the first aspect or any possible implementation of the first aspect, or to execute the method described in the second aspect or any possible implementation of the second aspect.
[0033] In the seventh aspect, the present application provides a computer-readable storage medium, which stores a computer program. When the computer program runs on a processor, the processor executes the method described in the first aspect or any possible implementation of the first aspect, or executes the method described in the second aspect or any possible implementation of the second aspect.
[0034] In an eighth aspect, the present application provides a computer program product, which, when the computer program product runs on a processor, enables the processor to execute the method described in the first aspect or any possible implementation of the first aspect, or to execute the method described in the second aspect or any possible implementation of the second aspect.
[0035] It can be understood that the beneficial effects of the second to eighth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] The following is a brief introduction to the drawings required for describing the embodiments or prior art.
[0037] FIG1 is a schematic diagram of data forwarding in a Spine-Leaf-Tor architecture provided by an embodiment of the present application;
[0038] FIG2 is a schematic diagram of the structure of a message provided in an embodiment of the present application;
[0039] FIG3 is a schematic diagram of a software architecture of a terminal device provided in an embodiment of the present application;
[0040] FIG4 is a schematic diagram of a message encapsulation and sending process of different traffic flows in a terminal device according to an embodiment of the present application;
[0041] FIG5 is a flow chart of a data processing method provided in an embodiment of the present application;
[0042] FIG6 is a schematic structural diagram of a data processing device provided in an embodiment of the present application;
[0043] FIG7 is a schematic structural diagram of a device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0044] The term "and / or" as used herein describes an association between related objects, indicating that three possible relationships exist. For example, "A and / or B" can represent: A exists alone, A and B exist simultaneously, or B exists alone. The symbol " / " as used herein indicates that the related objects are in an "or" relationship, for example, A / B means either A or B.
[0045] The terms "first" and "second" in this specification and claims are used to distinguish different objects rather than to describe a specific order of objects. For example, "first response message" and "second response message" are used to distinguish different response messages rather than to describe a specific order of response messages.
[0046] In the embodiments of this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of this application should not be interpreted as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.
[0047] In the description of the embodiments of the present application, unless otherwise specified, "multiple" means two or more, for example, multiple processing units means two or more processing units, etc.; multiple elements means two or more elements, etc.
[0048] Generally, in HPC scenarios, to address the impact of sudden storage IO traffic on computing performance, computing and storage can be completely separated and networked so that they do not affect each other. However, this approach often requires a considerable increase in cluster construction costs, and has a low cost-performance ratio. Alternatively, a small number of solid-state drives (SSDs) can be added near the computing side to cache traffic, changing the storage IO to the network from sudden large-scale traffic to continuous and stable small traffic to reduce network pressure. However, this approach requires additional storage caching costs, which will also increase cluster construction costs.
[0049] To minimize cluster construction costs, multiple virtual queues can be set up on network ports (e.g., ports on switches and / or network adapters). This allows storage I / O traffic and computing traffic to be forwarded through different virtual queues on the network port. Furthermore, virtual queue weights can be set on the network port. For example, the virtual queue for computing traffic can have a weight of 80%, while the virtual queue for storage I / O traffic can have a weight of 20%. Subsequently, when forwarding traffic through the network port, computing traffic and storage I / O traffic can be forwarded in a rationed manner according to the corresponding weights. While this approach controls computing and storage I / O traffic, preventing congestion caused by competition between them and effectively alleviating performance degradation caused by network congestion, it essentially limits the speed of storage I / O and computing traffic, which can still impact performance. Furthermore, once virtual queue weights are initially set, they often cannot be dynamically modified, making this approach difficult to adapt to all business scenarios. For example, computing traffic from compute-intensive applications has a significant impact on performance, while storage I / O traffic from I / O-intensive applications has a significant impact on performance. Fixed virtual queue weights can easily lead to a loss of balance between the two.
[0050] In view of this, the embodiments of this application provide a solution that addresses the performance impact caused by burst storage IO traffic without increasing costs and is applicable to a combination of different application types. This solution is mainly based on the traffic characteristics of HPC services. On the basis of virtual queue weight scheduling, a port priority strategy is added to isolate storage traffic and computing traffic at the port granularity, so that each does not affect performance.
[0051] HPC service traffic has the following characteristics:
[0052] (1) The bandwidth utilization rate of the entire HPC cluster network is not high. The network utilization rate of most clusters is within 40%. Therefore, during the actual operation of cluster services, there will be idle network ports.
[0053] (2) Both the computing traffic and storage IO traffic of HPC services are periodic. Computing traffic is generated after each computing iteration, while most storage IO traffic is generated when the application starts, stops, or performs a checkpoint.
[0054] Based on the traffic characteristics of the above-mentioned HPC business, the solution provided by the embodiment of the present application is mainly to avoid the collision of storage IO traffic and computing traffic when they are generated. This will not only solve the problem, but will also further improve the overall utilization of the network. The specific implementation method is: the types of network ports are divided into computing priority ports and storage priority ports, and the corresponding weights can be set within the ports according to, but not limited to, virtual queues. Storage IO traffic takes precedence over storage priority ports, and computing traffic takes precedence over computing priority ports. Exemplarily, computing priority ports can be used to prioritize forwarding data related to computing business; storage priority ports can be used to prioritize forwarding data related to storage IO business. Exemplarily, computing traffic can be understood as traffic when transmitting data related to computing business, and storage IO traffic can be understood as traffic when transmitting data related to storage IO business.
[0055] For example, taking the Spine-Leaf-Tor architecture as an example, as shown in Figure 1, the ports on the TOR switch are divided into computing priority ports and storage priority ports. In this way, when a node connected to the TOR switch generates computing traffic, the TOR switch can preferentially forward the computing traffic through its computing priority port. When a node connected to the TOR switch generates storage IO traffic, the TOR switch can preferentially forward the computing traffic through its storage priority port. In this way, different types of traffic are forwarded through different ports on the TOR switch, so that when computing traffic and storage IO traffic arrive at the TOR switch at the same time, the TOR switch can select the corresponding port to forward the traffic, thereby avoiding the collision of storage IO traffic with computing traffic when generated. This achieves a solution that solves the performance impact caused by storage IO traffic bursts without increasing costs and is applicable to different application types. For example, the TOR switch can also be replaced with other network devices with data forwarding capabilities, and the replacement solution is still within the scope of protection of this application. For example, the computing priority port can also be referred to as a "computing priority port" and the storage priority port can also be referred to as a "storage priority port."
[0056] In Figure 1, when compute node 1 generates storage IO traffic, this storage IO traffic can be forwarded to storage node 1 or 2 in other networks via Layer 3 forwarding. Specifically, the storage IO traffic generated by compute node 1 can be forwarded to Leaf 1 switch via the storage priority port on TOR 1 switch, then forwarded by Leaf 1 switch to the Spine switch, and finally forwarded by the Spine switch via Leaf 3 switch and TOR 3 switch to storage node 1 or 2. Of course, the storage IO traffic generated by compute node 1 can also be forwarded to compute nodes connected to other TOR switches in the same network as compute node 1 via Layer 2 forwarding. Specifically, the storage IO traffic generated by compute node 1 can be forwarded to Leaf 1 switch via the storage priority port on TOR 1 switch, then forwarded by Leaf 1 switch to TOR 2 switch via the computing priority port on TOR 2 switch, and finally forwarded by TOR 2 switch to the corresponding compute node.
[0057] When computing node 1 generates computing traffic, it can be forwarded via Layer 2 forwarding to computing nodes connected to other TOR switches in the same network as computing node 1. Specifically, the computing traffic generated by computing node 1 can be forwarded to Leaf 2 switch via the computing priority port on TOR 1 switch. Leaf 2 switch then forwards the traffic to TOR 2 switch via the computing priority port on TOR 2 switch. Finally, TOR 2 switch forwards the traffic to the corresponding computing node. Of course, computing traffic generated by computing node 1 can also be forwarded via Layer 3 forwarding to computing nodes connected to other TOR switches in different networks from computing node 1.
[0058] Furthermore, as shown in Figure 1, virtual queues can be configured on the ports of a TOR switch, and weights for each virtual queue can be set. For example, if a computing priority port has 90% computing traffic and 10% storage IO traffic, then 90% of computing traffic and 10% of storage IO traffic can be forwarded through that computing priority port. Of course, virtual queues can also be omitted, and a port can forward only one type of traffic. The specific weights can be determined based on actual conditions and are not limited here.
[0059] In this embodiment, to facilitate network devices such as switches (e.g., TOR switches) in identifying the type of traffic they need to forward, the end-side generating the traffic (e.g., a terminal device or server) can mark the port priority (i.e., port type selection information) in the messages it sends. In this way, after receiving the message sent by the end-side, the switch or other network device can parse the message and, based on the port priority marked in the message, identify the port that forwards the message. It can then forward the message through the port that matches the port priority in the message.
[0060] In some embodiments, because Layer 3 forwarding is generally used for data center network forwarding, Layer 3 forwarding switches only parse the Layer 3 packet header (the network layer header in the Ethernet protocol). For compatibility reasons, it is more appropriate to place the port priority mark in the Layer 3 packet header. The port priority is used in conjunction with the priority of multiple virtual queues, and the virtual queue priority is set in the Differentiated Services Code Point (DSCP) field in the Type of Service (TOS) field of the network layer header. The DSCP field has a total of 6 bits and can set priorities for up to 64 queues. However, considering the forwarding overhead of queue polling during the forwarding process, the number of virtual queues on a port generally does not exceed 16, and most are set to 8. Therefore, the upper 2 bits of the DSCP field can be used as the port priority (PP) field, and 4 bits are reserved to support 16 virtual queues. Specifically, as shown in Figure 2, in this message, the DSCP field in the TOS field can be changed from 6 bits to 4 bits, and the remaining 2 bits can be used as the PP field. In Figure 2 , the VL field can be the version number and header length of the IP packet, the TL field can be the total length of the IP packet, the ID field can be an identifier, the Offset field can be a fragment offset, the TTL field can be a time to live, and the ECN field can be an explicit congestion notification. Of course, the packet shown in Figure 2 can also include other fields, such as the source IP address, destination IP address, data, etc., which are not detailed here. For example, the usage rules of the PP field can be shown in Table 1. In Table 1, when the PP field is 00, it indicates that the calculation priority port is selected for forwarding when forwarding the message; when the PP field is 01, it indicates that the calculation priority port is selected for forwarding when forwarding the message, but when the calculation priority port is congested, the idle storage priority port can be used for forwarding; when the PP field is 10, it indicates that the storage priority port is selected for forwarding when forwarding the message; when the PP field is 11, it indicates that the storage priority port is selected for forwarding when forwarding the message, but when the storage priority port is congested, the idle calculation priority port can be used for forwarding.
[0061] Table 1
[0062] In addition, the port priority marking method shown in Figure 2 is mainly for the Ethernet message format. In other message formats, such as messages compatible with protocols other than the Ethernet protocol, certain fields in these messages can also be used as PP fields. The specific method can be determined according to actual conditions and is not limited here.
[0063] From the above description, it can be seen that the port priority in this embodiment is mainly divided into: priority selection of ports for forwarding data related to computing services (i.e., computing priority), and priority selection of ports for forwarding data related to storage IO services (i.e., storage priority). When setting the port priority, in order not to affect the user application on the end side, you can choose to set the computing priority tag and the storage priority tag in the computing communication library and storage client on the end side respectively. In some embodiments, the software architecture of the end-side device can be as shown in Figure 3. In Figure 3, the system of the end-side device is divided into four layers: application layer, software layer, driver layer and hardware layer.
[0064] The application layer mainly includes a series of HPC applications.
[0065] The software layer mainly provides application programming interfaces (APIs) and programming frameworks for application programs in the application layer. The software layer can include some predefined functions. As shown in Figure 3, the software layer can include a computing communication library, a storage client, and a file system. The computing communication library is mainly used to provide a message passing interface (MPI) for HPC applications. The storage client is mainly used to provide an access interface for HPC applications to access the back-end storage cluster. The file system is a method of storing and organizing computer data, which makes it easy to access and search for it. Among them, the software organization in the operating system of the end-side device that is responsible for managing and storing file information is called a file management system, or "file system" for short.
[0066] The driver layer primarily provides the drivers required for end-side devices to send data. As shown in Figure 3, the driver layer may include the Open Fabrics Enterprise Distribution (OFED). OFED can be a set of open-source software drivers, core kernel code, middleware, and user-level interface programs that support InfiniBand Fabric.
[0067] The hardware layer primarily provides the hardware required for end-side devices to send data. As shown in Figure 3, the hardware layer may include a network card.
[0068] In the software architecture shown in Figure 3, when an HPC application needs to transmit data, the client-side device can set the compute priority flag and the storage priority flag in the compute communication library and storage client, respectively, through configuration files or environment variables. After setting the flags, the compute communication library and storage client can send the information to OFED. OFED then sends it to the network interface card (NIC), which encapsulates the relevant settings into a message and sends it to a network device such as a switch. Specifically, as shown in Figure 4, when an HPC application needs compute communication, it can call MPI in the compute communication library. The library can then set port priorities based on the size of the compute flow. For example, when the compute flow exceeds a preset flow threshold, the port priority can be set to forward only from the compute priority port. Alternatively, when the compute flow is less than or equal to the preset flow threshold, the port priority can be set to forward only from the compute priority port. If all compute priority ports are congested and the storage priority port is idle, forwarding is performed through the storage priority port. After setting the port priority, the compute communication library can send the message data and port priority to OFED. The OFED can then send both the message data and port priority to the NIC. After receiving the message data and the port priority, the network card may encapsulate the message data and the port priority in a message, and send the message to the switch, so that the switch forwards the message.
[0069] Continuing with Figure 4, when an HPC application needs to perform storage I / O reads and writes, it can read data from the file system by calling the I / O library in the storage client. The storage client can then set port priorities based on the size of the storage flow. For example, when the storage I / O traffic exceeds a preset threshold, the port priority can be set to forward traffic only from the storage priority port. Alternatively, when the storage I / O traffic is less than or equal to the preset threshold, the port priority can be set to forward traffic only from the storage priority port. If all storage priority ports are congested and the computing priority port is idle, traffic is forwarded from the computing priority port. After setting the port priority, the storage client can send the message data and port priority to the OFED. The OFED can then send both the message data and port priority to the network interface card (NIC). Upon receiving the message data and port priority, the NIC can encapsulate both data and port priority into a packet and send the packet to the switch for forwarding. Furthermore, if a virtual queue is configured on the NIC port, the NIC can also forward packets based on the virtual queue's weight.
[0070] In this embodiment, after the end-side device sends a message containing a port priority to a network device such as a switch, the switch or other network device can parse the message. After parsing the message, the switch or other network device can query the egress port from its routing table based on the port priority and destination address in the message. The switch or other network device can then forward the message to the corresponding egress port queue. Finally, the corresponding egress port can forward the message according to a corresponding forwarding policy (e.g., calculate 95%, store 5%, or store 95%, calculate 5%, etc.).
[0071] For example, if a switch has two egress ports, and one egress port is used to prioritize forwarding computing traffic, and the other egress port is used to prioritize forwarding storage IO traffic, then when the switch parses the message and finds that the port priority in the message is a computing priority port, the switch can forward the message to the queue of the egress port used to forward computing traffic. Then, the egress port can forward the messages in the queue in sequence according to the message order in the queue. When the switch parses the message and finds that the port priority in the message is a storage priority port, the switch can forward the message to the queue of the egress port used to forward storage IO traffic. Then, the egress port can forward the messages in the queue in sequence according to the message order in the queue.
[0072] For network devices such as switches, the routing table inside them can be obtained through initialization calculation. Specifically, taking the switch as an example, the switch can set the traffic forwarding type of the ports on it automatically or based on the user's configuration. For example, a part of the ports are set to forward computing traffic, and another part of the ports are set to forward storage IO traffic. Among them, the proportion of ports with different traffic forwarding types can be determined according to actual conditions and is not limited here. After completing the forwarding type setting of the port, the switch can mark the traffic forwarding type of each port in its routing table. Finally, the switch can set a forwarding policy for the port. For example, when a virtual queue is set in a port, the weight of each virtual queue can be set. For example, the virtual queue used to forward computing traffic accounts for 95% (i.e., 95% for computing), and the virtual queue used to forward storage IO traffic accounts for 5% (i.e., 5% for storage).
[0073] The above is an introduction to the solution provided by the embodiment of the present application, which solves the performance impact caused by storage IO burst traffic without increasing costs and is applicable to combinations of different application types. Next, based on the above content, a data processing method provided by the embodiment of the present application is introduced.
[0074] For example, Figure 5 shows a flow chart of a data processing method provided by an embodiment of the present application. As shown in Figure 5, the method may include:
[0075] S501: A first node sends a first message to a network device. The first message carries port type selection information, where the port type selection information is used to indicate the type of a port for forwarding the first message.
[0076] In this embodiment, when the first node sends a message, it may include port type selection information in the message, indicating the type of port forwarding the first message. Exemplarily, this port type selection information may be the information shown in Table 1. Furthermore, this port type selection information may also be referred to as port priority. Exemplarily, the first node may be a mobile phone, a computer, a server, etc. The network device may be a switch, etc.
[0077] S502: The network device selects information according to the port type in the first message and obtains a target port from its routing table.
[0078] In this embodiment, after a network device receives a message sent by a node, since the message carries port type selection information, the network device can query its routing table to find a destination port specifically used to forward the message based on the port type selection information carried in the message. For example, when the port type selection information indicates that a computing-priority port is selected, the target port obtained by the network device through the query can be a port that preferentially forwards data related to computing services. When the port type selection information indicates that a storage-priority port is selected, the target port obtained by the network device through the query can be a port that preferentially forwards data related to storage IO services.
[0079] S503: The network device forwards the first message using the target port.
[0080] In this embodiment, after the network device finds the target port, it can use the target port to forward the first message.
[0081] In this way, by carrying port type selection information in the message, the network device can use different types of ports to forward different messages. Therefore, when computing traffic and storage IO traffic arrive at the network device at the same time, the network device can select the corresponding port to forward the traffic, avoiding the collision of storage IO traffic and computing traffic when it is generated. This solves the performance impact caused by storage IO burst traffic without increasing costs, and is suitable for combinations of different application types.
[0082] In some embodiments, the data carried in the first message is related to computing services. In this case, the port type selection information indicates that a computing-prioritized port is selected, which is used to preferentially forward data related to computing services. Thus, when the data carried in the first message is related to computing services, only ports that prioritize forwarding data related to computing services can be used to forward the message, thereby preventing the traffic from colliding with storage IO traffic when forwarding the message.
[0083] In some embodiments, the data carried in the first message is related to computing services. In this case, the port type selection information is: select a computing-priority port, and when the computing-priority port is congested, select an idle storage-priority port, and the storage-priority port is used to give priority to forwarding data related to storage IO services. In this way, when the data carried in the first message is related to computing services, you can first select from the ports that give priority to forwarding data related to computing services. When these ports are all busy, you can choose to give priority to forwarding data related to storage IO services to forward the message, thereby avoiding the traffic when forwarding the message from colliding with the storage IO traffic, while improving the forwarding efficiency of the message.
[0084] In some embodiments, the data carried in the first message is related to storage IO services. In this case, the port type selection information is to select a storage-priority port, which is used to preferentially forward data related to storage IO services. Thus, when the data carried in the first message is related to storage IO services, only the ports that prioritize forwarding data related to storage IO services can be used to forward the message, thereby avoiding collision between the traffic of the forwarded message and the computing traffic.
[0085] In some embodiments, the data carried in the first message is related to the storage IO service. In this case, the port type selection information is: select a storage priority port, and when the storage priority port is congested, select to use an idle computing priority port, and the computing priority port is used to give priority to forwarding data related to the computing service. In this way, when the data carried in the first message is related to the storage IO service, you can first select from the ports that give priority to forwarding data related to the storage IO service. When these ports are all busy, you can choose to give priority to forwarding data related to the computing service to forward the message, thereby avoiding the traffic when forwarding the message and the computing traffic from colliding with each other, while improving the forwarding efficiency of the message.
[0086] In some embodiments, the port type selection information carried in the first message may be determined based on the service type of the data carried in the first message. For example, when the service type of the data carried in the first message is computing service, the port type selection information may include: selecting a port that prioritizes computing. When the service type of the data carried in the first message is storage IO service, the port type selection information may include: selecting a port that prioritizes storage.
[0087] The above is an introduction to the data processing method provided in the embodiment of the present application. Next, based on the method in the above embodiment, a data processing device provided in the embodiment of the present application is introduced.
[0088] Illustratively, FIG6 shows a schematic structural diagram of a data processing device provided in an embodiment of the present application. The data processing device can be deployed in the aforementioned network device. As shown in FIG6 , the data processing device 600 may include: a communication module 601 and a processing module 602. Among them, the communication module 601 is used to obtain a first message sent by a first node, and the first message carries port type selection information, and the port type selection information is used to indicate the type of port for forwarding the first message. The processing module 602 is used to query and obtain a target port from a routing table according to the port type selection information. The communication module 601 is also used to forward the first message using the target port.
[0089] In some embodiments, the data carried in the first message is related to computing services. In this case, the port type selection information is: selecting a computing-priority port, which is used to preferentially forward data related to computing services.
[0090] In some embodiments, the data carried in the first message is related to computing services. In this case, the port type selection information is as follows: a computing-priority port is selected, and when the computing-priority port is congested, an idle storage-priority port is selected for use. The storage-priority port is used to preferentially forward data related to storage IO services.
[0091] In some embodiments, the data carried in the first message is related to storage IO services. In this case, the port type selection information is: selecting a storage-priority port, which is used to preferentially forward data related to storage IO services.
[0092] In some embodiments, the data carried in the first message is related to storage IO services. In this case, the port type selection information is as follows: a storage-priority port is selected, and when the storage-priority port is congested, an idle computing-priority port is selected for use. The computing-priority port is used to preferentially forward data related to computing services.
[0093] It should be understood that the above-mentioned device is used to execute the method in the above-mentioned embodiment. The implementation principle and technical effect of the corresponding program module in the device are similar to those described in the above-mentioned method. The working process of the device can refer to the corresponding process in the above-mentioned method and will not be repeated here.
[0094] In addition, embodiments of the present application also provide another data processing device that can be deployed on the aforementioned first node. The data processing device may include a communication module. The communication module may be configured to send a first message to a network device, the first message carrying a port priority, the port priority being used to indicate the type of port forwarding the first message.
[0095] In some embodiments, the data carried in the first message is related to computing services, and the port type selection information is: selecting a computing-priority port, which is used to preferentially forward data related to computing services.
[0096] In some embodiments, the data carried in the first message is related to computing services, and the port type selection information is: select a computing priority port, and when the computing priority port is congested, select an idle storage priority port. The storage priority port is used to preferentially forward data related to storage IO services.
[0097] In some embodiments, the data carried in the first message is related to storage IO services, and the port type selection information is: selecting a storage-priority port, which is used to preferentially forward data related to storage IO services.
[0098] In some embodiments, the data carried in the first message is related to storage IO services, and the port type selection information is: select a storage priority port, and when the storage priority port is congested, select an idle computing priority port, and the computing priority port is used to preferentially forward data related to the computing service.
[0099] In some embodiments, the port type selection information is determined based on a service type of data carried in the first message.
[0100] It should be understood that the above-mentioned device is used to execute the method in the above-mentioned embodiment. The implementation principle and technical effect of the corresponding program module in the device are similar to those described in the above-mentioned method. The working process of the device can refer to the corresponding process in the above-mentioned method and will not be repeated here.
[0101] Based on the methods in the above embodiments, embodiments of the present application further provide a device 700. As shown in Figure 7, device 700 includes a bus 702, a processor 704, a memory 706, and a communication interface 708. Processor 704, memory 706, and communication interface 708 communicate with each other via bus 702. Device 700 may be, but is not limited to, the first node or network device described above. It should be understood that this application does not limit the number of processors and memories in device 700.
[0102] Bus 702 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, among others. Buses may be classified as address buses, data buses, control buses, and the like. For ease of illustration, FIG7 shows a single bus line, but this does not imply a single bus or type of bus. Bus 704 may include a path for transmitting information between various components of device 700 (e.g., memory 706, processor 704, and communication interface 708).
[0103] The processor 704 may include any one or more processors such as a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).
[0104] The memory 706 may include volatile memory, such as random access memory (RAM). The processor 704 may also include non-volatile memory, such as read-only memory (ROM), flash memory, hard disk drive (HDD), or solid state drive (SSD).
[0105] Memory 706 stores executable program code, which processor 704 executes to implement the functions of the various modules in the aforementioned data processing device, thereby performing all or part of the steps of the method in the above-described embodiment. In other words, memory 706 stores instructions for executing all or part of the steps of the method in the above-described embodiment.
[0106] Alternatively, the memory 706 stores executable code, and the processor 704 executes the executable code to respectively implement the functions of the data processing device described above, thereby implementing all or part of the steps in the above-described embodiment method. In other words, the memory 706 stores instructions for executing all or part of the steps in the above-described embodiment method.
[0107] The communication interface 703 uses a transceiver module such as, but not limited to, a network interface card or a transceiver to implement communication between the device 700 and other devices or a communication network.
[0108] Based on the method in the above embodiment, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program runs on a processor, the processor executes the method in the above embodiment.
[0109] Based on the method in the above embodiment, an embodiment of the present application provides a computer program product. When the computer program product runs on a processor, the processor executes the method in the above embodiment.
[0110] It should be understood that each step of the above method embodiment can be completed by a hardware-based logic circuit or a software-based instruction in a processor.
[0111] It is understood that the processor in the embodiments of the present application may be a central processing unit (CPU), or may be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. The general-purpose processor may be a microprocessor or any conventional processor.
[0112] The method steps in the embodiments of the present application can be implemented by hardware or by a processor executing software instructions. The software instructions can be composed of corresponding software modules, which can be stored in random access memory (RAM), flash memory, read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), registers, hard disks, mobile hard disks, CD-ROMs or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an ASIC.
[0113] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted via the computer-readable storage medium. The computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state drive (SSD)).
[0114] It will be understood that the various numerical numbers involved in the embodiments of the present application are merely distinctions for the convenience of description and are not intended to limit the scope of the embodiments of the present application.
Claims
1. A data processing method, It is characterized in that Applied to a network device, the method comprises: Acquire a first message sent by a first node, where the first message carries port type selection information, where the port type selection information is used to indicate a type of a port that forwards the first message; According to the port type selection information, query and obtain the target port from the routing table; The first message is forwarded using the target port.
2. The method according to claim 1, It is characterized in that The data carried in the first message is related to the computing service, and the port type selection information is: selecting a computing-priority port, and the computing-priority port is used to preferentially forward data related to the computing service; Alternatively, the port type selection information is: selecting a computing priority port, and when the computing priority port is congested, selecting to use an idle storage priority port, the storage priority port is used to preferentially forward data related to storage IO services.
3. The method according to claim 1, It is characterized in that The data carried in the first message is related to the storage IO service, and the port type selection information is: selecting a storage priority port, and the storage priority port is used to preferentially forward data related to the storage IO service; Alternatively, the port type selection information is: selecting a storage priority port, and when the storage priority port is congested, selecting to use an idle computing priority port, the computing priority port is used to preferentially forward data related to computing services.
4. A data processing method, It is characterized in that Applied to the first node, the method comprises: A first message is sent to a network device, wherein the first message carries port type selection information, where the port type selection information is used to indicate a type of a port that forwards the first message.
5. The method according to claim 4, It is characterized in that The data carried in the first message is related to the computing service, and the port type selection information is: selecting a computing-priority port, and the computing-priority port is used to preferentially forward data related to the computing service; Alternatively, the port type selection information is: selecting a computing priority port, and when the computing priority port is congested, selecting to use an idle storage priority port, the storage priority port is used to preferentially forward data related to storage IO services.
6. The method according to claim 4, It is characterized in that The data carried in the first message is related to storage IO services, and the port type selection information is: selecting a storage priority port, and the storage priority port is used to preferentially forward data related to the storage IO services; or, the port type selection information is: selecting a storage priority port, and when the storage priority port is congested, selecting to use an idle computing priority port, and the computing priority port is used to preferentially forward data related to the computing services.
7. The method according to any one of claims 4 to 6, It is characterized in that The port type selection information is determined based on the service type of data carried in the first message.
8. A data processing device, It is characterized in that Deployed on network devices, including: A communication module, used for acquiring a first message sent by a first node, wherein the first message carries port type selection information, and the port type selection information is used for indicating a type of a port for forwarding the first message; A processing module, configured to query and obtain a target port from a routing table according to the port type selection information; The communication module is further configured to forward the first message using the target port.
9. A data processing device, It is characterized in that Deployed on the first node, including: The communication module is used to send a first message to a network device, wherein the first message carries a port priority, and the port priority is used to indicate a category of a port that forwards the first message.
10. A network device, It is characterized in that include: at least one first port, the first port being configured to preferentially forward data related to computing services; At least one second port, wherein the second port is configured to preferentially forward data related to storage IO services.
11. A device, It is characterized in that include: at least one memory for storing a program; at least one processor, configured to execute the program stored in the memory; Wherein, when the program stored in the memory is executed, the processor is used to execute the method according to any one of claims 1-3, or to execute the method according to any one of claims 4-7.
12. A computer-readable storage medium storing a computer program, wherein when the computer program is executed on a processor, the processor executes the method according to any one of claims 1 to 3, or executes the method according to any one of claims 4 to 7.
13. A computer program product, It is characterized in that When the computer program product runs on a processor, the processor is enabled to execute the method according to any one of claims 1 to 3, or to execute the method according to any one of claims 4 to 7.
Citation Information
Patent Citations
System for providing both traditional and traffic engineering enabled services
CN101548511A
Method and system of broadband access
CN103067307A
Route generation method and device
CN103560956A
Method, device and apparatus for forwarding messages
CN104601483A
Distributed packet forwarding implementation method, implementation system and automated test method
CN109005080A
Cited By
Network card configuration method and device, computer equipment, readable storage medium and program product
CN119544498A
Management and control method and apparatus, and computing device and cluster
WO2026157167A1
