Sensor Network Simulation ( Sensim) Components Analysis AICIP Research Group Presentation Yang Liu.

27
AICIP Research Group Presentation Yang Liu

Transcript of Sensor Network Simulation ( Sensim) Components Analysis AICIP Research Group Presentation Yang Liu.

Page 1: Sensor Network Simulation ( Sensim) Components Analysis AICIP Research Group Presentation Yang Liu.

Sensor

Network Si

mulation

( Sensi

m)

Components

Analysis

Sensor

Network Si

mulation

( Sensi

m)

Components

Analysis

AICIP Research Group PresentationAICIP Research Group Presentation

Yang Liu Yang Liu

Page 2: Sensor Network Simulation ( Sensim) Components Analysis AICIP Research Group Presentation Yang Liu.

Design Goal

• Parallel discrete event sensor network simulator

• Scale to thousands of sensor nodes

• Provide energy consumption computation

• Integrate typical protocols of sensor networks ( MAC, network, application ), adopt an open architecture for future protocol implementation

• Easy to operate, easy to understand

ACA design, large dataset visualization

Page 3: Sensor Network Simulation ( Sensim) Components Analysis AICIP Research Group Presentation Yang Liu.

What to Simulate?

• Metrics for sensor network• Three prospective

• Individual

• Group ( regional)

• Network wide

• Metrics• Throughput

• Power consumption

• Time ( Latency, lifetime, idle time, transmitting and receiving time etc.)

• QOS ( packet loss, Coverage, and sensor network failure)

Page 4: Sensor Network Simulation ( Sensim) Components Analysis AICIP Research Group Presentation Yang Liu.

How to Simulate?

• A brief simulation architecture

Page 5: Sensor Network Simulation ( Sensim) Components Analysis AICIP Research Group Presentation Yang Liu.

Parallelization

• Using Message Passing Interface (MPI) Standard and PC cluster to realize parallel simulation.

• We choose MPICH-1.2.5.2 library.

• PC cluster: peacock, P1, P2, and P3.

• * How to decompose work ?

Page 6: Sensor Network Simulation ( Sensim) Components Analysis AICIP Research Group Presentation Yang Liu.

Parallel Algorithm Design• Typical techniques

• Data parallel model:

Identical operations applied concurrently on different data• Task-Graph Model

Different processes are executing different tasks ( static mapping)

• Work-Pool Model

Dynamic mapping tasks to processes• Work-Manage Model

One process generates and distributes work to others• Producer-Consumer Model

Data is passed through several processes, each perform a different task just like pipeline

Page 7: Sensor Network Simulation ( Sensim) Components Analysis AICIP Research Group Presentation Yang Liu.

Our Case

• Scale to thousands of sensor nodes, memory is a big issue.

• The tasks are high correlated, therefore it is hard to partition.

• Data parallel model is desirable.

In our case, to partition sensor nodes based on region

Page 8: Sensor Network Simulation ( Sensim) Components Analysis AICIP Research Group Presentation Yang Liu.

Work Decomposition

• Region based partition ( histogram)

• Maximize data locality

• Minimize volume of data exchange

• Minimize frequency of interactions

X axis Partition

Y axis Partition

XY 2D Partition

Page 9: Sensor Network Simulation ( Sensim) Components Analysis AICIP Research Group Presentation Yang Liu.

Overlapping Communication and computation

• Initiate communication ( MPI_Isend/MPI_Irecv)

• Calculate inner values

• Finish communication ( MPI_Waitall)

• Calculate boundary values

One ghost cell N-ghost zone

Page 10: Sensor Network Simulation ( Sensim) Components Analysis AICIP Research Group Presentation Yang Liu.

Battery Model

• Linear Model:• U: current capacity U’: previous capacity i(t): instantaneous current

• Non-Linear Model: [2]• T: discharged time; K, h: constants depending on cell design and chemical

architecture of battery; Va: average value of the cell voltage during the discharge; I: discharge current;

∫+t

t=t

0

0

dt i(t) + U' = Udt

-hIK = T h-1aa I•K•V=T•I•V = E

Page 11: Sensor Network Simulation ( Sensim) Components Analysis AICIP Research Group Presentation Yang Liu.

Battery Model (cont.)

• Pulsed Discharge Model [1]• Relaxation phenomena

If battery is allowed to relax, lost capacity can be recovered.

• Binary Pulsed Discharge Model- Based on Binary Markov Chain

• Generalized Pulsed Discharge Model

Page 12: Sensor Network Simulation ( Sensim) Components Analysis AICIP Research Group Presentation Yang Liu.

Energy Consumption Model

• Some experiment data[3][4]

Page 13: Sensor Network Simulation ( Sensim) Components Analysis AICIP Research Group Presentation Yang Liu.

Energy Consumption Model (cont.)

• Simple energy model• Energy spent in transmission = (edda + et )b• Energy spent in reception =erb• Energy spent sensing =esb• Energy spent in computation ( leakage current model)[6]

Depends on the total capacitance switched and the number of cycles the program

takes

• ed is the energy dissipated per bit per m2 (amplifier)• et is the energy spent by transmission circuitry per bit• er is the energy spent by reception circuitry per bit• es is the energy spent sensing per bit• b is number of bits to transmit or receive• t is the time• α is a constant 2(will use the common values of α=2 and α=4)• d is the transmitting distance

Page 14: Sensor Network Simulation ( Sensim) Components Analysis AICIP Research Group Presentation Yang Liu.

PHY Layer Abstraction

• Radio Propagation Model: [5]• Outdoor propagation Model:

• Free Space Model:

• Pf : transmitted signal power

• Pr : receive signal power

• Gt Gr : antenna gains of transmitter and receiver respectively

• L is system loss ( L > 1)

• λ : wavelength

• d : distance from transmitter

Ld)π4(

λGGP=)d(P 22

2Tff

r

Page 15: Sensor Network Simulation ( Sensim) Components Analysis AICIP Research Group Presentation Yang Liu.

PHY Layer Abstraction (cont.)

• Ground Reflection (Two-Ray)

• Faster power loss as distance increase

• ht hr are the height of the transmit and receive antennas respectively

• Cross-over distance dc

• d < dc free space use else two-ray model

Ld

hhGGp=)d(P 4

2r

2trtt

r

λ/)hhπ4(=d rtc

Page 16: Sensor Network Simulation ( Sensim) Components Analysis AICIP Research Group Presentation Yang Liu.

PHY Layer Abstraction (cont.)

• Indoor Propagation Model:• Shadowing model.

• Underwater Acoustic Propagation Model:

Page 17: Sensor Network Simulation ( Sensim) Components Analysis AICIP Research Group Presentation Yang Liu.

Mac Layer Abstraction

• Typical protocols

• Contention-based protocols• IEEE 802.11

• PAMAS

• S-MAC

• TDMA

Page 18: Sensor Network Simulation ( Sensim) Components Analysis AICIP Research Group Presentation Yang Liu.

MAC Layer Abstraction (cont.)

• Take S – Mac as an example

• Energy consumption abstraction• Three states: receive, transmit, sleep

• Broadcast:

• Point-to-point: RTS/CTS/ACK• Sender

• receiver

)b+size×m(+b+size×m=Cost recvS∈n

recvsendsend ∑

recvctlsendsendrecvctlsendctl b+b+size×m+b+b=Cost

sendctlrecvrecvsendctlrecvctl b+b+size×m+b+b=Cost

Page 19: Sensor Network Simulation ( Sensim) Components Analysis AICIP Research Group Presentation Yang Liu.

Mac Layer Abstraction (cont.)

• Latency computation

• Carrier sense delay

• Backoff delay

• Transmission delay

• Propagation delay

• Sleep delay

• Queuing delay

• Processing delay

Page 20: Sensor Network Simulation ( Sensim) Components Analysis AICIP Research Group Presentation Yang Liu.

Queuing Model

• Discrete time queuing models

• Models • Depending on arrival and departure

processes

• Geo/Geo/1/ and Geo/Geo/1/N

• M/M/1

Page 21: Sensor Network Simulation ( Sensim) Components Analysis AICIP Research Group Presentation Yang Liu.

Queuing Model (cont.)

• Geo/Geo/1 and Geo/Geo/1/N queue model

Geo/Geo/1 Geo/Geo/1/N

• M/M/1 queue model

M/M/1 Geo/Geo/1

Page 22: Sensor Network Simulation ( Sensim) Components Analysis AICIP Research Group Presentation Yang Liu.

Network Layer Abstraction

• Protocols:• Flooding -SPIN

• Gradient – Directed Diffusion

• Clustering - LEACH

• Geographic -GEAR

• Energy aware - SPIN-EC, LEACH, GEAR

• Highlight• Route setting up overhead

• Communication Pattern (unicast, multicast, broadcast)

• Packet transmitted

Page 23: Sensor Network Simulation ( Sensim) Components Analysis AICIP Research Group Presentation Yang Liu.

Middleware Abstraction

• Agent-based architecture

• Client/Server based architecture

• In-network processing scheme

• Query system

Page 24: Sensor Network Simulation ( Sensim) Components Analysis AICIP Research Group Presentation Yang Liu.

APP Layer Abstraction

• Traffic Generation Model• CBT

Constant bit rate transfer : Home surveillance, parking

lot sensor network application

• Target detection and trackingMoving target Models:

1. Given start point, moving in straight line at constant speed. When arriving the edge, change the direction by “bouncing” off the virtual wall.

2. Moving target is given an initial location along with a series of waypoints

Page 25: Sensor Network Simulation ( Sensim) Components Analysis AICIP Research Group Presentation Yang Liu.

Topology Generation Model

• GT-ITM, Tiers Model

Concern with the hierarchical properties of

Internet

• Inet, PLRG

Connectivity properties

• BRITE

Hierarchical properties, degree distributions,

Connectivity properties

Page 26: Sensor Network Simulation ( Sensim) Components Analysis AICIP Research Group Presentation Yang Liu.

Large Data Set Visualization

• Large memory and high speed requirement for sensor networks visualization

• Hierarchy sensor data rendering• Higher level – region based information

Energy consumption map, Traffic distribution map

simulation data report based on the whole area etc.

• Lower Level – portion of sensor nodes information

Detailed information of sensor nodes

Graph tools

Page 27: Sensor Network Simulation ( Sensim) Components Analysis AICIP Research Group Presentation Yang Liu.

References• [1] C.F.Chiasserini and R.R.Rao, “Pulsed Battery Discharge in

Communication Devices”, MobiCOM , 1999.

• [2] H.D.Linden, “Handbook of Batteries”, 2nd ED. McGrawHill, 1995

• [3] Vijay Raghunathan, Curt Schurgers, Sung Park, Mani B. Srivastava.  “Energy –aware wireless micro sensor networks." IEEE Signal Processing Magazine, Volume: 19 Issue: 2, Mar 2002.

• [4] A. Mainwaring, D. Culler, J. Polastre, R. Szewczyk, J. Anderson. "Wireless Sensor Networks for Habitat Monitoring," Proceedings of the First ACM International Workshop on Wireless Sensor Networks and Applications (WSNA '02), Georgia, September 2002.

• [5] T.S.Rappaport, “Wireless communications principles and practice”, Prentice Hall 2002

• [6] A.sinha and A. Chandrakasan, “Energy Aware Software”, Proceedings of the 13th International Conference on VLSI Design, 2000