A multi-stream bandwidth configuration method, device and equipment for 400GE Ethernet
By obtaining the number of packets and configuration table entries of the data stream, combining the packet gap register parameters and software lookup table algorithm, the problem of being unable to accurately allocate the multi-stream bandwidth of 400G Ethernet in the existing technology is solved, and efficient bandwidth configuration is achieved.
Patent Information
- Application Number
- CN202411051117.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-01
- Publication Date
- 2025-09-02
- Estimated Expiration
- 2044-08-01
AI Technical Summary
The existing Ethernet BPS algorithm cannot achieve accurate multi-stream bandwidth percentage allocation in a 400G network, and is inefficient, making it unable to adapt to high-speed 400G networks.
By obtaining the data stream to be encapsulated, the number of data packets and configuration table entries is determined, the packet gap register parameters and configuration table entries are used, and the software lookup table and conversion algorithm are combined to achieve accurate bandwidth configuration of each data stream.
Accurate bandwidth percentage allocation for 400G Ethernet networks is achieved, the efficiency of bandwidth configuration is improved, and the high-speed requirements of 400G networks are adapted.
Smart Images

Figure CN118869486B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer information technology processing technology, and in particular to a multi-stream bandwidth configuration method, device and equipment for 400GE Ethernet. Background Art
[0002] Existing Ethernet BPS algorithms, which solely utilize the Ethernet IFG algorithm to implement Ethernet multi-stream bandwidth configuration, can only achieve uniform interframe gap control for multiple streams, but cannot precisely control the percentage of the overall multi-stream bandwidth, resulting in low efficiency. Furthermore, this multi-stream bandwidth configuration algorithm is not suitable for high-speed 400G networks. Summary of the Invention
[0003] The technical problem to be solved by the present invention is to provide a multi-stream bandwidth configuration method, device and equipment for 400GE Ethernet, which can realize accurate bandwidth percentage allocation for 400G Ethernet network.
[0004] In order to solve the above technical problems, the technical solutions of the present invention are as follows:
[0005] A multi-stream bandwidth configuration method for 400GE Ethernet, comprising:
[0006] Obtain at least two data streams to be encapsulated;
[0007] Determining the number of data packets transmitted by each of the at least two data flows within a target maximum transmission period;
[0008] Determining, according to the number of data packets transmitted by each of the at least two data flows, a packet gap register parameter and a number of configuration table entries for each of the at least two data flows;
[0009] Obtaining a configured bit rate for each data stream according to the packet gap register parameter and the number of configuration table entries for each of the at least two data streams;
[0010] Bandwidth configuration of the at least two data streams is implemented according to the configured bit rate.
[0011] Optionally, determining the number of data packets transmitted by each of the at least two data flows within a target maximum transmission period includes:
[0012] The number of data packets transmitted by each of the at least two data flows within a target maximum transmission period is determined according to the packet length and utilization rate of each of the at least two data flows.
[0013] Optionally, the number of packets N x =(Pmax*bps m%) / (len x +20), where N xis the number of packets transmitted by data stream x, Pmax is the maximum transmission period, bps m% is the utilization rate, len x For the package leader.
[0014] Optionally, determining a packet gap register parameter according to the number of data packets transmitted by each of the at least two data flows includes:
[0015] Obtaining a remaining utilization rate according to the utilization rates of the at least two data flows;
[0016] A packet gap register parameter is obtained according to the remaining utilization, the maximum transmission period, and the total number of data packets of at least two data flows.
[0017] Optionally, determining the number of configuration table entries for each of the at least two data flows according to the number of data packets transmitted by each of the at least two data flows includes:
[0018] Get the total number of configuration table items;
[0019] According to the ratio of the number of data packets of each data flow to the total number of data packets of all data flows, the total number of configuration table entries is distributed to obtain the number of configuration table entries for each data flow.
[0020] Optionally, the number of configuration entries n x =M*N x / N 总 , where n x is the number of configuration entries for data stream x, M is the total number of configuration entries, and N x is the number of packets transmitted by data stream x, N 总 The total number of packets in all data flows.
[0021] Optionally, obtaining a configured bit rate for each data stream according to the packet gap register parameter and the number of configuration table entries of each of the at least two data streams includes:
[0022] According to the number of configuration table entries of each of the at least two data flows, each data flow is interleaved and distributed in the order of data flow identification ID until all data flows are allocated, thereby obtaining a configuration list;
[0023] The configured bit rate of each data stream is obtained according to the configuration list and the packet gap register parameters.
[0024] The present invention also provides a 400GE Ethernet multi-stream bandwidth configuration device, comprising:
[0025] An acquisition module, configured to acquire at least two data streams to be encapsulated;
[0026] The processing module is configured to determine the number of data packets transmitted by each of the at least two data flows within a target maximum transmission period; determine a packet gap register parameter and a number of configuration table entries for each of the at least two data flows based on the number of data packets transmitted by each of the at least two data flows; obtain a configured bit rate for each data flow based on the packet gap register parameter and the number of configuration table entries for each of the at least two data flows; and implement bandwidth configuration for the at least two data flows based on the configured bit rate.
[0027] The present invention also provides a computing device, comprising: a processor and a memory storing a computer program, wherein the computer program executes the above method when executed by the processor.
[0028] The present invention also provides a computer-readable storage medium storing instructions, which, when executed on a computer, enable the computer to execute the above method.
[0029] The above solution of the present invention includes at least the following beneficial effects:
[0030] The above-mentioned solution of the present invention obtains at least two data streams to be encapsulated; determines the number of data packets transmitted by each of the at least two data streams within a target maximum transmission period; determines, based on the number of data packets transmitted by each of the at least two data streams, a packet gap register parameter and the number of configuration table entries for each of the at least two data streams; obtains a configured bit rate for each data stream based on the packet gap register parameter and the number of configuration table entries for each of the at least two data streams; and implements bandwidth configuration for the at least two data streams based on the configured bit rate. This can achieve precise bandwidth percentage allocation for 400G Ethernet networks. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 400GE Ethernet multi-stream bandwidth configuration method according to an embodiment of the present invention;
[0032] Figure 2 This is a structural diagram of a multi-stream bandwidth configuration device for 400GE Ethernet according to an embodiment of the present invention. DETAILED DESCRIPTION
[0033] Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided to enable a more thorough understanding of the present invention and to fully convey the scope of the present invention to those skilled in the art.
[0034] like Figure 1 As shown, an embodiment of the present invention provides a multi-stream bandwidth configuration method for 400GE Ethernet, including:
[0035] Step 11: Obtain at least two data streams to be encapsulated;
[0036] Step 12, determining the number of data packets transmitted by each of the at least two data flows within a target maximum transmission period;
[0037] Step 13, determining a packet gap register parameter and a number of configuration table entries for each of the at least two data flows according to the number of data packets transmitted by each of the at least two data flows;
[0038] Step 14, obtaining a configured bit rate for each data stream according to the packet gap register parameter and the number of configuration table entries of each of the at least two data streams;
[0039] Step 15: Implement bandwidth configuration for the at least two data streams according to the configured bit rate.
[0040] In this embodiment, the data stream refers to the data stream transmitted by 400GE ultra-high-speed Ethernet. There are generally multiple data streams to be encapsulated, and each data stream has a preset target bit rate bps that is expected to be achieved. Through the multi-stream bandwidth configuration method provided by the present application, the bandwidth of multiple data streams is configured, so that the configured bit rate bps of each data stream can be as close to the pre-configured target bit rate bps as possible. Specifically, the present application adopts the technology of adjusting IFG (frame spacing), such as determining the packet gap register parameters in the above step 13; combined with the software lookup table and conversion algorithm, such as determining the number of configuration table items in the above step 13, the bps algorithm of the precise bandwidth percentage of ultra-high-speed Ethernet is realized. Through the above method of the present application, for the bandwidth of 400G, a minimum granular bps step size of 12Mbps can be achieved, thereby realizing the multi-stream bandwidth configuration of 400GE ultra-high-speed Ethernet.
[0041] In an optional embodiment of the present invention, step 12 may include:
[0042] Step 121 : Determine the number of data packets transmitted by each of the at least two data flows within a target maximum transmission period according to the packet length and utilization rate of each of the at least two data flows.
[0043] Specifically, the number of packets N x =(Pmax*bps m%) / (len x +20), where N x is the number of packets transmitted by data stream x, Pmax is the maximum transmission period, bps m% is the utilization rate, len x For the package leader.
[0044] In this embodiment, since 400GE data streams are all sent in IFG mode, the IFG refers to the packet gap in bytes, with a minimum of 20 bytes (including the preamble).
[0045] Calculate the time slice of each byte at 400GE: (1000 / 390.625) / 128 = 0.02ns;
[0046] The minimum packet gap (including the preamble) is: 20*0.02=0.4ns;
[0047] The minimum packet gap (excluding the preamble) is: 0.4*0.6=0.24ns;
[0048] In the general IFG mode, multiple data streams (IDs) all use the same Ifg parameters, that is, the intervals between packets are the same, where Stream_num = Stream_id, that is, the number of streams is equal to the stream ID.
[0049] In the general FPS (frame rate) mode, (Ifg + len) * 0.02 = 1000000000 / fps. Using the frames per second, calculate the time slice length of each packet, convert it to bytes, and then subtract the packet length to get the Ifg parameter.
[0050] In this application, a bps mode is designed by combining the above two modes, which is implemented in disguised form using the IFG mode.
[0051] Specifically, assume there are three data streams, stream 0, stream 1, and stream 2. Assume the maximum transmission period Pmax in bytes is 0x10000000. The parameters of the three data streams are as follows:
[0052] Stream 0 parameters: stream id = 0, packet length len 0 bytes, utilization bps 0%;
[0053] Stream 1 parameters: stream id = 1, packet length len 1 bytes, utilization bps 1%;
[0054] Stream 2 parameters: stream id = 2, packet length len 2 bytes, utilization bps 2%;
[0055] Here, utilization refers to the proportion of the data flow in bits per second under the set target bps.
[0056] Assume that a total of (N0+N1+N2) messages need to be transmitted within the Pmax period, then:
[0057] Number of packets transmitted by stream 0 N0 = (Pmax*bps0%) / (len0+20), taking the integer part;
[0058] Number of packets transmitted by stream 1 N1 = (Pmax*bps1%) / (len1+20), taking the integer part;
[0059] The number of data packets transmitted by flow 2 N2 = (Pmax*bps2%) / (len2+20), taking the integer part.
[0060] In an optional embodiment of the present invention, determining the packet gap register parameter in step 13 includes:
[0061] Step 131, obtaining a remaining utilization rate according to the utilization rates of the at least two data flows;
[0062] Step 132: Obtain packet gap register parameters according to the remaining utilization, the maximum transmission period, and the total number of data packets of at least two data flows.
[0063] In this embodiment, the remaining utilization is obtained by subtracting the utilization of each of the three data streams from 1. Based on the Ethernet data transmission rules in IFG mode, Ifg-20 = Pmax*(1-bps0%-bps1%-bps2%) / (N0+N1+N2). Therefore, the inter-packet gap register parameter Ifg = Pmax*(1-bps0%-bps1%-bps2%) / (N0+N1+N2)+20.
[0064] In an optional embodiment of the present invention, determining the number of configuration table entries of each of the at least two data flows in step 13 includes:
[0065] Step 133, obtaining the total number of configuration table entries;
[0066] Step 134 : Allocate the total number of configuration table entries according to the ratio of the number of data packets in each data flow to the total number of data packets in all data flows, to obtain the number of configuration table entries for each data flow.
[0067] Specifically, the number of configuration entries n x =M*N x / N 总 , where n x is the number of configuration entries for data stream x, M is the total number of configuration entries, and N x is the number of packets transmitted by data stream x, N 总 The total number of packets in all data flows.
[0068] In this embodiment, for the Stream_num register, its stream configuration table 0 to n has n+1 configuration table entries, and x Stream_ids (stream ids) and corresponding packet lengths can be set through n configuration table entries, which are stored in a 32-byte*n lookup table.
[0069] Assume that M is 4095 and there are still 3 data flows. Then (N0+N1+N2) packets need to be evenly distributed to 4095 configuration table entries. The number of configuration table entries for each flow is as follows:
[0070] n0=4095*N0 / (N0+N1+N2), round to the integer, precision: 1 / 4095=0.0244%;
[0071] n1=4095*N1 / (N0+N1+N2), take the integer, precision: 1 / 4095=0.0244%;
[0072] n2=4095*N2 / (N0+N1+N2), take the integer, precision: 1 / 4095=0.0244%.
[0073] In an optional embodiment of the present invention, step 14 may include:
[0074] Step 141, according to the number of configuration table entries of the at least two data flows, distribute each data flow in the order of data flow identification IDs interleaved until all data flows are allocated, thereby obtaining a configuration list;
[0075] Step 142: Obtain the configured bit rate of each data stream according to the configuration list and the packet gap register parameters.
[0076] In this embodiment, each data stream ID is interleaved and distributed in sequence according to the order of each data stream ID. For example, the three data stream IDs mentioned above are interleaved and distributed in the order of 0 / 1 / 2. When the number of configuration table entries occupied by a certain ID in the configuration list reaches the number of pre-allocated entries, the allocation of the stream ID is completed, and the remaining IDs are interleaved. For example, when stream 1 occupies n1 configuration table entries in the configuration list, the allocation of stream 1 is completed. Continue to allocate stream 0 and stream 2 until the three data stream IDs are allocated in M stream configuration table entries, and each stream ID occupies n. x Configuration table entries are generated to obtain a configuration list. This configuration list, combined with the calculated inter-packet gap register parameter Ifg, can be used to assemble the configured bps for each data stream. The error between the configured bps and the target bps is 0.0244%. The higher the value of the configuration table entry, the higher the bps accuracy (the smaller the value). Accuracy can be improved by increasing the number of configuration table entries.
[0077] The method described above utilizes interframe gap (IFG) technology to intelligently combine multiple data streams to create a single stream ID. This method utilizes IFG mode logic combined with a software lookup table and a conversion algorithm to achieve the precise bit-per-second (bps) rate specified for a specific stream ID. Compared to methods that solely use IFG mode to control the interframe gap to achieve 400GE bandwidth line speeds, this method can configure bps for each stream ID within multiple streams, enabling a wider variety of ultra-high-speed Ethernet frame combinations and better simulating precise Ethernet multi-stream bandwidth configurations that meet practical requirements.
[0078] like Figure 2 As shown, an embodiment of the present invention further provides a multi-stream bandwidth configuration device 20 for 400GE Ethernet, comprising:
[0079] An acquisition module 21 is configured to acquire at least two data streams to be encapsulated;
[0080] The processing module 22 is configured to determine the number of data packets transmitted by each of the at least two data flows within a target maximum transmission period; determine a packet gap register parameter and a number of configuration table entries for each of the at least two data flows based on the number of data packets transmitted by each of the at least two data flows; obtain a configured bit rate for each data flow based on the packet gap register parameter and the number of configuration table entries for each of the at least two data flows; and implement bandwidth configuration for the at least two data flows based on the configured bit rate.
[0081] Optionally, determining the number of data packets transmitted by each of the at least two data flows within a target maximum transmission period includes:
[0082] The number of data packets transmitted by each of the at least two data flows within a target maximum transmission period is determined according to the packet length and utilization rate of each of the at least two data flows.
[0083] Optionally, the number of packets N x =(Pmax*bps m%) / (len x +20), where N x is the number of packets transmitted by data stream x, Pmax is the maximum transmission period, bps m% is the utilization rate, len x For the package leader.
[0084] Optionally, determining a packet gap register parameter according to the number of data packets transmitted by each of the at least two data flows includes:
[0085] Obtaining a remaining utilization rate according to the utilization rates of each of the at least two data flows;
[0086] A packet gap register parameter is obtained according to the remaining utilization, the maximum transmission period, and the total number of data packets of at least two data flows.
[0087] Optionally, determining the number of configuration table entries for each of the at least two data flows according to the number of data packets transmitted by each of the at least two data flows includes:
[0088] Get the total number of configuration table items;
[0089] According to the ratio of the number of data packets of each data flow to the total number of data packets of all data flows, the total number of configuration table entries is distributed to obtain the number of configuration table entries for each data flow.
[0090] Optionally, the number of configuration entries n x =M*N x / N 总 , where n x is the number of configuration entries for data stream x, M is the total number of configuration entries, and N x is the number of packets transmitted by data stream x, N 总 The total number of packets in all data flows.
[0091] Optionally, obtaining a configured bit rate for each data stream according to the packet gap register parameter and the number of configuration table entries of each of the at least two data streams includes:
[0092] According to the number of configuration table entries of each of the at least two data flows, each data flow is interleaved and distributed in the order of data flow identification ID until all data flows are allocated, thereby obtaining a configuration list;
[0093] The configured bit rate of each data stream is obtained according to the configuration list and the packet gap register parameters.
[0094] It should be noted that the device is a device corresponding to the above method, and all implementation methods in the above method embodiments are applicable to the embodiments of the device and can achieve the same technical effects.
[0095] An embodiment of the present invention further provides a computing device comprising: a processor and a memory storing a computer program, wherein the computer program, when executed by the processor, performs the above-described method. All implementations in the above-described method embodiments are applicable to this embodiment and can achieve the same technical effects.
[0096] The embodiment of the present invention further provides a computer-readable storage medium storing instructions, which, when executed on a computer, cause the computer to execute the above method. All implementations in the above method embodiment are applicable to this embodiment and can achieve the same technical effects.
[0097] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present invention.
[0098] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0099] In the embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be through some interface, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0100] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0101] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0102] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes various media that can store program code, such as a USB flash drive, a mobile hard drive, ROM, RAM, a magnetic disk, or an optical disk.
[0103] In addition, it should be noted that, in the apparatus and method of the present invention, it is obvious that each component or each step can be decomposed and / or recombined. These decompositions and / or recombinations should be regarded as equivalent schemes of the present invention. Moreover, the steps of performing the above-mentioned series of processing can naturally be performed in chronological order according to the order of description, but it is not necessary to perform them in chronological order, and some steps can be performed in parallel or independently of each other. For those of ordinary skill in the art, it will be understood that all or any steps or components of the method and apparatus of the present invention can be implemented in any computing device (including processors, storage media, etc.) or a network of computing devices in hardware, firmware, software or a combination thereof, which can be achieved by those of ordinary skill in the art using their basic programming skills after reading the description of the present invention.
[0104] Therefore, the purpose of the present invention can also be achieved by running a program or a group of programs on any computing device. The computing device can be a well-known general-purpose device. Therefore, the purpose of the present invention can also be achieved simply by providing a program product containing program code that implements the method or device. That is to say, such a program product also constitutes the present invention, and the storage medium storing such a program product also constitutes the present invention. Obviously, the storage medium can be any well-known storage medium or any storage medium developed in the future. It should also be pointed out that in the device and method of the present invention, it is obvious that each component or each step can be decomposed and / or recombined. These decompositions and / or recombinations should be regarded as equivalent schemes of the present invention. In addition, the steps of performing the above-mentioned series of processing can naturally be performed in chronological order according to the order of description, but do not necessarily need to be performed in chronological order. Certain steps can be performed in parallel or independently of each other.
[0105] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as within the scope of protection of the present invention.
Claims
1. A multi-stream bandwidth configuration method for 400GE Ethernet, characterized in that: include: Obtain at least two data streams to be encapsulated; Determining the number of data packets transmitted by each of the at least two data flows within a target maximum transmission period; Determining, according to the number of data packets transmitted by each of the at least two data flows, a packet gap register parameter and a number of configuration table entries for each of the at least two data flows; Obtaining a configured bit rate for each data stream according to the packet gap register parameter and the number of configuration table entries for each of the at least two data streams; Implementing bandwidth configuration for the at least two data streams according to the configured bit rate; The step of determining the packet gap register parameter according to the number of data packets transmitted by each of the at least two data streams includes: Obtaining a remaining utilization rate according to the utilization rates of the at least two data flows; Obtaining a packet gap register parameter according to the remaining utilization, the maximum transmission period, and the total number of data packets of at least two data flows; The step of determining the number of configuration table entries for each of the at least two data flows according to the number of data packets transmitted by each of the at least two data flows comprises: Get the total number of configuration table items; Allocating the total number of configuration table entries according to a ratio of the number of data packets of each data flow to the total number of data packets of all data flows to obtain a number of configuration table entries for each data flow; The step of obtaining the configured bit rate of each data stream according to the packet gap register parameter and the number of configuration table entries of the at least two data streams includes: According to the number of configuration table entries of each of the at least two data flows, each data flow is interleaved and distributed in the order of data flow identification ID until all data flows are allocated, thereby obtaining a configuration list; The configured bit rate of each data stream is obtained according to the configuration list and the packet gap register parameters.
2. The multi-stream bandwidth configuration method for 400GE Ethernet according to claim 1, characterized in that: Determining the number of data packets transmitted by each of the at least two data flows within a target maximum transmission period includes: The number of data packets transmitted by each of the at least two data flows within a target maximum transmission period is determined according to the packet length and utilization rate of each of the at least two data flows.
3. The multi-stream bandwidth configuration method for 400GE Ethernet according to claim 2, characterized in that: The number of data packets N x =(Pmax*bps m%) / (lenx+20), where N x is the number of packets transmitted by data stream x, Pmax is the maximum transmission period, bps m% is the utilization rate, len x For the package leader.
4. The multi-stream bandwidth configuration method for 400GE Ethernet according to claim 1, characterized in that: The number of configuration table entries n x =M*N x / N 总 , where n x is the number of configuration entries for data stream x, M is the total number of configuration entries, and N x is the number of packets transmitted by data stream x, N 总 The total number of packets in all data flows.
5. A multi-stream bandwidth configuration device for 400GE Ethernet, characterized in that: include: An acquisition module, configured to acquire at least two data streams to be encapsulated; a processing module, configured to determine the number of data packets transmitted by each of the at least two data flows within a target maximum transmission period; Determining, based on the number of data packets transmitted by each of the at least two data flows, a packet gap register parameter and a number of configuration table entries for each of the at least two data flows; obtaining a configured bit rate for each data flow based on the packet gap register parameter and the number of configuration table entries for each of the at least two data flows; and implementing bandwidth configuration for the at least two data flows based on the configured bit rate; The step of determining the packet gap register parameter according to the number of data packets transmitted by each of the at least two data streams includes: Obtaining a remaining utilization rate according to the utilization rates of the at least two data flows; Obtaining a packet gap register parameter according to the remaining utilization, the maximum transmission period, and the total number of data packets of at least two data flows; The step of determining the number of configuration table entries for each of the at least two data flows according to the number of data packets transmitted by each of the at least two data flows comprises: Get the total number of configuration table items; Allocating the total number of configuration table entries according to a ratio of the number of data packets of each data flow to the total number of data packets of all data flows to obtain a number of configuration table entries for each data flow; The step of obtaining the configured bit rate of each data stream according to the packet gap register parameter and the number of configuration table entries of the at least two data streams includes: According to the number of configuration table entries of each of the at least two data flows, each data flow is interleaved and distributed in the order of data flow identification ID until all data flows are allocated, thereby obtaining a configuration list; The configured bit rate of each data stream is obtained according to the configuration list and the packet gap register parameters.
6. A computing device, characterized in that include: A processor and a memory storing a computer program, wherein when the computer program is executed by the processor, the method according to any one of claims 1 to 4 is performed.
7. A computer-readable storage medium, characterized in that The device stores instructions, which, when executed on a computer, cause the computer to perform the method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Data flow bit allocating method and device
CN102469508A
Method for distributing bandwidth to data stream in application broadcast network
CN1295408A