4.9.4 TCP/IP Flashcards
What is the difference between routable IP addresses and non routable IP addresses?
Routable IP addresses are globally unique, whereas millions of devices can have the same non routable IP address, provided they are not on the same network.
What are global authorities responsible for?
Global authorities are responsible for assigning routable IP addresses which ensures that the same address is never issued twice.
Why is the number of private IP addresses within a private network limited?
Assigning each device on a network its own private IP address would not be sensible as that device may leave and never join again, resulting in a wasted IP address.
What is the purpose of DHCP?
DHCP is used to assign IP addresses to devices as they join a network.
How does DHCP work?
- DHCP uses a pool of available IP addresses to allocate IP addresses to new devices fro the duration of their session.
- Once a device leaves the network, the IP address that the device was using is returned to the pool for allocation to a new device.
What occurs once a device leaves a network?
The IP address that the device was using is returned to the pool for allocation to a new device.
What occurs if the device on the network sends a packet to the server?
The server could not respond to the computer directly because the computer’s IP address is non-routable, not globally unique.
What is NAT?
Network Address Translation.
How does NAT work?
- When a device on a private network needs to communicate with the internet, it sends packets through the router.
- This makes a record of the packet before replacing the private IP address of the computer with its own routable IP address.
- When the response is received, it is sent to the router’s public IP address which then forwards the response to the correct private IP address by using the record it made when sending the packet
What happens when a response is received via NAT?
• When a response is received, it is sent to the router’s public IP address which then forwards the response to the correct private IP address by using the record it made when sending the packet.
When is port forwarding used?
Port forwarding is used when a client needs to communicate with a server that is connected to a private network.
How does port forwarding work?
- Client sends packets to the public IP address of the router belonging to the server’s private network
- Packets sent by the client contain the port number of the application running on the server that the client wishes to access
- The private network’s router then forwards the packets to the server using NAT
How does a client server model function?
- Clients send request messages to servers, which reply to the clients with response messages.
- Messages may contain requested information, a confirmation that a requested action has been completed or a message explaining why the requested action hasn’t been completed.
What may messages contain?
Requested information, a confirmation that a requested action has been completed or a message explaining why the requested action hasn’t been completed.
Why are there different servers?
Each may specialise in a certain task.
What is an API?
- Name given to a set of protocols relating to how different applications communicate with each other.
- They define how interaction between the applications should be carried out, allowing applications to make use of other applications.