Application Layer Flashcards

(37 cards)

1
Q

What is a Process?

A

A program running on a computer

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

What is a socket?

A

The interface applications use to access the networking layer. Facilitates transmission between the application layer and the transport layer,

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

What are the two primary transport layer protocols?

A

TCP and UDP

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

What is TCP?

A

Transport layer protocol that provides congestion control, reliable end-to-end service, and establishes a connect between sockets.

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

What is SSL?

A

An enhancement to TCP that provides data encryption

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

The Web’s application-layer protocol?

A

HyperText Transfer Protocol (HTTP)

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

What is HTTP?

A

A protocol that defines the format of messages shared between a client and server and how the messages are shared.

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

What is HTTP’s underlying transport protocol?

A

TCP

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

What are the two types of connections in client-server communication?

A

Non-persistent connections and persistent connections

Non-persistent connections close after each request/response pair, while persistent connections keep the connection open for multiple requests/responses.

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

In the context of HTTP, what is the default mode regarding connections?

A

HTTP uses persistent connections in its default mode

HTTP clients and servers can be configured to use non-persistent connections if desired.

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

What is the first step in transferring a Web page using non-persistent connections?

A

The HTTP client initiates a TCP connection to the server on port number 80

Port 80 is the default port for HTTP.

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

How many TCP connections are generated when a user requests a Web page with 11 objects using non-persistent connections?

A

11 TCP connections

Each TCP connection transports exactly one request message and one response message.

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

What happens after the HTTP server sends the response message in non-persistent connections?

A

The HTTP server tells TCP to close the TCP connection

TCP does not terminate the connection until it confirms that the client received the response message intact.

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

How do modern browsers handle the retrieval of multiple JPEG objects?

A

Browsers can open 5 to 10 parallel TCP connections

This allows multiple request-response transactions to occur simultaneously.

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

What is RTT in the context of client-server communication?

A

Round-trip time, the time for a small packet to travel from client to server and back

RTT includes propagation delays, queuing delays, and processing delays.

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

What is the total response time for requesting and receiving an HTML file using non-persistent connections?

A

Two RTTs plus the transmission time at the server of the HTML file

One RTT is for establishing the TCP connection and one RTT for the request/response.

17
Q

What are the shortcomings of non-persistent connections?

A

Connections must be established for each object and each object suffers a delivery delay of two RTTs

This can burden the Web server, especially with many simultaneous requests.

18
Q

How does HTTP 1.1 handle persistent connections?

A

The server leaves the TCP connection open after sending a response

This allows multiple requests and responses to be sent over the same connection.

19
Q

What is pipelining in the context of persistent connections?

A

Requests for objects can be made back-to-back without waiting for replies to pending requests

This improves efficiency in data transmission.

20
Q

What is a key feature of HTTP/2 compared to HTTP 1.1?

A

Allows multiple requests and replies to be interleaved in the same connection

It also includes a mechanism for prioritizing HTTP message requests and replies.

21
Q

What does DNS do?

A

Translates host names to IP addresses (e,g, google.com -> 8.8.8.8) and vice versa.

22
Q

What layer does DNS operate on?

A

Application layer

23
Q

How is DNS implemented?

A

As a distributed database implemented as a hierarchy of many name servers

24
Q

True/False DNS occurs within routers and switches

A

False; DNS occurs at the network edge

25
Official, contact-of-last-resort by name servers that cannot resolve name. The top level name server
Root DNS Server
26
responsible for knowing IPs of .com, .org, .edu, etc name servers
Top-Level Domain Server
27
Responsible for resolving names within an organization.
Authoritative DNS server
28
The first DNS server that receives a request
Local DNS name server
29
An address record. A hostname and ip address
Type A
30
A nameserver record. The name is a domain (foo.com) and the value is the hostname of an authoritative name server for this domain.
Type NS
31
Name is an alias for the canonical name. Value is canonical name.
type CNAME
32
value is name of SMTP mail server associated with name
type MX
33
Like an address record, but for ipv6.
Type AAAA
34
Does an HTTP request or DNS request occur first when you type www.example.com into your browser?
DNS request. DNS resolution is a prerequisite for most HTTP requests. Without knowing the server's IP address, the HTTP request cannot be routed.
35
On what port are DNS messages sent and received?
53
36
An attack where the attacker sends bogus DNS replies to a DNS server, tricking the DNS server into accepting bogus records into its cache.
DNS poisoning
37