What is Latency?
Response time - affected by physical distance
What is Bandwidth?
Volume of data transmitted per unit time. Important for large files.
What is the formula for total transfer time?
Total transfer time = (size / bandwidth) + latency
Name the 7 OSI layers top to bottom.
Application, Presentation, Session, Transport, Network, Data Link, Physical.
What is the Application layer?
User-facing protocols: HTTP
What is the Presentation layer?
Formatting and encryption: SSL
What is the Session layer?
Connections: RPC.
What is the Transport layer?
Delivery: TCP
What is the Network layer?
Routing: IP.
What is the Data Link layer?
Node-to-node transfer: Ethernet
What is the Physical layer?
Medium: cables
How does the OSI model work with messages?
Application creates message
Why doesn’t OSI fit distributed systems well?
We need middleware layer between application and transport for location transparency and high-level communication.
What is Synchronous communication?
Sender blocks/waits until reply. Tight coupling. Both must be active.
What is Asynchronous communication?
Sender continues immediately. Loose coupling. Receiver processes when available.
What is Transient communication?
Message only stored while sender and receiver running. Discarded if receiver not available.
What is Persistent communication?
Message stored until delivered. Middleware stores in queue. Guaranteed delivery.
Give example of Transient Synchronous.
RPC - both active
Give example of Transient Asynchronous.
UDP - fire and forget
Give example of Persistent Asynchronous.
Message queueing (MOM) - sender continues
What is an RPC Stub?
A proxy that represents remote procedure and hides all networking from programmer.
What are the steps of RPC?
What is Marshalling?
Converting parameters into a byte stream for transmission.
What is Big-Endian byte ordering?
Most significant byte first. Used by SPARC