Is it difficult to programme networking protocols?

I'm looking at protocols like the Aloha protocol at the MAC level. How hard is it to programme such protocols (lets say in C language) for real life working devices.

where can i learn such low level programming? Does C language have special methods/classes/functions that would help programme MAC layer protocols?

Geek Guide
The DevOps Toolbox

Tools and Technologies for Scale and Reliability
by Linux Journal Editor Bill Childers

Get your free copy today

Sponsored by IBM

8 Signs You're Beyond Cron

Scheduling Crontabs With an Enterprise Scheduler
On Demand
Moderated by Linux Journal Contributor Mike Diehl

Sign up and watch now

Sponsored by Skybot