Ch4-Fundamentals of IPv4 Addressing & Routing Flashcards
On an IP host, the IP address of some router to which the host sends packets when the packet’s destination address is on a subnet other than the local subnet.
Default gateway/default router
A list of routes in the router, with each route listing the destination subnet and mask, the routing interface out which to forward packets destined for that subnet, and as needed, the next-hop router’s IP address
routing table
Subdivisions of a Class A, B, or C network, as configured by a network administrator.
IP subnet
A set of messages and processes with which routers can exchange information about routes to reach subnets in a particular network
routing protocol
An IP address that represents a single interface.
unicast IP address
The process of subdividing a Class A, B, or C network into smaller groups
subnetting
An internet protocol used to map an IP address to a MAC address. Defined in RFC 826
ARP (Address Resolution Protocol)
How does IPv4 expect addresses to be grouped into subnets or networks?
- IP addresses in the same group MUST NOT be separated by router.
- IP addresses in different groups MUST be separated by a router.
- 5 IP addresses separated by a router MUST be in different groups.
Break down the IPv4 Class A address space in terms of first octet range, portion of total address space, and intended purpose (unicast, multicast, etc) of addressing.
- First octet 1-126
- 1/2 total IPv4 address space
- Unicast addressing
Break down the IPv4 Class B address space in terms of first octet range, portion of total address space, and intended purpose (unicast, multicast, etc) of addressing.
- First octet 128-191
- 1/4 total IPv4 address space
- Unicast addressing
Break down the IPv4 Class C address space in terms of first octet range, portion of total address space, and intended purpose (unicast, multicast, etc) of addressing.
- First octet 192-223
- 1/8 total IPv4 address space
- Unicast addressing
Break down the IPv4 Class D address space in terms of first octet range, portion of total address space, and intended purpose (unicast, multicast, etc) of addressing.
- First octet 224-239
- 1/16 total IPv4 address space
- Multicast addressing
Break down the IPv4 Class E address space in terms of first octet range, portion of total address space, and intended purpose (unicast, multicast, etc) of addressing.
- First octet 240-255
- 1/16 total IPv4 address space
- Reserved/experimental addressing
Describe the size of the Class A network space in terms of number of networks available and number of hosts per network.
126 networks, approx 16 million hosts per network
Describe the size of the Class B network space in terms of number of networks available and number of hosts per network.
approx 16 thousand networks, approx 65 thousand hosts per network
Describe the size of the Class C network space in terms of number of networks available and number of hosts per network.
approx 2 million networks, 254 hosts per network
List all possible network addresses in the Class A address space
First octet defines the group
1.0.0.0-126.0.0.0
List all possible network addresses in the Class B address space
First 2 octets define the group
128.0.0.0 - 191.255.0.0
List all possible network addresses in the Class C address space
First 3 octets define the group
192.0.0.0 - 223.255.255.0
A host needs to send a packet to another host. Explain the 2-step process of host routing.
- Is the destination IP address in my subnet? If so, forward directly to that destination host.
- Is the destination IP address in a different subnet? If so, forward to my default gateway for delivery.
A router is forwarding packets between two hosts. Describe the 4-step process of the router’s forwarding logic.
- Does the incoming frame have errors in the FCS? If so, drop the frame.
- De-encapsulate the packet.
- Compare the packet destination IP address with the routing table. Find the route that best matches the destination IP address. This will determine the exit interface and next hop’s IP address.
- Re-encapsulate the packet in a new frame appropriate for the exit interface and forward the frame.
Describe the goals of a routing protocol
- Dynamically learn and fill the routing table with a route for each subnet.
- Place the best route in the routing table.
- Notice when routes become invalid and remove them from the routing table.
- Work quickly when learning new routes or replacing lost ones (convergence)
- Prevent routing loops
Describe the ARP process
- For every outgoing frame, check the ARP cache for the correct destination IP & MAC.
- If not found, broadcast an ARP request containing the sender MAC, sender IP, and target IP (“Who has 192.168.1.4?”)
- Target receives broadcast and responds with a unicast ARP reply containing the target IP, target MAC, and sender IP and MAC)
- On receiving the ARP reply, original sender adds target MAC and IP to arp cache.