Chapter 5. TCP/IP Networks

Table of Contents

5.1. Binary Numbers and the Dotted Quad
5.1.1. Binary numbers
5.1.2. The Dotted Quad
5.2. Broadcast Address, Network Address and Netmask
5.2.1. The Netmask
5.2.2. The Network Address
5.2.3. The Broadcast Address
5.2.4. The dotted quad revisited
5.3. Network Classes
5.3.1. Reserved IP addresses
5.3.2. IP classes
5.4. Subnets
5.4.1. Slash Notation
5.4.2. 25-bit network
5.4.3. 26-bit network
5.5. Classless Networks
5.6. The TCP/IP Suite
5.6.1. Protocol Overview
5.7. TCP/IP Services and Ports
5.8. Exercices and Summary
5.8.1. Questions
5.8.2. Glossary
5.8.3. References
5.8.4. Registering a service with xinetd

Prerequisites

Goals

5.1. Binary Numbers and the Dotted Quad

5.1.1. Binary numbers

  • 10 = 21

  • 100 = 22

  • 101 = 22 + 1

  • 111 = 100 + 010 + 001

This means that a binary number can easily be converted into a decimal as follows:

BinaryValueDecimal
1000000027128
010000002664
001000002532
000100002416
00001000238
00000100224
00000010212
00000001201

5.1.2. The Dotted Quad

The familiar IP address assigned to an interface is called a dotted quad. In the case of an IPv4 address this is 4 bytes (4 times 8 bits) separated by dots.

DecimalBinary
192.168.1.111000000.10101000.00000001.00000001