Network Fundamentals
1. IP Addressing
IP Addressing is the method by which devices on a network are identified and located. An IP address is a unique identifier assigned to each device connected to a network, allowing them to communicate with each other. There are two main versions of IP addressing: IPv4 and IPv6.
IPv4 uses a 32-bit address format, represented as four decimal numbers separated by dots (e.g., 192.168.1.1). IPv6, on the other hand, uses a 128-bit address format, represented as eight groups of four hexadecimal digits separated by colons (e.g., 2001:0db8:85a3:0000:0000:8a2e:0370:7334).
Analogy: Think of an IP address as a postal address for a house. Just as a postal address helps mail reach the correct house, an IP address helps data packets reach the correct device on a network.
2. Subnetting
Subnetting is the process of dividing a network into smaller, more manageable subnetworks, or subnets. This is done by borrowing bits from the host portion of an IP address to create a subnet mask. Subnetting helps in optimizing network performance, improving security, and reducing network congestion.
For example, a Class C network (e.g., 192.168.1.0) with a default subnet mask of 255.255.255.0 can be subnetted into multiple subnets by borrowing bits from the host portion. If you borrow 3 bits, the new subnet mask would be 255.255.255.224, resulting in 8 subnets with 30 usable host addresses each.
Analogy: Subnetting is like dividing a large city into smaller neighborhoods. Each neighborhood (subnet) has its own set of houses (devices), making it easier to manage and secure the city as a whole.
3. Routing
Routing is the process of selecting paths in a network along which to send network traffic. Routers are devices that use routing tables to determine the best path for data packets to travel from the source to the destination. Routing is essential for connecting different networks together, such as connecting a home network to the internet.
For instance, when you send an email from your home computer to a friend's computer in another country, the data packets travel through multiple routers, each making decisions based on the routing table to ensure the packets reach their destination efficiently.
Analogy: Routing is like navigating a road trip. Just as a GPS device helps you choose the best route to reach your destination, routers help data packets find the best path through a network to reach their destination.