1 / 31

Sensor Module - MammaSim

Sensor Module - MammaSim. 李 俊 廷 695430070. Outline. Introduction Motivation Sensor module (MannaSim) Extension. Outline. Introduction Motivation Sensor module (MannaSim) Extension. Introduction.

spencer
Download Presentation

Sensor Module - MammaSim

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Sensor Module - MammaSim 李 俊 廷 695430070

  2. Outline • Introduction • Motivation • Sensor module (MannaSim) • Extension

  3. Outline • Introduction • Motivation • Sensor module (MannaSim) • Extension

  4. Introduction • Wireless Sensor Network (WSN), an emerging technology comprising of sensing, computing, and internetworking, was nominated as one of the ten most potential technologies changing our world by MIT technology Review. • A WSN tends to be composed of hundreds or thousand of sensor nodes, which are launched over an environment to form a wireless ad hoc network. • The goal of a WSN is to monitor and sometimes to control an environment.

  5. Wireless Sensor Nodes

  6. Ubiquitous

  7. Outline • Introduction • Motivation • Sensor module (MannaSim) • Extension

  8. Wireless multimedia sensor networks • Is it feasible ? • High bandwidth demand • Power consumption • Application-specific QoS requirements • Ex: picture, media stream, real-time … • Multimedia coverage • Integration with other wireless technologies • …

  9. WSN is application-specific 小 大 高 低

  10. Wireless multimedia sensor networks • If it is feasible. • Task scheduling • In-network processing • Multimedia source coding techniques • …

  11. My goal in this lesson • 找個 sensor module for NS2 (MannaSim) • 測試所提出的網路架構對多媒體(影音串流)的效能影響,找個影像程式加到 sensor module (MyEvalVid) • 實際傳送影像來分析其效能

  12. Scenario Internet ?

  13. Outline • Introduction • Motivation • Sensor module (MannaSim) • Extension

  14. Why MannaSim ? • 安裝簡單 • 提供 Script Generator Tool 自動產生TCL程式碼 (use Java, like nsBench) • 有提供 flat 跟 hierarchical 的網路架構 • 容易擴充

  15. Downloading and installing MannaSim Framework • The MannaSim Framework is provided in two flavors : • ns-2.29 Patch • MannaSim Source Code

  16. ns-2.29 Patch • This is the simplest way to install Mannasim in an unmodified ns-2.29 distribution. • Get ns-2.29 all-in-one package from ns site. http://sourceforge.net/project/showfiles.php?group_id=149743&package_id=169689&release_id=371538 • Get MannaSim Framework ns-2.29 patch. http://www.mannasim.dcc.ufmg.br/download/mannasim-patch-ns2.29.tar.gz • Type the following command on the ns-allinone-2.29 folder: patch -p1 < mannasim-patch.diff • Install ns-2.29 as usual typing ns-allinone-2.29 folder: ./install

  17. MannaSim Source Code • This version is intended for users whose NS-2.29 distribution has already been changed. • Get ns-2.29 all-in-one package from ns site. • Get MannaSim Framework tar.gz file. http://www.mannasim.dcc.ufmg.br/download/mannasim-src-ns2.29.tar.gz • Unpack the tar.gz file into ns-2.29 main folder (if using ns all-in-one distribution ns-allinone-2.29/ns-2.29 folder). Inside mannasim/ folder just created look for a ns-modified-files/ folder. where ns-2.29 modified files are stored.

  18. MannaSim Source Code (con.) • Substitue ns-2.29 files listed bellow by it's MannaSim version stored in ns-modified-files/ folder in mannasim/ directory. • ns-2.29/apps/udp.cc • ns-2.29/common/ns-process.h • ns-2.29/common/packet.cc • ns-2.29/common/packet.h • ns-2.29/mac/mac-802_11.cc • ns-2.29/tcl/lib/ns-lib.tcl • ns-2.29/tcl/lib/ns-default.tcl • ns-2.29/Makefile.in • In ns-2.29 main folder re-run configuration script and then re-compile the system: ./configure ./make

  19. Install problem • MannaSim 附的 mac-802_11.cc 可能有問題,如果安裝失敗,用原始的 mac-802_11.cc 覆蓋過去,再重新make This code permits that MAC still uses backoff in the case of MAC idles and broadcasting. Guarantee in an On Demand network simulation the sensor nodes don't loose broadcast messages. void Mac802_11::send(Packet *p, Handler *h) { ... if(mhBackoff_.busy() == 0) { if(is_idle()) { ... if((u_int32_t)ETHER_ADDR(dh->dh_ra) == MAC_BROADCAST){ mhBackoff_.start(cw_, is_idle()); }else{ if(mhDefer_.busy() == 0) { rTime = (Random::random() % cw_) * (phymib_.getSlotTime()); mhDefer_.start(phymib_.getDIFS() + rTime); } ...

  20. MannaSim Scripts Generator

  21. Next test • Install MannaSim • 利用 Scripts Generator 產生 tcl • 執行 tcl 是否成功

  22. MannaSim classes • OnDemandData • OnDemandParameter • SensorBaseApp • CommonNodeApp • ClusterHeadApp • Sensor Node • DataGenerator • TemperatureDataGenerator • TemperatureAppData • Processing • SensedData

  23. Important Class • Sensor Node Class • It extends NS-2 MobileNode class adding specific sensor nodes characteristics as power consumption for sensing and processing activities. • DataGenerator Class • With methods to adjusts sensing interval and sensing type. • Type : PROGRAMED、CONTINUOUS、ON_DEMAND、EVENT_DRIVEN • TemperatureDataGenerator and CarbonMonoxideDataGenerator inherit DataGenerator class.

  24. Important Class (con.) • Battery Class • It extends NS-2 EnergyModel class. • The class contains methods to turn sensor node on and off, put it into sleep and wake it up. Also contains methods to decrease energy when a sensing, processing or disseminating job is performed by the sensor node. • SensedData Class • It acts as dissemination message for processed data witch is stored in a data buffer. • The class provides networking information such as source node identification, message type, message priority among others. • OnDemandData inherit SensedData

  25. Outline • Introduction • Motivation • Sensor module (MannaSim) • Extension

  26. Internet Internet Extension • 將簡單環境擴展到複雜環境

  27. Extension (con.) • 將簡單架構擴展到複雜架構

  28. Extension (con.) • 加入 real-time scheduling • Techniques for allocating and scheduling tasks on processors to ensure that deadlines are met. • Ex: rate-monotonic (RM) scheduling algorithm、earliest deadline first (EDF) algorithm …

  29. 補充 • MyEvalvid 結合了Evalvid 和 NS2 這兩個工具 • Evalvid 是一套由德國人發明的多媒體品質評估工具,主要功能是讓研究人員可以經過實際網路或模擬去驗證所提出來的網路相關技術對多媒體串流品質的影響

  30. EvalVid • Source (video raw data) • VS (Video Sender) • ET (Evaluate Trace) • FV (Fix Video) • PSNR

  31. MyEvalvid • myEvalvid : 讀取經Parser處理過後的影片記錄檔,並把記錄檔中每一個畫面切割成較小區段,在設定好的時間把這些區段往UDP層傳送 • my_UDP : 只是UDP agent的延伸,my_UDP agent把封包傳送時間、封包辨識和封包大小記錄在TCL scrip中所設定的檔案。 • myEvalvid_Sink : 接收my_UDP所傳送出來的封包,並且紀錄接收時間、封包辨識和封包大小記錄在TCL scrip中所設定的檔案。 Parser myEvalvid myEvalvid _Sink my_UDP Sink

More Related