cbrgent tool

46 views
Skip to first unread message

abdusalam yahya

unread,
Dec 22, 2021, 2:50:53 PM12/22/21
to ns-u...@googlegroups.com
Hi friends ,

I have a question abdout cbrgent.tcl  . i need to generate traffic rate 64kbps  using cbrgent tool as follows:
.
ns cbrgent.tcl  -type cbr -nn 5 -seed 0.01  -mc 3   -rate ....... ??...could you please help in this point i need the value which willgenerat traffic rate with 64kbps..
Best regarss

RC Production

unread,
Dec 23, 2021, 3:04:26 AM12/23/21
to ns-u...@googlegroups.com
your modify cbrgent.tcl with your research and make sure you use cbr

--
You received this message because you are subscribed to the Google Groups "Network Simulator 2 (NS2)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-users+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ns-users/CAJQXiBy9rnZRz68E%3DvQ%2BxNGFLP55tLiOQ_DOLvJzMAnbPETHOQ%40mail.gmail.com.

knudfl

unread,
Dec 23, 2021, 4:16:11 AM12/23/21
to Network Simulator 2 (NS2)
Hi.

set cbr-rate  as an argument
set opt(cbr-rate) [lindex $argv 1]   ;# CBR data rate  
urban-VANET-example.tcl

.... or as a fixed value 
set opt(cbr-rate) 10000kbps          ;# CBR data rate

$ grep -R "set opt(cbr-rate" *
021-Vanet-tes-zigbee.tcl:       set opt(cbr-rate) 10000kbps             ;# CBR data rate
0P-021-Vanet-tes-zigbee.tcl:    set opt(cbr-rate) 10000kbps             ;# CBR data rate
11-estudy-vanet.tcl:set opt(cbr-rate)   10000kbps
47-vanet-rsu-19.tcl:set opt(cbr-rate) 10000kbps         ;# CBR data rate
48-vanet-rsu-19.tcl:set opt(cbr-rate) 10000kbps         ;# CBR data rate
802.15.4-Vanet-tes.tcl: set opt(cbr-rate) 10000kbps             ;# CBR data rate
A-urban-VANET-TeatinosM40.tcl:  set opt(cbr-rate)       10000kbps       ;# CBR data rate
DSDV-estudy-vanet.tcl:set opt(cbr-rate) 10000kbps
DSDV-urban-VANET-TeatinosM40.tcl:       set opt(cbr-rate)       10000kbps       ;# CBR data rate
eNodeB-unam11-802.11p.tcl:      set opt(cbr-rate) 100kbps                   ;# CBR data rate
estudy-vanet.tcl:set opt(cbr-rate)      10000kbps
fsr-Vanet-tes.tcl:      set opt(cbr-rate) 10000kbps             ;# CBR data rate
guindy-teatinos40A.tcl: set opt(cbr-rate) 100kbps                   ;# CBR data rate
guindy-vanet39.tcl:     set opt(cbr-rate) 100kbps       ;       # CBR data rate
LTE-802.11p-examples/L-guindy-teatinos40A.tcl:  set opt(cbr-rate) 100kbps                   ;# CBR data rate
LTE-802.11p-examples/eNodeB-unam11-802.11p.tcl: set opt(cbr-rate) 100kbps                   ;# CBR data rate
LTE-802.11p-examples/unam11-802.11p.tcl:        set opt(cbr-rate) 100kbps                   ;# CBR data rate
m10-urban-VANET.tcl:    set opt(cbr-rate)  10Mbps                       ;# CBR data rate
olsr-guindy-vanet39.tcl:        set opt(cbr-rate) 100kbps       ;       # CBR data rate
PKTS.olsr.tcl:set opt(cbr-rate)  10000kbps
unam11-802.11p.tcl:     set opt(cbr-rate) 100kbps                   ;# CBR data rate
urban-VANET-t30.tcl:    set opt(cbr-rate) 10000kbps             ;# CBR data rate
urban-VANET-TeatinosM40.tcl:    set opt(cbr-rate)       10000kbps       ;# CBR data rate
vanet-DSDV-dream_2.tcl:set opt(cbr-rate)        10000kbps
Vanet-M-tes-gpsr.tcl:   set opt(cbr-rate) 10000kbps             ;# CBR data rate
Vanet-tes-AODV.tcl:     set opt(cbr-rate) 10000kbps             ;# CBR data rate
Vanet-tes-gpsr.tcl:     set opt(cbr-rate) 10000kbps             ;# CBR data rate
vanet-tora-1/15tora-project-code_input.tcl:set opt(cbr-rate)    100kbps
vanet-tora-1/18urban-VANET-TeatinosM40.tcl:     set opt(cbr-rate)       10000kbps       ;# CBR data rate
vanet-tora-1/urban-VANET-TeatinosM40.tcl:       set opt(cbr-rate)       10000kbps       ;# CBR data rate
Vanet-T-tes-gpsr.tcl:   set opt(cbr-rate) 10000kbps             ;# CBR data rate

Diógenes José

unread,
Dec 23, 2021, 10:05:49 AM12/23/21
to 'knudfl' via Network Simulator 2 (NS2)
ns cbrgent.tcl  -type cbr -nn 5 -seed 0.01  -mc 3   -rate 64.0kb

--

knudfl

unread,
Dec 24, 2021, 3:57:24 AM12/24/21
to Network Simulator 2 (NS2)

knudfl

unread,
Dec 24, 2021, 9:50:51 AM12/24/21
to Network Simulator 2 (NS2)
Example cbr  64kbps:
$ ns cbrgen.tcl -type cbr -nn 10 -seed 0.01 -mc 8 -rate 0.0000156
→  # nodes: 10, max conn: 8, send rate: 64102.564102564102, seed: 0.01
............ which is close to your "64kbps"

→ see attachment "cbrgen-rate.txt"

I found my year 2017 answer with Google , ns2 cbrgen.tcl rate
( ~ 4000 hits.)
Reply all
Reply to author
Forward
0 new messages