Lectures Flashcards

1
Q

What is the difference between packet-switched and circuit-switched networks?

A

Packet switching and circuit switching are two networking methods for transferring data between two nodes or hosts. For a packet-switched network, data is transferred by dividing the data into individual packets and passing it through the circuits to the other host. In packet-switched networks, the route is not exclusively determined when the packets hit the wire. Using routing algorithms, each packet may actually take a different route through the network to arrive at the destination host. Unlike a circuit-switched network where a static route is setup and pre-established prior to initializing connections to the host.

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

What is the difference between a hub

and a switch?

A

The distinction seems to be that the hub is the place where data comes together and the switch is what determines how and where data is forwarded from the place where data comes together. Regarded in its switching aspects, a hub can also include a router.A router is often included as part of a network switch.The router is connected to at least two networks and decides which way to send each . A switch determines from the physical device (Media Access Control or MAC) address in each incoming message frame which output port to forward it to and out of.

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

Completeness

A

Every crashed node is eventually suspected

by all correct nodes

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

Accuracy

A

•strong
– no correct node is ever suspected by any node
• weak
– there exists a correct node that is never…
• eventually strong/weak:
– there is a time after which

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

Call by Value

A

If data is passed by value, the data is copied from the variable used in for example main() to a variable used by the function. So if the data passed (that is stored in the function variable) is modified inside the function, the value is only changed in the variable used inside the function.

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

Call by Reference

A

If data is passed by reference, a pointer to the data is copied instead of the actual variable as is done in a call by value. Because a pointer is copied, if the value at that pointers address is changed in the function, the value is also changed in main function

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

A linearization or consistent run is

A
is a run 
that describes transitions between 
consistent global states.
• A state S' is reachable from state S if there 
is a linearization from S to S
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Global states predict stable

A

if a predicate is true it remains

true for all reachable states.

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

Global states predict non stable

A

if a predicate can become

true and then later become false

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

Mutual exclusion

A

Decide who is to enter a critical

section

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

Leader election

A

Decide who is to be the new leader.

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

Atomic multicast

A

Which messages, and in which

order, should be delivered.

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

critical section

A

is a piece of code that accesses a shared resource that must not be concurrently accessed by more than one thread of execution

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

Liveness

A

Something good eventually will happen

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

Safety

A

Promise that nothing bad happens

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

Completeness

A

if a node crashes then there
is a view that eventually is installed where the
node is not included

17
Q

Accuracy

A

if a node installs a view that does
not include a process then the process has
crashed (or will at least be treated as crashed)

18
Q

Agreements

A

If two nodes install their views at any moment, then these views are the same