Subnets and Debugging (w9-10) Flashcards
How would you map IP address to MAC address
broadcast packets to find a host
How are 0’s omitted in IPv6 addresses?
:: means all 0’s ::: not applicable
:1: means 0’s preceed the 1
when the destination is not in the local network, where is the message forwarded to?
the router, and a sequence of routers define a route from src to dest
the network ID portion of an IPv4 address can go up to how many bits? whats the rest of the bits used for?
up to 31 bits, rest of bits is used for Host ID
192.168.2.0/24 what does the 24 mean?
the first 24 bits correspond to the network address
how would we check if two ip addresses were on the same network?
the only way is to convert both addresses to binary, then compare the network ID’s. if they are the same, then they are on the same network
what are the two ways to write out the subnet masks?
/16 means first 16 bits are mask,
255.255.0.0 means first 16 bits are mask
1111 1111 1111 1111 0000 0000 0000 0000 is same as above
what is special about all ones host id, and all zero’s host id?
all ones host id is the broadcast address, all zero’s is the network identifier, used in routing tables. neither host id address is allocated to nodes on the network
if a host recieves a packet which has their address as a destination, what does the host do? what if the packet marks the hosts address as the source?
receives the packet if destination matches, forwards it if packet source matches hosts address
what is the routers policy on forwarding packets, in terms of the packets source address?
routers always forward packets, irrespective of the source address
What does a routing table consist of? do only routers have routing tables?
all end hosts and routers have routing tables. routing table has list of network id’s, gateways to relay frames to, and which network interface to use
when is a defualt route used?
when no specific address of a next hop host is available in the routing table. default route is one step closer to the internet
what is a loopback address used for, and example and what is the range of this loopback?
used for troubleshooting, in range 127.0.0.0/8
in larger network, does the upstream router know complex details about the downstream routers?
no
in a routing table given the following pre-fixes, order them accordingly. what does this mean for /0? /16 /0 /24 /23
/24 /23 /16 /0 /0 is the last entry tried, as more specific entries are chosen first