3600 quiz 2 WIP

5.0(1)
studied byStudied by 12 people
GameKnowt Play
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/61

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

62 Terms

1
New cards

Application Architectures

client-server
peer-to-peer (P2P)

2
New cards

server

always-on host
permanent IP address
data centers for scaling

3
New cards

clients

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

4
New cards

P2P Architecture

NO always-on server
arbitrary end systems directly communicate
peers request service from other peers, provide service in return to other peers
peers are intermittently connected and change IP addresses

5
New cards

self scalability (P2P)

new peers bring new service capacity, as well as new service demands

6
New cards

process

program running within a host

7
New cards

inter-process communication

how two processes communicate within the same host

8
New cards

processes in different hosts communicate by exchanging ____

messages

9
New cards

client process

process that initiates communication

10
New cards

server process

process that waits to be contacted

11
New cards

process sends/receives messages to/from its ______

socket

12
New cards

socket is analogous to a

door

13
New cards

sending process

shoves message out the door (socket)

14
New cards

sending process relies on _____ to deliver message socket at receiving process

transport infrastructure

15
New cards

to receive messages, processes must have

identifier

16
New cards

host device has unique ____ IP address

32-bit

17
New cards

Does IP address of a host on which process runs suffice for identifying the process?

No, many processes can be running on the same host

18
New cards

Identifier includes:

IP address and port numbers associated with the process of a host

19
New cards

App-layer protocal defines:

types of messages exchanged
message syntax
message semantics
open protocols
proprietary protocols

20
New cards

message syntax

what fields in messages & how fields are delineated

21
New cards

message semantics

meaning of information in fields

22
New cards

rules

how processes send and respond to messages

23
New cards

open protocols

defined in RFCs (HTTP, SMTP)

24
New cards

data integrity

Some apps (file transfer, web transactions) require 100% reliable data transfer

25
New cards

timing

some apps (Internet telephony, interactive games) require low delay to be effective

26
New cards

throughput

some apps (multimedia) require minimum amount of throughput to be effective

27
New cards

TCP Service provides:

reliable transport
flow control
congestion control
connection-oriented

28
New cards

UDP service provides

Unreliable data transfer

29
New cards

HTTP stands for

Hypertext transfer protocol

30
New cards

HTTP follows ___ model

client/server

31
New cards

HTTP client

browser that requests, receives and displays web objects

32
New cards

HTTP server

web server sends (HTTP protocol) objects in response to requests

33
New cards

HTTP uses ___

TCP

34
New cards

HTTP is

stateless, server maintains no information about past client requests

35
New cards

Types of HTTP connection

Non-persistent & persistent HTTP

36
New cards

non-persistent HTTP

at most one object sent over TCP connection

37
New cards

persistent HTTP

multiple objects can be sent over single TCP connection between client, server

38
New cards

RTT

time for a small packet to travel from client to server and back

39
New cards

HTTP response time:

One RTT to initiate TCP connection, one RTT for HTTP request and first few bytes of HTTP response to return, file transmission time

40
New cards

non-persistent HTTP response time

2RTT + file transmission time

41
New cards

non-persistent HTTP issues

requires 2RTT per object
OS overhead for EACH tcp connection
browsers often open parallel TCP connections to fetch referenced objects

42
New cards

persistent HTTP:

server leaves connection open after sending response
as little as one RTT for all objects

43
New cards

types of HTTP messages

request, response

44
New cards

HTTP request message

ASCII - Human readable

45
New cards

POST

web page often includes form input
input is uploaded to server in entity body
input does not appear as part of URL field

46
New cards

GET

used to request a resource
input is loaded in URL field of request line

47
New cards

HEAD

Similar to GET, but only header is returned and body is empty

48
New cards

PUT and DELETE

Upload or delete files from server (not always allowed)

49
New cards

HTTP/1.0

GET, POST, HEAD

50
New cards

HTTP/1.1

GET, POST, HEAD, PUT, DELETE

51
New cards

HTTPS response status code: 200

OK, request succeeded

52
New cards

HTTP Codes: 301

Moved Permanently, request object moved

53
New cards

HTTP Code: 400

Bad request, request msg not understood by server

54
New cards

HTTP code: 505

HTTP version not supported

55
New cards

User-side state: cookies components

  1. Cookie header line of HTTP response message

    1. Cookie header line in next HTTP request message
      3. cookie file kept on user’s host
      4. Back-end db at website

56
New cards

What are cookies used for?

Authorization, shopping carts, recommendations, user session state

57
New cards

web caches proxy server

Satisfy client request without involving origin server

58
New cards

cache acts as both

client and server

59
New cards

E-Mail major components

user agents, mail servers, simple mail transfer protocol (SMTP)

60
New cards

User Agent

outgoing, incoming messages stored on server (outlook)

61
New cards

three phases of SMTP

handshaking, transfer of messages, closure

62
New cards