Flow balance control method and device

By calculating the normalized transmission duration on the device port and using arbitration logic, bandwidth allocation is dynamically adjusted, which solves the problems of bandwidth fluctuation and performance imbalance in the existing technology, achieves adaptive balancing of traffic and bandwidth, and avoids system congestion and deadlock.

CN118590445AActive Publication Date: 2024-09-03WUXI STARS MICRO SYSTEM TECHNOLOGIES CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202410627168.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-20
Publication Date
2024-09-03
Estimated Expiration
2044-05-20

AI Technical Summary

Technical Problem

Existing technologies cannot effectively solve the problems of bandwidth fluctuation, performance imbalance and system delay in traffic control and balancing, leading to system congestion and deadlock.

Method used

By receiving requests at the input and output ports of the device, it calculates the normalized transmission duration, dynamically adjusts bandwidth allocation, realizes orderly competition and on-demand allocation, and uses arbitration logic and rate feedback signals to perform adaptive balancing of traffic and bandwidth.

Benefits of technology

Transform disorderly competition into orderly competition, dynamically adjust bandwidth allocation, avoid system congestion and deadlock, achieve adaptive balance of traffic and bandwidth, and ensure fairness and stability of bandwidth utilization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118590445A
    Figure CN118590445A
Patent Text Reader

Abstract

The invention provides a traffic balance control method and device, and the method comprises the steps: receiving an external request through an input port of equipment, and determining the size of a data package corresponding to the request; obtaining the bandwidth allocated to the input port, and determining the normalized transmission duration of the data packet corresponding to the request according to the size of the data packet corresponding to the request, the actual data bit width and the bandwidth; determining the sending time corresponding to the next request based on the normalized transmission duration of the request data packet; distributing the request to a specified output port according to a route corresponding to the request; the bandwidth allocated to the output port is obtained at the output port according to the same principle, and the normalized transmission duration of the data packet corresponding to the request is determined according to the size of the data packet corresponding to the request, the actual data bit width and the system bandwidth; and determining the sending time corresponding to the next request based on the normalized transmission duration of the request data packet. According to the method and the device, the problems of blockage, delay, bandwidth fluctuation and bandwidth imbalance caused by disordered competition are reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of network traffic control, and in particular, relates to a method and apparatus for device traffic control and balancing. Background Art

[0002] In computer networks, communication systems, and related engineering fields, flow control and balancing technologies are used to effectively manage and optimize data transmission rates, prevent congestion, and ensure the reasonable allocation of network resources and stable system operation. Its main purpose is to ensure that the sender does not send data to the receiver too quickly, prevent the receiver from being unable to process in time, resulting in data loss or service quality degradation, and reasonably maximize the use of system bandwidth and avoid large fluctuations in data services. Therefore, flow control and balancing technologies are crucial both in the design of the chip and in the system topology network applications outside the chip. Summary of the invention

[0003] The purpose of the present application is to provide a method and device for flow control and balancing, aiming to solve the problems of bandwidth fluctuation, performance imbalance and system delay by allocating on demand and according to actual capacity.

[0004] According to a first aspect of the present application, a flow balancing control method is provided, comprising:

[0005] receiving an external request through an input port of the device and determining a size of a request data packet;

[0006] Obtaining the bandwidth and actual data bit width allocated to the input port, and determining a first normalized transmission duration of the data packet corresponding to the request according to the size of the request data packet, the actual data bit width and the bandwidth;

[0007] Determining a sending time of a next request of the input port based on a first normalized transmission duration of the request data packet;

[0008] Allocating the request to a specified output port according to the route corresponding to the request;

[0009] Obtaining the bandwidth and actual data bit width allocated to the output port, and determining a second normalized transmission duration of the data packet corresponding to the request according to the size of the request data packet, the actual data bit width and the bandwidth;

[0010] Based on the second normalized transmission duration of the request data packet, a sending time of a next request of the output port is determined.

[0011] In an optional implementation, the determining the sending time of the next request of the input port or the output port based on the normalized transmission duration of the request data packet further includes:

[0012] When the request starts to be sent, a timer is started, and after the timer reaches the normalized transmission duration of the request data packet, the next request starts to be sent.

[0013] In an optional implementation, the determining the sending time of the next request of the input port based on the first normalized transmission duration of the data packet corresponding to the request further includes:

[0014] When the request starts to be sent, a timer is started, and after the timer reaches a first normalized transmission duration of the request data packet, the next request is started to be sent;

[0015] The determining, based on the second normalized transmission duration of the data packet corresponding to the request, a sending time of the next request of the output port further comprises:

[0016] When the request starts to be sent, a timer is started, and after the timer reaches the second normalized transmission duration of the request data packet, the next request starts to be sent.

[0017] In an optional implementation, after determining the sending time of the next request of the input port, the method further includes:

[0018] Utilizing the arbitration logic of the input ports to balance traffic distribution among the multiple input ports according to a preset weight;

[0019] Before determining the sending time of the next request of the output port, the method further comprises:

[0020] The arbitration logic of the output ports is utilized to balance the flow distribution among the multiple output ports according to the preset weights.

[0021] In an optional embodiment, the method further comprises:

[0022] receiving a rate feedback signal, and adjusting a bandwidth allocated to an input port or an output port according to the rate feedback signal;

[0023] Based on the adjusted bandwidth, re-determine the first or second normalized transmission duration of the data packet corresponding to the request;

[0024] Based on the re-determined first or second normalized transmission duration, a sending time of the next request is re-determined.

[0025] In an optional implementation manner, before the receiving rate feedback signal, the method further includes:

[0026] When a rate change, a working mode change or other node abnormal events occur, the rate feedback signal is sent to the device.

[0027] According to a second aspect of the present application, a flow control and balancing device is provided, comprising:

[0028] A first request receiving unit, configured to receive an external request through an input port of the device and determine a size of a request data packet;

[0029] A first transmission duration determining unit, configured to obtain the bandwidth and the actual data bit width allocated to the input port, and determine a first normalized transmission duration of the data packet corresponding to the request according to the size of the request data packet, the actual data bit width and the bandwidth;

[0030] A first time normalization unit, configured to determine a sending time of a next request of the input port based on a first normalized transmission duration of the request data packet;

[0031] A second request receiving unit, configured to distribute the request to a designated output port according to a route corresponding to the request;

[0032] A second transmission duration determining unit, configured to obtain the bandwidth and the actual data bit width allocated to the output port, and determine a second normalized transmission duration of the data packet corresponding to the request according to the size of the request data packet, the actual data bit width and the bandwidth;

[0033] The second time normalization unit determines a sending time of a next request of the output port based on a second normalized transmission duration of the request data packet.

[0034] Compared with the related art, the technical solution of this application has the following advantages:

[0035] Transform disordered competition into orderly competition, ensure that bandwidth is allocated dynamically according to the real-time status and request status of each input port and each output port of the node; smooth out bandwidth fluctuations, performance imbalance and system delays caused by a large number of sudden requests; allocate on demand and according to actual capacity to avoid system congestion and deadlock. This method adjusts the allocation of node bandwidth in real time according to rate feedback, dynamically adjusts node bandwidth, and realizes adaptive balance of traffic and bandwidth. The data channels that the switching nodes need to connect can be parameterized and designed, flexibly reused and quickly networked and expanded. This method is widely applicable to each switching node inside the chip, the sub-nodes inside the chip as virtual nodes, and even the entire chip and the larger system dimension are regarded as switching nodes. Therefore, this method is not limited to the design of physical concepts. The input ports and output ports of the node can be controlled in both physical channel concepts and virtual channel concepts. As long as the ports are given identifiable identities, they can be arbitrarily expanded and implemented.

[0036] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained through the structures and processes indicated in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. It is obvious that the drawings described below are certain embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0038] Figure 1 This is a schematic diagram of the blocking, delay, bandwidth fluctuation and bandwidth imbalance problems caused by disorderly competition.

[0039] Figure 2 It is a schematic diagram of orderly competition to solve the problems of congestion, delay, bandwidth fluctuation and bandwidth imbalance.

[0040] Figure 3 It is a functional diagram of a switching node implementation according to an exemplary embodiment of the present application.

[0041] Figure 4 It is an overall flow chart of the exemplary flow balancing control method according to the present application.

[0042] Figure 5-Figure 7 is a flow chart of an exemplary embodiment of a flow balancing control method according to the present application.

[0043] Figure 8 Diagram of a flow control and balancing system according to an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0044] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0045] Traditional traffic and balancing methods are mainly controlled based on the number of requests, such as "credit" in the PCIe protocol and "outstanding" in the AXI bus protocol. "Credit" ensures the orderliness of data transmission and avoids data packet loss. "Credit" is used between the sender and the receiver to ensure whether data can be sent and received. The number of "outstanding" represents the ability to continue to transmit data without completing the transmission process. Therefore, whether it is "credit" or "outstanding" or other mechanisms, they are essentially transmission mechanisms based on the number of requests. Data can be transmitted within the pre-allocated number of requests. A request actually corresponds to the ability to transmit a data packet of a certain size. If the requests are exhausted, the transmission can only continue after the data transmission of the previous request is completed and the new number of requests is released.

[0046] Traditional traffic and balancing methods only consider controlling transmission capacity within a pre-given capacity range. Since the data transmission corresponding to each request requires actual transmission time, sending requests according to one's own pre-allocated capacity cannot solve the excessive bandwidth occupation caused by burst access, nor can it solve the disordered competition between multiple master devices, and it is even impossible to give differentiated control according to different slave devices, which leads to excessive traffic fluctuations and low bandwidth utilization, increased latency, and even blocking other ports due to disordered competition, causing system congestion. In addition, since the pre-given number of requests cannot be adaptively adjusted when the actual bandwidth allocation in the system has changed, once the bandwidth changes in the system, the request capacity is too small, resulting in insufficient actual bandwidth utilization, or the request capacity is too large, resulting in system overload and congestion. At the same time, it cannot guarantee that the capacity of the node is evenly released for other port requests, and too many requests from a single port further lead to the inability of other multiple ports to obtain requests in time, thereby introducing excessive system delays and causing uneven bandwidth allocation between ports. Once this problem spreads, the entire system will be congested and paralyzed.

[0047] like Figure 1As shown in the figure, assuming that three master devices M0, M1 and M2 can access slave devices S0, S1 and S2 through node N0, if master device M1 sends multiple requests REQ0, REQ1, REQ2, ... REQL according to its own capabilities, the short-term intensive requests will quickly lead to congestion, so that the requests REQM and REQN sent by the other two master devices M1 and M2 cannot be processed in time. At the same time, since the data transmission time required after the request of master device M0 reaches slave device S3 becomes longer due to too many requests, the data transmission delay obtained by the subsequent requests of other master devices after reaching S3 becomes longer. In addition, due to the disordered request competition between master devices and the disordered request competition that reaches slave devices after being routed by nodes, the system bandwidth fluctuates too much with the change of competition (change in the number of requests), and the system bandwidth allocation cannot achieve fair and reasonable balance.

[0048] like Figure 2 As shown in the figure, from the device side, in terms of time, the data transmission of another new request can only be completed after the data transmission of one request is completed. Therefore, the actual data transmission behavior determines that all requests are only cached in the request queue. In the best case, the new request can only continue to transmit in a continuous flow after the data transmission of the previous request is completed. This is the actual physical limit of the system. Figure 2 The dotted boxes D0, D2, ..., DN in the figure represent the time of each data transmission. Therefore, if each request is processed in a normalized, discretized and uniform manner according to the actual system capacity, the disordered competition can be transformed into an orderly competition, thereby solving the problems of blocking, delay, bandwidth fluctuation and bandwidth imbalance caused by disordered competition in the traditional flow control and balancing process. On this basis, the dynamic change process of the system bandwidth is further considered (such as the change of the system bandwidth caused by the change of rate negotiation, the working mode of the master and slave devices, whether the master and slave devices are already working, etc.), and dynamic normalization, discretization and uniform processing are realized, thereby solving the problems in the traditional flow control and balancing process in real time and efficiently.

[0049] Based on the above analysis, the present application provides a method and device for flow control and balancing, which changes the disordered competition of the system into orderly competition, performs orderly allocation and flow balancing according to the input bandwidth and output bandwidth of each device in the system, and performs differentiated control on the input and output of the node according to the actual or real-time allocated upper limit bandwidth. When the number of access ports of the input node changes, resulting in different input bandwidths, or the input bandwidths are different due to changes in the working modes of some access ports, or other fluctuations cause different input bandwidths, real-time on-demand allocation is performed, and orderly competition control is performed in the output direction. The bandwidth allocation is always based on the actual capabilities of different output nodes and the input request capabilities, ensuring balanced allocation according to the actual request capabilities among all input bandwidth requests, and the bandwidth allocation can be dynamically controlled in real time according to the rate fluctuations occurring in the system.

[0050] Taking the exchange node as an example, Figure 3 This is a functional diagram of a switching node implementation of an exemplary embodiment of the present application. By implementing multiple switching nodes that control and balance according to data flow, the flow control and balance of the entire system can be achieved after the paths in the system are connected as required. The number of switching nodes in the system is allocated according to the system situation, and the number of input ports and the number of output ports of each switching node can be the same or different. Figure 3 Each functional component in the switch node is described as follows:

[0051] IN is an input array of M+1 ports on the switching node. The input port can be considered as the initiator of access. Each input port has both the access initiation process and the access result feedback process, so it is a bidirectional port.

[0052] MR0, MR1, MR2, MR3, ..., MRM are the corresponding requests on each input port. The request is usually initiated by the upstream node or the upstream master device. The request is the processing process of the sending direction in different protocols. For example, in the PCIe protocol, it is the sending process of the corresponding request packet (read request packet or write request packet); in the AXI protocol, it is the sending process of the corresponding request (read) or request and data packet (write);

[0053] MA0, MA1, MA2, MA3, ..., MAM are the corresponding responses on each input port. The responses are usually returned by the downstream node or the downstream slave device, which is the return and confirmation of the corresponding request result, that is, the processing process in the receiving direction;

[0054] IN0, IN1, IN2, IN3, …, INM are the control logics corresponding to each input port, and the above-mentioned normalized time control is performed according to the data packet size corresponding to each request. The data packet size corresponding to the request, the data bit width, and the bandwidth capacity allocated to the port determine that the duration occupied by the current data transmission when the request and the existence of data transmission are different, or the duration occupied by the response return data corresponding to the request when there is data return is different. According to this strategy, the duration allocated to each request is normalized and discretized, that is, the next request allowed after each request can only be sent after the normalized duration of the current request;

[0055] MP0, MP1, MP2, MP3, ..., MPM are protocol conversion processing modules corresponding to each input port. Since input requests may come from different protocols, protocol conversion processing needs to be provided to simplify routing design;

[0056] MA0 is the arbitration logic of the input matrix, which is an optional design. It distributes traffic according to weights to ensure that after the flow control of each input and output port is completed, the flow distribution between the input and output ports can be balanced according to the set weights.

[0057] R0 is the routing map. All input requests are assigned to different output requests according to the routing map. That is, the corresponding output port is found according to the destination of the request. At the same time, the corresponding response is returned to the request end of the input port according to the routing map.

[0058] OUT is an M+1 output matrix on the switching node. The request of the input port enters the output matrix according to the routing mapping of R0. At the same time, the response returns from the output matrix and enters the routing mapping and returns to the input port. Therefore, each output port of the output matrix is ​​also a bidirectional port.

[0059] SA0 is the arbitration logic of the output matrix, which is an optional design. It distributes traffic according to weights to ensure that after the flow control of each input and output port is completed, the flow distribution between the input and output ports can be balanced according to the set weights.

[0060] OUT0, OUT1, OUT2, OUT3, ..., OUTN are the control logic corresponding to each output port. The requests that arrive at each output port after routing mapping are also time-normalized and controlled according to the data packet size corresponding to each request. The normalization and discretization strategies are the same as those of IN0, IN1, IN2, IN3, ..., INM;

[0061] SP0, SP1, SP2, SP3, ..., SPN are protocol conversion processing modules corresponding to each output port. Since the output ports may correspond to different protocol types, it is necessary to provide possible protocol conversion processing to support different protocols.

[0062] SR0, SR1, SR2, SR3, ..., SRN are the corresponding requests on each output port, which are transmitted from the input port to the next node or slave device via the output port after routing mapping;

[0063] SA0, SA1, SA2, SA3, ..., SAN are the corresponding responses on each output port. The responses are usually returned by the downstream node or the downstream slave device, and then returned to the corresponding input port and returned to the upstream node or master device after routing mapping;

[0064] RF0 is a rate feedback signal, which is used to adjust the traffic of a switching node or some ports. Since the bandwidth in the system may change dynamically, such as rate changes, working mode changes, or other node abnormalities, these rate feedback signals can be used to adjust the bandwidth allocation on the switching node in real time.

[0065] C0 is a configurable register used to change the dynamic control strategy. For example, it can implement the maximum bandwidth, guaranteed bandwidth or priority differentiated control strategy for the specified input port or output port. Given the different control strategies of these ports, it can be equivalently converted into normalization and discretization processing of the port.

[0066] DA0 is a dynamic adjustment control unit, which is used to dynamically adjust the traffic of the switching node or some ports according to the rate feedback signal RF0 or the configurable register C0. It mainly performs real-time adjustment based on the switching nodes or ports affected by the rate, that is, according to the ratio between the new bandwidth and the previous bandwidth, calculates the new normalized duration and performs discretization processing.

[0067] As described above, on the switching nodes of the data path, the input and output directions are normalized, discretized and homogenized according to the requested data packet size, and real-time dynamic adjustments are made according to the actual situation of the system. Each input on any switching node is regarded as the initiator or transmitter of the access, and each output is regarded as the recipient or transmitter of the access after routing.

[0068] Normalization refers to normalizing the request waiting according to the size of the request data packet, that is, if the data packet size of the current request is P0, and the corresponding request data packet transmission time is T0, then considering the data transmission time, the time when the next request is issued can be issued after T0. Similarly, if the data packet size of the new request is P1, and its corresponding transmission time is T1, then the next request after this can be issued after T1. The transmission time of the data packet is related to the data packet size, the actual data bit width, and the actual allocation capacity. Therefore, according to this principle, the time to issue the next request after each request can be calculated in a normalized manner in time, thereby controlling the request rhythm.

[0069] Discretization means that after the requests of each port are normalized and controlled according to the previous time, all the requests of each port are actually discretized according to the actual capacity.

[0070] Homogenization means that after all ports are normalized and discretized as required, the requests between them must present uniform density in time. Whether it is input or output direction, when one or some ports are working or not working, and when switching between working and not working, such uniformization effect will still dynamically act on all working ports. This means that the method of the present application has nothing to do with the number of ports themselves, and whether a specific port is temporarily working or not, but only with the actual bandwidth on the system switching node, how many ports are working, and the data density distribution of each port request per unit time, so flow control and balance can be achieved.

[0071] Based on the structure of the above switching node, see Figure 4 The flow balance control method provided in this application includes:

[0072] Step 101: receiving an external request through an input port of a device and determining the size of a request data packet;

[0073] Step 102: Obtain the bandwidth and actual data bit width allocated to the input port, and determine a first normalized transmission duration of the data packet corresponding to the request according to the size of the request data packet, the actual data bit width and the bandwidth;

[0074] Step 103: Determine a sending time of a next request of the input port based on a first normalized transmission duration of the request data packet;

[0075] Step 104: Allocate the request to a designated output port according to the route corresponding to the request;

[0076] Step 105: Obtain the bandwidth and actual data bit width allocated to the output port, and determine a second normalized transmission duration of the data packet corresponding to the request according to the size of the request data packet, the actual data bit width and the bandwidth;

[0077] Step 106: Determine the sending time of the next request of the output port based on the second normalized transmission duration of the request data packet.

[0078] like Figure 5 According to an optional implementation manner, the step 103, based on the first normalized transmission duration of the request data packet, determines the sending time of the next request of the input port, specifically comprising:

[0079] Step 203: When the request starts to be sent, a timer is started, and after the timer reaches the first normalized transmission duration of the request data packet, the next request is started to be sent.

[0080] The step 106, determining the sending time of the next request of the output port based on the second normalized transmission duration of the request data packet, specifically includes:

[0081] Step 206: When the request starts to be sent, a timer is started, and after the timer reaches the second normalized transmission duration of the request data packet, the next request is started to be sent.

[0082] The packet size corresponding to the request, the data bit width, and the bandwidth capacity allocated to the port determine that the request and the corresponding sending data or the corresponding response data occupy different lengths of time. According to this strategy, the duration allocated to each request is normalized and discretized, that is, the next request allowed after each request can only be sent after the normalized duration of the current request. For example, if the packet size of the current request is P0, and the corresponding packet transmission time of the request is T0, then considering the data transmission time, the next request can be issued after T0. Similarly, if the packet size of the new request is P1, and its corresponding transmission time is T1, then the next request after this can be issued after T1.

[0083] like Figure 6 According to an optional implementation manner, after step 103, the method further includes:

[0084] Step 1031: Utilize the arbitration logic of the input port to balance the traffic distribution among the multiple input ports according to the preset weights.

[0085] According to an optional implementation, before step 106, the method further includes:

[0086] Step 1061: Utilize the arbitration logic of the output port to balance the traffic distribution among the multiple output ports according to the preset weights.

[0087] like Figure 7 According to an optional implementation manner, after step 106, the method further includes:

[0088] Step 107: Receive a rate feedback signal, adjust the bandwidth allocated to the input port or the output port according to the rate feedback signal, and re-determine the first or second normalized transmission duration of the request data packet based on the adjusted bandwidth. Re-determine the sending time of the next request data packet based on the re-determined first or second normalized transmission duration.

[0089] In a specific embodiment, when an event such as a rate change, a working mode change, or other node abnormality occurs, the rate feedback signal is generated to perform bandwidth reallocation.

[0090] Figure 8 This is a diagram of the system connection implementation after the switching node designed by the present application. Each circle represents a switching node in the chip. For the starting node without input and the end node without output, there is actually a corresponding control concept of a master device and a slave device in the system. That is to say, from the example of the switching node, it is easy to think of a master device as the initiator of access. As long as the control related to the output port is well designed, the inventive concept of the present application is still met; similarly, a slave device as the recipient of access, as long as the control related to the input port is well designed, the inventive concept of the present application is still met. Furthermore, from a broad perspective, the switching node is not limited to the chip. After the method of the present application is extended to the chip or a higher system level, it actually still follows the concept of the switching node of the present application.

[0091] By adopting the method of the present application, time normalization, discretization and uniform allocation are performed on any switching node according to the allocated input requests and the output requests that reach the target after routing, so as to avoid excessive crowding and disorderly competition. If the bandwidth of the input request is less than the actual output request bandwidth capacity, all input requests will obtain the bandwidth capacity allocated according to their own request situation. If there is an input request whose bandwidth is greater than the actual output request bandwidth capacity, since all input requests are time normalized, discretized and uniformly allocated, the master of each request will obtain the corresponding allocation ratio on the output request bandwidth according to the actual request situation. When there is a new input request, since all previous input requests are time normalized, discretized and uniformly allocated, regardless of whether the new input request causes the output request bandwidth to be greater than the actual system capacity, the allocation is always balanced and fair, and will not cause the new input request to fail to obtain a timely response. The output requests are time-normalized, discretized, and evenly distributed according to the target requests that arrive after routing, achieving differentiated control and distribution based on the delays and requests between different targets, minimizing system congestion and deadlock, ensuring that all requests are evenly and balancedly distributed according to the actual capacity of the system, avoiding excessive bandwidth fluctuations and system delays, and adjusting control in real time based on actual bandwidth feedback.

[0092] Those skilled in the art will appreciate that the flow balancing control method provided by the present application is not limited to a switching node, but is any node or device in a network. When the device is used only as a receiver, that is, only has an input port but no output port, only the request data packets of the input port need to be normalized. Similarly, when the device is used only as a sender, that is, only has an output port but no input port, only the request data packets of the output port need to be normalized.

[0093] It can be seen that the flow balance control method provided by this application has the following advantages compared with the related technologies:

[0094] Transform disordered competition into orderly competition, ensure that bandwidth is dynamically allocated according to the real-time status and request status of each input port and each output port of the node, smooth out bandwidth fluctuations, performance imbalance and system delays caused by a large number of sudden requests, allocate on demand and according to actual capabilities, and avoid system congestion and deadlock. This method adjusts the allocation of node bandwidth in real time according to rate feedback, dynamically adjusts node bandwidth, and realizes adaptive balance of traffic and bandwidth. The data channels that the switching nodes need to connect can be parameterized and designed, flexibly reused and quickly networked and expanded. This method is widely applicable to each switching node inside the chip, the sub-nodes inside the chip as virtual nodes, and even the entire chip and larger system dimensions are regarded as switching nodes. Therefore, this method is not limited to the design of physical concepts. The input ports and output ports of the node can be controlled in both physical channel concepts and virtual channel concepts. As long as the ports are given identifiable identities, they can be arbitrarily expanded and implemented.

[0095] Accordingly, the present application provides a flow balancing control device in a second aspect, comprising:

[0096] A request receiving unit, configured to receive an external request through an input port of the device, or receive a routed request from the input port through an output port of a switching node, and determine a size of a request data packet;

[0097] A transmission duration determining unit, configured to obtain a bandwidth allocated to the input port or the output port, and determine a transmission duration of the request data packet according to a size of the request data packet, an actual data bit width, and the bandwidth;

[0098] The time normalization unit performs normalization processing based on the transmission time of the request data packet and the transmission time of the same data packet under the actual system capacity, and determines the sending time of the next request of the input port or the output port.

[0099] The above-mentioned device can be implemented by the flow balancing control method provided by the embodiment of the first aspect above. The specific implementation method can be found in the description of the embodiment of the first aspect, and will not be repeated here.

[0100] It is understood that the structures, names and parameters described in the above embodiments are only examples. Those skilled in the art can also easily think of combinations and adjustments to the structural features of the above embodiments according to the use requirements, and should not limit the concept of the present application to the specific details of the above examples.

[0101] Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that he or she may still modify the technical solutions described in the aforementioned embodiments, or make equivalent substitutions for some of the technical features therein; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A flow balance control method, characterized in that: include: receiving an external request through an input port of the device and determining a size of a request data packet; Obtaining the bandwidth and actual data bit width allocated to the input port, and determining a first normalized transmission duration of the data packet corresponding to the request according to the size of the request data packet, the actual data bit width and the bandwidth; Determining a sending time of a next request of the input port based on a first normalized transmission duration of the request data packet; Allocating the request to a specified output port according to the route corresponding to the request; Obtaining the bandwidth and actual data bit width allocated to the output port, and determining a second normalized transmission duration of the data packet corresponding to the request according to the size of the request data packet, the actual data bit width and the bandwidth; Based on the second normalized transmission duration of the request data packet, a sending time of a next request of the output port is determined.

2. The flow balance control method according to claim 1, characterized in that: The determining, based on a first normalized transmission duration of a data packet corresponding to the request, a sending time of a next request of the input port further comprises: When the request starts to be sent, a timer is started, and after the timer reaches a first normalized transmission duration of the request data packet, the next request is started to be sent; The determining, based on the second normalized transmission duration of the data packet corresponding to the request, a sending time of the next request of the output port further comprises: When the request starts to be sent, a timer is started, and after the timer reaches the second normalized transmission duration of the request data packet, the next request starts to be sent.

3. The flow balance control method according to claim 1, characterized in that: After determining the sending time of the next request of the input port, the method further comprises: Utilizing the arbitration logic of the input ports to balance traffic distribution among the multiple input ports according to a preset weight; Before determining the sending time of the next request of the output port, the method further comprises: The arbitration logic of the output ports is utilized to balance the flow distribution among the multiple output ports according to the preset weights.

4. The flow balance control method according to claim 1, characterized in that: The method further comprises: receiving a rate feedback signal, and adjusting a bandwidth allocated to an input port or an output port according to the rate feedback signal; Based on the adjusted bandwidth, re-determine the first or second normalized transmission duration of the data packet corresponding to the request; Based on the re-determined first or second normalized transmission duration, a sending time of a next request of the input port or the output port is re-determined.

5. The flow balance control method according to claim 4, characterized in that: Before receiving the rate feedback signal, the method further includes: When a rate change, a working mode change or other node abnormal events occur, the rate feedback signal is sent to the device.

6. A flow balance control device, characterized in that: include: A first request receiving unit, configured to receive an external request through an input port of the device and determine a size of a request data packet; A first transmission duration determining unit, configured to obtain the bandwidth and the actual data bit width allocated to the input port, and determine a first normalized transmission duration of the data packet corresponding to the request according to the size of the request data packet, the actual data bit width and the bandwidth; A first time normalization unit, configured to determine a sending time of a next request of the input port based on a first normalized transmission duration of the request data packet; A second request receiving unit, configured to distribute the request to a designated output port according to a route corresponding to the request; A second transmission duration determining unit, configured to obtain the bandwidth and the actual data bit width allocated to the output port, and determine a second normalized transmission duration of the data packet corresponding to the request according to the size of the request data packet, the actual data bit width and the bandwidth; The second time normalization unit determines a sending time of a next request of the output port based on a second normalized transmission duration of the request data packet.

7. The flow balance control device according to claim 6, characterized in that: The first time normalization unit is further used for: When the request starts to be sent, a timer is started, and after the timer reaches a first normalized transmission duration of the request data packet, the next request is started to be sent; The second time normalization unit is further used for: When the request starts to be sent, a timer is started, and after the timer reaches the second normalized transmission duration of the request data packet, the next request starts to be sent.

8. The flow balance control device according to claim 6, characterized in that: The first time normalization unit is further used for: After determining the sending time of the next request of the input port, using the input port arbitration logic to balance the flow distribution among the plurality of input ports according to a preset weight; The second time normalization unit is further used for: Before determining the sending time of the next request of the output port, the arbitration logic of the output port is used to balance the flow distribution among the multiple output ports according to the preset weights.

9. The flow balance control device according to claim 6, characterized in that: The device further comprises: A dynamic adjustment control unit, configured to receive a rate feedback signal and adjust a bandwidth allocated to an input port or an output port according to the rate feedback signal; The transmission duration determination unit is further used to re-determine the first or second normalized transmission duration of the request data packet based on the adjusted bandwidth; The time normalization unit is further used to re-determine the sending time of the next request based on the re-determined first or second normalized transmission duration.

10. The flow balance control device according to claim 9, characterized in that: Before receiving the rate feedback signal, the dynamic adjustment control unit is further used to receive the rate feedback signal when a rate change, a working mode change or other node abnormal event occurs.

Citation Information

Patent Citations

  • Data transmission method, device and system and computer readable storage medium

    CN111355667A

  • Refreshing method and device for data packet transmission port

    CN112104451A

  • Traffic shaping method and related device

    CN112805971A

  • Time-sensitive network frame preemption optimization method combined with time-aware shaper

    CN115865824A

  • Scheduling method for time-sensitive traffic in deterministic network

    CN117692398A