-
Notifications
You must be signed in to change notification settings - Fork 140
PacketGeneratorRegressionTests
Adam edited this page Jan 18, 2013
·
4 revisions
The regression tests verify the functionality of the packet generator. In order to run the tests, you need to have the machine connected for the regression tests as stated in the Run Regression Tests section of the Guide.
After connecting the cables. Run the following command to run the regression tests.
nf21_regress_test.pl --project packet_generator
- Name : test_send_pkts
- Description : Load and send two pcap files from nf2c0 and nf2c1. Verify the counters
<br /># Initialize netfpga hardware
<br /># Load and send two pcap files from nf2c0 and nf2c1
<br /># Check counters to verify number of packets sent.
- Location
- Output
SUCCESS!
- Name : test_capture
- Description : Send two pcap files from eth1 and eth2. Capture the output using the packet generator (capture mode) and verify the packets received.
<br /># Initialize netfpga hardware
<br /># Start packet generator in capture mode
<br /># Send two pcap files from eth1 and eth2 using tcpreplay
<br /># Compare the captured pcap files to the originals and find errors.
- Location
- Output
SUCCESS!
- Name : test_iterations
- Description : Load and send two pcap files from nf2c0 and nf2c1 with a specified number of iterations for each. Verify the packet sent counters.
<br /># Initialize netfpga hardware
<br /># Load and send two pcap files from nf2c0 and nf2c1 with 10 iterations for nf2c0 and 100 iterations for nf2c1
<br /># Check counters to verify number of packets sent.
- Location
- Output
SUCCESS!
- Name : test_rate_limiter
- Description : Load and send two pcap files from nf2c0 and nf2c1 while setting the rate to 1 Mbps. Verify the sending rate.
<br /># Initialize netfpga hardware
<br /># Load and send two pcap files from nf2c0 and nf2c1 (specify 1 Mbps sending rate)
<br /># Capture the sent packets to a pcap file
<br /># Determine the sending rate from the pcap file generated
- Location
- Output
SUCCESS!