[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ns] segfault + error model
Hello,
I found why ns segfault when I use error model with wireless: because I
use in my script
the "drop-target" command to catch corrupt packets with a lossMonitor.
So I remove it and it doesn't segfault.
But now I have another problem.
I tried different parameter for the rate_ of the error model (in my test
I use the uniform error model).
when I set rate to 0.05% with "ErrorModel set rate_ 0.0005" It seems to
work fine
but when I set rate to 0.5% the results in the trace file seems to be
strange:
(in test the topology is:
[N0] [N1]
\ |
\ | 5Mb/s + 10ms
\ |
[N2]
|
| 5Mb/s + 10ms
|
[BS]
[MN0] [MN1]
[MN2]
MN2, MN1 only move.
N1 does nothing.
N0 send by ftp 1500KB to mobile node MN0
---------------------------------------------------------------------------------
results:
---------------------------------------------------------------------------------
M 0.0 nn 3 x 670 y 670 rp NOAH
M 0.0 sc scen-3-test cp none seed 0.0
M 0.0 prop Propagation/TwoRayGround ant Antenna/OmniAntenna
M 5.00000 4194305 (5.00, 10.00, 0.00), (10.00, 20.00), 15.00
+ 10 0 2 tcp 1000 ------- 0 0.0.0.0 1.0.1.0 0 0
- 10 0 2 tcp 1000 ------- 0 0.0.0.0 1.0.1.0 0 0
M 10.00000 4194306 (50.00, 3.00, 0.00), (70.00, 20.00), 6.00
r 10.0116 0 2 tcp 1000 ------- 0 0.0.0.0 1.0.1.0 0 0
+ 10.0116 2 3 tcp 1000 ------- 0 0.0.0.0 1.0.1.0 0 0
- 10.0116 2 3 tcp 1000 ------- 0 0.0.0.0 1.0.1.0 0 0
r 10.0232 2 3 tcp 1000 ------- 0 0.0.0.0 1.0.1.0 0 0
d -t 10.080715878 -Hs 3 -Hd 4194305 -Ni 3 -Nx 1.00 -Ny 2.00 -Nz 0.00 -Ne
-1.000000 -Nl RTR -Nw CBK -Ma a2 -Md 1 -Ms 0 -Mt 800 -Is 0.0 -Id
4194305.0 -It tcp -Il 1000 -If 0 -Ii 0 -Iv 29 -Pn tcp -Ps 0 -Pa 0 -Pf 0
-Po 0
+ 16 0 2 tcp 1000 ---A--- 0 0.0.0.0 1.0.1.0 0 1
- 16 0 2 tcp 1000 ---A--- 0 0.0.0.0 1.0.1.0 0 1
r 16.0116 0 2 tcp 1000 ---A--- 0 0.0.0.0 1.0.1.0 0 1
+ 16.0116 2 3 tcp 1000 ---A--- 0 0.0.0.0 1.0.1.0 0 1
- 16.0116 2 3 tcp 1000 ---A--- 0 0.0.0.0 1.0.1.0 0 1
r 16.0232 2 3 tcp 1000 ---A--- 0 0.0.0.0 1.0.1.0 0 1
d -t 16.102817805 -Hs 3 -Hd 4194305 -Ni 3 -Nx 1.00 -Ny 2.00 -Nz 0.00 -Ne
-1.000000 -Nl RTR -Nw CBK -Ma a2 -Md 1 -Ms 0 -Mt 800 -Is 0.0 -Id
4194305.0 -It tcp -Il 1000 -If 0 -Ii 1 -Iv 29 -Pn tcp -Ps 0 -Pa 0 -Pf 0
-Po 0
+ 28 0 2 tcp 1000 ---A--- 0 0.0.0.0 1.0.1.0 0 2
- 28 0 2 tcp 1000 ---A--- 0 0.0.0.0 1.0.1.0 0 2
r 28.0116 0 2 tcp 1000 ---A--- 0 0.0.0.0 1.0.1.0 0 2
+ 28.0116 2 3 tcp 1000 ---A--- 0 0.0.0.0 1.0.1.0 0 2
- 28.0116 2 3 tcp 1000 ---A--- 0 0.0.0.0 1.0.1.0 0 2
r 28.0232 2 3 tcp 1000 ---A--- 0 0.0.0.0 1.0.1.0 0 2
d -t 28.126516342 -Hs 3 -Hd 4194305 -Ni 3 -Nx 1.00 -Ny 2.00 -Nz 0.00 -Ne
-1.000000 -Nl RTR -Nw CBK -Ma a2 -Md 1 -Ms 0 -Mt 800 -Is 0.0 -Id
4194305.0 -It tcp -Il 1000 -If 0 -Ii 2 -Iv 29 -Pn tcp -Ps 0 -Pa 0 -Pf 0
-Po 0
M 30.00000 4194307 (590.00, 200.00, 0.00), (4.00, 4.00), 8.00
+ 52 0 2 tcp 1000 ---A--- 0 0.0.0.0 1.0.1.0 0 3
- 52 0 2 tcp 1000 ---A--- 0 0.0.0.0 1.0.1.0 0 3
r 52.0116 0 2 tcp 1000 ---A--- 0 0.0.0.0 1.0.1.0 0 3
+ 52.0116 2 3 tcp 1000 ---A--- 0 0.0.0.0 1.0.1.0 0 3
- 52.0116 2 3 tcp 1000 ---A--- 0 0.0.0.0 1.0.1.0 0 3
r 52.0232 2 3 tcp 1000 ---A--- 0 0.0.0.0 1.0.1.0 0 3
d -t 52.105603939 -Hs 3 -Hd 4194305 -Ni 3 -Nx 1.00 -Ny 2.00 -Nz 0.00 -Ne
-1.000000 -Nl RTR -Nw CBK -Ma a2 -Md 1 -Ms 0 -Mt 800 -Is 0.0 -Id
4194305.0 -It tcp -Il 1000 -If 0 -Ii 3 -Iv 29 -Pn tcp -Ps 0 -Pa 0 -Pf 0
-Po 0
+ 100 0 2 tcp 1000 ---A--- 0 0.0.0.0 1.0.1.0 0 4
- 100 0 2 tcp 1000 ---A--- 0 0.0.0.0 1.0.1.0 0 4
r 100.0116 0 2 tcp 1000 ---A--- 0 0.0.0.0 1.0.1.0 0 4
+ 100.0116 2 3 tcp 1000 ---A--- 0 0.0.0.0 1.0.1.0 0 4
- 100.0116 2 3 tcp 1000 ---A--- 0 0.0.0.0 1.0.1.0 0 4
r 100.0232 2 3 tcp 1000 ---A--- 0 0.0.0.0 1.0.1.0 0 4
d -t 100.085455805 -Hs 3 -Hd 4194305 -Ni 3 -Nx 1.00 -Ny 2.00 -Nz 0.00
-Ne -1.000000 -Nl RTR -Nw CBK -Ma a2 -Md 1 -Ms 0 -Mt 800 -Is 0.0 -Id
4194305.0 -It tcp -Il 1000 -If 0 -Ii 4 -Iv 29 -Pn tcp -Ps 0 -Pa 0 -Pf 0
-Po 0
+ 196 0 2 tcp 1000 ---A--- 0 0.0.0.0 1.0.1.0 0 5
- 196 0 2 tcp 1000 ---A--- 0 0.0.0.0 1.0.1.0 0 5
r 196.0116 0 2 tcp 1000 ---A--- 0 0.0.0.0 1.0.1.0 0 5
+ 196.0116 2 3 tcp 1000 ---A--- 0 0.0.0.0 1.0.1.0 0 5
- 196.0116 2 3 tcp 1000 ---A--- 0 0.0.0.0 1.0.1.0 0 5
r 196.0232 2 3 tcp 1000 ---A--- 0 0.0.0.0 1.0.1.0 0 5
d -t 196.099726207 -Hs 3 -Hd 4194305 -Ni 3 -Nx 1.00 -Ny 2.00 -Nz 0.00
-Ne -1.000000 -Nl RTR -Nw CBK -Ma a2 -Md 1 -Ms 0 -Mt 800 -Is 0.0 -Id
4194305.0 -It tcp -Il 1000 -If 0 -Ii 5 -Iv 29 -Pn tcp -Ps 0 -Pa 0 -Pf 0
-Po 0
----------------------------------------------------------------------------------
Any suggestion?
Laurent
Laurent wrote:
>
> hello,
>
> I have some problems with error model on wireless channel
> When i launch the script: ns segfault.
> In this script I use error model with wireless channel as it shown in
> the example "test-suite-wireless-lan-newnode-err.tcl".
> Moreover, if I del the current line on my script:
> ErrorModel set rate_ 0.005
> it doesn't segfault! where is the bug?
>
> ns/tcp> gdb ns
> GNU gdb 4.18
> Copyright 1998 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you
> are
> welcome to change it and/or distribute copies of it under certain
> conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB. Type "show warranty" for
> details.
> This GDB was configured as "i386-suse-linux-gnu"...
> (gdb) run tcp_w.tcl
> Starting program: /badoit/USERS/lcavallin/new_ns_release/bin/ns
> tcp_w.tcl
> Loading wireless channels parameters. . .
> done
> num_nodes is set 3
> warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
> Loading traffic info. . .
> done
> *** NOTE: no connection pattern specified.
> Loading scenario file...
> Load complete...
> Starting Simulation...
> -------------------------------------------------------
> Caracteristiques des liaisons radio
> bandwidth= 2000 Kbits/s
> LL delay= 0.024999999999999998 ms
> Antenna/OmniAntenna: X= 0, Y= 0, Z= 1.5, Gt= 1, Gr= 1
> Phys/WirelessPhys: freq= 914.0 MHz
> *** error rate= 0.0050
> -------------------------------------------------------
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x80c2d18 in Mac802_11::recv (this=0x8583d50, p=0x8585648, h=0x0) at
> mac-802_11.cc:1014
> 1014 if(hdr->direction() == hdr_cmn::DOWN) {
> (gdb)
>
> I use ns-2.1b8 under linux SuSe 6.3
> I add my script with this mail.
>
> Regards,
> Laurent
>
> ------------------------------------------------------------------------
> Name: ex-tcp-wireless-errmodel.tgz
> ex-tcp-wireless-errmodel.tgz Type: unspecified type (application/octet-stream)
> Encoding: base64