A network packet sniffer designed for software defined networks that can sniff packet for the whole network independent of the sniffer location.The sniffer can help us to monitor/detect malicious activities in the network.We can also debug or analyze network traffic for potensial errors.
- Standard pcap format for packet capture.
- Sniffer can be attached at any location in the network.
- Customizaton available for types,count of packets required to be monitored across the network.
- Python 3.8+ on controller machine and machine where mininet will run.
- Ryu Framework on machine which is to act as controller, install by:
pip3 install ryu
. - On mininet machine, install scapy using command:
pip3 install scapy
.
- To run controller:
ryu-manager ryu-sniffer.py --observe-links
. - To run mininet topology:
sudo python3 topology.py <controller-ip>
.
- To start sniffer in mininet:
sniffer python3 sniff.py &
. To see options to sniff.py runsniffer python3 sniff.py -h
- Now exchange packets between hosts in mininet, they will be recorded by the sniffer but will not be displayed on mininet as it currently does not support background processes for hosts.