TCP & UDP

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

1/34

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.

35 Terms

1
New cards

What are the three Transport Layer protocols in TCP/IP?

TCP, UDP, and SCTP.

2
New cards

Which protocol is connection-oriented and reliable?

TCP (Transmission Control Protocol).

3
New cards

Which protocol is connectionless and unreliable?

UDP (User Datagram Protocol).

4
New cards

What is SCTP and its purpose?

Stream Control Transmission Protocol — designed for reliable transmission over a connectionless network.

5
New cards

What does TCP provide between hosts?

A reliable host-to-host connection.

6
New cards

What are the main TCP controls?

Initiation, prioritization, flow control, congestion avoidance, and termination.

7
New cards

What does the TCP header define?

The structure of control fields for managing connections and data reliability.

8
New cards

Which organization assigns TCP port numbers?

IANA (Internet Assigned Numbers Authority).

9
New cards

What are “well-known” ports used for?

Standard services like HTTP (80), HTTPS (443), and FTP (21).

10
New cards

What does the Sequence Number field represent?

The identifier of the segment being transmistted.

11
New cards

What does the Acknowledgement Number field represent?

The next sequence number expected from the other device.

12
New cards

What does the Data Offset field indicate?

Where the data begins in the segment (measured in 32-bit words).

13
New cards

What are the six main TCP control flags?

URG, ACK, PSH, RST, SYN, FIN.

14
New cards

What does the URG flag indicate?

The Urgent Pointer field is valid (priority data transfer).

15
New cards

What does the ACK flag indicate?

The Acknowledgement Number field is valid.

16
New cards

What does PSH do?

Pushes data immediately to the receiving application.

17
New cards

What does RST do?

Resets the TCP connection.

18
New cards

What does SYN do?

Synchronizes sequence numbers to start a connection.

19
New cards

What does FIN do?

Indicates the end of data transmission.W

20
New cards

What does the Window field show?

The number of bytes the device can accept.

21
New cards

What does the Checksum field ensure?

Data integrity (16-bit one’s complement sum).

22
New cards

What is the process used to establish a TCP connection?

The three-way handshake.

23
New cards

Describe the three steps of the TCP handshake.

SYN — Client sends a synchronize request.
SYN + ACK — Server acknowledges and sends its own SYN.
ACK — Client confirms, and the connection is established.

24
New cards

What sequence is used to close a TCP session?

FIN —> ACK —> FIN —> ACK

25
New cards

What is the TCP termination sequence commonly called?

TCP termination handshake.

26
New cards

Why does TCP use a four-step termination instead of three?

To allow both sides to close independently and ensure all data is transmitted.

27
New cards

What does the TCP state machine describe?

The transitions between states during connection setup, data transfer, and termination.

28
New cards

What command shows active TCP and UDP connections on a system?

netstat -a

29
New cards

How does UDP differ from TCP?

UDP is connectionless and provides no reliability, flow control, or acknowledement.

30
New cards

What is the benefit of UDP’s simplicity?

Lower overhead and faster transmission.

31
New cards

What is a typical use case for UDP?

Streaming media, DNS queries, VoIP.

32
New cards

How many fields are in the UDP header?

Four (Source Port, Destination Port, Length, Checksum).

33
New cards

What does the Length field represent?

The entire length of the UDP segment (header + data).

34
New cards

What does the Checksum field represent?

A 16-bit one’s complement sum over the entire segment.

35
New cards

Based on the UDP checksum design, what can UDP not guarantee?

Reliable delivery or retransmission of lost/corrupt packets.

Explore top flashcards