ALOHA and MACA simulation in UAN

258 views
Skip to first unread message

Muhammad Syirajuddin Suja'i

unread,
Apr 14, 2015, 4:01:18 AM4/14/15
to ns-3-...@googlegroups.com
Dear NS3 Community,

I'm totally new to NS3 and right now I'm starting to learn about UAN Framework. I want to simulate ALOHA and simple MACA (MAC Protocol) in saturated network and unsaturated network scenarios. The network consist of several nodes and one sink and I want to acquire same data from simulationssuch as, average SNR, average propagation duration, and throughput in each protocol and scenario.

Is it possible to simulate MAC Protocol without involving Network layer? And for addressing, is it mandatory to use 48 bits address when simulate MAC Protocol in NS3?
I would be grateful if you could give me some advices, what is the first thing I need to learn? 

Thank you in advance.

Tommaso Pecorella

unread,
Apr 14, 2015, 4:07:53 AM4/14/15
to ns-3-...@googlegroups.com
Hi,

short answers (because today I'm really busy).

Is it possible to simulate MAC Protocol without involving Network layer?

It is possible, but it's kinda pointless. However, you can use simple tricks to inject packets directly into the NetDevice (that's the API above the MAC).

And for addressing, is it mandatory to use 48 bits address when simulate MAC Protocol in NS3?

Nope, your MAC layer can use the addressing it wants. The problem could arise if you want to hook IP on top of your NetDevice, as IP only recognizes certain MAC address types. You can extend it tho.

 what is the first thing I need to learn? 

ns-3. Start from the tutorial...

Cheers,

T.

Muhammad Syirajuddin Suja'i

unread,
May 7, 2015, 1:45:28 AM5/7/15
to ns-3-...@googlegroups.com
Hi Mr. Pecorella,

I tried to do same thing at a program (ALOHA) from https://groups.google.com/forum/#!topic/ns-3-users/6-CFU7od1DM thread and followed as suggessted. I edited the value of OnTime and OffTime to prevent network to be saturated. Right now, I'm looking for a right method how to get the normalized throughput vs offered load plot. And for MACA, is there any example how to generate small packet control such as RTS/CTS/ACK and how to implement it in a protocol? Thank you.

Syirajuddin
Reply all
Reply to author
Forward
0 new messages