Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 09-02-2017, 01:08 PM   #1
LQ Newbie
Registered: Sep 2017
Posts: 6

Rep: Reputation: Disabled
how to setup hierarchical addressing in ns-2 ?

Hi there,

I have read about the hierarchical mipv4 and v6.... and installed the necessary extension files for ns-2.35. The simula.tcl example works just fine and I have tested it..

Now, I wanted to create a more scalable scenario (multiple MAPs, with multiple AP's)
I presume I need to change the domain setup to accommodate the scenario..(as seen below)

AddrParams set domain_num_ 5
lappend cluster_num 2 1 1 2 2
AddrParams set cluster_num_ $cluster_num
lappend eilastlevel 1 1 2 1 1 1 1 1
AddrParams set nodes_num_ $eilastlevel

What to change to have ( n MH, and m MAPs, k APs ) ??
I had the following addressing sketch but not sure if it's correct??

# if we have 32 APs' --> 8 MAPs (each has 4 APs under)
domain 0 : 0.0.0 (CN), 0.1.0(N1)
domain 1: 1.0.0 (HA), 1.0.n (MH's)
domain 2: 2.0.0 (MAP1), 2.0.1-4(APs 1 to 4)
domain 3: --- same as domain 2

If its correct ... how would I define it in the tcl script?

Thank you in advance,

Last edited by Omnen; 09-02-2017 at 01:11 PM.
Old 09-03-2017, 07:39 AM   #2
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,494

Rep: Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639
Welcome to LQ.

Herarchical address : The basic examples ...
ns-2.3x/tcl/{ex/hier-rtg-10.tcl, ex/hier-rtg-100.tcl, test/hier-test-1000.tcl}.
The scenario files are { ex/hts100-0.tcl, test/hts1000.tcl }.

All cluster examples, clustering-examples-07.17.tar.gz

All examples

1 members found this post helpful.
Old 09-13-2017, 12:03 AM   #3
LQ Newbie
Registered: Sep 2017
Posts: 6

Original Poster
Rep: Reputation: Disabled
Thank you knudfl


herarchical address, ns2

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
adhoc hierarchical networks netuser Linux - Networking 2 05-23-2012 07:05 PM
Hierarchical PEGASIS salutrcmoi Linux - Wireless Networking 1 05-16-2012 12:37 PM
[SOLVED] hierarchical notes. YellowSnowIsBad Linux - Software 3 01-07-2011 01:39 AM
hierarchical flexgrid in vb6 sudif Programming 0 09-17-2005 11:34 AM
autofs problem with hierarchical david1274 Linux - Enterprise 1 05-29-2004 01:33 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:57 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration