CS 795/895 - Vehicular Networks
Fall 2010: Thurs 3-5:30pm, E&CS 2120

Print - Admin

Announcements

Staff

Schedule

Syllabus

Useful Links

Program 1 - Intro to ns-3, gnuplot, and LaTeX

Assigned: Thursday, Sep 16, 2010
Due: Thursday, Sep 30, 2010 before class

Description

Use vanet-cs795/myExp.cc to run a set of experiments with the following parameters:

  • simulation time = 100 seconds
  • nodes start sending at time 1
  • 2 lanes in each direction
  • cchi = 0.5, schi = 0.5
  • static
    • density = 0 (low)
    • density = 1 (medium)
  • mobile
    • flow1, flow2 = 0.222 (low, 400 veh/h/lane)
    • flow1, flow2 = 0.5 (medium, 600 veh/h/lane)
  • measure all transmissions

Use the process-vanet.awk script to process the data. (Note: Some modifications to the script may be needed.)

Use gnuplot to create the following graphs:

  1. the percentage of missed updates (beacons that were lost)
  2. the average per-node received throughput
  3. the average busy-time per send

On the throughput and busy-time graphs, include error bars showing the average deviation.

Create a PDF report using LaTeX that includes a description of the experiments, the expected results, how the results either met or didn't meet your expectations, the graphs, and an explanation of the graphs.

Submit a hard-copy of the report in class on the due date.

Notes

You can find helpful links about gnuplot and LaTeX on the Useful Links section of the course webpage.

Other info:

  • PDFLaTeX (to generate PDF from LaTeX) is installed on netsim at /usr/bin/pdflatex
  • /home/mweigle/shared/cs795/print-pdf is a tcsh shell script that will take a gnuplot script file and produce a PDF of the graph
  • /home/mweigle/shared/cs795/format-plots is a tcsh shell script that will take a file pattern (ex: fig*.jpg) and output LaTeX code that will position a specified number (2-6) of graphs per page.

Side Assignment/Extra Credit

Find a way to record firstSendSched for each vehicle in myController and not in Vehicle. I tried using STL map, set, vector, but nothing worked. It compiled just fine, but crashed when I ran it. Even just including the declaration in the class caused the run-time crash.