IP addresses Flashcards

1
Q

Class A, B,C from classful addressing

A

A- 3 bytes network 1 byte host
B-2 bytes network, 2bytes host
C- 1 byte network, 3 bytes host

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

What are routable and non-routable ip addresses

A

A public ip address is a globally unique ip address which allows you to be identified on the internet.
A private ip address is used in LANs to identify individual computers

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

Difference between routable and non-routable

A

Routable ip addresses are globally unique whereas non-routable ip addresses can be the same for millions of devices globally.

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

Why do we have routable and non-routable ip addresses

A

If everyone has a public ip address then there wouldn’t be enough ip addresses to go around. Thats why most homes and small businesses only have 1 or a few public ip addresses

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

Why do we need DHCP?

A

There are a limited number of ip addresses in a private network. If the network assigns on device an ip address, only for that network to leave and never join back, that ip address is wasted. DHCP solves this problem

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

What does DHCP do

A

DHCP stores a pool of available private ip addresses and assigns computers that join a network an ip address for the duration of their time on the network. Once the device leaves the network, the ip address is returned to the pool of available addresses.

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

Why do we need NAT?

A

A device on the internet cannot communicate directly with a device on a private network because the ip address of that device is non-routable, and hence not globally unique.

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

What does NAT do?

A

During NAT, the packets sent by the device on the private network are sent to the router. The router makes a record of the packet, then switches the non-routable source ip address for the routable router’s address. The response will be received by the router, and it will use the record it made earlier to send the response to the right device.

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