12.07.2015 Views

The ns Manual (formerly ns Notes and Documentation)1 - NM Lab at ...

The ns Manual (formerly ns Notes and Documentation)1 - NM Lab at ...

The ns Manual (formerly ns Notes and Documentation)1 - NM Lab at ...

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

15.2.1 Default Hierarchical Setting<strong>The</strong> default hierarchical node-id co<strong>ns</strong>ists of 3 levels with (10 11 11) bits in the three levels. <strong>The</strong> hierarchical configur<strong>at</strong>ionmay be invoked as follows:$<strong>ns</strong> set-address-form<strong>at</strong> hierarchicalThis sets :* 32 bits for port-id, * 32 bits for node-id assigned in - 3 levels of hierarchy - (10 11 11) bits for the three levels.- or (9 11 11) if multicast is enabled.15.2.2 Specific Hierarchical Setting<strong>The</strong> second option allows a hierarchical address to be set with specified number of levels with number of bits assigned foreach level. <strong>The</strong> API would be as the following:$<strong>ns</strong> set-address-form<strong>at</strong> hierarchical ....An example configur<strong>at</strong>ion would be:$<strong>ns</strong> set-address-form<strong>at</strong> hierarchical 2 8 15where 2 levels of hierarchy is specified, assigning 8 bits for the 1st level <strong>and</strong> 15 bits for the second.15.3 <strong>The</strong> Exp<strong>and</strong>ed Node-Address Form<strong>at</strong>NOTE: Please note th<strong>at</strong> this comm<strong>and</strong> is now obsolete given th<strong>at</strong> node address <strong>and</strong> port address spaces are 32 bits wide.On the event of requirement of more bits to the address space, the exp<strong>and</strong>ed address API may be used as:$<strong>ns</strong> set-address-form<strong>at</strong> exp<strong>and</strong>edThis exp<strong>and</strong>s the address space to 30 bits, alloc<strong>at</strong>ing 22 higher bits to node-id <strong>and</strong> lower 8 bits to port-id.15.4 Exp<strong>and</strong>ing port-id fieldNOTE: Please note th<strong>at</strong> this comm<strong>and</strong> is now obsolete given th<strong>at</strong> node address <strong>and</strong> port address spaces are 32 bits wide.This primitive may be used in case of need to exp<strong>and</strong> portid in the event of requirement to <strong>at</strong>tach a large number of agentsto the nodes. This may be used in conjunction with set-addres-form<strong>at</strong> comm<strong>and</strong> (with different optio<strong>ns</strong>) explained above.Synopsis for this comm<strong>and</strong> shall be:exp<strong>and</strong>-port-field-bits exp<strong>and</strong>-port-field-bits checks <strong>and</strong> raises error in the following if the requested portsize cannot be accomod<strong>at</strong>ed (i.e if sufficientnum.of free bits are not available) or if requested portsize is less than or equal to the existing portsize.142

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!