Application Layer Flashcards

1
Q

What happens if there’s no IP route in place?

A

TCP connection fails

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

What’s the main difference between TCP and UDP?

A

TCP is connection-oriented

UDP is connectionless

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

How does client-server architecture work?

A

Server side: always on, permanent IP address

Client side: sends requests to server, not always on, dynamic IP address

Don’t communicate directly

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

How does peer-to-peer architecture work?

A

No single server for clients

Peer requests service from other peers and provides service in return

Peers intermittently connected and change IP address

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

What is process communication?

A

Within same host: processes communicate using inter-process communication

On different hosts: exchange messages

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

What information does an application need to give a socket?

A

Message
Destination address
Type of protocol

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

What is a socket life-cycle?

A
  1. Create: allocate socket resources and return handle
  2. Bind: docked connected to specific network address/port no
  3. Connection: establish connection to end point
  4. Transfer: data sent/received
  5. Close: connections released
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is TLS (transport layer security)?

A

Provides end to end encrypted TCP connections

Data integrity and end to end security

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