IP Flashcards
How large are IPv4 addresses?
32 bits
What does IP offer no guarantee of?
Packets reaching their destination
Packets arriving in the correct order
Packets arriving undamaged
Why were IPv4 addresses made so small?
No one anticipated a network of more than a billion machines.
Computers at the time worked in 32 bits
What is the format of an IPv4 address?
The left most part identifies the network and the right most part identifies the host.
What is a class A IPv4 address?
If the first bit of the address is a 0, it is a class A address. The next 7 bits identify the network, this gives 127 class A addresses.
What is a class B IPv4 address?
If the first bits of the address is 10, it is a class A address. The next 16 bits identify the network.
Why are so many IPv4 addresses wasted?
Nobody needs a class A size network. Most early internet networks allocated a class way too large for them, and more could be requested.
What is subnetting?
Large class networks can be broken down internally and treated as many smaller networks. Class B networks can be treated as 256 Class C networks.
How large are IPv6 addresses?
128 bits
How many bits are reserved for the local network in IPv6?
64
What is a netmask?
Denoted as /N after an IP address. You logical-AND the IP address with N 1s to get the network address.
What is TTL on an IP packet?
Time To Live
Counter that is decremented every time the packet is processed or when the packet is held onto for more than a second
When it hits zero packet is discarded and an error is generated.
Prevents packets endlessly circulating
How big is a MAC address and what is it made up of?
48 bits. 3 bytes for the manufacturer and 3 bytes for the device.
What sort of systems need statically assigned IP numbers?
Routers and infrastructure devices that need to be up in the very early stages after a power failure
How does Dynamic Host Configuration Protocol work?
Client broadcasts a request for an IP number, including its MAC address or some other identifier (DHCPDISCOVER)
Server(s) reserve an available IP number, and broadcast an offer of it with a lease time (how long IP number is valid for)(DHCPOFFER)
Client chooses from offers, and broadcasts a reply containing chosen IP number (DHCPREQUEST)
Server that offered the IP number finishes reserving it and acknowledges (DHCPACK); other servers see that their offer has been declined and unreserve their offer