项目作者: czivar

项目描述 :
P4 application that tracks TCP retransmissions per flow
高级语言: Python
项目地址: git://github.com/czivar/p4-retransmissions.git
创建时间: 2017-09-02T20:25:50Z
项目社区:https://github.com/czivar/p4-retransmissions

开源协议:

下载


P4 TCP retransmission tracker

This sample P4 application tracks TCP retransmission by looking for TCP SEQ numbers and saving flow information if a particular SYN number is repeated for a given flow.

Run it

You will need to install bmv2 and bmv2-ss. Then you can compile everything, create a mininet topology and run the software switches with:

  1. ./run_demo.sh

You can generate retransmissions jsut by starting an iperf client (since the flow entries are deliberately wrong in the switch, the connection won’t build up which means iperf keeps retransmitting the same packet).

  1. mininet> h1 iperf -c 10.0.2.10

controller.py

You can read out the flows that have been saved at the device experiencing TCP retransmissions:

  1. $ python controller.py read
  2. Flows that are experiencing TCP transmissions:
  3. Hash Source IP Port Dest. IP Port Retransmissions
  4. 11 10.0.1.10 45752 10.0.2.10 5001 2