Author Topic: WiFi  (Read 18961 times)

Paul_Sengupta

Re: WiFi
« Reply #30 on: February 06, 2020, 01:10:09 am »
I used the config script and mine wasn't retained!  :o

I'll go over it again when I have a bit of time and see what's what.

peter.seddon

Re: WiFi
« Reply #31 on: February 09, 2020, 02:42:44 pm »
Has anyone ever monitored the amount of data sent and received from an OGNPAW Raspberry Pi?
Peter S
G-DDLA

exfirepro

Re: WiFi
« Reply #32 on: February 11, 2020, 09:16:11 am »
Hi Peter,

I guess this will vary considerably, depending on the amount of local traffic, whether the station is feeding 1090 traffic into 360Radar and whether the station is running at or near 24/7/365 timewise.

Following preliminary negotiations last week to set up a station in the East Neuk of Fife, (which would have to run on 4G), I am also extremely interested in getting a more accurate idea of likely network data requirements. (High data usage could be a deal breaker unless others are prepared to subsidise the cost as only a very small group of individuals are involved.) I would therefore appreciate feedback from any stations currently running on 4G to help co-ordinate some figures on this. (Station operators - If you let me know you are running on 4G, I can ask Lee/Phil if there is any way we can collect this sort of info via the network.)

Best Regards

Peter R


mariko

Re: WiFi
« Reply #33 on: February 11, 2020, 06:08:40 pm »
I'm also interested. I can have a cheap "4G" connection (24/24 7/7), with non data limits, but with a 128kbs speed limit.
Ciao
  Mariko

Admin

Re: WiFi
« Reply #34 on: February 12, 2020, 07:22:36 am »
Has anyone ever monitored the amount of data sent and received from an OGNPAW Raspberry Pi?
Hi Peter
I presume you mean going in/out of the gateway ?
Getting this at an application level is quite easy, at a system level is more difficult
Any experts here using tcpdump ?

I can imagine tcpdump can be used to monitor traffic designated to/from an external network
Extract the packet headers and accumulate the counts
Thx
Lee

peter.seddon

Re: WiFi
« Reply #35 on: February 12, 2020, 10:59:11 am »
Has anyone ever monitored the amount of data sent and received from an OGNPAW Raspberry Pi?
Hi Peter
I presume you mean going in/out of the gateway ?
Getting this at an application level is quite easy, at a system level is more difficult
Any experts here using tcpdump ?

I can imagine tcpdump can be used to monitor traffic designated to/from an external network
Extract the packet headers and accumulate the counts
Thx
Lee

Hi, our system uses a 3G WiFi access point with only the PI receiver connected so traffic to and from the gateway is only what the PI uses. The PI just has the bridge and one sdr connected and data usage does seem excessive. My best estimate is about 12 to 16 GBytes a month which is too steep for the club to sustain as there is a wired receiver a couple of miles away. EGNL was just a backup to UKBWR. I set up a timer to restart the PI on a Saturday morning and shut id down on Sunday evening but the PI never started up and connected properly for some unknown reason as though the software was being corrupted by the startup. The only way to start it was to go through the config script again.

Cheers

Peter.
Peter S
G-DDLA

steveu

Re: WiFi
« Reply #36 on: February 18, 2020, 10:57:48 pm »
My best estimate is about 12 to 16 GBytes a month which is too steep for the club to sustain as there is a wired receiver a couple of miles away.

On GiffGaff we have £12/month is 10GB data.

£15/month is 15GB data

£20/month is 40GB data

All Pay as You Go.

Three, £23/month is 15GB.

Other networks cost more.

Cottie

Re: WiFi
« Reply #37 on: February 22, 2020, 10:55:13 pm »
Smarty (an MVNO on the three network) are £10 for 30GB/month.
Iain
PWLymm

trident

Re: WiFi
« Reply #38 on: March 06, 2020, 10:55:51 pm »
Hi Lee,

I'm finally after many months of delays intending to get my OGN-R station up and running which will be located near Long Sutton in south Lincolnshire. I will need to use wifi for the internet connection, but as I have the Pi2B, does the wifi script support external wifi dongles plugged into a spare USB port, or only the onboard wifi on the Pi3 ? If it does support USB wifi dongles, is there a specific type/chipset it is limited to please?

Thanks,

Frank.

mariko

Re: WiFi
« Reply #39 on: March 07, 2020, 07:25:40 am »
MI02 is connected via LAN port with a range extender. The range extender is connected to the main router via Wi-Fi. I spent about 18€

https://www.amazon.it/TP-Link-TL-WA850RE-Ripetitore-Universale-Intelligente/dp/B00A0VCJPI/ref=sr_1_3?__mk_it_IT=ÅMÅŽÕÑ&crid=159J8UDGTYCUA&keywords=d+link+ripetitore+wifi&qid=1583566128&sprefix=D+l%2Caps%2C218&sr=8-3
« Last Edit: March 07, 2020, 07:29:48 am by mariko »
Ciao
  Mariko

Kevin W

Re: WiFi
« Reply #40 on: March 16, 2020, 09:32:20 pm »
Has anyone ever monitored the amount of data sent and received from an OGNPAW Raspberry Pi?
Hi Peter
I presume you mean going in/out of the gateway ?
Getting this at an application level is quite easy, at a system level is more difficult
Any experts here using tcpdump ?

I can imagine tcpdump can be used to monitor traffic designated to/from an external network
Extract the packet headers and accumulate the counts

Simplest to get it from the counters already on the network interface Lee?  Even ifconfig gives you Rx and TX cumulative info - 1Gb and 1.2Gb with an uptime of 5.25 days for me right now.

If you want more details, something like ntop / n load etc?  https://www.binarytides.com/linux-commands-monitor-network/

Cheers
Kev


Admin

Re: WiFi
« Reply #41 on: March 17, 2020, 04:52:09 pm »
Simplest to get it from the counters already on the network interface Lee?  Even ifconfig gives you Rx and TX cumulative info - 1Gb and 1.2Gb with an uptime of 5.25 days for me right now.

If you want more details, something like ntop / n load etc?  https://www.binarytides.com/linux-commands-monitor-network/

Cheers
Kev

Hi Kev,
The problem with using ifconfig, this does not give you counts going out of the gateway - contributing to the 4G usage plan, it shows you everything going through the interface eg wlan0 or eth0. So local (intranet) traffic also gets added into the accounting.
Thx
Lee

Kevin W

Re: WiFi
« Reply #42 on: March 17, 2020, 05:34:49 pm »
Hi Lee,

I agree, but the different in most situations (especially those where the device is connected to a 4g router) is going to be pretty small I think?

As a test. the following commands compare the Bytes per 5 second period that go out to the Internet, vs the Bytes per 5 second period that stay on the local network.  (I have excluded ssh, otherwise my own connection would skew the results, and my FR24 feed as that is pretty unique to me):
Code: [Select]
tcpstat -i eth0 -p -o 'Time: %S\tBytes: %N\n' -f 'ether host gateway and not host gateway'
Time: 1584466042 Bytes: 34579
Time: 1584466047 Bytes: 42979
Time: 1584466052 Bytes: 43568
Time: 1584466057 Bytes: 38307
Time: 1584466062 Bytes: 37375
Time: 1584466067 Bytes: 40043
Time: 1584466072 Bytes: 45243
Time: 1584466077 Bytes: 40511
Time: 1584466082 Bytes: 38741
Time: 1584466087 Bytes: 34864
Time: 1584466092 Bytes: 39435
Time: 1584466097 Bytes: 36159
Time: 1584466102 Bytes: 36023
Time: 1584466107 Bytes: 38155
Time: 1584466112 Bytes: 33608
Time: 1584466117 Bytes: 29211
Time: 1584466122 Bytes: 43107
Time: 1584466127 Bytes: 38538
Time: 1584466132 Bytes: 38678

Code: [Select]
tcpstat -i eth0 -p -o 'Time: %S\tBytes: %N\n' -f 'not ether host gateway and not port ssh and not port 30002'
Time: 1584466041 Bytes: 1332
Time: 1584466046 Bytes: 908
Time: 1584466051 Bytes: 1378
Time: 1584466056 Bytes: 682
Time: 1584466061 Bytes: 1332
Time: 1584466066 Bytes: 840
Time: 1584466071 Bytes: 1168
Time: 1584466076 Bytes: 886
Time: 1584466081 Bytes: 1649
Time: 1584466086 Bytes: 840
Time: 1584466091 Bytes: 1446
Time: 1584466096 Bytes: 636
Time: 1584466101 Bytes: 1332
Time: 1584466106 Bytes: 840
Time: 1584466111 Bytes: 1174
Time: 1584466116 Bytes: 840
Time: 1584466121 Bytes: 1378
Time: 1584466126 Bytes: 840
Time: 1584466131 Bytes: 2644
Time: 1584466136 Bytes: 1300
Does that look about right?

Cheers
Kev


Admin

Re: WiFi
« Reply #43 on: March 18, 2020, 08:23:00 am »
Hi Kev
I cannot comment if this is right, not familiar with tcpstat
But, assuming it is
Can you rerun the test with the rtlsdr-ogn service both up and down ?

Did you install tcpstat, or is it in the distro ?
Also, can this count incoming packets ?

Thx
Lee
« Last Edit: March 18, 2020, 08:24:34 am by Admin »

Kevin W

Re: WiFi
« Reply #44 on: March 18, 2020, 10:09:07 am »
Hi Kev
I cannot comment if this is right, not familiar with tcpstat
Sorry I just meant in relation to the amount of traffic you see on other OGN-R's?

FYI I left it running overnight on a 'traffic per hour' basis (post below was traffic per 5 seconds basis):

Code: [Select]
tcpstat -i eth0 -p -o 'Time: %S\tBytes: %N\n' -f 'ether host gateway and not host gateway' 3600
Time: 1584468258 Bytes: 21503103
Time: 1584471858 Bytes: 17313235
Time: 1584475458 Bytes: 18410907
Time: 1584479058 Bytes: 20850647
Time: 1584482658 Bytes: 13589395
Time: 1584486258 Bytes: 10110604
Time: 1584489858 Bytes: 7475430
Time: 1584493458 Bytes: 6430814
Time: 1584497058 Bytes: 5676640
Time: 1584500658 Bytes: 6181948
Time: 1584504258 Bytes: 6395193
Time: 1584507858 Bytes: 10342799
Time: 1584511458 Bytes: 11942474
Time: 1584515058 Bytes: 12832665
Time: 1584518658 Bytes: 17437069
Time: 1584522258 Bytes: 21630787

Code: [Select]
tcpstat -i eth0 -p -o 'Time: %S\tBytes: %N\n' -f 'not ether host gateway and not port ssh and not port 30002' 3600
Time: 1584468255 Bytes: 1435826
Time: 1584471855 Bytes: 1384792
Time: 1584475455 Bytes: 1444220
Time: 1584479055 Bytes: 1622926
Time: 1584482655 Bytes: 1739139
Time: 1584486255 Bytes: 1710299
Time: 1584489855 Bytes: 1578186
Time: 1584493455 Bytes: 1642774
Time: 1584497055 Bytes: 1665130
Time: 1584500655 Bytes: 1555733
Time: 1584504255 Bytes: 1604856
Time: 1584507855 Bytes: 1527436
Time: 1584511455 Bytes: 1620178
Time: 1584515055 Bytes: 1700773
Time: 1584518655 Bytes: 1584247
Time: 1584522255 Bytes: 1804454

You can see the overnight dip very nicely, going down to 5 or 6 MBytes per hour overnight, compared to 20 MBytes of so an hour during the day.  Where the local network traffic stays relatively flat at about 1.6 MBytes per hour.

But, assuming it is
Can you rerun the test with the rtlsdr-ogn service both up and down ?

Yes,

Right now. with rtlsdr-ogn running, we have about 40 KBytes per 5 seconds going out the gateway and 1 KByte per 5 seconds staying local

Right now, without rtlsdr-ogn running, we have about 14 KBytes per 5 seconds going out the gateway and 1 KByte per 5 seconds staying local

So interested to see what the 14 KBytes per 5 seconds is...  it largely seems to be port 9993 udp, which appears to be the zerotier-one VPN you use.

Stopping zerotier-one, we go down to 2 KBytes per 5 seconds going out the gateway (mainly things still trying to talk to 9993 and the ICMP port unreachable replies!) and 1 KByte per 5 seconds staying local

Did you install tcpstat, or is it in the distro ?
Also, can this count incoming packets ?

I installed it - apt update; apt install tcpstat tcpdump --fix-missing

Yes it can count packets too:
Code: [Select]
%n' the number of packets
%T' the number of TCP packets
%U' the number of UDP packets
%I' the number of IPv4 packets
%V' the number of IPv6 packets
'Incoming only' could be done in the filter.

Thanks
Kev
« Last Edit: March 18, 2020, 10:30:34 am by Kevin W »