IPv4 vs IPv6 Header Comparison Summary:
Size & Structure:
Key Field Differences:
Address Length:
Header Checksum:
Fragmentation:
Options Handling:
Quality of Service:
Processing Efficiency:
IPv6 Extension Headers (Chain):
Migration & Coexistence:
Networks in an internetwork must have a way of uniquely identifying each logical network and each individual host within those networks.
Subnetting Calculation Process:
Determine Requirements:
Calculate Host Bits:
Calculate Subnet Bits:
Determine New Prefix Length:
Calculate Subnet Mask:
Magic Number Method:
Identify Subnet Ranges:
VLSM (Variable Length Subnet Mask):
Common Mistakes to Avoid:
SUBNETTING is a logical subdivision of IP network. The process of dividing a network into two or more networks is called subnetting. The main purpose of subnetting is to help relieve network congestion and improve network performance & security. Subnet 1 2 4 8 16 32 64 128 256 Host 256 128 64 32 16 8 4 2 1 S.Mask /24 /25 /26 /27 /28 /29 /30 /31 /32
The 1s in the mask are always contiguous. For example, this mask is valid: 11111111 11111111 11111111 00000000 But the following string is not a valid mask: 11111111 00000000 11111111 00000000
An IPv4 address represents both a Network ID and a Host ID. A 32-bit Network Mask (netmask) is used to distinguish these two components within a single IP address. The mask "conceals" the host ID portion, thereby revealing the network portion.
The scheme of using rigid octet boundaries (Classful addressing) is inflexible, so a system of dividing networks into subnetworks was devised.
/24 (255.255.255.0) network like 198.51.100.0/24 allows $2^8 - 2 = 254$ possible host IDs.198.51.100.0/24 into /28 subnets (using a subnet mask of 255.255.255.240):
198.51.100.0/28 (Hosts 1-14, Network 0, Broadcast 15)198.51.100.16/28 (Hosts 17-30, Network 16, Broadcast 31)198.51.100.32/28 (Hosts 33-46, Network 32, Broadcast 47)198.51.100.48/28 (Hosts 49-62, Network 48, Broadcast 63)198.51.100.0/24). Hosts within the same larger network use the longer subnet mask to differentiate the subnets.When designing an IPv4 addressing scheme, it's essential to consider:
Fundamental Rules for IP Addressing:
IP command-line utilities enable you to gather information about how your systems are configured and how they communicate over a TCP/IP network.
These settings can be configured statically or dynamically (DHCP).
Windows Configuration Methods:
netsh commands from the legacy command prompt interface. netsh interface ip show config will report the IP configuration. Changes made with netsh are typically persistent.Get-NetAdapter and Get-NetIPAddress can be used to query the existing configuration.New-NetIPAddress or Set-NetIPAddress can be used to apply a new configuration or modify an existing one.Internet Access for Private Networks:
169.254.1.1 to 169.254.254.254 range (169.254.0.0/16). The first and last subnets within this range are typically unused.255.255.255.255 is used to broadcast to the local network when the local network address is unknown.Before the widespread use of netmasks (subnet IDs) to identify the network ID portion of an address, Classful Addressing allocated a network ID based on the first octet of the IP address.
0.0.0.0/0: The "unspecified address" used when a specific IP address is unknown, typically as a source when a client is seeking a DHCP lease.| Class | First Octet Range | Default Subnet Mask | Common Use |
|---|---|---|---|
| A | 1-126 | 255.0.0.0 | Large networks |
| B | 128-191 | 255.255.0.0 | Medium-sized networks |
| C | 192-223 | 255.255.255.0 | Small networks |
| D | 224-239 | N/A (Multicast) | Multicast |
| E | 240-255 | N/A (Reserved) | Research/Reserved |
Reserved IP Ranges (Classful Legacy):
224.0.0.0 - 239.255.255.255): Used for multicasting.240.0.0.0 - 255.255.255.255): Reserved for testing and experimental use.127.0.0.0 - 127.255.255.255 or 127.0.0.0/8):
CIDR was designed to solve two major problems with classful addressing:
CIDR collapsed routing entries into one single entry, simplifying the information Internet routers needed to locate networks. Unlike classful addressing, CIDR does not determine the network mask based on the first octet of the IP address.
198.51.101.0/24, 198.51.102.0/24, etc.) can be summarized as 198.51.100.0/22 (a "supernet prefix")./22 prefix, so the complexity of the LAN's subnets is hidden and doesn't clog up their routing tables./24 prefix or multiple prefixes to create subnets of different sizes./24 vs. /28)./30 prefix is often selected for router-to-router links (2 bits remaining for host IDs, $2^2 - 2 = 2$ usable addresses, one for each router interface).VLANs are a Layer 2 mechanism to address the contention dilemma when too many hosts are attached to the same switch, as excessive broadcast traffic can reduce performance.
The core function of IP is to facilitate the creation of a group of distinct but interconnected networks, referred to as the "Internetwork." This means that packets addressed to hosts on remote networks must be forwarded via one or more intermediate systems that establish routing between networks.
Nodes within each subnet can see one another directly (they are in the same broadcast domain), but they can only communicate with nodes in other subnets via a router.
Within each subnet or broadcast domain, nodes use MAC addresses to forward frames to one another. TCP/IP includes the ARP protocol to perform the task of resolving an IP address to a hardware (MAC) address.
198.51.100.0/28, 198.51.100.1 might be the default gateway.ARP Request/Reply Sequence - MAC Address Discovery:
Figure: ARP protocol operation showing MAC address discovery process. Host A broadcasts ARP request asking "Who has IP 192.168.1.20?", Host B (owner of that IP) responds with unicast ARP reply containing its MAC address DD:EE:FF:44:55:66. Both hosts cache the mapping to avoid future ARP requests. Essential for Layer 2 frame forwarding within the same subnet.
These techniques define how an IP packet addresses its recipient(s).
FF:FF:FF:FF:FF:FF), meaning there is also a broadcast domain scope at Layer 2.224.0.0.0 to 239.255.255.255) configured for use with multicast groups.01:00:5E:xx:xx:xx).ICMP is a supporting protocol in the Internet protocol suite. It is used by network devices, including routers, to send Error Reporting, Diagnostic Functions and operational information indicating success or failure when communicating with another IP address. This errors are directed to the source IP address of the originating packet. for example, an error is indicated when a requested service is not available or that a host or router could not be reached. Internet Control Message Protocol version 6 (ICMPv6) is the implementation of the Internet Control Message Protocol (ICMP) for Internet Protocol version 6 (IPv6)
IGMP is a communications protocol used by hosts and adjacent routers on IPv4 networks to establish multicast group memberships. IGMP is an integral part of IP multicast and allows the network to direct multicast transmissions only to hosts that have requested them. IGMP is used on IPv4 networks. Multicast management on IPv6 networks is handled by Multicast Listener Discovery (MLD) which is a part of ICMPv6 in contrast to IGMP's bare IP encapsulation. Through IGMP Snooping, routers (and Layer 2 switches capable of snooping) become multicast-aware of IGMP group membership requests. This allows them to avoid flooding multicast transmissions out of all ports (treating them like broadcasts), thereby conserving bandwidth and reducing unnecessary traffic for hosts not interested in the multicast stream.
| Field | Bits (Offset) | Description |
|---|---|---|
| Type | 8 (0-7) | Identifies the ICMPv6 message type. |
| Code | 8 (8-15) | Provides more specific information about the message type. |
| Checksum | 16 (16-31) | For error-checking. In ICMPv6, it includes a pseudo-header (from the IPv6 header) for more robust error detection. |
| Message Body | Variable | Contains the specific information related to the message type (e.g., unreachable code, router advertisement data). |
The ICMPv6 protocol must limit the number of error messages sent to the same destination to avoid network overload.
0. Source & Destination Address
0. Hop Limit – Replaces the TTL field in IPv4 but performs the same function
0. Traffic Class – Describes the packet's priority
0. Flow Label – Used for Quality of Service (QoS) management, useful for real-time streams. Set to 0 for packets not part of any delivery sequence or structure
0. Payload Length – Indicates the length of the packet payload, up to a maximum of 64 kilobytes.For flows where the payload is bigger than that, this field is ignored and a special Jumbo Payload (up to 4GB) option is established
0. Next Header – Describes what the next extension header (if any) is or where the actual payload begins.Also tells the destination host/router how to interpret the data that follows the header.The extension headers replace the Options field in IPv4 and cover functions such as:
• Fragmentation
• Reassembly
• Security (e.g., AH, ESP)
• Source Routing
IPv6 routers do not perform IP fragmentation. IPv6 hosts are required to do one of the following: perform Path MTU Discovery, perform end-to-end fragmentation, or send packets no larger than the default maximum transmission unit (MTU), which is 1280 octets.
IPv6 is the most recent version of the Internet Protocol, designed to replace IPv4 due to the exhaustion of IPv4 addresses. It uses 128-bit addresses, providing a significantly larger address space than IPv4's 32-bit addresses. This expansion allows for connecting a vast number of devices to the internet, including the increasing number of Internet of Things (IoT) devices.
Key Features and Benefits: • Larger Address Space: IPv6 provides a theoretical address pool of 340 undecillion addresses, compared to IPv4's 3.7 billion. • Improved Routing: IPv6 simplifies routing headers, uses hierarchical addressing, and enables more efficient routing through techniques like summary routes and route aggregation. • No Need for NAT: IPv6 eliminates the need for Network Address Translation (NAT), as devices have their own unique public IPv6 addresses. • Enhanced Security: IPv6 includes built-in authentication and privacy support. • Auto-configuration: IPv6 allows for automatic address configuration, simplifying network setup. • Improved Multicast Routing: IPv6 provides better support for multicast routing. • Flow Labeling: IPv6 supports flow labeling, a mechanism for marking network packets with specific quality of service (QoS) requirements. Transition to IPv6: • The transition to IPv6 is a global effort, with major ISPs and network equipment manufacturers supporting it. • The transition is expected to be gradual, with many organizations continuing to use IPv4 for the time being. It's important to ensure that devices and applications are IPv6-compatible to avoid potential connectivity issues during the transition.
The IPv6 header is streamlined and differs significantly from IPv4.
0 for packets not part of any specific delivery sequence or structure.0, and a Jumbo Payload option (up to 4 GB) is established in an extension header.Extension Headers replace the Options field in IPv4 and cover various functions such as:
The IPv6 packet structure is simplified, even though the headers are larger (40 bytes compared to IPv4's 20-60 bytes).
IPv6 addresses are 128 bits long and are typically represented in hexadecimal notation (16 bytes). Each double-byte (16 bits) number is expressed as 4 hexadecimal digits. ADDRESS FORMAT: HEXADECIMAL means 16-bit representation - Double-Octet / byte (1Byte = 8bits)With each double-octet field expressed as 4 hex digits
Example: ABCD:0183:F2C6:2C4F:3B2D:A6F5:F53C:2605
To make IPv6 addresses easier to read and write, compression rules are used:
0183 becomes 183).0000) can be replaced by a double colon (::).
2001:db8:0000:0000:0abc:0000:defo:1234 can be compressed to 2001:db8::abc:0:defo:1234.[] because both the URL and IPv6 address use colon delimiters for different purposes.
http://[2001:db8::1]/index.html2001:db8:0000:0000:0abc:0000:ABCD:1234 Compressed as: 2001:db8::abc:0:ABCD:1234IPv6 uses 128-bit addresses, providing an exponentially larger address space than IPv4.
2000::/3.FE80::/10. Not routable.FC00::/7 or FD00::/8.FF00::/8.Prefix/Length: IPv6 network addresses are written using classless inter-domain routing (CIDR) notation, where /N is the length of the network prefix in bits.Networks are likely to run both IPv4 and IPv6 in some or all parts of the infrastructure. Transition mechanisms ensure interoperability.
2002::/16) for addresses assigned to 6to4 interfaces, which includes a representation of the IPv4 address.In IPv6, an interface must always be configured with a link-local address (one for each link), even if it also has a globally unique address. One or more routable addresses can be assigned in addition to the link-local address.
The 64-bit Interface ID, which is the host portion of an IPv6 address, can be determined using two main techniques:
FF:FE is inserted in the middle, and the 7th bit (Universal/Local bit) is inverted.IPv6 supports multicast. The components of a multicast address (ff00::/8) are subdivided as follows:
ff (First 8 bits): Indicate that the address is within the multicast scope (11111111).1 (0001): Node-Local (to all interfaces on the same node).2 (0010): Link-Local (to all nodes on the same link).5 (0101): Site-Local (deprecated).E (1110): Global.The Multicast Listener Discovery (MLD) protocol allows nodes to form a multicast group and discover whether members of a group are present on a local subnet. Well-known multicast addresses are reserved for specific functionality (e.g., ff02::1 for all nodes, ff02::2 for all routers). Hosts use an appropriate multicast address to communicate with groups.
No Broadcast Addressing in IPv6: IPv6 does not implement broadcast addresses. Multicast addresses are used instead for functionalities that would have used broadcasts in IPv4.
ICMPv6 is an updated version of ICMP (ICMPv4) with new features.
What is An RFC "Request for Comments" is a publication from the Internet Society (Internet Engineering Task Force) and are the official documents of Internet specifications, protocols, procedures. Leading zeros must be removed in each hextet (16-bit segment)/double-octet Rules for Shortening IPv6 Addresses: • :: Must be used to shorten the longest contiguous string of all 0 hextets. • If there is only one hextet of all zeros, it can also be shortened to ::. • If there are two equal length choices of all 0 hextets, use :: to shorten the one on the left. • Hexadecimal characters must be written using lower case (a-f).
INTERFACE ID (Known as EUI-64) Where MAC Address = 48-bit →→ Converted to 64-bit Can be determined using 2 techniques:
A relatively simple translation mechanism allows driver software to create a 64-bit Interface ID (EUI-64) from the MAC address by inserting 16 bits (FFFE) in the middle. • Also known as: • MAC-Derived Address • Interface Identifier • EUI-64 HOW [EUI-64] IS CREATED FROM MAC ADDRESS + fffe [16 bits] Consider a MAC Address 00:0c:29:ab:1c:2d (Example MAC Address). The MAC address is split into halves, and modified into EUI-64 by inserting a known constant 16bits (hexadecimal) of FFFE. Consider a MAC Address b4:45:5a:1c:2d:3f Split into halves: b4:45:5a and 1c:2d:3f Insert FFFE: b4:45:5a:ff:fe:1c:2d:3f 7th bit of the first octet (b4 in binary is 1011 0100): 1 Flipping the 7th bit: 0 Binary after flipping: 1011 0000 Hexadecimal after flipping: b0 Therefore EUI-64 = b045:5aff:fe1c:2d3f 64 bit long.
EUI stands for Extended Unique Identifier: Modified EUI-64 is a method of converting a MAC Address (48 bits) into a 64-bit Interface Identifier [which then becomes the "host portion" of a /64 IPv6 Address]. How to Convert the MAC Address to a Modified EUI-64: 0. Divide the MAC Address in half: 12:34:56 and 78:90:AB (Example: 1234.5678.90AB) 0. Insert FFFE in the middle: 12:34:56:FF:FE:78:90:AB 0. Invert the 7th bit: The 7th bit (Universal/Local bit) of the first octet is inverted. Example: If the first octet is 12 (binary 00010010), inverting the 7th bit (from the left, starting at 1) results in 00010110, which is 16 in hexadecimal. So, 12:34:56:FF:FE:78:90:AB becomes 16:34:56:FF:FE:78:90:AB. WHY INVERT the 7th bit? Because MAC Addresses can be divided into 2 types: UNIVERSALLY ADMINISTERED ADDRESS (UAA) - Uniquely assigned to the device by the manufacturer. LOCALLY ADMINISTERED ADDRESS (LAA) - Manually assigned by an administrator (MAC Address). You can identify a UAA / LAA by its 7th bit of the MAC address, called the U/L bit (Universal/Local bit). U/L bit set to 0 → UAA (in MAC address) means the EUI-64 Interface ID was derived from a UAA. U/L bit set to 1 → LAA (in MAC address) means the EUI-64 Interface ID was derived from a LAA. IN the context of IPv6 addresses and EUI-64, the meaning of the U/L bit is reversed. Therefore: U/L bit set to 0 (in EUI-64) → Indicates a Universally Administered Address (derived from a UAA MAC). U/L bit set to 1 (in EUI-64) → Indicates a Locally Administered Address (derived from a LAA MAC).
The client uses a false pseudo-random number for the Interface ID. ⚠️ Why? The first method has privacy concerns, because the Interface Identifier exposes the MAC, making the host uniquely identifiable and trackable on the internet. 🔐 Using a token (random Interface ID) mitigates this to some degree.
Network addresses are written using Classless Notation, where /nn is the length of the network prefix in bits. Within the /64-bit network IP — as with IPv4 subnets — the length of any given network prefix is used to determine whether two addresses belong to the same network, within that bit-limit, including the subnet as well. IPv6 multicast addressing has features and protocols in common with IPv4 multicast, but also provides changes and improvements by eliminating the need for certain protocols. IPv6 does not implement traditional IP broadcast, i.e. the transmission of a packet to all hosts on the attached link using a special broadcast address, and therefore does not define broadcast addresses. In IPv6, the same result is achieved by sending a packet to the link-local all nodes multicast group at address ff02::1, which is analogous to IPv4 multicasting to address 224.0.0.1. • UNICAST ADDRESSES: Used for one source to a single destination. • MULTICAST ADDRESSES: Used for one source to multiple destinations (that joined the specific Multicast Group). The Destination-IP-Address is configured from a special range for use within the Multicast Group. • ANYCAST ADDRESSES: Used for "one source" to "one of many destinations" (the nearest one).
UNICAST ADDRESSING (OR NETWORK ADDRESSING) In IPv6, unicast addressing is scoped — it’s tied to a region of the network. There are 3 common types: 0. Global Unicast Addressing 0. Link-Local Addressing (Private Addressing) 0. Unique Local Addressing
The equivalent of public IPv4 addresses. These are public addresses which can be used over an internetwork. NOTE: They are globally unique and allow for regular routing across the internet. Originally defined as the 2000::/3 block, encompassing addresses from 2000:: to 3FFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF. However, now defined as all addresses that do not fall within other reserved prefixes. Example: 2001:0DB8:8B00:0001:0000:0000:0000:0001/64 • The first 3 bits indicate that the address is within the global scope.Globally scoped unicast addresses start with 2 (0010) or 3 (0011). • 48-bit Global Routing Prefix: Assigned by IANA to the ISP, are allocated hierarchically to regional registries → ISPs → End-users. • 16-bit Subnet Identifier: Used by the organization to create various subnets or identify site-specific subnet addresses. • 64-bit Interface Identifier: Specified by the organization to identify the host portion of the address. Custom Routing Prefix + Subnet breakdown:
| 3-bit Network ID | 45-bit Global Routing Prefix | 16-bit Subnet ID | 64-bit Interface ID |
|---|---|---|---|
| ➡️ Total: 128-bit IPv6 Global Unicast Address |
These are private addresses which cannot be used over the Internet. They do not necessarily need to be globally unique since they are used freely within internal networks. Cannot be routed over the Internet. Packets destined for a unique local address will be dropped by the ISP. Uses the block FC00::/7 (FC00:: to FDFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF); however, a later update requires the 8th bit to be set to 1, so the first two digits will be FD. Ranges are FD00::/8 to FDFF::/8. Example: FD45:93AC:8A8F:0001:0000:0000:0000:0001/64 • 8-bit Prefix: Indicates a Unique Local Address (FD::/8). • 40-bit Global ID: Randomly generated. • 16-bit Subnet Identifier: Used by the organization for subnetting. • 64-bit Interface Identifier: Assigned to the host.
Refers to addresses that are used for communication within a single link (subnet). Automatically generated on IPv6-enabled interfaces. Use command ipv6 enable on an interface (under interface configuration mode) to enable IPv6 on that interface. Uses the address block FE80::/10 (FE80:: to FEBF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF). However, the standard states that the 54 bits after FE80::/10 should be all 0 initially, and the last 64 bits form the interface identifier. Similar to the Global Unicast Address, the Host 64-bit / Interface-ID is generated using the Modified EUI-64 format. Link-Local: Routers will not route packets with a Link-local destination IPv6 address, but they can be used for routing protocol peerings (OSPF uses Link-local addresses for Neighbor adjacencies) and for Static Routes as next-hop addresses. Also used by Neighbor Discovery Protocol to discover nodes and routers on the local link. ✅ No need for ARP or MAC-to-IP mapping tricks in IPv6. • Nodes on the same subnet are referred to as neighbors • Link-local range: fe80::/10 • Starts with fe80 • Prefix: 1111 1110 10 → 54-bit prefix • Next 54 bits set to 0 • Last 64 bits are the Interface ID Think of it as the IPv6 equivalent of IPv4’s APIPA (Automatic Private IP Addressing) → 169.254.0.0/16
However, unlike IPv4, an IPv6 host is always configured with a link-local address (one for each interface), even if it also has a globally unique address. According to OS behavior, a link-local address is also appended with a Zone Index or Scope ID, in the form: • %1 on Windows • or an interface name like eth0 on Linux/macOS 📌 This is used to determine the source of the address and bind the traffic to a specific interface
• Uses special address ranges starting with ff__::/8
• Common link-local multicast: ff02::/16
Multicast scope and type is embedded in the address structure:
| 8 bits (Prefix) | 4 bits (Flags) | 4 bits (Scope) | 112 bits (Group ID) |
|---|---|---|---|
| ff | Flags (0000) | Scope (e.g. 1, 2) | Group Identifier |
• First 8 bits: Always 1111 1111 (ff) → Indicates multicast address
• Next 4 bits (Flags): Specify multicast type or behavior
• Next 4 bits (Scope): 🧠 Well-known Multicast Addresses are used for specific purposes (like all-routers or all-nodes groups). For example:
• 0001 → Node-local (all interfaces on the same node) -> ff02::1 — All nodes on the local link
• 0010 → Link-local (on the same subnet or link) -> ff02::2 — All routers on the local link
• Final 112 bits: Define the multicast group within that scope
A new feature of IPv6 whereby ONE source communicates with one of multiple destinations. Anycast means that a group of multiple routers are configured with the same IPv6 address. They make use of a Routing protocol to advertise the address and a Prioritization Algorithm & various Metrics to forward packets to the Destination Address (anycast group). Routers will forward packets to its nearest router configured with that Anycast Group IP Address based on the Routing protocol's prioritization & metrics. There is no specific address range for Anycast Addresses. They use a regular Unicast address (Global Unicast or Unique Local) and specify it as an anycast Group Address. This is configured using the "anycast" keyword. Example: Router(config-if)# ipv6 address 2001:db8:1:1::99 /128 anycast Notice the use of a /128 prefix with a Global Unicast address being configured as anycast.
• Multicast addresses are reserved to replace the functionality of broadcast addresses (which do not exist in IPv6).
• Instead of broadcasting, IPv6 hosts use appropriate multicast addresses to reach multiple devices on a local subnet.
@ * Unspecified Address ::= ::/128: Used for when a host hasn't obtained a valid address yet. @ IPv6 Default Routes: Are configured as ::/0, which is the IPv6 equivalent of IPv4's 0.0.0.0/0. @ * Loopback Address ::= ::1/128: Resolves to test the loopback TCP/IP protocol stack on the local device. Messages sent to this address are processed within the local device, but not sent to other devices. This is the IPv6 equivalent of IPv4's 127.0.0.1.
NB: An IPv6 Solicited-Node multicast Address is calculated from a Unicast Address (typically Link-Local). The format is ff02::1:ff followed by the last 24 bits (6 hexadecimal digits) of the Unicast Address. Example: If a Unicast Address is fe80::aabb:ccdd:eeff, its Solicited-Node multicast address would be ff02::1:ffaa:bbcc:eeff.
Note: IPv6 defines Multicast scopes which indicate how far the packets should be forwarded. The addresses starting with "FF02::" are Link-Local Scope. The Internet Protocol Version 6 (IPv6) address prefixes [FE80::/10 and FF02::/16] are not routable over the public internet. [FE80::/10] are Link-Local Unicast addresses, and [FF02::/16] are Link-Local Multicast addresses. Likely the [FC00::/7] range used for Unique Local Unicast addressing are globally not routable outside the organization's internal network.
The MLD protocol allows nodes to Join a multicast group && Discover whether other members of a multicast group are present on the link
Neighbor Discovery Protocol (NDP): Is a protocol used with IPv6. It replaces ARP (which is no longer used in IPv6) and performs the ARP-like function. NDP uses ICMPv6 messages and solicited-node multicast addresses to learn the MAC address of other hosts (ARP in IPv4 uses broadcast messages). Two key message types are within NDP: 0. Neighbor Solicitation (NS) + ICMPv6 Type135: • Source IP: The IPv6 address of the node sending the solicitation. • Destination IP: The Solicited-Node multicast address of the target IPv6 address. • Destination MAC: A multicast MAC address based on the destination IPv6 address. 0. Neighbor Advertisement (NA) + ICMPv6 Type 136: • Source IP: The IPv6 address of the node sending the advertisement. • Destination IP: The IPv6 address of the node that sent the Neighbor Solicitation (Unicast). • Destination MAC: The unicast MAC address of the node that sent the Neighbor Solicitation.
Routers on the local network communicate via two main message types within NDP: 0. Router Solicitation (RS) = ICMPv6 Type 133: • Sent to Multicast address FF02::2 (All Routers). • Sent when an interface is enabled/a host is connected to the network. • Allows hosts to automatically discover routers on the local network. 0. Router Advertisement (RA) = ICMPv6 Type 134: • Sent to Multicast Address FF02::1 (All Nodes). • Sent periodically even if the router hasn't received an RS message. • Sent in response to RS messages. • Contains the IPv6 network prefix(es) allocated to the local link, default router information, and other configuration parameters. • Facilitates Stateless Address Autoconfiguration (SLAAC).
IPv6 Address Allocation Methods: • SLAAC (Stateless Address Autoconfiguration) in IPv6: • Hosts use the RS/RA messages to learn/discover the known IPv6 Network prefix(es) that have been allocated to the Network Segment of the local link, then automatically generate an IPv6 address. • Using EUI-64 or a privacy extension, the device generates its own interface ID. • The device does not rely on a stateful server like DHCPv6 for address assignment. • Using the "ipv6 address /prefix-length eui-64" command, you manually enter the prefix. • Using the "ipv6 address autoconfig" command, you don't need to enter the prefix; the device uses NDP to learn the prefix used on the local link. The devices will use EUI-64 to generate the Interface ID, or a pseudo-randomly generated number. • Stateful DHCPv6: • Hosts explicitly request IPv6 addresses and other configuration parameters from a DHCPv6 server. • The DHCPv6 server maintains state information about the addresses it has assigned. • Static Allocation: • IPv6 addresses are manually configured on the host.
Allows hosts to check if other devices on the local link are using the same IPv6 Address. DAD Uses 2 Messages (NS & NA). DAD is performed any time an IPv6 enabled interface initializes or an IPv6 address is configured on an interface (SLAAC/Manual). The Host will send an NS to its own IPv6 address [Solicited-Node Multicast] to perform DAD: • If it doesn't get a Reply, it knows the address is Unique. • If it gets a reply, it means another host on the network is already using the address.
| Prefix / Address | Name / Scope | Description | IPv4 Equivalent |
|---|---|---|---|
fe80::/10 | Link-local (Unicast) | Used on the local subnet; not forwarded by routers | 169.254.0.0/16 (APIPA) |
::/128 | Unspecified Address | A host that has not yet obtained an address | 0.0.0.0 |
::1/128 | Loopback Address | Used to test the local host (loopback interface) | 127.0.0.1 |
ff00::/8 | Multicast (Internetwork Scope) | General prefix for multicast addresses | N/A (IPv4 used broadcast) |
ff02::1 | All Nodes (Link-local Multicast) | Replaces broadcast; reaches all nodes on local link | 255.255.255.255 (limited use) |
ff02::2 | All Routers (Link-local Multicast) | Used to reach all routers on the local link | N/A |
ff02::1:ffXX:XXXX | Solicited-node Multicast | Used for NDP (Neighbor Discovery Protocol) to find link-layer addresses | ARP equivalent |
::/0 | Default Route | Represents the default gateway | 0.0.0.0/0 |
| IPv6 Multicast Address | IPv4 Equivalent | Multicast Scope | Description | Notes |
|---|---|---|---|---|
FF01::X/16 | N/A | Node/Interface-Local | Used to send traffic to a service within the local interface/host. | Packet doesn't leave the local host. The Node/Interface-local multicast [FF01::/16] addresses are only used on the interface itself. |
FF02::1/16 | 224.0.0.1 | Link-Local | All Nodes/Hosts | Functions as a Broadcast. Refers to its use in the local subnet. Routers will not route these packets between subnets. |
FF02::2/16 | 224.0.0.2 | Link-Local | All Routers | Hello messages. |
FF02::5/16 | 224.0.0.5 | Link-Local | All OSPF Routers | Multicast message. |
FF02::6/16 | 224.0.0.6 | Link-Local | All OSPF DR/BDRs | Multicast message. |
FF02::9/16 | 224.0.0.9 | Link-Local | All RIP Routers | Multicast message. |
FF02::A/16 | 224.0.0.10 | Link-Local | All EIGRP Routers | Multicast message. |
FF05::X/16 | N/A | Site-Local | N/A | Packets can be forwarded by Routers but should be limited to a small physical location. |
FF08::X/16 | N/A | Organization-Local | N/A | Wider in scope than site-local, covering an entire company (organization). |
FF0E::X/16 | N/A | Global | N/A | No boundaries, possible to be routed over the Internet. ROUTABLE |
| Address Type | Prefix/Range (Hex) | Description | IPv4 Equivalent (Conceptual) |
|---|---|---|---|
| Global Unicast | 2000::/3 (2xxx::/3 to 3xxx::/3) | Routable over the internet, similar to public IPv4 addresses. Assigned hierarchically by IANA, RIRs, ISPs, and then to end-users. Begins with 2 or 3. | Public IPv4 Addresses |
| Link-Local Unicast | fe80::/10 | Spans a single subnet (they are not forwarded by routers). Nodes on the same link are referred to as neighbors. Each IPv6 interface must always be configured with a link-local address. Equivalent to IPv4 APIPA (169.254.0.0/16). | APIPA (169.254.0.0/16) |
| Multicast | ff00::/8 (ff02::/16 for link-local multicast) | Used for one-to-many communication within an internetwork or link-local scope. Replaces broadcast addressing (which is not implemented in IPv6). | IPv4 Multicast (e.g., 224.0.0.0/4) |
| Solicited-Node Multicast | ff02::1:ff00:0/104 | A special multicast address automatically created for each unicast or anycast address assigned to an interface. Used for Neighbor Discovery (NDP) to perform address resolution and duplicate address detection without broadcasting. | Part of ARP functionality (but without broadcasts) |
| Unspecified Address | ::/128 (0:0:0:0:0:0:0:0) | Represents the absence of an address. Used as a source address when a host has not yet obtained a valid address (e.g., during DAD). | 0.0.0.0 |
| Unique-Local Address | fc00::/7 to fd00::/7 | Similar to IPv4 private addresses (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16). Used for private networks that are not meant to be routed on the internet. Has a larger random component than site-local addresses (now deprecated). | Private IPv4 Addresses |
| Loopback Address | ::1/128 | Used for testing the loopback TCP/IP stack on the local host. | 127.0.0.1 |
| All-Nodes Multicast | ff02::1 | A link-local scope multicast address for all IPv6 devices on a local link. Equivalent to IPv4 limited broadcast. | 255.255.255.255 (limited broadcast) |
| All-Routers Multicast | ff02::2 | A link-local scope multicast address for all IPv6 routers on a local link. Used by hosts to find routers via Router Solicitation messages. | Part of router discovery functionality |
| DHCP Multicast | ff02::1:2 | Used by DHCPv6 clients to discover DHCPv6 servers. | Part of DHCP discovery functionality |
IPv6 provides other technical benefits in addition to a larger addressing space. In particular, it permits hierarchical address allocation methods that facilitate route aggregation across the Internet, and thus limit the expansion of routing tables. The use of multicast addressing is expanded and simplified, and provides additional optimization for the delivery of services. Device mobility, security, and configuration aspects have been considered in the design of the protocol. It simplifies aspects of address configuration, network renumbering, and router announcements when changing network connectivity providers. It simplifies processing of packets in routers by placing the responsibility for packet fragmentation into the end points. The IPv6 subnet size is standardized by fixing the size of the host identifier portion of an address to 64 bits.
The addressing architecture of IPv6 allows three different types of transmission: unicast, anycast and multicast. IPv6 is not foreseen to supplant IPv4 instantaneously. Both protocols will continue to operate simultaneously for some time. Therefore, IPv6 transition mechanisms are needed to enable IPv6 hosts to reach IPv4 services and to allow isolated IPv6 hosts and networks to reach each other over IPv4 infrastructure.
On the Internet, data is transmitted in the form of network packets. IPv6 specifies a new packet format, designed to minimize packet header processing by routers. Because the headers of IPv4 packets and IPv6 packets are significantly different, the two protocols are not interoperable. IPv6 does not implement traditional IP broadcast, i.e. the transmission of a packet to all hosts on the attached link using a special broadcast address, and therefore does not define broadcast addresses. The results are achieved using multicasting, because it does not support the broadcast addressing method, on which the functionality of the Address Resolution Protocol (ARP) in IPv4 is based. IPv6 implements the Neighbor Discovery Protocol (NDP) in the link layer, which relies on ICMPv6 and multicast transmission
Both IPv4 and IPv6 addresses are ultimately represented in binary, although you'll commonly see them in decimal (IPv4) or hexadecimal (IPv6) format for convenience. Each segment (octet in IPv4, hextet in IPv6) ultimately represents 8 bits of binary.