Você está na página 1de 3

Networks Lab

Assignment 3
Note:
1.
2.
3.
4.
5.

YoushouldhaveNS3installedforthisassignment.
Referto
www.nsnam.org
foralltheinformationaboutNS3.
Alsoinstalltcpdumponyourmachines.
Referto
www.tcpdump.org/
fortcpdump.
Assumingyourinstallationdirectoryisnsallinone*.Wecallitthehomedirectoryof
NS3.
6. MakesuitableassumptionsunlessspecifiedinthequestionordiscusswithTAs.
7. Donotcopythesolutionsfromothers.Casesofplagiarismwillbetreatedseriously.

YouarealreadyacquaintedwithNS3basics.Inthisassignment,youllbuildanetwork
topologyandstudyperformanceparametersoverdifferentexperiments.

EvaluationofCSMAProtocolPerformance
:

Inthisassignmentyouneedtobuildanetworktopologyof8nodes(CSMA)asdescribedby
thefollowingfigure.

ThenodesuseCSMAprotocolforchannelaccessatthelinklayer.TheCSMAlinkbandwidth
is1024Kbpsandtheonewaylinkdelayis2ms.EverynodeusesIPv4attheInternetlayer.
TheapplicationlayerusesUDPechoapplicationwheretheechomessagesaregeneratedat
differentdatagenerationrate.TherearefourdifferentUDPflowsinthisnetworkasgiven
below.
Flow1:Node1>Node5
Flow2:Node2>Node6
Flow3:Node7>Node3
Flow4:Node8>Node4

InthisassignmentyouneedtomeasuretheperformanceoftheCSMAnetworkwithrespect
tofollowingperformancemetrics:
1) Throughput
:Averageamountofdatabitssuccessfullytransmittedperunittime.

2) ForwardingDelay
:Averageendtoenddelay(includingthequeuingdelayandthe
transmissiondelay)experiencedbytheCSMAframes.
3) Jitter
:Jitteristhevariationinindividualframedelay.

MeasuretheperformanceoftheCSMAprotocolsintermsoftheabovemetricsandplota
graph(foreverymetrics,thereshouldbeonegraph)withrespecttofollowingapplicationlayer
trafficgenerationrate.
1) 16Kbps
2) 32Kbps
3) 64Kbps
4) 128Kbps
5) 256Kbps
6) 512Kbps
7) 1024Kbps
Notethat,youneedtomeasurethe
linklayerperformanceorthenetworkperformance
,not
thepernodeperformance.ThereforeyoushouldconsideralltheCSMAframesfromallthe
communicationpairswhilecalculatingtheperformancemetrics.

Note:
1. Tomodellinklayerdynamicslikechannelerror,externalinterferenceetc.,network
simulatorsusepseudorandomgenerators.
Thispseudorandomgeneratorsare
governedbyaseedvalue.Pleaselookintothefollowingdocumenttoknowmore
aboutrandomgeneratorsandseedvalues:
http://www.nsnam.org/doxygen/classns3_1_1_rng_seed_manager.html
Inthisexperiment,youhavetouserandomseedgeneratorstomakethesimulation
morerealistic.Forthispurpose,youhavetoexecuteeveryscenariowith10different
seedvaluesandtaketheaverageandthestandarddeviationoftheperformance
metric.Thestandarddeviationisalsocalledthe
confidenceinterval
thattellsyouhow
muchtheperformanceresultscandeviateindifferentchannelconditions.Notethat
onegoodchoicefortheseedvalueisthesystemtimeinmilliseconds.Soeverytime
youexecutethescript,thesystemtimewillchangeandgiveyouadifferentseed
value.
Insummary,yourtaskwillbetodothefollowing:
a. Foraparticulardatarate,computeperformanceparametersfor10different
seedvaluesandtaketheaveragewithstandarddeviation(confidenceinterval).
b. Plottheresultsfordifferentdataratesalongwiththeconfidenceinterval.For
plotting,youcanusegnuplotorwhicheveryouarecomfortablewith.

Yourgraphmaylooksomethinglikethis,wherexaxisbethedatarateandtheyaxis

betheperformanceparameter[theexamplegraphisanindicateone,donotlookat
thenumericalvalues!].Thehorizontalcurvegivesyoutheplotthroughtheaverage
values,andtheverticallinesshowyouthedeviation(ortheconfidenceinterval).

2.YouneedtochangethepacketsizeandthetimeintervalbetweenconsecutiveUDPecho
packetstofindoutthedatagenerationrate.Forinstance,ifpacketsizeis16Kb,andtime
intervalis0.25sec,thendatagenerationrateis64Kbps.

Stateyourobservationsontheimpactofdifferentdataratesanddifferentseedvalues
overdifferentstatisticalperformanceparameters.

NOTEforSubmission:
1.Youneedtodothisexperimentinagroupoftwo(samegroupaspreviouslab).
2.Aftertheexperiment,prepareareportwiththeresultsandanalysis.
3.Submitthe.ccfilealongwithscript,parametervalues,plotsandyouranalysisofthe
results.
4.Createagzipedtarballfile(tar.gz)containingthedataanalysisfilesandplotsandthe
report.Thenameofthecompressedfileshopuldbe
assign_3_<roll_number_member_1>_<roll_number_member_2>.tar.gz.For
example,ifthemembersofagroupare12CS10001and12CS10002,thenthefilename
shouldbeassign_3_12CS10001_12CS10002.tar.gz.
5.OneofthememberofthegroupshoulduploadtheassignmenttotheMoodlecourseweb
pagebythesubmissiondeadline.
6.Submissiondeadline:2Feb,2015,11:59pm.

Você também pode gostar