Application Layer Flashcards

1
Q

What are the characteristics of a client vs a server?

A

Dynamic vs permanent IP address, location, communication etc etc

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

What is a process?

A

A program running within a host

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

Client vs server process.

A

Process that initiates communication vs a process that waits to be contacted

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

How do processes communicate within the same host vs in different hosts?

A

Inter-process communication vs exchanging messages

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

What does a process use to send/receive messages?

A

A socket

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

What is the relationship between the host, processes, sockets, ip addresses and port numbers

A

Within a host, there are processes.
And processes send messages from client to server through sockets. Each host has an IP address, and each process within the host has a port number. This port number is an identifier, and each process must have on in order to receive messages

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

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

A

No, many processes can be running on the same host

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

What are the port numbers for the following servers?
Http (TCP)
Https (TCP)
Telnet (TCP)
DNS (UDP)
SSH (TCP)
mail server

A

Http (TCP) - 80
Https (TCP) - 443
Telnet (TCP) - 23
DNS (UDP) - 53
SSH (TCP) - 22
mail server - 25

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

What does an application layer protocol define?

A

Types of messages exchanged; message syntax; message semantics; rules for how processes send and respond to messages; open protocols, proprietary protocols.

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

What does reliable data transfer entail?

A

All bytes sent get to the other side in the same order with no gaps.

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

What transport service does an app need?

A

Data integrity which includes reliable data transfer; Timing, which refers to low delay, Throughput whether elastic or a minimum amount, And security, encryption and data integrity.

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

TCP vs UDP go.

A

Reliable transport, flow control, congestion control, connection oriented.
Vs
Unreliable data transfer.

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

What do neither TCP nor UDP have?

A

Timing, minimum throughput guarantee, and security.

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

How can TCP be made more secure?

A

Transport layer security (TLS) encrypts TCP connections and allow for data integrity and end point authentication.

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

What does a web page consist of?

A

Objects, a base html file which contains several referenced objects, each addressable by a URL.

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

What is a url comprised of?

A

A host name and a path name

17
Q

In hypertext transfer protocol (HTTP), what is a client/server?

A

A client is a browser that requests receives and displays objects.
A server sends objects in response to requests.

18
Q

What does it mean to say HTTP is stateless?

A

The server maintains no information about past client requests.

19
Q

Non-persistent HTTP vs persistent HTTP.

A

For non persistent HTTP, only one object can be sent over TCP connection.
for persistent HTTP, multiple objects can be sent over one TCP connection.

20
Q

What is round-trip time (RTT)?

A

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

21
Q

Non-persistent HTTP response time =

A

2RTT + file transmission time

22
Q

How does persistent HTTP address non persistent HTTP issues?

A
23
Q

What are the two types of http messages?

A

Request and response

24
Q

Name four http request methods

A

Get, post, head, put

25
Q

List 5 http status response codes

A

200 OK
301 Moved Permanently
400 Bad Request
404 not found
505 http version not supported

26
Q

Which http request-response interaction is stateless?

A

Get.