Transport Layer Flashcards

1
Q

What is the main function of the transport layer

A

Provides end-to-end communication between applications on different hosts.

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

What are the two main transport layer protocols

A
  • TCP (Transmission Control Protocol)
  • UDP (User Datagram Protocol).
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the characteristics of TCP

A
  • Connection-oriented (requires a handshake).
  • Reliable – ensures ordered, complete data delivery.
  • Error-checking with acknowledgments (ACKs).
  • Slower due to overhead.
  • Examples: HTTP, FTP, SMTP, Telnet.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the characteristics of TCP

A
  • Connectionless (no handshake).
  • Unreliable – best-effort delivery, no acknowledgments.
  • Low overhead, faster than TCP.
  • Examples: Video streaming, VoIP, Online gaming, DHCP.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are the 4 hour functions of the transport layer

A
  • Segmentation & Multiplexing – Breaks large data into smaller segments.
  • Encapsulation & Identifying Applications - Adds transport layer headers.
  • Reassembly – Puts data back together at the destination.
  • Error Detection – Checks for corrupted data.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are the additional features of TCP

A
  • Connection establishment (3-way handshake).
  • Flow control (dynamic window sizes).
  • Error correction & retransmission.
  • Connection termination (4-way handshake).
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How does TCP establish a connection

A

Using a 3-way handshake:

  1. SYN – Client sends a synchronization request.
  2. SYN-ACK – Server acknowledges & sends SYN.
  3. ACK – Client acknowledges, connection established.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How does TCP terminate a connection

A

Using a 4-way handshake:

  1. FIN – Initiating host sends termination request.
  2. ACK – Other host acknowledges FIN.
  3. FIN – Other host sends its termination request.
  4. ACK – First host acknowledges, connection closed.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the function of port numbers

A

They uniquely identify specific applications running on a host.

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

What are the three types of ports?

A

Well-Known Ports (0-1023) – Standard services (e.g., HTTP=80, HTTPS=443).

Registered Ports (1024-49151) – Assigned to applications (e.g., MySQL=3306).

Dynamic Ports (49152-65535) – Used temporarily for client-side connections.

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

How does TCP ensure ordered delivery

A
  • Uses sequence numbers to track packets.
  • If packets arrive out of order, TCP reassembles them.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

How does TCP handle delivery

A
  • Sends packets independently.
  • No reordering or retransmission if packets are lost.
  • Faster but less reliable.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What happens if an acknowledgement (ACK is lost)

A
  • TCP retransmits the missing data after a timeout.
  • Ensures reliable data delivery.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is window size in TCP

A

The amount of data a sender can transmit before needing an acknowledgment.

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

What is flow control

A

TCP adjusts the rate of data transmission to prevent overwhelming the receiver.

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