2
I have a TCP socket connection established between my server and a modem which has a active GSM module and sim card installed.
I create this wirless 3G connection via socat:
/usr/bin/socat open:/dev/ttyVA8500,nonblock,echo=0,raw TCP-LISTEN:8500,reuseaddr,fork
This little command listens for TCP connections on port 8500 and writes the data into the virtual serial port /dev/ttyVA8500
. Now when I write to the virtual serial port on my server the data will be send to the modem which then will send a response.
This communication costs traffic. I can see this traffic in the monitoring tool of the GSM provider.
Problem
I can see data consumption in the GSM monitoring even when I am not talking to the modem. It's far less, about 2 kiB per hour. But I have a limit of 1 MB per month. So my questions is where does this "ghost" 3G data consumption come from? Does the TCP socket connection itself cost traffic to keep it alive??
While I was not talking to the TCP connection I used a tcp sniffer to check for ghost traffic:
sudo tcpflow -i any -C -e port 8502
However this did not show any traffic (when I started communication again it listed all data just fine;)).
I fear your right, going to investigate... – Lost in OWL – 2014-09-23T08:47:51.000
+1 you are right. But I need the modem to be always connected not just on demand. So I change the idle time value to the maximum value. – Lost in OWL – 2014-09-23T11:06:53.227