Skip to Content
This is the Beta version of our new Learning Paths approach. Please email feedback.

TCP/IP

Transmission Control Protocol (TCP) and Internet Protocol (IP), together referred to as TCP/IP, is a set of communications protocols used in the Internet and similar computer networks. The protocols specify how data should be formatted, addressed, transmitted, routed, and received.

The Internet Protocol defines an identifier, known as the IP address (or just IP in short), for each node on a network. The IP address of a node is used by the TCP/IP protocol to identify the source and destination nodes for data transfer. Hence IP addresses must be unique across nodes in a network and across interconnected networks.

For example, two office local area networks that do not ever intend to connect can use the same set of IP addresses within their respective networks. If they are intended to connect, they must use IP addresses that are unique across both networks. If a node is connected to the Internet, the IP address must be unique across the Internet.

Network administrators assign an IP address to each device connected to a network. Such assignments may be static or dynamic. In a static assignment, a device retains its IP as long as it is on the network, even if it shuts down and restarts or even temporarily leaves and rejoins the network. In a dynamic assignment, a device may be assigned a new IP every time it restarts or leaves and rejoins the network from a pool of IPs. In the case of the Internet, IP addresses are assigned by a global body so that every device on the Internet will have a unique IP address.

IP addresses have a specific structure. They are represented as four eight-digit binary numbers, separated by a dot. Each number can be one of 00000000 to 11111111 in binary or 0 to 255 in decimal. The complete IP address can therefore be anything between 0.0.0.0 and 255.255.255.255.

IP Address Format

Some IP addresses are reserved for specific purposes on TCP/IP networks. For example:

IP AddressPurpose
0.0.0.0It represents the default network, which is the abstract concept of just being connected to a TCP/IP network.
255.255.255.255This address is reserved for network broadcasts or messages that should go to all computers on the network.
127.0.0.1This is called the loopback address, which is a way for a computer to identify itself.

Due to the growth of the Internet and the depletion of available addresses a new version of IP addresses (known as IPv6, while the previous version was IPv4), using 128 bits, is being used for newer systems.