Chapter 1 - IPv4 Design Flashcards
Which of the following addresses is an IPv4 private address?
- 198.176.1.1
- 172.31.16.1
- 191.168.1.1
- 224.130.1.1
B. Private IPv4 address blocks are 10.0.0.0 to 10.255.255.255, 172.16.0.0 to 172.31.255.255.255, and 192.168.0.0 to 192.168.255.255.0.
How many IP addresses are available for hosts in the subnet 198.10.100.64/27?
- 14
- 30
- 62
- 126
B. There are 5 host bits: 25 − 2 = 30 hosts.
What subnet mask should you use in loopback addresses?
- 255.255.255.252
- 255.255.255.254
- 255.255.255.0
- 255.255.255.255
D. Loopback addresses should have a /32 mask so that address space is not wasted.
In what IPv4 field are the precedence bits located?
- Priority field
- IP Protocol field
- Type of Service field
- IP Options field
C. The precedence bits are located in the Type of Service field of the IPv4 header.
What type of address is 225.10.1.1?
- Unicast
- Multicast
- Broadcast
- Anycast
B. Multicast addresses range from 224.0.0.1 to 239.255.255.255.
Which subnetworks are summarized by the summary route 150.10.192.0/21?
- 150.10.192.0/24, 150.10.193.0/24
- 150.10.192.0/22, 150.10.196.0/23, 150.10.197.0/24
- 150.10.192.0/22, 150.10.199.0/22
- 150.10.192.0/23, 150.10.194.0/23, 150.10.196.0/23, 150.10.199.0/24, 150.10.198.0/24
D. The summary route summarizes subnetworks from 150.10.192.0/24 to 150.10.199.0/24. Answer D is the only one that includes them.
What type of network and subnet mask would you use to save address space in a point-to-point WAN link?
- 100.100.10.16/26
- 100.100.10.16/28
- 100.100.10.16/29
- 100.100.10.16/30
D. Point-to-point links need only two host addresses. They use a /30 mask, which provides 22 − 2 = 2 host addresses.
What protocol is used to automatically assign IP addresses?
- Dynamic Host Control Protocol
- Dedicated Host Configuration Protocol
- Dynamic Host Configuration Protocol
- Automatic Host Configuration Protocol
C. DHCP assigns IP addresses dynamically.
A company needs to use public IP addresses so that four network servers are accessible from the Internet. What technology is used to meet this requirement?
- DNS
- IPsec
- Static NAT
- Dynamic NAT
C. Static NAT is used to statically translate public IP addresses to private IP addresses.
The DS field of DSCP is capable of how many codepoints?
- 8
- 32
- 64
- 128
C. The DS field allocates 6 bits in the ToS field, thus making it capable of 64 distinct codepoints.
How long is the IP header with no optional fields?
The IPv4 header is 20 bytes in length when it uses no optional fields.
T/F: The IP header includes fields for the upper-layer protocol, one for prioritization, and one for fragmentation.
True.
See the attached header diagram.
How many bits is the Version field in the IP header? What does it contain?
Version: This field is 4 bits in length. It indicates the IP header’s format, based on the version number. Version 4 is the current version, and this field is set to 0100 (4 in binary) for IPv4 packets. The Version field is set to 0110 (6 in binary) in IPv6 networks.
What is the IHL field in the IPv4 header? How long is this field?
IHL (Internet Header Length): This field is 4 bits in length. It indicates the length of the header in 32-bit words (4 bytes) so that the beginning of the data can be found in the IP header. The minimum value for a valid header is 5 (0101) for five 32-bit words.
How long is the ToS field in the IPv4 header? What does it contain?
ToS (Type of Service): This field is 8 bits in length. Quality of service (QoS) parameters such as IP precedence and DSCP are found in this field.
What is the maximum length of an IP packet, in bytes, including the header and data?
What field in the IP header contains this information?
The maximum length of an IP packet can be 2^16 − 1 = 65,535 bytes. Routers use this field to determine whether fragmentation is necessary by comparing the total length with the outgoing MTU.
Total Length: This field is 16 bits in length. It represents the length of the datagram, or packet, in bytes, including the header and data.
What field in the IPv4 header denotes fragments for reassembly into an original IP packet?
Identification: This field is 16 bits in length. It is a unique identifier that denotes fragments for reassembly into an original IP packet.
Which field in the IPv4 header indicates whether a packet can be fragmented or not?
Flags: This field is 3 bits in length. It indicates whether the packet can be fragmented and whether more fragments follow.
Bit 0 is reserved and set to 0.
Bit 1 indicates May Fragment (0) or Do Not Fragment (1).
Bit 2 indicates Last Fragment (0) or More Fragments to Follow (1).
Which field in the IPv4 header indicates where in the packet a fragment belongs? How long is this field?
Fragment Offset: This field is 13 bits in length. It indicates (in bytes) where in the packet this fragment belongs. The first fragment has an offset of 0.
What field in the IPv4 header indicates to a router that the packet should be discarded because it has taken too many hops?
Time to Live: This field is 8 bits in length. It indicates the maximum time the packet is to remain on the network. Each router decrements this field by 1 for loop avoidance. If this field is 0, the packet must be discarded. This scheme permits routers to discard undeliverable packets.
What field in the IPv4 header indicates the upper-layer protocol?
How long is this field?
Protocol: This field is 8 bits in length. It indicates the upper-layer protocol. The Internet Assigned Numbers Authority (IANA) is responsible for assigning IP protocol values. Table 1-2 shows some key protocol numbers. You can find a full list at www.iana.org/
How many bits long is the “Header Checksum” field?
Header Checksum: This field is 16 bits in length. The checksum does not include the data portion of the packet in the calculation. The checksum is verified and recomputed at each point the IP header is processed.
T/F: The IP Options field in the IPv4 headers is variable in length.
True
IP Options: This field is variable in length. The options provide for control functions that are useful in some situations but unnecessary for the most common communications. Specific options are security, loose source routing, strict source routing, record route, and timestamp.
Which field in the IPv4 header ensures that the IP headers ends on a 32-bit boundary?
Padding: This field is variable in length. It ensures that the IP header ends on a 32-bit boundary.
What is the function of the ToS field in the IPv4 header?
The ToS field of the IP header is used to specify QoS parameters.
Routers and Layer 3 switches look at the ToS field to apply policies, such as priority, to IP packets based on the markings. An example is a router prioritizing time-sensitive IP packets over regular data traffic such as web or email, which is not time sensitive.
What are the leftmost bits in the ToS field called and used for?
The first 3 (leftmost) bits are the IP precedence bits.
These bits define values that are used by QoS methods. The precedence bits especially help in marking packets to give them differentiated treatment with different priorities. For example, Voice over IP (VoIP) packets can get preferential treatment over regular data packets.
What are the bits in the ToS field set to for “normal service” traffic
RFC 1349 redefined bits 3 and 6 (expanding for ToS bits) to reflect a desired type of service optimization. Table 1-5 shows the ToS field values that indicate service parameters to use for IP packets.
How many levels of packet classification are provided by the DS field? What are these levels called?
The Differentiated Services field takes the form shown in Figure 1-2. The DS field provides more granular levels of packet classification by using 6 bits for packet marking. DS has 2^6 = 64 levels of classification, which is significantly higher than the eight levels of the IP precedence bits. These 64 levels are called codepoints, and they have been defined to be backward compatible with IP precedence values.
What is the maximum length of an IP packet?
Although the maximum length of an IP packet is 65,535 bytes, most of the common lower-layer protocols do not support such large MTUs. For example, the MTU for Ethernet is approximately 1518 bytes. When the IP layer receives a packet to send, it first queries the outgoing interface to get its MTU. If the packet’s size is greater than the interface’s MTU, the layer fragments the packet.
T/F: When a packet is fragmented, it is not reassembled until it reaches the destination IP layer.
T/F: A fragmented packet can be fragmented again.
True and True.
When a packet is fragmented, it is not reassembled until it reaches the destination IP layer. The destination IP layer performs the reassembly.
Any router in the path can fragment a packet, and any router in the path can fragment a fragmented packet again. Each fragmented packet receives its own IP header and identifier, and it is routed independently from other packets.