Possible to work out what is being sent to Balena using Wireshark?

Hi all,

I have a Raspberry Pi device that is sending data using cloud relay to AWS IoT Core, and I’m currently at the stage where I want to minimise my data bandwidth. I’ve got another Raspberry Pi which gives my main Raspberry Pi access to the internet via Ethernet allowing me to capture all traffic sent and received by my main Raspberry Pi so I can get an idea of what the Pi is doing and where I can cut down on (bandwidth wise).

I’m using Wireshark to monitor the Ethernet port connected to the Pi, and I wondered is there anyway to separate the Balena services by IP?

I just ideally want to know how much the Balena services are using and how much AWS IoT core is using, and where my bandwidth is going.

Hopefully this is possible.

Thanks,
George

1 Like

Hello @GeorgeBarlow this is a good question!

Did you try to set up different IP addresses for each container from your application? I think Docker allows you to do this?

Let us know if this works for you.

If the process has long-lived connections, you can you can run the command below based on IP address or maybe port number. The first two columns are command name and PID, respectively.

rroot@85b8907:~# lsof -ani |grep "34.102.140.197"
otelcol    913918    root    7u  IPv4 6813432      0t0  TCP 192.168.1.128:51008->34.102.140.197:https (ESTABLISHED)
1 Like