Networks - Application Layer Flashcards

1
Q

What are the possible structures for network applications?

A

Client Server
Peer-to-peer (P2P)

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

Client Server Architecture

A

Server
◼ always-on host
◼ permanent IP address
◼ data centers for scaling

Clients
◼ communicate with server
◼ may be intermittently connected
◼ may have dynamic IP addresses
◼ do not communicate directly with each other

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

P2P Architecture

A

◆ No always-on server
◆ Arbitrary end systems directly communicate
◆ Peers request service from other peers, provide service in return to other peers
◼ Self-Scalability – new peers bring new service
capacity, as well as new service demands
◆ Peers are intermittently connected and change IP addresses
◆ Complex management

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

Communicating Processes

A

Process - A program running within a host

Client Process - A process that initiates communication

Server Process - A process that waits to be contacted

Applications with P2P architectures have both client
processes & server processes

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

What is a socket?

A

A process sends/receives messages to/from its socket

To receive messages, each process must have an identifier - this includes an IP address and port number

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

What transport services does an application need?

A

◆ Date integrity

◆ Timing

◆Throughput

◆Security

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

What are the features of TCP?

A

Reliable transport between sending and receiving data

Flow control - sender won’t overwhelm receiver

Congestion control - throttle sender when network overloaded

Does not provide: timing, minimum throughput, guarantee, security

Connection-oriented - setup required between client and server processes

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

What are the features of UDP?

A

Unreliable data transfer between sending and receiving
process

Does not provide: reliability, flow control, congestion
control, timing, throughput guarantee, security, or
connection setup

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

Issues with non-persistent HTTP

A

Requires 2 RTTs per object

OS overhead for each TCP connection

Browsers often open parallel TCP connections to fetch referenced objects

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