IP Addresses Flashcards
What is an IP address?
Internet protocol address. Unique number used to address/identify a host computer or node which communicates over IP on the internet.
Currently IPv4 and IPv6.
How big is an IPv4 in bits?
32 bits/4 bytes.
How many possible addresses in IPv4?
Around 4 billion.
What are the reserved addresses?
- x.y.z is reserved for loopback, in which a host’s IP software treats an outgoing packet as incoming
- x.y.z, 172.16.0.1 to 172.31.255.255 and 192.168.y.z are private, non-routable addresses used for LANs or private WANs only.
x. x.x.0 - reserved as network identifier.
x.x.x.255 - reserved as a broadcast address on a subnet.
The last address in a network (e.g. x.y.z.255) is reserved as the broadcast address on that network for sending data simultaneously to all hosts on that network.
x.x.x.1: Typically used as default address of a router.
What are the two parts of an IPv4 address?
Network identifier (or network ID) – Left-hand bits of the 32-bit number, used to define the network where nodes are communicating.
Host identifier (or host ID) – Right-hand bits of the 32-bit number, used to identify separate nodes on the network.
Difference between routable and non-routable IPs?
Routable - public.
These IPs are assigned to devices connected directly to the public or global internet and are unique.
Non-routable are private.
Assigned internally to devices on a private network.
Why was IPv6 introduced?
IPv4 has 4 billion combinations - which was enough when introduced.
But now we need more. We hit 8.7 billion devices on the internet in 2012, but use tricks/workarounds to not have to completely switch over to IPv6.
2018 we’re up to 34.8 billion devices.
How many bits in IPv6?
128 bits/16 bites.
How many combinations does IPv6 have?
340 trillion, trillion, trillion combinations.
What is DHCP system?
Dynamic host configuration protocol.
A DHCP server is a device which is responsible for automatically assigning a dynamic IP address from a pool of available addresses to a computer which needs to operate on a public network or on a private network.
Benefits of DHCP?
Helps with the issue around the shortage of IPv4 addresses. Active computers request addresses and release them again back to the pool.
How does DHCP work?
For example with a phone,
Phone sends out a DHCP discovery message, effectively saying it needs an IP address.
All-in-one Router/Modem/WAP running DHCP sends an offer message with an IP available and a lease time - how long it’s available for.
Phone sends DHCP request message requesting the IP.
Router sends DHCP ACK message and assigns IP to phone.
Uses broadcast IP when waiting for IP.
When did IPv4 and IPv6 come into use?
1984 and 1996.
Examples of private IPs?
- 0.0.1 - 10.255.255.255
- 16.0.1 - 172.31.255.255
- 168.0.1 - 192.168.255.255
These addresses are non-routable across the internet and are reserved for use within LANs or private WANs.
How did we fix the issue of private IPs being able to communicate with each other?
Network Address Translation (NAT)
Downside to class based networks?
Because the range is private, they can subdivide this vast space to suit their network design.
All devices have access to other devices in the network because they are all part of the same network. Another mobile phone provider can use the same range of addresses and this can be endlessly replicated across other large organisations.
However, any device in one organisation could not directly communicate with a device on another organisation’s network. This initially was not considered a real issue because much of the traffic between devices was within an organisation’s network.
Those devices which needed to communicate outside an organisation, such as web servers and mail servers, were still allocated addresses from the public (routable) address range.
However, it soon became apparent that while much of the traffic was intra-organisational, increasingly users needed to access resources that were on the public internet, thanks to mobile phones!
What class do mobile phone providers tend to use?
Your mobile phone provider (which has a huge network) most likely allocates addresses from the old Class A range.