TCP & UDP | Day 30

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

1/44

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 3:47 PM on 3/28/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

45 Terms

1
New cards

What port and protocol are used for FTP Data?

TCP Port 20

2
New cards

What port and protocol are used for FTP Control?

TCP Port 21

3
New cards

What port and protocol are used for SSH?

TCP Port 22

4
New cards

What port and protocol are used for Telnet?

TCP Port 23

5
New cards

What port and protocol are used for SMTP?

TCP Port 25

6
New cards

What port and protocols are used for DNS?

TCP/UDP Port 53

7
New cards

What port and protocol are used for a DHCP Server?

UDP Port 67

8
New cards

What port and protocol are used for a DHCP Client?

UDP Port 68

9
New cards

What port and protocol are used for TFTP?

UDP Port 69

10
New cards

What port and protocol are used for HTTP?

TCP Port 80

11
New cards

What port and protocol are used for POP3?

TCP Port 110

12
New cards

What port and protocol are used for an SNMP Agent?

UDP Port 161

13
New cards

What port and protocol are used for an SNMP Manager?

UDP Port 162

14
New cards

What port and protocol are used for HTTPS?

TCP Port 443

15
New cards

What port and protocol are used for Syslog?

UDP Port 514

16
New cards

What does TCP stand for?

Transmission Control Protocol

17
New cards

What does UDP stand for?

User Datagram Protocol

18
New cards

What are Layer 4 addresses called?

Port numbers

19
New cards

Which protocol provides reliable data transfer, error recovery, data sequencing, and flow control?

TCP

20
New cards

Which protocol is connectionless, has less overhead, and is preferred for real-time voice and video?

UDP

21
New cards

What does the Layer 4 destination port number indicate?

The Application Layer protocol

22
New cards

Is the Layer 4 source or destination port randomly selected by the initiating host?

The Source port

23
New cards

What is the IANA range for well-known ports?

0 - 1023

24
New cards

What is the IANA range for registered ports?

1024 - 49151

25
New cards

What is the IANA range for ephemeral (dynamic) ports?

49152 - 65535

26
New cards

Which TCP header field is used for flow control?

Window Size

27
New cards

What is the order of messages in a TCP 3-way handshake (establishing a connection)?

SYN ->,

28
New cards

What is the order of messages in a TCP 4-way handshake (terminating a connection)?

FIN ->,

29
New cards

In TCP, what mechanism indicates the sequence number of the next segment the host expects to receive?

Forward Acknowledgement

30
New cards

In TCP, what mechanism is used to dynamically adjust how large the window size is?

Sliding Window

31
New cards
What is the primary function of OSI Layer 4 (Transport Layer)?
To provide process-to-process (or host-to-host) communication using port numbers.
32
New cards
How does Layer 4 achieve Session Multiplexing?
By using different random Source Port numbers to keep separate sessions (like multiple browser tabs) isolated, even if they connect to the same Destination IP and Port.
33
New cards
What are the three IANA port ranges and their values?
Well-known (0 - 1023), Registered (1024 - 49151), and Ephemeral/Dynamic (49152 - 65535).
34
New cards
Which port range does a client PC typically use to randomly select its Source Port?
Ephemeral / Dynamic Ports (49152 - 65535).
35
New cards
Is TCP connection-oriented or connectionless?
Connection-oriented (it requires a 3-way handshake before sending any actual data).
36
New cards
What are the three steps of the TCP 3-Way Handshake to establish a connection?
1. SYN (Client to Server) | 2. SYN-ACK (Server to Client) | 3. ACK (Client to Server).
37
New cards
What are the four steps of the TCP 4-Way Handshake to terminate a connection?
FIN -> ACK -> FIN -> ACK.
38
New cards
In TCP, what does "Forward Acknowledgment" mean?
The Acknowledgment (ACK) number sent back always indicates the sequence number of the NEXT segment the receiver expects to get.
39
New cards
Which TCP header field is used for Flow Control?
Window Size (it dynamically adjusts how much data can be sent before requiring an acknowledgment).
40
New cards
If a TCP segment is lost in transit and the sender never receives an ACK, what happens?
TCP Retransmission (the sender's timer expires, and it sends the segment again).
41
New cards
Is UDP connection-oriented or connectionless?
Connectionless (it sends data immediately without a handshake, acting as "best-effort" delivery).
42
New cards
Between TCP and UDP, which one provides sequencing and error recovery (retransmissions)?
TCP. (UDP provides neither).
43
New cards
What are common real-world use cases for UDP?
VoIP (voice calls), Live Video Streaming, and Online Gaming (where speed is prioritized over perfect reliability).
44
New cards
What are common real-world use cases for TCP?
Web browsing (HTTP/HTTPS), Emails (SMTP), and File Downloads (FTP) where data integrity is required.
45
New cards
Which protocol (TCP or UDP) does DNS use?
Both! Mostly UDP for fast client queries, but TCP for large data transfers like Zone Transfers.