Clients and servers exchange messages in a request-response messaging pattern:
- The client sends a request
- The server returns a response
To communicate, computers must have a common language, and they have to follow the rules. The reason for this is so that both the client and the server know what to expect. The language and rules of communication are defined in a communications protocol called Internet protocol (IP) suite.
IP address consists of four numbers between 0 and 255 separated by dots. For example, this is one of Google's IP addresses: 66.102.1.102
. Since it's difficult to remember IP addresses as combination of random numbers, we need something like a phone book so we can just type google.com
and see the Google's website. This is called the Domain Name Systems (DNS).