LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   vlan.tcl in ns2 (https://www.linuxquestions.org/questions/linux-networking-3/vlan-tcl-in-ns2-4175454954/)

aditi.sen 03-21-2013 01:48 AM

vlan.tcl in ns2
 
Hello,

I'm trying to implement vlan in ns2. There is a vlan.tcl code in /../ns2.28/tcl/lan/vlan.tcl. Can someone please tell me briefly how it works. I am not able to understand the simulation. Pleasee help.

Thank you,
Aditi.

knudfl 03-21-2013 03:35 AM

Welcome to LQ.

Not very much information to find.
Google .. ns2 vlan simulation ..
http://cs-study.blogspot.dk/
> http://cs-study.blogspot.dk/2012/11/...-on-stick.html

http://conference.spit.ac.in/ieee_co...g/spit-256.pdf
...

Existing simulations / examples / tests that use "vlan(.tcl)"
cd ns-2.28/tcl/ex/ && grep -Rin vlan *
Code:

$ grep -Rin vlan *
snoop/MySnoop.tcl:1:puts "sourcing ../../lan/vlan.tcl..."
snoop/MySnoop.tcl:2:source ../..//lan/vlan.tcl
tcl/lib/ns-lib.tcl:166:source ../lan/vlan.tcl
vlantest-flat.tcl:1:puts "sourcing tcl/lan/vlan.tcl..."
vlantest-flat.tcl:2:source ../lan/vlan.tcl
vlantest-flat.tcl:5:set opt(namtr)      "vlantest-flat.nam"
vlantest-hier.tcl:1:puts "sourcing tcl/lan/vlan.tcl..."
vlantest-hier.tcl:2:source ../lan/vlan.tcl
vlantest-hier.tcl:5:set opt(namtr)      "vlantest-hier.nam"
vlantest-mcst.tcl:1:source ../lan/vlan.tcl
vlantest-mcst.tcl:4:set opt(namtr)      "vlantest-mcst.nam"

.. and : ns-2.28/tcl/test/test-suite-lan.txt, lines 34 and 66.

P.S.: All versions of ns2.xx have ns-2.xx/tcl/lan/vlan.tcl

-


All times are GMT -5. The time now is 10:49 PM.