A message transmission method, system, switch, medium and product

By determining the transmission strategy based on the use of packet priority and network link bandwidth in the ECMP network, the problem of network link transmission of congestion packet loss is solved, and the reliability and security of transmission are improved.

CN118869576BActive Publication Date: 2025-01-24INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411347359.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-26
Publication Date
2025-01-24
Estimated Expiration
2044-09-26

AI Technical Summary

Technical Problem

In equivalent multipath (ECMP) networks, packet data is prone to congestion and packet loss during transmission of network links, resulting in reduced transmission reliability and security.

Method used

By obtaining the packet priority corresponding to the source routing node and the current bandwidth utilization of the network link, the priority of the network link is determined, and the packet transmission strategy is determined based on the actual flow of the packet and the network link priority to achieve Low-congestion path allocation for high-priority packets.

Benefits of technology

Effectively improved the reliability and security of the transmission of message data in the network link, avoiding the phenomenon of packaging, ensuring the timely transmission of high priority messages, and improving the overall performance of the network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118869576B_ABST
    Figure CN118869576B_ABST
Patent Text Reader

Abstract

The present invention discloses a message transmission method, system, switch, medium and product, and relates to the field of communication technology. According to the current bandwidth utilization of the network link, the remaining bandwidth utilization is determined, and then the network link priority is obtained by sorting the network link according to the current remaining bandwidth utilization. The network link priority is related to the path congestion degree. The higher the network link priority, the lower the path congestion. Based on the number of queues, the number of network links and the corresponding message priority and network link priority, the actual flow of the message is added, and the high-priority message is fully allocated to the path with lower congestion to avoid packet loss. At the same time, combined with the actual flow of the message, the allocation path is more accurate, and the reliability and security of the allocation path are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a message transmission method, system, switch, medium and product. Background Art

[0002] Equal-Cost Multipath Routing (ECMP) is a network routing technology that allows traffic to be distributed to multiple links with the same cost to reach the same destination address through a specific algorithm to achieve load balancing and improve network redundancy performance.

[0003] According to the ECMP rules, a link is selected to transmit data. When the link is not congested, the transmitted data packets can be forwarded to the destination address corresponding to the target routing node. If there is congestion, there is a possibility of packet loss. Since there is a corresponding priority setting for the message data, for the message data with a higher priority, when packet loss occurs, the corresponding data network will be affected, such as network oscillation, resulting in reduced transmission reliability and security of the message data in the network link.

[0004] Therefore, how to improve the transmission reliability and security of message data in network links is a technical problem that technical personnel in this field urgently need to solve. Summary of the invention

[0005] The purpose of the present invention is to provide a message transmission method, system, switch, medium and product to solve the problem of reduced transmission reliability and security caused by transmission congestion and packet loss of message data in network links.

[0006] In order to solve the above technical problems, the present invention provides a message transmission method based on a network link, which is applied to a switch, comprising:

[0007] Obtaining a message priority corresponding to a source routing node and a network link between the source routing node and a target routing node; wherein the number of network links is at least one;

[0008] Determine the corresponding current remaining bandwidth utilization according to the current bandwidth utilization of the network link, and determine the corresponding network link priority according to the current remaining bandwidth utilization;

[0009] The corresponding message transmission strategy is determined according to the number of queues participating in the message priority, the actual flow of the message and the number of links participating in the network link priority; and the message is transmitted to the target routing node through the link according to the determined message transmission strategy; wherein the actual flow of the message is determined by the message parameters corresponding to the source routing node.

[0010] On the one hand, the process of determining the current bandwidth utilization of the network link includes:

[0011] Obtaining the standard flow of messages per unit time and the port bandwidth of each network link; wherein the standard flow is the data volume of the network interface;

[0012] Determine the corresponding current bandwidth utilization according to the standard flow and the port bandwidth;

[0013] The process of determining the standard flow of messages per unit time includes:

[0014] Get the average and peak traffic of packets per unit time;

[0015] The standard flow is determined according to preset weights corresponding to the average flow and the peak flow.

[0016] On the other hand, determining the corresponding network link priority according to the current remaining bandwidth utilization includes:

[0017] Sorting the current remaining bandwidth utilization of each network link from large to small to determine the sorted current remaining bandwidth utilization of each network link;

[0018] The corresponding network link priority is determined according to the current remaining bandwidth utilization of each sorted network link.

[0019] On the other hand, the corresponding message transmission strategy is determined according to the number of queues participating in the message priority, the actual flow of the message, and the number of links participating in the network link priority, including:

[0020] Get the business scenario corresponding to the actual traffic of the message;

[0021] When the actual flow of the message is greater than the preset flow, the target service scenario to which the message priority belongs is determined according to the service scenario of the actual flow of the message in the queue participating in the message priority;

[0022] Determine whether the priority of the target service scenario is at the highest priority of the message priority;

[0023] If yes, determine the corresponding message transmission strategy according to the number of queues participating in the message priority and the number of links participating in the network link priority;

[0024] If not, the message priority corresponding to the target business scenario is set to the highest priority, and a new message priority is obtained; the corresponding message transmission strategy is determined according to the number of queues participating in the new message priority and the number of links participating in the network link priority.

[0025] On the other hand, the corresponding message transmission strategy is determined according to the number of queues participating in the new message priority and the number of links participating in the network link priority, including:

[0026] When the number of queues participating in the new message priority is greater than the number of links participating in the network link priority, the first N number of queues participating in the new message priority is intercepted according to the number of links participating in the network link priority; where N is a positive integer and is the same as the number of links;

[0027] Transmit the first N new message priorities according to the network link priority;

[0028] The remaining new message priorities are determined according to the number of the first N queues participating in the new message priority;

[0029] Determine whether each network link has completed the transmission of the first N new message priorities according to the watchdog mechanism;

[0030] If so, in the network link of the messages with the first N new message priorities, after completing the transmission, the messages corresponding to the remaining new message priorities are transmitted according to the remaining new message priorities to determine the message transmission strategy;

[0031] If not, return to the step of determining whether each network link has completed the transmission of the first N new message priorities according to the watchdog mechanism, until there is a network link that has completed the transmission of the first N new message priorities, so as to transmit the messages corresponding to the remaining new message priorities.

[0032] On the other hand, the corresponding message transmission strategy is determined according to the number of queues participating in the new message priority and the number of links participating in the network link priority, including:

[0033] When the number of queues participating in the new message priority is less than or equal to the number of links participating in the network link priority, the level order of the network link priority is matched one by one with the level order of the new message priority, and the message of the new message priority is transmitted on the network link of the corresponding network link priority.

[0034] On the other hand, when the number of queues participating in the new message priority is equal to the number of links participating in the network link priority, and the current remaining bandwidth utilization rate of the network link is 0, the corresponding message transmission strategy is determined according to the number of queues participating in the new message priority and the number of links participating in the network link priority, including:

[0035] Obtain new network links corresponding to other current remaining bandwidth utilizations except for the current remaining bandwidth utilization of 0 in the network links;

[0036] According to the number of links participating in the new network link priority, the first M number of queues participating in the new message priority are intercepted; where M is a positive integer and is the same as the number of links;

[0037] Transmit the first M new message priorities according to the new network link priority;

[0038] The remaining new message priorities are determined according to the number of the first M queues participating in the new message priority;

[0039] Determine whether each new network link has completed the transmission of the first M new message priorities according to the watchdog mechanism;

[0040] If so, after completing the transmission of the first M new message priorities, the messages corresponding to the remaining new message priorities are transmitted in the new network link according to the remaining new message priorities to determine the message transmission strategy;

[0041] If not, return to the step of determining whether each new network link has completed the transmission of the first M new message priorities according to the watchdog mechanism, until there is a network link that has completed the transmission of the first M new message priorities, so as to transmit the messages corresponding to the remaining new message priorities.

[0042] On the other hand, if a network link fails, the corresponding message transmission strategy is determined according to the number of queues participating in the new message priority and the number of links participating in the network link priority, including:

[0043] Removing a faulty network link from the links participating in the network link priority;

[0044] Determine a new network link priority according to the current remaining bandwidth utilization of the remaining network link after the removal, and return to the step of transmitting the first M new message priorities according to the new network link priority to determine the corresponding message transmission strategy.

[0045] On the other hand, if the faulty network link is repaired, the corresponding message transmission strategy is determined according to the number of queues participating in the new message priority and the number of links participating in the network link priority, including:

[0046] Obtain the current remaining bandwidth utilization of the faulty network link;

[0047] Determine a new network link priority according to the current remaining bandwidth utilization of the failed network link and the current remaining bandwidth utilization of the normally functioning network link;

[0048] The order of the new network link priorities is matched one by one with the order of the new message priorities, and the messages of the new message priorities are transmitted on the network links corresponding to the new network link priorities.

[0049] On the other hand, the corresponding message transmission strategy is determined according to the number of queues participating in the message priority, the actual flow of the message, and the number of links participating in the network link priority, including:

[0050] Determine a new network link priority according to the weight corresponding to the network link priority and the weight of the reference flow range corresponding to the actual flow of the message;

[0051] The corresponding message transmission strategy is determined according to the number of queues participating in the message priority and the number of links participating in the new network link priority.

[0052] On the other hand, a new network link priority is determined according to the weight corresponding to the network link priority and the weight of the reference flow range corresponding to the actual flow of the message, including:

[0053] Pre-establishing a mapping relationship between the network link priority and each first weight;

[0054] Obtaining the second weight corresponding to each reference flow range;

[0055] Screening the actual traffic of the message within each reference traffic range to determine the corresponding target reference traffic range and the corresponding target second weight;

[0056] Determine a third weight of the corresponding network link by adding the target second weight of the actual flow of the message to each first weight;

[0057] The new network link priority is determined according to the order of the third weights of the network links.

[0058] To solve the above technical problems, the present invention also provides a message transmission system based on a network link, comprising a switch, a source routing node and a target routing node;

[0059] A source routing node and a target routing node are connected by connecting multiple switches to form a corresponding network link;

[0060] Source routing node, used to send the message priority of each message;

[0061] A switch, configured to determine a corresponding current remaining bandwidth utilization rate according to a current bandwidth utilization rate of a network link, and determine a corresponding network link priority rate according to the current remaining bandwidth utilization rate; determine a corresponding message transmission strategy according to the number of queues participating in the message priority rate, the actual flow of the message, and the number of links participating in the network link priority rate; and perform link transmission on the message according to the determined message transmission strategy to send the message to a target routing node; wherein the actual flow of the message is determined by a message parameter corresponding to a source routing node;

[0062] The target routing node is used to receive the message sent by the switch.

[0063] In order to solve the above technical problems, the present invention further provides a switch, comprising:

[0064] Memory for storing computer programs;

[0065] A processor is used to implement the steps of the message transmission method based on the network link as described above when executing the computer program.

[0066] In order to solve the above technical problems, the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the message transmission method based on the network link as described above are implemented.

[0067] In order to solve the above technical problem, the present invention also provides a computer program product, including a computer program / instruction, which implements the steps of the above-mentioned network link-based message transmission method when executed by a processor.

[0068] The present invention provides a message transmission method based on network links, which is applied to a switch, and obtains the message priority corresponding to a source routing node and the network link between the source routing node and a target routing node; wherein the number of network links is at least one; the corresponding current remaining bandwidth utilization is determined according to the current bandwidth utilization of the network link, and the corresponding network link priority is determined according to the current remaining bandwidth utilization; the corresponding message transmission strategy is determined according to the number of queues participating in the message priority, the actual flow of the message and the number of links participating in the network link priority; and the message is transmitted to the target routing node through a link according to the determined message transmission strategy; wherein the actual flow of the message is determined by the message parameter corresponding to the source routing node.

[0069] The beneficial effect of the present invention is that the remaining bandwidth utilization is determined according to the current bandwidth utilization of the network link, and then the network link priority is obtained by sorting the network link according to the current remaining bandwidth utilization. The network link priority is related to the path congestion degree. The higher the network link priority, the lower the path congestion. Based on the number of queues, the number of network links, and the corresponding message priority and network link priority, the actual flow of the message is added, and the high-priority message is fully allocated to the path with lower congestion to avoid packet loss. At the same time, combined with the actual flow of the message, the allocation path is more accurate, and the reliability and security of the allocation path are improved.

[0070] Secondly, the determination process of standard traffic and the determination process of the current bandwidth utilization of the corresponding network link improves the accuracy and authority of bandwidth utilization to ensure efficient and stable operation of the network. Through the influence of the remaining bandwidth utilization on the priority of the network link, the effectiveness of allocating network resources is improved, and the overall performance of the network is improved. Based on the business scenario of actual traffic, the new message priority is re-determined so that the corresponding message transmission strategy can be determined according to the new message priority and the network link priority. The accuracy of message allocation is improved to avoid the delay and packet loss when forwarding high-priority messages. Based on the different size relationship between the number of queues participating in the new message priority and the number of links participating in the network link priority, different transmission strategies are determined according to the two priorities. In addition to ensuring the rationality of allocating high-priority messages to low-congestion paths, the diversity of transmitted messages is improved. When the number of queues is the same as the number of links, in the scenario where the current remaining bandwidth utilization of the network link is 0, the transmission delay of high-priority messages is guaranteed to be low and there is no packet loss, thereby improving the reliability of data transmission. In the scenario where a network link fails or is repaired, the corresponding transmission strategy needs to re-determine the new network link priority to ensure that the network link priority is updated in real time when the number of links in the network link changes, so as to facilitate the accuracy of subsequent message allocation and transmission, and improve the reliability of message transmission. This embodiment provides a comprehensive consideration of the actual flow of messages and the network link priority, and re-determines the new network link priority to determine the message transmission strategy, thereby ensuring the rationality of allocating high-priority messages to low-congestion paths and improving the diversity of transmitted messages.

[0071] In addition, the present invention also provides a network link-based message transmission system, a switch, a medium and a product, which have the same beneficial effects as the above-mentioned network link-based message transmission method. BRIEF DESCRIPTION OF THE DRAWINGS

[0072] In order to more clearly illustrate the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0073] Figure 1 A flowchart of a message transmission method based on a network link provided by an embodiment of the present invention;

[0074] Figure 2 A schematic diagram of a message transmission system based on a network link provided by an embodiment of the present invention;

[0075] Figure 3 A structural diagram of a message transmission device based on a network link provided in an embodiment of the present invention;

[0076] Figure 4 A structural diagram of a switch provided by an embodiment of the present invention;

[0077] Figure 5 A flowchart of another network link-based message transmission method provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0078] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0079] The core of the present invention is to provide a message transmission method, system, switch, medium and product to solve the problem of reduced transmission reliability and security caused by transmission congestion and packet loss of message data in network links.

[0080] In order to enable those skilled in the art to better understand the solution of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0081] As a data communication device, switches are widely used in the network. In order to improve network redundancy and reliability, and also to improve network resource utilization, switches usually introduce ECMP technology, that is, there are multiple paths with equal costs to the same destination address. When the device supports equal-cost routing, the three-layer forwarding traffic sent to the destination Internet Protocol (IP) or destination network segment can be shared through different paths to achieve load balancing of network links and achieve fast switching when a link fails.

[0082] Traditional ECMP technology is divided into flow-by-flow load balancing and packet-by-packet load balancing. Flow-by-flow load balancing means dividing packets into different flows according to certain rules, such as the five-tuple (source IP address, destination IP address, protocol number, source port number, destination port number). Packets of the same flow will be sent on the same link. Packet-by-packet load balancing means that when forwarding, packets are evenly distributed to each link participating in the load according to the order in which they arrive. Both methods select a path for forwarding based on the ECMP algorithm rules after the packet arrives at the outbound interface. If the path is not congested, all packets can be forwarded to the destination. However, if there is congestion and packet loss occurs, it cannot be guaranteed that all packets can reach the destination as expected.

[0083] Messages are sent according to their priority. For messages with lower priority or messages with low real-time requirements, the impact of packet loss is small. However, for high-priority messages, if packet loss occurs, network oscillation may occur. The traditional ECMP algorithm does not consider the priority of the message when allocating paths when the path is congested. It randomly allocates paths, and it is possible that higher-priority messages are allocated to a congested path link, and lower-priority messages are allocated to a non-congested path link. The actual business needs are not taken into account, resulting in reduced reliability and security of transmission. The message transmission method based on network links provided by the present invention can solve the above technical problems.

[0084] Figure 1 A flowchart of a message transmission method based on a network link provided by an embodiment of the present invention, such as Figure 1 As shown, the method is applied to a switch, comprising:

[0085] S11: Obtain the message priority corresponding to the source routing node and the network link between the source routing node and the target routing node;

[0086] Wherein, the number of network links is at least one;

[0087] S12: determining a corresponding current remaining bandwidth utilization rate according to the current bandwidth utilization rate of the network link, and determining a corresponding network link priority rate according to the current remaining bandwidth utilization rate;

[0088] S13: Determine a corresponding message transmission strategy according to the number of queues participating in the message priority, the actual flow of the message, and the number of links participating in the network link priority; and perform link transmission of the message to the target routing node according to the determined message transmission strategy;

[0089] The actual flow of the message is determined by the message parameters corresponding to the source routing node.

[0090] Specifically, the message priority is set based on the business scenario requirements, such as corresponding to real-time or business traffic corresponding to the business type. A high priority is set for a message with a higher real-time requirement, and a low priority is set for a message with a lower real-time requirement. For example, a business traffic with a voice or video conference type will be assigned a higher priority to ensure that the business traffic can pass through the network device first, reduce delays and improve communication quality. There is no limitation for specific business scenarios, and it can be set according to actual conditions.

[0091] The source routing node is a device that initiates network traffic, such as a computer, mobile device or other network terminal. It is usually a device that sends data packets and determines the initial transmission path of the data packet based on the routing table. The target routing node may be a routing table or routing server, which is responsible for storing and processing routing information. It is usually a router that executes routing decisions. Switches are usually used to achieve load balancing of traffic at the network access layer or aggregation layer. The network link between the source routing node and the target routing node is composed of switches. For example, there are multiple network links between the source routing node A and the target routing node C. Each network link corresponds to its own switch implementation. For example, there are five network links, each of which is B1, B2, B3, B4 and B5, which may involve 5 switches, corresponding to switches B1', B2', B3', B4' and B5' respectively. Of course, the switch here is only an example of one network link corresponding to one switch. In fact, it can include multiple switches, which is not limited here.

[0092] In this embodiment, the current remaining bandwidth utilization is determined according to the current bandwidth utilization of the network link. The current bandwidth utilization of the network link is the ratio of the amount of data transmitted by the link to the total bandwidth of the link within a specific time. For the flow of messages within a specific time, the bandwidth usage of the network link is mainly monitored regularly to understand which links are often in a high-load state and which links have low utilization rates. The corresponding flow data is comprehensively determined to calculate the current bandwidth utilization. The current remaining bandwidth utilization is determined according to the current bandwidth utilization, and 1-current bandwidth utilization = current remaining bandwidth utilization is adopted here.

[0093] In step S12, the network link priority is determined according to the current remaining bandwidth utilization. Here, the network link priority is determined based on the current remaining bandwidth utilization from high to low. The higher the current remaining bandwidth utilization, the more remaining bandwidth there is, and the lower the congestion of the corresponding network link.

[0094] The actual flow of the message in step S13 takes into account that the real-time flow of the message may be unrelated to the message priority. For example, the message priority is determined according to the real-time scenario of the message. The higher the real-time requirement, the higher the message priority corresponding to the message. At this time, the corresponding actual flow of the message is not necessarily the largest. Therefore, it is necessary to combine the real-time corresponding flow data of the actual flow of the message with the message priority, or combine it with the network link priority to determine the new message priority and the new network link priority. The actual flow of the message is determined by the message parameters corresponding to the source routing node, that is, the characteristics of the message itself, and has nothing to do with the business scenario, for example, the type of message, the size of the message, etc.

[0095] Determine a new message priority or a new network link priority based on the actual flow of the message, the message priority, and the network link priority. If the message priority is combined with the actual flow of the message to determine a new message priority, it is based on the fact that when the actual flow of the message exceeds a certain flow, it means that the actual flow of the message is large. At this time, the corresponding message priority is not necessarily a higher priority. If the message is transmitted with the current message priority, it will cause link congestion and delay in the path where the actual flow of the message is large. In addition, the business scenario corresponding to the actual flow of the message and the business scenario with the highest priority of the message, the business scenario corresponding to the actual flow of the currently transmitted message has higher actual business demand than the business demand corresponding to the pre-set highest priority of the message, so it is necessary to readjust the message priority here to determine a new message priority.

[0096] If the actual traffic of the message is combined with the network link priority to determine a new network link priority, the network link priority is determined only by considering the bandwidth utilization factor, but the actual traffic of the message is not combined, which easily ignores the transmission of large traffic data in the actual business scenario. In the case of large actual traffic, the corresponding business scenario does not completely match the actual traffic, so the network link priority corresponding to the large actual traffic may be lower, and then allocated to a more congested path. In order to implement a more complex load balancing strategy, this embodiment takes into account the actual traffic factor of the message, forms a new network link priority, and improves the accuracy of allocation and bandwidth utilization.

[0097] In this embodiment, there is no limitation on the adjustment strategy for adjusting the message priority strategy, and the strategy may be adjusted according to the weight, or may be adjusted directly according to the corresponding business scenario, etc.

[0098] The corresponding message transmission strategy is determined according to the new message priority, network link priority, the number of queues participating in the message priority, and the number of links participating in the network link priority. Here, it corresponds to the number of queues participating in the message priority and the number of links participating in the network link priority. This is mainly due to the fact that when the numbers do not correspond during the actual transmission process, the specific transmission strategies involved are different.

[0099] In this embodiment, the priority of the message is obtained based on the message being transmitted in the network, and the message will carry a field identifying the priority of the message into the switch. The switch will identify the priority of the message and enter the corresponding queue of the switch according to the priority of the message. For example, one port corresponds to 8 queues, and each queue corresponds to a message priority.

[0100] When the number of queues participating in the message priority is greater than the number of links participating in the network link priority, it means that there are more queues for the message priority, and the messages with higher priority need to be transmitted. When the number of queues participating in the message priority is equal to the number of links participating in the network link priority, one-to-one matching is implemented for transmission. When the number of queues participating in the message priority is less than the number of links participating in the network link priority, it means that there are fewer queues for the message priority, and the message needs to be transmitted according to the level of the message priority in the first few of the network link priority. According to the corresponding message transmission strategy, the message is transmitted to the target routing node through the link.

[0101] The embodiment of the present invention provides a message transmission method based on a network link, which is applied to a switch, and obtains the message priority corresponding to the source routing node and the network link between the source routing node and the target routing node; wherein the number of network links is at least one; the corresponding current remaining bandwidth utilization is determined according to the current bandwidth utilization of the network link, and the corresponding network link priority is determined according to the current remaining bandwidth utilization; the corresponding message transmission strategy is determined according to the number of queues participating in the message priority, the actual flow of the message and the number of links participating in the network link priority; and the message is transmitted to the target routing node through a link according to the determined message transmission strategy; wherein the actual flow of the message is determined by the message parameter corresponding to the source routing node. According to the current bandwidth utilization of the network link, the remaining bandwidth utilization is determined, and then the network links are sorted according to the current remaining bandwidth utilization to obtain the network link priority, and the network link priority is related to the path congestion degree. The higher the network link priority, the lower the path congestion. Based on the number of queues, the number of network links and the corresponding message priority and the network link priority, the actual flow of the message is added, and the high-priority message is fully allocated to the path with lower congestion to avoid packet loss. At the same time, combined with the actual traffic of the message, the allocation path is more accurate, improving the reliability and security of the allocation path.

[0102] In some embodiments, the process of determining the current bandwidth utilization of the network link includes:

[0103] Obtain the standard flow of messages per unit time and the port bandwidth of each network link; wherein the standard flow is the data volume of the network interface;

[0104] Determine the corresponding current bandwidth utilization based on the standard traffic and port bandwidth;

[0105] The process of determining the standard flow rate of messages per unit time includes:

[0106] Get the average and peak traffic of packets per unit time;

[0107] The standard flow rate is determined based on the preset weights corresponding to the average flow rate and the peak flow rate.

[0108] Specifically, the standard flow in this embodiment is a value set based on the number of bits of forwarded messages within a specific time and the flow obtained under the balance corresponding to different peak periods. It is not standard data determined by standard deviation, but is just a general term. Regarding the acquisition of standard flow, it can be directly obtained by the average value of the number of message bits within a specific time, or by data determined by a specific calculation method, etc., which is not limited here. The current bandwidth utilization of each network link is determined by dividing the standard flow with the port bandwidth of each network link.

[0109] For the process of determining standard traffic, message traffic is homogeneous, uneven, and diverse. Network traffic fluctuates based on factors such as user activity, application requirements, and network conditions. At the same time, it is unevenly distributed at different times and in different network segments. Network traffic has different traffic data for different types of data, such as web browsing, file transfer, video streaming, or email.

[0110] Therefore, the determination of the standard flow rate involves multiple factors. In this embodiment, the average flow rate and the peak flow rate are combined to determine the standard flow rate according to the corresponding preset weights. The weight ratio corresponding to the preset weights here is not limited and can be set according to actual conditions.

[0111] The process of determining the standard traffic and the process of determining the current bandwidth utilization of the corresponding network link provided in this embodiment improve the accuracy and authority of the bandwidth utilization to ensure efficient and stable operation of the network.

[0112] In some embodiments, determining the corresponding network link priority according to the current remaining bandwidth utilization includes:

[0113] Sorting the current remaining bandwidth utilization of each network link from large to small to determine the sorted current remaining bandwidth utilization of each network link;

[0114] The corresponding network link priority is determined according to the current remaining bandwidth utilization of each sorted network link.

[0115] It is understandable that a link with a higher remaining bandwidth utilization can process more traffic preferentially, thereby increasing its priority. Conversely, if the remaining bandwidth utilization of a link is low, it may mean that the link is already carrying a lot of traffic, so its priority may be lowered to avoid congestion and ensure the transmission quality of critical traffic. The determination of the network link priority is affected by the specific amount of the current remaining bandwidth utilization. The higher the current remaining bandwidth utilization, the higher the priority of the message. Therefore, the higher the current remaining bandwidth utilization, the higher the corresponding message priority. Therefore, the network link priority is based on the current remaining bandwidth utilization. The greater the network link priority, the higher its network link priority.

[0116] The determination of the network link priority is not always constant. The link load can be monitored in real time, and the network link priority can be re-determined based on different time intervals through dynamic adjustment strategies.

[0117] This embodiment provides an effect of the remaining bandwidth utilization on the priority of the network link, thereby improving the effectiveness of allocating network resources and improving the overall performance of the network.

[0118] In some embodiments, determining the corresponding message transmission strategy according to the number of queues participating in the message priority, the actual flow of the message, and the number of links participating in the network link priority in step S13 includes:

[0119] Get the business scenario corresponding to the actual traffic of the message;

[0120] When the actual traffic of the message is greater than the preset traffic, the target service scenario to which the message priority belongs is determined according to the service scenario of the actual traffic of the message in the queue participating in the message priority;

[0121] Determine whether the priority of the target service scenario is at the highest priority of the message priority;

[0122] If yes, determine the corresponding message transmission strategy according to the number of queues participating in the message priority and the number of links participating in the network link priority;

[0123] If not, the message priority corresponding to the target business scenario is set to the highest priority, and a new message priority is obtained; the corresponding message transmission strategy is determined according to the number of queues participating in the new message priority and the number of links participating in the network link priority.

[0124] Specifically, the business scenario corresponding to the actual flow of the message may not be the business scenario with the highest message priority in the business scenario of the message corresponding to the message priority. When the actual flow of the message is greater than the preset flow, it means that the business scenario corresponding to the current actual flow is more urgent. If the business scenario corresponding to the actual flow is not the highest priority in the business scenario of the message priority, it is necessary to adjust the pre-set message priority, adjust the message priority corresponding to the business scenario corresponding to the actual flow to the highest position as the highest message priority, and then determine the corresponding message transmission strategy based on the number of queues participating in the new message priority and the number of links participating in the network link priority.

[0125] If the business scenario corresponding to the actual traffic is under the business scenario of message priority, the corresponding message priority is the highest priority, and the corresponding message transmission strategy is determined based on the number of queues participating in the message priority and the number of links participating in the network link priority.

[0126] The service scenario provided in this embodiment based on actual traffic volume re-determines the new message priority so as to determine the corresponding message transmission strategy according to the new message priority and network link priority, thereby improving the accuracy of message allocation and avoiding delay and packet loss when forwarding high-priority messages.

[0127] In some embodiments, determining a corresponding message transmission strategy according to the number of queues participating in the new message priority and the number of links participating in the network link priority includes:

[0128] When the number of queues participating in the new message priority is greater than the number of links participating in the network link priority, the first N number of queues participating in the new message priority is intercepted according to the number of links participating in the network link priority; where N is a positive integer and is the same as the number of links;

[0129] Transmit the first N new message priorities according to the network link priority;

[0130] The remaining new message priorities are determined according to the number of the first N queues participating in the new message priority;

[0131] Determine whether each network link has completed the transmission of the first N new message priorities according to the watchdog mechanism;

[0132] If so, in the network link of the messages with the first N new message priorities, after completing the transmission, the messages corresponding to the remaining new message priorities are transmitted according to the remaining new message priorities to determine the message transmission strategy;

[0133] If not, return to the step of determining whether each network link has completed transmission of the first N new message priorities according to the watchdog mechanism, until there is a network link that has completed transmission of the first N new message priorities, so as to transmit the messages corresponding to the remaining new message priorities.

[0134] Specifically, if the number of queues of the new message priority is greater than the number of links participating in the network link priority, it means that there are more message queues and fewer links. Therefore, based on the number of links, the first N queues of the new message priority from high to low are intercepted, and the messages corresponding to the first N new message priorities and the network link priorities are transmitted first. At the same time, the remaining new message priorities are also determined, and the level of the remaining new message priorities at this time is less than the level of the first N new message priorities. Based on the watchdog mechanism, it is periodically checked whether the messages of the first N new message priorities have been transmitted in each network link; if so, the messages with higher priority of the remaining new message priorities can be transmitted in the currently idle network link; if not, the watchdog mechanism continues to be used for urgent production until the messages corresponding to the remaining new message priorities are transmitted.

[0135] For example, there are packets with priorities 0-7 in the network that need to be forwarded. In the order of queues 7, 6, 5, 4, 3, 2, 1, and 0, packets from queue 7 are preferentially forwarded to the path with the largest remaining bandwidth among ECMP members; packets from queue 6 are forwarded to the path with the second largest remaining bandwidth among ECMP members; packets from queue 5 are forwarded to the path with the third largest remaining bandwidth among ECMP members, and so on... Finally, packets from queue 0 are forwarded to the most congested path among ECMP member paths.

[0136] In this embodiment, the packets of the high priority queue are given priority to be forwarded to the remaining bandwidth, and the redundant low priority queues are temporarily cached in the egress queue buffer of the switch, and the low priority queues are forwarded when there is an opportunity to forward. (For example: there are 4 ECMP member ports, and the packets sent by the device at this time include the packets of queues 0-7, and at this time there is already a path in the ECMP member path with a bandwidth utilization of 100%, then at this time the packets of queue 7 are forwarded to the path with the highest remaining bandwidth utilization, the packets of queue 6 are forwarded to the path with the second highest remaining bandwidth utilization, and the packets of queue 5 are forwarded to the path with the third highest remaining bandwidth utilization. At this time, there is no path to choose from for queues 0-4, and the packets can only be cached in the queue buffer of the device, and the packets of queues 0-4 are forwarded when there is a free path).

[0137] In other embodiments, the corresponding message transmission strategy is determined according to the number of queues participating in the new message priority and the number of links participating in the network link priority, including:

[0138] When the number of queues participating in the new message priority is less than or equal to the number of links participating in the network link priority, the level order of the network link priority is matched one by one with the level order of the new message priority, and the message of the new message priority is transmitted on the network link of the corresponding network link priority.

[0139] Specifically, when the number of queues participating in the new message priority is less than or equal to the number of links participating in the network link priority, it is necessary to correspond the level order of the network link priority to the level order of the new message priority one by one for transmission. For example, messages with priorities 0-7 are forwarded according to the traditional principle of packet-by-packet forwarding.

[0140] This embodiment provides different transmission strategies based on the different size relationships between the number of queues participating in the new message priority and the number of links participating in the network link priority, which improves the diversity of transmitted messages in addition to ensuring the rationality of allocating high-priority messages to low-congestion paths.

[0141] In some embodiments, when the number of queues participating in the new message priority is equal to the number of links participating in the network link priority, and the current remaining bandwidth utilization in the network link is 0, the corresponding message transmission strategy is determined according to the number of queues participating in the new message priority and the number of links participating in the network link priority, including:

[0142] Obtain new network links corresponding to other current remaining bandwidth utilizations except for the current remaining bandwidth utilization of 0 in the network links;

[0143] According to the number of links participating in the new network link priority, the first M number of queues participating in the new message priority are intercepted; where M is a positive integer and is the same as the number of links;

[0144] Transmit the first M new message priorities according to the new network link priority;

[0145] The remaining new message priorities are determined according to the number of the first M queues participating in the new message priority;

[0146] Determine whether each new network link has completed the transmission of the first M new message priorities according to the watchdog mechanism;

[0147] If so, after completing the transmission of the first M new message priorities, the messages corresponding to the remaining new message priorities are transmitted in the new network link according to the remaining new message priorities to determine the message transmission strategy;

[0148] If not, return to the step of determining whether each new network link has completed transmission of the first M new message priorities according to the watchdog mechanism, until there is a network link that has completed transmission of the first M new message priorities, so as to transmit the messages corresponding to the remaining new message priorities.

[0149] Specifically, when the number of queues is the same as the number of links, and the current remaining bandwidth utilization of the network link is 0, the actual number of queues that can participate is greater than the number of links, so it is necessary to obtain new network links corresponding to other current remaining bandwidth utilizations except the current remaining bandwidth utilization of 0 in the network link. The message transmission strategy at this time can refer to the embodiment of the transmission strategy corresponding to the number of queues with new message priority being greater than the number of links participating in the network link priority in the above embodiment, which will not be elaborated here. It should be noted that M and N in this embodiment can be the same data or different data, which is not limited here, but the corresponding technical solution for determining the transmission strategy is the same.

[0150] In the case where the number of queues provided in this embodiment is the same as the number of links, and the current remaining bandwidth utilization of the network link is 0, the transmission delay of high-priority messages is ensured to be low and there is no packet loss, thereby improving the reliability of data transmission.

[0151] In some embodiments, if a network link fails, a corresponding message transmission strategy is determined according to the number of queues participating in the new message priority and the number of links participating in the network link priority, including:

[0152] Removing a faulty network link from the links participating in the network link priority;

[0153] A new network link priority is determined according to the current remaining bandwidth utilization of the remaining network link after the removal, and the process returns to the step of transmitting the first M new message priorities according to the new network link priority to determine the corresponding message transmission strategy.

[0154] Specifically, if a network link fails, it is necessary to remove the failed network link, and update the corresponding network link priority at the same time, return to the step of transmitting the first M new message priorities according to the new network link priority in the above embodiment, and determine the corresponding message transmission strategy. The specific transmission strategy has been described in detail in the above embodiment and will not be repeated here.

[0155] In other embodiments, if the faulty network link is repaired, the corresponding message transmission strategy is determined according to the number of queues participating in the new message priority and the number of links participating in the network link priority, including:

[0156] Obtain the current remaining bandwidth utilization of the faulty network link;

[0157] Determine a new network link priority according to the current remaining bandwidth utilization of the failed network link and the current remaining bandwidth utilization of the normally functioning network link;

[0158] The order of the new network link priorities is matched one by one with the order of the new message priorities, and the messages of the new message priorities are transmitted on the network links corresponding to the new network link priorities.

[0159] Specifically, if the faulty network link is repaired successfully, it needs to be fully utilized and re-added to the network link priority. Therefore, the network links are re-sorted according to the current remaining bandwidth utilization to determine the new network link priority. At this time, the number of network links is the same as the number of queues, so the level order of the new network link priority is corresponded to the level order of the new message priority one by one, and the message of the new message priority is transmitted on the network link corresponding to the new network link priority, such as: the order priority of queues 7, 6, 5, 4, 3, 2, 1, 0 selects the remaining bandwidth path.

[0160] In the scenarios where a network link fails and is repaired as provided in this embodiment, the corresponding transmission strategies need to re-determine the new network link priority to ensure that the network link priority is updated in real time when the number of network links changes, so as to facilitate the accuracy of subsequent message allocation and transmission and improve the reliability of message transmission.

[0161] In some embodiments, the corresponding message transmission strategy is determined according to the number of queues participating in the message priority, the actual flow of the message, and the number of links participating in the network link priority, including:

[0162] Determine a new network link priority according to the weight corresponding to the network link priority and the weight of the reference flow range corresponding to the actual flow of the message;

[0163] The corresponding message transmission strategy is determined according to the number of queues participating in the message priority and the number of links participating in the new network link priority.

[0164] Specifically, in this embodiment, the weight data corresponding to each priority of the network link is pre-set with comprehensive consideration of the actual flow of the message and the priority of the network link. The reference flow range of the message adopts a step-by-step setting of different weight data. The weight of the reference flow range corresponding to the actual flow of the message is determined according to the target reference flow range within which the actual flow of the message falls. The weight of each network link priority and the weight corresponding to the actual flow of the message are added to obtain the overall weight of each network link. The new network link priority is determined by re-sorting based on the overall weight of each link.

[0165] In some embodiments, determining a new network link priority according to a weight corresponding to the network link priority and a weight corresponding to a reference flow range of actual flow of the message includes:

[0166] Pre-establishing a mapping relationship between the network link priority and each first weight;

[0167] Obtaining the second weight corresponding to each reference flow range;

[0168] Screening the actual traffic of the message within each reference traffic range to determine the corresponding target reference traffic range and the corresponding target second weight;

[0169] Determine a third weight of the corresponding network link by adding the target second weight of the actual flow of the message to each first weight;

[0170] The new network link priority is determined according to the order of the third weights of the network links.

[0171] Specifically, based on the mapping relationship between the network link priority and each first weight and the mapping relationship between the second weight within each reference flow range, the target second weight corresponding to the actual flow of the message can be determined, and the third weight of the actual network link is obtained by adding each target second weight to each first weight, and the new network link priority is determined based on the order of the size of each third weight.

[0172] The corresponding message transmission strategy is determined according to the new network link priority, message priority, and the relationship between the number of queues participating in the message priority and the number of links participating in the new network link priority. It should be noted that the specific message transmission strategy can refer to the message transmission scheme for different link scenarios and the corresponding relationship between the number of queues participating in the message priority and the number of links participating in the new network link priority in the above embodiment, which will not be repeated here.

[0173] This embodiment provides a new network link priority that is re-determined based on comprehensive consideration of the actual message traffic and the network link priority, thereby determining a message transmission strategy, ensuring the rationality of allocating high-priority messages to low-congestion paths, and improving the diversity of transmitted messages.

[0174] In some embodiments, the corresponding message transmission strategy is determined according to the number of queues participating in the message priority, the actual flow of the message, and the number of links participating in the network link priority, including:

[0175] Get the business scenario corresponding to the actual traffic of the message;

[0176] When the actual traffic of the message is greater than the preset traffic, the target service scenario to which the message priority belongs is determined according to the service scenario of the actual traffic of the message in the queue participating in the message priority;

[0177] When the priority of the target business scenario is not at the highest priority of the message priorities, the message priority corresponding to the target business scenario is set to the highest priority, and a new message priority is obtained;

[0178] Determine a new network link priority according to the weight corresponding to the network link priority and the weight of the reference flow range corresponding to the actual flow of the message;

[0179] The corresponding message transmission strategy is determined according to the number of queues participating in the new message priority and the number of links participating in the new network link priority.

[0180] Specifically, the process of determining the new network link priority and the new message priority in this embodiment is the same as the corresponding priority redetermination process in the above embodiment, and the determined message transmission strategy is the same as the technical solution of the message transmission strategy determined based on the different size relationship between the number of queues participating in the new message priority and the number of links participating in the new network link priority in the above embodiment, which will not be repeated here.

[0181] The process provided in this embodiment determines a new network link priority and a new message priority based on the actual flow of the message. By taking into account the actual flow of the message, the message is transmitted at two priority levels determined in real time, thereby improving the accuracy of the allocated path.

[0182] Furthermore, the present invention also provides a message transmission system based on a network link, comprising a switch, a source routing node and a target routing node;

[0183] A source routing node and a target routing node are connected by connecting multiple switches to form a corresponding network link;

[0184] Source routing node, used to send the message priority of each message;

[0185] The switch is used to determine the corresponding current remaining bandwidth utilization rate according to the current bandwidth utilization rate of the network link, and determine the corresponding network link priority according to the current remaining bandwidth utilization rate; determine the corresponding message transmission strategy according to the number of queues participating in the message priority, the actual flow of the message and the number of links participating in the network link priority; and perform link transmission on the message according to the determined message transmission strategy to send the message to the target routing node; wherein the actual flow of the message is determined by the message parameter corresponding to the source routing node;

[0186] The target routing node is used to receive the message sent by the switch.

[0187] Figure 2 A schematic diagram of a message transmission system based on a network link provided by an embodiment of the present invention, such as Figure 2 As shown, it includes multiple switches, and each switch corresponds to a different transmission link. The switch in this embodiment is a general term, and transmission is performed for the links under each switch. The network link between the source routing node and the target routing node is composed of switches. For example, there are multiple network links between the source routing node A and the target routing node C. Each network link corresponds to its own switch implementation. For example, there are five network links, namely B1, B2, B3, B4 and B5, which may involve 5 switches, corresponding to switches B1', B2' B3', B4' and B5' respectively.

[0188] For an introduction to a message transmission system based on a network link provided by the present invention, please refer to the above method embodiment, and the present invention will not be repeated here. It has the same beneficial effects as the above-mentioned message transmission method based on a network link.

[0189] The above describes in detail various embodiments corresponding to the network link-based message transmission method. On this basis, the present invention also discloses a network link-based message transmission device corresponding to the above method. Figure 3 The structure diagram of a message transmission device based on a network link provided by an embodiment of the present invention. Figure 3 As shown, the message transmission equipment based on the network link includes:

[0190] The acquisition module 11 is used to acquire the message priority corresponding to the source routing node and the network link between the source routing node and the target routing node; wherein the number of the network link is at least one;

[0191] A first determination module 12, configured to determine a corresponding current remaining bandwidth utilization rate according to a current bandwidth utilization rate of a network link, and determine a corresponding network link priority rate according to the current remaining bandwidth utilization rate;

[0192] The second determination module 13 is used to determine the corresponding message transmission strategy according to the number of queues participating in the message priority, the actual flow of the message and the number of links participating in the network link priority; and to perform link transmission of the message to the target routing node according to the determined message transmission strategy; wherein the actual flow of the message is determined by the message parameters corresponding to the source routing node.

[0193] Since the embodiments of the device part correspond to the above embodiments, please refer to the description of the embodiments of the method part for the embodiments of the device part, and will not be repeated here.

[0194] For an introduction to a message transmission device based on a network link provided by the present invention, please refer to the above method embodiment, and the present invention will not be repeated here. It has the same beneficial effects as the above-mentioned message transmission method based on a network link.

[0195] Figure 4 A structural diagram of a switch provided by an embodiment of the present invention, such as Figure 4 As shown, the switch includes:

[0196] A memory 21, used for storing computer programs;

[0197] The processor 22 is used to implement the steps of the message transmission method based on the network link when executing the computer program.

[0198] Among them, the processor 22 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 22 may be implemented in at least one hardware form of a digital signal processor (DSP), a field-programmable gate array (FPGA), and a programmable logic array (PLA). The processor 22 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 central processing unit (CPU); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 22 may be integrated with a graphics processing unit (GPU), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 22 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.

[0199] The memory 21 may include one or more computer-readable storage media, which may be non-transitory. The memory 21 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 21 is at least used to store the following computer program 211, wherein, after the computer program is loaded and executed by the processor 22, it can implement the relevant steps of the message transmission method based on the network link disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory 21 may also include an operating system 212 and data 213, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 212 may include Windows, Unix, Linux, etc. The data 213 may include, but is not limited to, data involved in the message transmission method based on the network link, etc.

[0200] In some embodiments, the switch may further include a display screen 23 , an input / output interface 24 , a communication interface 25 , a power supply 26 , and a communication bus 27 .

[0201] Those skilled in the art can understand that Figure 4 The structure shown in the figure does not constitute a limitation on the message transmission device based on the network link, and may include more or fewer components than those shown in the figure.

[0202] The processor 22 implements the network link-based message transmission method provided by any of the above embodiments by calling the instructions stored in the memory 21.

[0203] For an introduction to a switch provided by the present invention, please refer to the above method embodiment, and the present invention will not be repeated here. It has the same beneficial effects as the above-mentioned message transmission method based on network link.

[0204] Furthermore, the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by the processor 22, the steps of the above-mentioned message transmission method based on the network link are implemented.

[0205] It is understandable that if the method in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium to execute all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program codes.

[0206] For an introduction to a computer-readable storage medium provided by the present invention, please refer to the above method embodiment, and the present invention will not be repeated here. It has the same beneficial effects as the above-mentioned network link-based message transmission method.

[0207] Furthermore, the present invention also provides a computer program product, including a computer program / instruction, which implements the steps of the above-mentioned network link-based message transmission method when executed by a processor.

[0208] For an introduction to a computer program product provided by the present invention, please refer to the above method embodiment, and the present invention will not be repeated here. It has the same beneficial effects as the above-mentioned message transmission method based on network link.

[0209] Figure 5 A flowchart of another method for transmitting a message based on a network link is provided in an embodiment of the present invention, such as Figure 5 As shown, including:

[0210] S21: the egress queue for recording messages;

[0211] S22: for the equal-cost multipath member ports, calculate the remaining bandwidth utilization of each member port and sort them;

[0212] S23: Determine whether there is a path with no remaining bandwidth on the equal-cost multi-path member port; if not, proceed to step S24; if yes, proceed to step S25;

[0213] S24: forwarding according to the packet-by-packet forwarding strategy;

[0214] S25: According to the order of queue 7-0, the highest priority message is forwarded on the path with the largest remaining bandwidth among equal-cost multipath members.

[0215] It should be noted that the "No" judgment of the equal-cost multi-path member port in step S23 is a situation where there is one path or multiple paths with no remaining bandwidth utilization.

[0216] The above is a detailed introduction to a message transmission method, system, switch, medium and product provided by the present invention. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the various embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principle of the present invention, several improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the scope of protection of the present invention.

[0217] It should also be noted that, in this specification, relational terms such as first and second, etc. are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprises", "comprising" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

Claims

1. A message transmission method based on a network link, characterized in that: Applicable to switches, including: Obtaining a message priority corresponding to a source routing node and a network link between the source routing node and a target routing node; wherein the number of network links is at least one; Determine the corresponding current remaining bandwidth utilization rate according to the current bandwidth utilization rate of the network link, and determine the corresponding network link priority rate according to the current remaining bandwidth utilization rate; wherein the current remaining bandwidth utilization rate is obtained by subtracting the current bandwidth utilization rate from 1; and determine the priority rate of the network link based on the current remaining bandwidth utilization rate sorted from high to low; Determine the corresponding message transmission strategy according to the number of queues participating in the message priority, the actual flow of the message and the number of links participating in the network link priority; and transmit the message to the target routing node through the link according to the determined message transmission strategy; wherein the actual flow of the message is determined by the message parameter corresponding to the source routing node; Correspondingly, the corresponding message transmission strategy is determined according to the number of queues participating in the message priority, the actual flow of the message, and the number of links participating in the network link priority, including: Get the business scenario corresponding to the actual traffic of the message; When the actual flow of the message is greater than the preset flow, the target service scenario to which the message priority belongs is determined according to the service scenario of the actual flow of the message in the queue participating in the message priority; Determine whether the priority of the target service scenario is at the highest priority of the message priority; If yes, determine the corresponding message transmission strategy according to the number of queues participating in the message priority and the number of links participating in the network link priority; If not, the message priority corresponding to the target business scenario is set to the highest priority, and a new message priority is obtained; the corresponding message transmission strategy is determined according to the number of queues participating in the new message priority and the number of links participating in the network link priority; wherein, when the number of queues participating in the new message priority is greater than the number of links participating in the network link priority, the first N number of queues participating in the new message priority is intercepted according to the number of links participating in the network link priority; wherein N is a positive integer and is the same as the number of links; the first N new message priorities are transmitted according to the network link priority; the remaining new message priorities are determined according to the first N number of queues participating in the new message priority, so as to facilitate Determine a corresponding message transmission strategy; determine a message transmission strategy when the number of queues participating in the new message priority is less than or equal to the number of links of the parameter network link priority; when the number of queues participating in the new message priority is equal to the number of links participating in the network link priority, and there is a current remaining bandwidth utilization of 0 in the network link, obtain new network links corresponding to other current remaining bandwidth utilizations except the current remaining bandwidth utilization of 0 in the network link, intercept the first M numbers of queues participating in the new message priority according to the number of links participating in the new network link priority to determine the remaining new message priority, and determine the corresponding message transmission strategy; wherein M is a positive integer and is the same as the number of links.

2. The message transmission method based on network link according to claim 1, characterized in that: The process of determining the current bandwidth utilization of the network link includes: Obtaining the standard flow of messages per unit time and the port bandwidth of each network link; wherein the standard flow is the data volume of the network interface; Determine the corresponding current bandwidth utilization according to the standard flow and the port bandwidth; The process of determining the standard flow of messages per unit time includes: Get the average and peak traffic of packets per unit time; The standard flow is determined according to preset weights corresponding to the average flow and the peak flow.

3. The message transmission method based on network link according to claim 1, characterized in that: The corresponding message transmission strategy is determined according to the number of queues participating in the new message priority and the number of links participating in the network link priority, including: Determine whether each network link has completed the transmission of the first N new message priorities according to the watchdog mechanism; If so, in the network link of the messages with the first N new message priorities, after completing the transmission, the messages corresponding to the remaining new message priorities are transmitted according to the remaining new message priorities to determine the message transmission strategy; If not, return to the step of determining whether each network link has completed the transmission of the first N new message priorities according to the watchdog mechanism, until there is a network link that has completed the transmission of the first N new message priorities, so as to transmit the messages corresponding to the remaining new message priorities.

4. The message transmission method based on network link according to claim 1, characterized in that: The corresponding message transmission strategy is determined according to the number of queues participating in the new message priority and the number of links participating in the network link priority, including: When the number of queues participating in the new message priority is less than or equal to the number of links of the parameter network link priority, the level order of the network link priority is matched one by one with the level order of the new message priority, and the message of the new message priority is transmitted on the network link of the corresponding network link priority.

5. The message transmission method based on network link according to claim 4 is characterized in that: When the number of queues participating in the new message priority is equal to the number of links participating in the network link priority and the current remaining bandwidth utilization of the network link is 0, a corresponding message transmission strategy is determined according to the number of queues participating in the new message priority and the number of links participating in the network link priority, including: Transmit the first M new message priorities according to the new network link priority; The remaining new message priorities are determined according to the number of the first M queues participating in the new message priority; Determine whether each new network link has completed the transmission of the first M new message priorities according to the watchdog mechanism; If so, after completing the transmission of the first M new message priorities, the messages corresponding to the remaining new message priorities are transmitted in the new network link according to the remaining new message priorities to determine the message transmission strategy; If not, return to the step of determining whether each new network link has completed the transmission of the first M new message priorities according to the watchdog mechanism, until there is a network link that has completed the transmission of the first M new message priorities, so as to transmit the messages corresponding to the remaining new message priorities.

6. The message transmission method based on network link according to claim 5, characterized in that: If a network link fails, the corresponding message transmission strategy is determined according to the number of queues participating in the new message priority and the number of links participating in the network link priority, including: Removing a faulty network link from the links participating in the network link priority; Determine a new network link priority according to the current remaining bandwidth utilization of the remaining network link after the removal, and return to the step of transmitting the first M new message priorities according to the new network link priority to determine the corresponding message transmission strategy.

7. The message transmission method based on network link according to claim 6, characterized in that: If the faulty network link is repaired, the corresponding message transmission strategy is determined according to the number of queues participating in the new message priority and the number of links participating in the network link priority, including: Obtain the current remaining bandwidth utilization of the faulty network link; Determine a new network link priority according to the current remaining bandwidth utilization of the failed network link and the current remaining bandwidth utilization of the normally functioning network link; The order of the new network link priorities is matched one by one with the order of the new message priorities, and the messages of the new message priorities are transmitted on the network links corresponding to the new network link priorities.

8. The message transmission method based on network link according to claim 2, characterized in that: The corresponding message transmission strategy is determined according to the number of queues participating in the message priority, the actual flow of the message, and the number of links participating in the network link priority, including: Determine a new network link priority according to the weight corresponding to the network link priority and the weight of the reference flow range corresponding to the actual flow of the message; The corresponding message transmission strategy is determined according to the number of queues participating in the message priority and the number of links participating in the new network link priority.

9. The message transmission method based on network link according to claim 8, characterized in that: The new network link priority is determined according to the weight corresponding to the network link priority and the weight of the reference flow range corresponding to the actual flow of the message, including: Pre-establishing a mapping relationship between the network link priority and each first weight; Obtaining the second weight corresponding to each reference flow range; Screening the actual traffic of the message within each reference traffic range to determine the corresponding target reference traffic range and the corresponding target second weight; Determine a third weight of the corresponding network link by adding the target second weight of the actual flow of the message to each first weight; The new network link priority is determined according to the order of the third weights of the network links.

10. A message transmission system based on a network link, characterized in that: including switches, source routing nodes, and target routing nodes; A source routing node and a target routing node are connected by connecting multiple switches to form a corresponding network link; Source routing node, used to send the message priority of each message; The switch is used to determine the corresponding current remaining bandwidth utilization according to the current bandwidth utilization of the network link, and determine the corresponding network link priority according to the current remaining bandwidth utilization; Determine the corresponding message transmission strategy according to the number of queues participating in the message priority, the actual flow of the message, and the number of links participating in the network link priority; And according to the determined message transmission strategy, the message is transmitted on the link to send the message to the target routing node; wherein the actual flow of the message is determined by the message parameter corresponding to the source routing node; the current remaining bandwidth utilization is obtained by subtracting the current bandwidth utilization from 1; the network link priority is determined based on the current remaining bandwidth utilization sorted from high to low; correspondingly, the corresponding message transmission strategy is determined according to the number of queues participating in the message priority, the actual flow of the message and the number of links participating in the network link priority, including: Get the business scenario corresponding to the actual traffic of the message; When the actual flow of the message is greater than the preset flow, the target service scenario to which the message priority belongs is determined according to the service scenario of the actual flow of the message in the queue participating in the message priority; Determine whether the priority of the target service scenario is at the highest priority of the message priority; If yes, determine the corresponding message transmission strategy according to the number of queues participating in the message priority and the number of links participating in the network link priority; If not, the message priority corresponding to the target business scenario is set to the highest priority, and a new message priority is obtained; the corresponding message transmission strategy is determined according to the number of queues participating in the new message priority and the number of links participating in the network link priority; wherein, when the number of queues participating in the new message priority is greater than the number of links participating in the network link priority, the first N number of queues participating in the new message priority is intercepted according to the number of links participating in the network link priority; wherein N is a positive integer and is the same as the number of links; the first N new message priorities are transmitted according to the network link priority; the remaining new message priorities are determined according to the first N number of queues participating in the new message priority, so as to facilitate Determine the corresponding message transmission strategy; determine the message transmission strategy when the number of queues participating in the new message priority is less than or equal to the number of links of the parameter network link priority; when the number of queues participating in the new message priority is equal to the number of links participating in the network link priority, and there is a current remaining bandwidth utilization of 0 in the network link, obtain new network links corresponding to other current remaining bandwidth utilizations except the current remaining bandwidth utilization of 0 in the network link, intercept the first M number of queues participating in the new message priority according to the number of links participating in the new network link priority to determine the remaining new message priority, and determine the corresponding message transmission strategy; wherein M is a positive integer and is the same as the number of links; The target routing node is used to receive the message sent by the switch.

11. A switch, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the network link-based message transmission method as described in any one of claims 1 to 9 when executing the computer program.

12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the message transmission method based on a network link are implemented as described in any one of claims 1 to 9.

13. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instruction is executed by a processor, the steps of the message transmission method based on a network link as described in any one of claims 1 to 9 are implemented.

Citation Information

Patent Citations

  • Data scheduling method, electronic equipment and storage medium

    CN113438169A

  • Network transmission link matching method and device based on service priority

    CN117749725A