Lectures Flashcards
What is the difference between packet-switched and circuit-switched networks?
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.
What is the difference between a hub
and a switch?
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.
Completeness
Every crashed node is eventually suspected
by all correct nodes
Accuracy
•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
Call by Value
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.
Call by Reference
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
A linearization or consistent run is
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
Global states predict stable
if a predicate is true it remains
true for all reachable states.
Global states predict non stable
if a predicate can become
true and then later become false
Mutual exclusion
Decide who is to enter a critical
section
Leader election
Decide who is to be the new leader.
Atomic multicast
Which messages, and in which
order, should be delivered.
critical section
is a piece of code that accesses a shared resource that must not be concurrently accessed by more than one thread of execution
Liveness
Something good eventually will happen
Safety
Promise that nothing bad happens