High-speed data packet generator
Abstract
An embodiment may involve executing a set of instructions, where the set of instructions define how to generate outputs that represent one or more data packets, and where segments of the outputs are copied from first parts of respective instructions in the set of instructions. The embodiment may further involve: retrieving, from a plurality of registers, a data packet header; retrieving, from the plurality of registers, a first part of a data packet payload and an increment value; applying the increment value to the first part of the data packet payload to generate a second part of the data packet payload; storing, in the plurality of registers, the first part of the data packet payload with the increment value applied; and providing, as additional segments of the outputs, the data packet header, the first part of the data packet payload, and the second part of the data packet payload.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 45 · Forward citations: 1.
Claims (19 — 2 Independent, 17 Dependent)
- Claim 1Independent Claim
A system comprising: a plurality of registers; instruction memory; and an execution unit configured to generate a sequence of outputs by executing a set of instructions stored in the instruction memory on values stored in the plurality of registers, wherein executing an instruction from the set of instructions involves: reading one or more of the values from the plurality of registers; generating a data payload based on the one or more of the values; and appending at least four control bits from the instruction to the data payload, wherein the control bits define how the data payload is to be placed in a data packet, and wherein the control bits define a count of valid bytes in the data payload and a number of times that the execution unit is to repeatedly execute the instruction; and a processor configured to generate, from the sequence of outputs, the data packet.
- Claim 2Depends on #1
The system of claim 1, wherein the data packet includes one or more data packet headers and a data packet payload.
- Claim 3Depends on #2
The system of claim 2, wherein the one or more of the values define at least part of the one or more data packet headers and the data packet payload.
- Claim 4Depends on #1
The system of claim 1, wherein the control bits define whether the data payload is valid, and wherein the processor is configured to omit invalid data payloads from the data packet.
- Claim 5Depends on #1
The system of claim 1, wherein the control bits define whether the data payload is at a start of the data packet, and wherein the processor is configured to place data payloads at the start of the data packet when indicated by the control bits.
- Claim 6Depends on #1
The system of claim 1, wherein the control bits define whether the data payload is at an end of the data packet, and wherein the processor is configured to place data payloads at the end of the data packet when indicated by the control bits.
- Claim 7Depends on #1
The system of claim 1, wherein the control bits specify an add opcode, a pair of the registers containing operands, and a third of the registers for storing a result, wherein reading the one or more of the values from the plurality of registers comprises reading the operands from the pair of the registers, and wherein generating the data payload based on the one or more of the values comprises: performing addition on the operands to form the result; placing the result in the data payload; and writing the result to the third of the registers.
- Claim 8Depends on #1
The system of claim 1, wherein the control bits specify a logical OR opcode, a pair of the registers containing operands, and a third of the registers for storing a result, wherein reading the one or more of the values from the plurality of registers comprises reading the operands from the pair of the registers, and wherein generating the data payload based on the one or more of the values comprises: performing a logical OR on the operands to form the result; placing the result in the data payload; and writing the result to the third of the registers.
- Claim 9Depends on #1
The system of claim 1, wherein the control bits specify an add-and-mask opcode, a pair of the registers containing addition operands, a third of the registers containing a logical AND operand, and a fourth of the registers for storing a result, wherein reading the one or more of the values from the plurality of registers comprises reading the operands from the pair of the registers and reading the logical AND operand from the third of the registers, and wherein generating the data payload based on the one or more of the values comprises: performing addition on the operands from the pair of the registers to form a partial result; performing a logical AND operation on the partial result and the logical AND operand to form the result; placing the result in the data payload; and writing the result to the fourth of the registers.
- Claim 10Depends on #1
The system of claim 1, wherein the control bits specify an opcode, one or more registers of the registers respectively containing the one or more of the values, and a further register of the plurality of registers for storing a result, wherein reading the one or more of the values from the plurality of registers comprises reading one or more operands from the one or more of the registers, and wherein generating the data payload based on the one or more of the values comprises: performing an operation, specified by the opcode, on the operands to form the result; placing the result in the data payload; and writing the result to the further register.
- Claim 11Depends on #10
The system of claim 10, wherein the further register is in the one or more of the registers.
- Claim 12Depends on #1
The system of claim 1, wherein generating the data packet comprises appending the outputs to one another in order of the sequence but without any of the control bits.
- Claim 13Depends on #1
The system of claim 1, further comprising: two or more transceivers coupled to the processor, wherein the processor is also configured to transmit the data packet by way of a first transceiver of the two or more transceivers.
- Claim 14Depends on #13
The system of claim 13, further comprising: a packet capture mechanism configured to receive, by way of a second transceiver of the two or more transceivers, the data packet, wherein a loopback cable connects the first transceiver to the second transceiver; and a validator software application configured to determine whether content of the data packet as captured matches the content of the data packet as generated.
- Claim 15Depends on #1
The system of claim 1, further comprising: an OR unit configured to modify the sequence of outputs based on a control bit from the instruction prior to the processor generating the data packet; a cyclic redundancy check (CRC) generator configured to modify the sequence of outputs based on a control bit from the instruction prior to the processor generating the data packet; and a multiplexor configured to modify the sequence of outputs based on a control bit from the instruction prior to the processor generating the data packet.
- Claim 16Independent Claim
A method comprising: generating, by an execution unit executing a set of instructions stored in instruction memory, a sequence of outputs, wherein executing an instruction from the set of instructions involves: reading one or more values from a plurality of registers; generating a data payload based on the one or more values; and appending at least four control bits from the instruction to the data payload, wherein the control bits define how the data payload is to be placed in a data packet, and wherein the control bits define a count of valid bytes in the data payload and a number of times that the execution unit is to repeatedly execute the instruction; and generating, by a processor and from the sequence of outputs, the data packet.
- Claim 17Depends on #16
The method of claim 16, wherein the control bits define whether the data payload is valid, wherein the processor is configured to omit invalid data payloads from the data packet, wherein the control bits define whether the data payload is at a start of the data packet, wherein the processor is configured to place data payloads at the start of the data packet when indicated by the control bits, wherein the control bits define whether the data payload is at an end of the data packet, and wherein the processor is configured to place data payloads at the end of the data packet when indicated by the control bits.
- Claim 18Depends on #16
The method of claim 16, wherein the control bits specify an opcode, one or more registers of the registers respectively containing the one or more values, and a further register of the plurality of registers for storing a result, wherein reading the one or more values from the plurality of registers comprises reading one or more operands from the one or more of the registers, and wherein generating the data payload based on the one or more values comprises: performing an operation, specified by the opcode, on the operands to form the result; placing the result in the data payload; and writing the result to the further register.
- Claim 19Depends on #16
The method of claim 16, wherein two or more transceivers are coupled to the processor, wherein the processor is also configured to transmit the data packet by way of a first transceiver of the two or more transceivers, wherein a packet capture mechanism configured to receive, by way of a second transceiver of the two or more transceivers, the data packet, wherein a loopback cable connects the first transceiver to the second transceiver; and wherein a validator software application configured to determine whether content of the data packet as captured matches the content of the data packet as generated.
Technical Overview & Description
CROSS-REFERENCE TO RELATED APPLICATIONS This application is a continuation of and claims priority to U.S. patent application Ser. No. 16/590,855, filed Oct. 2, 2019, which is hereby incorporated by reference in its entirety. U.S. patent application Ser. No. 16/590,855 is a continuation-in-part of and claims priority to U.S. patent application Ser. No. 16/528,952, filed Aug. 1, 2019, which is hereby incorporated by reference in its entirety. U.S. patent application Ser. No. 16/528,952 is a continuation of and claims priority to U.S. patent application Ser. No. 15/609,729, filed May 31, 2017, which is also hereby incorporated by reference in its entirety. BACKGROUND Data packet generation is an important tool in testing networks and network equipment, such as switches, routers, servers, and even data packet capture tools. Existing solutions achieve reasonable speeds (e.g., 10 gigabits per second), but do so at high levels of cost and complexity. Further, these existing embodiments may be unable to generate specific patterns that can be found in actual packet data traffic, test patterns and/or patterns that change on a per-packet basis. Thus, their ability to simulate realistic and peak network traffic scenarios is limited. SUMMARY The embodiments herein provide a data packet generation system, based on custom-built hardware, that is capable of achieving exceptionally high sustained speeds (e.g., 100 gigabits per second) while also allowing granular control over the content of data packets generated at these speeds. Furthermore, the custom-built hardware is not overly complex, and supports command-line controls and a simple internal programming language. As a consequence, these embodiments facilitate flexible, configurable generation of realistic data packet workloads at high speed using limited hardware resources. Doing so reduces system complexity and cost. The system can be deployed in a standalone fashion to test other networking components. For example, the embodi
Cited By — Indexed Forward Citations (1 of 1 total)
| Patent | Title | Year | Citations |
|---|---|---|---|
| US 12,696,245 B2 | System and method to reduce packet error rates for larger fragments through payload normalization | 2026 | 0 |
References Cited — Backward Prior Art (45)
Non-Patent Literature (10)
- Notice of Allowance, U.S. Appl. No. 17/320,393, mailed Mar. 8, 2023.
- Office Action, U.S. Appl. No. 17/835,809, mailed Mar. 30, 2023.
- Non-Final Office Action dated Nov. 17, 2021 for U.S. Appl. No. 16/854,071, 34 pages.
- Office Action dated Oct. 27, 2021 for U.S. Appl. No. 17/034,593, 25 pages.
- Kesavan et al.,
- “
- Optimal Multicast with Packetization and Network Interface Support
- ”
- , 1997, IEEE, pp. 370-377.
- “