Earth Notes: SPAM's Carbon Footprint @Home

The carbon cost of fending off SPAM (and hacking) at home...

2017/04/05: I run my primary Internet servers at home, which includes my main mail server and the Web site that serves this page for example. Noticeable effort goes into fighting off attempts to SPAM me (~10,000 attempts per day on that server) and hack me.

(Side note: from the moment my company connected to the 'live' Internet in the early 90s as one of the UK's first ISPs, we have run a firewall, etc, and thus paid an energy cost to defend ourselves. Indeed, almost the very first packets I logged from our shiny new live connection were attempts to hack or SPAM us, in those days from South America...)

I use plenty of services hosted outside my home, such as DNS, mail and Web alternatives/secondaries, never mind the entire network infrastructure that is the Internet, but I wondered if I could estimate how much of my carbon footprint at home could be attributed to fighting off unsolicited and unwanted offers of sexy photos, guaranteed penis pills, how to MAKE MONEY FAST, power my house for free forever for only $49, and even how to buy cheap banner ads in the Daily Mail. Oh dear.

A slight complication is that my server is powered year-round off-grid, and when there's anough left over even my Internet connection (FTTC box and router) are pulled off-grid too, and my laptop can run off-grid.

Even when back on grid, my home grid-tie solar PV system generates about double our house's actual electricity consumption, thus covering the carbon for that and the natural gas that still heats our home and our hot water.

Also, the carbon cost of keeping out the bad guys isn't just in my router and firewall and wasted network bandwidth. Nor does it stop at the fact that none of the CPUs involved get to idle properly or for long enough by being forever woken by SPAMmers' packets, for example. Also, SPAM that makes it past those defences that I have to waste brainpower on uses energy from food, which is some of the most carbon intense going. Energy efficiency is hard when your servers are being prodded by the bad guys every minute for 20+ years!

Let's keep things simple and pretend that the carbon cost of the power to run my services is something like the GB grid's probable 2017/05 ~400gCO2e/kWh and falling, and that no more that that is fighting SPAM etc at home. (Since that local solar PV energy might otherwise have displaced carbon elsewhere on the grid.)

I'll also ignore the climate change impact of my lentil-powered fury when SPAM gets through all of that anyway...

The obvious direct energy costs per day at my house are:

  • The (RPi2) server at ~50Wh/day.
  • The FTTC (Fibre-to-the-cabinet) and router boxes totalling ~350Wh/day.
  • My laptop at ~50Wh/day (running local SPAM filtering and firewalling).

So a little under 0.5kWh/day or ~200gCO2e/day or ~73kgCO2e/y tops.

Maybe it would be fair to attribute a few kg of CO2 per year directly to the on-going costs of fighting SPAM (OPEX) for me at home, but that does ignore the amortised enormous infrastructure effort and complication (CAPEX) to design and maintain good filters for my mail client's filters, sendmail rules, SPAMHAUS RBL, Linux OS security, yadda, yadda, ...

Maybe several kg per day of CO2 could be attributed to energy wasted in the rest of the Internet in attempts to deliver bad traffic to me, eg 0.3g per attempted SPAM times 10k attempts per day.

(Footnote: today while writing this I seem to be getting a lot of phishing SPAM with poisoned but plausible links or attachments to open, and that are getting through the various levels of filtering. That really does consume expensive mental effort and network bandwidth.)