project and labs - lthomikron.eit.lth.se/etsn01/etsn01/tutorials/tutorial1.pdf · along with the...

23
/32 Project and labs ETSN01 Advanced Telecommunication Antonio franco

Upload: others

Post on 20-Mar-2020

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Project and labs - LTHomikron.eit.lth.se/ETSN01/ETSN01/tutorials/Tutorial1.pdf · along with the MiXiM framework ... a brief review •Probability Density Functions (PDFs) •Confidence

/32

Project and labsETSN01 Advanced Telecommunication

Antonio franco

Page 2: Project and labs - LTHomikron.eit.lth.se/ETSN01/ETSN01/tutorials/Tutorial1.pdf · along with the MiXiM framework ... a brief review •Probability Density Functions (PDFs) •Confidence

/32

Antonio Franco

[email protected]•http://www.eit.lth.se/personal/antonio.franco•Room 3124b, E-building, Ole Römers väg 3

Page 3: Project and labs - LTHomikron.eit.lth.se/ETSN01/ETSN01/tutorials/Tutorial1.pdf · along with the MiXiM framework ... a brief review •Probability Density Functions (PDFs) •Confidence

/32

Outline

•Labs outline•Statistics: a brief review•Labs contents•The final project•Materials on the internet•Tutorials

Page 4: Project and labs - LTHomikron.eit.lth.se/ETSN01/ETSN01/tutorials/Tutorial1.pdf · along with the MiXiM framework ... a brief review •Probability Density Functions (PDFs) •Confidence

/32

Labs organization

•Labs will be 3 hours long and are offered to you in order tofamiliarize yourself with Omnet++, the suite we will use forsimulating different scenarios, that is advised you use forthe simulation part of your final project (already available onthe course homepage);•Labs are not structured as a series of exercises, but willresemble more a walkthrough; I will be available there tohelp you and answer your questions

Page 5: Project and labs - LTHomikron.eit.lth.se/ETSN01/ETSN01/tutorials/Tutorial1.pdf · along with the MiXiM framework ... a brief review •Probability Density Functions (PDFs) •Confidence

/32

Labs software

•In the labs we will use Omnet++ (http://www.omnetpp.org/)along with the MiXiM framework(http://mixim.sourceforge.net/)•If you wish to install the lab software in your computer,please refer to the installation manual you can find in the/docs folder of the Omnet++ archive•Different projects will be released for your simulations forthe three different labs

Page 6: Project and labs - LTHomikron.eit.lth.se/ETSN01/ETSN01/tutorials/Tutorial1.pdf · along with the MiXiM framework ... a brief review •Probability Density Functions (PDFs) •Confidence

/32

Statistics: a brief review

•Probability Density Functions (PDFs)•Confidence intervals•Generate random variables: Inverse transform sampling

Page 7: Project and labs - LTHomikron.eit.lth.se/ETSN01/ETSN01/tutorials/Tutorial1.pdf · along with the MiXiM framework ... a brief review •Probability Density Functions (PDFs) •Confidence

/32

Probability Density Functions

•A PDF is, essentially, a normalized histogram of theoccurrences of a number of experiments, when the numberof experiments goes to infinity.

Page 8: Project and labs - LTHomikron.eit.lth.se/ETSN01/ETSN01/tutorials/Tutorial1.pdf · along with the MiXiM framework ... a brief review •Probability Density Functions (PDFs) •Confidence

/32

Confidence intervals (1)

•We usually approximate the mean of our distribution usingthe samples we have.•Confidence interval answers to the question: ”How far isthe true mean from my approximated mean?”

Page 9: Project and labs - LTHomikron.eit.lth.se/ETSN01/ETSN01/tutorials/Tutorial1.pdf · along with the MiXiM framework ... a brief review •Probability Density Functions (PDFs) •Confidence

/32

Confidence intervals (2)

”True” mean

Estimated mean

Variance

Number of samples

Coefficient for the 95% confidence

Page 10: Project and labs - LTHomikron.eit.lth.se/ETSN01/ETSN01/tutorials/Tutorial1.pdf · along with the MiXiM framework ... a brief review •Probability Density Functions (PDFs) •Confidence

/32

Generate random variables: Inversetransform sampling

•If you have a random number generator following theuniform distribution, you can always generate otherdistributions.

Page 11: Project and labs - LTHomikron.eit.lth.se/ETSN01/ETSN01/tutorials/Tutorial1.pdf · along with the MiXiM framework ... a brief review •Probability Density Functions (PDFs) •Confidence

/32

Lab contents

•Lab1 – TDMA•Lab2 – Random access protocols•Lab3 – Queuing disciplines

Page 12: Project and labs - LTHomikron.eit.lth.se/ETSN01/ETSN01/tutorials/Tutorial1.pdf · along with the MiXiM framework ... a brief review •Probability Density Functions (PDFs) •Confidence

/32

Single server system stability

Arrivalrate Service

rate

Page 13: Project and labs - LTHomikron.eit.lth.se/ETSN01/ETSN01/tutorials/Tutorial1.pdf · along with the MiXiM framework ... a brief review •Probability Density Functions (PDFs) •Confidence

/32

TDMA

• TDMA stands for Time Division Multiple Access• subdivides time into slots, that are assigned to

different agents (devices, flows, etc) in someway (centralized polling, autonomousdecentralized decision, etc)

• We will concentrate on a roundrobinassignment, i.e. the first slot goes to the "first``device , the second to the "second'' etc., andthen the schema is repeated indefinitely

Page 14: Project and labs - LTHomikron.eit.lth.se/ETSN01/ETSN01/tutorials/Tutorial1.pdf · along with the MiXiM framework ... a brief review •Probability Density Functions (PDFs) •Confidence

/32

TDMA systems stability (1)

= ∗< [ ]< [ ]

Page 15: Project and labs - LTHomikron.eit.lth.se/ETSN01/ETSN01/tutorials/Tutorial1.pdf · along with the MiXiM framework ... a brief review •Probability Density Functions (PDFs) •Confidence

/32

TDMA systems stability (2)

•Notice that as Tslot increases, also the time between two slots increases,and so delay per frame increases;•Be aware that Tslot must ensure that the transmission of a single framesucceeds inside one slot time (we will not consider frame fragmentationin our labs), so, if R is the raw data rate of the channel in bps and Bmin isthe minimum frame size in bit, in order to avoid overlaps, it must be:>

< < [ ]

Page 16: Project and labs - LTHomikron.eit.lth.se/ETSN01/ETSN01/tutorials/Tutorial1.pdf · along with the MiXiM framework ... a brief review •Probability Density Functions (PDFs) •Confidence

/32

Random access Schemes

• Random access schemes on the contrast, do notforce devices to access in predetermined slots ortimes;

• Is difficult to find a stability rule for them, and mostlyone relies on simulations in order to dimension arandom access network;

• They are better than TDMA in case of nondeterministic sporadic traffic;

• On the contrary they tend to behave badly in case ofa cramped network;

• Ensuring QoS is difficult;

Page 17: Project and labs - LTHomikron.eit.lth.se/ETSN01/ETSN01/tutorials/Tutorial1.pdf · along with the MiXiM framework ... a brief review •Probability Density Functions (PDFs) •Confidence

/32

Random access Schemes – 802.11 DCFExample

Page 18: Project and labs - LTHomikron.eit.lth.se/ETSN01/ETSN01/tutorials/Tutorial1.pdf · along with the MiXiM framework ... a brief review •Probability Density Functions (PDFs) •Confidence

/32

The final project (1)

•The final project is already online;•It comprises a theoretical part and a simulation part;•You can use either the code provided during the labs,either implement it by yourself;•Is not necessary to simulate the whole scenario, theimportant thing is that you will be able to draw your ownconclusions from the simulation outcome;•Remember: always present plots along withCONFIDENCE INTERVALS (very important!);

Page 19: Project and labs - LTHomikron.eit.lth.se/ETSN01/ETSN01/tutorials/Tutorial1.pdf · along with the MiXiM framework ... a brief review •Probability Density Functions (PDFs) •Confidence

/32

The final project (2)

• You can use whatever tool you want to plot your data, for example:• Excel

(http://omikron.eit.lth.se/ETSN01/ETSN012013/Material_files/confexcel.pdf)

• Matlab® by using the errorbar function (more in the Matlabreference manual -http://se.mathworks.com/help/matlab/ref/errorbar.html)

• Matplotlib (python) by using the errorbar function(http://matplotlib.org/1.2.1/examples/pylab_examples/errorbar_demo.html)

• R, GNUplot, Octave, Libreoffice calc...

Page 20: Project and labs - LTHomikron.eit.lth.se/ETSN01/ETSN01/tutorials/Tutorial1.pdf · along with the MiXiM framework ... a brief review •Probability Density Functions (PDFs) •Confidence

/32

Materials on the internet

• Confidence calculations:omikron.eit.lth.se/ETSN01/ETSN012013/Material_files/confidence.pdf

• Omnet++ tutorials and documentation:http://www.omnetpp.org/documentation

• MiXiM: http://mixim.sourceforge.net/• Some simple MAC schemes in MiXiM:

http://home.hib.no/ansatte/aaks/omnet.html

Page 21: Project and labs - LTHomikron.eit.lth.se/ETSN01/ETSN01/tutorials/Tutorial1.pdf · along with the MiXiM framework ... a brief review •Probability Density Functions (PDFs) •Confidence

/32

Tutorials organization

• Tutorials are given to prepare you to the exam.• Since time is limited, it is highly advised that you:

• first try to solve the exercises at home,• then have a look at the provided solutions,• and, finally, ask questions during the exercises

sessions.

Page 22: Project and labs - LTHomikron.eit.lth.se/ETSN01/ETSN01/tutorials/Tutorial1.pdf · along with the MiXiM framework ... a brief review •Probability Density Functions (PDFs) •Confidence

/32

Tutorials contents

1.Week1:1.Labs overview (this one)

2.Week2:1.(Tue) Probability review2.(Fri) Reservation schemes

3.Week3:1.(Tue) Reservation schemes2.(Fri) Queuing theory

4.Week 4:1.(Tue) Queuing theory2.(Fri) Link layer

5.Week5:1.(Tue) Link layer2.(Fri) TCP and congestion control

6.Week6:1.(Tue) TCP and congestion control

2.(Fri) Additional exercises7.Week7:

1.(Tue) Additional exercises2.(Fri) Additional exercises

Page 23: Project and labs - LTHomikron.eit.lth.se/ETSN01/ETSN01/tutorials/Tutorial1.pdf · along with the MiXiM framework ... a brief review •Probability Density Functions (PDFs) •Confidence

/32