Client/server communication with the TCP/IP model

Presentation of the protagonists

The client:

In client/server communication, the "client" is the program that needs a service.

The server:

In client/server communication, the "server" is the program that is able to respond to a service request.

Interaction:

To communicate each protagonist uses a communication port that complements the network address of the machine on which the program is running. The pair (address, port) identifies one end of the communication mode while a communication is identified by all of its two ends.

Two different communication modes are offered. There is on the one hand the communication by "datagram" and on the other hand the communication in connected mode.

Notes:

Datagram communication

The datagram can be compared by analogy to a letter sent by post or to an SMS.

Communication in connected mode

The connected mode can be compared by analogy to a telephone communication. Once the called party has picked up, a two-way channel carries the voice of the two interlocutors.