[ns] Problem generating a Trace File

2011-09-10 Thread Mostafa Shahverdy
Dear all, I am new to NS and I am sucked with a problem that I can't solve, I need to generate tarffic with arbitrary sizes, I mean each packet with a diffrent size, I know how to generate traffic using CBR with fixed packet size (this is simple), but I think I must use trace file as input, I

[ns] Questions on difference about node position in nam file and those accessed in C++

2011-09-10 Thread Su Jinzhao
Hello, friends. I want to access node coordinates in C++ and node coordinates are initially defined in Otcl. I referenced these two articles on accessing node coordinates in C++: http://getch.wordpress.com/2011/02/10/finding-node-positionvelocity-and-speed-in-ns2-34/

[ns] c++ and algos

2011-09-10 Thread rabia ..
hii. i am not expert in c++.. i have to implement an algo in ns2. can any o=ne give me tips about it plzz =

[ns] Trace File Interpretation

2011-09-10 Thread RamiHach
Dear all, I am simulating the handover between wifi and wimax using the MIH (IEEE 802.21) on a wired cum wireless simulation. In my trace file I have 3 kind of line: First kind is : + 300 0 1 tcp 1280 --- 0 0.0.0.0 3.0.1.0 6001 12220 ( for me this is for wired packet) Second kind is :

Re: [ns] Trace file

2011-09-10 Thread RamiHach
sir do you understand the meaning of those line? if yes please try to explain it to me r -t 0.000768017 -Hs 40 -Hd -1 -Ni 40 -Nx 77.37 -Ny 8.83 -Nz 0.00 -Ne 49.59 -Nl MAC -Nw --- -Ma 0 -Md -Ms 0 -Mt 0 r -t 0.000768017 -Hs 38 -Hd -1 -Ni 38 -Nx 79.86 -Ny 7.79 -Nz 0.00 -Ne 49.59

Re: [ns] Questions on difference about node position in nam file and those accessed in C++

2011-09-10 Thread Su Jinzhao
Hi All, Thank Aslinda for his(her) reply. I noticed that the argument type of function get_node_by_address() is nsaddr_t, which is defined: typedef int32_t nsaddr_t; so I don't think that I passed a value 1 to the function is a problem. In fact, I defined a topology