Ns2 xgraph

704 views
Skip to first unread message

Fathi Shniba

unread,
Feb 26, 2010, 3:02:17 PM2/26/10
to Network Simulator - 2 (NS-2)
hello guys , i'm doing my research on mobile wimax . my question is
how to use xgraph in Ns2? and if u have idea about wimax simulation
(model) pls let us share the information .
regards.

Mohit P. Tahiliani

unread,
Feb 28, 2010, 11:10:44 PM2/28/10
to ns-...@googlegroups.com
After running the simulation, trace files are generated. You need to use AWK scripts to extract the useful information from these trace files.

AWK Scripts for few parameters are available here:


After downloading the AWK Scripts give following command:

awk  -f  filename.awk  filename. tr > filename.xgr

then give the following command:

xgraph filename.xgr

More details about xgraph will be uploaded soon on my Blog.

Please Note: You need to make little modifications in the AWK scripts that you download from above mentioned link. This is because AWK Scripts to plot a graph are bit different than AWK Scripts that are just used to obtain values. Only the printf statement in AWK Scripts need to modified for plotting graphs such that it prints the results in two columns (because graph has two dimensions X and Y).

If you further encounter any problems, kindly let me know. I will upload AWK Scripts that will can be used for plotting graphs.

Hope it helps.

Regards,
Mohit P. Tahiliani


--
You received this message because you are subscribed to the Google Groups "Network Simulator - 2 (NS-2)" group.
To post to this group, send an email to ns-...@googlegroups.com.
To unsubscribe from this group, send email to ns-user+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ns-user?hl=en-GB.


Fathi Shniba

unread,
Mar 1, 2010, 1:53:39 PM3/1/10
to Network Simulator - 2 (NS-2)
Thanks a lot mate for useful guidance.

On Mar 1, 12:10 pm, "Mohit P. Tahiliani" <tahiliani....@gmail.com>
wrote:


> After running the simulation, trace files are generated. You need to use AWK
> scripts to extract the useful information from these trace files.
>
> AWK Scripts for few parameters are available here:
>

> http://mohittahiliani.blogspot.com/2010/02/few-more-awk-scripts-for-n...
>
> <http://mohittahiliani.blogspot.com/2010/02/few-more-awk-scripts-for-n...>After


> downloading the AWK Scripts give following command:
>
> awk  -f  filename.awk  filename. tr > filename.xgr
>
> then give the following command:
>
> xgraph filename.xgr
>
> More details about xgraph will be uploaded soon on my Blog.
>

> *Please Note: *You need to make little modifications in the AWK scripts that


> you download from above mentioned link. This is because AWK Scripts to plot
> a graph are bit different than AWK Scripts that are just used to obtain
> values. Only the printf statement in AWK Scripts need to modified for
> plotting graphs such that it prints the results in two columns (because
> graph has two dimensions X and Y).
>
> If you further encounter any problems, kindly let me know. I will upload AWK
> Scripts that will can be used for plotting graphs.
>
> Hope it helps.
>
> Regards,
> Mohit P. Tahiliani
>

> On Sat, Feb 27, 2010 at 1:32 AM, Fathi Shniba <f.shn...@gmail.com> wrote:
> > hello guys , i'm doing my research on mobile wimax . my question is
> > how to use xgraph in Ns2? and if u have  idea about  wimax simulation
> > (model) pls let us share the information .
> > regards.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Network Simulator - 2 (NS-2)" group.
> > To post to this group, send an email to ns-...@googlegroups.com.
> > To unsubscribe from this group, send email to

> > ns-user+u...@googlegroups.com<ns-user%2Bunsu...@googlegroups.com>

Reply all
Reply to author
Forward
0 new messages