nsg-ethz / p4-utils

Extension to Mininet that makes P4 networks easier to build
GNU General Public License v2.0
173 stars 65 forks source link

Bittorent recognition from packet payload #48

Open chipakis opened 1 year ago

chipakis commented 1 year ago

Hello, i am trying to recognize whether the incoming packet belongs to a bittorrent activity. What i've done so far is to create a copy of the packet to CPU and from there try to inspect inside the packet payload for traces of bittorrent activity and change the priority channel, is it possible that it can somehow workout? Secondly, i am trying also to add NAT services on my network for some internet connection, but i haven't found the way to do it yet, is there a way to do it?

edgar-costa commented 1 year ago
  1. For the bittorrent question. You will have to look at how bit torrent packets look like and write a script that does the parsing according to your needs.

  2. Directly with P4 utils there is no available NAT services. But you can setup that yourself. You will have to configure one node at the root namespace to act as NAT, look for some linux tutorial about that, and then you configure the hosts and devices in your emulated network such that traffic destined to the internet go to the NAT.