3-communication Flashcards

(43 cards)

1
Q

What is Latency?

A

Response time - affected by physical distance

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

What is Bandwidth?

A

Volume of data transmitted per unit time. Important for large files.

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

What is the formula for total transfer time?

A

Total transfer time = (size / bandwidth) + latency

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

Name the 7 OSI layers top to bottom.

A

Application, Presentation, Session, Transport, Network, Data Link, Physical.

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

What is the Application layer?

A

User-facing protocols: HTTP

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

What is the Presentation layer?

A

Formatting and encryption: SSL

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

What is the Session layer?

A

Connections: RPC.

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

What is the Transport layer?

A

Delivery: TCP

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

What is the Network layer?

A

Routing: IP.

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

What is the Data Link layer?

A

Node-to-node transfer: Ethernet

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

What is the Physical layer?

A

Medium: cables

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

How does the OSI model work with messages?

A

Application creates message

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

Why doesn’t OSI fit distributed systems well?

A

We need middleware layer between application and transport for location transparency and high-level communication.

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

What is Synchronous communication?

A

Sender blocks/waits until reply. Tight coupling. Both must be active.

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

What is Asynchronous communication?

A

Sender continues immediately. Loose coupling. Receiver processes when available.

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

What is Transient communication?

A

Message only stored while sender and receiver running. Discarded if receiver not available.

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

What is Persistent communication?

A

Message stored until delivered. Middleware stores in queue. Guaranteed delivery.

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

Give example of Transient Synchronous.

A

RPC - both active

19
Q

Give example of Transient Asynchronous.

A

UDP - fire and forget

20
Q

Give example of Persistent Asynchronous.

A

Message queueing (MOM) - sender continues

21
Q

What is an RPC Stub?

A

A proxy that represents remote procedure and hides all networking from programmer.

22
Q

What are the steps of RPC?

A
  1. Client calls stub, 2. Stub marshals params, 3. Client OS sends, 4. Server OS receives, 5. Server stub unmarshals, 6. Server executes, 7. Stub marshals result, 8. OS sends back, 9. Client stub unmarshals, 10. Returns to client.
23
Q

What is Marshalling?

A

Converting parameters into a byte stream for transmission.

24
Q

What is Big-Endian byte ordering?

A

Most significant byte first. Used by SPARC

25
What is Little-Endian byte ordering?
Least significant byte first. Used by Intel x86.
26
How do systems handle different byte ordering?
Agree on standard format (big-endian). Sender and receiver convert to/from this.
27
What is Serialisation?
Converting object state into a format that can be transmitted. Binary (protobuf) or text (JSON
28
What is Asynchronous RPC?
Client sends request and continues. Server processes in background. For when immediate result not needed.
29
What is RMI?
Remote Method Invocation - RPC for object-oriented programming. Call methods
30
How does RMI differ from RPC?
RPC: call functions, pass data, procedural. RMI: call object methods, pass object refs, OOP.
31
What is a Socket?
Low-level communication endpoint for transient messaging.
32
How do connection-oriented sockets work?
Client creates socket, server creates/binds/listens, client connects, server accepts, data exchanged, connections closed.
33
What is MPI?
Message Passing Interface - standard interface for parallel computing
34
Why was MPI created?
Many companies had proprietary libs - wasn't portable. MPI standardised it.
35
What does MPI_bsend do?
Buffer send - copies to local buffer
36
What does MPI_send do?
Standard send - blocks until message safely stored.
37
What does MPI_recv do?
Receive - blocks until message arrives.
38
What does MPI_irecv do?
Non-blocking receive - check without waiting.
39
What is Message Queueing?
Messages stored in queues at communication servers. Persist until delivered. Solution to RPC limitations.
40
What are the 4 Message Queue operations?
Put (add, non-blocking), Get (remove, blocks), Poll (check, don't block), Notify (register callback).
41
What is AMQP?
Advanced Message Queueing Protocol - standard for message-oriented middleware.
42
Name examples of message queue systems.
RabbitMQ, ActiveMQ, OpenStack.
43
What is the hierarchy of communication technologies?
1. Sockets (lowest), 2. MPI (specialised for HPC), 3. RPC/RMI (mid-level, synchronous), 4. MOM (high-level, async, persistent).