1

I set up a SDN using Mininet and Pox, now I need to measure statistics on certain links, such as packet loss. I was suggested to use Wireshark. I thought of filtering the arriving packets with tcp.analysis.packet_loss (don't know if it does work for this purpose) but this way I need a client-server tool to generate some TCP traffic to capture, not random TCP, but at least with progressive sequence number (so I can track packet loss). iperf is not good for me because I need a tool that doesn't generate "congestion" of a link. Other methods for measuring statics are ok. Can you help me, please?

  • I could run an Apache server on one side, and then use wget on the other host to download a file. Wget runs over HTTP, that uses TCP, so it's good for monitoring packet-loss. The only problem is that i need to set a limit on bandwidth usage. – Nicolò Sprea Aug 12 '16 at 7:48
  • wget --limit-rate=20k http://.... woudl limit it to 20k/sec – ivanivan Dec 10 '16 at 5:35
0

You can almost certainly do this with python 2 & scapy.

  • Scapy is a packet capture, analysis, manipulation and generation tool.
  • Free, gratis & open source
  • Cross platform including OS-X, Windows & Linux
  • Easily send a set of packets with an incrementing field
  • Analysis of the results, including graphical results, within the tool
  • Scapy can have its own routing table rather than using the system one
  • You can save your tests as scripts so as be able to retest later
  • Lots of examples and a demo
|improve this answer|||||
  • I think scapy does the job, but i was looking for something simple that I don't need to program myself, otherwise I would go for Python and socket programming. I think it's not dead simple to initiate a TCP connection (3-way handshake) and than write a client-server app that waits for ACKs, ecc. – Nicolò Sprea Aug 12 '16 at 7:44
  • With scapy it should be almost a one liner – Steve Barnes Aug 12 '16 at 8:10
  • Can you post an example, please? – Nicolò Sprea Aug 12 '16 at 8:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.