Chapter 4 - Communication (mine) Flashcards

1
Q

What is an endpoint?

A

When a device connects to a network, it becomes an endpoint. It’s the entry and exit points for data communication. Usually just refers to one side of a network connection.

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

What is a port?

A

It’s a number assigned to uniquely identify a specific process (e.g., emails go to a different port than webpages). Think of it like a numbered door on a house (IP Address), that leads to a specific room (application)
Virtual endpoint. They’re software-based

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

What is a socket?

A

IP Address + port number + (usually) transport protocol (TCP or UDP)
e.g., 192.168.1.10:80 is a socket
Think of it like “I want to talk to the program listening on port 80 at this IP address, using TCP”
Actual object that an application can write data to & read data from, data is sent over a network

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

Which OSI model layer indicates the port that a packet should go to?

A

Only the transport protocol (TCP or UDP). TCP and UDP headers have section for port number

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

Persistent communication

A

Message is stored (by middleware) after submission.
- Sender can stop executing after they submit message
- Receiver doesn’t have to be executing when message is submitted
(Think mailbox)

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

Transient communication

A

Message is stored (by communication system) only as long as sender & receiver are executing.
- If there’s a transmission interrupt, or someone not active, message is discarded

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

What type of communication do transport-level communication service offer? Transient or persistent?

A

Transient
Remember transport layer is typically TCP or UDP

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

Asynchronous communication

A

Sender submits message and moves on with its life
Message is (temporarily) stored by middleware right after submission

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

Synchronous communication

A

After submitting, sender can’t do shit until:
- Middleware takes over transmission of request
- Request is delivered to recipient
- Recipient returns a response
(one of these three)

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

What is a remote procedure call?

A

It’s when one machine can call a procedure on another machine, but make it looks like it’s happening locally

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

What’s the biggest challenge with RPC?

A

Marshaling (packing into a message) parameters so that both sides can understand contents of the procedure call

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