Networking key concepts

Note:
This documentation has moved to a new home! Please update your bookmarks to the new URL for the up-to-date version of this page.

1 Like

Perhaps TCP/IP Configuration section should be updated with information about netplan. The Tip there mentions man interfaces, but there is no manual entry for interfaces on default 20.04 installation.

1 Like

I had to rewrite a section. Forgive me.

TCP and UDP

Internet transfer uses one of two protocols: Transmission Control Protocol (TCP) and User Datagram Protocol (UDP).

TCP is used when a set of data must arrive complete and error-free. (A web page, for example.) TCP is connection-oriented: the two system establish a connection, transfer the data, and close the connection. Error recovery ensures that data lost during transmission is resent. Flow control ensures that receiving system can delay transmission as needed.

UDP is faster than TCP because it lacks flow control and data correction. UDP is connectionless: packets are simply transmitted one at a time. There is no guarantee that they will arrive in order or not get lost. This is useful for applications such as media streaming, where speed is important and losing a packet now and then is acceptable.

The IP address, netmask, network address, broadcast address, gateway address, and nameserver addresses are typically specified via the appropriate directives in the file /etc/network/interfaces .

Nowadays the network configuration in Ubuntu is done via netplan in /etc/netplan/*.yaml, and not in /etc/network/interfaces.

Static routing involves manually adding IP routes to the system’s routing table, and this is usually done by manipulating the routing table with the route command.

Nowadays, the ip route command from the iproute2 package is the default way to manipulate routes.

“Internet transfer” sounds to me like something very specific, like an application called “Internet transfer”. May I suggest a different wording. Something like:

TCP (Transmission Control Protocol) and UDP (User Datagram Protocol) are the most common protocols used to transfer data over networks.

“… should be re-sent due to problems…” (drop the to).

Good catch - changed!

Thanks for the suggestion, this does read much better.