SlideShare ist ein Scribd-Unternehmen logo
1 von 17
Downloaden Sie, um offline zu lesen
05.12.12 Daniele Antonioli 606082 1
Wireless Sensor Networks
Lab Work #3
MAC Protocol
Point to point
Non Beacon Enable Network
05.12.12 Daniele Antonioli 606082 2
Outline
● Check the randomness of the access to the
channel by varying BEmin
● Evaluate the throughput by varying the Payload
of the packets transmitted
05.12.12 Daniele Antonioli 606082 3
Non Beacon Enable Network
05.12.12 Daniele Antonioli 606082 4
Non Beacon Enable Network
Unslotted CSMA/CA Protocol
05.12.12 Daniele Antonioli 606082 5
Theoretical Results
Bemin ; Average Delay
Payload ; #ReTx ; Plost
05.12.12 Daniele Antonioli 606082 6
Experiment
05.12.12 Daniele Antonioli 606082 7
How to transmit 50 consecutive
packets
case stateDataTx:
App_Tx();
if (count<50)
{count++;
gState = stateDataTx;
}
else
gState = stateListen;
// TS_SendEvent(gAppTaskID_c, gAppEvtDummyEvent_c);
break;
05.12.12 Daniele Antonioli 606082 8
How to change the Payload
static void App_Tx(void)
{
if( (mcPendingPackets < mDefaultValueOfMaxPendingDataPackets_c) && (mpPacket == NULL) )
...................................................
mpPacket->msgData.dataReq.pMsdu = "oooo";
mpPacket->msgType = gMcpsDataReq_c;
/* Create the header using coordinator information gained during
the scan procedure. Also use the short address we were assigned
by the coordinator during association. */
FLib_MemCpy(mpPacket->msgData.dataReq.dstAddr, mCoordInfo.coordAddress, 8);
FLib_MemCpy(mpPacket->msgData.dataReq.srcAddr, maMyAddress, 8);
FLib_MemCpy(mpPacket->msgData.dataReq.dstPanId, mCoordInfo.coordPanId, 2);
FLib_MemCpy(mpPacket->msgData.dataReq.srcPanId, mCoordInfo.coordPanId, 2);
mpPacket->msgData.dataReq.dstAddrMode = mCoordInfo.coordAddrMode;
mpPacket->msgData.dataReq.srcAddrMode = mAddrMode;
mpPacket->msgData.dataReq.msduLength = 4;
......................
}
}
05.12.12 Daniele Antonioli 606082 9
How to change MAC parameter
BEmin
case stateSetParam:
UartUtil_Print("Setto BEmin", gAllowToBlock_d);
uint8_t param1[1];
*param1=0;
App_SetMacPib_Example(gMPibMinBe_c,param1);
uint8_t param[1];
mlmeMessage_t mlmeGet;
mlmeGet.msgType=gMlmeGetReq_c;
mlmeGet.msgData.getReq.pibAttribute=gMPibMinBe_c;
mlmeGet.msgData.getReq.pibAttributeValue=param;
MSG_Send(NWK_MLME, &mlmeGet);
UartUtil_Print("Getto BEmin", gAllowToBlock_d);
UartUtil_PrintHex(param, 1, 0);
gState=stateDataTx;
TS_SendEvent(gAppTaskID_c,gAppEvtDummyEvent_c);
break;
05.12.12 Daniele Antonioli 606082 10
How to change MAC parameter
BEmin
uint8_t App_SetMacPib_Example(uint8_t attribute, uint8_t
*pValue)
{
mlmeMessage_t mlmeSet;
/* Create and execute the Set request */
mlmeSet.msgType = gMlmeSetReq_c;
mlmeSet.msgData.setReq.pibAttribute = attribute;
mlmeSet.msgData.setReq.pibAttributeValue = pValue;
return MSG_Send(NWK_MLME, &mlmeSet);
}
05.12.12 Daniele Antonioli 606082 11
How to verify BEmin's change
05.12.12 Daniele Antonioli 606082 12
How to verify BEmin's change
05.12.12 Daniele Antonioli 606082 13
Measured Results
● Delays Statistics
● Throughput Statistics
05.12.12 Daniele Antonioli 606082 14
Delays Statistics
05.12.12 Daniele Antonioli 606082 15
Delays Statistics
05.12.12 Daniele Antonioli 606082 16
Delays Comparison
● Bemin=0;
● Average
Delay=1263[μsec];
● Max
Variation=38[μsec].
● Bemin=3;
● Average Delay=
1372[μsec];
● Max
Variation=200[μsec].
Averages Difference = 109[μsec]
Min Sniffer Uncertainty = ±360[μsec]
05.12.12 Daniele Antonioli 606082 17
Throughput Statistics
Payload = 4B
Data = 16B
Payload = 17B
Data = 29B
Payload = 48B
Data = 64B
# ReTx = 0/50 # ReTx = 0/50 # ReTx = 27/50
# PkLoss = 0 # PkLoss = 0 # PkLoss = 3
Payload = 4B
Data = 16B
Payload = 17B
Data = 29B
Payload = 48B
Data = 64B
# ReTx = 0/50 # ReTx = 0/50 # ReTx = 27/50
# PkLoss = 0 # PkLoss = 0 # PkLoss = 2

Weitere ähnliche Inhalte

Ähnlich wie Wireless Sensor Networks: MAC protocol of a point-to-point NBE network

Interface gsm with 8051 microcontroller (at89 c51)
Interface gsm with 8051 microcontroller (at89 c51)Interface gsm with 8051 microcontroller (at89 c51)
Interface gsm with 8051 microcontroller (at89 c51)
mdkousik
 
Extractions and performance monitoring
Extractions and performance monitoringExtractions and performance monitoring
Extractions and performance monitoring
JNTU University
 
Error ontologies and altarica transformation aadl meeting florida jan 24-27
Error ontologies and altarica transformation   aadl meeting florida jan 24-27Error ontologies and altarica transformation   aadl meeting florida jan 24-27
Error ontologies and altarica transformation aadl meeting florida jan 24-27
Vangelis Vassiliadis
 
Recharge_report_Automation
Recharge_report_AutomationRecharge_report_Automation
Recharge_report_Automation
KIIT
 
Advanced Postgres Monitoring
Advanced Postgres MonitoringAdvanced Postgres Monitoring
Advanced Postgres Monitoring
Denish Patel
 
Ajax World Comet Talk
Ajax World Comet TalkAjax World Comet Talk
Ajax World Comet Talk
rajivmordani
 
Data Acquisition
Data AcquisitionData Acquisition
Data Acquisition
azhar557
 

Ähnlich wie Wireless Sensor Networks: MAC protocol of a point-to-point NBE network (20)

Bluetooth World 2018 - Intro to Bluetooth Low Energy with Mbed OS
Bluetooth World 2018 - Intro to Bluetooth Low Energy with Mbed OSBluetooth World 2018 - Intro to Bluetooth Low Energy with Mbed OS
Bluetooth World 2018 - Intro to Bluetooth Low Energy with Mbed OS
 
Interface gsm with 8051 microcontroller (at89 c51)
Interface gsm with 8051 microcontroller (at89 c51)Interface gsm with 8051 microcontroller (at89 c51)
Interface gsm with 8051 microcontroller (at89 c51)
 
Check Point Cluster Setup R75
Check Point Cluster Setup R75Check Point Cluster Setup R75
Check Point Cluster Setup R75
 
Extractions and performance monitoring
Extractions and performance monitoringExtractions and performance monitoring
Extractions and performance monitoring
 
Error ontologies and altarica transformation aadl meeting florida jan 24-27
Error ontologies and altarica transformation   aadl meeting florida jan 24-27Error ontologies and altarica transformation   aadl meeting florida jan 24-27
Error ontologies and altarica transformation aadl meeting florida jan 24-27
 
Aug Xml Net Forum Dynamics Integration
Aug Xml Net Forum Dynamics IntegrationAug Xml Net Forum Dynamics Integration
Aug Xml Net Forum Dynamics Integration
 
20090315 Comet
20090315 Comet20090315 Comet
20090315 Comet
 
Didactum SNMP Manual
Didactum SNMP ManualDidactum SNMP Manual
Didactum SNMP Manual
 
Recharge_report_Automation
Recharge_report_AutomationRecharge_report_Automation
Recharge_report_Automation
 
GMock framework
GMock frameworkGMock framework
GMock framework
 
Intro
IntroIntro
Intro
 
Advanced Postgres Monitoring
Advanced Postgres MonitoringAdvanced Postgres Monitoring
Advanced Postgres Monitoring
 
Ajax World Comet Talk
Ajax World Comet TalkAjax World Comet Talk
Ajax World Comet Talk
 
merged
mergedmerged
merged
 
Data Acquisition
Data AcquisitionData Acquisition
Data Acquisition
 
Ping to Pong
Ping to PongPing to Pong
Ping to Pong
 
Api Kết nối gửi và nhận SMS
Api Kết nối gửi và nhận SMSApi Kết nối gửi và nhận SMS
Api Kết nối gửi và nhận SMS
 
Knock knock! Who's there? Doze. - Yonatan Levin
Knock knock! Who's there? Doze. - Yonatan Levin Knock knock! Who's there? Doze. - Yonatan Levin
Knock knock! Who's there? Doze. - Yonatan Levin
 
Demanding scripting
Demanding scriptingDemanding scripting
Demanding scripting
 
How to resolve irat kpi issue in huawei
How to resolve irat kpi issue in huaweiHow to resolve irat kpi issue in huawei
How to resolve irat kpi issue in huawei
 

Kürzlich hochgeladen

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 

Kürzlich hochgeladen (20)

Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 

Wireless Sensor Networks: MAC protocol of a point-to-point NBE network

  • 1. 05.12.12 Daniele Antonioli 606082 1 Wireless Sensor Networks Lab Work #3 MAC Protocol Point to point Non Beacon Enable Network
  • 2. 05.12.12 Daniele Antonioli 606082 2 Outline ● Check the randomness of the access to the channel by varying BEmin ● Evaluate the throughput by varying the Payload of the packets transmitted
  • 3. 05.12.12 Daniele Antonioli 606082 3 Non Beacon Enable Network
  • 4. 05.12.12 Daniele Antonioli 606082 4 Non Beacon Enable Network Unslotted CSMA/CA Protocol
  • 5. 05.12.12 Daniele Antonioli 606082 5 Theoretical Results Bemin ; Average Delay Payload ; #ReTx ; Plost
  • 6. 05.12.12 Daniele Antonioli 606082 6 Experiment
  • 7. 05.12.12 Daniele Antonioli 606082 7 How to transmit 50 consecutive packets case stateDataTx: App_Tx(); if (count<50) {count++; gState = stateDataTx; } else gState = stateListen; // TS_SendEvent(gAppTaskID_c, gAppEvtDummyEvent_c); break;
  • 8. 05.12.12 Daniele Antonioli 606082 8 How to change the Payload static void App_Tx(void) { if( (mcPendingPackets < mDefaultValueOfMaxPendingDataPackets_c) && (mpPacket == NULL) ) ................................................... mpPacket->msgData.dataReq.pMsdu = "oooo"; mpPacket->msgType = gMcpsDataReq_c; /* Create the header using coordinator information gained during the scan procedure. Also use the short address we were assigned by the coordinator during association. */ FLib_MemCpy(mpPacket->msgData.dataReq.dstAddr, mCoordInfo.coordAddress, 8); FLib_MemCpy(mpPacket->msgData.dataReq.srcAddr, maMyAddress, 8); FLib_MemCpy(mpPacket->msgData.dataReq.dstPanId, mCoordInfo.coordPanId, 2); FLib_MemCpy(mpPacket->msgData.dataReq.srcPanId, mCoordInfo.coordPanId, 2); mpPacket->msgData.dataReq.dstAddrMode = mCoordInfo.coordAddrMode; mpPacket->msgData.dataReq.srcAddrMode = mAddrMode; mpPacket->msgData.dataReq.msduLength = 4; ...................... } }
  • 9. 05.12.12 Daniele Antonioli 606082 9 How to change MAC parameter BEmin case stateSetParam: UartUtil_Print("Setto BEmin", gAllowToBlock_d); uint8_t param1[1]; *param1=0; App_SetMacPib_Example(gMPibMinBe_c,param1); uint8_t param[1]; mlmeMessage_t mlmeGet; mlmeGet.msgType=gMlmeGetReq_c; mlmeGet.msgData.getReq.pibAttribute=gMPibMinBe_c; mlmeGet.msgData.getReq.pibAttributeValue=param; MSG_Send(NWK_MLME, &mlmeGet); UartUtil_Print("Getto BEmin", gAllowToBlock_d); UartUtil_PrintHex(param, 1, 0); gState=stateDataTx; TS_SendEvent(gAppTaskID_c,gAppEvtDummyEvent_c); break;
  • 10. 05.12.12 Daniele Antonioli 606082 10 How to change MAC parameter BEmin uint8_t App_SetMacPib_Example(uint8_t attribute, uint8_t *pValue) { mlmeMessage_t mlmeSet; /* Create and execute the Set request */ mlmeSet.msgType = gMlmeSetReq_c; mlmeSet.msgData.setReq.pibAttribute = attribute; mlmeSet.msgData.setReq.pibAttributeValue = pValue; return MSG_Send(NWK_MLME, &mlmeSet); }
  • 11. 05.12.12 Daniele Antonioli 606082 11 How to verify BEmin's change
  • 12. 05.12.12 Daniele Antonioli 606082 12 How to verify BEmin's change
  • 13. 05.12.12 Daniele Antonioli 606082 13 Measured Results ● Delays Statistics ● Throughput Statistics
  • 14. 05.12.12 Daniele Antonioli 606082 14 Delays Statistics
  • 15. 05.12.12 Daniele Antonioli 606082 15 Delays Statistics
  • 16. 05.12.12 Daniele Antonioli 606082 16 Delays Comparison ● Bemin=0; ● Average Delay=1263[μsec]; ● Max Variation=38[μsec]. ● Bemin=3; ● Average Delay= 1372[μsec]; ● Max Variation=200[μsec]. Averages Difference = 109[μsec] Min Sniffer Uncertainty = ±360[μsec]
  • 17. 05.12.12 Daniele Antonioli 606082 17 Throughput Statistics Payload = 4B Data = 16B Payload = 17B Data = 29B Payload = 48B Data = 64B # ReTx = 0/50 # ReTx = 0/50 # ReTx = 27/50 # PkLoss = 0 # PkLoss = 0 # PkLoss = 3 Payload = 4B Data = 16B Payload = 17B Data = 29B Payload = 48B Data = 64B # ReTx = 0/50 # ReTx = 0/50 # ReTx = 27/50 # PkLoss = 0 # PkLoss = 0 # PkLoss = 2