switch in ns3

362 views
Skip to first unread message

salma subh

unread,
Mar 13, 2014, 7:34:43 AM3/13/14
to ns-3-...@googlegroups.com
Hi all :) 

How i can create a switch in ns3 ? 
i want to create topology like this :

    node    AP...............switch......server

Tommaso Pecorella

unread,
Mar 13, 2014, 3:30:44 PM3/13/14
to ns-3-...@googlegroups.com
Hi,

it depends on what you mean by "switch". I'll assume you're talking about IEEE 802.3, a.k.a. Ethernet.

Ethernet... not that fast, not so obvious. There are a LOT of Ethernet standards. See http://en.wikipedia.org/wiki/IEEE_802.3

Now, in ns-3 the coma module implements a very basic 802.3, as is the bus topology one. It's half duplex and a lot of devices can be connected to it.
It's functionally similar to a star topology with an hub.

In order to have a switch (which is far more complex), one should have:
1) a modified CSMA module (either half duplex or full duplex), and
2) a switch module, able to:
  a) port / MAC address learning
  b) internal frame buffering
  c) memory management

Point 1 is easy to do. Point 2 is a bit more difficult.

As a consequence, I'd say that you can't have a switch in ns-3 out-of-the-box. However you can implement this functionality. With a bit o knowledge of course.

Cheers,

T.

salma subh

unread,
Mar 14, 2014, 1:40:01 PM3/14/14
to ns-3-...@googlegroups.com
Thanks Tommaso for your replay :)


--
You received this message because you are subscribed to a topic in the Google Groups "ns-3-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ns-3-users/8SDPnKvrs0g/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ns-3-users+...@googlegroups.com.
To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at http://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages