rothchild wrote:Aside from the DNS request and lookup, how much data goes through pi-hole? (I appreciate that better is better and there are probably other reasons why a faster ethernet socket provides benefits but just got me wondering).
As far as i'am aware, it receives and sends DNS requests. So actual size of data should be really small, probably sent as a char with 1 byte for each character, minus any additional vars for confirmation and overheads from network packet.
eg (really cut back version lol):
- client = I want to access google.com
- dnsmasq = Here it is 123.111.231.123
- client = ta
At a guess, each dns request = 16bytes for address, maybe a few int's for confirmation (lets say 2x int = 4bytes). 20 bytes, not including network packet.
PiHole (dnsmasq) also caches DNS requests as they are recieved, so it can actually reduce DNS request times and improve overall browsing speed for connected clients.
The main issue is adding latency to this. A RPi (due to USB <> Ethernet bus) or a USB network dongle will increase latency by 8ms (125hz polling rate), possibly in both receive and send. So, minus any CPU process, +16ms additional delay for each dns request. Depending on the USB dongle used, latency can actually be much worse than +16ms.
EDIT: was miles off with latency.