TCP and UDP

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

1/89

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 12:15 AM on 4/20/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

90 Terms

1
New cards

Who is responsible for DNS root zones, IP addressing, and protocol numbers?

Internet Assigned Numbers Authority (IANA)

2
New cards

What does IANA stand for?

Internet Assigned Numbers Authority

3
New cards

What does IANA coordinate globally?

IP addressing (IPv4 and IPv6) and Autonomous System Numbers

4
New cards

What organization does IANA coordinate with for protocol codes?

Internet Engineering Task Force (IETF)

5
New cards
6
New cards

What layers are defined by IEEE?

Physical and Data Link layers

7
New cards

What layer is IP in?

Network layer

8
New cards

What protocols operate at the transport layer?

TCP and UDP

9
New cards

What layer has many protocol options?

Application layer

10
New cards
11
New cards

What is UDP?

User Datagram Protocol, a connectionless and unreliable transport protocol

12
New cards

What is TCP?

Transmission Control Protocol, a connection-oriented and reliable transport protocol

13
New cards

What type of communication does UDP use?

Connectionless

14
New cards

What type of communication does TCP use?

Connection-oriented

15
New cards

What ensures reliability in TCP?

ACK (acknowledgment) protocol and sequencing

16
New cards

What is used to establish a TCP connection?

Three-way handshake

17
New cards

How is a TCP connection terminated?

Multi-step handshake (teardown)

18
New cards
19
New cards

What is the client/server model?

A client requests services and a server provides them

20
New cards

Can clients run multiple tasks at once?

Yes, clients can run multiple tasks concurrently

21
New cards

What is a multi-task server?

A server that provides multiple services using separate processes

22
New cards
23
New cards

What do routers use to forward packets?

Subnet (IP) address

24
New cards

What address is used to deliver frames to devices?

MAC address

25
New cards

What does the IP layer do?

Selects packets based on full IP address

26
New cards

What does the transport layer do?

Forwards data to tasks using port numbers

27
New cards
28
New cards

What is a port number?

An identifier for a specific task or service on a device

29
New cards

What does a server do with a port?

Listens on a designated port for incoming data

30
New cards

What type of ports do clients use?

Dynamic (ephemeral) ports

31
New cards

What is the size of a port number field?

16 bits

32
New cards

How many possible port numbers exist?

65,536

33
New cards
34
New cards

What are well-known ports?

Ports 0–1023 assigned by IANA

35
New cards

What are registered ports?

Ports 1024–49151 assigned by IANA

36
New cards

What are dynamic ports?

Ports 49152–65535 used by clients

37
New cards
38
New cards

What addressing levels are used in UDP?

Device-level (IP and MAC) and task-level (port number)

39
New cards

What does the UDP checksum do?

Detects data corruption

40
New cards
41
New cards

What are the fields in a UDP datagram?

Source port, destination port, length, checksum, data

42
New cards

What is the payload in UDP?

Data

43
New cards
44
New cards

What protocol does DHCP use?

UDP

45
New cards

What port does a DHCP client use?

Port 68

46
New cards

What port does a DHCP server use?

Port 67

47
New cards

What does a DHCP server provide?

IP address and network configuration

48
New cards
49
New cards

What are some applications that use UDP?

NTP, TFTP, SNMP, RTSP, RIP

50
New cards

What port does NTP use?

123

51
New cards

What port does TFTP use?

69

52
New cards

What ports does SNMP use?

161 and 162

53
New cards

What port does RTSP use?

554

54
New cards

What port does RIP use?

520

55
New cards
56
New cards

Why is UDP used?

For speed, low overhead, and time-sensitive applications

57
New cards
58
New cards

How are TCP ports used?

Same as UDP for identifying sender and receiver tasks

59
New cards

What must each client application use?

A unique dynamic port

60
New cards

What happens if multiple apps run on one device?

Each uses a different port number

61
New cards
62
New cards

What is a socket address?

A combination of IP address and port number

63
New cards

How is a TCP connection identified?

By two socket addresses (one for each endpoint)

64
New cards
65
New cards

What does the TCP sequence number represent?

The first byte of data in a segment

66
New cards

What is the purpose of sequence numbers?

Ordering and tracking data for reliability

67
New cards

What is the ACK number?

The next expected byte number

68
New cards
69
New cards

What are TCP control flags?

Bits that control connection behavior (SYN, ACK, FIN, etc.)

70
New cards

What does SYN do?

Synchronizes sequence numbers to start a connection

71
New cards

What does ACK do?

Indicates acknowledgment is valid

72
New cards

What does FIN do?

Terminates a connection

73
New cards

What does RST do?

Resets a connection

74
New cards
75
New cards

What is window size in TCP?

The amount of data the receiver can accept

76
New cards

What is the purpose of flow control?

Prevents overwhelming the receiver

77
New cards

What is MSS?

Maximum Segment Size

78
New cards

What does the TCP checksum do?

Error detection

79
New cards
80
New cards

What is the TCP three-way handshake?

A process to establish a connection between client and server

81
New cards

What happens in step 1 of the handshake?

Client sends SYN with sequence number

82
New cards

What happens in step 2 of the handshake?

Server responds with SYN + ACK

83
New cards

What happens in step 3 of the handshake?

Client sends ACK

84
New cards
85
New cards

How does TCP maintain a connection?

Using sequence numbers and acknowledgments

86
New cards

What are piggybacked ACKs?

ACKs included with data segments

87
New cards

What are standalone ACKs?

ACKs sent without data

88
New cards
89
New cards

How is a TCP connection terminated?

Using FIN and ACK segments in multiple steps

90
New cards

What does FIN indicate?

End of data transmission