IP Flashcards

1
Q

What is the length of the ip header ?

A

20 bytes , 5 layers , each layer is 4 bytes == 32 bits

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the purpose of icmp ?

A

Informational messages

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the ports required for icmp or work ?

A

No ports or listeners should be configured

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Mention 8 parts of the ip packet

A
  1. Ttl
  2. Fragment offset
  3. Source IP
  4. destination IP
  5. Payload
  6. Options
  7. Protocol
  8. Version
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

If host 1 wants to talk to host 5 , and only have it’s ip how can it get the mac address of 5 ?

A

It will use ARP and send ARP broadcast to all host to get the MAC of host 5

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the flow of request when i have the ip of another host and want to talk to it ?

A
  1. Check if the ip is in my subnet (AND ops between subnet mask and ip )
  2. Check if the mac address is within my ARP table
  3. Send ARP Broadcast
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What if the ip is not within my subnet mask , where the routing will go ?

A

I will go to my gateway (router) and it will handle the routing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How is public ip get bought ?

A

RIR : regional internet registries
RIPE NCC : resaux IP Europe network center coordination

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Why do we need a default GW ?

A

To route requests to hosts outside our subnet

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How to find if two ips are in the same subnet or not ?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly