[ns] how to simulate ipsec on NS

2007-09-18 Thread wafa boudiab

hi all
   
  can you help me how to simulate ipsec usin ns simulator
   
  best regards
  wafaa bou diab

   
-
Tonight's top picks. What will you watch tonight? Preview the hottest shows on 
Yahoo! TV.


Re: [ns] G.711 codec

2007-09-18 Thread Ilyes Gouta

Hi,

The G.711 is a constant bit rate encoder/producer. It just takes a
linear PCM sample and re-encodes it using a logarithmic approach. The
final output is 64 kbit/s (but it can be 54 kbits/s too).

NS doesn't care about the encoder itself, i.e its internals. What
matters is the number of packets generated each second, how they are
generated (the inter-generation interval) and the size of each packed.
In your case, a G1.711 encoder (the source) can be modeled by a
UDP/CBR node.

BR,
Ilyes Gouta.

On 9/17/07, Brenda Lindsay Williams [EMAIL PROTECTED] wrote:

 I want to use G.711 codec to simulate a VoIP traffic using an exponential
 distribution process based on a stochastic model...
 Can someone pls tell me what properties my packets will have based on the
 G.711 codec standard...
 Does anyone have a tcl script depicting G.711
 Thanks

 Regards




Re: [ns] G.711 codec

2007-09-18 Thread Ilyes Gouta

Hi again,

Just as a follow up on the G.711, the simplistic UDP/CBR model won't
be useful if you want to simulate stuff like silence concealment and
activity detection which are actually two key elements, encoders can
use nowadays to efficiently compress audio.

You can still use the UDP/CBR model but you'll have to say it clear
that it has such and such limitations. You can start with it, do the
work and then if you find a better model you can always change it. It
always involves modifying just one line in your tcl script and
rerunning the simulation.

BR,
Ilyes Gouta.

On 9/17/07, Brenda Lindsay Williams [EMAIL PROTECTED] wrote:

 I want to use G.711 codec to simulate a VoIP traffic using an exponential
 distribution process based on a stochastic model...
 Can someone pls tell me what properties my packets will have based on the
 G.711 codec standard...
 Does anyone have a tcl script depicting G.711
 Thanks

 Regards




[ns] need tcl script showing voice codec implementation

2007-09-18 Thread Brenda Lindsay Williams

Can someone pls give me a script showing voice codec implementation in NS2?
I'm working with G.711, but any available one based on the H.323 standard
will be greatly appreciated.
Thanks.

regards,

Brenda


Re: [ns] need tcl script showing voice codec implementation

2007-09-18 Thread Pedro Vale Estrela


Hi

Can you please explain in a single email which topics are you asking for
help, instead of sending countless seperated messages??

Pedro Estrela


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
 Of Brenda Lindsay Williams
 Sent: terça-feira, 18 de Setembro de 2007 16:57
 To: ns-users@ISI.EDU
 Subject: [ns] need tcl script showing voice codec implementation
 
 
 Can someone pls give me a script showing voice codec implementation in
 NS2?
 I'm working with G.711, but any available one based on the H.323 standard
 will be greatly appreciated.
 Thanks.
 
 regards,
 
 Brenda




[ns] problem connection

2007-09-18 Thread loussayef marouane

Dear all,

when I execute my program ns connect just node 9 to node 10.
where is the problem?

thanks.

# ==
# Define options
# ==
set val(chan) Channel/WirelessChannel  ;# channel type
set val(prop) Propagation/TwoRayGround ;# radio-propagation model
set val(ant)  Antenna/OmniAntenna  ;# Antenna type
set val(ll)   LL   ;# Link layer type
set val(ifq)  Queue/DropTail/PriQueue  ;# Interface queue type
set val(ifqlen)   50   ;# max packet in ifq
set val(netif)Phy/WirelessPhy  ;# network interface type
set val(mac)  Mac/802_11   ;# MAC type
set val(rp)   DSDV ;# ad-hoc routing protocol  
set val(nn)   11   ;# number of mobilenodes



# Create simulator
set ns_[new Simulator]

# Set up trace file
$ns_ use-newtrace
set tracefd [open jeudi.tr w]
$ns_ trace-all $tracefd

# Create the general operations director
# Used internally by MAC layer: must create!
create-god $val(nn)

# Create and configure topography (used for mobile scenarios)
set topo [new Topography]
# 500x500m terrain
$topo load_flatgrid 500 500

#

#  Create the specified number of mobilenodes [$val(nn)] and attach them

#  to the channel. 

#  Here two nodes are created : node(0) and node(1)

 
# configure node

 
$ns_ node-config -adhocRouting $val(rp) \

 -llType $val(ll) \

 -macType $val(mac) \

 -ifqType $val(ifq) \

 -ifqLen $val(ifqlen) \

 -antType $val(ant) \

 -propType $val(prop) \

 -phyType $val(netif) \

 -channelType $val(chan) \

 -topoInstance $topo \

 -agentTrace ON \

 -routerTrace ON \

 -macTrace OFF \

 -movementTrace OFF 
 

for {set i 0} {$i  $val(nn) } {incr i} {

set node_($i) [$ns_ node] 
$node_($i) random-motion 0;# disable random motion
$node_($i) set Z_ 0.0

}

$node_(0) set X_ 0.0

$node_(0) set Y_ 0.0

$node_(1) set X_ 50.0
$node_(1) set Y_ 50.0

$node_(2) set X_ 50.0
$node_(2) set Y_ 100.0

$node_(3) set X_ 0.0
$node_(3) set Y_ 150.0

$node_(4) set X_ 0.0
$node_(4) set Y_ 400.0

$node_(5) set X_ 200.0
$node_(5) set Y_ 0.0

$node_(6) set X_ 250.0
$node_(6) set Y_ 250.0

$node_(7) set X_ 250.0
$node_(7) set Y_ 300.0

$node_(8) set X_ 450.0
$node_(8) set Y_ 100.0

$node_(9) set X_ 500.0
$node_(9) set Y_ 200.0

$node_(10) set X_ 450.0
$node_(10) set Y_ 0.0

# 1500 - 20 byte IP header - 40 byte TCP header = 1440 bytes
Agent/TCP set packetSize_ 1440 ;# This size EXCLUDES the TCP header

set agent [new Agent/TCP]
set app [new Application/FTP]
set sink [new Agent/TCPSink]

$app attach-agent $agent

 
$ns_ attach-agent $node_(0) $agent
$ns_ attach-agent $node_(1) $agent
$ns_ attach-agent $node_(2) $agent
$ns_ attach-agent $node_(3) $agent
$ns_ attach-agent $node_(4) $agent
$ns_ attach-agent $node_(5) $agent
$ns_ attach-agent $node_(6) $agent
$ns_ attach-agent $node_(7) $agent
$ns_ attach-agent $node_(8) $agent
$ns_ attach-agent $node_(9) $agent
$ns_ attach-agent $node_(10) $sink
$ns_ connect $agent $sink


#30 seconds of warmup time for routing
$ns_ at 0.0 $app start
# 180 seconds of running the simulation time
$ns_ at 1200.0 $ns_ halt
$ns_ run

$ns_ flush-trace
close $tracefd





  
_ 
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail 


[ns] I really need advice on gigabit ethernet

2007-09-18 Thread Brenda Lindsay Williams

Pls I need to know what it takes to simulate gigabit ethernet...
I'm sorry cos I know I've asked this question to ns users twice already
today, but I have a report to submit tomorrow and I need to know even a
little about simulating Gigabit Ethernet in NS-2
I'm working on VoIP core networks using QoS (Quality of Service) parameters
as my performance metrics...
Thanks

Regards,

Brenda