I am using a Python script to post data from a 3G-connected device.
It uses the Requests library. When monitoring the bytes of each API call (request + response using this method), I am getting 645 bytes per call. A standard movement in my monitored system triggers approx. 20 calls, so I am getting around 13Kb of bandwidth usage per movement.
However, the actual usage is much higher: when monitored through vnstat or psutil (or the data from the sim-card provider), a standard movement is approx 100kb instead of 12-13kb (!). When the script is off - no data is used; so this is not linked to background tasks. Moreover, my script doesn't interact with the web in any other manner than these API requests... I cannot understand where this difference comes from.
Is there bandwidth usage in the Python Requests calls that I am missing?