Traffic control method, electronic device, and storage medium

By combining a two-level caching architecture with a target prediction model, the problem of buffer overflow in switching network nodes during traffic bursts is solved, achieving efficient traffic control and network stability, and reducing data loss and latency.

CN120675964BActive Publication Date: 2026-04-14SUZHOU YIGE TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-07-02
Publication Date
2026-04-14

AI Technical Summary

Technical Problem

In the event of a sudden surge in traffic, network nodes are prone to buffer overflows, leading to data loss and transmission delays. Existing technologies lack flexible traffic control and information exchange mechanisms, resulting in a decline in network performance.

Method used

A two-level caching architecture is adopted. The first-level cache is configured to independently process target node data, and the cache switches to the shared second-level cache when the preset backpressure threshold is reached. Traffic control is performed in combination with the target prediction model to dynamically adjust the backpressure cycle and cache resource allocation.

Benefits of technology

It effectively avoids cache overflow, reduces data loss and transmission latency, improves cache space utilization, and achieves precise traffic control and network stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120675964B_ABST
    Figure CN120675964B_ABST
Patent Text Reader

Abstract

The present disclosure relates to the technical field of communication, and discloses a traffic control method, an electronic device and a storage medium. The method comprises: in response to data transmission of a target node, configuring a first-level cache of the target node, and configuring a data cache position corresponding to the target node as the first-level cache; in a case where a data amount in the first-level cache reaches a preset back pressure threshold, switching the data cache position corresponding to the target node to a second-level cache, and performing traffic control on the target node; wherein the second-level cache is configured as a shared cache of all nodes transmitting data to a local node. The present disclosure can solve the problem of cache overflow of a switching network node caused by traffic burst.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of communication technology, specifically to flow control methods, electronic devices, and storage media. Background Technology

[0002] In today's digital age, data traffic on switching networks is growing rapidly. When a node in a switching network receives data from a remote node, it typically caches this data locally for later processing. However, when a local node receives data from multiple remote nodes simultaneously, a sudden surge in traffic can easily cause its local cache to overflow. Summary of the Invention

[0003] In view of this, this disclosure provides a flow control method, electronic device, and storage medium to solve the problem of buffer overflow caused by traffic bursts in switching network nodes.

[0004] In a first aspect, this disclosure provides a flow control method applicable to nodes in a switched network, the method comprising:

[0005] In response to data transmission at the target node, configure the first-level cache of the target node, and configure the data cache location corresponding to the target node as the first-level cache;

[0006] When the amount of data in the first-level cache reaches a preset backpressure threshold, the data cache location corresponding to the target node is switched to the second-level cache, and traffic control is performed on the target node; wherein, the second-level cache is configured as a shared cache for all nodes transmitting data to the local node.

[0007] In this method, a separate first-level cache is configured for each target node to cache its data. This ensures that data processing for different target nodes is independent, allowing for targeted processing of data from different target nodes. When the amount of data in the first-level cache reaches a preset backpressure threshold, the data cache location of the target node is switched from the first-level cache to a shared second-level cache. This allows data about to overflow from the first-level cache to be stored in the second-level cache, enabling centralized allocation of local node cache resources during peak traffic periods. This improves the overall utilization of local node cache space and effectively prevents cache overflow caused by sudden traffic surges in the switching network nodes, thereby reducing data loss and transmission delays due to cache overflow.

[0008] In one optional implementation, switching the data cache location corresponding to the target node to the second-level cache and performing traffic control on the target node includes:

[0009] Obtain the target network performance information of the target node and the target transmission resource information of the local node;

[0010] Based on the target network performance information, the target transmission resource information, and the target prediction model, target flow control information for the target node is obtained; wherein, the target prediction model is obtained by training an initial prediction model based on associated historical network performance information, historical transmission resource information, and historical flow control information; the target flow control information includes backpressure control information and the configuration information of the secondary cache;

[0011] Switch the data cache location corresponding to the target node to the second-level cache, and cache the data stream sent by the target node in the second-level cache according to the configuration information;

[0012] Flow control is performed on the target node based on the back pressure control information.

[0013] In this method, a target prediction model is used to determine the backpressure control information and secondary cache configuration information for the target node based on the traffic characteristics jointly reflected by the target network performance information and the target transmission resource information. When the data cache location corresponding to the target node is switched to the secondary cache, the data stream sent by the target node is cached in the secondary cache according to the configuration information, and traffic control is performed on the target node based on the backpressure control information. Therefore, it can be ensured that during the backpressure control process of the target node, the local node can process the data cached by the target node in the local node, avoiding data backlog and loss.

[0014] In one optional implementation, obtaining the target network performance information of the target node includes:

[0015] The system obtains the traffic bandwidth corresponding to the target node and sends first indication information to the target node; wherein, the first indication information is used to instruct the target node to periodically insert a first idle data packet during the data transmission process with the local node; the first idle data packet carries the status information of the target node;

[0016] The system receives the first idle data packet sent by the target node, extracts the status information of the target node from the first idle data packet, and obtains the target network performance information; wherein, the target network performance information includes the traffic bandwidth and the status information.

[0017] In this method, when the amount of data in the target node's first-level cache reaches a preset backpressure threshold, the local node sends a first indication message to the target node, causing the target node to periodically insert a first idle data packet during data transmission. Since the local node does not cache the first idle data packet, its information processing efficiency is improved. Simultaneously, the first idle data packet carries the target node's status information. Therefore, upon receiving the first idle data packet, the local node can extract the target node's status information and, combined with the real-time calculated traffic bandwidth of the target node, provide rich reference information for the target prediction model to predict target traffic control information, thereby improving the accuracy of the prediction results.

[0018] In an optional implementation, when there are multiple target nodes, receiving the first idle data packet sent by the target node and extracting the target node's status information from the first idle data packet to obtain the target network performance information includes:

[0019] Receive the first idle data packet sent by the target node, and extract the status information of the target node from the first idle data packet;

[0020] Write the status information of the target node into a preset information table;

[0021] If the amount of data in the first-level cache corresponding to multiple target nodes reaches the preset backpressure threshold, then the traffic heat of each target node is obtained.

[0022] Based on the traffic heat, target status information is obtained from the preset information table to obtain target network performance information; wherein, the target network performance information includes the target status information and the traffic bandwidth of the target node corresponding to the target status information.

[0023] In this method, target status information is obtained from the status information of multiple target nodes stored in a preset information table based on the traffic heat of the target node. This information is then combined with the traffic bandwidth of the corresponding target node to obtain the target network performance information. Therefore, local nodes can prioritize using the target prediction model to predict the target traffic control information of target nodes with high traffic heat, and adjust the traffic control for the corresponding target nodes in a timely manner. This avoids reduced bandwidth utilization due to prolonged traffic control, thereby ensuring the stable operation of the switching network.

[0024] In one optional implementation, the configuration information includes a valid time range for the secondary cache to provide caching services for the target node; caching the data stream sent by the target node in the secondary cache according to the configuration information includes:

[0025] Within the effective time range, the data stream sent by the target node is cached in the second-level cache.

[0026] In this method, when the amount of data in the primary cache corresponding to the target node reaches the preset back pressure threshold, the target prediction model provides an effective time range for the secondary cache to provide caching services to the target node. Within the effective time range, the data of the target node is cached in the secondary cache. Therefore, it can avoid the target node occupying the shared secondary cache resources for a long time, so as to centrally allocate the secondary cache resources and ensure the efficiency of network data processing.

[0027] In one optional implementation, the configuration information further includes the cache size allocated to the target node in the second-level cache; the step of caching the data stream sent by the target node to the second-level cache within the valid time range includes:

[0028] According to the cache size, allocate a corresponding cache area for the target node in the secondary cache;

[0029] Within the effective time range, the data stream sent by the target node is cached in the cache area.

[0030] In this method, since the secondary cache is shared and each target node has different traffic characteristics, when the amount of data in the primary cache corresponding to the target node reaches the preset backpressure threshold, the target prediction model gives the corresponding cache size allocated to each target node in the secondary cache, thereby ensuring that the local node can process the cached data of the target node during the backpressure control process of the target node.

[0031] In one optional implementation, the backpressure control information includes a target backpressure cycle and its corresponding number of cycles; the flow control of the target node based on the backpressure control information includes:

[0032] Based on the backpressure control information, a second indication information is sent to the target node to perform flow control on the target node; wherein, the second indication information is used to instruct the target node to periodically insert a second idle data packet during the data transmission process with the local node according to the target backpressure cycle and the number of cycles.

[0033] In this method, when the amount of data in the first-level cache corresponding to the target node reaches the preset backpressure threshold, the target prediction model provides the target backpressure period and the corresponding number of periods. Therefore, the backpressure period and number of periods of each target node can be dynamically adjusted according to the traffic characteristics of each target node, thereby avoiding the reduction of bandwidth utilization due to long-term backpressure and improving network performance.

[0034] In an optional implementation, the backpressure control information further includes a target backpressure level; the target node is configured with at least one preset backpressure level and a correspondence between the number of idle data packets; the preset backpressure level is positively correlated with the number of idle data packets; the second indication information is used to instruct the target node to periodically insert a second number of idle data packets corresponding to the target backpressure level during data transmission with the local node, based on the target backpressure period, the number of periods, and the target backpressure level.

[0035] In this method, when the amount of data in the first-level cache corresponding to the target node reaches the preset backpressure threshold, the target prediction model provides the target backpressure cycle, the number of cycles, and the target backpressure level, and controls the number of second idle data packets sent by the target node in each target backpressure cycle in a hierarchical manner. Therefore, it is possible to accurately adjust the traffic according to the traffic characteristics of each target node to prevent congestion.

[0036] In a second aspect, this disclosure provides an electronic device, including: a memory and a processor, which are communicatively connected to each other. The memory stores computer instructions, and the processor executes the computer instructions to perform the flow control method of the first aspect or any corresponding embodiment described above.

[0037] Thirdly, this disclosure provides a computer-readable storage medium storing computer instructions for causing a computer to perform the flow control method of the first aspect or any corresponding embodiment described above. Attached Figure Description

[0038] To more clearly illustrate the technical solutions in the specific embodiments of this disclosure or the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this disclosure. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0039] Figure 1 This is a schematic diagram of the architecture of a switching network according to an embodiment of the present disclosure;

[0040] Figure 2 This is a schematic flowchart of a flow control method according to an embodiment of the present disclosure;

[0041] Figure 3 This is a schematic flowchart of another flow control method according to an embodiment of the present disclosure;

[0042] Figure 4This is a structural block diagram of a flow control device according to an embodiment of the present disclosure;

[0043] Figure 5 This is a structural block diagram of an electronic device according to an embodiment of the present disclosure. Detailed Implementation

[0044] To make the objectives, technical solutions, and advantages of the embodiments of this disclosure clearer, the technical solutions of the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this disclosure, and not all embodiments. Based on the embodiments of this disclosure, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this disclosure.

[0045] In today's digital age, data traffic on switching networks is growing rapidly, and traffic management technology faces the following challenges:

[0046] 1. Regarding cache management, when a local node receives data from multiple remote nodes, related technologies often employ a single caching strategy. If there is a sudden surge in traffic, the cache is prone to overflow, leading to data loss or transmission delays, which in turn affects network service quality. For example, in scenarios where video conferencing and file downloading occur simultaneously, video stuttering may occur.

[0047] 2. In terms of flow control, backpressure technology lacks flexibility. It usually stops sending data directly after the buffer reaches the threshold. This not only wastes bandwidth but also causes network jitter, reducing network utilization and stability.

[0048] 3. Regarding information exchange, information acquisition between nodes is neither timely nor comprehensive. Local nodes struggle to keep abreast of the status of remote nodes and find it difficult to adjust strategies based on real-time network changes. Furthermore, the predictive models used to forecast network status suffer from insufficient accuracy in predicting traffic changes due to their limited data dimensions and outdated algorithms, resulting in lagging traffic management.

[0049] In summary, current switching network technology has many shortcomings, and there is an urgent need for a technical solution that optimizes cache management, accurately controls traffic, and enables efficient interaction in order to improve the overall performance of switching networks and meet the growing demands of network applications.

[0050] In view of the above, according to the embodiments of this disclosure, a flow control method embodiment is provided. It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowcharts, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0051] See Figure 1 , Figure 1 This is a schematic diagram of a switching network architecture provided in this disclosure. The switching network includes multiple nodes and switches, with the nodes interconnected via the switches. A host can connect to a target node via its local node (see [link to diagram]). Figure 1 The remote nodes 1 to 3 are interconnected to receive the data stream sent by the target node. The local node caches the data in the received data stream locally and waits to read and process it.

[0052] This embodiment provides a flow control method that can be used in nodes of the aforementioned switching network. Figure 2 This is a flowchart illustrating a flow control method according to an embodiment of the present disclosure, as shown below. Figure 2 As shown, the process includes the following steps:

[0053] Step S201: In response to the data transmission of the target node, configure the first-level cache of the target node and configure the data cache location corresponding to the target node as the first-level cache.

[0054] Optionally, the target node is a remote node that transmits data to the local node.

[0055] In practical applications, local nodes can set up independent first-level caches for each target node based on its traffic characteristics. The capacity of the first-level cache is configured according to the traffic characteristics of the target node. The first-level cache is used to cache the data of the corresponding target node, thereby ensuring that the data processing of different target nodes is independent and avoiding interference.

[0056] In step S202, when the amount of data in the first-level cache reaches the preset backpressure threshold, the data cache location corresponding to the target node is switched to the second-level cache, and flow control is performed on the target node; wherein, the second-level cache is configured as a shared cache for all nodes transmitting data to the local node.

[0057] In practical applications, local nodes can configure preset backpressure thresholds for each level-one cache based on the traffic characteristics of each target node. When the amount of data in any level-one cache reaches the corresponding preset backpressure threshold, the data cache location of the target node is switched to the level-two cache. Alternatively, a preset proportion of the level-one cache capacity can be used as the preset backpressure threshold, for example, 95% of the level-one cache capacity.

[0058] Understandably, when the amount of data in the first-level cache reaches a preset backpressure threshold, it indicates that the first-level cache is about to become saturated. At this point, the shared second-level cache will be immediately activated to store the data that is about to overflow. It should be noted that all nodes that transmit data to the local node as described in step S202 above include the target node.

[0059] The two-level caching architecture adopted in this embodiment features an independent first-level cache that can perform targeted processing based on the traffic characteristics of each target node. The second-level cache is shared and can centrally allocate resources during peak traffic periods, improving the overall utilization of cache space. Therefore, it can effectively reduce data loss and transmission latency, ensuring the efficiency and stability of network data processing.

[0060] The flow control method provided in this embodiment configures a separate first-level cache for each target node to cache its data. This ensures that data processing for different target nodes is independent, allowing for targeted processing of data from different target nodes. When the amount of data in the first-level cache reaches a preset backpressure threshold, the target node's data cache location is switched from the first-level cache to a shared second-level cache. This allows data about to overflow from the first-level cache to be stored in the second-level cache, enabling centralized allocation of local node cache resources during peak traffic periods. This improves the overall utilization of local node cache space, effectively preventing cache overflow caused by sudden traffic surges in switching network nodes, thereby reducing data loss and transmission delays due to cache overflow.

[0061] This embodiment provides a flow control method that can be used in nodes of the aforementioned switching network. Figure 3 This is a flowchart of a flow control method according to an embodiment of the present disclosure, such as... Figure 3 As shown, the process includes the following steps:

[0062] Step S301: In response to the data transmission of the target node, configure the first-level cache of the target node, setting the data cache location corresponding to the target node as the first-level cache. See the relevant description of step S201 above; it will not be repeated here.

[0063] In step S302, when the amount of data in the first-level cache reaches the preset backpressure threshold, the data cache location corresponding to the target node is switched to the second-level cache, and flow control is performed on the target node; wherein, the second-level cache is configured as a shared cache for all nodes transmitting data to the local node.

[0064] Specifically, step S302 includes:

[0065] Step S3021: Obtain the target network performance information of the target node and the target transmission resource information of the local node.

[0066] Optionally, the target network performance information includes one or more of the target node's traffic bandwidth and the target node's status information, which can be adjusted according to actual conditions. The status information includes one or more of the target node's load, voltage, and temperature, and may also include other status information of the target node, which is not limited here.

[0067] Optionally, the target transmission resource information includes one or more of the local node's cache space capacity (including the sum of the cache capacities of the second-level cache, all first-level caches, and other caches) and the local node's bandwidth utilization, which can be adjusted according to the actual situation.

[0068] Step S3022: Based on the target network performance information, target transmission resource information, and target prediction model, target flow control information for the target node is obtained; wherein, the target prediction model is obtained by training the initial prediction model based on the associated historical network performance information, historical transmission resource information, and historical flow control information; the target flow control information includes backpressure control information and secondary cache configuration information.

[0069] Optionally, the backpressure control information includes one or more of the target backpressure period, the number of periods corresponding to the target backpressure period, and the target backpressure level. The target backpressure period characterizes the period during which the target node inserts idle data packets into the transmitted data stream; the number of periods characterizes the number of periods during which the target node inserts idle data packets into the transmitted data stream; and the target backpressure level indicates the number of idle data packets inserted by the target node into the transmitted data stream per period.

[0070] Optionally, the configuration information for the second-level cache includes one or more of the following: the effective time range for the second-level cache to provide caching services to the target node and the cache size allocated to the target node in the second-level cache. These can be adjusted according to actual conditions. The effective time range can be characterized by the start and stop times for the second-level cache to provide caching services to the target node.

[0071] Optionally, the historical network performance information includes one or more of the historical traffic bandwidth and historical status information of the first sample node, which can be adjusted according to the actual situation. The historical status information includes one or more of historical load, historical voltage, and historical temperature, and may also include other historical status information of the sample node, which is not limited here. The first sample node can be the target node, another node in the switching network that has sent data to the local node, or a node in the switching network that has sent data to a certain node, which is not limited here.

[0072] Optionally, the historical transmission resource information includes one or more of the buffer space capacity and historical bandwidth utilization of the second sample node, which can be adjusted according to actual conditions. The second sample node is the data receiver corresponding to the first sample node. For example, when the first sample node is the target node, the second sample node can be a local node or another data receiver of the target node in the switching network. Alternatively, the second sample node is a local node, and the first sample node is another node in the switching network that has sent data to the local node. Or, the second sample node is any node in the switching network, and the first sample node is a node in the switching network that has sent data to the second sample node.

[0073] Optionally, the historical flow control information includes the historical backpressure control information of the second sample node against the first sample node and the historical configuration information of the second sample node's secondary cache. The historical backpressure control information includes one or more of the following: historical backpressure period, number of historical backpressure periods, and historical backpressure level. The historical backpressure period characterizes the period during which the first sample node inserts idle data packets into the transmitted data stream; the number of historical backpressure periods characterizes the number of periods during which the first sample node inserts idle data packets into the transmitted data stream; and the historical backpressure level indicates the number of idle data packets inserted by the first sample node into the transmitted data stream per period. The historical configuration information includes one or more of the following: the effective time range within which the second sample node's secondary cache provides caching services to the first sample node, and the cache size allocated to the first sample node in the second sample node's secondary cache, which can be adjusted according to actual conditions.

[0074] It should be noted that historical traffic control information can be obtained by relevant personnel during the process of the second sample node sending data from the first sample node to the second sample node, by debugging the traffic control information of the second sample node against the first sample node, and by correlating historical network performance information, historical transmission resource information, and historical traffic control information according to the information collection time. Furthermore, historical traffic control information can also be configured by relevant personnel based on the traffic characteristics jointly reflected by historical network performance information and historical transmission resource information; therefore, the method of obtaining historical traffic control information is not limited here.

[0075] It should be noted that the target prediction model of the local node collects multi-source information, including the traffic bandwidth corresponding to the target node calculated in real time, the status information of the target node, the cache space capacity of the local node, and the bandwidth utilization of the local node. The target prediction model analyzes this information and maps the potential relationships between the data. Based on the analysis results, the target prediction model can dynamically adjust the backpressure control information, such as the target backpressure cycle and its corresponding number of cycles, and dynamically adjust the configuration information of the second-level cache, such as the second-level cache opening time, closing time, and the cache size allocated to the target node in the second-level cache. When allocating the cache size of the target node in the second-level cache, it fully considers the traffic characteristics reflected by the target network performance information and target transmission resource information corresponding to each target node, ensuring that the local node can process the data cached by the target node in the local node within the target backpressure cycle, avoiding data backlog and loss, thereby achieving precise control and optimized management of network traffic.

[0076] Step S3023: Switch the data cache location corresponding to the target node to the second-level cache, and cache the data stream sent by the target node in the second-level cache according to the configuration information.

[0077] Specifically, when the level 1 cache corresponding to one or more target nodes will overflow, the target prediction model provides target flow control information for each target node. Since the target network performance information of each target node is different, the target flow control information is different.

[0078] Step S3024: Perform flow control on the target node based on the back pressure control information.

[0079] Specifically, backpressure control is applied to the target node based on backpressure control information in order to control the traffic of the target node.

[0080] The flow control method provided in this embodiment utilizes a target prediction model to determine backpressure control information and secondary cache configuration information for the target node based on the flow characteristics jointly reflected by the target network performance information and the target transmission resource information. When the data cache location corresponding to the target node is switched to the secondary cache, the data stream sent by the target node is cached in the secondary cache according to the configuration information, and flow control is performed on the target node based on the backpressure control information. Therefore, it can ensure that during the backpressure control process of the target node, the local node can process the data cached by the target node in the local node, avoiding data backlog and loss.

[0081] In some optional implementations, obtaining the target network performance information of the target node in step S3021 above includes:

[0082] Step a1: Obtain the traffic bandwidth corresponding to the target node and send first indication information to the target node; wherein, the first indication information is used to instruct the target node to periodically insert a first idle data packet during the data transmission process with the local node; the first idle data packet carries the status information of the target node.

[0083] Specifically, when the local node's first-level cache reaches the preset backpressure threshold, the local node can send the first indication information to the target node in the form of traffic packets. After receiving the first indication information, the target node will pause normal data transmission and send its own status information (such as load, voltage, temperature, etc.) back to the local node through the first idle data packet.

[0084] In practical applications, initial control information can be preset, including an initial backpressure period and its number of periods. When the target node first connects to the local node or sends data, a first indication is sent to the target node based on the initial control information. This first indication instructs the target node to periodically insert first idle data packets during data transmission with the local node, according to the initial backpressure period and its number of periods. Furthermore, the initial control information may also include an initial backpressure level. The target node is configured with at least one preset correspondence between backpressure levels and the number of idle data packets. The first indication instructs the target node to periodically insert a number of first idle data packets corresponding to the initial backpressure level during data transmission with the local node, based on the initial backpressure period, the initial backpressure level, and the number of periods corresponding to the initial backpressure period.

[0085] In addition, if the communication connection between the local node and the target node is lost due to power failure or other reasons, when the local node and the target node re-establish communication, the local node can obtain the target node's network performance information based on the target node's traffic bandwidth and historical status information. Based on the obtained network performance information, the local node's transmission resource information (e.g., the local node's cache space capacity and bandwidth utilization), and the target prediction model, the local node obtains initial control information for the target node. The local node sends a first indication message to the target node based on the initial control information, so that the target node periodically inserts a first idle data packet during data transmission with the local node according to the initial control information. Specific details can be found in the description of the initial control information above, and will not be elaborated further here.

[0086] Step a2: Receive the first idle data packet sent by the target node, extract the target node's status information from the first idle data packet to obtain the target network performance information; wherein, the target network performance information includes traffic bandwidth and status information.

[0087] Specifically, after receiving the first idle data packet, the local node extracts its state information for the target prediction model to predict flow control information, without caching it, to improve information processing efficiency. That is, the local node is configured not to cache the first idle data packet.

[0088] The flow control method provided in this embodiment, when the amount of data in the target node's first-level cache reaches a preset backpressure threshold, sends a first indication message to the target node, causing the target node to periodically insert a first idle data packet during data transmission. Since the local node does not cache the first idle data packet, its information processing efficiency is improved. Simultaneously, the first idle data packet carries the target node's status information. Therefore, when the local node receives the first idle data packet, it can extract the target node's status information and, combined with the target node's real-time calculated bandwidth, provide rich reference information for the target prediction model to predict target flow control information, thereby improving the accuracy of the prediction results.

[0089] In some alternative implementations, when there are multiple target nodes, step a2 above includes:

[0090] Step a21: Receive the first idle data packet sent by the target node, and extract the target node's status information from the first idle data packet. See step a2 above for related content; further details will not be provided here.

[0091] Step a22: Write the status information of the target node into the preset information table.

[0092] Specifically, both the local node and the target node are equipped with a preset information table with the same structure, which is used to store the status information of the target node.

[0093] Step a23: If the amount of data in the first-level cache corresponding to multiple target nodes reaches the preset backpressure threshold, then obtain the traffic heat of each target node.

[0094] Specifically, traffic heat is the proportion of traffic from a target node in the total bandwidth. In practical applications, a target node may not send any data streams for a period of time, causing its traffic to drop to zero, and thus the traffic heat will decrease.

[0095] Step a24: Obtain target status information from a preset information table based on traffic heat to obtain target network performance information; wherein, target network performance information includes target status information and the traffic bandwidth of the target node corresponding to the target status information.

[0096] Specifically, local nodes acquire the target node's status information in descending order of traffic intensity, using this information as the target status information. This method of acquiring target status information based on traffic intensity allows local nodes to prioritize information crucial for backpressure control, improving the targeting and efficiency of information acquisition. Since the target prediction model establishes a mapping relationship between status information and backpressure control information (such as the target backpressure cycle), local nodes can promptly adjust the backpressure control information of the corresponding target node based on the currently acquired target status information, avoiding the problem of reduced bandwidth utilization due to prolonged backpressure. This management approach makes network traffic management more flexible and efficient, thereby ensuring the stable operation of the switching network.

[0097] The traffic control method provided in this embodiment obtains target status information from the status information of multiple target nodes stored in a preset information table based on the traffic heat of the target node. This information is then combined with the traffic bandwidth of the corresponding target node to obtain target network performance information. Therefore, local nodes can prioritize using the target prediction model to predict the target traffic control information of target nodes with high traffic heat, and adjust the traffic control for the corresponding target nodes in a timely manner. This avoids reducing the bandwidth utilization of local nodes due to prolonged traffic control, thereby ensuring the stable operation of the switching network.

[0098] In some optional implementations, the configuration information includes the effective time range for the secondary cache to provide caching services to the target node. Step S3023 above, which involves caching the data stream sent by the target node in the secondary cache according to the configuration information, includes: caching the data stream sent by the target node to the secondary cache within the effective time range.

[0099] The effective time range is characterized by the opening and closing times of the secondary cache for providing caching services to the target node. The opening time refers to the time when the secondary cache can be used for the target node's data. Understandably, since the secondary cache is shared, it may be fully occupied by data from other nodes. Therefore, when the target node needs to enable the secondary cache, data processing must be completed within the allocated opening and closing times. If not completed, the data will be discarded. The target prediction model will then record the data processing result for the target node and subsequently delay the target node's closing time. In practical applications, users can also manually adjust the weight ratio of the target node in the target prediction model based on its importance.

[0100] The flow control method provided in this embodiment, when the amount of data in the primary cache corresponding to the target node reaches a preset backpressure threshold, provides an effective time range for the secondary cache to provide caching services to the target node by the target prediction model. Within the effective time range, the data of the target node is cached in the secondary cache. Therefore, it can avoid the target node occupying the shared secondary cache resources for a long time, so as to centrally allocate the secondary cache resources and ensure the efficiency of network data processing.

[0101] In some optional implementations, the flow control method of this disclosure further includes: discarding the data of the target node in the secondary cache when the effective time range is exceeded, and recording the event. The parameters of the target prediction model are updated based on the event to obtain an updated target prediction model. Specifically, when predicting the effective time range for the secondary cache to provide caching services to the target node, the updated target prediction model delays the shutdown time of the target node.

[0102] In some optional implementations, the configuration information also includes the cache size allocated to the target node in the second-level cache. The aforementioned caching of the data stream sent by the target node in the second-level cache within the effective time frame includes:

[0103] Step b1: Allocate the corresponding cache area for the target node in the second-level cache according to the cache size.

[0104] Step b2: Within the valid time frame, cache the data stream sent by the target node to the cache area.

[0105] The flow control method provided in this embodiment is based on the fact that the secondary cache is shared and the flow characteristics of each target node are different. Therefore, when the amount of data in the primary cache corresponding to the target node reaches the preset backpressure threshold, the target prediction model gives the corresponding cache size allocated to each target node in the secondary cache, thereby ensuring that the local node can process the cached data of the target node during the backpressure control process of the target node.

[0106] In some optional implementations, the backpressure control information includes a target backpressure period and its corresponding number of periods. Step S3024 above includes: sending second indication information to the target node based on the backpressure control information to perform flow control on the target node; wherein, the second indication information is used to instruct the target node to periodically insert a second idle data packet during data transmission with the local node according to the target backpressure period and the number of periods.

[0107] It should be noted that the second idle data packet carries the target node's state information. Upon receiving the second idle data packet, the local node extracts this state information for use in the target prediction model to predict the next round of flow control information, without caching it, thus improving information processing efficiency. In other words, the second idle data packet is not cached by the local node.

[0108] The flow control method provided in this embodiment provides a target backpressure period and its corresponding number of periods when the amount of data in the first-level cache of the target node reaches a preset backpressure threshold. Therefore, it can dynamically adjust the backpressure period and number of periods of each target node according to the traffic characteristics of each target node, thereby avoiding the reduction of bandwidth utilization due to long-term backpressure and improving network performance.

[0109] In some optional implementations, the backpressure control information further includes a target backpressure level; the target node is configured with at least one preset backpressure level and a correspondence between the number of idle data packets; the preset backpressure level and the number of idle data packets are positively correlated; and the second indication information is used to instruct the target node to periodically insert a second number of idle data packets corresponding to the target backpressure level during the data transmission process with the local node, based on the target backpressure period, the number of periods, and the target backpressure level.

[0110] It should be noted that the number of second idle data packets sent within each target backpressure cycle increases with the increase of the backpressure level. In practical applications, the target prediction model can predict the increasing number of idle data packets at each preset backpressure level based on network performance information, transmission resource information, and the mapping relationship between preset backpressure levels, thus obtaining at least one correspondence between preset backpressure levels and the number of idle data packets. This correspondence is then sent to the target node for storage, so that when the target node receives the target backpressure level, it can determine the number of second idle data packets inserted in each target backpressure cycle corresponding to that target backpressure level based on this correspondence. Furthermore, the correspondence between at least one preset backpressure level and the number of idle data packets can be dynamically adjusted according to actual conditions.

[0111] Furthermore, the local node is also configured with at least one preset pressure level and a correspondence between the number of idle data packets. After obtaining the target backpressure level, the local node can determine the number of second idle data packets to be inserted in each target backpressure cycle corresponding to the target backpressure level based on the target backpressure level and the correspondence stored locally, and send this number to the target node so that the target node periodically inserts the number of second idle data packets corresponding to the target backpressure level into the data stream it sends.

[0112] It should be noted that the lowest preset backpressure level causes the target node to periodically insert a second idle data packet into the transmitted data stream (or data stream), which has little impact on normal data transmission. The highest preset backpressure level requires the remote node to directly stop transmitting the data stream and only send the second idle data packet to quickly relieve the pressure on the local node.

[0113] Understandably, this embodiment can control the data transmission of the target node in different levels by using the target backpressure cycle, the number of cycles, the target backpressure level, and the status information of the target node. It can achieve the transition from lightly inserting the second idle data packet to completely stopping the data stream (i.e., only sending the second idle data packet). The target node returns the status information of the target node according to the target backpressure level, and the local node optimizes the flow control again accordingly, accurately adjusts the flow, and prevents congestion.

[0114] The flow control method provided in this embodiment, when the amount of data in the first-level cache corresponding to the target node reaches the preset backpressure threshold, provides the target backpressure period, the number of periods, and the target backpressure level by the target prediction model, and controls the number of second idle data packets sent by the target node in each target backpressure period in a hierarchical manner. Therefore, it can accurately adjust the flow according to the flow characteristics of each target node to prevent congestion.

[0115] In summary, the flow control method disclosed herein has the following main characteristics:

[0116] Firstly, a two-level caching collaborative architecture: The flow control method disclosed herein designs a collaborative architecture of a first-level cache and a shared second-level cache. The first-level cache processes data independently for each target node, avoiding interference. The second-level cache is activated when the amount of data in the first-level cache reaches a preset backpressure threshold, storing the overflow data, thereby improving the cache utilization of the local node and reducing data loss and latency.

[0117] Secondly, tiered load distribution and information exchange: Data transmission from target nodes is controlled according to the target load distribution level predicted by the target prediction model, enabling a process from lightly inserting idle data packets to completely stopping data transmission from the target node. Target nodes send back their status information according to the target load distribution level, and local nodes further optimize flow control based on this information, precisely adjusting flow to prevent congestion.

[0118] Third, the target prediction module with multi-source data: The target prediction model integrates multi-source data such as the target node's traffic bandwidth, the target node's status information, the local node's cache space capacity, and the local node's bandwidth utilization. Through analysis, it dynamically adjusts the target backpressure cycle, the effective time range for the secondary cache to provide caching services to the target node, and the cache size, thereby accurately predicting the target node's traffic and realizing intelligent traffic management.

[0119] Fourth, intelligent management of status information: local nodes and target nodes are set up with the same preset information table. Local nodes obtain the status information of target nodes based on traffic heat, so that the target prediction model can establish a mapping relationship between status information and backpressure cycle. This allows local nodes to adjust backpressure strategy in a timely manner, avoid reducing bandwidth utilization due to long-term backpressure, and improve network performance.

[0120] Understandably, the flow control method of this disclosure effectively reduces data loss and latency by having an independent first-level cache and a shared second-level cache work together in a two-level caching collaborative architecture. Through tiered backpressure control and status information interaction, it precisely adjusts flow and avoids congestion. Utilizing a target prediction model based on multi-source data, the target prediction model dynamically optimizes backpressure and caching strategies to achieve intelligent flow control. Through intelligent status information management, status information is obtained based on flow intensity and a mapping relationship is established, ensuring effective flow control while avoiding bandwidth waste. The flow control method of this disclosure significantly improves network resource utilization, stability, and transmission efficiency, providing strong support for the stable and efficient operation of switching networks.

[0121] This embodiment also provides a flow control device for implementing the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that performs a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.

[0122] This embodiment provides a flow control device, such as... Figure 4 As shown, it includes:

[0123] The first processing module 401 is used to configure the first-level cache of the target node in response to the data transmission of the target node, and configure the data cache location corresponding to the target node as the first-level cache.

[0124] The second processing module 402 is used to switch the data cache location corresponding to the target node to the second-level cache and perform flow control on the target node when the amount of data in the first-level cache reaches the preset backpressure threshold; wherein, the second-level cache is configured as a shared cache for all nodes transmitting data to the local node.

[0125] In some alternative implementations, the second processing module 402 includes:

[0126] The information acquisition unit is used to acquire the target network performance information of the target node and the target transmission resource information of the local node.

[0127] The model prediction unit is used to obtain target flow control information for the target node based on target network performance information, target transmission resource information, and target prediction model. The target prediction model is obtained by training an initial prediction model based on associated historical network performance information, historical transmission resource information, and historical flow control information. The target flow control information includes backpressure control information and secondary cache configuration information.

[0128] The cache management unit is used to switch the data cache location corresponding to the target node to the second-level cache, and cache the data stream sent by the target node in the second-level cache according to the configuration information;

[0129] The flow control unit is used to control the flow of the target node based on back pressure control information.

[0130] In some optional implementations, the information acquisition unit includes:

[0131] The first acquisition subunit is used to acquire the traffic bandwidth corresponding to the target node and send first indication information to the target node; wherein, the first indication information is used to instruct the target node to periodically insert a first idle data packet during the data transmission process with the local node; the first idle data packet carries the status information of the target node;

[0132] The second acquisition subunit is used to receive the first idle data packet sent by the target node, extract the target node's status information from the first idle data packet, and obtain the target network performance information; wherein, the target network performance information includes traffic bandwidth and status information.

[0133] In some optional implementations, the second acquisition subunit is specifically used for: receiving a first idle data packet sent by the target node, extracting the target node's status information from the first idle data packet; writing the target node's status information into a preset information table; if there are multiple target nodes, and if the amount of data in the first-level cache corresponding to multiple target nodes reaches a preset backpressure threshold, then acquiring the traffic heat of each target node; acquiring the target status information from the preset information table based on the traffic heat to obtain the target network performance information; wherein, the target network performance information includes the target status information and the traffic bandwidth of the target node corresponding to the target status information.

[0134] In some optional implementations, the configuration information includes the effective time range for the second-level cache to provide caching services to the target node. The cache management unit includes:

[0135] The data caching subunit is used to cache the data stream sent by the target node to the second-level cache within the effective time range.

[0136] In some optional implementations, the configuration information also includes the cache size allocated to the target node in the second-level cache. The data caching subunit is specifically used to: allocate a corresponding cache area for the target node in the second-level cache according to the cache size; and cache the data stream sent by the target node into the cache area within the valid time frame.

[0137] In some optional implementations, the back pressure control information includes the target back pressure cycle and its corresponding number of cycles. The flow control unit includes:

[0138] The flow control subunit is used to send a second indication information to the target node based on the backpressure control information in order to perform flow control on the target node; wherein, the second indication information is used to instruct the target node to periodically insert a second idle data packet during the data transmission with the local node according to the target backpressure period and the number of periods.

[0139] In some optional implementations, the backpressure control information further includes a target backpressure level; the target node is configured with at least one preset backpressure level and a correspondence between the number of idle data packets; the preset backpressure level and the number of idle data packets are positively correlated; and the second indication information is used to instruct the target node to periodically insert a second number of idle data packets corresponding to the target backpressure level during the data transmission process with the local node, based on the target backpressure period, the number of periods, and the target backpressure level.

[0140] Further functional descriptions of the above modules and units are the same as those in the corresponding embodiments described above, and will not be repeated here.

[0141] In this embodiment, the flow control device is presented in the form of a functional unit. Here, a unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that execute one or more software or fixed programs, and / or other devices that can provide the above functions.

[0142] This disclosure also provides an electronic device; please refer to [link to relevant documentation]. Figure 5 , Figure 5 This is a structural block diagram of an electronic device provided in an optional embodiment of this disclosure, such as... Figure 5As shown, the electronic device includes one or more processors 501, a memory 502, and interfaces for connecting the components, including high-speed interfaces and low-speed interfaces. The components communicate with each other via different buses and can be mounted on a common motherboard or otherwise installed as needed. The processors can process instructions executed within the electronic device, including instructions stored in or on memory to display graphical information of a GUI on an external input / output device (such as a display device coupled to the interface). In some alternative implementations, multiple processors and / or multiple buses can be used with multiple memories and multiple memory modules, if desired. Similarly, multiple electronic devices can be connected, each providing some of the necessary operations (e.g., as a server array, a group of blade servers, or a multiprocessor system). Figure 5 Take a processor 501 as an example.

[0143] Processor 501 may be a central processing unit, a network processor, or a combination thereof. Processor 501 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The programmable logic device may be a complex programmable logic device (CAMP), a field-programmable gate array (FPGA), a general-purpose array logic (GDA), or any combination thereof.

[0144] The memory 502 stores instructions executable by at least one processor 501 to cause at least one processor 501 to perform the flow control method shown in the above embodiments.

[0145] Memory 502 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data created based on the use of the electronic device. Furthermore, memory 502 may include high-speed random access memory and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some alternative embodiments, memory 502 may optionally include memory remotely located relative to processor 501, and these remote memories may be connected to the electronic device via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

[0146] Memory 502 may include volatile memory, such as random access memory; memory may also include non-volatile memory, such as flash memory, hard disk or solid-state drive; memory 502 may also include combinations of the above types of memory.

[0147] The electronic device also includes a communication interface 503 for communicating with other devices or communication networks.

[0148] This disclosure also provides a computer-readable storage medium in which the methods described in this disclosure can be implemented in hardware or firmware, or implemented as recordable on a storage medium, or implemented as computer code originally stored on a remote storage medium or a non-transitory machine-readable storage medium and subsequently stored on a local storage medium after being downloaded over a network. Thus, the methods described herein can be processed by software stored on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. The storage medium may be a magnetic disk, optical disk, read-only memory, random access memory, flash memory, hard disk, or solid-state drive, etc.; further, the storage medium may also include combinations of the above types of memory. It is understood that computers, processors, microprocessor controllers, or programmable hardware include storage components capable of storing or receiving software or computer code that, when accessed and executed by the computer, processor, or hardware, implements the methods shown in the above embodiments.

[0149] A portion of this disclosure can be applied to computer program products, such as computer program instructions, which, when executed by a computer, can invoke or provide methods and / or technical solutions according to this disclosure through the operation of the computer. Those skilled in the art will understand that the forms in which computer program instructions exist in a computer-readable medium include, but are not limited to, source files, executable files, and installation package files. Accordingly, the ways in which computer program instructions are executed by a computer include, but are not limited to: the computer directly executing the instructions; the computer compiling the instructions and then executing the corresponding compiled program; the computer reading and executing the instructions; or the computer reading and installing the instructions and then executing the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to a computer.

[0150] Although embodiments of the present disclosure have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the present disclosure, and such modifications and variations all fall within the scope defined by the appended claims.

Claims

1. A flow control method, characterized in that, Applicable to nodes in a switching network, the method includes: In response to data transmission at the target node, configure the first-level cache of the target node, and configure the data cache location corresponding to the target node as the first-level cache; When the amount of data in the first-level cache reaches a preset backpressure threshold, the data cache location corresponding to the target node is switched to the second-level cache, and traffic control is performed on the target node; wherein, the second-level cache is configured as a shared cache for all nodes transmitting data to the local node; The step of switching the data cache location corresponding to the target node to the second-level cache and performing traffic control on the target node includes: Obtain the target network performance information of the target node and the target transmission resource information of the local node; Based on the target network performance information, the target transmission resource information, and the target prediction model, target flow control information for the target node is obtained; wherein, the target prediction model is obtained by training an initial prediction model based on associated historical network performance information, historical transmission resource information, and historical flow control information; the target flow control information includes backpressure control information and the configuration information of the secondary cache; Switch the data cache location corresponding to the target node to the second-level cache, and cache the data stream sent by the target node in the second-level cache according to the configuration information; Flow control is performed on the target node based on the back pressure control information.

2. The flow control method according to claim 1, characterized in that, The step of obtaining the target network performance information of the target node includes: The system obtains the traffic bandwidth corresponding to the target node and sends first indication information to the target node; wherein, the first indication information is used to instruct the target node to periodically insert a first idle data packet during the data transmission process with the local node; the first idle data packet carries the status information of the target node; The system receives the first idle data packet sent by the target node, extracts the status information of the target node from the first idle data packet, and obtains the target network performance information; wherein, the target network performance information includes the traffic bandwidth and the status information.

3. The flow control method according to claim 2, characterized in that, When there are multiple target nodes, receiving the first idle data packet sent by the target node and extracting the status information of the target node from the first idle data packet to obtain the target network performance information includes: Receive the first idle data packet sent by the target node, and extract the status information of the target node from the first idle data packet; Write the status information of the target node into a preset information table; If the amount of data in the first-level cache corresponding to multiple target nodes reaches the preset backpressure threshold, then the traffic heat of each target node is obtained. Based on the traffic heat, target status information is obtained from the preset information table to obtain target network performance information; wherein, the target network performance information includes the target status information and the traffic bandwidth of the target node corresponding to the target status information.

4. The flow control method according to claim 1, characterized in that, The configuration information includes the effective time range for the secondary cache to provide caching services to the target node; caching the data stream sent by the target node in the secondary cache according to the configuration information includes: Within the effective time range, the data stream sent by the target node is cached in the second-level cache.

5. The flow control method according to claim 4, characterized in that, The configuration information also includes the cache size allocated to the target node in the secondary cache; The step of caching the data stream sent by the target node to the second-level cache within the effective time range includes: According to the cache size, allocate a corresponding cache area for the target node in the secondary cache; Within the effective time range, the data stream sent by the target node is cached in the cache area.

6. The flow control method according to claim 1, characterized in that, The backpressure control information includes the target backpressure cycle and its corresponding number of cycles; the flow control of the target node based on the backpressure control information includes: Based on the backpressure control information, a second indication information is sent to the target node to perform flow control on the target node; wherein, the second indication information is used to instruct the target node to periodically insert a second idle data packet during the data transmission process with the local node according to the target backpressure cycle and the number of cycles.

7. The flow control method according to claim 6, characterized in that, The backpressure control information also includes a target backpressure level; the target node is configured with at least one preset backpressure level and a correspondence between the number of idle data packets; the preset backpressure level is positively correlated with the number of idle data packets; the second indication information is used to instruct the target node to periodically insert a second number of idle data packets corresponding to the target backpressure level during the data transmission process with the local node, based on the target backpressure period, the number of periods, and the target backpressure level.

8. An electronic device, characterized in that, include: A memory and a processor are communicatively connected, the memory storing computer instructions, and the processor executing the computer instructions to perform the flow control method of any one of claims 1 to 7.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for causing the computer to perform the flow control method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Buffer control apparatus and method

    US6473432B1