Chapter 2: Application Layer Flashcards

1
Q

Some network apps:

A
  1. e-mail.
  2. web.
  3. text messaging.
  4. remote login.
  5. P2P file sharing.
  6. multi-user network games.
  7. streaming stored video (YouTube, Hulu, Netflix, iflix).
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Creating network app:

A
  1. write programs that:
    (a) run on (different) end systems.
    (b) communicate over network.
    (c) e.g., web browser software communicates with browser software.
  2. No need to write software for network-core devices:
    (a) network-core devices do not run user applications.
    (b) applications on end systems allows for rapid app development, propagation.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Application architecture:

A
  1. possible structure of applications:
    (a) client-server
    (b) peer-to-peer (P2P)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Processes Communicating

A

Process: program running within a host

(a) within same host, two processes communicate using inter-process communication (defined by OS).
(b) processes in different hosts communicate by exchanging messages.
(c) aside: applications with P2P architectures have client processes and server processes.

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

What is:

(a) client processes
(b) server processes

A

(a) process that initiates communication

(b) process that waits to be contacted.

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

Client-server architecture:

A
  1. Server:
    (a) always-on host
    (b) permanent IP address
    (c) data centers for scaling
  2. Clients:
    (a) communicate with server
    (b) may be intermittently connected
    (c) may have dynamic IP addresses
    (d) do not communicate directly with each other
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

P2P architecture:

A
  1. no always-on server
  2. arbitrary end systems directly communicate
  3. peers request service from other peers, provide
    service in return to other peers
    (a) self scalability – new peers bring new service capacity, as well as new service demands
  4. peers are intermittently connected and change
    IP addresses
    (a) complex management
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Sockets:

A
  1. process sends/receives messages to/from its socket.
  2. socket analogous to door
    (a) sending process shoves message out door.
    (b) sending process relies on transport infrastructure on other side of door to deliver message to socket at receiving process.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly