Traffic transmission method and device, equipment and storage medium

By sending an authorization application to the switching chip before data transmission, the transmission rate threshold is obtained and the data flow is controlled, which solves the problem of switching chip cache overload and data packet loss, and improves the efficiency and stability of data transmission.

CN118660018AInactive Publication Date: 2024-09-17格创通信(浙江)有限公司
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411139350.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-20
Publication Date
2024-09-17
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the application of artificial intelligence technology, due to the limited bandwidth of switching chips, data traffic stagnation and cache overload may occur, and data packet loss may occur.

Method used

Before sending data traffic to the target business processing chip, the source business processing chip sends an authorization application to the switching chip to obtain the current data traffic transmission rate threshold, and controls the transmission rate of data traffic based on this information so that it can be processed between the switching chip and the target business processing chip. Transmission channel load matching between chips.

Benefits of technology

It reduces the risk of cache overload of the switching chip, avoids data packet loss, and improves the efficiency and stability of data traffic transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118660018A
    Figure CN118660018A
Patent Text Reader

Abstract

The embodiment of the invention provides a traffic transmission method and device, equipment and a storage medium, and relates to the technical field of data processing, and the method comprises the steps that a source service processing chip sends an authorization application to a switching chip under the condition that there is a demand for sending data traffic to a target service processing chip; the switching chip determines authorization information based on the authorization application and sends the authorization information to the source service processing chip, and the authorization information comprises a threshold value of a current data traffic transmission rate between the target service processing chip and the switching chip; the source service processing chip transmits data traffic with the data traffic transmission rate not greater than the threshold value to the switching chip based on the authorization information; and the switching chip forwards the received data traffic to the target service processing chip. By applying the scheme provided by the embodiment of the invention, the cache overload risk of the switch chip can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of data processing technology, and in particular, to a flow transmission method, device, equipment and storage medium. Background Art

[0002] With the continuous development of artificial intelligence technology, the Internet's requirements for bandwidth are constantly increasing, and special attention is paid to the stability of network data transmission, requiring that data packet loss should be avoided as much as possible during data transmission.

[0003] In the application of related network technologies, such as artificial intelligence technology, the service processing chip will first send the data traffic to the switching chip, and then the switching chip will forward the data traffic to the target service processing chip. A more common scenario is that multiple service processing chips send data traffic to a switching chip at the same time, resulting in a sudden large amount of data traffic pouring into the same switching chip. Due to the limited bandwidth between the switching chip and the target service processing chip, in related technologies, the switching chip cannot transmit the received data traffic to the target service processing chip in a timely manner, causing the data traffic to remain in the switching chip, which often causes the cache of the switching chip to be overloaded, and may cause data packet loss during data traffic transmission. Summary of the invention

[0004] The purpose of the embodiments of the present invention is to provide a traffic transmission method, device, equipment and storage medium to reduce the risk of cache overload of a switching chip. The specific technical solution is as follows: In a first aspect, an embodiment of the present invention provides a traffic transmission method, which is applied to a traffic transmission device, wherein the traffic transmission device includes a switching chip and a plurality of service processing chips, and the method includes: When there is a need to send data traffic to the target service processing chip, the source service processing chip sends an authorization request to the switching chip; The switching chip determines authorization information based on the authorization application, and sends the authorization information to the source service processing chip, wherein the authorization information includes a threshold value of the current data flow transmission rate between the target service processing chip and the switching chip; The source service processing chip transmits data traffic at a data traffic transmission rate not greater than the threshold to the switching chip based on the authorization information; The switching chip forwards the received data traffic to the target service processing chip.

[0005] In one embodiment of the present invention, the traffic transmission device includes a plurality of switching chips, and the sending of the authorization application to the switching chip includes: Send authorization requests to each switching chip respectively; The switching chip determines the authorization information based on the authorization application, and sends the authorization information to the source service processing chip, including: Each switching chip determines authorization information based on the authorization application, and sends the authorization information to the source service processing chip; The source service processing chip transmits data traffic at a data traffic transmission rate not greater than the threshold to the switching chip based on the authorization information, including: The source service processing chip determines a target switching chip from a plurality of switching chips based on the respective authorization information, and transmits data traffic to the target switching chip at a data traffic transmission rate not greater than a threshold value of a current data traffic transmission rate between the target service processing chip and the target switching chip; The switching chip forwards the received data traffic to the target service processing chip, including: The target switching chip forwards the received data traffic to the target service processing chip.

[0006] In one embodiment of the present invention, each switching chip in the traffic transmission device includes a plurality of authorization generators. For one switching chip, each authorization generator in the switching chip corresponds to each service processing chip one by one. The switching chip determines authorization information based on the authorization application and sends the authorization information to the source service processing chip, including: The switching chip determines the target service processing chip based on the received authorization application, generates authorization information through a target authorization generator corresponding to the target service processing chip, and sends the authorization information to the source service processing chip.

[0007] In one embodiment of the present invention, each authorization generator is provided with a transmission queue corresponding to each service processing chip, and the switching chip forwards the received data traffic to the target service processing chip, including: The switching chip stores the received data traffic in the target transmission queue corresponding to the source service processing chip, and forwards the data traffic in the target transmission queue to the target service processing chip.

[0008] In one embodiment of the present invention, each service processing chip is provided with a traffic queue corresponding to each service processing chip one by one. For each traffic queue, the data traffic stored in the traffic queue is to be sent to the service processing chip corresponding to the traffic queue. When there is a demand to send data traffic to the target service processing chip, the source service processing chip sends an authorization application to the switching chip, including: When there is data traffic in the target traffic queue corresponding to the target traffic processing chip in the source traffic processing chip, the source traffic processing chip sends an authorization application to the switching chip; The data traffic transmission to the switching chip at a data traffic transmission rate not greater than the threshold value includes: The data traffic in the target traffic queue is sent to the switching chip, wherein the rate of sending the data traffic is not greater than the threshold.

[0009] In a second aspect, an embodiment of the present invention provides a flow transmission device, which is applied to a flow transmission device, wherein the flow transmission device includes a switching chip and a plurality of service processing chips, and the device includes: A first sending module, configured to send an authorization application to a switching chip when a source service processing chip needs to send data traffic to a target service processing chip; A determination and sending module, used for the switching chip to determine authorization information based on the authorization application, and send the authorization information to the source service processing chip, wherein the authorization information includes a threshold value of the current data flow transmission rate between the target service processing chip and the switching chip; A second sending module, configured for the source service processing chip to transmit data traffic at a data traffic transmission rate not greater than the threshold to the switching chip based on the authorization information; The third sending module is used for the switching chip to forward the received data traffic to the target service processing chip.

[0010] In one embodiment of the present invention, the traffic transmission device includes a plurality of switching chips, and the first sending module is specifically used for: When there is a need to send data traffic to the target service processing chip, the source service processing chip sends an authorization application to each switching chip respectively; The above determination and sending module is specifically used for: Each switching chip determines authorization information based on the authorization application, and sends the authorization information to the source service processing chip, wherein the authorization information includes a threshold value of the current data flow transmission rate between the target service processing chip and the switching chip; The second sending module is specifically used for: The source service processing chip determines a target switching chip from a plurality of switching chips based on the respective authorization information, and transmits data traffic to the target switching chip at a data traffic transmission rate not greater than a threshold value of a current data traffic transmission rate between the target service processing chip and the target switching chip; The third sending module is specifically used for: The target switching chip forwards the received data traffic to the target service processing chip.

[0011] In one embodiment of the present invention, each switching chip in the above-mentioned traffic transmission device includes multiple authorization generators. For one switching chip, each authorization generator in the switching chip corresponds to each service processing chip one by one. The above-mentioned determination and sending module is specifically used for: Based on the received authorization application, the switching chip determines the target business processing chip, generates authorization information through the target authorization generator corresponding to the target business processing chip, and sends the authorization information to the source business processing chip. The authorization information includes the threshold of the current data traffic transmission rate between the target business processing chip and the switching chip.

[0012] In one embodiment of the present invention, each authorization generator is provided with a transmission queue corresponding to each service processing chip one by one, and the third sending module is specifically used for: The switching chip stores the received data traffic in the target transmission queue corresponding to the source service processing chip, and forwards the data traffic in the target transmission queue to the target service processing chip.

[0013] In one embodiment of the present invention, each service processing chip is provided with a traffic queue corresponding to each service processing chip one by one. For each traffic queue, the data traffic stored in the traffic queue is to be sent to the service processing chip corresponding to the traffic queue. The first sending module is specifically used for: When there is data traffic in the target traffic queue corresponding to the target traffic processing chip in the source traffic processing chip, the source traffic processing chip sends an authorization application to the switching chip; The second sending module is specifically used for: The source service processing chip sends the data traffic in the target traffic queue to the switching chip based on the authorization information, wherein the rate of sending the data traffic is no greater than the threshold.

[0014] In a third aspect, an embodiment of the present invention provides a traffic transmission device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; Memory, used to store computer programs; The processor is used to implement any method step of the first aspect when executing the program stored in the memory.

[0015] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, any one of the method steps of the first aspect is implemented.

[0016] Beneficial effects of the embodiments of the present invention: As can be seen from the above, in the scheme provided by the embodiment of the present invention, before the source business processing chip sends data traffic to the target business processing chip through the switching chip, it will first send an authorization application to the switching chip. The switching chip will respond to the received authorization application based on the current transmission bandwidth between itself and the target business processing chip, and determine the corresponding authorization information, so that the source business processing chip sends data traffic to the switching chip according to the authorization information. The scale of the sent data traffic is within the carrying range of the transmission channel between the switching chip and the target business processing chip. That is to say, the scheme of the embodiment of the present invention is applied to control the rate of data traffic sent by the source business processing chip to the switching chip, so that the scale of data traffic received by the switching chip matches the load of the network transmission channel between itself and the target business processing chip, which can reduce the risk of cache overload of the switching chip, and thus reduce the transmission delay of the data traffic, avoid the loss of data packets, and improve the efficiency and stability of data traffic transmission. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention, and for ordinary technicians in this field, other embodiments can also be obtained based on these drawings.

[0018] Figure 1 A schematic diagram of a flow chart of a first flow transmission method provided by an embodiment of the present invention; Figure 2 A schematic diagram of a flow chart of a second flow transmission method provided by an embodiment of the present invention; Figure 3 A schematic diagram of a flow chart of a third flow transmission method provided by an embodiment of the present invention; Figure 4 A schematic diagram of the corresponding relationship between an authorization generator, a transmission queue and a service processing chip in a switching chip provided by an embodiment of the present invention; Figure 5 A schematic diagram of setting a traffic queue in a service processing chip provided by an embodiment of the present invention; Figure 6 A schematic diagram of a flow chart of a fourth flow transmission method provided in an embodiment of the present invention; Figure 7 A schematic diagram of the connection between a service processing chip and a switching chip provided by an embodiment of the present invention; Figure 8 A schematic diagram of a service processing chip performing an authorization application provided by an embodiment of the present invention; Fig. 9 A schematic diagram of the structure of a flow transmission device provided by an embodiment of the present invention; Fig.10 A schematic diagram of the structure of a flow transmission device provided in an embodiment of the present invention. DETAILED DESCRIPTION

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

[0020] In the related art, the service processing chip sends data traffic to the switching chip, and the switching chip then forwards the received data traffic to the target service processing chip. In this process, a large amount of sudden data traffic often flows into the same switching chip. In the case of limited transmission bandwidth between the switching chip and the target service processing chip, this often causes the data traffic to remain in the switching chip, causing the cache of the switching chip to be overloaded. In order to solve the above problems, the embodiments of the present invention provide a traffic transmission method, device, equipment and storage medium, which are described in detail below.

[0021] First, a traffic transmission method provided by an embodiment of the present invention is described.

[0022] See also Figure 1 , which is a flow chart of the first traffic transmission method provided in an embodiment of the present invention. The method is applied to a traffic transmission device. The traffic transmission device includes a switching chip and a plurality of service processing chips. The method includes the following steps S101 to S104.

[0023] Step S101: When there is a need to send data traffic to a target service processing chip, the source service processing chip sends an authorization application to the switching chip.

[0024] Among the multiple business processing chips included in the above-mentioned traffic transmission device, if business processing chip A needs to send data traffic to business processing chip B, then business processing chip A is called the source business processing chip, and business processing chip B is called the target business processing chip.

[0025] In order to send data traffic to the target business processing chip, the source business processing chip needs to first send the data traffic to the target business processing chip to the switching chip, and then the switching chip forwards the received data traffic to the target business processing chip. Before the source business processing chip starts to send data traffic, the source business processing chip first sends an authorization application to the switching chip. The authorization application indicates that the source business processing chip is ready to send data traffic to the target business processing chip through the switching chip. The source business processing chip uses the authorization application request to learn about the current data traffic scale that the switching chip can receive.

[0026] Step S102: the switching chip determines authorization information based on the authorization application, and sends the authorization information to the source service processing chip.

[0027] The authorization information includes a threshold value of the current data flow transmission rate between the target service processing chip and the switching chip.

[0028] After receiving the above authorization application, the switching chip knows that the source service processing chip is ready to send data traffic to the switching chip, and then the switching chip forwards the received data traffic to the target service processing chip. Based on the above authorization application, the switching chip evaluates the current bandwidth between itself and the target switching chip, determines the threshold of the current data traffic transmission rate between itself and the target service processing chip, that is, the threshold of the data traffic rate that it can currently receive from the source service processing chip, and then generates authorization information based on the threshold, and sends the generated authorization information containing the above threshold information to the source service processing chip.

[0029] Step S103: the source service processing chip transmits data traffic at a data traffic transmission rate not greater than the threshold to the switching chip based on the authorization information.

[0030] After receiving the authorization information, the source service processing chip controls the transmission rate of the data traffic sent to the switching chip based on the threshold contained in the authorization information to ensure that the transmission rate of the data traffic sent to the switching chip is not greater than the threshold.

[0031] Exemplarily, the number of interconnected ports between the source service processing chip and the switching chip is m, the rate of each port is 100 Gbps (Giga Bit Per Second), and the interconnection bandwidth between the source service processing chip and the switching chip is m × 100 Gbps. Then, the threshold in the authorization information is m × 100 Gbps. After reading the authorization information, the source service processing chip controls the rate of data traffic sent to the switching chip to be no more than m × 100 Gbps.

[0032] Step S104: the switching chip forwards the received data traffic to the target service processing chip.

[0033] The switching chip forwards the data traffic received from the source service processing chip to the target service processing chip, thereby realizing the sending of data traffic from the source service processing chip to the target service processing chip.

[0034] As can be seen from the above, in the scheme provided by the embodiment of the present invention, before the source business processing chip sends data traffic to the target business processing chip through the switching chip, it will first send an authorization application to the switching chip. The switching chip will respond to the received authorization application based on the current transmission bandwidth between itself and the target business processing chip, and determine the corresponding authorization information, so that the source business processing chip sends data traffic to the switching chip according to the authorization information. The scale of the sent data traffic is within the carrying range of the transmission channel between the switching chip and the target business processing chip. That is to say, the scheme of the embodiment of the present invention is applied to control the rate of data traffic sent by the source business processing chip to the switching chip, so that the scale of data traffic received by the switching chip matches the load of the network transmission channel between itself and the target business processing chip, which can reduce the risk of cache overload of the switching chip, and thus reduce the transmission delay of the data traffic, avoid the loss of data packets, and improve the efficiency and stability of data traffic transmission.

[0035] See also Figure 2 , is a flow chart of a second flow transmission method provided by an embodiment of the present invention. Figure 2 In the illustrated embodiment, each switching chip in the traffic transmission device includes multiple authorization generators. For one switching chip, each authorization generator in the switching chip corresponds to each service processing chip one by one. The above step S102 can be implemented by the following step S102A. Specifically, the authorization generator is a hardware device configured in the switching chip.

[0036] Step S102A: The switching chip determines the target service processing chip based on the received authorization application, generates authorization information through the target authorization generator corresponding to the target service processing chip, and sends the authorization information to the source service processing chip.

[0037] The authorization information includes a threshold value of the current data flow transmission rate between the switching chip and the target service processing chip.

[0038] In a switching chip, there are the same number of authorization generators as the number of service processing chips, and there is a one-to-one correspondence between each authorization generator and each service processing chip. For example, the number of service processing chips is 3, and a switching chip contains 3 authorization generators, among which authorization generator 1 corresponds to service processing chip 1, authorization generator 2 corresponds to service processing chip 2, and authorization generator 3 corresponds to service processing chip 3.

[0039] The switching chip determines the target service processing chip according to the received authorization application, and then determines the target authorization generator corresponding to the target service processing chip in the switching chip according to the one-to-one correspondence between the service processing chip and the authorization generator. The target authorization generator evaluates the current data flow transmission rate between the switching chip and the target service processing chip, determines the threshold of the current data flow transmission rate between the switching chip and the target service processing chip, and finally generates authorization information containing the above threshold information by the target authorization generator. After the switching chip generates the authorization information through its own target authorization generator, it sends the authorization information to the source service processing chip.

[0040] Specifically, the process of the authorization generator generating authorization information can be described as follows: Assume that there is a switching chip, as well as a service processing chip 1 and a service processing chip 2. The service processing chip 1 needs to transmit data traffic to the service processing chip 2 via the switching chip. If the number of available interconnection ports between the switching chip and the service processing chip 2 is m, and the rate of each port is 100Gbps, then the interconnection bandwidth between the switching chip and the service processing chip 2 is m × 100Gbps; the operating frequency of the authorization generator is set to 1GHz (gigahertz), and one authorization information is generated every 10 cycles, that is, one authorization information is generated every 10ns (nanoseconds), then the authorization generator generates 10 per second. 8 Each authorization message contains the value of the data packet size, which is m × 100Gbps / 10 8= m×1000bit=m×125B (byte). After receiving the authorization application from the service processing chip 1, the authorization generator in the switching chip starts to continuously generate authorization information. Each time an authorization information is generated, the authorization information is returned to the service processing chip 1. The service processing chip 1 reads the value of the data packet size contained in the authorization information and sends data traffic of a size not greater than the value to the switching chip. For example, if the value of the data packet size contained in the authorization information is m×125B, the size of the data traffic sent by the service processing chip 1 to the switching chip based on one authorization information each time does not exceed m×125B. Of course, in order to transmit data traffic as quickly as possible, the size of the data traffic sent by the service processing chip 1 to the switching chip based on one authorization information each time can be the size of the data packet contained in the authorization information. When the service processing chip 1 sends data traffic to the switching chip in the manner described above, it can ensure that the rate of the data traffic sent to the switching chip is not greater than the threshold of the data traffic transmission rate between the switching chip and the service processing chip 2.

[0041] After all the data traffic in the service processing chip 1 is sent, the service processing chip 1 may send a signal indicating that the transmission is completed to the switching chip. After receiving the signal, the switching chip controls its own authorization generator to stop generating authorization information.

[0042] As can be seen from the above, in the solution provided by the embodiment of the present invention, the switching chip includes multiple authorization generators, and each authorization generator in a switching chip corresponds to each service processing chip one by one. After the switching chip determines the target authorization generator corresponding to the target service processing chip, the authorization information can be generated by the target authorization generator.

[0043] See also Figure 3 , is a flow chart of a third flow transmission method provided by an embodiment of the present invention, and Figure 2 Compared with the embodiment shown in Figure 3 In the illustrated embodiment, each authorization generator is provided with a transmission queue corresponding to each service processing chip one by one, and the above step S104 can be implemented by the following step S104A.

[0044] Step S104A: the switching chip stores the received data traffic in the target transmission queue corresponding to the source service processing chip, and forwards the data traffic in the target transmission queue to the target service processing chip.

[0045] For an authorization generator, a transmission queue corresponding to each service processing chip is set in the authorization generator. Assume that there are 4 service processing chips: service processing chip 1, service processing chip 2, service processing chip 3, service processing chip 4. Figure 4To show the correspondence between the authorization generator, transmission queue and service processing chip in a switching chip.

[0046] exist Figure 4 , four authorization generators included in a switching chip are listed, wherein authorization generator 1 corresponds to service processing chip 1, authorization generator 2 corresponds to service processing chip 2, authorization generator 3 corresponds to service processing chip 3, and authorization generator 4 corresponds to service processing chip 4. Exemplarily, in authorization generator 1, transmission queue 1 corresponds to service processing chip 1, transmission queue 2 corresponds to service processing chip 2, transmission queue 3 corresponds to service processing chip 3, and transmission queue 4 corresponds to service processing chip 4. The correspondence between transmission queues and service processing chips in other authorization generators is similar. Specifically, the data traffic in transmission queue 1 in authorization generator 1 is the data traffic sent from business processing chip 1 to business processing chip 1 via the switching chip, the data traffic in transmission queue 2 in authorization generator 1 is the data traffic sent from business processing chip 2 to business processing chip 1 via the switching chip, the data traffic in transmission queue 3 in authorization generator 1 is the data traffic sent from business processing chip 3 to business processing chip 1 via the switching chip, the data traffic in transmission queue 4 in authorization generator 1 is the data traffic sent from business processing chip 4 to business processing chip 1 via the switching chip, the data traffic in transmission queue 1 in authorization generator 2 is the data traffic sent from business processing chip 1 to business processing chip 2 via the switching chip, the data traffic in transmission queue 2 in authorization generator 2 is the data traffic sent from business processing chip 2 to business processing chip 2 via the switching chip, the data traffic in transmission queue 3 in authorization generator 2 is the data traffic sent from business processing chip 3 to business processing chip 2 via the switching chip, and so on.

[0047] Figure 4 The scheduler in the switch chip is included in the switch chip, and the scheduler is used to schedule data traffic in the switch chip, such as transferring data traffic into a transmission queue or transferring it out of a transmission queue.

[0048] When the authorization generator is provided with transmission queues corresponding to each service processing chip one by one, the switching chip, after determining the target transmission queue corresponding to the source service processing chip, first stores the data traffic received from the source service processing chip into the target transmission queue, and then sends the data traffic in the target transmission queue to the target service processing chip.

[0049] As can be seen from the above, in the solution provided by the embodiment of the present invention, each authorization generator is provided with a transmission queue corresponding to each business processing chip. The switching chip first stores the received data traffic to the target transmission queue, and then sends the data traffic in the target transmission queue to the target business processing chip, thereby completing the data traffic transmission from the source business processing chip to the target business processing chip.

[0050] In one embodiment of the present invention, each business processing chip is provided with a traffic queue corresponding to each business processing chip. For each traffic queue, the data traffic stored in the traffic queue is to be sent to the business processing chip corresponding to the traffic queue. The above step S101 can be implemented by the following step A, and the above step S103 can be implemented by the following step B.

[0051] Step A: When there is data traffic in the target traffic queue corresponding to the target traffic processing chip in the source traffic processing chip, the source traffic processing chip sends an authorization application to the switching chip.

[0052] In the source service processing chip, if there is data traffic in the target traffic queue corresponding to the target service processing chip, the source service processing chip has a need to send data traffic to the target service processing chip. The source service processing chip needs to send the data traffic to the switching chip first, and the switching chip then forwards the traffic to the target service processing chip. Before sending data traffic to the switching chip, the source service processing chip first sends an authorization request to the switching chip in order to learn the threshold of the transmission rate for transmitting data traffic to the switching chip. Specifically, the traffic queue set in the service processing chip can be a VOQ (Virtual Output Queue).

[0053] For example, if there are 4 service processing chips, 4 traffic queues are set in each service processing chip. Specifically, Figure 5 As shown in FIG. 1 , a schematic diagram of the traffic queue setting in the service processing chip is shown. Figure 5 In the service processing chip shown, traffic queue 1 corresponds to service processing chip 1, traffic queue 2 corresponds to service processing chip 2, traffic queue 3 corresponds to service processing chip 3, and traffic queue 4 corresponds to service processing chip 4; if there is data traffic in traffic queue 4, it indicates that Figure 5 The service processing chip in the flow queue 4 sends the data traffic in the flow queue 4 to the service processing chip 4. Figure 5 The business processing chip in the communication first sends an authorization request to the switching chip. Figure 5 The queue scheduling in is used to transmit data traffic in the traffic queue.

[0054] Step B: The source service processing chip sends the data traffic in the target traffic queue to the switching chip based on the authorization information.

[0055] The rate of sending data traffic is not greater than the above threshold.

[0056] After receiving and confirming the authorization information, the source business processing chip knows the threshold of the transmission rate of data traffic transmitted to the switching chip. Based on this, the source business processing chip controls the transmission rate of data traffic sent to the switching chip to ensure that the rate of sending data traffic to the switching chip is no greater than the threshold.

[0057] From the above, it can be seen that in the solution provided by the embodiment of the present invention, each business processing chip is provided with a traffic queue corresponding to each business processing chip. For each traffic queue, the data traffic stored in the traffic queue is to be sent to the business processing chip corresponding to the traffic queue. After determining the traffic queue storing the data traffic, the target business processing chip for receiving the data traffic in the traffic queue can be further determined, which can ensure that the data traffic is subsequently correctly transmitted to the target business processing chip.

[0058] In many cases, traffic transport devices contain more than one switch chip. Figure 6 , is a flow chart of a fourth flow transmission method provided by an embodiment of the present invention, and Figure 1 Compared with the illustrated embodiment, the traffic transmission device includes multiple switching chips, the above step S101 can be implemented by the following step S101A, the above step S102 can be implemented by the following step S102B, the above step S103 can be implemented by the following step S103A, and the above step S104 can be implemented by the following step S104B.

[0059] Step S101A: When there is a need to send data traffic to the target service processing chip, the source service processing chip sends an authorization application to each switching chip respectively.

[0060] Specifically, the source service processing chip sends authorization applications to each switching chip respectively, in order to obtain the current data flow transmission rate between each switching chip and the target service processing chip respectively.

[0061] Step S102B: Each switching chip determines authorization information based on the authorization application, and sends the authorization information to the source service processing chip.

[0062] The authorization information includes a threshold value of the current data flow transmission rate between the switching chip and the target service processing chip.

[0063] For each switching chip, after receiving the authorization application, the switching chip evaluates the current traffic transmission rate between itself and the target business processing chip, determines the threshold of the current data traffic transmission rate between itself and the target business processing chip, generates authorization information based on the threshold, and sends the generated authorization information containing the threshold information to the source business processing chip.

[0064] Step S103A: The source service processing chip determines a target switching chip from multiple switching chips based on various authorization information, and transmits data traffic to the target switching chip at a data traffic transmission rate not greater than a threshold of the current data traffic transmission rate between the target service processing chip and the target switching chip.

[0065] After receiving the authorization information returned by each switching chip, the source service processing chip can determine the threshold of the data flow transmission rate between the corresponding switching chip and the target service processing chip based on each authorization information. Next, the target switching chip can be determined from multiple switching chips, and the transmission rate of the data flow sent to the target switching chip can be controlled to ensure that the transmission rate of the data flow sent to the target switching chip is not greater than the threshold of the data flow transmission rate between the target switching chip and the target service processing chip.

[0066] Specifically, the number of target switching chips determined can be one or more according to actual needs. In order to quickly transmit all data traffic to the target service processing chip, all switching chips that can receive data traffic can be used as target switching chips; for each target switching chip, as long as the transmission rate of the data traffic sent to the target switching chip is guaranteed to be no greater than the threshold of the data traffic transmission rate between the target switching chip and the target service processing chip based on the authorization information.

[0067] Step S104B: the target switching chip forwards the received data traffic to the target service processing chip.

[0068] After receiving the data traffic from the source service processing chip, the target switching chip forwards it to the target service processing chip.

[0069] As can be seen from the above, in the scheme provided by the embodiment of the present invention, before the source business processing chip sends data traffic to the target business processing chip through the switching chip, it will first send an authorization application to the switching chip. The switching chip will respond to the received authorization application based on the current transmission bandwidth between itself and the target business processing chip, and determine the corresponding authorization information, so that the source business processing chip sends data traffic to the switching chip according to the authorization information. The scale of the sent data traffic is within the carrying range of the transmission channel between the switching chip and the target business processing chip. That is to say, the scheme of the embodiment of the present invention is applied to control the rate of data traffic sent by the source business processing chip to the switching chip, so that the scale of data traffic received by the switching chip matches the load of the network transmission channel between itself and the target business processing chip, which can reduce the risk of cache overload of the switching chip, and thus reduce the transmission delay of the data traffic, avoid the loss of data packets, and improve the efficiency and stability of data traffic transmission.

[0070] See also Figure 7, which is a schematic diagram of a connection between a service processing chip and a switching chip provided by an embodiment of the present invention; see Figure 8 , which is a schematic diagram of a service processing chip for authorization application provided by an embodiment of the present invention, combined with Figure 7 , Figure 8 , the scheme of the embodiment of the present invention is described as follows.

[0071] exist Figure 7 In the example, the traffic transmission device contains 4 service processing chips: service processing chip 1, service processing chip 2, service processing chip 3, service processing chip 4, and 2 switching chips: switching chip 1 and switching chip 2. Switching chip 1 and switching chip 2 are connected to service processing chips 1 to 4 respectively. Figure 7 In the figure, assuming that the number of interconnection ports between switch chip 1 and each service processing chip is m, the number of interconnection ports between switch chip 2 and each service processing chip is n, and the rate of each interconnection port is 100 Gbps, then the interconnection bandwidth between switch chip 1 and each service processing chip is m×100 Gbps, and the interconnection bandwidth between switch chip 2 and each service processing chip is n×100 Gbps.

[0072] Corresponds to Figure 7 Contains 4 business processing chips, Figure 8 It can be seen that, taking service processing chip 1 as an example, there are 4 traffic queues set in service processing chip 1: traffic queue 1, corresponding to service processing chip 1; traffic queue 2, corresponding to service processing chip 2; traffic queue 3, corresponding to service processing chip 3; traffic queue 4, corresponding to service processing chip 4. Figure 8In the example, there is data traffic in traffic queue 2, indicating that service processing chip 1 has a need to send data traffic to service processing chip 2. Service processing chip 1 sends authorization applications to switching chip 1 and switching chip 2 respectively. Authorization generator 2 corresponding to service processing chip 2 in switching chip 1 generates authorization information according to the authorization application. Switching chip 1 sends the authorization information to service processing chip 1. Authorization generator 2 corresponding to service processing chip 2 in switching chip 2 generates authorization information according to the authorization application. Switching chip 2 sends the authorization information to service processing chip 1. Afterwards, service processing chip 1 load shares a part of the data traffic in traffic queue 2 at the interconnection port with switching chip 1 according to each received authorization information, and sends it to switching chip 1. Switching chip 1 pre-stores the received data traffic in transmission queue 1 corresponding to service processing chip 1; service processing chip 1 load shares another part of the data traffic in traffic queue 2 at the interconnection port with switching chip 2, and sends it to switching chip 2. Switching chip 2 pre-stores the received data traffic in transmission queue 1 corresponding to service processing chip 1. During the data traffic transmission process, the service processing chip 1 controls the transmission rate of the data traffic transmitted to the switching chip 1 based on the authorization information fed back by the switching chip 1 so that it does not exceed m×100Gbps; the service processing chip 1 controls the transmission rate of the data traffic transmitted to the switching chip 2 based on the authorization information fed back by the switching chip 2 so that it does not exceed n×100Gbps.

[0073] Finally, each switching chip forwards the received data traffic to the service processing chip 2 , completing the data traffic transmission from the service processing chip 1 to the service processing chip 2 .

[0074] Corresponding to the aforementioned flow transmission method, an embodiment of the present invention further provides a flow transmission device.

[0075] See also Fig. 9 , is a schematic diagram of the structure of a flow transmission device provided by an embodiment of the present invention, the device is applied to a flow transmission device, the flow transmission device includes a switching chip and a plurality of service processing chips, the device includes: The first sending module 901 is used for the source service processing chip to send an authorization application to the switching chip when there is a need to send data traffic to the target service processing chip.

[0076] The determination and sending module 902 is used for the above-mentioned switching chip to determine the authorization information based on the above-mentioned authorization application, and send the above-mentioned authorization information to the above-mentioned source business processing chip. The above-mentioned authorization information includes the threshold value of the current data flow transmission rate between the above-mentioned target business processing chip and the switching chip.

[0077] The second sending module 903 is used for the source service processing chip to transmit data traffic at a data traffic transmission rate not greater than the threshold to the switching chip based on the authorization information.

[0078] The third sending module 904 is used for the switching chip to forward the received data traffic to the target service processing chip.

[0079] As can be seen from the above, in the scheme provided by the embodiment of the present invention, before the source business processing chip sends data traffic to the target business processing chip through the switching chip, it will first send an authorization application to the switching chip. The switching chip will respond to the received authorization application based on the current transmission bandwidth between itself and the target business processing chip, and determine the corresponding authorization information, so that the source business processing chip sends data traffic to the switching chip according to the authorization information. The scale of the sent data traffic is within the carrying range of the transmission channel between the switching chip and the target business processing chip. That is to say, the scheme of the embodiment of the present invention is applied to control the rate of data traffic sent by the source business processing chip to the switching chip, so that the scale of data traffic received by the switching chip matches the load of the network transmission channel between itself and the target business processing chip, which can reduce the risk of cache overload of the switching chip, and thus reduce the transmission delay of the data traffic, avoid the loss of data packets, and improve the efficiency and stability of data traffic transmission.

[0080] In one embodiment of the present invention, the traffic transmission device includes a plurality of switching chips, and the first sending module 901 is specifically used for: When there is a need to send data traffic to the target service processing chip, the source service processing chip sends an authorization application to each switching chip respectively.

[0081] The above-mentioned determination and sending module 902 is specifically used for: Each switching chip determines authorization information based on the authorization application, and sends the authorization information to the source service processing chip. The authorization information includes a threshold value of the current data flow transmission rate between the target service processing chip and the switching chip.

[0082] The second sending module 903 is specifically used for: The source service processing chip determines the target switching chip from multiple switching chips based on the authorization information, and transmits data traffic to the target switching chip at a data traffic transmission rate not greater than a threshold of the current data traffic transmission rate between the target service processing chip and the target switching chip.

[0083] The third sending module 904 is specifically used for: The target switching chip forwards the received data traffic to the target service processing chip.

[0084] As can be seen from the above, in the scheme provided by the embodiment of the present invention, before the source business processing chip sends data traffic to the target business processing chip through the switching chip, it will first send an authorization application to the switching chip. The switching chip will respond to the received authorization application based on the current transmission bandwidth between itself and the target business processing chip, and determine the corresponding authorization information, so that the source business processing chip sends data traffic to the switching chip according to the authorization information. The scale of the sent data traffic is within the carrying range of the transmission channel between the switching chip and the target business processing chip. That is to say, the scheme of the embodiment of the present invention is applied to control the rate of data traffic sent by the source business processing chip to the switching chip, so that the scale of data traffic received by the switching chip matches the load of the network transmission channel between itself and the target business processing chip, which can reduce the risk of cache overload of the switching chip, and thus reduce the transmission delay of the data traffic, avoid the loss of data packets, and improve the efficiency and stability of data traffic transmission.

[0085] In one embodiment of the present invention, each switching chip in the above-mentioned traffic transmission device includes multiple authorization generators. For one switching chip, each authorization generator in the switching chip corresponds to each service processing chip one by one. The above-mentioned determination and sending module 902 is specifically used for: Based on the received authorization application, the switching chip determines the target business processing chip, generates authorization information through the target authorization generator corresponding to the target business processing chip, and sends the authorization information to the source business processing chip. The authorization information includes the threshold of the current data traffic transmission rate between the target business processing chip and the switching chip.

[0086] As can be seen from the above, in the solution provided by the embodiment of the present invention, the switching chip includes multiple authorization generators, and each authorization generator in a switching chip corresponds to each service processing chip one by one. After the switching chip determines the target authorization generator corresponding to the target service processing chip, the authorization information can be generated by the target authorization generator.

[0087] In one embodiment of the present invention, each authorization generator is provided with a transmission queue corresponding to each service processing chip one by one, and the third sending module 904 is specifically used for: The switching chip stores the received data traffic in the target transmission queue corresponding to the source service processing chip, and forwards the data traffic in the target transmission queue to the target service processing chip.

[0088] As can be seen from the above, in the solution provided by the embodiment of the present invention, each authorization generator is provided with a transmission queue corresponding to each business processing chip. The switching chip first stores the received data traffic to the target transmission queue, and then sends the data traffic in the target transmission queue to the target business processing chip, thereby completing the data traffic transmission from the source business processing chip to the target business processing chip.

[0089] In one embodiment of the present invention, each service processing chip is provided with a traffic queue corresponding to each service processing chip. For each traffic queue, the data traffic stored in the traffic queue is to be sent to the service processing chip corresponding to the traffic queue. The first sending module 901 is specifically used for: When there is data traffic in the target traffic queue corresponding to the target traffic processing chip in the source traffic processing chip, the source traffic processing chip sends an authorization application to the switching chip.

[0090] The second sending module 903 is specifically used for: The source service processing chip sends the data traffic in the target traffic queue to the switching chip based on the authorization information, wherein the rate of sending the data traffic is no greater than the threshold.

[0091] From the above, it can be seen that in the solution provided by the embodiment of the present invention, each business processing chip is provided with a traffic queue corresponding to each business processing chip. For each traffic queue, the data traffic stored in the traffic queue is to be sent to the business processing chip corresponding to the traffic queue. After determining the traffic queue storing the data traffic, the target business processing chip for receiving the data traffic in the traffic queue can be further determined, which can ensure that the data traffic is subsequently correctly transmitted to the target business processing chip.

[0092] See also Fig.10 , is a structural diagram of a traffic transmission device provided by an embodiment of the present invention, including a processor 1001, a communication interface 1002, a memory 1003 and a communication bus 1004, wherein the processor 1001, the communication interface 1002, and the memory 1003 communicate with each other through the communication bus 1004; Memory 1003, used for storing computer programs; The processor 1001 is used to implement any step of the aforementioned traffic transmission method when executing the program stored in the memory 1003.

[0093] As can be seen from the above, in the scheme provided by the embodiment of the present invention, before the source business processing chip sends data traffic to the target business processing chip through the switching chip, it will first send an authorization application to the switching chip. The switching chip will respond to the received authorization application based on the current transmission bandwidth between itself and the target business processing chip, and determine the corresponding authorization information, so that the source business processing chip sends data traffic to the switching chip according to the authorization information. The scale of the sent data traffic is within the carrying range of the transmission channel between the switching chip and the target business processing chip. That is to say, the scheme of the embodiment of the present invention is applied to control the rate of data traffic sent by the source business processing chip to the switching chip, so that the scale of data traffic received by the switching chip matches the load of the network transmission channel between itself and the target business processing chip, which can reduce the risk of cache overload of the switching chip, and thus reduce the transmission delay of the data traffic, avoid the loss of data packets, and improve the efficiency and stability of data traffic transmission.

[0094] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0095] The communication interface is used for communication between the above electronic device and other devices.

[0096] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0097] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0098] In another embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned traffic transmission methods are implemented.

[0099] When the computer program stored in the computer-readable storage medium provided by the embodiment of the present invention is applied to perform traffic transmission, the source business processing chip will first send an authorization application to the switching chip before sending data traffic to the target business processing chip through the switching chip. The switching chip will respond to the received authorization application based on the current transmission bandwidth between itself and the target business processing chip, determine the corresponding authorization information, and enable the source business processing chip to send data traffic to the switching chip according to the authorization information. The scale of the sent data traffic is within the carrying range of the transmission channel between the switching chip and the target business processing chip. In other words, the solution of the embodiment of the present invention can control the rate of data traffic sent by the source business processing chip to the switching chip, so that the scale of data traffic received by the switching chip matches the load of the network transmission channel between itself and the target business processing chip, which can reduce the risk of cache overload of the switching chip, and further reduce the transmission delay of the data traffic, avoid the loss of data packets, and improve the efficiency and stability of data traffic transmission.

[0100] In another embodiment of the present invention, a computer program product including instructions is provided, which, when executed on a computer, enables the computer to execute any of the traffic transmission methods in the above embodiments.

[0101] When the computer program product provided by the embodiment of the present invention is used for traffic transmission, the source business processing chip will first send an authorization application to the switching chip before sending data traffic to the target business processing chip through the switching chip. The switching chip will respond to the received authorization application based on the current transmission bandwidth between itself and the target business processing chip, determine the corresponding authorization information, and enable the source business processing chip to send data traffic to the switching chip according to the authorization information. The scale of the sent data traffic is within the carrying range of the transmission channel between the switching chip and the target business processing chip. In other words, the solution of the embodiment of the present invention can control the rate of data traffic sent by the source business processing chip to the switching chip, so that the scale of data traffic received by the switching chip matches the load of the network transmission channel between itself and the target business processing chip, which can reduce the risk of cache overload of the switching chip, and further reduce the transmission delay of the data traffic, avoid the loss of data packets, and improve the efficiency and stability of data traffic transmission.

[0102] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive Solid State Disk (SSD)), etc.

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

[0104] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, traffic transmission equipment, computer-readable storage medium, and computer program product embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

[0105] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims

1. A traffic transmission method, characterized in that: Applied to a traffic transmission device, the traffic transmission device includes a switching chip and a plurality of service processing chips, and the method includes: When there is a need to send data traffic to the target service processing chip, the source service processing chip sends an authorization request to the switching chip; The switching chip determines authorization information based on the authorization application, and sends the authorization information to the source service processing chip, wherein the authorization information includes a threshold value of a current data traffic transmission rate between the target service processing chip and the switching chip; The source service processing chip transmits data traffic at a data traffic transmission rate not greater than the threshold to the switching chip based on the authorization information; The switching chip forwards the received data traffic to the target service processing chip.

2. The method according to claim 1, characterized in that The traffic transmission device includes a plurality of switching chips, and sending the authorization application to the switching chip includes: Send authorization requests to each switching chip respectively; The switching chip determines authorization information based on the authorization application, and sends the authorization information to the source service processing chip, including: Each switching chip determines authorization information based on the authorization application, and sends the authorization information to the source service processing chip; The source service processing chip transmits data traffic at a data traffic transmission rate not greater than the threshold to the switching chip based on the authorization information, including: The source service processing chip determines a target switching chip from a plurality of switching chips based on the respective authorization information, and transmits data traffic to the target switching chip at a data traffic transmission rate that is not greater than a threshold value of a current data traffic transmission rate between the target service processing chip and the target switching chip; The switching chip forwards the received data traffic to the target service processing chip, including: The target switching chip forwards the received data traffic to the target service processing chip.

3. The method according to claim 1, characterized in that Each switching chip in the traffic transmission device includes a plurality of authorization generators. For one switching chip, each authorization generator in the switching chip corresponds to each service processing chip one by one. The switching chip determines authorization information based on the authorization application and sends the authorization information to the source service processing chip, including: The switching chip determines the target service processing chip based on the received authorization application, generates authorization information through a target authorization generator corresponding to the target service processing chip, and sends the authorization information to the source service processing chip.

4. The method according to claim 3, characterized in that Each authorization generator is provided with a transmission queue corresponding to each service processing chip one by one, and the switching chip forwards the received data traffic to the target service processing chip, including: The switching chip stores the received data traffic in the target transmission queue corresponding to the source service processing chip, and forwards the data traffic in the target transmission queue to the target service processing chip.

5. The method according to claim 1, 3 or 4, characterized in that: Each service processing chip is provided with a traffic queue corresponding to each service processing chip one by one. For each traffic queue, the data traffic stored in the traffic queue is to be sent to the service processing chip corresponding to the traffic queue. When there is a need to send data traffic to the target service processing chip, the source service processing chip sends an authorization application to the switching chip, including: When there is data traffic in the target traffic queue corresponding to the target traffic processing chip in the source traffic processing chip, the source traffic processing chip sends an authorization application to the switching chip; The transmitting of data traffic at a data traffic transmission rate not greater than the threshold to the switching chip includes: The data traffic in the target traffic queue is sent to the switching chip, wherein a rate of sending the data traffic is not greater than the threshold.

6. A flow transmission device, characterized in that: Applied to a traffic transmission device, the traffic transmission device includes a switching chip and a plurality of service processing chips, and the device includes: A first sending module, configured to send an authorization application to a switching chip when a source service processing chip needs to send data traffic to a target service processing chip; A determination and sending module, configured for the switching chip to determine authorization information based on the authorization application, and to send the authorization information to the source service processing chip, wherein the authorization information includes a threshold value of the current data flow transmission rate between the target service processing chip and the switching chip; A second sending module, configured for the source service processing chip to transmit data traffic at a data traffic transmission rate not greater than the threshold to the switching chip based on the authorization information; A third sending module is used for the switching chip to forward the received data traffic to the target service processing chip.

7. The device according to claim 6, characterized in that The traffic transmission device includes a plurality of switching chips, and the first sending module is specifically used for: When there is a need to send data traffic to the target service processing chip, the source service processing chip sends an authorization application to each switching chip respectively; The determining and sending module is specifically used for: Each switching chip determines authorization information based on the authorization application, and sends the authorization information to the source service processing chip, wherein the authorization information includes a threshold value of the current data flow transmission rate between the target service processing chip and the switching chip; The second sending module is specifically used for: The source service processing chip determines a target switching chip from a plurality of switching chips based on the respective authorization information, and transmits data traffic to the target switching chip at a data traffic transmission rate that is not greater than a threshold value of a current data traffic transmission rate between the target service processing chip and the target switching chip; The third sending module is specifically used for: The target switching chip forwards the received data traffic to the target service processing chip.

8. The device according to claim 6, characterized in that Each switching chip in the traffic transmission device includes a plurality of authorization generators. For one switching chip, each authorization generator in the switching chip corresponds to each service processing chip one by one. The determination and sending module is specifically used for: The switching chip determines the target business processing chip based on the received authorization application, generates authorization information through the target authorization generator corresponding to the target business processing chip, and sends the authorization information to the source business processing chip. The authorization information includes the threshold of the current data traffic transmission rate between the target business processing chip and the switching chip.

9. The device according to claim 8, characterized in that Each authorization generator is provided with a transmission queue corresponding to each service processing chip one by one, and the third sending module is specifically used for: The switching chip stores the received data traffic in the target transmission queue corresponding to the source service processing chip, and forwards the data traffic in the target transmission queue to the target service processing chip.

10. The device according to claim 6, 8 or 9, characterized in that Each service processing chip is provided with a traffic queue corresponding to each service processing chip one by one. For each traffic queue, the data traffic stored in the traffic queue is to be sent to the service processing chip corresponding to the traffic queue. The first sending module is specifically used for: When there is data traffic in the target traffic queue corresponding to the target traffic processing chip in the source traffic processing chip, the source traffic processing chip sends an authorization application to the switching chip; The second sending module is specifically used for: The source service processing chip sends the data traffic in the target traffic queue to the switching chip based on the authorization information, wherein a rate of sending the data traffic is not greater than the threshold.

11. A flow transmission device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, for implementing the method steps described in any one of claims 1 to 5 when executing a program stored in a memory.

12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps described in any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Multipath pass-through method and switching chip

    CN103001893A

  • Forwarding speed limiting method and device

    CN113206794A

  • Congestion control method, equipment and system

    CN116708300A