25
http://www.tkn.tu-berlin.de MiXiM – The Physical Layer An Architecture Overview Karl Wessel, Michael Swigulski, Andreas Köpke, Daniel Willkomm 2 nd International workshop on OMNeT++ Rome, March 6 th 2009

Physical Layer Modeling - summit.omnetpp.org · Daniel Willkomm MiXiM – The Physical Layer 3 MiXiM Introduction MiXiM is a combination of several frameworks for wireless simulations

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Physical Layer Modeling - summit.omnetpp.org · Daniel Willkomm MiXiM – The Physical Layer 3 MiXiM Introduction MiXiM is a combination of several frameworks for wireless simulations

http://www.tkn.tu-berlin.de

MiXiM – The Physical LayerAn Architecture Overview

Karl Wessel, Michael Swigulski,

Andreas Köpke, Daniel Willkomm

2nd International workshop on OMNeT++

Rome, March 6th 2009

Page 2: Physical Layer Modeling - summit.omnetpp.org · Daniel Willkomm MiXiM – The Physical Layer 3 MiXiM Introduction MiXiM is a combination of several frameworks for wireless simulations

Daniel Willkomm MiXiM – The Physical Layer 2

Outline

MiXiM Introduction Motivating Example MiXiM PHY Architecture Interaction Example: Receiving an AirFrame Common Model for Analog Effects The Mapping Concept

Page 3: Physical Layer Modeling - summit.omnetpp.org · Daniel Willkomm MiXiM – The Physical Layer 3 MiXiM Introduction MiXiM is a combination of several frameworks for wireless simulations

Daniel Willkomm MiXiM – The Physical Layer 3

MiXiM Introduction

MiXiM is a combination of several frameworks for wireless simulations in OMNeT++

Mobility Framework (MF) Channel Simulator (ChSim) MacSimulator Positif framework

For an overview of MiXiMs capabilities see last years paper:

Simulating Wireless and Mobile Networks in OMNeT++

The MiXiM Vision

This years paper: Focus on PHY architecture

Page 4: Physical Layer Modeling - summit.omnetpp.org · Daniel Willkomm MiXiM – The Physical Layer 3 MiXiM Introduction MiXiM is a combination of several frameworks for wireless simulations

Daniel Willkomm MiXiM – The Physical Layer 4

Challenges in PHY layer simulation

Example: 802.11n Multiple channels Multiple frequencies (OFDM) Multiple antennas (MIMO) Multiple bit rates (header, message body) Forward error correction

Suppose you want to examine co-existence with an 802.15.4 based sensor network, this requires a PHY that

Treats time, frequency and space as separate dimensions Works with in-system and out-of-system interferers Evaluates the influence of coding (DSSS vs OFDM+FEC)

The MiXiM PHY architecture gives a hand in writing it

Page 5: Physical Layer Modeling - summit.omnetpp.org · Daniel Willkomm MiXiM – The Physical Layer 3 MiXiM Introduction MiXiM is a combination of several frameworks for wireless simulations

Daniel Willkomm MiXiM – The Physical Layer 5

Elements of a wireless transmission

Page 6: Physical Layer Modeling - summit.omnetpp.org · Daniel Willkomm MiXiM – The Physical Layer 3 MiXiM Introduction MiXiM is a combination of several frameworks for wireless simulations

Daniel Willkomm MiXiM – The Physical Layer 6

PHY Requirements (I)

Sending of messages Interface to MAC to set appropriate parameters

Sending power, modulation, … Radio switching

Receiving of messages Modeling propagation and transmission delay Frame synchronization / frame detection SINR calculation / bit error analysis

Channel sensing RSSI / channel state estimation

Page 7: Physical Layer Modeling - summit.omnetpp.org · Daniel Willkomm MiXiM – The Physical Layer 3 MiXiM Introduction MiXiM is a combination of several frameworks for wireless simulations

Daniel Willkomm MiXiM – The Physical Layer 7

PHY Requirements (II) – The Signal Concept

Modeling of the message as an electromagnetic wave Multiple dimensions

Time Frequency Space

Influences of the environment on the message Pathloss Shadowing Fading

Antenna models Antenna gain MIMO

Page 8: Physical Layer Modeling - summit.omnetpp.org · Daniel Willkomm MiXiM – The Physical Layer 3 MiXiM Introduction MiXiM is a combination of several frameworks for wireless simulations

Daniel Willkomm MiXiM – The Physical Layer 8

MiXiM PHY Architecture Overview

Page 9: Physical Layer Modeling - summit.omnetpp.org · Daniel Willkomm MiXiM – The Physical Layer 3 MiXiM Introduction MiXiM is a combination of several frameworks for wireless simulations

Daniel Willkomm MiXiM – The Physical Layer 9

MiXiM PHY Architecture

On sender side TX power Channel Bitrates Transmission Antenna

After reception also Path loss Shadowing Fading Receiving Antenna

Page 10: Physical Layer Modeling - summit.omnetpp.org · Daniel Willkomm MiXiM – The Physical Layer 3 MiXiM Introduction MiXiM is a combination of several frameworks for wireless simulations

Daniel Willkomm MiXiM – The Physical Layer 10

MiXiM PHY Architecture

Computes Path loss Shadowing Fading Antenna Gain

Page 11: Physical Layer Modeling - summit.omnetpp.org · Daniel Willkomm MiXiM – The Physical Layer 3 MiXiM Introduction MiXiM is a combination of several frameworks for wireless simulations

Daniel Willkomm MiXiM – The Physical Layer 11

MiXiM PHY Architecture

Classifies signals Noise Potential packet Channel busy or idle

“Decodes” packets Apply FEC Apply interference Decide packet reception

or packet loss

Page 12: Physical Layer Modeling - summit.omnetpp.org · Daniel Willkomm MiXiM – The Physical Layer 3 MiXiM Introduction MiXiM is a combination of several frameworks for wireless simulations

Daniel Willkomm MiXiM – The Physical Layer 12

MiXiM PHY Architecture

Radio state Receive Transmit Sleep Switching

Page 13: Physical Layer Modeling - summit.omnetpp.org · Daniel Willkomm MiXiM – The Physical Layer 3 MiXiM Introduction MiXiM is a combination of several frameworks for wireless simulations

Daniel Willkomm MiXiM – The Physical Layer 13

MiXiM PHY Architecture

Track AirFrames on Channel Packets Simultaneous transmissions Provide interfering packets for SINR /

RSSI calculation to decider

Page 14: Physical Layer Modeling - summit.omnetpp.org · Daniel Willkomm MiXiM – The Physical Layer 3 MiXiM Introduction MiXiM is a combination of several frameworks for wireless simulations

Daniel Willkomm MiXiM – The Physical Layer 14

MiXiM PHY Architecture

Only OMNeT++ module Reception of OMNeT++ messages Transmission of OMNeT++ messages Configuration of used models

Page 15: Physical Layer Modeling - summit.omnetpp.org · Daniel Willkomm MiXiM – The Physical Layer 3 MiXiM Introduction MiXiM is a combination of several frameworks for wireless simulations

Daniel Willkomm MiXiM – The Physical Layer 15

Summary: PHY Class Model

BasePhyLayer: Interface to OMNeT++ Signal: Container for analogue aspects AnalogueModels: Fading, path loss, shadowing,...

You can sepcify an arbitrary number of AnalogueModels

ChannelInfo: Track state of wireless medium Radio: Transmitting / receiving / sleeping Decider: Abstract MAC requirements, “convert”

analogue signal to bit/packet errors Can be easily exchanged /extended

Page 16: Physical Layer Modeling - summit.omnetpp.org · Daniel Willkomm MiXiM – The Physical Layer 3 MiXiM Introduction MiXiM is a combination of several frameworks for wireless simulations

Daniel Willkomm MiXiM – The Physical Layer 16

Interaction Example: Receiving an AirFrame

Page 17: Physical Layer Modeling - summit.omnetpp.org · Daniel Willkomm MiXiM – The Physical Layer 3 MiXiM Introduction MiXiM is a combination of several frameworks for wireless simulations

Daniel Willkomm MiXiM – The Physical Layer 17

Applying analogue models

Page 18: Physical Layer Modeling - summit.omnetpp.org · Daniel Willkomm MiXiM – The Physical Layer 3 MiXiM Introduction MiXiM is a combination of several frameworks for wireless simulations

Daniel Willkomm MiXiM – The Physical Layer 18

Common Model for Analogue Effects

P r=P t λ4π 1d α

Fading Path loss

FEC: Coding gain

Page 19: Physical Layer Modeling - summit.omnetpp.org · Daniel Willkomm MiXiM – The Physical Layer 3 MiXiM Introduction MiXiM is a combination of several frameworks for wireless simulations

Daniel Willkomm MiXiM – The Physical Layer 19

Mapping

FEC, fast fading, slow fading, path loss and antenna gain can all be expressed as a mapping:

Radio state can be expressed in a similar fashion

( ) TXRX Psf,t,f=P

Gai

n

Express all effects on a signal as GAIN(Define gain smaller 1 for attenuation effects)

Page 20: Physical Layer Modeling - summit.omnetpp.org · Daniel Willkomm MiXiM – The Physical Layer 3 MiXiM Introduction MiXiM is a combination of several frameworks for wireless simulations

Daniel Willkomm MiXiM – The Physical Layer 20

How to Handle Different Dimensions?

Problem: dimension mismatch, e.g.: Radio: define gain in one dimension Transmitter: defines a two-dimensional signal (time,

frequency)

How to compute the received power?

Ga

in

Page 21: Physical Layer Modeling - summit.omnetpp.org · Daniel Willkomm MiXiM – The Physical Layer 3 MiXiM Introduction MiXiM is a combination of several frameworks for wireless simulations

Daniel Willkomm MiXiM – The Physical Layer 21

Fill Mapping

Ga

in

Page 22: Physical Layer Modeling - summit.omnetpp.org · Daniel Willkomm MiXiM – The Physical Layer 3 MiXiM Introduction MiXiM is a combination of several frameworks for wireless simulations

Daniel Willkomm MiXiM – The Physical Layer 22

Multiply Mappings

+

=

RX power Radio state

TX power

Page 23: Physical Layer Modeling - summit.omnetpp.org · Daniel Willkomm MiXiM – The Physical Layer 3 MiXiM Introduction MiXiM is a combination of several frameworks for wireless simulations

Daniel Willkomm MiXiM – The Physical Layer 23

Mapping Key Entries

Page 24: Physical Layer Modeling - summit.omnetpp.org · Daniel Willkomm MiXiM – The Physical Layer 3 MiXiM Introduction MiXiM is a combination of several frameworks for wireless simulations

Daniel Willkomm MiXiM – The Physical Layer 24

Conclusion

The MiXiM PHY architecture Enables researchers to explore all three dimensions of a

signal (time, frequency and space) to derive better protocols Provides utilities that help to cope with the resulting complexity Allows very complex and realistic models, while simple models

are still fast Allows a high degree of re-use due to its modularity

Page 25: Physical Layer Modeling - summit.omnetpp.org · Daniel Willkomm MiXiM – The Physical Layer 3 MiXiM Introduction MiXiM is a combination of several frameworks for wireless simulations

Daniel Willkomm MiXiM – The Physical Layer 25

Thank you

Questions? Comments?

Hands-on Tutorial:

Write your own MiXiM PHY

Today, 6pm

Requirements:

OMNet++ 4rc2, MiXiM, Tutorial code

Please prepare before coming, ask me if you have problems