[ndnSIM] [EXT]Re: Simulating using Transit-Stub (TS) topology for IoT simulation
Junxiao Shi
shijunxiao at email.arizona.edu
Sun Sep 13 18:21:23 PDT 2020
Hi Samar
I assume by "create and edit manually" you mean, you think you have to
manually enter node parameters into a GUI editor or spreadsheet.
Then, there's good news: in ns-3, you can programmatically create the
topology instead of using a GUI editor or spreadsheet.
1. Invoke NodeContainer::Create
<https://www.nsnam.org/docs/release/3.31/doxygen/classns3_1_1_node_container.html#a787f059e2813e8b951cc6914d11dfe69>
function to create some nodes.
2. Use PointToPointHelper
<https://www.nsnam.org/docs/release/3.31/doxygen/classns3_1_1_point_to_point_helper.html>
or another link type helper to create links.
3. Assign coordinates to each node with a position allocator such as
GridPositionAllocator
<https://www.nsnam.org/docs/release/3.31/doxygen/classns3_1_1_grid_position_allocator.html>
.
Yours, Junxiao
On Sun, Sep 13, 2020 at 9:08 PM Samar Alduayji via ndnSIM <
ndnsim at lists.cs.ucla.edu> wrote:
> *External Email*
> I need to create a Transit Stub topology with the following specifications
>
>
> - 2 Transit domains with 10 nodes each ( total 20 nodes)
> - Each transit node is connected to 2 Stub domains ( 20 stubs/transit).
> - Each stub domain has 6 nodes connected.
> - Total nodes in stubs domains are 240, where 30 nodes are consumers
> and 40 are producers.
>
> This will be time consuming to create and edit manually. especially with
> the (x,y) positioning for each node. If there is an easier way to simulate
> this topology, I will be very grateful if you advise me of it.
>
> Regards,
> Samar
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20200913/eaf8f89d/attachment.html>
More information about the ndnSIM
mailing list