Chapter 4 - Fundamentals of IPv4 Addressing and Routing Flashcards

1
Q

Which of the following are functions of OSI Layer 3 protocols?
(Choose two answers.)

a. Logical addressing
b. Physical addressing
c. Path selection
d. Arbitration
e. Error recovery

A

A and C.

The network layer defines logical addressing, in contrast to physical addressing. The logical address structure allows easy grouping of addresses, which makes routing more efficient. Path selection refers to the process of choosing the best routes to use in the network. Physical addressing and arbitration typically are data link layer functions, and error recovery typically is a transport layer function.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which of the following is a valid Class C IP address that can be assigned to a host?

a. 1.1.1.1
b. 200.1.1.1
c. 128.128.128.128
d. 224.1.1.1

A

B.

A. 1.1.1.1 is a Class A Address.
C. 128.128.128.128 is a Class B Address.
D. 224.1.1.1 is a Class D address.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the assignable range of values for the first octet for Class A IP networks?

a. 0 to 127
b. 0 to 126
c. 1 to 127
d. 1 to 126
e. 128 to 191
f. 128 to 192

A

D.

The first octet of Class A addresses ranges from 1 to 126, inclusive; Class B, 128 to 191, inclusive; and Class C, 192 to 223 inclusive. 127 is technically in the Class A range, but it is a reserved address used as a loopback.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

PC1 and PC2 are on two different Ethernet LANs that are separated by an IP router. PC1’s IP address is 10.1.1.1, and no subnetting is used. Which of the following addresses could be used for PC2?
(Choose two answers.)

a. 10.1.1.2
b. 10.2.2.2
c. 10.200.200.1
d. 9.1.1.1
e. 225.1.1.1
f. 1.1.1.1

A

D and F.

Without any subnetting in use, all addresses in the same network as 10.1.1.1—all addresses in Class A network 10.0.0.0—must be on the same LAN. Addresses separated from that network by some router cannot be in network 10.0.0.0. So, the two correct answers are the only two answers that list a valid unicast IP address that is not in network 10.0.0.0.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Imagine a network with two routers that are connected with a point-to-point HDLC serial link. Each router has an Ethernet, with PC1 sharing the Ethernet with Router1 and PC2 sharing the Ethernet with Router2. When PC1 sends data to PC2, which of the following is true?

a. Router1 strips the Ethernet header and trailer off the frame received from PC1, never to be used again.
b. Router1 encapsulates the Ethernet frame inside an HDLC header and sends the frame to Router2, which extracts the Ethernet frame for forwarding to PC2.
c. Router1 strips the Ethernet header and trailer off the frame received from PC1, which is exactly re-created by Router2 before forwarding data to PC2.
d. Router1 removes the Ethernet, IP, and TCP headers and rebuilds the appropriate headers before forwarding the packet to Router2.

A

A.

PC1 will send an Ethernet frame to Router 1, with PC1’s MAC address as the source address and Router 1’s MAC address as the destination address. Router 1 will remove the encapsulated IP packet from that Ethernet frame, discarding the frame header and trailer. Router 1 will forward the IP packet by first encapsulating it inside
an HDLC frame, but Router 1 will not encapsulate the Ethernet frame in the HDLC frame but rather the IP packet. Router 2 will de-encapsulate the IP packet from the HDLC frame and forward it onto the Ethernet LAN, adding a new Ethernet header and trailer, but this header will differ. It will list Router 2’s MAC address as the source address and PC2’s MAC address as the destination address.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Which of the following does a router normally use when making a decision about routing TCP/IP packets?

a. Destination MAC address
b. Source MAC address
c. Destination IP address
d. Source IP address
e. Destination MAC and IP addresses

A

C.

Routers compare the packet’s destination IP address to the router’s IP routing table, making a match and using the forwarding instructions in the matched route to forward the IP packet.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Which of the following are true about a LAN-connected TCP/IP host and its IP routing (forwarding) choices?
(Choose two answers.)

a. The host always sends packets to its default gateway.
b. The host sends packets to its default gateway if the destination IP address is in a different class of IP network than the host.
c. The host sends packets to its default gateway if the destination IP address is in a different subnet than the host.
d. The host sends packets to its default gateway if the destination IP address is in the same subnet as the host.

A

B and C.

IPv4 hosts generally use basic two-branch logic. To send an IP packet to another host on the same IP network or subnet that is on the same LAN, the sender sends the IP packet directly to that host. Otherwise, the sender sends the packet to its default router (also called the default gateway).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Which of the following are functions of a routing protocol?
(Choose two answers.)

a. Advertising known routes to neighboring routers
b. Learning routes for subnets directly connected to the router
c. Learning routes, and putting those routes into the routing table, for routes advertised
to the router by its neighboring routers
d. Forwarding IP packets based on a packet’s destination IP address

A

A and C.

Routers do all the actions listed in all four answers; however, the routing protocol does the functions in the two listed answers. Independent of the routing protocol, a router learns routes for IP subnets and IP networks directly connected to its interfaces. Routers also forward (route) IP packets, but that process is called IP routing, or IP forwarding, and is an independent process compared to the work of a routing protocol.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

A company implements a TCP/IP network, with PC1 sitting on an Ethernet LAN. Which of the following protocols and features requires PC1 to learn information from some other server device?

a. ARP
b. ping
c. DNS
d. None of these answers is correct.

A

C.

Address Resolution Protocol (ARP) does allow PC1 to learn information, but the information is not stored on a server. The ping command does let the user at PC1 learn whether packets can flow in the network, but it again does not use a server. With the Domain Name System (DNS), PC1 acts as a DNS client, relying on a DNS server to respond with information about the IP addresses that match a given hostname.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly