Traffic message generation method and device, and computer readable storage medium
By separating message configuration information and traffic message generation, and utilizing multiple message generation channels for parallel processing, the problem of insufficient data processing performance and circuit complexity of FPGA at the 400GE rate port is solved, and efficient traffic message generation is achieved. Applicable to 100GE/200GE/400GE ports.
Patent Information
- Application Number
- CN202310330035.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-25
- Publication Date
- 2024-09-27
AI Technical Summary
When the existing FPGA-based traffic packet generation technology is used on 400GE rate ports, the clock frequency is insufficient and cannot meet the real-time computing requirements for data of more than 1000 bits. The circuit implementation is complex and the layout and routing is difficult, making it difficult to meet the needs of ultra-large bandwidth traffic generation.
By separating the generation of packet configuration information and the generation of traffic packets in the process of generating traffic packets, and using multiple packet generation channels for parallel processing, the complexity of data processing and circuit design is reduced, and through the multi-channel distribution engine and independent configuration space to realize the distribution and generation of packet configuration information and support the line speed bandwidth requirements of different ports.
It achieves accurate order-preserving generation of traffic packets, reduces the circuit design complexity and data processing complexity of large-bandwidth traffic packet generation, enhances operational flexibility and applicability, and can meet the traffic generation of 100GE/200GE/400GE ports. need.
Smart Images

Figure CN118714077A
Abstract
Description
Technical Field
[0001] The present application relates to the field of integrated circuit technology, and in particular to a flow message generation method and device, and a computer-readable storage medium. Background Art
[0002] At present, the fourth industrial revolution, which is characterized by digitalization, networking and intelligence, is booming. Broadband networks are accelerating their penetration and application in all aspects of the real economy. Faced with the explosive growth of traffic, 400 Gigabit Ethernet (GE) will become the next generation networking technology after 100GE. With the rapid evolution of the bandwidth of 2-3 layer network devices, the performance development of network test instruments faces huge challenges. In test scenarios such as protocol testing, traffic forwarding, and delay jitter, network test instruments need to be iteratively updated to meet the requirements of 400GE and higher line speed bandwidth. Among them, the test of traffic forwarding is the basic performance test of network equipment. It is usually generated by a traffic generator to generate traffic packets of the corresponding bandwidth to make the tested network equipment bear different loads and test its performance. Compared with the previous GE / 10GE / 40GE / 50GE / 100GE technology, the hardware resources / ports occupied by the traffic generator of the port adapted to the line speed bandwidth of 200GE / 400GE, the clock frequency capability, and storage access performance requirements are greatly improved. The test ports of network equipment have evolved from 100GE to 200GE / 400GE, and the data bit width and clock frequency of traffic generators have doubled step by step, and the performance requirements for hardware resources such as processors have also continued to increase. Field programmable gate array (FPGA) and application specific integrated circuit (ASIC) chips are commonly used hardware processors. The main frequency of ASIC chips can exceed 1GHz, but the cost of research and development and iteration is higher and the cycle is longer. At the same time, the circuit design of ASIC chips is fixed, which is difficult to meet the rich and varied test scenario requirements in network testing. Therefore, the industry mainly uses FPGA to implement the design of traffic generators. However, FPGA is also limited by the main clock frequency. Taking 400GE as an example, it is necessary to complete real-time calculation of more than 1000 bits of data at a main frequency of 300M to 500M. The complex circuit implementation and the difficulty of layout and wiring have a huge impact on the design of FPGA-based traffic generators. Therefore, exploring an FPGA-based, flexibly evolving traffic message generation technology that meets ultra-large bandwidth requirements and solves the data processing performance problem caused by FPGA main frequency limitations is one of the current urgent issues to be solved in network test instruments.
[0003] The inventor of the present application found in the process of research and practice that the prior art provides a pipelined traffic message generation technology based on FPGA, which implements data processing such as traffic scheduling, message filling, verification and calculation in FPGA to generate a complete traffic message to meet the data bandwidth requirements set by the user. However, the clock frequency of the FPGA traffic generator designed based on the traffic message generation technology provided by the prior art is usually no more than 250Mhz, but when the technology is applied to a 400GE rate port, the traffic generator is required to complete the real-time operation of more than 1000bit data at a main frequency of 300M~500M, which obviously exceeds the processing capacity of the FPGA traffic generator designed based on the technology, and cannot meet the traffic generation requirements of the 400GE rate port. At the same time, when the technology is applied to a 400GE rate port, the signal needs to pass through dozens of hardware modules such as gate circuits / comparators within 10ns, the circuit implementation is complex, the circuit layout and wiring are difficult, and the feasibility is low. Summary of the invention
[0004] The present application provides a flow message generation method and device, and a computer-readable storage medium, which can reduce the data processing complexity of flow message generation, and has flexible operation and strong applicability.
[0005] In the first aspect, the present application provides a method for generating a flow message, which can be applied to a flow generator based on FPGA. In the method, the message configuration information of the flow message generation service can be first obtained, and the above message configuration information can be distributed to multiple message generation channels in the FPGA, and multiple flow messages can be generated based on the above message configuration information through the above multiple message generation channels. In addition, the above multiple flow messages can be polled and scheduled from the above multiple message generation channels, and the above multiple flow messages taken out by the polling scheduling can be aggregated to generate a service flow message. In the method provided in the present application, the generation of the message configuration information included in the flow message generation process can be separated from the generation of the flow message, the bandwidth of the message configuration information generation is low, and it can be processed in real time by pipeline, which can simplify the implementation complexity of the message configuration information generation, and the flow message generation for large bandwidth data processing can be realized in parallel through multiple message generation channels, and the demand pressure of the data processing performance of the flow message generation is dispersed in multiple message generation channels, which reduces the circuit design complexity of the large bandwidth flow message generation and the data processing complexity of the flow message generation. In addition, the inverse process of distributing the generation of traffic messages to multiple message generation channels is used to realize the convergence and scheduling of traffic messages generated by multiple message generation channels, which can achieve accurate and sequence-preserving generation of messages, enhance the operational flexibility of traffic message generation, and has strong applicability.
[0006] In combination with the first aspect, in a first possible implementation manner, in the implementation manner of obtaining the message configuration information of the traffic message generation service, the traffic message attributes of the traffic message generation service set by the operation object based on the user operation interface can be obtained, and the message configuration information of the above-mentioned traffic message generation service is generated based on the above-mentioned traffic message attributes through the message configuration space, wherein the above-mentioned traffic message attributes are obtained from the business attributes of the above-mentioned traffic message generation service. In other words, in the present application, the operation object such as the user or developer can set the traffic message attributes based on the business attributes or business requirements of the traffic message generation service based on the user operation interface of the traffic message generation device such as the traffic generator, and trigger the configuration space to generate the configuration information of the message based on the traffic message attributes through the setting of the traffic message attributes, and can adapt to meet the needs of the traffic message generation service with different traffic message attributes to generate the corresponding message configuration, which is simple to operate and has strong applicability. Adapted to this, in the present application, in the implementation method of distributing the above-mentioned message configuration information to multiple message generation channels in the FPGA, the message configuration information and channel identifier of each message generation channel can be generated by a multi-way shunt engine, and the message configuration information of each message generation channel can be distributed to multiple message generation channels in the FPGA based on the above-mentioned channel identifier by the multi-way shunt engine. In the present application, the introduction of independent configuration space and multi-way shunt engine can be used to implement the distribution configuration of the generation of message configuration information and the generation of flow message, respectively, which can simplify the implementation complexity of the generation of message configuration information. At the same time, the flow message generation for large-bandwidth data processing can be implemented in parallel through multiple message generation channels, and the demand pressure of the data processing performance of the flow message generation can be shunted to multiple message generation channels, reducing the circuit design complexity of the large-bandwidth flow message generation and the data processing complexity of the flow message generation.
[0007] In combination with the first aspect, in a second possible implementation, in the implementation method of obtaining the message configuration information of the traffic message generation service, optionally, the traffic message attributes of the traffic message generation service can also be obtained through the communication bus, and multiple message configuration spaces in the multi-channel message generation path in the FPGA can be used to generate multiple message configuration information of the above-mentioned traffic message generation service based on the above-mentioned traffic message attributes, wherein the above-mentioned traffic message attributes are obtained from the service attributes of the above-mentioned traffic message generation service. Adapted thereto, in the present application, when the above-mentioned message configuration information is distributed to multiple message generation channels in the FPGA, the above-mentioned multiple message configuration information can be configured to the multiple message generation channels in the above-mentioned multi-channel message generation path through the above-mentioned multiple message configuration spaces, wherein one message configuration space is used to generate and configure one message configuration information to one message generation channel. In the present application, message configuration information can be generated based on multiple message configuration spaces in a multi-channel message generation path in the FPGA, and multiple traffic messages can be generated through multiple message generation channels in the multi-channel message generation path in the FPGA. The message configuration space and the message generation channel are not independent, but parallel multi-channels can still be used to realize the generation of traffic messages, which can support the needs of traffic message generation services with lower port line speed bandwidth requirements, enhance the diversity of the product structure of parallel multi-channel generation of traffic messages, and make the operation more flexible and more applicable.
[0008] In combination with the first possible implementation of the first aspect or the second possible implementation of the first aspect, in a third possible implementation, the implementation subject of the above-mentioned message configuration space includes but is not limited to a central processing unit (CPU) or an FPGA, which can be determined according to the actual application scenario requirements, and the selection of the implementation subject of the message configuration space is more flexible and more applicable. In the present application, the above-mentioned message configuration information includes the number of message configurations generated in real time in a single clock cycle, and the above-mentioned message configuration number is obtained by the clock frequency of the above-mentioned message configuration space and the port line speed bandwidth required for the above-mentioned traffic message generation service, which can support the needs of traffic message generation services with different port line speed bandwidth requirements, and the flexibility of traffic message generation is higher and the scalability is stronger.
[0009] In combination with the first possible implementation of the first aspect or the second possible implementation of the first aspect, in a fourth possible implementation, the number of the above-mentioned message generation channels and the bandwidth of the traffic message required to be generated by each of the above-mentioned message generation channels are obtained by the port line speed bandwidth required by the above-mentioned traffic message generation service. In the present application, the number of message generation channels and the bandwidth of the traffic message required to be generated by each of the above-mentioned message generation channels can be flexibly configured according to the needs of the actual application scenario, and can support the needs of the traffic message generation service with different port line speed bandwidth requirements, and the flexibility of traffic message generation is higher and the scalability is stronger.
[0010] In combination with the first possible implementation of the first aspect or the second possible implementation of the first aspect, in a fifth possible implementation, in the implementation method of polling and scheduling the above-mentioned multiple traffic messages from the above-mentioned multiple message generation channels, and aggregating the above-mentioned multiple traffic messages taken out by polling and scheduling, the channel identifier of each message generation channel can be first obtained from the above-mentioned multiple message generation channels, and the above-mentioned channel identifier is used to indicate the scheduling order of the traffic messages generated by the message generation channel, and based on the scheduling order of the traffic messages indicated by the channel identifiers of the above-mentioned each message generation channel, the above-mentioned multiple traffic messages are polled and scheduled from the above-mentioned multiple message generation channels in turn, and the above-mentioned multiple traffic messages taken out by polling and scheduling are aggregated according to the scheduling order. In the present application, the aggregation and scheduling of traffic messages generated by multiple message generation channels is realized based on the inverse process of distributing the generation of traffic messages to multiple message generation channels, which can realize the precise order-preserving generation of messages, enhance the operational flexibility of traffic message generation, and has strong applicability.
[0011] In combination with the fifth possible implementation of the first aspect, in a sixth possible implementation, in the implementation method of aggregating the above-mentioned multiple flow messages taken out by polling scheduling according to the scheduling order, each flow message taken out by polling scheduling can be message encapsulated according to the format of the data sending interface, and the encapsulated flow messages are aggregated according to the scheduling order. In the present application, based on the format of the data sending interface, the flow messages generated in parallel by multiple flow message generation channels are encapsulated and aggregated, which can support different data sending interfaces, has strong scalability and high applicability.
[0012] In combination with any one of the first possible implementation of the first aspect to the sixth possible implementation of the first aspect, in the seventh possible implementation, after the above-mentioned multiple traffic messages taken out by the polling scheduling are aggregated, the sending rate of the business traffic message can also be determined, and the message sending interval is determined based on the above-mentioned sending rate; based on the above-mentioned message sending interval, the above-mentioned business traffic message is transmitted to the above-mentioned data sending interface to be sent through the above-mentioned data sending interface. In the present application, data sending based on a precise sending rate can be achieved by controlling the message sending interval, and the controllability and applicability of traffic message data sending are stronger.
[0013] In the second aspect, the present application provides a traffic message generation device, which includes: a message configuration module, a message generation module and a message aggregation module, wherein the message configuration module can be used to obtain message configuration information of the traffic message generation service; the message generation module can be used to distribute the message configuration information generated by the message configuration module to multiple message generation channels in a field programmable gate array FPGA, and generate multiple traffic messages based on the message configuration information through the multiple message generation channels; the message aggregation module can be used to poll and schedule the multiple traffic messages from the multiple message generation channels, and aggregate the multiple traffic messages taken out by the polling scheduling to generate a service traffic message.
[0014] In combination with the second aspect, in a first possible implementation, the message configuration module can be used to obtain the flow message attributes of the flow message generation service set by the operation object based on the user operation interface, and generate the message configuration information of the flow message generation service based on the flow message attributes through the message configuration space, wherein the flow message attributes are obtained from the service attributes of the flow message generation service. Adapted thereto, the message generation module can be used to generate the message configuration information and channel identification of each message generation channel through the multi-channel shunt engine, and distribute the message configuration information of each message generation channel to multiple message generation channels in the FPGA based on the channel identification through the multi-channel shunt engine.
[0015] In combination with the second aspect, in a second possible implementation, optionally, the message configuration module can be used to obtain the flow message attributes of the flow message generation service through the communication bus, and generate the message configuration information of the flow message generation service based on the flow message attributes through multiple message configuration spaces in the multi-channel message generation path in the FPGA, wherein the flow message attributes are obtained from the service attributes of the flow message generation service. Adapted thereto, the message generation module can be used to configure the multiple message configuration information to the multiple message generation channels in the multi-channel message generation path through the multiple message configuration spaces, wherein one message configuration space is used to generate and configure one message configuration information to one message generation channel.
[0016] In combination with the first possible implementation of the second aspect or the second possible implementation of the second aspect, in a third possible implementation, the implementation entity of the above-mentioned message configuration space includes but is not limited to a CPU or an FPGA; the above-mentioned message configuration information includes the number of message configurations generated in real time in a single clock cycle, and the above-mentioned message configuration number is obtained by the clock frequency of the above-mentioned message configuration space and the port line speed bandwidth required for the above-mentioned traffic message generation service.
[0017] In combination with the first possible implementation of the second aspect or the second possible implementation of the second aspect, in a fourth possible implementation, the number of the above-mentioned message generation channels and the bandwidth of the traffic messages required to be generated by each of the above-mentioned message generation channels are obtained from the port line speed bandwidth required for the above-mentioned traffic message generation service.
[0018] In combination with the first possible implementation of the second aspect or the second possible implementation of the second aspect, in a fifth possible implementation, the above-mentioned message aggregation module can be used to obtain the channel identifier of each message generation channel from the above-mentioned multiple message generation channels, and the above-mentioned channel identifier is used to indicate the scheduling order of the traffic messages generated by the message generation channel; based on the scheduling order of the traffic messages indicated by the channel identifiers of the above-mentioned each message generation channel, the above-mentioned multiple traffic messages are polled and scheduled from the above-mentioned multiple message generation channels in turn, and the above-mentioned multiple traffic messages taken out by the polling schedule are aggregated according to the scheduling order.
[0019] In combination with the fifth possible implementation of the second aspect, in the sixth possible implementation, the above-mentioned message aggregation module can be used to encapsulate each traffic message taken out by the polling scheduling according to the format of the data sending interface, and aggregate the encapsulated traffic messages according to the scheduling order.
[0020] In combination with any one of the first possible implementation manner of the second aspect to the sixth possible implementation manner of the second aspect, in the seventh possible implementation manner, the above-mentioned device also includes: a message sending module, which can be used to determine the sending rate of the business traffic message, determine the message sending interval based on the above-mentioned sending rate, and transmit the above-mentioned business traffic message to the above-mentioned data sending interface based on the above-mentioned message sending interval, so as to be sent through the above-mentioned data sending interface.
[0021] In a third aspect, the present application provides a traffic message generating device, including: a processor, a memory, and a network interface;
[0022] The above-mentioned processor is connected to the above-mentioned memory and the above-mentioned network interface, wherein the above-mentioned network interface is used to provide data communication function, the above-mentioned memory is used to store program code, and the above-mentioned processor is used to call the above-mentioned program code to execute the method provided by the above-mentioned first aspect and any possible implementation method thereof.
[0023] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the method provided in the first aspect and any possible implementation manner thereof is executed. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1It is a method flow chart of the flow message generation method provided in an embodiment of the present application;
[0025] Figure 2 It is a data flow diagram of traffic message generation provided in an embodiment of the present application;
[0026] Figure 3 It is another data flow schematic diagram of traffic message generation provided in an embodiment of the present application;
[0027] Figure 4 It is another data flow schematic diagram of traffic message generation provided in an embodiment of the present application;
[0028] Figure 5 It is another data flow schematic diagram of traffic message generation provided in an embodiment of the present application;
[0029] Figure 6 It is another data flow schematic diagram of traffic message generation provided in an embodiment of the present application;
[0030] Figure 7 It is a structural diagram of a flow message generating device provided in an embodiment of the present application;
[0031] Figure 8 It is a structural diagram of the traffic message generating device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0032] The traffic message generation method provided in the embodiment of the present application can be applied to the traffic generator in the 2-3 layer network tester or other equipment that needs to generate traffic messages, and can be used to realize the generation of traffic messages based on FPGA. In other words, the traffic message generation device or traffic message generation equipment provided in the embodiment of the present application can be a traffic generator in the 2-3 layer network tester based on FPGA or other equipment with business needs for traffic message generation. For the convenience of description, the traffic generator will be used as an example for illustration. The traffic generator can be used to generate traffic messages with the bandwidth required by the traffic message generation service, so that the tested network equipment to be tested by the traffic message generation service is subjected to different loads, and the performance of basic performance such as traffic forwarding of the tested network equipment is verified. In response to the demand for traffic service generation services for the next generation of ultra-large bandwidth traffic message generation, the embodiments of the present application provide a traffic message generation method and device, which can separate the generation of message configuration information and the generation of traffic messages included in the traffic message generation process. The bandwidth of the message configuration information generation is relatively low, and it can be processed in real time by pipeline, which can simplify the implementation complexity of the message configuration information generation. At the same time, the traffic message generation for large bandwidth data processing can be implemented in parallel through multiple message generation channels, and the demand pressure of data processing performance of traffic message generation is dispersed among multiple message generation channels, reducing the circuit design complexity of large bandwidth traffic message generation and the data processing complexity of traffic message generation. In addition, the inverse process of distributing the generation of traffic packets to multiple packet generation channels is used to realize the convergence and scheduling of traffic packets generated by multiple packet generation channels, which can realize the precise and sequence-preserving generation of traffic packets, enhance the operational flexibility of traffic packet generation, simplify the design complexity of products such as digital chips such as traffic generators for ultra-large bandwidth traffic generation, realize precise traffic regulation, and have excellent bandwidth scalability. It can be applied to 100GE / 200GE / 400GE ports, providing a solution for the generation of traffic packets for high-end data communication test instruments, and has strong applicability.
[0033] See also Figure 1 , Figure 1 is a flow chart of the method for generating a flow message provided by an embodiment of the present application. Figure 1 As shown, the flow message generation method provided in the embodiment of the present application (hereinafter referred to as the method provided in the embodiment of the present application) may include the following steps:
[0034] S101, obtaining message configuration information of a traffic message generation service.
[0035] S102, distribute the message configuration information to multiple message generation channels in the FPGA, and generate multiple traffic messages based on the message configuration information through the multiple message generation channels.
[0036] In some feasible implementations, when obtaining the message configuration information of the traffic message generation service, the traffic message attributes of the traffic message generation service set by the operation object based on the user operation interface can be obtained, and the message configuration information of the above-mentioned traffic message generation service can be generated based on the above-mentioned traffic message attributes through the message configuration space, wherein the above-mentioned traffic message attributes are obtained from the business attributes of the above-mentioned traffic message generation service. In other words, the operation object such as the user or developer can set the traffic message attributes based on the business attributes or business requirements of the traffic message generation service based on the user operation interface of the traffic message generation device such as the traffic generator, and trigger the configuration space to generate the message configuration information based on the traffic message attributes through the setting of the traffic message attributes, and can adapt to meet the needs of the traffic message generation service with different traffic message attributes to generate the corresponding message configuration, which is simple to operate and has strong applicability. In the specific implementation, how to split the traffic message generation service into multiple channels for parallel implementation is a technical problem solved by this application. In order to solve this problem, the method provided in the embodiment of this application can separate the generation of message configuration information in the traffic message generation service from the traffic message filling service, introduce an independent configuration space, and generate traffic message configuration in real time as the input and basis for the filling service of the traffic message split into multiple channels for parallel implementation. At the same time, the independent configuration space can also solve the problem that the delay caused by the generation of message configuration information cannot meet the real-time performance of ultra-high bandwidth message filling. See Figure 2 , Figure 2 Schematic diagram of a data flow generated by a traffic message provided in an embodiment of the present application. Figure 2 As shown, the data flow may be a data processing flow for generating message configuration information based on the message configuration space, including but not limited to message identification (identity document, ID) management, message scheduling control and message attribute generation and other data processing. Accordingly, the message configuration space may include but not limited to functional modules such as message identification management, message scheduling control and message attribute generation, and the generation of message configuration information may be realized based on each functional module. Here, the functional modules included in the message configuration space may be determined according to the requirements for the generation of message configuration information in the traffic message generation service, and the implementation method executed by each functional module may be set according to the actual application scenario requirements, and is not limited here. Figure 2 As shown, each functional module in the message configuration space can be configured with a corresponding buffer. Depending on the buffer content, the buffer can be a memory inside the FPGA chip or a memory outside the FPGA chip. The specific details can be determined according to the actual application scenario requirements and are not limited here.
[0037] In some possible implementations, such as Figure 2As shown, operating objects such as users or developers can set traffic message attributes based on the business attributes or business requirements of the traffic message generation service based on the user operation interface of the traffic message generating device such as the traffic generator. After the traffic message generating device obtains the traffic message attributes, it can transmit the traffic message attributes to the message configuration space by means of flow block information. Optionally, the above-mentioned traffic message attributes can also be provided to the message configuration space in the traffic message generating device through the external memory of the traffic message generating device. In other words, the external memory can input the traffic message attributes pre-stored by the user based on the business attributes or business requirements of the traffic message generating service into the message configuration space by means of flow block information, thereby triggering the message configuration space to generate traffic message configuration information. As shown Figure 2 As shown, the message configuration space can implement data processing such as message ID management, message scheduling control, and message attribute generation based on the input flow block information, and then output the message configuration information by means of flow block configuration. Here, the implementation subject of the message configuration space includes but is not limited to CPU or FPGA, which can be determined according to the needs of the actual application scenario, and is not limited here. The selection of the implementation subject of the message configuration space is more flexible and more applicable. The message configuration information may include at least the number of message configurations generated in real time in a single clock cycle, and the number of message configurations can be obtained by the clock frequency of the message configuration space and the port line speed bandwidth required for the traffic message generation service. In other words, the message configuration space can flexibly adjust the clock frequency and the number of message configurations to meet the requirements of different line speed ports. For example, the message configuration space can flexibly adjust the clock frequency of 200M to generate 3 message configurations in real time in each clock cycle, which can meet the port line speed bandwidth requirements of 400GE, and can support the needs of traffic message generation services with different port line speed bandwidth requirements. The flexibility of traffic message generation is higher and the scalability is stronger. In the embodiment of the present application, by separating and decoupling the data stream generated by the message configuration information and the data stream filled by the traffic message, the pressure of the logical pipeline data processing in the message configuration space is reduced. For example, taking the port line speed bandwidth of 400GE as an example, assuming that the configured bandwidth is around 100 to 200Gbps, if FPGA is used as the processor of the message configuration space (that is, the implementation subject of the message configuration space), it can be obtained through experiments that after introducing an independent message configuration space (the data stream generated by the message configuration information and the data stream filled by the traffic message are separated and decoupled), the logical level of data processing in the message configuration space can be reduced by 5 to 10 levels, reducing the implementation complexity of the generation of traffic messages with ultra-large bandwidth, simple operation, and strong applicability.
[0038] In some feasible implementations, with the independent setting of the message configuration space, traffic message filling can be achieved through multiple parallel message generation channels, which solves the problems of high circuit design complexity and difficult layout and routing when a single channel processes ultra-large bandwidth traffic message generation. Figure 3 , Figure 3 FIG. 1 is another data flow diagram of the flow message generation provided by the embodiment of the present application. Figure 3 As shown, after the message configuration space obtains the flow block information carrying the flow message attributes based on the user interface or memory of the flow message generating device, it can generate the flow block configuration carrying the message configuration information and transmit it to the FPGA through the PCIe 3.0 / 4.0 bus, where the bandwidth of the PCIe bus should meet the transmission requirements of the message configuration of the port line speed bandwidth such as 400GE. Figure 3 As shown, the message configuration information can be distributed to multiple message generation channels through the multi-channel traffic distribution engine in the FPGA, and the traffic messages of the target size (such as 400Gbps) bandwidth are generated through the multiple message generation channels. After the flow messages generated by the multiple message generation channels are dispatched and aggregated to obtain the traffic messages of the service generation service, the traffic messages are transmitted to the data transmission interface (or network interface, such as the 400G media access control sublayer (MAC) chip) and sent out through the data transmission interface. Figure 3 As shown, the flow block configuration carrying the message configuration information can be output to the multi-way flow distribution engine in the FPGA, and the multi-way flow distribution engine distributes the above message configuration information to multiple message generation channels in the FPGA, such as message generation channel 1, message generation channel 2, ..., message generation channel N-1 and message generation channel N. For example, based on Figure 3 When the multiple message generation channels shown generate business traffic messages, assuming that a traffic message with a bandwidth of 400 Gbps is generated, the processing performance pressure of generating the traffic message with a bandwidth of 400 Gbps can be dispersed among the four message generation channels. Each message generation channel only needs to generate a traffic message with a bandwidth of 100 Gbps, which simplifies the complexity of FPGA circuit design and optimizes the worst negative slack (WNS) by more than 0.5 ns.
[0039] See also Figure 4 , Figure 4 FIG. 1 is another data flow diagram of the flow message generation provided by the embodiment of the present application. Figure 4As shown, the multi-way shunt engine includes but is not limited to functional modules such as sequence number generation, shunt operation and multi-way selection switch, wherein the sequence number can be the number of the message, and the input of the multi-way shunt engine is the message configuration information obtained from the message configuration space. The multi-way shunt engine can generate the message configuration information and channel identification of each message generation channel through the multiple functional modules it contains, and distribute the message configuration information of each message generation channel to multiple message generation channels in the FPGA based on the above channel identification. Here, the message configuration information obtained by the multi-way shunt engine from the message configuration space may include but is not limited to the message ID, the message 2 / 3 / 4 layer header type or the payload filling mode, etc., which can be determined according to the actual application scenario and is not limited here. The sequence number generation module in the multi-way shunt engine can number the messages according to the order in which the messages are sent, and based on the control of the multi-way selection switch module, the message configuration information can be polled and stored in multiple groups of first-input first-output (FIFO) queues as the input of multiple parallel message generation channels. Here, the FIFO queue can be deployed in multiple parallel message generation channels, or it can be deployed outside multiple message generation channels and establish a data transmission connection with the message generation channel. It can be set according to the actual application scenario or product form, and there is no restriction here. In addition, in multiple parallel message generation channels, both the input and output ends of a message generation channel can be deployed or connected with a FIFO queue, and the message configuration information as the input of a certain message generation channel can be stored in the FIFO queue corresponding to the input end of the message generation channel. The shunt operation module in the multi-way shunt engine can calculate the channel identification of each message generation channel through the shunt algorithm, and store it together with the message configuration information corresponding to each message generation channel in the FIFO queue deployed at the input and output ends of each message generation channel. Among them, the channel identification of the above-mentioned message generation channel is deployed in the FIFO queue at the output end of each message generation channel, which can be used as the basis for the convergence scheduling of traffic messages generated by multiple subsequent message generation channels. Based on the above-mentioned channel identifiers, the multi-way diversion engine can poll and store the message configuration information of the above-mentioned message generation channels into the FIFO queue deployed or connected at the input end of each message generation channel through the switching control of the multi-way selection switch module, so as to distribute the message configuration information of each message generation channel to multiple message generation channels in the FPGA.In the embodiments of the present application, the introduction of an independent configuration space and a multi-way diversion engine can be used to implement the generation of message configuration information and the distribution configuration of the generation of traffic messages, respectively, thereby simplifying the implementation complexity of the generation of message configuration information. At the same time, the generation of traffic messages for large-bandwidth data processing can be implemented in parallel through multiple message generation channels, and the demand pressure on the data processing performance of the traffic message generation is diverted to multiple message generation channels, thereby reducing the circuit design complexity of the large-bandwidth traffic message generation and the data processing complexity of the traffic message generation.
[0040] Optionally, in some feasible implementations, when acquiring the message configuration information of the traffic message generation service, the traffic message attributes of the traffic message generation service may also be acquired through the communication bus, and multiple message configuration information of the traffic message generation service may be generated based on the above traffic message attributes through multiple message configuration spaces in the multi-channel message generation paths in the FPGA, wherein the above traffic message attributes are obtained from the service attributes of the above traffic message generation service. Accordingly, when distributing the above message configuration information to multiple message generation channels in the FPGA, the above multiple message configuration information may be configured to the multiple message generation channels in the multi-channel message generation paths through the above multiple message configuration spaces, wherein one message configuration space is used to generate and configure one message configuration information to one message generation channel. See. Figure 5 , Figure 5 FIG. 1 is another data flow diagram of the flow message generation provided by the embodiment of the present application. Figure 5As shown, the CPU configures the traffic message attributes of the operation object based on the business attributes or business requirements to the FPGA (i.e., one FPGA includes multiple message generation paths) or the FPGA array (one message generation path can be implemented by one FPGA) through communication. In the FPGA (or FPGA array), the message configuration space and message generation channel in multiple message generation paths (for example, message generation path 1, message generation path 2, ..., message generation path N-1 and message generation path N) generate messages of target bandwidth (for example, 100Gbps bandwidth), and the traffic message aggregation module schedules and aggregates the traffic messages generated by each message generation path to obtain the business traffic message of the traffic message service, and the business traffic message is sent out through the data transmission interface. Here, the message configuration space, message generation channel and message scheduling and aggregation in the multi-channel message generation path are all implemented inside the FPGA, and the data transmission interface can be implemented inside the FPGA or deployed outside the FPGA. It can be understood that, similarly, the implementation subject of the message configuration space in each message generation path here (such as message configuration space 1, message configuration space 2, ..., message configuration space N-1 and message configuration space N) includes but is not limited to CPU or FPGA, which can be determined according to the needs of the actual application scenario, and is not limited here. The selection of the implementation subject of the message configuration space is more flexible and has stronger applicability. In an embodiment of the present application, message configuration information can be generated based on multiple message configuration spaces in the multi-channel message generation path in the FPGA, and multiple flow messages can be generated through multiple message generation channels in the multi-channel message generation path in the FPGA. The message configuration space and the message generation channel are not independent, but parallel multi-channels can still be used to realize the generation of flow messages, which can support the needs of flow message generation services with lower port line speed bandwidth requirements, and enhance the diversity of the product structure of parallel multi-channel generation of flow messages, flexible operation, and stronger applicability.
[0041] It can be understood that in some feasible implementations, the message configuration information of the above-mentioned traffic message generation service can also be directly obtained from a storage space such as a memory. The message configuration information can be pre-configured and stored by the user according to the needs of the traffic message generation service, or it can be pre-stored in the memory through other feasible implementations. The specific information can be determined according to the actual application scenario or business needs, and is not limited here. After obtaining the message configuration information of the traffic message generation service, the message configuration information can be distributed to multiple message generation channels in the FPGA to achieve parallel generation of traffic messages through multiple message generation channels. The message configuration information can be obtained in a variety of ways, with flexible operation and strong applicability.
[0042] S103, polling and scheduling multiple flow messages from multiple message generation channels, and aggregating the multiple flow messages obtained by polling and scheduling to generate a service flow message.
[0043] In some feasible implementations, after multiple traffic messages are generated through multiple message generation channels, the multiple traffic messages can be polled and scheduled from the multiple message generation channels, and the multiple traffic messages taken out by the polling and scheduling can be aggregated. At this time, the channel identifier of each message generation channel can be first obtained from the multiple message generation channels (such as the FIFO queue deployed or connected at the output end of each message generation channel), and the channel identifier is used to indicate the scheduling order of the traffic messages generated by the message generation channel, and based on the scheduling order of the traffic messages indicated by the channel identifiers of the multiple message generation channels, the multiple traffic messages can be polled and scheduled from the multiple message generation channels in turn, and the multiple traffic messages taken out by the polling and scheduling can be aggregated according to the scheduling order. The filling of traffic messages is realized based on multiple message generation channels, and the generation of ultra-large bandwidth messages can be dispersed in multiple message generation channels and completed in parallel. The channels are decoupled from each other, and the flexible adjustment of the number of channels and the bandwidth of a single channel is supported. The solution has strong versatility and can adapt to the smooth evolution and upgrade of services. See. Figure 6 , Figure 6 FIG. 1 is another data flow diagram of the flow message generation provided by the embodiment of the present application. Figure 6 As shown, it is assumed that FIFO queues are deployed at the input and output ends of each message generation channel. It can be understood that the FIFO queue can also be deployed outside multiple message generation channels and establish a connection with the message generation channels. The specific requirements can be determined according to the actual application scenario requirements or product form, and no limitation is made here. Each message generation channel may include but is not limited to the FIFO queue at the input end, the header module, the Internet protocol (internet protocol, IP) wrapper, the transmission control protocol (Transmission Control Protocol, TCP) / user datagram protocol (user datagram protocol, UDP) wrapper, the filling wrapper and the FIFO queue at the output end and other functional modules. Each message generation channel can realize the generation of traffic messages through the various functional modules it contains. It can be understood that Figure 6 The functional modules included in the message generation channel 1, message generation channel 2, ..., message generation channel N-1 and message generation channel N are only examples, and the number and type of functional modules included in the message generation channel can be set according to the actual application scenario requirements or product form, and are not limited here. Figure 6In each message generation channel shown, data processing such as filling of the header template, filling of the 3-layer IP header, filling of the TCP / UDP4-layer header and filling of the payload of the flow message can be realized through each functional module to complete the filling of the flow message. The flow message generated by each message generation channel can be stored in the FIFO queue at the output end together with the channel identifier of each message generation channel to serve as the input of the subsequent aggregation scheduling of the flow message. Here, the method of realizing the parallel filling of the flow message based on multiple parallel message generation channels can disperse the pressure of the processing performance of the generation of the flow message of the ultra-large bandwidth among multiple channels, and reduce the bandwidth of the flow message generated by each channel. Among them, the number of channels N of the multiple parallel message generation channels and the bandwidth M of the flow message generated in each message generation channel should satisfy that the product of N and M is greater than the port line speed bandwidth. The implementation of the real-time generation of the flow message is flexible and scalable, which can meet the needs of the single-port network test service with the current port line speed bandwidth requirements of 100GE / 200GE / 400GE. In the embodiment of the present application, the number of message generation channels and the bandwidth of the traffic messages required to be generated by each of the above message generation channels can be flexibly configured according to the needs of the actual application scenario, and can support the needs of traffic message generation services with different port line speed bandwidth requirements, and the flexibility and scalability of traffic message generation are higher. Based on the inverse process of distributing the generation of traffic messages to multiple message generation channels, the convergence and scheduling of traffic messages generated by multiple message generation channels can be realized, which can realize the precise order-preserving generation of messages, enhance the operational flexibility of traffic message generation, and have strong applicability.
[0044] In some feasible implementations, when the above-mentioned multiple flow messages taken out by polling scheduling are aggregated according to the scheduling order, each flow message taken out by polling scheduling can be encapsulated in the format of the data sending interface (such as a MAC chip), and the encapsulated flow messages are aggregated according to the scheduling order. In addition, after the above-mentioned multiple flow messages taken out by polling scheduling are aggregated, the sending rate of the business flow message can also be determined, and the message sending interval is determined based on the above-mentioned sending rate. Based on the above-mentioned message sending interval, the above-mentioned business flow message is transmitted to the above-mentioned data sending interface to be sent through the above-mentioned data sending interface. In an embodiment of the present application, the flow messages generated in parallel by multiple flow message generation channels are encapsulated and aggregated based on the format of the data sending interface, and different data sending interfaces can be supported, with strong scalability. Data transmission based on a precise sending rate can be achieved through the control of the message sending interval, and the controllability of flow message data transmission is stronger and the applicability is higher.
[0045] In an embodiment of the present application, by separating the generation of message configuration information and the generation of traffic messages included in the flow message generation process, the required bandwidth of the traffic message required to be generated by a single message generation channel for the message configuration information generation can be reduced, the message configuration information can be processed in real time through a pipeline, the implementation complexity of the message configuration information generation can be simplified, and the flow message generation for large-bandwidth data processing can be implemented in parallel through multiple message generation channels, dispersing the demand pressure of the data processing performance of the flow message generation among multiple message generation channels, reducing the circuit design complexity of the large-bandwidth flow message generation and the data processing complexity of the flow message generation. In addition, the inverse process of distributing the generation of traffic packets to multiple packet generation channels is used to realize the convergence and scheduling of traffic packets generated by multiple packet generation channels, which can realize the precise and sequence-preserving generation of traffic packets, enhance the operational flexibility of traffic packet generation, simplify the design complexity of products such as digital chips such as traffic generators for ultra-large bandwidth traffic generation, realize precise traffic regulation, and have excellent bandwidth scalability. It can be applied to 100GE / 200GE / 400GE ports, providing a solution for the generation of traffic packets for high-end data communication test instruments, and has strong applicability.
[0046] See also Figure 7 , Figure 7 : is a schematic diagram of the structure of a flow message generating device provided in an embodiment of the present application. The flow message generating device provided in an embodiment of the present application may include:
[0047] The message configuration module 71 is used to obtain message configuration information of the traffic message generation service.
[0048] The message generation module 72 is used to distribute the message configuration information generated by the message configuration module 71 to multiple message generation channels in the field programmable gate array FPGA, and generate multiple traffic messages based on the message configuration information through the multiple message generation channels.
[0049] The message aggregation module 73 is used to poll and schedule the above-mentioned multiple flow messages from the above-mentioned multiple message generation channels, and aggregate the above-mentioned multiple flow messages obtained by polling and scheduling to generate a business flow message.
[0050] In some feasible implementations, the message configuration module 71 may be used to:
[0051] Acquire the flow message attribute of the flow message generation service set by the operation object based on the user operation interface, and generate the message configuration information of the flow message generation service based on the flow message attribute through the message configuration space, wherein the flow message attribute is obtained from the service attribute of the flow message generation service;
[0052] Accordingly, the message generation module 72 may be used to:
[0053] The message configuration information and channel identifier of each message generation channel are generated by a multi-channel distribution engine, and the message configuration information of each message generation channel is distributed to multiple message generation channels in the FPGA based on the channel identifier by the multi-channel distribution engine.
[0054] In some feasible implementations, the message configuration module 71 may be used to:
[0055] Acquire traffic message attributes of the traffic message generation service through the communication bus, and generate message configuration information of the traffic message generation service based on the traffic message attributes through multiple message configuration spaces in the multi-channel message generation path in the FPGA, wherein the traffic message attributes are obtained from the service attributes of the traffic message generation service;
[0056] Accordingly, the message generation module 72 may be used to:
[0057] The multiple message configuration information are configured to the multiple message generation channels in the multiple message generation paths through the multiple message configuration spaces, wherein one message configuration space is used to generate and configure one message configuration information to one message generation channel.
[0058] In some feasible implementations, the implementation entity of the above-mentioned message configuration space includes but is not limited to a CPU or an FPGA; the above-mentioned message configuration information includes the number of message configurations generated in real time in a single clock cycle, and the above-mentioned message configuration number is obtained by the clock frequency of the above-mentioned message configuration space and the port line speed bandwidth required for the above-mentioned traffic message generation service.
[0059] In some feasible implementations, the number of the message generation channels and the bandwidth of the traffic message required to be generated by each of the message generation channels are obtained from the port line speed bandwidth required by the traffic message generation service.
[0060] In some feasible implementations, the message aggregation module 73 may be used to:
[0061] Acquire a channel identifier of each message generation channel from the plurality of message generation channels, where the channel identifier is used to indicate a scheduling order of traffic messages generated by the message generation channel;
[0062] Based on the scheduling order of the flow messages indicated by the channel identifiers of the above-mentioned respective message generation channels, the above-mentioned multiple flow messages are polled and scheduled from the above-mentioned multiple message generation channels in turn, and the above-mentioned multiple flow messages taken out by the polling and scheduling are aggregated according to the scheduling order.
[0063] In some feasible implementations, the message aggregation module 73 may be used to:
[0064] Each flow message obtained by polling scheduling is encapsulated according to the format of the data sending interface, and the encapsulated flow messages are aggregated according to the scheduling order.
[0065] In some feasible implementations, the above device further includes:
[0066] The message sending module 74 can be used to determine the sending rate of the business traffic message, determine the message sending interval based on the above sending rate, and transmit the above business traffic message to the above data sending interface based on the above message sending interval so as to be sent through the above data sending interface.
[0067] In the embodiment of the present application, the above-mentioned flow message generation device can be implemented based on each functional module. Figure 1 The implementation methods performed by each step in the flow message generation method shown can be specifically referred to the implementation methods provided by each step in the above-mentioned flow message generation method, and no limitation is made here. Based on the flow message generation device, the generation of message configuration information and the data separation processing of the generation of flow messages included in the flow message generation process can be realized, which can reduce the required bandwidth of the flow message generated by a single message generation channel generated by the message configuration information, can process the message configuration information in real time through a pipeline, can simplify the implementation complexity of the message configuration information generation, and at the same time, the flow message generation for large bandwidth data processing can be realized in parallel through multiple message generation channels, and the demand pressure of the data processing performance of the flow message generation is dispersed in multiple message generation channels, reducing the circuit design complexity of the large bandwidth flow message generation and the data processing complexity of the flow message generation. In addition, the inverse process of distributing the generation of traffic packets to multiple packet generation channels is used to realize the convergence and scheduling of traffic packets generated by multiple packet generation channels, which can realize the precise and sequence-preserving generation of traffic packets, enhance the operational flexibility of traffic packet generation, simplify the design complexity of products such as digital chips such as traffic generators for ultra-large bandwidth traffic generation, realize precise traffic regulation, and have excellent bandwidth scalability. It can be applied to 100GE / 200GE / 400GE ports, providing a solution for the generation of traffic packets for high-end data communication test instruments, and has strong applicability.
[0068] See also Figure 8 , Figure 8 Schematic diagram of the structure of the flow message generating device provided in the embodiment of the present application. Figure 8As shown, the flow message generating device includes: a processor 81, a memory 82 and a network interface 83, and the processor 81, the memory 82 and the network interface 83 are connected. The memory 82 is used to store instructions. The processor 81 is used to execute the instructions stored in the memory 82 to implement the above Figure 1 The flow message generation method shown in the figure, the above processor executes the above instruction and can also execute the above Figure 7 The implementation method implemented by the flow message generating device in the corresponding embodiment will not be described in detail here. In addition, the description of the beneficial effects of adopting the same method will not be described in detail here either.
[0069] In the embodiment of the present application, based on the functional implementation of the traffic message generation device, the generation of message configuration information and data separation processing of the generation of traffic messages included in the traffic message generation process can be realized, the required bandwidth of the traffic message required to be generated by a single message generation channel generated by the message configuration information can be reduced, the message configuration information can be processed in real time through a pipeline, the implementation complexity of the message configuration information generation can be simplified, and the traffic message generation for large-bandwidth data processing can be implemented in parallel through multiple message generation channels, and the demand pressure of the data processing performance of the traffic message generation is dispersed among multiple message generation channels, reducing the circuit design complexity of the large-bandwidth traffic message generation and the data processing complexity of the traffic message generation. In addition, the inverse process of distributing the generation of traffic packets to multiple packet generation channels is used to realize the convergence and scheduling of traffic packets generated by multiple packet generation channels, which can realize the precise and sequence-preserving generation of traffic packets, enhance the operational flexibility of traffic packet generation, simplify the design complexity of products such as digital chips such as traffic generators for ultra-large bandwidth traffic generation, realize precise traffic regulation, and have excellent bandwidth scalability. It can be applied to 100GE / 200GE / 400GE ports, providing a solution for the generation of traffic packets for high-end data communication test instruments, and has strong applicability.
[0070] The present application also provides a computer-readable storage medium storing a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, Figure 1 For details on the methods provided in each step, please refer to the above Figure 1 The implementation methods provided in each step are not described in detail here. In addition, the description of the beneficial effects of the same method is not described in detail here.
[0071] The computer-readable storage medium may be an internal storage unit of the device or the above-mentioned equipment provided in any of the aforementioned embodiments, such as a hard disk or memory of a computer device. The computer-readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a smart memory card (smart media card, SMC), a secure digital (secure digital, SD) card, a flash card (flash card), etc. equipped on the computer device. Further, the computer-readable storage medium may also include both an internal storage unit of the computer device and an external storage device. The computer-readable storage medium is used to store the computer program and other programs and data required by the computer device. The computer-readable storage medium may also be used to temporarily store data that has been output or is to be output.
Claims
1. A method for generating a flow message, characterized in that: The method comprises: Obtain the packet configuration information of the traffic packet generation service; Distribute the message configuration information to multiple message generation channels in a field programmable gate array FPGA, and generate multiple traffic messages based on the message configuration information through the multiple message generation channels; The multiple flow messages are polled and scheduled from the multiple message generation channels, and the multiple flow messages taken out by the polling and scheduling are aggregated to generate a service flow message.
2. The method according to claim 1, characterized in that: The message configuration information of the traffic message generation service is obtained including: Acquire a flow message attribute of a flow message generation service set by an operation object based on a user operation interface, and generate message configuration information of the flow message generation service based on the flow message attribute through a message configuration space, wherein the flow message attribute is obtained from a service attribute of the flow message generation service; The distributing the message configuration information to multiple message generation channels in the FPGA includes: The message configuration information and channel identifier of each message generation channel are generated by a multi-channel distribution engine, and the message configuration information of each message generation channel is distributed to multiple message generation channels in the FPGA based on the channel identifier by the multi-channel distribution engine.
3. The method according to claim 1, characterized in that The message configuration information of the traffic message generation service is obtained including: Acquire a flow message attribute of a flow message generation service through a communication bus, and generate multiple message configuration information of the flow message generation service based on the flow message attribute through multiple message configuration spaces in a multi-channel message generation path in the FPGA, wherein the flow message attribute is obtained from the service attribute of the flow message generation service; The distributing the message configuration information to multiple message generation channels in the FPGA includes: The multiple message configuration information are configured to multiple message generation channels in the multiple message generation paths through the multiple message configuration spaces, wherein one message configuration space is used to generate and configure one message configuration information to one message generation channel.
4. The method according to claim 2 or 3, characterized in that: The implementation subject of the message configuration space includes but is not limited to a central processing unit CPU or FPGA; The message configuration information includes the number of message configurations generated in real time in a single clock cycle, and the number of message configurations is obtained by the clock frequency of the message configuration space and the port line speed bandwidth required by the traffic message generation service.
5. The method according to claim 2 or 3, characterized in that: The number of the message generation channels and the bandwidth of the traffic messages required to be generated by each of the message generation channels are obtained from the port line speed bandwidth required by the traffic message generation service.
6. The method according to claim 2 or 3, characterized in that: The polling and scheduling the multiple flow messages from the multiple message generation channels, and aggregating the multiple flow messages obtained by the polling and scheduling includes: Acquire a channel identifier of each message generation channel from the multiple message generation channels, where the channel identifier is used to indicate a scheduling order of traffic messages generated by the message generation channel; Based on the scheduling order of the flow messages indicated by the channel identifiers of the respective message generation channels, the multiple flow messages are polled and scheduled from the multiple message generation channels in turn, and the multiple flow messages taken out by the polling and scheduling are aggregated according to the scheduling order.
7. The method according to claim 6, characterized in that The step of aggregating the plurality of traffic messages retrieved by polling scheduling according to the scheduling order comprises: Each flow message obtained by polling scheduling is encapsulated according to the format of the data sending interface, and the encapsulated flow messages are aggregated according to the scheduling order.
8. The method according to any one of claims 1 to 7, characterized in that: After aggregating the multiple traffic messages taken out by the polling scheduling, the method further includes: Determine a sending rate of service flow messages, and determine a message sending interval based on the sending rate; The service traffic message is transmitted to the data sending interface based on the message sending interval so as to be sent through the data sending interface.
9. A flow message generating device, characterized in that: The device comprises: A message configuration module, used to obtain message configuration information of a traffic message generation service; A message generation module, used to distribute the message configuration information generated by the message configuration module to multiple message generation channels in a field programmable gate array FPGA, and generate multiple traffic messages based on the message configuration information through the multiple message generation channels; The message aggregation module is used to poll and schedule the multiple flow messages from the multiple message generation channels, and aggregate the multiple flow messages taken out by the polling and scheduling to generate a business flow message.
10. The device according to claim 9, characterized in that The message configuration module is used for: Acquire a flow message attribute of a flow message generation service set by an operation object based on a user operation interface, and generate message configuration information of the flow message generation service based on the flow message attribute through a message configuration space, wherein the flow message attribute is obtained from a service attribute of the flow message generation service; The message generation module is used for: The message configuration information and channel identifier of each message generation channel are generated by a multi-channel distribution engine, and the message configuration information of each message generation channel is distributed to multiple message generation channels in the FPGA based on the channel identifier by the multi-channel distribution engine.
11. The device according to claim 9, characterized in that The message configuration module is used for: Acquire a flow message attribute of a flow message generation service through a communication bus, and generate message configuration information of the flow message generation service based on the flow message attribute through a plurality of message configuration spaces in a multi-channel message generation path in an FPGA, wherein the flow message attribute is obtained from a service attribute of the flow message generation service; The message generation module is used for: The multiple message configuration information are configured to multiple message generation channels in the multiple message generation paths through the multiple message configuration spaces, wherein one message configuration space is used to generate and configure one message configuration information to one message generation channel.
12. The device according to claim 10 or 11, characterized in that The implementation subject of the message configuration space includes but is not limited to a central processing unit CPU or FPGA; The message configuration information includes the number of message configurations generated in real time in a single clock cycle, and the number of message configurations is obtained by the clock frequency of the message configuration space and the port line speed bandwidth required by the traffic message generation service.
13. The device according to claim 10 or 11, characterized in that The number of the message generation channels and the bandwidth of the traffic messages required to be generated by each of the message generation channels are obtained from the port line speed bandwidth required by the traffic message generation service.
14. The device according to claim 10 or 11, characterized in that The message aggregation module is used for: Acquire a channel identifier of each message generation channel from the multiple message generation channels, where the channel identifier is used to indicate a scheduling order of traffic messages generated by the message generation channel; Based on the scheduling order of the flow messages indicated by the channel identifiers of the respective message generation channels, the multiple flow messages are polled and scheduled from the multiple message generation channels in turn, and the multiple flow messages taken out by the polling and scheduling are aggregated according to the scheduling order.
15. The device according to claim 14, characterized in that The message aggregation module is used for: Each flow message obtained by polling scheduling is encapsulated according to the format of the data sending interface, and the encapsulated flow messages are aggregated according to the scheduling order.
16. The device according to any one of claims 1 to 15, characterized in that The device also includes: The message sending module is used to determine the sending rate of the business traffic message, determine the message sending interval based on the sending rate, and transmit the business traffic message to the data sending interface based on the message sending interval so as to be sent through the data sending interface.
17. A flow message generating device, characterized in that: include: Processor, memory, and network interface; The processor is connected to the memory and the network interface, wherein the network interface is used to provide a data communication function, the memory is used to store program code, and the processor is used to call the program code to execute the steps of the method described in any one of claims 1 to 8.
18. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the steps of the method according to any one of claims 1 to 8 are executed.
Citation Information
Cited By
Method and device for controlling message sending rate and rate controller
CN119363622A
