Get the latest tech news

Let’s code a TCP/IP stack, 1: Ethernet and ARP (2016)


Writing your own TCP/IP stack may seem like a daunting task. Indeed, TCP has accumulated many specifications over its lifetime of more than thirty years. The core specification, however, is seemingly compact[^tcp-roadmap] - the important parts being TCP header parsing, the state machine, congestion control and retransmission timeout computation.

The core specification, however, is seemingly compact - the important parts being TCP header parsing, the state machine, congestion control and retransmission timeout computation. As with all physical technology, the Ethernet standard has greatly evolved from its first version, published by Digital Equipment Corporation, Intel and Xerox in 1980. Even to this day, Carrier Sense, Multiple Access with Collision Detection(CSMA/CD) is required as the MAC method if running an Ethernet interface in half-duplex mode.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of ethernet

ethernet

Photo of TCP

TCP

Photo of IP stack

IP stack

Related news:

News photo

What would happen if we didn't use TCP or UDP?

News photo

Portspoof: Emulate a valid service on all 65535 TCP ports

News photo

We saved battery in our ESP32 WiFi circuits (TCP vs UDP)