Quiz 3 - Transport & Application Layer Protocols and DNS (Ch. 9-10) Flashcards
Describe HTTP packets in networking layers
Describe Transport Layer protocols
How do you select the Transport Layer protocol?
- Based on Quality of service (QoS) requirement
- QoS is an acceptable level of network performance
QoS factor: Reliability
- some apps can tolerate some loss
- (e.g., audio)
- other apps require 100% reliable data transfer
- (e.g., file transfer, telnet)
QoS factor: Timing
- some apps require low delay to be “effective”
- (e.g., Internet telephony, interactive games)
QoS factor: Throughput
- some apps require minimum amount of throughput to be “effective”
- (e.g., multimedia)
- other apps make use of whatever throughput they get
- (“elastic apps”)
QoS factor:Security
- encryption
- data integrity
- etc.
Transport service requirements of common apps
What are the Layer 4 (Transport) Protocols?
- TCP
- UDP
Describe TCP
- connection-oriented: setup required between client and server processes reliable transport between sending and receiving
- process flow control: sender won’t overwhelm receiver
- congestion control: throttle sender when network overloaded
- does not provide: timing, minimum throughput guarantees, security
Describe UDP
- unreliable data transfer between sending and receiving process
- does not provide: connection setup, reliability, flow control, congestion control, timing, throughput guarantee, or security
- faster than TCP
What is Connection-oriented communication?
- Within the connection, messages are
- sequenced,
- acknowledged, and
- retransmitted if necessary
How does TCP handle connections?
- There is a formal opening of the connection.
- A connection opening requires three segments. (three-way handshake)
- There is a formal closing of the connection.
Is TCP is a connection-oriented protocol?
- Yes.
Transport protocols for Internet apps
What determines the choice of transport protocol?
- QoS determines the transport protocol
How are processes on the same host uniquely identified?
- To be uniquely identified, each process must have an identifier
- Identifier includes both IP address of the host and port numbers associated with process on host.
Addressing processes within a host
- Hosts are identified by unique 32-bit IP address
- But many processes can be running on the same host
How are ports designated?
- Using a 16-bit value
- between 0 and 65,535
What is the range for Well-known ports?
- 0 to 1,023
What is the range for Registered ports?
- 1,024 to 49,151
What is the range for Dynamic range ports?
- 49,152 to 65,535
What is a Socket?
- Virtual identifier
- A virtual connection to a process running on a host
- Combination of the (virtual) port number and the (virtual) IP address
What is at the beginning of TCP and UDP headers?
- Both TCP and UDP headers begin with a
- source port number field and a
- destination port number field