Naming & Addressing IP Protocol Flashcards
What is name resolution?
The process of determining an address from a name
Why do we need both names and addresses?
Because names are human understandable but they waste space in packet headers and are hard to parse. Addresses are machine understandable and once fixed size is easy to carry in headers and parse. Indirection in the fact that multiple names may point to the same address which means you can move a machine and just update the resolution table. You do not have to change the hostname that people use.
What is the Domain Name System?
The phone book for the internet, it translates human readable hostnames into IP addresses.
What are characteristics of addressing?
Addresses need to be globally unique
And addresses and domain names are hierarchical
What is the command line tool to query DNS?
nslookup
Do telephone networks have names and addresses?
Telephone networks only have addresses
What does the ITU(International Telecommunication Union) do?
It assigns each country a unique country code
Why is it okay for telephone numbers to have variable length?
It is ok since they are only used in call establishment
Does an IP address refer to a host and if not why?
No an IP address does not refer to a host, it refers to the network interface. If a host has two network interface cards (NICs) it will have two IP addresses.
Does every host interface have its own IP address?
Yes
How many bytes are needed to address in internet? And what is the breakdown of these?
4 bytes in a 2 part hierarchy. This contains a network number and a host number with boundaries identified with a subnet mask which can aggregate addresses within subnets
What is the IP (internet protocol)?
This is a protocol used for communication data across a packet switched network.
What does the IP do?
It delivers a packet from the source to the destination solely based on its address.
What are features of IP?
Addressing
Routing
Connectionless service
Packetization
Best effort delivery (e.g. post office)
Used in a packet switched network
What is packetization?
This is the process of encapsulating data from an upper layer protocol into one or more packets.
What does IP not provide?
End to end data reliability & flow control (this is done by TCP or application layer protocols)
Sequencing of packets (like TCP)
Connection setup (it is connectionless)
Error reporting (ICMP Internet Control Message Protocol)
Can IP be used by itself if reliability is important?
No it must be paired with a reliable protocol such as TCP since it is in fact a best effort delivery service.
What is a real life example of a best effort delivery service?
The post office does its best to deliver mail however it doesn’t always succeed. If an unregistered letter is lost, it is up to the sender or would be recipient to discover the loss and fix the problem. The post office does not keep track of every letter and cannot notify a sender of loss or damage.
What does IP being a connectionless protocol for a packet switched network mean?
This means that each packet is handled independently and each packet can follow a different route to the destination. Packets sent by the same source to the same destination could arrive out of order. Some packets can be lost or corrupted during transmission.