App layer Flashcards

application layer

1
Q

what does a socket do?

A

sends/receives messages to/from the process

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

what does an App-Layer protocol define? (4)

A
  • types of messages
  • message syntax
  • message semantic
    -rules for when/how messages are sent/received
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

what is HTTP

A

Hypertext transfer protocol

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

What is the HTTP model?

A

Client/Server :
client: browser that requests/receives/displays web objects
server: sends objects in response to requests

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

Is HTTP stateless ? What does that mean?

A

Is stateless, meaning it doesn´t store any past information about previous requests

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

What transport protocol does HTTP use?

A

TCP :
the client is the web browser
the server is the web server

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

what types of HTTP connections can we have?

A

Non-presistent or presistent

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

How much time does it take to get 1 object ? (Non-persistent)

A

2 RTT + time to transmit file

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

How much time does it take to get 1 object? (persistent)

A

as little as 1 RTT

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

what are the two methods for input ?

A

POST and URL
post : input form in body of post message
URL : uses GET , input in URL , after ‘
?’

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

How are Status codes displayed in HTTP responses ?

A

Protocol -> status code -> status phrase

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

what does cookies do ?

A

transfor HTTP into a state oriented protocol , storing protocol endpoints ( maintain state at sender/receiver over multiples transactions)

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

what does DNS mean?

A

Domain Name Service

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

what does DNS do?

A

Resolve names into ips

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

what are some DNS services ?

A
  • hostname to ip translation
    -host aliasing (resolve complicated names)
  • mail server aliasing
  • load distribuition
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

is DNS secure?

A

No, your IP is public, so every server knows who made the query

17
Q
A