Module 14 - TCP and UDP Flashcards

(51 cards)

1
Q

Which protocol is typically used for real-time communication like streaming or IP voice?

A

UDP (User datagram protocol)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Why is UDP preferred in real-time applications?

A

UDP has minimal overhead , it does not retransmit lost packets so there is no delay

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a major reason UDP is not used in financial transactions?

A

It is unreliable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does UDP add to each data segment?

A

Source and destination port numbers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What happens to UDP packets if they are dropped or arrive out of order?

A

Dropped packets are not retransmitted, packets arriving out of order are reordered

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which protocol provides reliable delivery with retransmission and sequencing?

A

TCP (Transmission Control Protocol)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How does TCP ensure data reliability? (2)

A

Adds sequence numbers to packets and uses acknowledgements for received packets.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What role do TCP sequence numbers play?

A

They allow the destination to reassemble the packets in order

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What happens if a TCP packet is not acknowledged?

A

It is retransmitted

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

In TCP, what is the “window size”?

A

Number of packets sent before an acknowledgement.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How does TCP adjust window size in reliable vs unreliable networks?

A

It increases window size in reliable networks and decreases window size in unreliable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Which protocol includes constant communication between source and destination to regulate transmission?

A

TCP

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Give an example of a TCP port used in web browsing.

A

Port 80 HTTP

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What kind of application would likely use UDP instead of TCP?

A

Online gaming, streaming, VoIP

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the key disadvantage of TCP compared to UDP?

A

TCP has high overhead due to reliability features

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

In TCP, what triggers retransmission of lost packets?

A

Lack of acknowledgement of a sequence

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Why is delay from retransmission unacceptable in UDP-based communication?

A

It disrupts real time experience like live video or audio.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Which protocol is connection-oriented?

A

TCP

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Which protocol is considered connectionless?

A

UDP

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Which layer of the OSI model uses port numbers to identify applications?

A

Layer 4, transport layer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is the function of transport layer port numbers?

A

To identify source and destination applications

16
Q

What is a “well-known port”?

A

Port numbers of well known network applications from 1-1023

17
Q

Which organization manages port number assignments?

A

ICANN (Internet corporation for assigned names and numbers)

18
Q

What port number does HTTP use?

19
Which well-known port is used for FTP control?
TCP port 21
20
What port number is used by a mail server with SMTP?
TCP port 25
21
Which port range is typically used for dynamically assigned source ports?
Ports Above 1024
22
What port range is categorized as "Private Ports"?
Ports 49152 to 65535
23
What port range is categorized as "Registered Ports"?
Ports 1024 to 49151
24
What is a “socket” in networking?
A combination of and IP address and a port number
25
What is a "socket pair"?
A combination of source and destination socket in a connection
26
Give an example of a client socket.
192.168.1.3:1026 (IP address and dynamic port)
27
Give an example of a server socket.
192.168.6.8:25 (IP address and well known port)
27
How can multiple applications run on the same client simultaneously?
Each application uses a dynamically assigned source port
28
Which port is used by DNS requests from clients?
UDP port 53
29
Which port does the TFTP protocol use?
UDP port 69
30
Which command is used to check current TCP connections on a host?
netstat
31
Which option Displays IP addresses and port numbers in numerical form in netstat?
netsat -n
32
33
34
34
34
34
35
35
36
36
37
37
37