The opening exchange of a network connection, three short messages in real bytes. This lesson is about the five calls a program makes so that the kernel will do that exchange for it, and what each call leaves behind.
Before you start. A process is one running program. The kernel is the core of the operating system, the one part allowed to touch the hardware. A program reaches the outside world through numbered doors the kernel hands it. Each door is a file descriptor, a small whole number the program passes to read and write (Everything is a file descriptor). A network connection opens with three short messages that the kernel exchanges for you, called the handshake (TCP vs UDP, and the 3-way handshake), and a program that has nothing to do goes to sleep instead of checking over and over (Waiting without spinning).
Lesson 28 of 41 in How Computers Work
The rest of this lesson is part of a plan.
A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.