Giter VIP home page Giter VIP logo

p4-retransmissions's Introduction

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:

./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).

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:

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

p4-retransmissions's People

Stargazers

 avatar  avatar  avatar

p4-retransmissions's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.