Home

Awesome

Ethernet Traffic Monitor on a STM32F746

Build Status License Commits

EtherScope is a monitoring tool that analyzes the Ethernet traffic. It runs on a STM32F746 board, reads the Ethernet packets, do some realtime analysis and displays the results on the 480x272 touch panel.

The EtherScope interface allows to filter the results at different levels:

The EtherScope uses the following two GitHub projects:

You need the source of these two projects to buid EtherScope. To help, these GitHub projects are registered as Git submodules and the Makefile provides a target to perform the checkout. Just run:

make checkout

You will also need the GNAT Ada compiler for ARM available at http://libre.adacore.com/

Build

Run the command:

make

to build the application and get the EtherScope image 'etherscope.bin'. Then, flash the image with:

st-flash write etherscope.bin 0x8000000

or just

make flash

Using EtherScope

To look at the network traffic, it is recommended to have a switch that supports port monitoring. The switch is configured to monitor all the traffic to a given port. The EtherScope is then connected to that port and it will receive all the traffic, including the packets not destined to the board.

You can still use EtherScope without a switch and port mirroring but the EtherScope will not be able to see all the network packets. Without port mirroring, we can only see multicast and broadcast traffic, which means: ARP, ICMP, IGMP and UDP packets on multicast groups.

Once powered up, the EtherScope starts the analysis and offers 4 buttons to switch to different display modes:

The following screenshot shows the TCP panel with 3 recognized TCP protocols and a running SCP that uses almost all the bandwidth.

Publication