Network Protocols: TCP vs UDP, Quizzes of Computer Science

Definitions and use cases for transmission control protocol (tcp) and user datagram protocol (udp). Learn when to use each protocol and their key features, including reliability, connection orientation, and flow control.

Typology: Quizzes

Pre 2010

Uploaded on 12/16/2010

breimer
breimer 🇺🇸

4 documents

1 / 4

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
TERM 1
What is TCP?
DEFINITION 1
TCP - Transmission Control Protocol 1. Connection Oriented
2. Reliable Transport 3. Flow Control (won't overwhelm
receiver) 4. Does not provide timing, throughput guarantees
or security.
TERM 2
What is UDP?
DEFINITION 2
UDP - User Datagram Protocol 1. Message Oriented 2.
Unreliable Transfer 3. Does not provide: reliability,
connection setup, throughput guarantee, congestion control
timing, or security.
TERM 3
When would you use UDP over TCP?
DEFINITION 3
In situations where the data can be sent in a single packet or
if the data being sent will be replaced with data from a
packet that will be sent after. (VOIP, Online Gaming etc.)
TERM 4
When would you use TCP over UDP?
DEFINITION 4
In situations where data reliability is crucial. Such as surfing
the web or downloading files.
TERM 5
What are protocols?
DEFINITION 5
A protocol is an object that sets up some standardized way of
communicating across a network.
pf3
pf4

Partial preview of the text

Download Network Protocols: TCP vs UDP and more Quizzes Computer Science in PDF only on Docsity!

What is TCP?

TCP - Transmission Control Protocol 1. Connection Oriented

  1. Reliable Transport 3. Flow Control (won't overwhelm receiver) 4. Does not provide timing, throughput guarantees or security. TERM 2

What is UDP?

DEFINITION 2 UDP - User Datagram Protocol 1. Message Oriented 2. Unreliable Transfer 3. Does not provide: reliability, connection setup, throughput guarantee, congestion control timing, or security. TERM 3

When would you use UDP over TCP?

DEFINITION 3 In situations where the data can be sent in a single packet or if the data being sent will be replaced with data from a packet that will be sent after. (VOIP, Online Gaming etc.) TERM 4

When would you use TCP over UDP?

DEFINITION 4 In situations where data reliability is crucial. Such as surfing the web or downloading files. TERM 5

What are protocols?

DEFINITION 5 A protocol is an object that sets up some standardized way of communicating across a network.

What are packet headers?

A packet header is information that precedes the content of the packet in order to give information to the protocol about where the information is supposed to go. TERM 7

What does accept() return?

DEFINITION 7 accept() accepts new connections on a server socket. returns a new socket file descriptor. accept() is not a blocking function. TERM 8

What is HTTP?

DEFINITION 8 The Hypertext Transfer Protocol (HTTP) is a networking protocol for distributed, collaborative, hypermedia information systems. mainly the world wide web. TERM 9

What are ports?

DEFINITION 9 A port is a communications end point for the transport layer protocols of the Internet Protocol suite. TERM 10

What are some services that use TCP on the

Internet?

DEFINITION 10 Instant messaging, simple file transfer.

What is a directory file?

A table that contains two things: inode ID of the file and the filename of the file. TERM 17

What are hard and soft links? What are their

differences?

DEFINITION 17 Hard link - directory entry (i.e. all regular files) soft link - serves as a reference to another file. TERM 18

What are FIFO, SSTF, SCAN, and C-SCAN?

DEFINITION 18 Disk scheduling and seeking algorithms. FIFO - First In First Out: request is processed in order of arrival SSTF - Shortest Seek Time First SCAN - Scan the disk from the outside to the inside processing requests along the way then move from the inside to the outside. C-SCAN - Disk arm moves in a circular pattern processing requests.