TCP Protocol: Connection, Segments, and Reliability in Networking

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/20

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

21 Terms

1
New cards

What type of service is TCP?

TCP is a connection-oriented service.

2
New cards

What is the purpose of the three-way handshake in TCP?

It allows hosts to exchange preliminary information before sending data.

3
New cards

What does it mean that TCP is a full-duplex service?

Both hosts can act as sender and receiver simultaneously.

4
New cards

What is the nature of TCP connections?

TCP connections are point-to-point, meaning a segment cannot be sent to multiple receivers at once.

5
New cards

What is a send buffer in a TCP connection?

It is where each application process maintains data while waiting to be sent to the other application process.

6
New cards

How is the maximum segment size (MSS) determined in TCP?

MSS is usually chosen based on the link layer maximum transmission unit (MTU), typically 1460 bytes for Ethernet.

7
New cards

What are the key components of a TCP segment structure?

Source and destination port numbers, sequence and acknowledgment numbers, options field, header length, receive window, urgent data pointer, and flag field.

8
New cards

What do sequence numbers in TCP refer to?

Sequence numbers refer to bytes, not segments, indicating the order of data transmission.

9
New cards

What is the purpose of acknowledgment numbers in TCP?

They indicate the sequence number of the next byte expected to be received from the other host.

10
New cards

What happens when TCP receives out-of-order segments?

TCP can either discard them or buffer them until the missing segments arrive; most implementations choose to buffer.

11
New cards

How are starting sequence numbers generated in TCP?

Each host's starting sequence number is randomly generated at the beginning of a TCP connection to prevent reuse issues.

12
New cards

What is the role of timeouts in TCP?

Timeouts need to be at least as long as the expected round-trip time (RTT) between the two hosts.

13
New cards

What is cumulative acknowledgment in TCP?

It means TCP only acknowledges bytes up to the first missing byte.

14
New cards

What is the significance of the urgent data pointer in TCP?

It indicates the presence of urgent data that should be sent immediately, although it is rarely used in practice.

15
New cards

What is the TCP segment header length defined by?

The header length is defined in 32-bit words, accounting for the variable length due to the options field.

16
New cards

What is the typical size of a TCP header?

The TCP header is typically 20 bytes without options.

17
New cards

What does the flag field in a TCP segment indicate?

It indicates control flags such as acknowledgment (ACK), reset (RST), synchronize (SYN), and finish (FIN) for connection management.

18
New cards

How does TCP handle the transmission of application data?

TCP views application data as an unstructured, ordered stream of bytes.

19
New cards

What is the maximum transmission unit (MTU) for Ethernet?

The MTU for Ethernet is typically 1500 bytes.

20
New cards

What is the purpose of the options field in a TCP segment?

The options field is optional and can vary in length, allowing for additional features in the TCP segment.

21
New cards

How does TCP ensure reliable data transfer?

By using sequence and acknowledgment numbers to track the delivery of data segments.