Transport layer Flashcards

1
Q

What’s the biggest difference between network layer and transport layer? (3rd and 4th layers in OSI model)

A

Transport layer provides point to point connectivity while the network layer is only responsible for forwarding the data from one device to the next

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

Name transport layer protocols.

A

TCP (Transmission Control Protocol) and UDP (User Datagram Protocol)

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

What are the steps in a TCP three-way handshake?

A

Device A wants to establish a connection. It sends a SYN (Synchronize sequence number) to device B, which replies with SYN+ACK (Acknowledgment). then Device A sends ACK to B.

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

If data is in frames on data link layer, packets on network layer, what are they called on transport layer?

A

segments

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

What is a combination of IP address+port number sometimes called?

A

a socket

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

What’s the difference between system ports and user ports?

A

starting a service in system ports (0-1023) require admin priviledges, while in user ports (1024-49151) it doesn’t

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

What are ports for HTTP, HTTPS and SSH

A

80, 443, 22 respectively

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

Name the important parts of a TCP header:

A

source port, destination port, sequence number, acknowledgement number, window size, checksum

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

What is UDP used for?

A

Applications that can withstand some packet loss but require low latency, such as video and sound streaming.

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

Why is TCP used over UDP in many cases?

A

TCP is reliable data transfer (but bit slower)

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

Is DNS TCP or UDP?

A

UDP

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

How can a web server identify different established sessions?

A

By IP+port number (There can be many sessions from same IP)

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