Comparison of XMAC and BMAC Protocols Performance Evaluation of Computer Systems and Networks (CS681) Course Project Vijay Gabale (07305004) Ashutosh Dhekne (07305016)

Outline        

Motivation X-MAC, B-MAC protocols Implementation Architecture Simulation Metrics Experiments and results Conclusion Performance Evaluation Project Presentation, CSE, IIT Bombay

Motivation    

Comparison of the two protocols Experimenting with multi hop routes Investigate energy savings and latency deficits Interesting Questions 

 

What are the load conditions under which X-MAC outperforms B-MAC (or vice versa) What is the upper bound on end-to-end latency? Given a lifetime of the network, what should be the sleep period? Performance Evaluation Project Presentation, CSE, IIT Bombay

The Protocols     

Both are asynchronous protocols for wireless sensor networks Data transfer across duty cycled nodes is the primary objective Constraints on energy available at the node Sampling frequency is usually very low, possibly once in few minutes Use of preamble to inform neighbor about impending data transfer Performance Evaluation Project Presentation, CSE, IIT Bombay

Difference in preamble mechanism 





BMAC sends a long continuous preamble XMAC sends short strobes Target ID is encoded in the XMAC strobe Performance Evaluation Project Presentation, CSE, IIT Bombay

Implementation     

 

CSMA/CA protocol Lossless wireless medium – global buffers Grid network as well as linear topology Simulated individual node – use thread! Scheduling unpredictability – use locks, conditioned waits and signals! Per node measurement – thread-specific clock! Randomness inherent to scheduling of threads

Performance Evaluation Project Presentation, CSE, IIT Bombay

Architecture No

1

2

3

4

5

6

7

Channel Busy? Yes

8

Wait till timeout / Free Channels No

3

Timeout? Yes

Lock channel

Do Processing Unlock Channel

Sleep Performance Evaluation Project Presentation, CSE, IIT Bombay

B MAC Data Send and Receive

1

2

3

Preamble

Transmitter Conditioned Wait

1

3 2

Data

Ack

Receiver Condition Wait

Transmitter Lock

Receiver Lock

Transmitter Unlock

Receiver Unlock

Performance Evaluation Project Presentation, CSE, IIT Bombay

X MAC Data Send and Receive 

Receiver woke up in between a strobe wasBusy

Ack

Data

Ack

Transmitter Conditioned Wait

Receiver Conditioned Wait

Transmitter Lock

Receiver Lock

Transmitter Unlock

Receiver Unlock

Performance Evaluation Project Presentation, CSE, IIT Bombay

X MAC Data Send and Receive 

Receiver woke up when channel was free wasFree

Ack

Data

Ack

Transmitter Conditioned Wait

Receiver Conditioned Wait

Transmitter Lock

Receiver Lock

Transmitter Unlock

Receiver Unlock

Performance Evaluation Project Presentation, CSE, IIT Bombay

System parameters and Metrics 

System parameters   



Sleep time Number of nodes Strobe interval

Metrics   

Energy Latency Duty cycle Performance Evaluation Project Presentation, CSE, IIT Bombay

How protocols behave for different sleep times? 

Set up  



Nodes: 9 (Grid) Sleep time: 10ms to 50ms

Measure 

Energy

B-MAC requires more energy than X-MAC at any sleep time. Moreover, energy required increases with increased sleep time. It is so due to the overhead of listening to the long preamble in B-MAC Performance Evaluation Project Presentation, CSE, IIT Bombay

How protocols behave for different sleep times? 

Set up  



Nodes: 9 (Grid) Sleep time: 10ms to 50ms

Measure 

Latency

B-MAC requires more time to transfer packets from the source to the destination. This is because the entire preamble has to be always sent, even though the receiver was already awake. X-MAC saves this time. Performance Evaluation Project Presentation, CSE, IIT Bombay

How protocols behave with respect to duty cycling? 

Set up  



Nodes: 10 Sleep time: 10ms

Measure 

Duty Cycle

X-MAC not only completes a transfer faster, it also allows lower duty cycling.

Performance Evaluation Project Presentation, CSE, IIT Bombay

How protocols behave for different number of nodes? 

Set up  



Nodes: 4 to 10 Sleep time: 10ms

Measure 

Energy

Energy required to transfer data obviously increases with number of intermediate hops. However, for B-MAC, it increases faster than that for X-MAC. This is a benefit of using strobe preamble. Performance Evaluation Project Presentation, CSE, IIT Bombay

How protocols behave for different number of nodes? 

Set up  



Nodes: 4 to 10 Sleep time: 10ms

Measure 

Latency

B-MAC almost always requires more time to transfer packets end to end. With increasing nodes, this time does not increase as fast as we would have expected. Performance Evaluation Project Presentation, CSE, IIT Bombay

How X-MAC behaves for different strobe intervals? 

Set up   



Nodes: 9 Sleep time: 10ms Strobe Interval 500 to 3500

Measure 

Energy

With increased strobe interval, the X-MAC comes closer to B-MAC. With increased strobe interval, the overall energy consumption also increases. Performance Evaluation Project Presentation, CSE, IIT Bombay

How much energy will be required? 

Set up  



Nodes: 9 Sleep time: 10ms to 50ms

Measure 

Energy

Given a certain energy constraint on the network, we can choose the appropriate sleep time. This directly translates to the expected lifetime of the network. Energy (J) = Power (W) * Time (sec) Performance Evaluation Project Presentation, CSE, IIT Bombay

How much latency to expect? 

Set up  



Nodes: 9 Sleep time: 10ms to 50ms

Measure 

Latency

Increasing the sleep time does not help B-MAC. Both energy as well as latency worsen. With X-MAC, the energy slightly dips at an optimal sleep period. Latency almost monotonically increases with sleep period. Performance Evaluation Project Presentation, CSE, IIT Bombay

Conclusion 





X-MAC outperforms B-MAC in both energy consumed and the latency of end to end packet transfer X-MAC offers better duty cycling opportunities—nodes sleep for more time Nevertheless, the “Sleep time” system parameter must be judiciously chosen for optimal performance Performance Evaluation Project Presentation, CSE, IIT Bombay

References 







Michael Buettner, Gary V. Yee, Eric Anderson, Richard Han. XMAC: A Short Preamble MAC Protocol for Duty-Cycled Wireless Sensor Networks. Sensys ’06. J. Polastre, J. Hill, and D. Culler. Versatile low power media access for wireless sensor networks. In The Second ACM Conference on Embedded Networked Sensor Systems (SenSys), pages 95–107, November 2004. Confidence Interval calculation in http://www.cse.usf.edu/~christen/tools/toolpage.html Confidence interval general information from http://en.wikipedia.org/wiki/Confidence_interval and http://en.wikipedia.org/wiki/Student%27s_t-distribution

Performance Evaluation Project Presentation, CSE, IIT Bombay

Thank you

Confidence Interval Calculations  

90% confidence interval Calculated using the formula: Sqrt(Variance)

Mean

Table Lookup

Number of samples

Performance Evaluation Project Presentation, CSE, IIT Bombay

Division of work      

B-MAC, X-MAC frame formats Sensor network design Threading architecture Measurements Shell, Python scripting One is alone, two is company, three is crowd!

Performance Evaluation Project Presentation, CSE, IIT Bombay

Software requirements  





The simulation program is created in C Uses shell script, python script and gnuplot for producing results We require the pthread library and the math library to be installed. (–lpthread –lrt –lm flags required) GNUPlot 4.2 for the histogram graphs.

Performance Evaluation Project Presentation, CSE, IIT Bombay

Comparison of XMAC and BMAC Protocols - Ashutosh Dhekne

X-MAC offers better duty cycling opportunities—nodes sleep for ... One is alone, two is company, three is crowd! ... Software requirements. ▫ The simulation ...

317KB Sizes 15 Downloads 177 Views

Recommend Documents

Greening the Internet; Power Optimization - Ashutosh Dhekne
Building faster, smaller and more powerful computer systems has been a ... of power has been a consideration only in laptops and devices that are not mains .... is set to 0.1, the station remains awake for 10 beacons and then sleeps between.

Greening the Internet; Power Optimization - Ashutosh Dhekne
of power has been a consideration only in laptops and devices that are not ..... [9] have connected a low power radio to a PDA so that the main PDA does not.

Blind Digital Signatures, Group Digital Signatures ... - Ashutosh Dhekne
Network Security Course Project ..... merchant seeing a note must be able to check that the note is indeed valid, but need not ... checking validity and non-duplicity of votes. ..... collect connection data and deanonymise some of their users.

Blind Digital Signatures, Group Digital Signatures ... - Ashutosh Dhekne
Network Security Project Presentation,. CSE Department, IIT ... Check credentials,. Sign(B)=Bd. Cast vote . Sign(m) = Sign(B)/r. (Sign(m))e = H(m) ...

Blind Digital Signatures, Group Digital Signatures ... - Ashutosh Dhekne
Network Security Project Presentation,. CSE Department, IIT Bombay ... RSA public key (n,e), private key (n,d). ▫ Group G : ❑ |G|=n. ❑ Cyclic subgroup of Z p2.

Comparison of Square Comparison of Square-Pixel and ... - IJRIT
Square pixels became the norm because there needed to be an industry standard to avoid compatibility issues over .... Euclidean Spaces'. Information and ...

Methods and Protocols Methods and Protocols
This publication is printed on acid-free paper. ∞. ANSI Z39.48-1984 (American ... [email protected]; or visit our Website: www.humanapress.com. Photocopy ...... Producing chimeras with host blastocysts or morula from strains different ...

THE HONOURABLE SRI JUSTICE ASHUTOSH MOHUNTA and THE ...
further contended that the officers/workmen employees, those who are in service of the bank prior to 29.09.1995 and retired after that date and prior to 27.04.2010, are alone entitled to exercise option to join the. Pension Scheme. He further contend

COMPARISON OF EIGENMODE BASED AND RANDOM FIELD ...
Dec 16, 2012 - assume that the failure of the beam occurs at a deformation state, which is purely elastic, and no plasticity and residual stress effects are taken into account during the simulation. For a more involved computational model that takes

BMAC March 2017 Newsletter.pdf
Page 1 of 12. BOWIE MITCHELLVILLE DIAMOND November November 2016. Greetings Brothers,. Welcome to the March edition of the. BMAC Diamond. I am appealing to all. BMAC Brother's to answer the call to. service. The election process for Chapter. officers

COMPARISON OF ACUTE AND DELAYED ANTIEMETIC EFFECT ...
COMPARISON OF ACUTE AND DELAYED ANTIEMETIC EFFECT AND THE.pdf. COMPARISON OF ACUTE AND DELAYED ANTIEMETIC EFFECT AND THE.

Advanced Practical Medicinal Chemistry - Ashutosh Kar.pdf ...
Page 2 of 2. Advanced Practical Medicinal Chemistry - Ashutosh Kar.pdf. Advanced Practical Medicinal Chemistry - Ashutosh Kar.pdf. Open. Extract. Open with.

Review of Routing Protocols Routing Protocols ...
The safety aspect (such as accidents, brake event) of VANET application warrants on time delivery of ... the design of efficient routing protocols for VANET challenging. Fig. 2- Routing protocol hierarchy. VANET ROUTING PROTOCOLS. Position. Based. GP

comparison
I She's os tall as her brother. Is it as good as you expected? ...... 9 The ticket wasn't as expensive as I expected. .. .................... ............ . .. 10 This shirt'S not so ...

January 2017 BMAC Diamond.pdf
WIE MITCHELLVILLE DIAMOND November 2016. BOWIE MITCHELLVILLE DIAMOND. Welcome to the January ... EMAIL: [email protected]. POSITION: SOCIAL ACTION COM- MIT. NAME: BROTHER ARTHUR RUSSELL ... EMAIL: [email protected]. Page 3 of 9. Main menu. Displaying Jan

comparison
1 'My computer keeps crashing,' 'Get a ......... ' . ..... BORN: WHEN? WHERE? 27.7.84 Leeds. 31.3.84 Leeds. SALARY. £26,000 ...... 6 this job I bad I my last one.

Comparison of Blessing of Oils and Consecration of Chrism (Latin ...
Page 1 of 6. Comparison of the Order of Blessing the Oil of Catechumens and of the Sick and of Consecrating the Chrism. 1971 Latin editio typica, 1972 ICEL, 2016 ICEL. BLESSING OF THE OIL OF THE SICK. Ordo benedicendi oleum catechumenorum et infirmor

Comparison of Blessing of Oils and Consecration of Chrism (Latin ...
Page 1 of 6. Comparison of the Order of Blessing the Oil of Catechumens and of the Sick and of Consecrating the Chrism. 1971 Latin editio typica, 1972 ICEL, 2016 ICEL. BLESSING OF THE OIL OF THE SICK. Ordo benedicendi oleum catechumenorum et infirmor

BMAC February 2017 News Letter.compressed.pdf
Page 2 of 13. BOWIE MITCHELLVILLE DIAMOND | FEBRUARY 2017 2. Officers. POSITION: POLEMARCH. NAME: BROTHER WALTER SWINDELL. POSITION: VICE POLEMARCH. NAME: BROTHER DAVID JANIFER. POSITION: 2ND VICE POLEMARCH. NAME: BROTHER HUGENE FIELDS. POSITION: KEE

January 2017 BMAC Diamond.pdf
Committee Chairs. Whoops! There was a problem loading this page. Retrying... Whoops! There was a problem loading this page. Retrying... January 2017 BMAC Diamond.pdf. January 2017 BMAC Diamond.pdf. Open. Extract. Open with. Sign In. Main menu. Displa

Proteoglycan Protocols Proteoglycan Protocols
Glycerol stock of the (semi)-synthetic scFv Library #1 [Dr. G. Winter, Cambridge Uni- ..... Pick individual bacterial clones, using sterile toothpicks, from the serial ...