DOC PREVIEW
Berkeley ELENG 122 - Measurements and Modeling

This preview shows page 1-2-3-4-5 out of 15 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 15 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 15 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 15 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 15 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 15 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 15 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

EECS122 -UCB1Measurements and ModelingTable of Contents1. Measurements2. Modeling and its Shortcomings3. Example of a Network Simulator: NSEECS122 -UCB2Problem with MeasurementsReal system does not existImplementation of real test system is ? too expensive? too dangerousMeasurements would interfere with normal operation of the real systemReal SystemResultmeasureEECS122 -UCB3Modeling ProcessReal SystemResultmeasureModelgeneratemeasureModelingResultinferThere are Analytical models and Simulation modelsEECS122 -UCB4Disadvantage of ModelingModels give only an indication of the behavior of the real systemModels are an abstraction of the reality? Many details are not consideredReal systems are complexTherefore: ? Differences between measurements in models and reality existEECS122 -UCB5Example: TCP Sequence Number Measured in Simulator and RealitySimulatorRealityEECS122 -UCB6EE122 Projects – S03Assignment No.2 and No.3:? Analysis of ns simulation runs, showing the behavior of flows under different control mechanisms(Different TCPs and router implementations)? Implementation of ns module to analyze the impact of end-user decisions (in C++)(Adaptive routing and call control)EECS122 -UCB7Modeling Using theNetwork Simulator: nsns is discrete event simulator targeted at networking researchns started in 1985ns simulates ? TCP, UDP, routing, and multicast protocols ? over wired and wireless (local and satellite) networksEECS122 -UCB8Simulation System00.20.40.60.81Throughput Measurement of all UDP and TCP Flowsthroughput all flowsthroughput udp flowstcl script (input)Gnuplot (output)NAM (output)#Create a simulator objectset ns [new Simulator]#Define different colors for data flows$ns color 1 Bluens Simulator Basics$ns color 2 Red#Open the nam trace filens Simulator Basicsset nf [open project_b_task_1I.nam w]$ns namtrace-all $nf#open the measurement output filesset f0 [open project_b_task_1I_out0.tr w]set f1 [open project_b_task_1I_out1.tr w]set f2 [open project_b_task_1I_out2.tr w]ns classesnsEECS122 -UCB9ns ArchitectureObject oriented (C++ and OTcl)Control operations in OtclClass hierarchy (extract):EECS122 -UCB10ns Simulator BasicsSimulator API is a set of methods belonging to a simulator objectSimulator object is created with “set netsim [new Simulator] ” (Tcl script)? initializes the packet format ? creates a scheduler(handles time, timers, and events)Scheduler access through simulator methods? Example: “$ns at 0.0 "$ftp start" ” (Tcl script)EECS122 -UCB11Tcl Script - Example#create simulatorset ns [new Simulator]#create nodeset n0 [$ns node]set n1 [$ns node]#create link between nodes$ns duplex-link $n0 $n2 10Mb 10ms DropTail#create a TCP agent and attach it to node n0set tcp0 [new Agent/TCP]$ns attach-agent $n0 $tcp0$tcp0 set window_ 40$tcp0 set packetSize_ 460set sink [new Agent/TCPSink]$ns attach-agent $n1 $sink#create an FTP source "application” and attach it to tcpset ftp [new Application/FTP]$ftp attach-agent $tcp0EECS122 -UCB12Tcl Script – Example (cont.)#open the nam trace file and measurement output fileset nf [open project_b.nam w]$ns namtrace-all $nf set f0 [open project_b.tr w]#schedule events$ns at 0.0 “$ftp start”$ns at 3.0 “puts $nf “[$ns now] \t [$ns now]””$ns at 6.0 “$ftp stop”$ns at 6.01 “#dump simulation result into files$ns flush-trace#Execute ‘NAM’ and ‘Gnuplot’exec nam project_b.nam &exec pgnuplot project_b.dem &#stop the simulationexit 0”#start the execution$ns runEECS122 -UCB13NAM (Network Animator)Reads trace file generated by ns Example of trace file:V -t * -v 1.0a5 -a 0A -t * -n 1 -p 0 -o 0xffffffff -c 31 -a 1A -t * -h 1 -m 2147483647 -s 0c -t * -i 1 -n Bluec -t * -i 2 -n Redn -t * -a 0 -s 0 -S UP -v circle -c black -i black...NAMEECS122 -UCB14Gnuplot (Graphic Tool)Is distributed under the gnu licenseNeeds a script file (e.g. project_b.dem) andfile containing the data which has to be plottedExample plot:00.20.40.60.810 1 2 3 4 5 6Throughput Measurement of all UDP and TCP Flowsthroughput all flowsthroughput udp flowsEECS122 -UCB15Literature and Help for nshttp://www.isi.edu/nsnam/ns/? FAQ? ns-related mailing list? Tutorial?


View Full Document

Berkeley ELENG 122 - Measurements and Modeling

Documents in this Course
Lecture 6

Lecture 6

22 pages

Wireless

Wireless

16 pages

Links

Links

21 pages

Ethernet

Ethernet

10 pages

routing

routing

11 pages

Links

Links

7 pages

Switches

Switches

30 pages

Multicast

Multicast

36 pages

Switches

Switches

18 pages

Security

Security

16 pages

Switches

Switches

18 pages

Lecture 1

Lecture 1

56 pages

OPNET

OPNET

5 pages

Lecture 4

Lecture 4

16 pages

Ethernet

Ethernet

65 pages

Models

Models

30 pages

TCP

TCP

16 pages

Wireless

Wireless

48 pages

Load more
Download Measurements and Modeling
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Measurements and Modeling and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Measurements and Modeling 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?