IP Flashcards
What is the length of the ip header ?
20 bytes , 5 layers , each layer is 4 bytes == 32 bits
What is the purpose of icmp ?
Informational messages
What are the ports required for icmp or work ?
No ports or listeners should be configured
Mention 8 parts of the ip packet
- Ttl
- Fragment offset
- Source IP
- destination IP
- Payload
- Options
- Protocol
- Version
If host 1 wants to talk to host 5 , and only have it’s ip how can it get the mac address of 5 ?
It will use ARP and send ARP broadcast to all host to get the MAC of host 5
What is the flow of request when i have the ip of another host and want to talk to it ?
- Check if the ip is in my subnet (AND ops between subnet mask and ip )
- Check if the mac address is within my ARP table
- Send ARP Broadcast
What if the ip is not within my subnet mask , where the routing will go ?
I will go to my gateway (router) and it will handle the routing
How is public ip get bought ?
RIR : regional internet registries
RIPE NCC : resaux IP Europe network center coordination
Why do we need a default GW ?
To route requests to hosts outside our subnet
How to find if two ips are in the same subnet or not ?
First req : do AND operation between first ip and its subnet mask
Second req : do AND operation between second ip and its subnet mask
Compare the output of both operations , if different then they are in different subnets