CN1324827C - Method and apparatus for generating test flow - Google Patents

Method and apparatus for generating test flow Download PDF

Info

Publication number
CN1324827C
CN1324827C CNB021267936A CN02126793A CN1324827C CN 1324827 C CN1324827 C CN 1324827C CN B021267936 A CNB021267936 A CN B021267936A CN 02126793 A CN02126793 A CN 02126793A CN 1324827 C CN1324827 C CN 1324827C
Authority
CN
China
Prior art keywords
cell
flow
header
initial value
random data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CNB021267936A
Other languages
Chinese (zh)
Other versions
CN1471248A (en
Inventor
王新建
臧大军
余进
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB021267936A priority Critical patent/CN1324827C/en
Publication of CN1471248A publication Critical patent/CN1471248A/en
Application granted granted Critical
Publication of CN1324827C publication Critical patent/CN1324827C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Microcomputers (AREA)

Abstract

本发明公开一种测试流的产生方法,信元头根据流量分布在微处理器中产生,并产生一个信元随机数据初始值来代替净荷。信元的净荷在信元转发端口内部通过随机函数发生器来产生。这样微处理器和信元转发端口之间需要传递的数据只是信元头和信元随机数据初始值,它们的的大小不到整个信元的1/4。这样,就大大减少了微处理器的工作量,减小了对微处理器和信元转发端口之间带宽的要求,从而实现了在不增加硬件的情况下,能同时提供更大流量的测试流,例如:用同一块测试流生成电路就可以同时提供2.5Gbps测试流和10Gbps测试流。

Figure 02126793

The invention discloses a method for generating a test flow. The cell header is generated in a microprocessor according to the flow distribution, and an initial value of cell random data is generated to replace the payload. The payload of the cell is generated by a random function generator inside the cell forwarding port. In this way, the data that needs to be transmitted between the microprocessor and the cell forwarding port is only the cell header and the initial value of the random data of the cell, and their size is less than 1/4 of the entire cell. In this way, the workload of the microprocessor is greatly reduced, and the requirement for the bandwidth between the microprocessor and the cell forwarding port is reduced, so that a test flow with a larger flow rate can be provided at the same time without increasing the hardware , For example: 2.5Gbps test flow and 10Gbps test flow can be provided at the same time with the same test flow generation circuit.

Figure 02126793

Description

The production method and the device of test stream
Technical field:
The present invention relates to a kind of production method and device that is used for the test stream of communication equipment.
Background technology:
The production method of test information cells is general complete is now generated by software.Software can produce the cell flow that meets certain distribution (as Poisson distribution, Gaussian Profile), comprises header information (priority of source port number, destination slogan, cell) and the cell payload that generates according to random algorithm.The cell structure that generates as shown in Figure 1.
The example that is produced as with 10Gbps and 2.5Gbps test stream, after software generates a complete cell, whole cell is configured among the RAM (dynamic memory), produces the test stream of 10Gbps or 2.5Gbps with 10Gbps or different hardware, the logical versions of 2.5Gbps.Produce schematic diagram such as Fig. 2 of test stream.
Produce hardware, logical circuit such as Fig. 3 of 2.5Gbps test stream, in this test stream generative circuit, microprocessor generates cell, and the function of logic only needs read cell by the mode of cyclic query, and according to the reorganization of circuit-under-test demand and send out.
The hardware circuit of generation 10Gbps test traffic as shown in Figure 4, owing to will produce the flow of 10Gbps, microprocessor and RAM and RAM and FPGA (being used for transmitting the logical circuit of cell) if between flow bandwidth 4 times of 2.5Gbps flow just, because the frequency of clock is certain, just need to place the requirement that 4 block RAMs satisfy bandwidth.
The above-mentioned test stream generation method formula of prior art implements simply, and the work that key data miscarriage is given birth to is finished by software, and hardware only is responsible for sending data according to the flow port of 10Gbps or according to the flow port of 2.5Gbps, but it has following shortcoming:
1, software work amount big (it is big to be actually the microprocessor work amount) not only will produce header information and also will produce cell payload (also claiming the cell body), and the efficient that causes generating cell is lower, and the time that produces test stream is longer.
2, in this way, the data flow of 10Gbps produces with the generation of 2.5Gbps data flow needs different hardware, logical versions to support.
3, in order to support the test stream of 10Gbps, need support by 4 block RAMs.
4, the bandwidth ratio that needs between microprocessor and RAM and RAM and the FPGA is bigger, first payload because first header of not only will delivering a letter between them also will be delivered a letter.
When test streams such as needs generation 5G, 20G, there is above-mentioned shortcoming equally.
Summary of the invention:
The purpose of this invention is to provide a kind of production method and device of testing stream, improve the cell formation efficiency, reduce the requirement that centering turns over the journey bandwidth, under the situation that does not increase bandwidth, can generate more high-speed data-flow.
For achieving the above object, the present invention proposes a kind of production method of testing stream, it is characterized in that comprising the steps: A) microprocessor produces header and cell random data initial value information according to the flow distribution rule of cell; B) according to time slot allocation header and cell random data initial value information distribution are arrived one or more ports; C) the logical foundation cell random data initial value information of each port uses inner randomizer to produce the cell payload, and forms complete cell by header and cell payload.
The present invention also proposes a kind of generation device of testing stream, it is characterized in that comprising as lower device: the microprocessor that A) is used for producing according to the flow distribution rule of cell header and cell random data initial value information; B) be used for transmitting ports according to one or more cells of time slot allocation reception header and cell random data initial value information; C) be used for using inner randomizer to produce the cell payload according to cell random data initial value information, and header and cell payload formed the port logic circuit of complete cell, described port logic circuit and cell are transmitted port and are linked to each other or directly be arranged in the forwarding port.
Owing to adopted above scheme, separated the position that header and cell payload produce: header uses software to produce in microprocessor according to flow distribution, and produces a cell random data initial value and replace payload.The payload of cell is transmitted port inside at cell and is produced by randomizer.To transmit the data that need to transmit between the port be header and cell random data initial value for microprocessor and cell like this, they size less than 1/4 of whole cell.Like this, just significantly reduce the workload of microprocessor, improved the cell formation efficiency; Reduced requirement to bandwidth between microprocessor and the cell forwarding port, thereby realized under the situation that does not increase bandwidth, can provide the test stream of bigger flow simultaneously, for example: just can provide 2.5Gbps test stream and 10Gbps test stream simultaneously with same test stream generative circuit.
Description of drawings:
Fig. 1 is the cell structure schematic diagram.
Fig. 2 is the process schematic diagram that produces test stream in the prior art.
Fig. 3 is hardware, the logical circuit schematic diagram that produces 2.5Gbps test stream in the prior art.
Fig. 4 is the hardware circuit schematic diagram that produces the 10Gbps test traffic in the prior art.
Fig. 5 is that the present invention tests stream generation schematic diagram.
Fig. 6 is 10Gbps of the present invention and 2.5Gbps compatibility test stream generative circuit schematic diagram.
Embodiment:
Also the present invention is described in further detail in conjunction with the accompanying drawings below by specific embodiment.
See Fig. 5, the generative process that the present invention tests stream is as follows: header uses software to produce in microprocessor according to flow distribution, and the cell random data initial value that produces a 32bits replaces the cell payload.According to time slot allocation a header and cell random data initial value information distribution to 4 a 2.5Gbps port, the logical foundation cell random data initial value of each port uses inner randomizer to produce the cell payload information, has just formed the test stream of a 10Gbps.
Because the payload of cell produces by randomizer in FPGA inside, to be configured to the data that data among the RAM and FPGA inquire in RAM be header and cell random data initial value to microprocessor like this, their size is less than 1/4 of whole cell, so in the common test flow generator, FPGA inquires about the time slot of a cell in RAM, can transmit 4 headers and cell payload in this patent.
Because the present cell characteristic information that generates (header and seed) size has improved 4 times less than original 1/4 so upgrade the common way of time ratio of RAM.In FPGA inquiry RAM information, inquired about the time slot of a cell originally and can inquire about 4 cell characteristic informations now.These 4 header information are assigned to 4 parts of FPGA inside by the principle of time slot distribution, each part all has a randomizer, the seed that obtains according to oneself generates the cell payload, form cell with header, according to the difference of institute's test cross draping, cell is recombinated again to the cell structure requirement.Each part can produce the test stream of a 2.5Gbps flow, and 4 ports just can generate the test stream of 10Gbps flow.
Owing to only transmit header and cell random data initial value information between little processing and RAM and RAM and the FPGA, shared data volume is less than transmitting 1/4 of cell flow, so support the data bandwidth of a block RAM that only needs of the flow of 10Gbps just can meet the demands.
The present invention is particularly suitable for the generation of 10Gbps test stream, but can be suitable for equally the generation of 5G, 20G or higher test stream, and all has the following advantages:
1, because microprocessor only produces header and cell random data initial value information, so The workload of little processing reduces greatly, and also only literary composition is original to generate and dispose the used time of RAM content 1/4.
2, between microprocessor and RAM and RAM and the FPGA because transmit cell head and cell Random data initial value information rather than transmit whole cell is so bandwidth requirement only is original 1/4.
3, because above-mentioned the 2nd advantage when supporting the 10Gbps flow, only needs a block RAM Data/address bus just meet the demands.
The emulation of the present invention's process, and in experimental project, use, be proven reliably feasible.

Claims (8)

1、一种测试流的产生方法,其特征是包括如下步骤:A)微处理器根据信元的流量分布规律产生信元头和信元随机数据初始值信息;B)根据时隙分配把信元头和信元随机数据初始值信息分配到一个或多个信元转发端口;C)各信元转发端口的逻辑根据信元随机数据初始值信息使用内部的随机函数发生器产生信元净荷,并由信元头和信元净荷组成完整的信元。1, a kind of generation method of test flow, it is characterized in that comprising the steps: A) microprocessor produces cell header and cell random data initial value information according to the flow distribution law of cell; B) distributes cell according to time slot The header and the initial value information of cell random data are distributed to one or more cell forwarding ports; C) the logic of each cell forwarding port uses the internal random function generator to generate the cell payload according to the initial value information of cell random data, and A complete cell is composed of a cell header and a cell payload. 2、如权利要求1所述的测试流的产生方法,其特征是:在各信元转发端口组成完整的信元后,多个信元转发端口的信元重组形成一个流量高于原信元的信元。2. The method for generating a test flow as claimed in claim 1, characterized in that: after each cell forwarding port forms a complete cell, the cells of a plurality of cell forwarding ports are recombined to form a cell whose flow rate is higher than that of the original cell cell. 3、如权利要求1或2所述的测试流的产生方法,其特征是:所述信元转发端口为4个,每个信元转发端口产生2.5Gbps流量的测试流,重组后形成10Gbps流量的测试流。3. The method for generating a test flow as claimed in claim 1 or 2, characterized in that: there are four cell forwarding ports, each cell forwarding port generates a test flow of 2.5Gbps flow, and forms a 10Gbps flow after reorganization the test flow. 4、如权利要求1或2所述的测试流的产生方法,其特征是:在其中步骤A)之后、步骤B)之前,还将产生的信元头和信元随机数据初始值信息配置到动态存储器中。4. The generation method of test flow as claimed in claim 1 or 2, characterized in that: after step A) and before step B), the generated cell header and initial value information of cell random data are configured in dynamic in memory. 5、一种测试流的产生装置,其特征是包括如下装置:A)用于根据信元的流量分布规律产生信元头和信元随机数据初始值信息的微处理器;B)用于根据时隙分配接收信元头和信元随机数据初始值信息的一个或多个信元转发端口;C)用于根据信元随机数据初始值信息使用内部的随机函数发生器产生信元净荷,并将信元头和信元净荷组成完整的信元的端口逻辑电路,所述端口逻辑电路与信元转发端口相连或直接设置于转发端口内。5, a kind of generation device of test flow, it is characterized in that comprising following device: A) be used for the microprocessor that produces cell header and cell random data initial value information according to the traffic distribution law of cell; B) be used for according to time One or more cell forwarding ports for receiving the cell header and the initial value information of the random data of the cell; C) for using the internal random function generator to generate the payload of the cell according to the initial value information of the random data of the cell, and The cell header and the cell payload form a complete port logic circuit of the cell, and the port logic circuit is connected to the cell forwarding port or directly arranged in the forwarding port. 6、如权利要求5所述的测试流的产生方法,其特征是:还包括信元重组装置,用于将多个端口的信元重组形成一个流量高于原信元的信元。6. The method for generating test streams according to claim 5, further comprising a cell recombination device for recombining cells of multiple ports into a cell with a flow rate higher than that of the original cell. 7、如权利要求5或6所述的测试流的产生方法,其特征是:所述信元转发端口为4个,每个信元转发端口产生2.5Gbps流量的测试流,重组后形成10Gbps流量的测试流。7. The method for generating test streams as claimed in claim 5 or 6, characterized in that: there are four cell forwarding ports, and each cell forwarding port generates a test stream of 2.5Gbps traffic, which forms 10Gbps traffic after reorganization the test flow. 8、如权利要求5或6所述的测试流的产生方法,其特征是:在微处理器和信元转发端口之间还设有动态存储器,用于将产生的信元头和信元随机数据初始值信息配置到其中。8. The method for generating a test flow as claimed in claim 5 or 6, characterized in that: a dynamic memory is also provided between the microprocessor and the cell forwarding port, for initializing the generated cell header and cell random data Value information is configured into it.
CNB021267936A 2002-07-23 2002-07-23 Method and apparatus for generating test flow Expired - Fee Related CN1324827C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB021267936A CN1324827C (en) 2002-07-23 2002-07-23 Method and apparatus for generating test flow

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB021267936A CN1324827C (en) 2002-07-23 2002-07-23 Method and apparatus for generating test flow

Publications (2)

Publication Number Publication Date
CN1471248A CN1471248A (en) 2004-01-28
CN1324827C true CN1324827C (en) 2007-07-04

Family

ID=34143395

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB021267936A Expired - Fee Related CN1324827C (en) 2002-07-23 2002-07-23 Method and apparatus for generating test flow

Country Status (1)

Country Link
CN (1) CN1324827C (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001050624A1 (en) * 1999-12-30 2001-07-12 Morphics Technology, Inc. Method and apparatus to support multi standard, multi service base-stations for wireless voice and data networks
CN1320861A (en) * 2000-06-20 2001-11-07 深圳市中兴通讯股份有限公司 Digital signal test system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001050624A1 (en) * 1999-12-30 2001-07-12 Morphics Technology, Inc. Method and apparatus to support multi standard, multi service base-stations for wireless voice and data networks
CN1320861A (en) * 2000-06-20 2001-11-07 深圳市中兴通讯股份有限公司 Digital signal test system

Also Published As

Publication number Publication date
CN1471248A (en) 2004-01-28

Similar Documents

Publication Publication Date Title
CN103514119B (en) Multifunctional equipment is presented to method, device and the application of main frame with USB unit equipment
CN103701710B (en) Data transmission method, core forwarding equipment and endpoint forwarding equipment
CN1282339C (en) A data frame buffer memory device and method for Ethernet passive optical network
US7151751B2 (en) Traffic generation apparatus suitable for use in communication experiments
CN1509025A (en) A Method for Realizing Fragmentation and Grouping of Messages
CN106375128B (en) PPTP VPN-based accelerated access method, device and device
CN103067396B (en) The method of three-dimension GIS asynchronous communication transmission system and asynchronous communication transmission thereof
CN1700674A (en) Packet generation method, communication method, packet processing method and data structure
CN1534952A (en) Method for mapping layer 3 packets over synchronous digital transport network or optical transport network
CN1324827C (en) Method and apparatus for generating test flow
CN1112018C (en) Asynchronous transfer mode interface module
CN103281211A (en) Large-scale network node grouping management system and management method
CN107454008B (en) A Gigabit 10 Gigabit Ethernet interworking system and method
CN103746945B (en) A kind of data transmission device and method
EP1497666A1 (en) Flexible streaming hardware
CN112019440A (en) Multicast Method of CAN Bus Based on Identifier Multiplexing
CN1062400C (en) Synchronizing circuit arrangement
CN102932458B (en) Point-to-point protocol (PPP) hardware acceleration system and achieving method thereof
CN1281037C (en) Group transmitting system with effective grouping managing unit and operating method thereof
CN102231141A (en) Method and system for reading and writing data
CN1792068A (en) Message memory for a communication protocol and method
CN106789706B (en) Network shunting system based on TCAM
US7675947B2 (en) Data transmission with bundling of multiple transmission channel facilities
CN106789452B (en) A Method of Mapping Scale Stress Test Based on LISP
CN116418544A (en) A high-speed encryption and decryption engine and encryption and decryption implementation method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20070704

Termination date: 20150723

EXPY Termination of patent right or utility model