Running Pyshark on Ubuntu 20.04 desktop. Forgive me for the very basic question since I do not have much background on networking
I am able to capture packets on my Wi-Fi interface for, let's say 10-20 minutes and inspect the packets via python. While the packets are being captured, of course, I am running several applications that are using the internet like
- thunderbird for email
- my update and upgrade manager which updates my system from the ubuntu repositories
- browsing the internet, including playing videos via youtube
- making conference calls via zoom etc.
Can I assume all these packets are being captured in the .pcap file unless I set a filter? After I capture them, my goal is to find which application (e.g. firefox or thunderbird) each packet belongs to, and whether the packet corresponds to web traffic, or video streaming data, email, file transfer etc. Is it possible? Basically, I want to give each application a score on each category, let's say video, text, file transfer etc. to judge how many packets, how much data it transfer over WiFi. Or are there rules of thumb I can apply based on the port numbers available at the packets?
So which attributes of each packet object do I look for to know the application, and the category?
Further, for each packet, I also want to know whether I am transmitting uplink or I am receiving as downlink.