Difference between revisions of "Importing video traffic into OPNET"

From NMSL
 
(24 intermediate revisions by the same user not shown)
Line 1: Line 1:
==Video Traces==
+
__TOC__
Trace files available at  
+
 
 +
== Video Traces ==
 +
 
 +
Video Trace files available at  
 
#Arizona State University[http://trace.eas.asu.edu/tracemain.html]
 
#Arizona State University[http://trace.eas.asu.edu/tracemain.html]
 
#MPEG-4 and H.263 Video Traces for Network Performance Evaluation[http://www.tkn.tu-berlin.de/research/trace/trace.html]
 
#MPEG-4 and H.263 Video Traces for Network Performance Evaluation[http://www.tkn.tu-berlin.de/research/trace/trace.html]
 +
 +
 +
== Processing Video Traces ==
 +
The video traces data required pre-processing before they could be imported into OPNET Modeler video conferencing application (VCA) traffic data. The frame sizes need to be extracted from the video traces, then converted from bits to bytes. Saving the final result as a .csv compatible format file.
 +
 +
For Verbose Trace File use this shell command line to do the extraction:
 +
<pre>
 +
awk '// {print $4/8}' video_trace.data > traffic_trace.csv
 +
</pre>
 +
 +
For Terse Trace File use this:
 +
 +
<pre>
 +
awk '// {print $2/8}' terse_trace.data > traffic_trace.csv
 +
</pre>
 +
 +
Save the output file into your opnet_models folder. Or any folder in your OPNET models path.
 +
 +
== OPNET Setup ==
 +
 +
* From the Object Palette insert an "Application Config" node
 +
[[Image:Application.png]]
 +
 +
 +
* Next, edit the attributes of the Application node. Under Application Definitions->Description select "Video Conferencing". Choose "Edit"
 +
 +
[[Image:App_attributes.png]]
 +
 +
 +
* Enter the video's frame rate into "Frame Interarrival Time Information" field.
 +
[[Image:Framerates.png]]
 +
 +
* Select "Edit" for Frame Size Information (bytes)
 +
Select "Edit" for Incoming and Outgoing stream. Set ''Distribution Name=scripted'' for both incoming and outgoing stream. Enter the processed traffic_trace (without .csv extension).
 +
[[Image:Streaminfo.png]]
 +
 +
* On the client/workstation select the profile with the Application you've just created.
 +
 +
* Run the simulation :)

Latest revision as of 13:30, 2 April 2009

Video Traces

Video Trace files available at

  1. Arizona State University[1]
  2. MPEG-4 and H.263 Video Traces for Network Performance Evaluation[2]


Processing Video Traces

The video traces data required pre-processing before they could be imported into OPNET Modeler video conferencing application (VCA) traffic data. The frame sizes need to be extracted from the video traces, then converted from bits to bytes. Saving the final result as a .csv compatible format file.

For Verbose Trace File use this shell command line to do the extraction:

awk '// {print $4/8}' video_trace.data > traffic_trace.csv

For Terse Trace File use this:

awk '// {print $2/8}' terse_trace.data > traffic_trace.csv

Save the output file into your opnet_models folder. Or any folder in your OPNET models path.

OPNET Setup

  • From the Object Palette insert an "Application Config" node

Application.png


  • Next, edit the attributes of the Application node. Under Application Definitions->Description select "Video Conferencing". Choose "Edit"

App attributes.png


  • Enter the video's frame rate into "Frame Interarrival Time Information" field.

Framerates.png

  • Select "Edit" for Frame Size Information (bytes)

Select "Edit" for Incoming and Outgoing stream. Set Distribution Name=scripted for both incoming and outgoing stream. Enter the processed traffic_trace (without .csv extension). Streaminfo.png

  • On the client/workstation select the profile with the Application you've just created.
  • Run the simulation :)