Application Layer Flashcards
What happens if there’s no IP route in place?
TCP connection fails
What’s the main difference between TCP and UDP?
TCP is connection-oriented
UDP is connectionless
How does client-server architecture work?
Server side: always on, permanent IP address
Client side: sends requests to server, not always on, dynamic IP address
Don’t communicate directly
How does peer-to-peer architecture work?
No single server for clients
Peer requests service from other peers and provides service in return
Peers intermittently connected and change IP address
What is process communication?
Within same host: processes communicate using inter-process communication
On different hosts: exchange messages
What information does an application need to give a socket?
Message
Destination address
Type of protocol
What is a socket life-cycle?
- Create: allocate socket resources and return handle
- Bind: docked connected to specific network address/port no
- Connection: establish connection to end point
- Transfer: data sent/received
- Close: connections released
What is TLS (transport layer security)?
Provides end to end encrypted TCP connections
Data integrity and end to end security