Application Layer Flashcards
What are the two possible structures of applications?
Client-Server
Peer to Peer (P2P)
The behaviours of a server are:
Always-on host
Permanent IP address
data centres for scaling
The behaviours of clients are:
communicate with server
may be intermittently connected
may have dynamic IP addresses
do not communicate directly with each other
Specifics of a P2P architecture?
no always-on server
arbitrary end systems directly communicate
peers request servie from other peers
provide service in return to other peers
What is ‘self scalabilty’?
In P2P architecture, new peers bring new service capacity, as well as new service demands.
what is a process
program running within a host
Within the same host, how do two processes communicate?
Using inter-process communication, which is defined by the OS.
How do processes in different hosts communicate?
By exchanging messages
What is the client process?
Process that initiates communication
What is the server process?
Process that waits to be contacted
How does a process send/receive messages?
To/from its socket
Why does a process need an identifier?
To receive messages
To receive messages, a process must have an :
An identifier
Does IP address of host on which process runs suffice for identifying the process?
Many processes can be running on same host
Identifier includes both:
IP address
Port numbers associated with process on host