MAC layer structure in ns-3

1,004 views
Skip to first unread message

Balador

unread,
Mar 5, 2012, 11:36:56 AM3/5/12
to ns-3-users
Hi all,

I want to implement a new mac protocol in ns-3 but now at first i
should now about MAC protocol (especially IEEE802.11) implementation
and structure in ns-3. and also i want to know where should i find
initial value of mac parameters.

If any one know about how it works in ns-3 or have any resource or
information to read please let me know about that.

Thank you.

Tommaso Pecorella

unread,
Mar 5, 2012, 3:18:42 PM3/5/12
to ns-3-...@googlegroups.com
Hi,

what do you mean? To be honest I don't understand what you want to implement...

If your MAC is new, then don't look at 802.11. Its structure is extremely complex and it will just confuse you. Look at a simpler one, like CSMA.

If your "new" MAC is a modification (or a flavor) of 802.11, then good luck !

If you feel that you *have* to know the 802.11 implementation and structure, then look at the code, it's in your src/wifi directory. No better place than the code.

If you, viceversa, need to work with a completely new MAC, then... Sorry, but *how* can you expect that we do know *your* mac parameters ? We're good, but we don't have divination powers (and if I'd have I'd use them to know the lottery numbers, not the parameters of your MAC).

Please clarify your mind and post something that can have an answer.

T.

ali balador

unread,
Mar 5, 2012, 3:56:20 PM3/5/12
to ns-3-...@googlegroups.com

First of all i have single hop wireless scenario that i want to know how can i change the parameters of mac layer because i would like to change some of the mac layer parameters based on my decision like difs or sifs and then i want to modify the current 802.11 and i run the simulation but i get packet droped all the time zero i want to know the value od queue.

--
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/ns-3-users/-/T1xEUCoH8AEJ.
To post to this group, send email to ns-3-...@googlegroups.com.
To unsubscribe from this group, send email to ns-3-users+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ns-3-users?hl=en.

Balador

unread,
Mar 6, 2012, 5:20:29 AM3/6/12
to ns-3-users
Hi Tommaso

thank you

first i want to know where can i find initial value for dcf
parameters? What are the parameters for the DCF? for example default
values for sifd, difs, .....
second i run my example that uses dcf as a MAC layer protocol but i
just have gotten zero for drop packet what is initial value for queue
size and how can i change it´s value?
third i should modify current IEEE 802.11 DCF for specific scenario
how should i know about MAC structure in ns-3? is there any document
that can shows the MAC layer routine?


On Mar 5, 9:56 pm, ali balador <bala...@gmail.com> wrote:
> First of all i have single hop wireless scenario that i want to know how
> can i change the parameters of mac layer because i would like to change
> some of the mac layer parameters based on my decision like difs or sifs and
> then i want to modify the current 802.11 and i run the simulation but i get
> packet droped all the time zero i want to know the value od queue.

Tommaso Pecorella

unread,
Mar 6, 2012, 12:59:55 PM3/6/12
to ns-3-...@googlegroups.com
Hi,

I really hate to quite myself.

When I typed "If you feel that you *have* to know the 802.11 implementation and structure, then look at the code, it's in your src/wifi directory. No better place than the code.", I really meant that. In the code there are the default parameters.

So, happy code reading. Is there any other place, maybe easier to understand ? No, What's not already in the documentation is in the code.

T.


ali balador

unread,
Mar 7, 2012, 8:22:23 AM3/7/12
to ns-3-...@googlegroups.com
Thank you i am starting to understand how it works?


T.


--
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/ns-3-users/-/J1YYEW77dZkJ.

Jack Reacher

unread,
Jan 2, 2018, 6:01:01 AM1/2/18
to ns-3-users
Hi,

I am trying to do the same thing that you did (modify the 802.11 MAC protocol for simulation purposes) could you plz tell me where did you find the answer to your initial question ?

And is it easier to do with ns2 or ns3 ?

Thank you.
Reply all
Reply to author
Forward
0 new messages