CN1324827C - Method and apparatus for generating test flow - Google Patents
Method and apparatus for generating test flow Download PDFInfo
- 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
- port
- header
- initial value
- flow
- 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
Links
Images
Landscapes
- Microcomputers (AREA)
Abstract
The present invention discloses a generation method for a test stream. A cell header is generated in a microprocessor according to the flow distribution, and a cell seed is generated to replace a payload; the payload of the cell is generated in a cell retransmission port by a random function generator; the data to be transmitted between the microprocessor and the cell retransmission port is the cell header and the cell seed, and the size of the data is less than a quarter of the whole cell. The workload of the microprocessor is greatly decreased, the requirement for the bandwidth between the microprocessor and the cell retransmission port is reduced, and thereby, the test stream having large flow rate is simultaneously provided under the condition that hardware is not added, for example, a test stream generation circuit can simultaneously provide a 2.5 Gbps test stream and a 10 Gbps test stream.
Description
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 kind of production method of testing stream 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 transmitted port to one or more cells; C) each cell is transmitted the inner randomizer generation cell payload of logical foundation cell random data initial value information use of port, and forms complete cell by header and cell payload.
2, the production method of test stream as claimed in claim 1 is characterized in that: after each cell was transmitted the complete cell of port composition, the cell reorganization that a plurality of cells are transmitted ports formed the cell that a flow is higher than former cell.
3, the production method of test stream as claimed in claim 1 or 2, it is characterized in that: it is 4 that described cell is transmitted port, and each cell is transmitted the test stream that port produces the 2.5Gbps flow, and the reorganization back forms the test stream of 10Gbps flow.
4, the production method of test as claimed in claim 1 or 2 stream is characterized in that: steps A therein) afterwards, step B) before, also with the header that produces and cell random data initial value information configuration in dynamic memory.
5, a kind of generation device of testing stream 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.
6, the production method of test stream as claimed in claim 5 is characterized in that: also comprise the cell reconstruction unit, be used for the cell reorganization of a plurality of ports is formed the cell that a flow is higher than former cell.
7, as the production method of claim 5 or 6 described test streams, it is characterized in that: it is 4 that described cell is transmitted port, and each cell is transmitted the test stream that port produces the 2.5Gbps flow, and the reorganization back forms the test stream of 10Gbps flow.
8, as the production method of claim 5 or 6 described test streams, it is characterized in that: also be provided with dynamic memory between microprocessor and cell forwarding port, the header and the cell random data initial value information configuration that are used for producing arrive wherein.
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)
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 |
-
2002
- 2002-07-23 CN CNB021267936A patent/CN1324827C/en not_active Expired - Fee Related
Patent Citations (2)
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 |
---|---|---|
CN1291574C (en) | Multipoint communication method and device | |
CN1423818A (en) | Simultaneous addressing using single-port RAMS | |
CN1339903A (en) | Method for inserting length indication symbol in radio link circuit control protocol data unit | |
US20020037008A1 (en) | Traffic generation apparatus | |
CN1509025A (en) | Method for realizing message partition packet | |
CA2298275A1 (en) | Method for processing network messages | |
CN1324827C (en) | Method and apparatus for generating test flow | |
CN110463212A (en) | The low latency pipeline being packaged for media to Ethernet frame | |
CN1248465C (en) | Management method of data fransmission/receiving butter region in network communication | |
CN1859417A (en) | Method for realizing multiple network device link aggregation | |
CN1881932A (en) | SPI4II interface remote transmission realizing method and apparatus | |
CN1859279A (en) | Method for dispatching variable length data packet queue in crossbar switching matrix | |
CN101582884B (en) | System and method for 3G data packet reorganization based on FPGA | |
CN1455531A (en) | Communication method for performing all-tier protocol stack processing by base station side | |
CN1531283A (en) | Group transmitting system with effective grouping managing unit and operating method thereof | |
CN1268826A (en) | Device and method for relay waving absorbing | |
CN108521416A (en) | A kind of ECN boards | |
CN1108679C (en) | Address allocation method for records of values representing various parameters | |
CN1669288A (en) | Method and system for determining conformance of a data key with rules by means of memory lookup | |
CN1619987A (en) | Device and method for proceeding simulation to time delay | |
CN1141848C (en) | Sub-layer transmitter device for AAL2 common part | |
CN1309220C (en) | Multi-point non-tunnel transparent transmission method | |
CN1220940C (en) | Mailbox communication apparatus simulation method and process for testing host machine and single board interface | |
CN1713602A (en) | Improvement of virtual cascade delay compensation | |
CN110213145B (en) | Northbridge device, bus interconnection network and data transmission 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 |