17 TCP/IP II

DOI: 10.1201/9781003420415-17

17.1 Introduction

TCP and IP are extremely important protocols as they allow hosts to communicate over the Internet in a reliable way. TCP provides a connection between two hosts and supports error handling. This chapter discusses TCP in more detail and shows how a connection is established then maintained. An important concept of TCP/IP communications is the usage of ports and sockets. A port identifies the process type (such as FTP, TELNET, and so on) and the socket identifies a unique connection number. In this way TCP/IP can support multiple simultaneous connections of applications over a network.

The IP header is added to higher-level data. This header contains a 32-bit IP address of the destination ...

Get Advanced Data Communications and Networks now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.