SlideShare a Scribd company logo
1 of 16
Logical Time
2010/10/15
Yoshi
Interfacing the On-Chip Networks
Timing Model
Happen-Before Relation
• A well-known problem, discovered by Leslie
Lamport
• The model is easy, but the discussion is very
theoretical and difficult
• References
– Time, Clocks, and the Ordering of Events in a
Distributed System”, which received the PODC
Influential Paper Award in 2000
– http://en.wikipedia.org/wiki/Happened-before
– http://en.wikipedia.org/wiki/Leslie_Lamport
Assumption
• Asynchronous network model with universal
reliable FIFO buffer
– Where universal is a term to say that it is based on
I/O automation model
Trace
• External actions
• The trace of an execution α of A, denoted by trace(α),
is the subsequence of α consisting of all the external
actions
• We say β is a trace of A if β is the trace of an
execution of A
• Denote the set of traces of A by traces(A)
Fairness
• Explanation
– Never let a process/component have no chance to
get its turn to run
• Formal definition
– If α is finite, then C is not enabled in the final state
of α
– If α is infinite, then α contains either infinitely
many events from C or infinitely many
occurrences of states in which C is not enabled
Indistinguishable
• Let α and α’ are two executions of a system, to
a process i, if i has the properties in α and α’
– The same sequence of states
– The same sequence of outgoing messages
– The same sequence of incoming messages
• We say that α is indistinguishable from α’ to
process i, denoted α ḭ α,
• This definition can be extended to r rounds
(more than one time communications)
Theorem
• Let A be an asynchronous send/receive system
with universal reliable FIFO channels, and let β
be a fair trace of A.
• Let γ be a sequence obtained by reordering the
events in β while preserving the β ordering.
Then γ is also a fair trace of A
Corollary
• Let A be an asynchronous send/receive system
with universal reliable FIFO channels, and let α
be a fair execution of A.
• Let γ be a sequence that is obtained by
reordering the events in β = trace(α) while
preserving the β ordering.
• Then there is a fair execution α’ of A such that
trace(α’)= γ and such that α and α’ are
indistinguishable to every process Pi
Theorem for Logical Time
• Let α be a fair execution of a send/receive network
system A with universal reliable FIFO channels and let
ltime be a logical-time assignment for α. Then there is
another fair execution of A such that
– α’ contains the same events as α
– The events in α’ occur in the order of their ltimes in α
– α‘ is indistinguishable from α to every process automation
• In short, the order of events of each particular process
must be the same in α and α’.
• However, It permits events at different processes to be
reordered.
An Example of Logical-Time
Assignment
1 2 3
Send/receive diagram for execution α
Results of Different Assignments
1 2 3
A logical-time assignment for α
2
3
4
7
10
9
8
1
5
6
1 2 3
Send/receive diagram for reordered
execution α‘
2
3
4
7
10
9
8
1
5
6
Logical t = 7.5
1 2 3
Dotted line for t = 7.5
2
3
4
7
10
9
8
1
5
6
1 2 3
Reordered execution α’ with horizontal
line for t = 7.5
2
3
4
7
10
9
8
1
5
6
Summary
• FIFO still holds (?)
– It should be, in most general assumptions
• According to the discussion above, we
conclude that our simulation methodology
gives the corrects results (outputs)
• We further handle the relative speed between
PEs and routers by tuning the clock speeds of
them
Routing and Link Speed Descriptions

More Related Content

What's hot

0.5mln packets per second with Erlang
0.5mln packets per second with Erlang0.5mln packets per second with Erlang
0.5mln packets per second with ErlangMaxim Kharchenko
 
LarKC Tutorial at ISWC 2009 - Parallelisation
LarKC Tutorial at ISWC 2009 - ParallelisationLarKC Tutorial at ISWC 2009 - Parallelisation
LarKC Tutorial at ISWC 2009 - ParallelisationLarKC
 
CILK/CILK++ and Reducers
CILK/CILK++ and ReducersCILK/CILK++ and Reducers
CILK/CILK++ and ReducersYunming Zhang
 
RoboCon 2019: Welcome back! What's new since RoboCon 2018?
RoboCon 2019: Welcome back! What's new since RoboCon 2018?RoboCon 2019: Welcome back! What's new since RoboCon 2018?
RoboCon 2019: Welcome back! What's new since RoboCon 2018?Pekka Klärck
 
LarKC Tutorial at ISWC 2009 - Urban Computing
LarKC Tutorial at ISWC 2009 - Urban ComputingLarKC Tutorial at ISWC 2009 - Urban Computing
LarKC Tutorial at ISWC 2009 - Urban ComputingLarKC
 
Transformer Mods for Document Length Inputs
Transformer Mods for Document Length InputsTransformer Mods for Document Length Inputs
Transformer Mods for Document Length InputsSujit Pal
 
Presentation
PresentationPresentation
PresentationLior Boim
 
Lec11 semaphores
Lec11 semaphoresLec11 semaphores
Lec11 semaphoresanandammca
 
Ecet 345 Enthusiastic Study / snaptutorial.com
Ecet 345 Enthusiastic Study / snaptutorial.comEcet 345 Enthusiastic Study / snaptutorial.com
Ecet 345 Enthusiastic Study / snaptutorial.comStephenson34
 
Java.util.concurrent.concurrent hashmap
Java.util.concurrent.concurrent hashmapJava.util.concurrent.concurrent hashmap
Java.util.concurrent.concurrent hashmapSrinivasan Raghvan
 
Protocol testing course content
Protocol testing course contentProtocol testing course content
Protocol testing course contentsanjib_agrawala
 
Максим Харченко. Erlang lincx
Максим Харченко. Erlang lincxМаксим Харченко. Erlang lincx
Максим Харченко. Erlang lincxAlina Dolgikh
 
Access to non local names
Access to non local namesAccess to non local names
Access to non local namesVarsha Kumar
 

What's hot (16)

0.5mln packets per second with Erlang
0.5mln packets per second with Erlang0.5mln packets per second with Erlang
0.5mln packets per second with Erlang
 
LarKC Tutorial at ISWC 2009 - Parallelisation
LarKC Tutorial at ISWC 2009 - ParallelisationLarKC Tutorial at ISWC 2009 - Parallelisation
LarKC Tutorial at ISWC 2009 - Parallelisation
 
Semaphore
SemaphoreSemaphore
Semaphore
 
CILK/CILK++ and Reducers
CILK/CILK++ and ReducersCILK/CILK++ and Reducers
CILK/CILK++ and Reducers
 
RoboCon 2019: Welcome back! What's new since RoboCon 2018?
RoboCon 2019: Welcome back! What's new since RoboCon 2018?RoboCon 2019: Welcome back! What's new since RoboCon 2018?
RoboCon 2019: Welcome back! What's new since RoboCon 2018?
 
LarKC Tutorial at ISWC 2009 - Urban Computing
LarKC Tutorial at ISWC 2009 - Urban ComputingLarKC Tutorial at ISWC 2009 - Urban Computing
LarKC Tutorial at ISWC 2009 - Urban Computing
 
Transformer Mods for Document Length Inputs
Transformer Mods for Document Length InputsTransformer Mods for Document Length Inputs
Transformer Mods for Document Length Inputs
 
Presentation
PresentationPresentation
Presentation
 
Mit cilk
Mit cilkMit cilk
Mit cilk
 
Lec11 semaphores
Lec11 semaphoresLec11 semaphores
Lec11 semaphores
 
Ecet 345 Enthusiastic Study / snaptutorial.com
Ecet 345 Enthusiastic Study / snaptutorial.comEcet 345 Enthusiastic Study / snaptutorial.com
Ecet 345 Enthusiastic Study / snaptutorial.com
 
Java 8 streams
Java 8 streams Java 8 streams
Java 8 streams
 
Java.util.concurrent.concurrent hashmap
Java.util.concurrent.concurrent hashmapJava.util.concurrent.concurrent hashmap
Java.util.concurrent.concurrent hashmap
 
Protocol testing course content
Protocol testing course contentProtocol testing course content
Protocol testing course content
 
Максим Харченко. Erlang lincx
Максим Харченко. Erlang lincxМаксим Харченко. Erlang lincx
Максим Харченко. Erlang lincx
 
Access to non local names
Access to non local namesAccess to non local names
Access to non local names
 

Similar to Logical Time

Privacy Preserving State Transitions on Ethereum
Privacy Preserving State Transitions on EthereumPrivacy Preserving State Transitions on Ethereum
Privacy Preserving State Transitions on EthereumClearmatics
 
Verification with LoLA: 4 Using LoLA
Verification with LoLA: 4 Using LoLAVerification with LoLA: 4 Using LoLA
Verification with LoLA: 4 Using LoLAUniversität Rostock
 
Performance Enhancement with Pipelining
Performance Enhancement with PipeliningPerformance Enhancement with Pipelining
Performance Enhancement with PipeliningAneesh Raveendran
 
basics of stochastic and queueing theory
basics of stochastic and queueing theorybasics of stochastic and queueing theory
basics of stochastic and queueing theoryjyoti daddarwal
 
2012 S&P Paper Reading Session1
2012 S&P Paper Reading Session12012 S&P Paper Reading Session1
2012 S&P Paper Reading Session1Chong-Kuan Chen
 
Pipelining of Processors
Pipelining of ProcessorsPipelining of Processors
Pipelining of ProcessorsGaditek
 
Ch-7-Part-2-Distributed-System.pptx
Ch-7-Part-2-Distributed-System.pptxCh-7-Part-2-Distributed-System.pptx
Ch-7-Part-2-Distributed-System.pptxKabindra Koirala
 
Queuing theory and traffic analysis in depth
Queuing theory and traffic analysis in depthQueuing theory and traffic analysis in depth
Queuing theory and traffic analysis in depthIdcIdk1
 
Reactconf 2014 - Event Stream Processing
Reactconf 2014 - Event Stream ProcessingReactconf 2014 - Event Stream Processing
Reactconf 2014 - Event Stream ProcessingAndy Piper
 
Dynamic time warping and PIC 16F676 for control of devices
Dynamic time warping and PIC 16F676 for control of devicesDynamic time warping and PIC 16F676 for control of devices
Dynamic time warping and PIC 16F676 for control of devicesRoger Gomes
 
Runtimeenvironment
RuntimeenvironmentRuntimeenvironment
RuntimeenvironmentAnusuya123
 

Similar to Logical Time (20)

C++ scalable network_io
C++ scalable network_ioC++ scalable network_io
C++ scalable network_io
 
ME-314- Control Engineering - Week 02
ME-314- Control Engineering - Week 02ME-314- Control Engineering - Week 02
ME-314- Control Engineering - Week 02
 
Planificacion
PlanificacionPlanificacion
Planificacion
 
Privacy Preserving State Transitions on Ethereum
Privacy Preserving State Transitions on EthereumPrivacy Preserving State Transitions on Ethereum
Privacy Preserving State Transitions on Ethereum
 
Unit 3
Unit 3Unit 3
Unit 3
 
Verification with LoLA: 4 Using LoLA
Verification with LoLA: 4 Using LoLAVerification with LoLA: 4 Using LoLA
Verification with LoLA: 4 Using LoLA
 
Applications of queue
Applications of queueApplications of queue
Applications of queue
 
Unit 06 dbms
Unit 06 dbmsUnit 06 dbms
Unit 06 dbms
 
Performance Enhancement with Pipelining
Performance Enhancement with PipeliningPerformance Enhancement with Pipelining
Performance Enhancement with Pipelining
 
basics of stochastic and queueing theory
basics of stochastic and queueing theorybasics of stochastic and queueing theory
basics of stochastic and queueing theory
 
Pipelining slides
Pipelining slides Pipelining slides
Pipelining slides
 
Coa.ppt2
Coa.ppt2Coa.ppt2
Coa.ppt2
 
Unit - 5 Pipelining.pptx
Unit - 5 Pipelining.pptxUnit - 5 Pipelining.pptx
Unit - 5 Pipelining.pptx
 
2012 S&P Paper Reading Session1
2012 S&P Paper Reading Session12012 S&P Paper Reading Session1
2012 S&P Paper Reading Session1
 
Pipelining of Processors
Pipelining of ProcessorsPipelining of Processors
Pipelining of Processors
 
Ch-7-Part-2-Distributed-System.pptx
Ch-7-Part-2-Distributed-System.pptxCh-7-Part-2-Distributed-System.pptx
Ch-7-Part-2-Distributed-System.pptx
 
Queuing theory and traffic analysis in depth
Queuing theory and traffic analysis in depthQueuing theory and traffic analysis in depth
Queuing theory and traffic analysis in depth
 
Reactconf 2014 - Event Stream Processing
Reactconf 2014 - Event Stream ProcessingReactconf 2014 - Event Stream Processing
Reactconf 2014 - Event Stream Processing
 
Dynamic time warping and PIC 16F676 for control of devices
Dynamic time warping and PIC 16F676 for control of devicesDynamic time warping and PIC 16F676 for control of devices
Dynamic time warping and PIC 16F676 for control of devices
 
Runtimeenvironment
RuntimeenvironmentRuntimeenvironment
Runtimeenvironment
 

More from Yoshi Shih-Chieh Huang

Usage and Comparisons of Control Group in Android AOSP: Marshmallow and Before
Usage and Comparisons of Control Group in Android AOSP: Marshmallow and BeforeUsage and Comparisons of Control Group in Android AOSP: Marshmallow and Before
Usage and Comparisons of Control Group in Android AOSP: Marshmallow and BeforeYoshi Shih-Chieh Huang
 
On the End-to-End Traffic Prediction in the On-Chip Networks
On the End-to-End Traffic Prediction in the On-Chip NetworksOn the End-to-End Traffic Prediction in the On-Chip Networks
On the End-to-End Traffic Prediction in the On-Chip NetworksYoshi Shih-Chieh Huang
 
Introduction to amazon web service (clean)
Introduction to amazon web service (clean)Introduction to amazon web service (clean)
Introduction to amazon web service (clean)Yoshi Shih-Chieh Huang
 

More from Yoshi Shih-Chieh Huang (7)

Architectural modeling
Architectural modelingArchitectural modeling
Architectural modeling
 
Flash knowledge
Flash knowledgeFlash knowledge
Flash knowledge
 
Usage and Comparisons of Control Group in Android AOSP: Marshmallow and Before
Usage and Comparisons of Control Group in Android AOSP: Marshmallow and BeforeUsage and Comparisons of Control Group in Android AOSP: Marshmallow and Before
Usage and Comparisons of Control Group in Android AOSP: Marshmallow and Before
 
Short intro to project butter
Short intro to project butterShort intro to project butter
Short intro to project butter
 
Attackboard slides dac12-0605
Attackboard slides dac12-0605Attackboard slides dac12-0605
Attackboard slides dac12-0605
 
On the End-to-End Traffic Prediction in the On-Chip Networks
On the End-to-End Traffic Prediction in the On-Chip NetworksOn the End-to-End Traffic Prediction in the On-Chip Networks
On the End-to-End Traffic Prediction in the On-Chip Networks
 
Introduction to amazon web service (clean)
Introduction to amazon web service (clean)Introduction to amazon web service (clean)
Introduction to amazon web service (clean)
 

Recently uploaded

Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackVICTOR MAESTRE RAMIREZ
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...soniya singh
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsAlberto González Trastoy
 
What is Binary Language? Computer Number Systems
What is Binary Language?  Computer Number SystemsWhat is Binary Language?  Computer Number Systems
What is Binary Language? Computer Number SystemsJheuzeDellosa
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdfWave PLM
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)OPEN KNOWLEDGE GmbH
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...OnePlan Solutions
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfkalichargn70th171
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...OnePlan Solutions
 
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataAdobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataBradBedford3
 
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfThe Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfkalichargn70th171
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...gurkirankumar98700
 
Test Automation Strategy for Frontend and Backend
Test Automation Strategy for Frontend and BackendTest Automation Strategy for Frontend and Backend
Test Automation Strategy for Frontend and BackendArshad QA
 
Project Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanationProject Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanationkaushalgiri8080
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVshikhaohhpro
 
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfjoe51371421
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionSolGuruz
 
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AISyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AIABDERRAOUF MEHENNI
 

Recently uploaded (20)

Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStack
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
What is Binary Language? Computer Number Systems
What is Binary Language?  Computer Number SystemsWhat is Binary Language?  Computer Number Systems
What is Binary Language? Computer Number Systems
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 
Exploring iOS App Development: Simplifying the Process
Exploring iOS App Development: Simplifying the ProcessExploring iOS App Development: Simplifying the Process
Exploring iOS App Development: Simplifying the Process
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
 
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataAdobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
 
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfThe Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
 
Test Automation Strategy for Frontend and Backend
Test Automation Strategy for Frontend and BackendTest Automation Strategy for Frontend and Backend
Test Automation Strategy for Frontend and Backend
 
Project Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanationProject Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanation
 
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdf
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with Precision
 
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AISyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
 

Logical Time

  • 4. Happen-Before Relation • A well-known problem, discovered by Leslie Lamport • The model is easy, but the discussion is very theoretical and difficult • References – Time, Clocks, and the Ordering of Events in a Distributed System”, which received the PODC Influential Paper Award in 2000 – http://en.wikipedia.org/wiki/Happened-before – http://en.wikipedia.org/wiki/Leslie_Lamport
  • 5. Assumption • Asynchronous network model with universal reliable FIFO buffer – Where universal is a term to say that it is based on I/O automation model
  • 6. Trace • External actions • The trace of an execution α of A, denoted by trace(α), is the subsequence of α consisting of all the external actions • We say β is a trace of A if β is the trace of an execution of A • Denote the set of traces of A by traces(A)
  • 7. Fairness • Explanation – Never let a process/component have no chance to get its turn to run • Formal definition – If α is finite, then C is not enabled in the final state of α – If α is infinite, then α contains either infinitely many events from C or infinitely many occurrences of states in which C is not enabled
  • 8. Indistinguishable • Let α and α’ are two executions of a system, to a process i, if i has the properties in α and α’ – The same sequence of states – The same sequence of outgoing messages – The same sequence of incoming messages • We say that α is indistinguishable from α’ to process i, denoted α ḭ α, • This definition can be extended to r rounds (more than one time communications)
  • 9. Theorem • Let A be an asynchronous send/receive system with universal reliable FIFO channels, and let β be a fair trace of A. • Let γ be a sequence obtained by reordering the events in β while preserving the β ordering. Then γ is also a fair trace of A
  • 10. Corollary • Let A be an asynchronous send/receive system with universal reliable FIFO channels, and let α be a fair execution of A. • Let γ be a sequence that is obtained by reordering the events in β = trace(α) while preserving the β ordering. • Then there is a fair execution α’ of A such that trace(α’)= γ and such that α and α’ are indistinguishable to every process Pi
  • 11. Theorem for Logical Time • Let α be a fair execution of a send/receive network system A with universal reliable FIFO channels and let ltime be a logical-time assignment for α. Then there is another fair execution of A such that – α’ contains the same events as α – The events in α’ occur in the order of their ltimes in α – α‘ is indistinguishable from α to every process automation • In short, the order of events of each particular process must be the same in α and α’. • However, It permits events at different processes to be reordered.
  • 12. An Example of Logical-Time Assignment 1 2 3 Send/receive diagram for execution α
  • 13. Results of Different Assignments 1 2 3 A logical-time assignment for α 2 3 4 7 10 9 8 1 5 6 1 2 3 Send/receive diagram for reordered execution α‘ 2 3 4 7 10 9 8 1 5 6
  • 14. Logical t = 7.5 1 2 3 Dotted line for t = 7.5 2 3 4 7 10 9 8 1 5 6 1 2 3 Reordered execution α’ with horizontal line for t = 7.5 2 3 4 7 10 9 8 1 5 6
  • 15. Summary • FIFO still holds (?) – It should be, in most general assumptions • According to the discussion above, we conclude that our simulation methodology gives the corrects results (outputs) • We further handle the relative speed between PEs and routers by tuning the clock speeds of them
  • 16. Routing and Link Speed Descriptions