TCP and UDP Protocols Flashcards

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/12

flashcard set

Earn XP

Description and Tags

Vocabulary flashcards covering key concepts, header formats, handshake sequences, and teardown states for TCP and UDP transport layer protocols.

13 Terms

1
New cards

TCP (Transmission Control Protocol)

A connection-oriented, point-to-point transport layer protocol that provides a reliable, in-order byte stream with full duplex data flow, flow control, and congestion control.

2
New cards

Maximum Segment Size (MSS)

The maximum amount of application-layer data, specified in bytes, that TCP can transmit in a single segment.

3
New cards

Cumulative ACK

An acknowledgement mechanism in TCP where the receiver acknowledges data by sending the sequence number of the next byte expected from the sender.

4
New cards

TCP Sequence Number

The byte stream number assigned to the first byte of data in a TCP segment's payload.

5
New cards

TCP Receive Window (rwnd)

A 16-bit header field used for flow control that indicates the number of data bytes the receiver is currently willing to accept.

6
New cards

TCP Header Flags

Control bits in the TCP header including C and E (congestion notification), U (URG), A (ACK), P (PSH), R (RST), S (SYN), and F (FIN) used for state management and data handling.

7
New cards
<p>TCP Segment Header Structure</p>

TCP Segment Header Structure

The 20-byte baseline header structure of TCP containing source/destination ports, sequence number, acknowledgement number, header length, flags, receive window size, checksum, urgent pointer, and optional fields.

8
New cards

In-Flight Data

Bytes within the sender sequence number space that have been sent to the receiver but not yet acknowledged (ACKed).

9
New cards

Half-Open Connection

A connection state failure occurring in a 2-way handshake where a retransmitted connection request establishes a state at the server after the client has already terminated.

10
New cards
<p>TCP 3-Way Handshake Sequence</p>

TCP 3-Way Handshake Sequence

The connection establishment protocol exchange consisting of: 1) Client sends SYNbit=1,Seq=xSYNbit=1, Seq=x, 2) Server responds with SYNbit=1,Seq=y,ACKbit=1,ACKnum=x+1SYNbit=1, Seq=y, ACKbit=1, ACKnum=x+1, and 3) Client sends ACKbit=1,ACKnum=y+1ACKbit=1, ACKnum=y+1.

11
New cards
<p>TCP Connection Teardown Diagram</p>

TCP Connection Teardown Diagram

The procedure for terminating a TCP connection where each side independently sends a FIN segment and receives an ACK, progressing through states like FIN_WAIT_1, CLOSE_WAIT, FIN_WAIT_2, LAST_ACK, TIME_WAIT, and CLOSED.

12
New cards

User Datagram Protocol (UDP)

A connectionless, lightweight transport protocol that provides best-effort, unordered, and un-throttled data delivery without handshaking or connection state.

13
New cards
<p>UDP Segment Format Diagram</p>

UDP Segment Format Diagram

A 8-byte fixed transport header consisting of source port #, dest port #, length (in bytes of UDP segment including header), and checksum, followed by the application payload.