[ns] looking for FHMIP ns extension

2006-08-18 Thread 장동혁

I am looking for FHMIP extension.

FHMIP extension site “http://mobqos.ee.unsw.edu.au/~robert/nsinstall.php”
is empty.

Anyone have it???  Or anyone know another site to download it???

 

If you have FHMIP extension, please send me..

 

 

[EMAIL PROTECTED]

 

 



[ns] energy model for mac tdma ,please help

2006-08-18 Thread prabhu annabathula

hi all

Is there any problem with mac-tdma energy model for ns
2.27 why doesnt the node energy doesnt decrease,it reamains same through out
,should iconfigure anything for energy changes to show up? plz help me


Re: [ns] TCP Packet Sizes in Trace File

2006-08-18 Thread Pedro Fortuna

I really don't know why, but 20 bytes is a familiar number:
a TCP ack = 20 bytes
the difference between IPv4 and IPv6 headers = 20 bytes

good luck

On 8/16/06, Denis Vella <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> I've noticed that each packet sent from TCP Agents is shown as having
> increased by 20 bytes at the TCPSink when using new-trace format
> tracefiles.  The same trace output using the older trace format behaves
> completely differently.  I'm using ns2.29.3-allinone.
>
> What is the explanation for this 20 byte increase?
>
> Thanks,
> Denis
>
>
> The information contained in this email is confidential and may be
> privileged. It is intended for the addressee only, if you are not the
> intended recipient please notify the sender and delete the email
> immediately. The contents of this email must not be disclosed or copied
> without the senders consent.
> We cannot accept any responsibility for viruses.
> Any views expressed in this message are those of the individual sender,
> except where the sender specifically states them to be the view of Philip
> Toledo Limited
>
>


-- 
Cumprimentos,
Pedro Fortuna


Re: [ns] How to save xgraph plots :-??

2006-08-18 Thread Aritra Das

HI

can you help me how to use gnuplot. i have the trace file. now how to
proceed with gnuplot. or is it like xgraph that you have to write a
code in the tcl file. also, what are the formats in which i can save
from gnuplot - please specify

Aritra

On 8/13/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> True. However, colour will be lost if the graph is saved as a ps file.
>
> P.
>
> M. Akif YAZICI wrote:
> > Try printing the graph into a ps file.
> >
> >
> >
> >
>
>



[ns] Mean of Trace file : Ad-hoc

2006-08-18 Thread hamid reza

Hi,
I used NS2.27 as  my simulation Tool.
Trace File Content are:

s 1.00070 _0_ AGT  --- 1 cbr 500 [0 0 0 0] ---
[0:0 6:0 32 0] [1] 0 0
s 1.031376315 _5_ MAC  --- 0 ARP 80 [13a 6 5 806]
--- [REPLY 5/5 6/6]
s 1.000595000 _0_ MAC  --- 0 AODV 100 [0  0
800] --- [0:255 -1:255 30 0] [0x2 1 1 [6 0] [0 4]]
(REQUEST)
r 1.054225914 _1_ MAC  --- 0 ACK 38 [0 1 0 0]
s 1.112215771 _3_ MAC  --- 0 RTS 44 [4cd 4 3 0] 
r 1.112318831 _1_ MAC  --- 0 RTS 44 [4cd 1 0 0] 
s 1.112578305 _4_ MAC  --- 0 CTS 38 [393 3 0 0]
D 1.148260134 _3_ MAC  COL 0 RTS 44 [4cd 3 2 0]

Do you have any trace format for this one?
I am Familiar with  Some Sections of this trace file.
But I m confused From  some Sections(example .
How do you read it?
What are the mean of  "---" and "-- --- --"
delimiters?


Best Regards
Hamid Reza


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



[ns] Setting Wireless bandwidth parameter in Wireless Network

2006-08-18 Thread lekkie omotayo

How can I set the bandwidth in tcl scripts for my simulation. Also, how can
I calculate the bandwidth consumed/available on a network.

lekkie.


Re: [ns] Accessing object created in Tcl from C++

2006-08-18 Thread Prashant Batra

Hi Shafiq,

To access a variable declared in your TCL script, you can use the following 
method :-

Tcl& tcl = Tcl::instance();
tcl.lookup(char* s);

The 'lookup()' function of Tcl class takes a pointer to the name of the 
variable in the TCL script and returns you a TclObject class object, 
which you can further typecast into your specific object type and use.

 - Prashant



Shafiq Hashmi wrote:
> Hello all,
>
> Is it possible to access an object of Agent/RCAgent, created in Tcl, from 
> another C++ class.
>
> Can anybody tell me ?
>
> Thanx
> Shafiq
>
>   



Re: [ns] help: ns-eurane install worng

2006-08-18 Thread Prashant Batra

Hi,

To get it working, you should enter into the NS Directory and then fire 
the same command i.e. patch -p1 < "Path to your Diff File"

- Prashant

袁旭 wrote:
> 
>
>  
>  
>
> I installed the ns-allinone-2.28 in linux of ubuntu6.06
> and do this command:patch -p1 < ns-eurane-111.diff 
> system tell:
> can't find file to patch at input line 4 
> Perhaps you used the wrong -p or --strip option? 
> The text leading up to this was: 
> -- 
> |diff -b -B -u -I '$Id.*$' -I '$Header.*$' --new-file --recursive 
> ns-2.28-orig/common/packet.h ns-2.28-eu111/common/packet.h 
> |--- ns-2.28-orig/common/packet.h   2005-01-19 19:23:18.0 +0100 
> |+++ ns-2.28-eu111/common/packet.h  2005-10-28 14:06:41.0 +0200 
> -- 
> File to patch: 
>
>  



Re: [ns] Mac/802_11 parameters are not taking effect

2006-08-18 Thread Sandeep

Miguel Sepulcre Ribes wrote:

> Hi,
> How do you know that they are not taking effect? They seem correctly 
> written...
> Regards
> Miguel
>
>
>
> */Sandeep <[EMAIL PROTECTED]>/* escribió:
>
>
> Hi
> I am attaching a wireless script that I have written for ns-2.27, In
> the script I set Mac/802_11 parameters such as datarate as u can
> see in
> below script, but they are not taking effect. What could
> be the problem. Somebody please help me.
> Thank you.
> regards
> Sandeep
> 1 #source /work/sandeepl/ns-allinone-2.27/ns-2.27/tcl/lan/ns-mac.tcl
> 2
> 3 set val(chan) Channel/WirelessChannel ;# channel type
> 4 set val(prop) Propagation/TwoRayGround ;#
> radio-propagation
> model
> 5 set val(netif) Phy/WirelessPhy ;# network
> interface
> type
> 6 set val(mac) Mac/802_11 ;# MAC type
> 7 set val(ifq) Queue/DropTail/PriQueue ;# interface
> queue ty
> pe
> 8 set val(ll) LL ;# link layer
> type
> 9 set val(ant) Antenna/OmniAntenna ;# antenna model
> 10 set val(ifqlen) 50 ;# max packet
> in ifq
> 11 set val(nn) 2 ;# number of
> mobileno
> des
> 12 set val(rp) DSDV ;# routing
> protocol
> 13 set val(x) 800
> 14 set val(y) 800
> 15
> 16 Mac/802_11 set SlotTime_ 0.20 ;# 20us
> 17 Mac/802_11 set SIFS_ 0.10 ;# 10us
> 18 Mac/802_11 set PreambleLength_ 144 ;# 144 bit
> 19 Mac/802_11 set PLCPHeaderLength_ 48 ;# 48 bits
> 20 Mac/802_11 set PLCPDataRate_ 1.0e6 ;# 1Mbps
> 21 Mac/802_11 set dataRate_ 11.0e6 ;# 11Mbps
> 22 Mac/802_11 set basicRate_ 1.0e6 ;# 1Mbps
> 23
> 24
> 25 set ns [new Simulator]
> 26 set tr [open trace.tr w]
> 27 #$ns use-newtrace
> 28 $ns trace-all $tr
> 29 set na [open trace.nam w]
> 30 $ns namtrace-all-wireless $na $val(x) $val(y)
> 31 set chan1 [new $val(chan)]
> 32 set topo [new Topography]
> 33 $topo load_flatgrid 800 800
> 34 create-god 2
> 35
> 36 proc finish {} {
> 37 global ns tr na
> 38 $ns flush-trace
> 39 $ns nam-end-wireless [$ns now]
> 40 close $tr
> 41 close $na
> 42 exec nam trace.nam &
> 43 exit 0;
> 44 }
> 45
> 46 $ns node-config -adhocRouting $val(rp)\
> 47 -llType $val(ll) \
> 48 -macType $val(mac) \
> 49 -antType $val(ant) \
> 50 -propType $val(prop) \
> 51 -phyType $val(netif) \
> 52 -channel $chan1 \
> 53 -topoInstance $topo \
> 54 -agentTrace ON \
> 54 -agentTrace ON \
> 55 -routerTrace ON \
> 56 -macTrace ON \
> 57 -movementTrace OFF\
> 58 -ifqType $val(ifq) \
> 59 -ifqLen $val(ifqlen)
> 60
> 61 for {set i 0} {$i < 2} {incr i} {
> 62 set node_($i) [$ns node]
> 63 #$ns initial_node_pos $node_($i) 30+i*100
> 64 }
> 65
> 66 $node_(0) set X_ 30
> 67 $node_(0) set Y_ 30
> 68 $node_(0) set Z_ 0
> 69 $node_(1) set X_ 400
> 70 $node_(1) set Y_ 420
> 71 $node_(1) set Z_ 0
> 72
> 73 $node_(0) color green
> 74 $node_(1) color green #from line 74 to 90
> there are comments and also somewhere below
> 90 set udp [new Agent/UDP]
> 91 set des [new Agent/Null]
> 92 $ns attach-agent $node_(0) $udp
> 93 $ns attach-agent $node_(1) $des
> 94 $ns connect $udp $des
> 95
> 96 set udapp [new Application/Traffic/CBR]
> 97 $udapp attach-agent $udp
> 98 $udapp set fid_ 1
> 99 $udapp set packetSize_ 400
> 102 $ns at 1.0 "$udapp start"
> 105 $ns at 30.0 "$udapp stop"
> 106 $ns at 30.0 "$ns halt"
> 107 ns at 30.0 "finish"
> 108 $ns run
>
>
>
> 
>
> LLama Gratis a cualquier PC del Mundo.
> Llamadas a fijos y móviles desde 1 céntimo por minuto.
> http://es.voice.yahoo.com 
> 
>  


I am calculating throughput, there is no difference in throught even if 
I change dataRate_  or any other Mac/802_11 parameter.



[ns] Error: Modifying IP for IPv6

2006-08-18 Thread lekkie omotayo

I tried emulating ip in ns2 to create ipv6, just to increase header size to
emulate ipv6 and make use of fid field and priority field.
After duplicatin the ip.cc/h to ipv6.cc/h. I changed the variable names to
reflect
ipv6 i.e append v6 to places where ip are.

/ns-2.28/common/ipv6.cc
#ifndef lint
static const char rcsid[] =
"@(#) $Header: /nfs/jade/vint/CVSROOT/ns-2/common/ip.cc,v 1.8 1998/08/12
23:41:05 gnguyen Exp $";
#endif


#include "packet.h"
#include "ipv6.h"

int hdr_ipv6::offset_;


static class IPHeaderClass : public PacketHeaderClass {
public:
IPHeaderClass() : PacketHeaderClass("PacketHeader/IPV6",
sizeof(hdr_ipv6)) {
bind_offset(&hdr_ipv6::offset_);
}
void export_offsets() {
field_offset("src_", OFFSET(hdr_ipv6, src_));
field_offset("dst_", OFFSET(hdr_ipv6, dst_));
field_offset("ttl_", OFFSET(hdr_ipv6, ttl_));
field_offset("fid_", OFFSET(hdr_ipv6, fid_));
field_offset("prio_", OFFSET(hdr_ipv6, prio_));
}
} class_iphdrv6;


/ns-2.28/common/ipv6.h

/* a network layer; basically like IPv6 */
#ifndef ns_ip_h
#define ns_ip_h

#include "config.h"
#include "packet.h"


#define IP_HDR_LEN  40
#define IP_DEF_TTL  32

// The following undef is to suppress warnings on systems were
// IP_BROADCAST is defined.
#ifdef IP_BROADCAST
#undef IP_BROADCAST
#endif

#define IP_BROADCAST((u_int32_t) 0x)

struct hdr_ipv6 {
/* common to IPv{4,6} */
ns_addr_t   src_;
ns_addr_t   dst_;
int ttl_;

/* Monarch extn */
//  u_int16_t   sport_;
//  u_int16_t   dport_;

/* IPv6 */
int fid_;   /* flow id */
int prio_;

static int offset_;
inline static int& offset() { return offset_; }
inline static hdr_ipv6* access(const Packet* p) {
return (hdr_ipv6*) p->access(offset_);
}

/* per-field member acces functions */
ns_addr_t& src() { return (src_); }
nsaddr_t& saddr() { return (src_.addr_); }
int32_t& sport() { return src_.port_;}

ns_addr_t& dst() { return (dst_); }
nsaddr_t& daddr() { return (dst_.addr_); }
int32_t& dport() { return dst_.port_;}
int& ttl() { return (ttl_); }
/* ipv6 fields */
int& flowid() { return (fid_); }
int& prio() { return (prio_); }
};

#endif


After this, I made modifications to:
/ns-2.28/common/packet.h
#define HDR_MAC_TDMA(p) ((hdr_mac_tdma *)hdr_mac::access(p))
#define HDR_SMAC(p) ((hdr_smac *)hdr_mac::access(p))
#define HDR_LL(p)   (hdr_ll::access(p))
#define HDR_IP(p)   (hdr_ip::access(p))
//Added by Omotayo Lekan for IPv6
#define HDR_IPV6(p) (hdr_ipv6::access(p))
#define HDR_RTP(p)  (hdr_rtp::access(p))
#define HDR_TCP(p)  (hdr_tcp::access(p))
#define HDR_SCTP(p) (hdr_sctp::access(p))

changes in ns-2.28/tcl/lib/ns-packet.tcl
Encap
Flags
HttpInval
IMEP
IP
# Added by Omotayo Lekan, IPv6 modification
IPV6
IPinIP
IVS
LDP
LL
mcastCtrl
MFTP
MPLS


no changes were made to ns-2.28/common/packet.cc, ns-2.28/tcl/lib/ns-
default.tcl, ns-2.28/tcl/lib/ns-lib



--- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) ---
_o21: no target for slot 31
_o21 type: Classifier/Addr
content dump:
classifier _o21
0 offset
11 shift
2047 mask
0 slots
-- Finished standard no-slot{} default handler --


[ns] Determine IP packet size

2006-08-18 Thread lekkie omotayo

How can I know the packet size with TCl during runtime. I mean , like making
it reflect in my trace file.
Also, I want to be able to set a default size for my packet size at compile
time in tcl.

i was also wondering where in the C++ code, the packet size was initialize,
I tried checking the /ns-2.28/tcl/lib/ns-default.tcl file but it's not
there.

Lekkie.


[ns] Setting IP prototcols priority in with TCL scripts

2006-08-18 Thread lekkie omotayo

Hi guys, how can I set the priority field of the IP protocol? I also want
to give each packet a flow id?

How can I set this?


[ns] installing Tracegraph

2006-08-18 Thread lekkie omotayo

How do install tracegraph. i have installed the Matlab library.


[ns] Default TCP window size

2006-08-18 Thread lekkie omotayo

What is the default TCP Window size for FTP, HTTP?


[ns] Event Scheduler in NS

2006-08-18 Thread sandoche balakrichenan

Hello all
Below is a part of code which describes my problem. In the first function
"wakeupTimer()", i create an event. The event should call another function
"retryQuery()", after a timeout of 5 seconds from which the event is called.
But for me while i execute the ns code, and if i start my simulation at 0
seconds the event retryQuery() function should have been called after 5
seconds naturally, but actually it is calling immediately i.e at "0" seconds
itself. Is the code that i have written wrong.

wakeupTimer(int id) {
  Scheduler &s = Scheduler::instance();
   timeout = Scheduler::instance().clock() + 5;
   Event *point_e = (Event *)retryQuery(id,nbIteration);
   if (point_e!=NULL)
   s.schedule((Handler *)this, point_e, timeout) ;
}

Event *dns_resolverAgent::retryQuery(int id,int nb_iteration){
  wakeupTimer(int id);
}


[ns] application over TCP

2006-08-18 Thread Yehia

Hello ns2 users.

I would like to know how to build a simple application to work
above TCP in ns2. This application is just expected to do some
session management.

I would really like any pointers regarding this issue.


Cheers,
Yehia

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



[ns] ns-802.11e EDCF installation problem

2006-08-18 Thread mayank kanthali

Hi all,
i was trying to install ns-802.11e EDCF for IEEE
802.11e 
Wireless LAN. I found this pakage from web site
http://www-sop.inria.fr/planete/qni/Research.html#ns

when I run the command "make install" , I got the
countless error like ...  
plm/loss-monitor-plm.o(.text+0xf2): In function
`PLMLossMonitor::PLMLossMonitor[in-charge]()':
: undefined reference to `TclObject::bind(char const*,
double*)'
undefined reference to `TclObject::bind(char const*,
double*)'
tfrc-sink.o(.text+0x22d): In function
`TfrcSinkAgent::TfrcSinkAgent[not-in-charge]()':
: undefined reference to `TclObject::bind(char const*,
int*)'

so please help to get rid of those installation
problem 
 its very very urgent.  

thanking you

waiting for response...


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



[ns] ns-802.11e EDCF installation problem

2006-08-18 Thread mayank kanthali

Hi all,
i was trying to install ns-802.11e EDCF for IEEE
802.11e 
Wireless LAN. I found this pakage from web site
http://www-sop.inria.fr/planete/qni/Research.html#ns

when I run the command "make install" , I got the
countless error like ...  
plm/loss-monitor-plm.o(.text+0xf2): In function
`PLMLossMonitor::PLMLossMonitor[in-charge]()':
: undefined reference to `TclObject::bind(char const*,
double*)'
undefined reference to `TclObject::bind(char const*,
double*)'
tfrc-sink.o(.text+0x22d): In function
`TfrcSinkAgent::TfrcSinkAgent[not-in-charge]()':
: undefined reference to `TclObject::bind(char const*,
int*)'

so please help to get rid of those installation
problem 
 its very very urgent.  

thanking you

waiting for response...


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



[ns] mobile agent intrusion detection (IDS) for MObile ad hoc network (manet)

2006-08-18 Thread *bahareh NTC*

Hi there..
  iam trying to learn NS2 for simulate some IDS FOR manet,,is there any body 
that who could help me to find the best defult source code of differnet IDS in 
NS2 specilly for MANet,,or wireless network??
  ..
  if you give even simple guidline for me that are in the first level of 
learning NS2 is quite usefull
  thank you in adbanve
  BPZ


-
Do you Yahoo!?
 Get on board. You're invited to try the new Yahoo! Mail Beta.

-
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great rates 
starting at 1¢/min.


[ns] How to change routing protocol packet header field?

2006-08-18 Thread Jana Henniger

Hello all,

how can I change a field in the routing protocol packet header but only for one 
node.

I tried it with the help of an agent but don't know how to assign the value to 
the packet header, since they are two different objects.
I use AODV.

Has anyone an idea?!

jana
-- 


"Feel free" – 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail



[ns] Mac/802_11 parameters are not taking effect

2006-08-18 Thread Sandeep

Hi
I am attaching a wireless script  that I have written for ns-2.27, In 
the script I set Mac/802_11 parameters such as datarate as u can see in 
below script, but they are not taking effect.  What could
be the problem. Somebody please help me.
Thank you.
regards
Sandeep
 1 #source /work/sandeepl/ns-allinone-2.27/ns-2.27/tcl/lan/ns-mac.tcl
  2
  3 set val(chan)   Channel/WirelessChannel;# channel type
  4 set val(prop)   Propagation/TwoRayGround   ;# 
radio-propagation
model
  5 set val(netif)  Phy/WirelessPhy;# network 
interface
type
  6 set val(mac)Mac/802_11 ;# MAC type
  7 set val(ifq)Queue/DropTail/PriQueue;# interface 
queue ty
pe
  8 set val(ll) LL ;# link layer 
type
  9 set val(ant)Antenna/OmniAntenna;# antenna model
 10 set val(ifqlen) 50 ;# max packet 
in ifq
 11 set val(nn) 2  ;# number of 
mobileno
des
 12 set val(rp) DSDV   ;# routing 
protocol
 13 set val(x)  800
 14 set val(y)  800
 15  
 16 Mac/802_11 set SlotTime_  0.20;# 20us
 17 Mac/802_11 set SIFS_  0.10;# 10us
 18 Mac/802_11 set PreambleLength_144 ;# 144 bit
 19 Mac/802_11 set PLCPHeaderLength_  48  ;# 48 bits
 20 Mac/802_11 set PLCPDataRate_  1.0e6   ;# 1Mbps
 21 Mac/802_11 set dataRate_  11.0e6  ;# 11Mbps
 22 Mac/802_11 set basicRate_ 1.0e6   ;# 1Mbps
 23
 24
 25 set ns [new Simulator]
 26 set tr [open trace.tr w]
 27 #$ns use-newtrace
 28 $ns trace-all $tr
 29 set na [open trace.nam w]
 30 $ns namtrace-all-wireless $na $val(x) $val(y)
 31 set chan1 [new $val(chan)]
 32 set topo [new Topography]
  33 $topo load_flatgrid 800 800
 34 create-god 2
 35
 36 proc finish {} {
 37global ns tr na
 38$ns flush-trace
 39$ns nam-end-wireless [$ns now]
 40close $tr
 41close $na
 42exec nam trace.nam &
 43exit 0;
 44 }
 45
 46 $ns node-config   -adhocRouting $val(rp)\
 47  -llType $val(ll) \
 48  -macType $val(mac) \
 49  -antType $val(ant) \
 50  -propType $val(prop) \
 51  -phyType $val(netif) \
 52  -channel $chan1 \
 53  -topoInstance $topo \
 54  -agentTrace ON \
54  -agentTrace ON \
 55  -routerTrace ON \
 56  -macTrace ON \
 57  -movementTrace OFF\
 58  -ifqType $val(ifq) \
 59  -ifqLen $val(ifqlen)
 60
 61 for {set i 0} {$i < 2} {incr i} {
 62 set node_($i) [$ns node]
 63 #$ns initial_node_pos $node_($i) 30+i*100
 64 }
 65
 66 $node_(0) set X_ 30
 67 $node_(0) set Y_ 30
 68 $node_(0) set Z_ 0
 69 $node_(1) set X_ 400
 70 $node_(1) set Y_ 420
 71 $node_(1) set Z_ 0
 72
 73 $node_(0) color green
 74 $node_(1) color green#from line 74 to 90 
there are comments and also somewhere below
 90 set udp [new Agent/UDP]
 91 set des [new Agent/Null]
 92 $ns attach-agent $node_(0) $udp
 93 $ns attach-agent $node_(1) $des
 94 $ns connect $udp $des
 95
 96 set udapp [new Application/Traffic/CBR]
 97 $udapp attach-agent $udp
 98 $udapp set fid_ 1
 99 $udapp set packetSize_ 400
   102 $ns at 1.0 "$udapp start"
105 $ns at 30.0 "$udapp stop"
   106 $ns at 30.0 "$ns halt"
107 ns at 30.0 "finish"
108 $ns run