[ns] Is it possible ?!!!

Al-kahtani kahtani@lamar.colostate.edu
Wed, 31 Jan 2001 23:50:01 -0700


This is a multi-part message in MIME format.

------=_NextPart_000_01D8_01C08BE0.86D4C4C0
Content-Type: text/plain;
	charset="windows-1256"
Content-Transfer-Encoding: quoted-printable

hi ns experts,
Sorry for repeating this question.=20
It is most urgent to complete my simulation.
I am doing little research by using ns-2.1b7a on Linux machine.
I tried to build Error Model in wireless simulation but it gave me =
error.
The following are the model and the error=20

I would appreciate your help very much
Thanks

THE BASIC MODEL:

source ns-errmodel.tcl
set emm [new ErrorModel ]
$emm unit pkt
$emm set rate_ 0.2
$emm ranvar [new RandomVariable/Uniform]

$emm drop-target [new Agent/Null]
$ns_ lossmodel $emm $node_(6) $node_(7)  =20

THE ERROR:

invalid command name ""
    while executing
"$link errormodule $lossobj"
    (procedure "_o4" line 3)
    (Simulator lossmodel line 3)
    invoked from within
"$ns_ lossmodel $emm $node_(6) $node_(7)"






------=_NextPart_000_01D8_01C08BE0.86D4C4C0
Content-Type: text/html;
	charset="windows-1256"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dwindows-1256">
<META content=3D"MSHTML 5.50.4134.600" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3D"Courier New">hi ns experts,</FONT></DIV>
<DIV><FONT face=3D"Courier New">Sorry for repeating this question. =
</FONT></DIV>
<DIV><FONT face=3D"Courier New">It is most urgent to complete my=20
simulation.</FONT></DIV>
<DIV><FONT face=3D"Courier New">
<DIV>I am doing little research by using&nbsp;ns-2.1b7a on Linux =
machine.</DIV>
<DIV>I tried to build&nbsp;Error Model in <STRONG><FONT=20
size=3D4>wireless</FONT></STRONG> simulation&nbsp;but it gave me =
error.</DIV>
<DIV>The following are the model and the error </DIV>
<DIV><FONT face=3D"Times New Roman"></FONT>&nbsp;</DIV>
<DIV>I would appreciate your help very much</DIV>
<DIV><FONT face=3D"Times New Roman">
<DIV><FONT face=3D"Courier New">Thanks</FONT></DIV></FONT></DIV>
<DIV><FONT face=3D"Times New Roman">
<DIV><FONT face=3D"Times New Roman"></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Times New Roman"><STRONG>THE BASIC =
MODEL:</STRONG></FONT></DIV>
<DIV><FONT face=3D"Times New Roman"></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New">source ns-errmodel.tcl</FONT></DIV>
<DIV><FONT face=3D"Courier New">set emm [new ErrorModel ]<BR>$emm unit =
pkt<BR>$emm=20
set rate_ 0.2<BR>$emm ranvar [new RandomVariable/Uniform]</FONT></DIV>
<DIV><FONT face=3D"Courier New"></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Times New Roman"><FONT face=3D"Courier New">$emm =
drop-target [new=20
Agent/Null]<BR>$ns_ lossmodel $emm $node_(6)=20
$node_(7)</FONT>&nbsp;&nbsp;&nbsp;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><STRONG>THE ERROR:</STRONG></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New">invalid command name =
""<BR>&nbsp;&nbsp;&nbsp;=20
while executing<BR>"$link errormodule $lossobj"<BR>&nbsp;&nbsp;&nbsp; =
(procedure=20
"_o4" line 3)<BR>&nbsp;&nbsp;&nbsp; (Simulator lossmodel line=20
3)<BR>&nbsp;&nbsp;&nbsp; invoked from within<BR></FONT>"<FONT=20
face=3D"Courier New">$ns_ lossmodel $emm $node_(6) =
$node_(7)</FONT>"<BR></DIV>
<DIV>&nbsp;</DIV>
<DIV></FONT></FONT><FONT face=3D"Courier =
New"></FONT>&nbsp;</DIV></DIV></DIV>
<DIV><FONT face=3D"Times New Roman"></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Times New Roman"></FONT>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_01D8_01C08BE0.86D4C4C0--