Transport Layer I and II Flashcards

1
Q

What are transport layer services and protocols?

A

They provide logical communication between processes on different hosts, implemented in end systems, not routers.

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

What transport protocols does the internet use?

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 services does the transport layer provide to applications?

A
  • Addressing
  • Multiplexing/demultiplexing
  • Error checking
  • (TCP-specific) connection management
  • Acknowledgments
  • Retransmissions
  • Flow control
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How is a UDP socket identified?

A

By a 2-tuple: destination IP and destination port.

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

How is a TCP socket identified?

A

By a 4-tuple: source IP, source port, destination IP, and destination port.

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

What is the purpose of the TCP handshake?

A

To establish a reliable connection by exchanging segments and parameters.

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

What type of communication does a TCP connection provide?

A

Full-duplex and point-to-point communication.

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

What is the MSS (Maximum Segment Size)?

A

The largest amount of data TCP can send in a single segment, determined by link-layer frame size.

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

How does TCP ensure reliability?

A

By pairing data with headers to form segments, maintaining buffers, and retransmitting lost segments.

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

What happens when TCP data is received?

A

Data is placed in a receive buffer, where applications can access it as a stream.

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

What is connection-oriented transport?

A

A transport method requiring a handshake to establish parameters before data transfer.

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

Where does TCP protocol operate?

A

Only in end systems, not in intermediate routers or switches.

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

What does a TCP connection consist of?

A
  • Buffers
  • Variables
  • Sockets in both communicating hosts.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is the structure of a TCP segment?

A

A chunk of application data paired with a TCP header, encapsulated into IP datagrams.

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

What happens during the TCP three-way handshake?

A
  • Client sends a request segment.
  • Server replies with an acknowledgment segment.
  • Client sends a confirmation segment, possibly with data.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is full-duplex communication?

A

Data can flow in both directions simultaneously between the two hosts.

17
Q

What limits the size of TCP data chunks?

A

Maximum Segment Size (MSS), based on the largest link-layer frame size.

18
Q

How is data transmitted in TCP?

A

Encapsulated as segments in IP datagrams, sent across the network, and reassembled on receipt.