Distributed computing


CONDITIONS FOR PHYSICAL CLOCKS



Download 0,86 Mb.
bet12/38
Sana24.04.2022
Hajmi0,86 Mb.
#578449
1   ...   8   9   10   11   12   13   14   15   ...   38
Bog'liq
distcomp

CONDITIONS FOR PHYSICAL CLOCKS

  • Suppose u is the smallest time through internal or external means that one process can be informed of an event occurring at another process. That is, u is the smallest transmission time.
  • (Distance/speed of light?)
  • Suppose we have a global time t (all processes are in same frame of reference) that is unknown to any process.
  • Goal for physical clocks: Ci(t + u) > Cj(t) for any i, j.
  • This ensures that if A happens before B, then the clock time for B will be after the clock time for A.

ASSUMPTIONS ABOUT CLOCKS AND MESSAGES

  • Clock drift. In one unit of global time, Ci will advance between 1-k and 1+k time units. (k << 1)
  • A message can be sent in some minimum time v with a possible additional delay of at most e.

HOW DO WE ACHIEVE PHYSICAL CLOCK GOAL?

  • Can’t always do so, e.g., can’t synchronize quartz watches using the U.S. post office.
  • Basic algorithm: Periodically (to be determined), each process sends out timestamped messages.
  • Upon receiving a message from Pi timestamped Ti, process Pj sets its own timestamp to max(Ti + v, Tj).

WHAT ALGORITHM ACCOMPLISHES

  • Simplifying to the essence of the idea, suppose there are two processes i and j and i sends a message that arrives at global time t.
  • After possibly resetting its timestamp, process j ensures that
  • Cj(t)Ci(t) + v – (e+v)x(1+k)
  • That is, since i sent its message at local time Ti, i’s clock may have advanced (e+v)x(1+k) time units to Ti+(e+v)x(1+k) time. At the least Cj(t) ≥ Ti+v.
  • How good can synchronization be, given e, v, k?

ROAD MAP: SOME FUNDAMENTAL PROTOCOLS

  • Time in distributed systems
  • Protocols built on asynchronous networks (achieve global state)

PROTOCOLS

  • Asynchrony and distributed centers of processing give rise to various problems:
    • Find a spanning tree n a network.
    • When does a collection of processes terminate?
    • Find a consistent state of a distributed system, i.e., some analogue to a photographic “snapshot”.
    • Establish a synchronization point. This will allow us to implement parallel algorithms that work in rounds on a distributed asynchronous system.
    • Find the shortest path from a given node s to every other node in the network.

Download 0,86 Mb.

Do'stlaringiz bilan baham:
1   ...   8   9   10   11   12   13   14   15   ...   38




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©www.hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish