[ns] ld: fatal: file tclAppInit.o: wrong ELF class: ELFCLASS64 during the installation of ns-allinone2.29.2

2006-05-25 Thread mountain chou

Hi, all,

The fatal error jumped up when I was installing the ns-allinone2.29.2
in my space, which is part of our university's Unix cluster.

$uname -a
SunOS hkpu11 5.8 Generic_117350-28 sun4u sparc SUNW,Sun-Fire

The full information about the fatal is the following

*

...
...
...
cc   tclAppInit.o
-L/rhome2/en/enqfzhou/NS2/ns-allinone-2.29/tcl8.4.11/unix -ltcl8.4
-ldl  -lsocket -lnsl -lm \
   -Wl,-R,/rhome2/en/enqfzhou/NS2/ns-allinone-2.29/lib -o tclsh
ld: fatal: file tclAppInit.o: wrong ELF class: ELFCLASS64
ld: fatal: File processing errors. No output written to tclsh
make: *** [tclsh] Error 1
tcl8.4.11 make failed! Exiting ...
For problems with Tcl/Tk see http://www.scriptics.com

*

Does any of you have any idea about how to solve this problem? Your help
is appreciated.

Leo



Re: [ns] error in installing ns on linux without Xwin

2006-05-25 Thread Filippos Kolovos

Of-cource you can,

I have installed ns-2 in XP (with cygwin) and I can run it smoothly.

I also have installed both ns-2.29 and ns-2.28 in my Debian Workstation
and when I connect with ssh, (where no X servers are available), both of
them run smoothly.

No, you do not NEED an X server to run ns. However, you do need
it if you want to run NAM, xgraph, DDD and any other tool that might require
X.

For the core ns - simulator, it is not a requirement.

-Fk



On 5/26/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
> -- Forwarded message --
> From: "zenith siea" <[EMAIL PROTECTED]>
> To: ns-users@ISI.EDU
> Date: Thu, 25 May 2006 18:15:28 +0800
> Subject: [ns] error in installing ns on linux without Xwin
> i have just installed my linux os, and no Xwin server installed, no
> gnome,kde.
> but some thing go wrong when i am trying to install ns:
> ./install
> it failed, it just told me:
> ...
> ...
> {standard input}:666: Error: symbol 'dy' is already defined
> {standard input}:673: Error: symbol 'dx' is already defined
> {standard input}:724: Error: symbol 'q' is already defined
> {standard input}:734: Error: symbol 'p' is already defined
> {standard input}:741: Error: symbol 'q' is already defined
> {standard input}:748: Error: symbol 'p' is already defined
> make: *** [tk3d.o] Error 1
> tk8.3.2 make failed! Exiting ...
> For problems with Tcl/Tk see http://www.scriptics.com
>
> i am about to ask, can ns be installed in linux without xwindow server?
> if yes, how would i configure before install?
> many many thanks!
>
>
>

-Fk

-- 
Filippos N Kolovos

Software Systems Analyst & Engineer
M.Sc. (Eng.) in Data Communications

Automation & Networking Department
University of Macedonia Library
Egnatia 156, P.O.Box 1591
540 06 Thessaloniki, Greece

E-Mail: [EMAIL PROTECTED],
   [EMAIL PROTECTED]
--


[ns] problem with DSDV protocol

2006-05-25 Thread preeti nimonkar

hello,
  I am simulating DSDV protocol in adhoc network ,and
transmitting a VBR data in it ,I have run simulation for 2500 sec
,it's not complete ,trace file generated is of 10 MB only ,while with
other protocols AODV,DSR simulation runs smoothly up to last sec,Can
any body tell me what's the problem with DSDV.



Re: [ns] Ns-users Digest, Vol 29, Issue 28

2006-05-25 Thread mahmoud ali

hi all
I'm doing simulation on security in MANETs, can any one provide me with the 
available methods and attributes for both implemented DSR and AODV into ns2, 
since I wanna apply some attacks on them, any one can help me in this plz.



> From: [EMAIL PROTECTED]> Subject: Ns-users Digest, Vol 29, Issue 28> To: 
> ns-users@ISI.EDU> Date: Thu, 25 May 2006 17:00:04 -0700> > Send Ns-users 
> mailing list submissions to> ns-users@isi.edu> > To subscribe or unsubscribe 
> via the World Wide Web, visit> 
> http://mailman.isi.edu/mailman/listinfo/ns-users> or, via email, send a 
> message with subject or body 'help' to> [EMAIL PROTECTED]> > You can reach 
> the person managing the list at> [EMAIL PROTECTED]> > When replying, please 
> edit your Subject line so it is more specific> than "Re: Contents of Ns-users 
> digest..."> > > Today's Topics:> >1. how to modify the module code about 
> satellite (r9406014)>2. How to find a handle to the node when in the 
> agent class>   (Paul Vincent Craven)>3. adhoc tcp simulation in 
> ns2.29 (sachin gajjar)>4. position of a mobile node (Surmila  Thokchom)>  
>   5. position of a mobile node while it is moving (Surmila  Thokchom)>6. 
> problem with DSDV protocol (preeti n!
 imonkar)>7. error in installing ns on linux without Xwin (zenith siea)>
8. Re: How to find a handle to the node when in the agent class>   (Paul 
Vincent Craven)>9. how to use static/manual routing in wireless networks? 
(kaibai)>   10. Installation problem in ns 2.1b9 in FC4 (Vinod)> > > 
--> > 
Message: 1> Date: Thu, 25 May 2006 08:06:59 +0800 (CST)> From: "r9406014" 
<[EMAIL PROTECTED]>> Subject: [ns] how to modify the module code about 
satellite> To: ns-users@ISI.EDU> Message-ID: <[EMAIL PROTECTED]>> Content-Type: 
text/plain; charset=big5> > hi all , can anybody tell me how to modify the 
module code about satellite?> > And , when i want to modify the code, how many 
steps should i do ?> > thanks all> > > > --> > 
Message: 2> Date: Wed, 24 May 2006 22:00:47 -0500> From: Paul Vincent Craven 
<[EMAIL PROTECTED]>> Subject: [ns] How to fin!
 d a handle to the node when in the agent class> To: ns-users@ISI.EDU> 
Message-ID: <[EMAIL PROTECTED]>> Content-Type: text/plain; charset=ISO-8859-1; 
format=flowed> > Ok, I've been banging my head on this question for quite some 
time now. > If someone can help me past this issue, I'd be happy to send them 
$100 > of Amazon wish-list stuff for their consulting time.> > Here's the deal. 
I've created my own routing agent. I can't get incoming > packets from the 
wireless connection to switch to the wired connection. > I'd really like to 
solve this issue.> > What have I figured out? To properly switch between the 
two, it appears > that I need to have the packet/event passed to the node's 
handler > (NsObject). Then it will go through the hierarchical addressing > 
classifier (HierClassifier), the Classifier, and then the > AddressClassifier. 
If I put the proper address in there, I should switch > to the wired interface. 
At least that is how the DSDV wireless2 example > appears to work.> > In the 
agent code I'm writing, I don't know how to!
  pass the event to the > node for proper classification. I see in the DSDV 
example all such > events that go to classification are scheduled by the link 
layer. So I > think that means that I need to pass my event down to the link 
layer. > But I don't know how to do that as I always get it passed back to my > 
agent instead. I'm not sure that passing down to the link layer is the > right 
thing to do. If it is, how do I get a reference to the proper > target? If it 
isn't, what am I supposed to do?> > I'd appreciate any help understanding how 
this works.> > Thanks,> > Paul Vincent Craven> [EMAIL PROTECTED]> > > > 
--> > Message: 3> Date: Thu, 25 May 2006 09:31:45 
+0530> From: "sachin gajjar" <[EMAIL PROTECTED]>> Subject: [ns] adhoc tcp 
simulation in ns2.29> To: ns-users@ISI.EDU> Message-ID:> <[EMAIL PROTECTED]>> 
Content-Type: text/plain; charset=ISO-8859-1; format=flowed> > I want to 
simulate adhoc tcp: t!
 ransport protocol for adhoc wireless network> by zhenghua et. al in ns
 2.29. has anyone tried this before> SachinGajjar> shgajjar@<[EMAIL 
PROTECTED]:[EMAIL PROTECTED]">[EMAIL PROTECTED]=20>> yahoo.com <[EMAIL 
PROTECTED]>> [EMAIL PROTECTED]<[EMAIL PROTECTED]:[EMAIL PROTECTED]">[EMAIL 
PROTECTED]=20>> > > --> > Message: 4> Date: 25 
May 2006 06:17:03 -> From: "Surmila  Thokchom" <[EMAIL PROTECTED]>> 
Subject: [ns] position of a mobile node> To: ns-users@ISI.EDU> Message-ID: 
<[EMAIL PROTECTED]>> Content-Type: text/plain; charset=iso-8859-1> >  ?> dear 
nsusers,> > can anyone tell me is there any function in ns-2.28 or ns-2.29 to 
locate the X and Y postion of a mobile node.> > thanks> > > surmila > > 
-

[ns] Installation problem in ns 2.1b9 in FC4

2006-05-25 Thread Vinod

hi,

im trying to install ns allinone 2.1b9 version in Fedora Core 4, but its 
not building "ns 2.19b" package.

i think the problem is with the gcc compiler. I had to install this old 
version because ZRP protocol is only implemented in that version.

can any one help me to resolve this issue.

thanx a lot,
vinod
--
Vinod Kone,
Btech,Computer Science,
VIII sem,
Room 177,Kapili,
IIT Guwahati.



[ns] how to use static/manual routing in wireless networks?

2006-05-25 Thread kaibai

Dear all,

 

I am doing simulation study for wireless sensor networks. I wonder if I can
fix the routing table in wireless simulation since I want to get rid of the
effects by the dynamic routing protocol (like DSDV, DSR, AODV). I tried $ns
rtproto Manual like what is told in Chapter 27 of ns manual, but it didn't
work. Can anyone tell me how to set routing table manually for mobilenodes?
Thank you very much in advance!!

 

Kai Bai

 



Re: [ns] How to find a handle to the node when in the agent class

2006-05-25 Thread Paul Vincent Craven

> What example is this? In my 2.29, /tcl/ex/wireless-dsdv-newnode.tcl
> doesn't
> run.

\ns-allinone-2.29\ns-2.29\ns-tutorial\examples\wireless2.tcl

This passes data between wired and wireless nodes just fine. It uses DSDV.

> This example does  want you want, eg, there the packets are sent from
> wireless node -> bs -> final wired node? If yes:
>
> - make a step by step debug on C++; put breakpoints on classfiers, which
> only trigger based on the current classfier name_ variable == _oXXX
> - if otcl comes into the way, check this:
> http://tagus.inesc-id.pt/~pestrela/ns2/ns2_debugging2.html
> http://tagus.inesc-id.pt/~pestrela/ns2/ns2_debugging3.html

I'm using different domains with the adderess. Marc Greis's tutorial is
excellent in that regard. But I never get back to the classifier once I've
done my routing. So the different domains do me no good.


>> In the agent code I'm writing, I don't know how to pass the event to the
> You are modifying the routing agent, which deals with control packets,
> and/or the classifier, which deals with data packets?

Just the routing agent, not the classifier.

> A data packet must be received in the node's head target (tcl proc which
> returns the _head private variable), and from this it must follow the
> chain
> of classifiers to the correct hierclassifier. Either you will use ns's
> standard classifiers, or you can make your own.

How do I get it to the node's head target so it can start the
classification? Once I schedule it, it comes back to my agent, not the
node's entry point.

The code below is what I use for forwarding the packet. When I actually
schedule or call the handler at the end, it gets passed back to my agent,
not the node. It doesn't go through the classifier.

// This is for data packets
void ATCS::forward_data(Packet* p)
{
printf("Foward data\n");
struct hdr_cmn* ch = HDR_CMN(p);
struct hdr_ip* ih = HDR_IP(p);

if(ch->direction() == hdr_cmn::UP &&
((u_int32_t)ih->daddr() == IP_BROADCAST || ih->daddr() == 
ra_addr()))
{
// Deliver this packet to the upper level agents
debug("Delivering packet to upper level agents\n");
dmux_->recv(p, (Handler *)0);
return;
}
else
{
printf("Trying to figure out where to forward this\n");

// Ok, we need to forward this somewhere. Check the routing 
table
ch->direction() = hdr_cmn::DOWN;
ch->addr_type() = NS_AF_INET;
if((u_int32_t)ih->daddr() == IP_BROADCAST)
{
ch->next_hop() = IP_BROADCAST;
}
else
{
nsaddr_t next_hop = rtable_.lookup(ih->daddr());
if((u_int32_t)next_hop == IP_BROADCAST)
{
printf("%f: Agent %d can not forward a packet 
destined to %d\n",
CURRENT_TIME,
ra_addr(),
ih->daddr());
drop(p, DROP_RTR_NO_ROUTE);
return;
}
else
{
printf("Next hop is %i\n",next_hop);
ih->daddr() = cluster_controller_address();
ch->next_hop() = next_hop;
}
}
printf("Scheduling packet\n");
  ch->addr_type_ = NS_AF_INET;
  //ch->xmit_failure_ = mac_failed;
  //ch->xmit_failure_data_ = this;

  printf ("Routing pkts outside domain: time %.5f ra_addr _%d_ ih->saddr
%d:%d -> ih->daddr %d:%d\n", CURRENT_TIME, ra_addr(), ih->saddr(),
 ih->sport(), ih->daddr(), ih->dport());

  assert (!HDR_CMN (p)->xmit_failure_ ||
  HDR_CMN (p)->xmit_failure_ == mac_callback);

  p->my_name="ATCS: Pass to wired?";
  // *** How do I get this passed to the nodes entry point?
  target_->recv(p, (Handler *)0);
  //downtarget_->recv(p->copy(), this);
  //pkt_timer_.resched(0.0);

  //target_->ifhead();
  //Scheduler::instance().schedule(target_, p, 0.0);
}
}


Paul Vincent Craven
[EMAIL PROTECTED]



[ns] error in installing ns on linux without Xwin

2006-05-25 Thread zenith siea

i have just installed my linux os, and no Xwin server installed, no gnome,kde.
but some thing go wrong when i am trying to install ns:
./install
it failed, it just told me:
...
...
{standard input}:666: Error: symbol 'dy' is already defined
{standard input}:673: Error: symbol 'dx' is already defined
{standard input}:724: Error: symbol 'q' is already defined
{standard input}:734: Error: symbol 'p' is already defined
{standard input}:741: Error: symbol 'q' is already defined
{standard input}:748: Error: symbol 'p' is already defined
make: *** [tk3d.o] Error 1
tk8.3.2 make failed! Exiting ...
For problems with Tcl/Tk see http://www.scriptics.com

i am about to ask, can ns be installed in linux without xwindow server?
if yes, how would i configure before install?
many many thanks!



[ns] problem with DSDV protocol

2006-05-25 Thread preeti nimonkar

hello,
   I am simulating DSDV protocol in adhoc network ,and
transmitting a VBR data in it ,I have run simulation for 2500 sec
,it's not complete ,trace file generated is of 10 MB only ,while with
other protocols AODV,DSR simulation runs smoothly up to last sec,Can
any body tell me what's the problem with DSDV.