Week 9 - Application Layer Flashcards

1
Q

What is the highest layer on the TCP/IP stack?

A

It is the application layer

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

What’s the protocols of this layer?

A

It define communication for network applications. Such as WWW, email, P2P file sharing etc.

(Refer back to PowerPoint for me examples)

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

Who uses network applications? Give an example

A

Network applications run on network edge devices (hosts/end-systems)

  • Hosts include both clients of applications and the servers for those applications.

An example can be a web server communicates with browser client software

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

What does network Core not use?

A

It is devices (routers) where it does not run user applications.

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

What are the network application processes?

A

The process is part of a program or application running within a host machine.

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

What happens in the network application processes when there is a different or same host?

A

Within a same host, processses communicate using inter-processes communication protocols defined by the operating system.

Within different hosts,processes communicate by exchanging messages on the network (i.e using network protocols)

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

What are the two types of processes in terms of network communication?

A
  1. Client processes - initiates communication
  2. Server process - waits to be communicated with
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are the two common structures of network applications in network application architectures?

A
  1. Client-server
  2. Peer-to-Peer (P2P)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Define what the two structure does in the network applications

A
  1. Client-server - it is basically defining who runs the client processes and who runs the server processes
  2. P2P - it is where both client processes and server processes
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is it like in the P2P architecture?

A
  • They have both client and server processes
  • There’s no always-on server, so this means that they have arbitrary end systems directly communicate with each other
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Define ‘Sockets’

A

It is the process-to-network interface between the application layer and the transport layer. So this means that it sends/receives messages to/from its socket, which communicates with the transport protocol.

  • Each socket must be uniquely identifiable from the outside world
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is the socket addresses?

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

What services an application needs from a transport protocol?

A
  1. Data intergrity
  2. Timing
  3. Throughput
  4. Security
17
Q

What does the data integrity do?

A
  • Some apps (e.g file transfer/transactions) require 100% reliable data transfer
  • Some other (e.g audio) can tolerate some loss
18
Q

What does the timing do?

A
  • Some apps (e.g. games) require low delay to be effective
  • For others (e.g. webpages), this doesn’t overly matter
19
Q

What does the ‘Throughput’ do in the services?

A
  • Some apps (e.g. videos) require a minimum amount of throughput
  • Other apps (e.g. email) make use of whatever they get
20
Q

What does ‘Security’ do in the services?

A
  • Encryption, etc., which we will learn about in the Network Security lecture
21
Q

What are the 2 key transport protocols that provide such services to network applications and define it

A
  1. TCP - It is connection - oriented, reliable data transfer
    • Flow and congestion control
  2. UDP - Connectionless, unreliable data transfer
    • No flow or congestion controls
22
Q

What does the HTML objects do?

A

The HTML object are sent and received using the HyperText Transfer Protocol (HTTP)

24
Q

What’s the different between Non- persistent HTTP and Persistent HTTP?

A

If they are non - persistent, they closed after each server response.

If they are persistent, the server leaves the connection open after response.

25
What happens between clients and servers when there is non-persistent HTTP?
- Host has to go through TCP initiate, request,respond and close once per HTML object. - Browsers open parallel TCP connections to fetch objects - OS overhead for each individual TCP connection
26
What happens in the connections when there is persistent HTTP?
- It is when the HTTP messages between the same client-server duo are sent over the open connection. - Client sends requests as soon as it encounters a referenced object.
27
What is the timing between Non-persistent HTTP and Persistent HTTP?
1. Non-persistent HTTP response time = 2RTT + FTT - 1 RTT to initiate TCP connection - 1 RTT for HTTP request and first bytes of HTTP response to return - File transmission time (FTT) 2. Persistent HTTP response time can be little as 1RTT for all referenced objects
28
What are the two type of HTTP messages?
1. Requests for HTML objects 2. Responses with HTML objects