https://github.com/tbarbette/tilerapktgen
Tilera Packet Generator
https://github.com/tbarbette/tilerapktgen
Last synced: about 2 months ago
JSON representation
Tilera Packet Generator
- Host: GitHub
- URL: https://github.com/tbarbette/tilerapktgen
- Owner: tbarbette
- Created: 2014-07-09T13:25:17.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-10-22T15:00:17.000Z (over 9 years ago)
- Last Synced: 2025-04-10T23:17:07.899Z (about 2 months ago)
- Language: C
- Size: 197 KB
- Stars: 4
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Tilera packet generator
=======================This program generates UDP packets and sends them at line rate through some specified interfaces using mPipe. It counts the number of packets received too.
It was made for TILEncore-Gx36 but should work on other Tilera devices.
It counts the number of packets sent and received for a range of packet sizes and displays some statistics like the throughput in lines of format :
prefix_text packet_size time_elapsed packet_sent packet_received transmit_rate receive_rate transmit_speed receive_speed wire_transmit_speed wire_receveive_speed loss_rate
If you use it as a generator in a loop, the difference between packet sent and received will include a very small error as we count the number of packets while still sending and receiving to capture the speed only at full rate. Therefore, do not use it to test if the tested equipments side loose a very small number of packets.
The destination MAC address and IP address can be randomized to be able to use load balance (RSS, ...) on the receive side.
This program is given without license but is based on and includes parts of codes from the Tilera MDE samples. Please keep my name (Tom Barbette) and University of Liege if you re-use the code.
###Typical compile command
tile-gcc --std=gnu99 -O2 -o tester udp.c app.c -lpthread -lgxio -ltmc
###Typical usage
./tester --link xgbe1,xgbe2,xgbe3,xgbe4 -w 12
12 threads are sufficient for 4*linerate
##License
This software is made by Tom Barbette from University of Liege and is not a product of Tilera Corporation but include code taken from Tilera MDE samples. You may copy, distribute or modify this software including for commercial purpose but you're kindly asked to keep the name of the author and any further contributor and its/their institution(s).