Distributed 2
Distributed 2
Distributed 2
School Of Informatics
CS Department
Assignment-2
ID : cs/we/133/12
· Data Format: The data format at this layer consists of raw bits
and signals that represent the actual data being transmitted
over the network, such as voltage levels, modulation schemes,
and transmission rates.
· Data Format: The session layer does not have a specific data
format but may include session identifiers or control
information to manage communication sessions.
· The client process calculates the time it took for the request to
reach the server and for the response to return.
· The client adjusts its clock by adding the round-trip time to the
server's time.
2. Berkeley's Algorithm:
Berkeley's Algorithm is a more sophisticated clock synchronization
algorithm that uses a time daemon to synchronize the clocks of
different machines in a distributed system. The algorithm works as
follows:
· The time daemon sends the average time to all the machines in
the system.
2. Vector Clocks:
Vector Clocks extend the concept of logical clocks to capture the
concurrency of events and provide a more precise ordering of events
in a distributed system. Each process maintains a vector of logical
clock values, with each element of the vector corresponding to a
different process in the system.
The algorithm works as follows: