Re: [ns] Problem with the "queue" command
Prob a space after link12 would help. Santosh. On 9/5/06, fafou <[EMAIL PROTECTED]> wrote: > > > > Hi everybody, > I have written these two lines of tcl code: > > -- > set link01 [$ns simplex-link $n0 $n1 512Kb 0ms DropTail] > set queue01 [$link01 queue] > > set link12[$ns simplex-link $n1 $n2 512Kb 0ms DropTail] > set queue12 [$link12 queue] > > -- > > when launching the execution this error message is shown > > > - > unknown command "_o47 _o57" > when executing "$link12 queue" > > -- > > This means that the first command "$link01 queue" worked well but not the > second one. > The more funny is that when I delete the first two lines, there isn't any > problem. > > Can anybody help to solve this problem? > Ah, this problem appears with both ns-2.27 and ns-2.28 versions > > Thanks a lot! > > > > > > -- > View this message in context: > http://www.nabble.com/Problem-with-the-%22queue%22-command-tf2221427.html#a6154133 > Sent from the ns-users forum at Nabble.com. > >
Re: [ns] Problem with the "queue" command
Use set link12 [$ns simplex-link $n1 $n2 512Kb 0ms DropTail] (it has a missing space char nect to "[") Pedro Vale Estrela > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf > Of fafou > Sent: terça-feira, 5 de Setembro de 2006 16:24 > To: ns-users@ISI.EDU > Subject: [ns] Problem with the "queue" command > > > > Hi everybody, > I have written these two lines of tcl code: > -- > > set link01 [$ns simplex-link $n0 $n1 512Kb 0ms DropTail] > set queue01 [$link01 queue] > > set link12[$ns simplex-link $n1 $n2 512Kb 0ms DropTail] > set queue12 [$link12 queue] > -- > > > when launching the execution this error message is shown > > -- > --- > unknown command "_o47 _o57" > when executing "$link12 queue" > -- > > > This means that the first command "$link01 queue" worked well but not the > second one. > The more funny is that when I delete the first two lines, there isn't any > problem. > > Can anybody help to solve this problem? > Ah, this problem appears with both ns-2.27 and ns-2.28 versions > > Thanks a lot! > > > > > > -- > View this message in context: http://www.nabble.com/Problem-with-the- > %22queue%22-command-tf2221427.html#a6154133 > Sent from the ns-users forum at Nabble.com.
Re: [ns] Problem with the "queue" command
Thank you for repliying but the space char before [ is only missing in the mail I wrote and not in the source file. So, the problem persists. Thanks Pedro Vale Estrela wrote: > > > > Use > > set link12 [$ns simplex-link $n1 $n2 512Kb 0ms DropTail] > > (it has a missing space char nect to "[") > > Pedro Vale Estrela > >> -Original Message- >> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On >> Behalf >> Of fafou >> Sent: terça-feira, 5 de Setembro de 2006 16:24 >> To: ns-users@ISI.EDU >> Subject: [ns] Problem with the "queue" command >> >> >> >> Hi everybody, >> I have written these two lines of tcl code: >> -- >> >> set link01 [$ns simplex-link $n0 $n1 512Kb 0ms DropTail] >> set queue01 [$link01 queue] >> >> set link12[$ns simplex-link $n1 $n2 512Kb 0ms DropTail] >> set queue12 [$link12 queue] >> -- >> >> >> when launching the execution this error message is shown >> >> -- >> --- >> unknown command "_o47 _o57" >> when executing "$link12 queue" >> -- >> >> >> This means that the first command "$link01 queue" worked well but not the >> second one. >> The more funny is that when I delete the first two lines, there isn't any >> problem. >> >> Can anybody help to solve this problem? >> Ah, this problem appears with both ns-2.27 and ns-2.28 versions >> >> Thanks a lot! >> >> >> >> >> >> -- >> View this message in context: http://www.nabble.com/Problem-with-the- >> %22queue%22-command-tf2221427.html#a6154133 >> Sent from the ns-users forum at Nabble.com. > > > > -- View this message in context: http://www.nabble.com/Problem-with-the-%22queue%22-command-tf2221427.html#a6177635 Sent from the ns-users forum at Nabble.com.
Re: [ns] Problem with the "queue" command
Use the mash inspector to check the classes of _o47 etc http://tagus.inesc-id.pt/~pestrela/ns2/ns2_debugging2.html > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf > Of fafou > Sent: quarta-feira, 6 de Setembro de 2006 19:57 > To: ns-users@ISI.EDU > Subject: Re: [ns] Problem with the "queue" command > > > > Thank you for repliying but the space char before [ is only missing in the > mail I wrote and not in the source file. > So, the problem persists. > > Thanks > > > Pedro Vale Estrela wrote: > > > > > > > > Use > > > > set link12 [$ns simplex-link $n1 $n2 512Kb 0ms DropTail] > > > > (it has a missing space char nect to "[") > > > > Pedro Vale Estrela > > > >> -Original Message- > >> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On > >> Behalf > >> Of fafou > >> Sent: terça-feira, 5 de Setembro de 2006 16:24 > >> To: ns-users@ISI.EDU > >> Subject: [ns] Problem with the "queue" command > >> > >> > >> > >> Hi everybody, > >> I have written these two lines of tcl code: > >> --- > --- > >> > >> set link01 [$ns simplex-link $n0 $n1 512Kb 0ms DropTail] > >> set queue01 [$link01 queue] > >> > >> set link12[$ns simplex-link $n1 $n2 512Kb 0ms DropTail] > >> set queue12 [$link12 queue] > >> --- > --- > >> > >> > >> when launching the execution this error message is shown > >> > >> --- > --- > >> --- > >> unknown command "_o47 _o57" > >> when executing "$link12 queue" > >> --- > --- > >> > >> > >> This means that the first command "$link01 queue" worked well but not > the > >> second one. > >> The more funny is that when I delete the first two lines, there isn't > any > >> problem. > >> > >> Can anybody help to solve this problem? > >> Ah, this problem appears with both ns-2.27 and ns-2.28 versions > >> > >> Thanks a lot! > >> > >> > >> > >> > >> > >> -- > >> View this message in context: http://www.nabble.com/Problem-with-the- > >> %22queue%22-command-tf2221427.html#a6154133 > >> Sent from the ns-users forum at Nabble.com. > > > > > > > > > > -- > View this message in context: http://www.nabble.com/Problem-with-the- > %22queue%22-command-tf2221427.html#a6177635 > Sent from the ns-users forum at Nabble.com.