Summary
Highlights
This video expands from Ethernet LAN switching to Layer 3 (Network Layer) to understand how traffic is forwarded between different LANs. Layer 3 provides connectivity between end hosts on different networks using logical IP addresses, handles path selection, and routers operate at this layer. The focus is specifically on IP addresses.
Initially, switches connect devices within a single LAN, where all PCs have IP addresses in the same network (e.g., 192.168.1.0/24). Introducing a router (R1) splits the network into two distinct LANs, each with its own IP address range (e.g., 192.168.1.0/24 and 192.168.2.0/24). Routers require an IP address for each network they connect to. Broadcasts are limited to the local network and do not cross a router.
The IPv4 header contains various fields, with source and destination IP addresses being 32-bits long, or 4 bytes. An IPv4 address is divided into four octets, each representing 8 bits. These are typically written in dotted decimal format for human readability, simplifying the understanding of binary sequences.
A quick review of decimal (base 10) and hexadecimal (base 16) numbering systems is provided, explaining how each digit's value increases by a factor of the base. This sets the stage for understanding binary (base 2), where each digit doubles in value from right to left (1, 2, 4, 8, 16, 32, 64, 128).
The process of converting an 8-bit binary octet to decimal is demonstrated. By writing the decimal value of each bit position above the binary digits and summing the values where a '1' is present, the decimal equivalent can be found. Several examples are provided for practice.
The reverse process of converting a decimal number to binary is explained. This involves writing out the bit values of an octet (128, 64, 32, etc.) and subtracting the largest possible value from the decimal number, placing a '1' if subtracted and a '0' if not, until the remainder is zero. Multiple examples illustrate this method.
An IPv4 address is a 32-bit series, formatted into 4 octets. The '/24' notation, known as the prefix length, indicates that the first 24 bits (3 octets) represent the network portion, and the remaining 8 bits represent the host portion. Devices on the same network share the network portion but have unique host portions. This concept is further explained with examples using /16 and /8 prefix lengths.
IPv4 addresses are split into five classes (A, B, C, D, E), determined by the first octet. Class A ranges from 0-127, B from 128-191, C from 192-223, D from 224-239 (multicast), and E from 240-255 (experimental). Special attention is given to loopback addresses (127.0.0.0/8), used for local device testing, explaining why the Class A range effectively ends at 126.
Classes A, B, and C are associated with default prefix lengths (/8, /16, /24, respectively). Class A has fewer networks but more hosts per network, while Class C has many networks but fewer hosts. The video also introduces netmasks, an older but still used method (especially with Cisco devices) to indicate prefix length, written in dotted decimal (e.g., 255.0.0.0 for /8).
Two special IP addresses in each network are the network address and the broadcast address. The network address has a host portion of all zeros and identifies the network itself (e.g., 192.168.1.0/24), not assignable to a host. The broadcast address has a host portion of all ones (e.g., 192.168.1.255/24) and is used to send traffic to all hosts on the local network. Neither can be assigned to a host, reducing usable host counts by two.
A quiz with 10 questions is provided to practice converting IPv4 addresses between binary and dotted decimal notation. The video concludes by recommending flashcards for review and mentions that a Packet Tracer lab will follow in a later video.