[ns] Blackhole attack

2006-07-12 Thread S Kumar Mamillapalli

Hi,
   I am modifying dsr to counter blackhole attack. If anyone have 
simulation of Blackhole attack please send me.

Thanks in advance,
subhash.



[ns] MANET - Black Holes

2006-07-12 Thread S Kumar Mamillapalli

Hello everyone,

I am doing a simulation project similar your work on intrusion detection 
in MANET ...In my project, I've focused on DSR and Black hole attacks ...
Does any one HAVE or ACCESS to modified agent and other resources of Black 
Hole attack?(e.g.  modified DSRagent.cc and DSRagent.h ) or even related TCL 
sample 
file ...I will highly appreciate you if you send me resources of Black Hole ...

Thanks in advance,
regards,
subhash.



[ns] A simple umts scenario

2006-07-12 Thread Luqman Munawar

hello,

I have patched ns-2.28 with EURANE. I wanted to test the UMTS link but 
my code seem to contain some error. UE, node 2 in my case, is not 
connected as visible in nam even though I have created a DCH channel.

Can anyone give a hint what could be wrong in the following script.

Thank you in anticipation. cheers,

Luqman



.
#Create a simulator object
set ns [new Simulator]

#Open the nam trace file
set nf [open out.nam w]
$ns namtrace-all $nf

#Define a 'finish' procedure
proc finish {} {
global ns nf
$ns flush-trace
#Close the trace file
close $nf
#Execute nam on the trace file
exec nam out.nam 
puts Simulation ended!
exit 0
}

# Insert your own code for topology creation
# and agent definitions, etc. here

# Node address is 0
$ns node-config -UmtsNodeType rnc
set rnc [$ns create-Umtsnode]

# Node address is 1
$ns node-config -UmtsNodeType bs \
-downlinkBW 32kbs \
-downlinkTTI 10ms \
-uplinkBW 32kbs \
-uplinkTTI 10ms \

set bs [$ns create-Umtsnode]

#Iub configuration between RNC and BS
$ns setup-Iub $bs $rnc 622Mbit 622Mbit 15ms 15ms DummyDropTail 2000

# Node address for ue1 is 2
$ns node-config -UmtsNodeType ue \
-baseStation $bs \
-radioNetworkController $rnc

set ue1 [$ns create-Umtsnode]

# Node address for sgsn0 and ggsn0 is 3 and 4, respectively
set sgsn0 [$ns node]
set ggsn0 [$ns node]

# Node address for node1 is 5
set node1 [$ns node]

$ns duplex-link $node1 $ggsn0 622Mbit 1ms DropTail 1000
$ns duplex-link $ggsn0 $sgsn0 622Mbit 1ms DropTail 1000
$ns duplex-link $sgsn0 $rnc 622Mbit 1ms DropTail 1000

$rnc add-gateway $sgsn0

set rtp_sender [new Agent/RTP]
$ns attach-agent $node1 $rtp_sender

set rtp_receiver [new Agent/RTP]
$ns attach-agent $ue1 $rtp_receiver

# Create a CBR traffic source and attach it to udp0
set cbr0 [new Application/Traffic/CBR]
$cbr0 set packetSize_ 500
$cbr0 set interval_ 0.005
$cbr0 attach-agent $rtp_sender

#creation of DCH channel
$ns node-config -llType UMTS/RLC/AM \
-downlinkBW 64kbs \
-uplinkBW 64kbs \
-downlinkTTI 10ms \
-uplinkTTI 10ms

set dch0 [$ns create-dch $ue1 $rtp_receiver]

#Call the finish procedure after 5 seconds simulation time
$ns at 5.0 finish

#Run the simulation
$ns run



[ns] [Help/Query] error when running tcl code for a new routing protocol implemented

2006-07-12 Thread . Melvin John

Hi nsusers,

I have implemented a part of a hybrid routing protocol for adhoc networks. I
have written the code  for the neighborhood discovery and the local routing
protocol. I just wanted to check if my code was working alright, therefore i
wrote a simple tcl script which has 2 node, i make sure that the nodes are close
  to each other so that they can communicate with each other.

The problem is that when i run the ns command i get the following errors:
I cannot understand why i am getting these error or where i am going wrong.
Please could anybody help me with these errors.

thanks in advance.
cheers,
Melvin


$ ns test1.tcl
num_nodes is set 2
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
INITIALIZE THE LIST xListHead

(_o17 cmd line 1)
invoked from within
_o17 cmd tracetarget _o31
invoked from within
catch $self cmd $args ret
invoked from within
if [catch $self cmd $args ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error error when calling class $cls: $args $...
(procedure _o17 line 2)
(SplitObject unknown line 2)
invoked from within
$ragent tracetarget $T
(procedure _o14 line 14)
(Node/MobileNode agenttrace line 14)
invoked from within
$node agenttrace $tracefd
(procedure _o3 line 101)
(Simulator create-wireless-node line 101)
invoked from within
_o3 create-wireless-node
(eval body line 1)
invoked from within
eval $self create-wireless-node $args
(procedure _o3 line 23)
(Simulator node line 23)
invoked from within
$ns_ node 
(for body line 2)
invoked from within
for {set i 0} {$i  $val(nn) } {incr i} {
set node_($i) [$ns_ node ]
$node_($i) random-motion 0  ;# we disable random motion
}
(file test1.tcl line 79)



[ns] Mash Inspector on Mac OS X

2006-07-12 Thread Brad Montgomery

Hello All,

I've recently patched my installation of ns-allinone-2.29 (running on Mac OS
10.4.7) to use the Mash Inspector, but I am experiencing very poor
performance.

Is anyone else using Mash on Mac OS X?

Thanks!
Brad 



[ns] TKN Model 802.11eand wireless Error Model

2006-07-12 Thread michelenuti

Hi NS users,
I have a problem with 802.11e Model of TKN of Berlin.
If I set an Error Model for the wireless channel using Mac 802.11e, no one 
packet is dropped in the trace file.
If I use the same simulation just changing MAC 802.11e with MAC 802.11 I see 
that some packet get lost in the wireless channell. 
Does anybody knows how to use Error Model with 802.11e Model?


Thanks a lot,
Michele Nuti