LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-25-2014, 08:13 AM   #1
nassou19891
Member
 
Registered: Sep 2014
Posts: 56

Rep: Reputation: Disabled
links with two networks in ns2


Hi Sir
I want to create a topologie in ns2 .this topologie containt two networks ( Wimax and LTE )the transport protocol is dccp .
i use tcl codes and i try to create this topologie .
the file .tcl is (dccp.tcl)

Q1 : when i try to simultate this file a wrong message was showen :

num_nodes is set 2
BWA Type: 2
INITIALIZE THE LIST xListHead
la station de base est créée
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 550.0
SORTING LISTS ...DONE!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

your lwx setting gets trouble at 1.00084,
please check your programe

error code in: LWX::recv() in if (cmn_col->direction() == hdr_cmn:OWN)
note:


!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!



please can you tell what is wrong in my tcl file . i'm bloqued please.
dccp.txt
 
Old 10-25-2014, 09:59 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Lines 157 - 158 in "dccp__lwx-LTE__nassou19891.tcl" :
$ns at 1.0 "$ftp($i) start"
$ns at 600.0 "$ftp($i) stop"

What is ($i) ? I.e. ($i) is not defined :

$ ns_WimaxLWX+lte+dccp dccp__lwx-LTE__nassou19891.tcl
can't read "i": no such variable
while executing
"$ns at 1.0 "$ftp($i) start""
(file "dccp__lwx-LTE__nassou19891.tcl" line ..)


P.S. : dccp.txt, dccp.tcl, dccp.tcl.txt are generic names.
Please new unique names for files. Preferably a descriptive naming.

-
 
Old 10-26-2014, 08:05 AM   #3
nassou19891
Member
 
Registered: Sep 2014
Posts: 56

Original Poster
Rep: Reputation: Disabled
Hi ,
Sorry i know that i didn't define i when i write
$ns at 1.0 "$ftp($i) start"
$ns at 600.0 "$ftp($i) stop"

I think that i send for you the wrong file sorry. even i change this line of comande i have the same wrong messge.
Q1 : what it mean aboute writing this error message :
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

your lwx setting gets trouble at 1.00084,
please check your programe

error code in: LWX::recv() in if (cmn_col->direction() == hdr_cmn:OWN)
note:


!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!


Where is the probleme in my creation of wimaxLWX topologie ??
 
Old 10-26-2014, 08:07 AM   #4
nassou19891
Member
 
Registered: Sep 2014
Posts: 56

Original Poster
Rep: Reputation: Disabled
Sorry i forget to attached the real file.tcl so it is bellow

dccp__lwx-LTE__nassou19891.txt

Of core i simulate this file with the extension .tcl
 
Old 10-26-2014, 10:08 AM   #5
nassou19891
Member
 
Registered: Sep 2014
Posts: 56

Original Poster
Rep: Reputation: Disabled
after searching i think that the probleme in my code tcl is in part of creation of the wimax network .

So

Q1 : can you help me to create a wimax network ( note : i use lwx patch in my ns2 ) .

This Wimax network contain : one BS , and two SS ( mobile nodes ) Please i need your help .

 
  


Reply

Tags
ns2



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
which version of ns2 is better for simulating cognitive radio networks maitanaji Linux - Newbie 9 04-11-2017 08:10 AM
Anyone simulating Fibre Channel Networks using NS2..? srikanthchikka Linux - Newbie 2 07-21-2014 04:10 AM
[SOLVED] Looking for links to NS2 code Hushairi Linux - Newbie 3 12-02-2012 06:43 AM
Can ns2 simulatewifi networks susanthomas Linux - Networking 1 05-23-2012 10:32 AM
ns2-how to use Diffserv in wireless-cum-wired networks robina Linux - Networking 0 03-03-2012 11:44 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration