Cisco Zero-Touch Network Provisioning

Cisco Network Related Certification

IPv6 Address Size (10.3.2)–Cisco IPv4 and IPv6 Address Management

IPv6 addressing will eventually replace IPv4 addressing although both types of addresses will coexist for the foreseeable future. IPv6 overcomes the limitations of IPv4 and has features that better suit current and foreseeable network demands. The 32-bit IPv4 address space provides approximately 4,294,967,296 unique addresses.

IPv6 address space provides 340,282,366,920,938,463,463,374,607,431,768,211,456 addresses, or 340 undecillion addresses, which is roughly equivalent to the number of grains of sand on Earth. Table 10-1 provides a visual to compare the IPv4 and IPv6 address space.

  

Table 10-1 Number of Zeros for Increasing Levels of Scientific Notation

Number Name

Scientific Notation

Number of Zeros

1 Thousand

10
3

1,000

1 Million

10
6

1,000,000

1 Billion

10
9

1,000,000,000

1 Trillion

10
12

1,000,000,000,000

1 Quadrillion

10
15

1,000,000,000,000,000

1 Quintillion

10
18

1,000,000,000,000,000,000

1 Sextillion

10
21

1,000,000,000,000,000,000,000

1 Septillion

10
24

1,000,000,000,000,000,000,000,000

1 Octillion

10
27

1,000,000,000,000,000,000,000,000,000

1 Nonillion

10
30

1,000,000,000,000,000,000,000,000,000,000

1 Decillion

10
33

1,000,000,000,000,000,000,000,000,000,000,000

1 Undecillion

10
36

1,000,000,000,000,000,000,000,000,000,000,000,000

The following are other benefits of the IPv6 protocol:

  • There is no need for NAT. Each device can have its own globally routable address.
  • Autoconfiguration capabilities simplify address administration.

The designers of IPv6 thought that it would be adopted quickly, as the number of remaining available IPv4 address blocks was decreasing rapidly. Initial estimates were that IPv6 would be globally deployed by 2003. Obviously, these estimates were incorrect.

Video—Compare IPv4 and IPv6 Addressing (10.3.3)

Refer to the online course to view this video.

IPv4 and IPv6 Coexistence (10.3.4)

There is no specific date to move to IPv6. Both IPv4 and IPv6 will coexist in the near future, and the transition is taking several years. The IETF has created various protocols and tools to help network administrators migrate their networks to IPv6. The migration techniques can be divided into three categories: dual stack, tunneling, and translation.

Dual Stack

Dual stack enables IPv4 and IPv6 to coexist on the same network segment, as shown in Figure 10-6. Dual stack devices run both IPv4 and IPv6 protocol stacks simultaneously. Known as native IPv6, this means the customer network has an IPv6 connection to its ISP and is able to access content found on the Internet over IPv6.

   

Figure 10-6 A Dual Stack Topology

Tunneling

Tunneling is a method of transporting an IPv6 packet over an IPv4 network, as shown in Figure 10-7. The IPv6 packet is encapsulated inside an IPv4 packet, similar to other types of data.

   

Figure 10-7 Routing IPv6 Packets Inside an IPv4 Tunnel

Translation

Network Address Translation 64 (NAT64) enables IPv6-enabled devices to communicate with IPv4-enabled devices using a translation technique similar to NAT for IPv4. An IPv6 packet is translated to an IPv4 packet, and an IPv4 packet is translated to an IPv6 packet. The NAT64 router translates the different IP addresses between networks (the solid line) so that the PCs with different IP addresses can communicate (the dotted line), as shown in Figure 10-8.

   

Figure 10-8 Translation Between IPv4 and IPv6

IPv6 Features (10.4)

IPv6 is more than just larger address space. A new IP protocol was an opportunity to make performance improvements and provide much-needed new features.

Video—The Hexadecimal Number System (10.4.1)

Refer to the online course to view this video.

Video—Differences Between IPV4 and IPv6 (10.4.2)

Refer to the online course to view this video.

IPv6 Autoconfiguration and Link-Local Addresses (10.4.3)

In addition to the increase in length, IPv6 addresses have other characteristics that are different than IPv4 addresses. Among the differences are the following:

  • Address autoconfiguration—Stateless Address Autoconfiguration (SLAAC) allows a host to create its own Internet-routable address (global unicast address, or GUA) without the need for a DHCP server. As shown in Figure 10-9, with the default method, the host receives the prefix (network address), prefix length (subnet mask), and default gateway from the Router Advertisement message of the router. The host can then create its own unique interface ID (host portion of the address) to give itself a routable global unicast address.

    

Figure 10-9 SLAAC Operation

  • Link-local address—A link-local address is used when communicating with a device on the same network.

The developers of IPv6 made improvements to IP and related protocols such as ICMPv6. These improvements include features related to efficiency, scalability, mobility, and flexibility for future enhancements.

Video—IPv6 Address Representation (10.4.4)

Refer to the online course to view this video.

Broadcast Transmission (8.6.4)–Cisco The Internet Protocol

Broadcast packets are sent to all hosts in the network using a broadcast address. With a broadcast, the packet contains a destination IPv4 address with all ones (1s) in the host portion. This means that all hosts on that local network (broadcast domain) will receive and look at the packet. Many network protocols, such as DHCP, use broadcasts. When a host receives a packet sent to the network broadcast address, the host processes the packet as it would a packet addressed to its unicast address.

Broadcast may be directed or limited. A directed broadcast is sent to all hosts on a specific network. For example, in Figure 8-11 a host on the 172.16.4.0/24 network sends a packet to 172.16.4.255. A limited broadcast is sent to 255.255.255.255. By default, routers do not forward broadcasts.

   

Figure 8-11 Broadcast Transmission

When a packet is broadcast, it uses resources on the network and causes every receiving host on the network to process the packet. Therefore, broadcast traffic should be limited so that it does not adversely affect the performance of the network or devices. Because routers separate broadcast domains, subdividing networks can improve network performance by eliminating excessive broadcast traffic.

Video—IPv4 Multicast (8.6.5)

Refer to the online course to view this video.

Multicast Transmission (8.6.6)

Multicast transmission reduces traffic by allowing a host to send a single packet to a selected set of hosts that subscribe to a multicast group.

IPv4 has reserved the 224.0.0.0 to 239.255.255.255 addresses as a multicast range. The IPv4 multicast addresses 224.0.0.0 to 224.0.0.255 are reserved for multicasting on the local network only. These addresses are to be used for multicast groups on a local network. A router connected to the local network recognizes that these packets are addressed to a local network multicast group and never forwards them further. A typical use of a reserved local network multicast address is in routing protocols using multicast transmission to exchange routing information. For example, 224.0.0.9 is the multicast address used by Routing Information Protocol (RIP) version 2 to communicate with other RIPv2 routers.

Hosts that receive particular multicast data are called multicast clients. The multicast clients use services requested by a client program to subscribe to the multicast group.

Each multicast group is represented by a single IPv4 multicast destination address, as shown in Figure 8-12. When an IPv4 host subscribes to a multicast group, the host processes packets addressed to this multicast address, and packets addressed to its uniquely allocated unicast address.

   

Figure 8-12 Multicast Transmission 

Activity—Unicast, Broadcast, or Multicast (8.6.7)

Refer to the online course to complete this activity.

Summary (8.7)

The following is a summary of each topic in the chapter:

  • Purpose of an IPv4 Address—The IPv4 address is a logical network address that identifies a particular host. An IPv4 address is assigned to the network interface connection for a host. This connection is usually a NIC installed in the device. Every packet sent across the Internet has a source and destination IPv4 address.
  • Binary Conversion of an IPv4 Address—An IPv4 address is a series of 32 binary bits (ones and zeros). The 32 bits are grouped into four 8-bit bytes called octets. Each octet is presented as its decimal value, separated by a decimal point or period, called dotted-decimal notation. Each octet is made up of 8 bits, and each bit has a value. The value of each of the four octets can range from 0 to a maximum of 255. Determine the value of the octet by adding the values of positions wherever there is a binary 1 present:
    • If there is a zero in a position, do not add the value.
    • If all 8 bits are zeros, 00000000, the value of the octet is 0.
    • If all 8 bits are ones, 11111111, the value of the octet is 255 (128+64+32+16+8+4+2+1).
    • If the 8 bits are mixed, such as the example 00100111, the value of the octet is 39 (32+4+2+1).
  • The IPv4 Address Structure—The logical 32-bit IPv4 address is hierarchical and is made up of two parts. The first part identifies the network, and the second part identifies a host on that network. In hierarchical addressing, the network portion indicates the network on which each unique host address is located.

Logical AND is the comparison of two bits that produce results of either 0 or 1. In digital logic, 1 represents True and 0 represents False. When you‛re using an AND operation, both input values must be True (1) for the result to be True (1). Only a 1 AND 1 produce a 1. All other AND combinations produce a 0. To identify the network address of an IPv4 host, the IPv4 address is logically ANDed, bit by bit, with the subnet mask. ANDing between the address and the subnet mask yields the network address. The subnet mask is compared to the IPv4 address from left to right, bit for bit. The ones in the subnet mask represent the network portion; the zeros represent the host portion. A subnet mask of 255.255.255.0 (decimal) or 11111111.11111111.1111111.00000000 (binary) uses 24 bits to identify the network number, which leaves 8 bits to number the hosts on that network.

  • Classful IPv4 Addressing—In 1981, Internet IPv4 addresses were assigned using classful addressing, based on one of three classes—A, B, or C:
    • Class A (0.0.0.0/8 to 127.0.0.0/8)—Designed to support extremely large networks with more than 16 million host addresses.
    • Class B (128.0.0.0 /16 to 191.255.0.0 /16)—Designed to support the needs of moderate to large size networks with up to approximately 65,000 host addresses.
    • Class C (192.0.0.0 /24 to 223.255.255.0 /24)—Designed to support small networks with a maximum of 254 hosts.

Classful addressing was abandoned in the late 1990s for the newer and current classless addressing system.

  • Public and Private IPv4 Addresses—Most internal networks, from large enterprises to home networks, use private IPv4 addresses for addressing all internal devices (intranet) including hosts and routers. However, private addresses are not globally routable. Specifically, the private address blocks are
    • 10.0.0.0 /8 or 10.0.0.0 to 10.255.255.255
    • 172.16.0.0 /12 or 172.16.0.0 to 172.31.255.255
    • 192.168.0.0 /16 or 192.168.0.0 to 192.168.255.255

These addresses are not routable on the Internet. Before an ISP can forward a packet with a private address out to the Internet, the address must be translated to a public IPv4 address using NAT.

Public addresses (both IPv4 and IPv6) must be unique, and their use is regulated and allocated to each organization separately. Public addresses are managed by the IANA. The IANA manages and allocates blocks of IP addresses to the RIRs. RIRs are responsible for allocating IP addresses to ISPs, which, in turn, provide IPv4 address blocks to organizations and smaller ISPs.

  • Unicast, Broadcast, and Multicast Addresses—For unicast communication, the addresses assigned to the two end devices are used as the source and destination IPv4 addresses. IPv4 unicast host addresses are in the address range of 0.0.0.0 to 223.255.255.255.

Broadcast traffic is used to send packets to all hosts on the network using the broadcast address for the network. With a broadcast, the packet contains a destination IPv4 address with all ones (1s) in the host portion. This means that all hosts on that local network (broadcast domain) will receive and look at the packet. Because routers separate broadcast domains, subdividing networks can improve network performance by eliminating excessive broadcast traffic.

Multicast transmission reduces traffic by allowing a host to send a single packet to a selected set of hosts that subscribe to a multicast group. The IPv4 multicast addresses 224.0.0.0 to 224.0.0.255 are reserved for multicasting on the local network only. Each multicast group is represented by a single IPv4 multicast destination address. When an IPv4 host subscribes to a multicast group, the host processes packets addressed to this multicast address and packets addressed to its uniquely allocated unicast address.

Calculate the Number of Hosts (8.3.7)–Cisco The Internet Protocol

The subnet masks seen most often with home and small business networking are 255.0.0.0 (8 bits), 255.255.0.0 (16 bits), and 255.255.255.0 (24 bits). A subnet mask of 255.255.255.0 (decimal) or 11111111.11111111.1111111.00000000 (binary) uses 24 bits to identify the network number, which leaves 8 bits to number the hosts on that network, as shown in Figure 8-6.

  

Figure 8-6 Calculating the Number of Hosts

To calculate the number of hosts that can be on that network, take the number 2 to the power of the number of host bits (28 = 256). From this number, you must subtract 2 (256–2). The reason you subtract 2 is that all ones within the host portion of an IPv4 address indicate a broadcast address for that network and cannot be assigned to a specific host. All zeros within the host portion indicate the network ID and, again, cannot be assigned to a specific host. Powers of 2 can be calculated easily with the calculator that comes with any Windows operating system.

Another way to determine the number of hosts available is to add up the values of the available host bits (128+64+32+16+8+4+2+1 = 255). From this number, subtract 1 (255–1 = 254), because the host bits cannot be all ones. It is not necessary to subtract 2 because the value of all zeros is 0 and is not included in the addition.

With a 16-bit mask, there are 16 bits (two octets) for host addresses, and a host address could have all ones (255) in one of the octets. This might appear to be a broadcast, but as long as the other octet is not all ones, it is a valid host address. Remember that the host looks at all host bits together, not at octet values.

Video—Network, Host, and Broadcast Addresses (8.3.8)

Refer to the online course to view this video.

Classful IPv4 Addressing (8.4)

Classful addressing is a legacy method of how IPv4 addresses were automatically assigned subnet masks based on the first several bits of the address. Although classful addressing has been made obsolete by classless addressing, it is important to understand the differences.

Classful and Classless Addressing (8.4.1)

In 1981, Internet IPv4 addresses were assigned using classful addressing. Customers were allocated a network address based on one of three classes—A, B, or C. The addresses were divided into the following ranges or classes:

  • Class A (0.0.0.0/8 to 127.0.0.0/8)—Designed to support extremely large networks with more than 16 million host addresses. It used a fixed /8 prefix (255.0.0.0) with the first octet to indicate the network address and the remaining three octets for host addresses.
  • Class B (128.0.0.0 /16 to 191.255.0.0 /16)—Designed to support the needs of moderate to large size networks with up to approximately 65,000 host addresses. It used a fixed /16 prefix (255.255.0.0) with the two high-order octets to indicate the network address and the remaining two octets for host addresses.
  • Class C (192.0.0.0 /24 to 223.255.255.0 /24)—Designed to support small networks with a maximum of 254 hosts. It used a fixed /24 prefix (255.255.255.0) with the first three octets to indicate the network and the remaining octet for the host addresses.

Note

A Class D multicast block consists of 224.0.0.0 to 239.0.0.0, and a Class E experimental address block consists of 240.0.0.0 to 255.0.0.0.

As shown in Figure 8-7, the classful system allocated 50 percent of the available IPv4 addresses to 128 Class A networks, 25 percent of the addresses to Class B, and then Class C shared the remaining 25 percent with Classes D and E. Although appropriate at the time, as the Internet grew, it became obvious that this method was wasting addresses and depleting the number of available IPv4 network addresses.

   

Figure 8-7 Classful Addressing

Classful addressing was abandoned in the late 1990s for the newer and current classless addressing system. The formal name is classless interdomain routing (CIDR, pronounced “cider”). With classless addressing, customers receive an IPv4 network address and any size subnet mask, appropriate to the number of hosts required. The subnet mask can be any length and is not limited to the three subnet masks used in classful addressing.

Video—Classful IPv4 Addressing (8.4.2)

Refer to the online course to view this video.

Practice–Cisco Routing Between Networks Layer

The following activities provide practice with the topics introduced in this chapter.

Labs

Lab—IPv4 Addresses and Network Communication (7.1.4)

Lab—Connect to a Wireless Router (7.3.4)

Packet Tracer Activities

Packet Tracer—Observe Data Flow in a LAN (7.3.3)

Check Your Understanding Questions

Complete all the review questions listed here to test your understanding of the topics and concepts in this chapter. Appendix A, “Answers to the ‘Check Your Understanding‛ Questions,” lists the answers.

1. Which information do routers use to forward a data packet toward its destination?

  1. Destination IP address
  2. Destination data-link address
  3. Source IP address
  4. Source data-link address

2. A router receives a packet from the GigabitEthernet 0/0 interface and determines that the packet needs to be forwarded out the GigabitEthernet 0/1 interface. What does the router do next?

  1. Create a new Layer 2 Ethernet frame to be sent to the destination
  2. Route the packet out the GigabitEthernet 0/1 interface
  3. Look into the routing table to determine whether the destination network is in the routing table
  4. Look into the ARP cache to determine the destination IP address

3. Refer to the exhibit. The IP address of which device interface should be used as the default gateway setting of host H1?

  1. R2: S0/0/1
  2. R1: G0/0
  3. R2: S0/0/0
  4. R1: S0/0/0

4. During the process of forwarding traffic, what does the router do immediately after matching the destination IP address to a network on a directly connected routing table entry?

  1. Switch the packet to the directly connected interface
  2. Look up the next-hop address of the packet
  3. Discard the traffic after consulting the routing table
  4. Analyze the destination IP address

5. What does a router do if it cannot determine where to forward an incoming packet?

  1. The router sends an incident message to the network administrator.
  2. The router saves it in the sending queue and tries to forward it again later.
  3. The router forwards it out all interfaces.
  4. The router drops it.

6. In implementing a LAN in a corporation, what are the advantages of dividing hosts between multiple networks connected by a distribution layer? (Choose three.)

  1. It provides increased security.
  2. Only LAN switches are needed.
  3. It reduces complexity and expense by using LAN switch devices.
  4. It increases traffic bandwidth between segments through distribution layer devices.
  5. It makes the hosts invisible to those on other local network segments.
  6. It splits up broadcast domains and decreases traffic.

7. What type of route is indicated by the code C in an IPv4 routing table on a Cisco router?

  1. Static route
  2. Directly connected route
  3. Dynamic route that is learned through EIGRP
  4. Default route

8. Which portion of the network layer address does a router use to forward packets?

  1. Gateway address
  2. Network portion
  3. Host portion
  4. Broadcast address

9. What role does a router play on a network?

  1. Forwarding frames based on a MAC address
  2. Selecting the path to destination networks
  3. Forwarding Layer 2 broadcasts
  4. Connecting smaller networks into a single broadcast domain

10. A router receives an incoming packet and determines that the destination host is located on a LAN directly attached to one of the router interfaces. Which destination address does the router use to encapsulate the Ethernet frame when forwarding the packet?

  1. MAC address of the SVI on the switch
  2. MAC address of the default gateway of the LAN
  3. MAC address of the destination host
  4. MAC address of the interface of the connected router

11. Which address should be configured as the default gateway address of a client device?

  1. The IPv4 address of the router interface that is connected to the Internet
  2. The IPv4 address of the router interface that is connected to the same LAN
  3. The Layer 2 address of the switch management interface
  4. The Layer 2 address of the switch port that is connected to the workstation