Topic 9.4 TCP/IP Flashcards

1
Q

Describe the role of the Application Layer

A

Selects the correct protocol to transmit the data.
Interacts with user using application software like a web browser

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

Describe the role of the Transport Layer

A

Establishes end to end connection between the sender and recipient

Splits the transmission into packets

Each packet will have a sequence number which identifies the position of the packet in relation to the others.

The port number is also contained in these packets which identifies the protocol being used.

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

Describe the role of the Network Layer

A

Provides correct IP addresses for each packets source and destination

Routers work within the network layer, using the IP addresses to send to its destination

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

Describe the role of the Link Layer

A

Controls the physical connections between hardware in a network.

Receives MAC Addresses from network layer and adds them to the packets.

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

What is the role of MAC Addresses

A

They are assigned to every device that can connect to a network or internet and are unique.

They identify the hardware to which a packet should be sent.

They change everytime packets hop from one router to another.

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

What is the role of Sockets in the TCP/IP stack

A

A socket address is where the IP address is combined with the port number. E.G. :
114.26.20.199:443

This identifies which of the applications on the recipient device the packets should be sent to

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

What is a well-known port

A

A port number that is assigned to a specific protocol or service like HTTPS or SSH

They are used by servers and are easily recognisable

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

What is a client port used for

A

A temporary port used by the client that specifies which application is going to send and receive data across a network.

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

Differences between well-known ports and client ports

A

Client ports are temporary
Well known ports are fixed

Client ports are randomly assigned

Well known ports are for servers to understand what service is being used
Client ports are for clients to start temporary connections

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

What are the 2 parts of an IP Address

A

A network identifier
A host identifier

Each computer in a network has the same network identifier but a different host identifier

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

What is a subnet

A

When a network divides, these are called subnets
Each subnet has a different network identifier.

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

What and How does a Subnet Mask work

A

A subnet mask determines the network part of an IP address

1) Convert IP Address of device to binary
2) Convert IP Address of subnet mask to binary
3) AND the binary numbers together
4) Convert back to IP Address (denary)
4) The result is the network identifier

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

What are the two standards of IP Address

A

IPv4
IPv6

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

Why was IPv6 introduced

A

IPv4 has 2^32 unique addresses
Number of devidces rapidly increasing so IPv^ introduced
IPv6 uses 8 blocks of 4 hex characters which have 2^128

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

What is a routable (public) IP Address

A

Globally unique as these are public IP addresses.
Each home or business only has a small number of routable (public) IP Addresses.
Global Authorities issue routable IP addresses to ensure they are not repeated

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

What is a non-routable (private) IP address

A

A Private IP Address.
If every device had a routable IP Address, there would not be enough IP addresses.
Only works withing a private network like a school or office.
Cannot be used across the public internet.

17
Q

What is the purpose of the Dynamic Host Configuration Protocol (DHCP)

A

The number of Private IP Addresses in a private network is limited
Assigning each device a private IP Address is not sensible since a device may leave and not join back
SO DHCP prevents these IP addresses being wasted

18
Q

How does Dynamic Host Configuration Protocol work

A

DHCP is used to assign IP addresses to devices as they join a network.
There is a pool of available IP addresses.
DHCP assigns the device an available IP address
DHCP returns the IP address to the pool after device leaves.
Ensures no IP address are wasted

19
Q

How does Network Address Translation (NAT) work

A

1) Private device sends packets to the router
2) Routers makes a record of the packet
3) Router replaces the private IP Address with its own IP address
4) Router forwards response to the corresponding private device using the record it made previously

20
Q

Why is Network Address Translation Used

A

When a device on a private network needs to communicate to a device across the internet, NAT gets around this problem.

21
Q

Why is Port Forwarding used

A

Used when a device needs to communicate with a server that is connected to a private network.

22
Q

How does Port Forwarding work

A

1) The device sends packets to the public IP address of the router that belongs to the server’s private network

2) These packets contain the port number of the application the device wishes to access

3) The private network’s router forwards the packets to the server using NAT