Chapter 5 Flash Cards - IP Addressing
What are the two rules that summarize the facts about which IP addresses need to be in the same grouping?
- All IP addresses in the same group must not be separated by a router.
- IP addresses separated by a router must be in different groups
Explain the following about a Class A Network:
- Number of Network Bytes (Bits)
- Number of Host Bytes (Bits)
- Number of Addresses per Network
Network Bytes (Bits): 1 (8) Host Bytes (Bits): 3 (24) Number of Addresses: 2^24 - 2 (Reserved)
Explain the following about a Class B Network:
- Number of Network Bytes (Bits)
- Number of Host Bytes (Bits)
- Number of Addresses per Network
Network Bytes (Bits): 2 (16) Host Bytes (Bits): 2 (16) Number of Addresses: 2^16 - 2 (Reserved)
Explain the following about a Class C Network:
- Number of Network Bytes (Bits)
- Number of Host Bytes (Bits)
- Number of Addresses per Network
Network Bytes (Bits): 3 (24) Host Bytes (Bits): 1 (8) Number of Addresses: 2^8 - 2 (Reserved)
Describe the two reserved addresses in each network.
Network number represented by all binary 0s in the host section of the IP Address.
Broadcast address represented by all binary 1s in the host section of the IP Address.
Provide the following information for a Class A Network:
- First Octet Range
- Valid Network Numbers
- Total Number for This Class of Network
- Number of Hosts Per Network
- First Octet Range - 1 to 126
- Valid Network Numbers - 1.0.0.0 to 126.0.0.0
- Total Number for This Class of Network - 2^7 -2 (126)
- Number of Hosts Per Network - 2^24 -2 (16,777,214)
Provide the following information for a Class B Network:
- First Octet Range
- Valid Network Numbers
- Total Number for This Class of Network
- Number of Hosts Per Network
- First Octet Range - 128 to 191
- Valid Network Numbers - 128.0.0.0 to 191.255.0.0
- Total Number for This Class of Network - 2^14 (16,384)
- Number of Hosts Per Network - 2^16 -2 (65,534)
Provide the following information for a Class C Network:
- First Octet Range
- Valid Network Numbers
- Total Number for This Class of Network
- Number of Hosts Per Network
- First Octet Range - 192 to 223
- Valid Network Numbers - 192.0.0.0 to 223.255.255.0
- Total Number for This Class of Network - 2^21 (2,097,152)
- Number of Hosts Per Network - 2^8 -2 (254)
Describe Address Formats when Subnetting (Classful)
N + S + H = 32 (bits)
Class A : N (8) + S + H
Class B : N (16) + S + H
Class C : N (24) + S + H
Describe Address Formats when Subnetting (Classless)
Subnet or Prefix (32) - X (host)
Explain the two step simple routing logic used by hosts.
- If the destination IP address is in the same subnet as I am, send the packet directly to that destination host.
- If the destination IP address is not in the same subnet as I am, send the packet to my default gateway (a router’s Ethernet interface on the subnet).
Explain the four step logic used by a router when receiving a data-link frame.
- Use the data-link FCS field to ensure that the frame had no errors; if errors occured, discard the frame.
- Assuming the frame was not discarded at step 1, discard the old data-link header and trailer, leaving the IP packet.
- Compare the IP packet’s destination IP address to the routing table, and find the route that matches the destination address. This route identifies the outgoing interface of the router, and possibly the next-hop router.
- Encapsulate the IP packet inside a new data-link header and trailer, appropriate for the outgoing interface, and forward the frame.
Describe the goals for any IP routing protocol.
- To dynamically learn and fill the routing table with a route to all sub nets in the network.
- If more than one route to a sub net is available, to place the best route in the routing table.
- To notice when routes in the table are no longer valid, and to remove them from the routing table.
- If a route is removed from the routing table and another route through another neighboring router is available, to add the route to the routing table. (Many people view this goal and the preceding goal as a single goal.)
- To add new routes, or to replace lost routes, with the best currently available route as quickly as possible. The time between losing a route and finding a working replacement route is called convergence time.
- To prevent routing loops.
Explain the steps a router uses to advertise routes on a network.
- Each router adds a route to its routing table for each sub net directly connected to the router.
- Each router’s routing protocol tells its neighbors about all the routes in its routing table, including the directly connected routes and routes learned from other routers.
- After learning a new route from a neighbor, the router’s routing protocol adds a route to its routing table, with the next-hop router typically being the neighbor from which the route was learned.
List four tools used almost every day to help the network layer with its task of routing packets from end to end through an internetwork.
- Address Resolution Protocol (ARP)
- Domain Name System (DNS)
- Dynamic Host Configuration Protocol (DHCP)
- Ping