AdHoc Wifi

153 views
Skip to first unread message

Chandra Shekar

unread,
Apr 8, 2015, 6:25:24 AM4/8/15
to ns-3-...@googlegroups.com
Can anybody please suggest an ns3 example where the ENQUEUE function of the AdHocWifiMac class is used.

I am a beginner and would very much appreciate your help
It would be tremendously helpful in our project

Thank you,
Chandrashekar

Sebastien Deronne

unread,
Apr 8, 2015, 7:03:48 AM4/8/15
to ns-3-...@googlegroups.com
It is called when you inject traffic between adhoc stations.
An example will not give you information about the implementation.
What is your clear request about the enqueue method?

Chandra Shekar

unread,
Apr 8, 2015, 10:55:01 AM4/8/15
to ns-3-...@googlegroups.com
SIR, i'm trying to implement a mac protocol for co-operative communication. I have written a code by creating 3 nodes, one being access point and other 2 stations. the second station is supposed to act as a helper which re transmits the packets received from ap to station and vice-versa. in simple words it is acting as a relay node. For this operation i thought of using this enqueue function. I want to know whether it is possible or not. if possible how to do it, else what other option do i have . 
Thank you

--
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/JZJGa2gx_Io/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.

Sebastien Deronne

unread,
Apr 8, 2015, 12:08:27 PM4/8/15
to ns-3-...@googlegroups.com

If you try to implement a new mac layer, why do you want to inject packets above the mac layer?
Which mac protocol are you trying to implement?

Chandra Shekar

unread,
Apr 8, 2015, 11:55:01 PM4/8/15
to ns-3-...@googlegroups.com
a simple 802.11 protocol modified for cooperative communication.

On Wed, Apr 8, 2015 at 9:38 PM, Sebastien Deronne <sebastie...@gmail.com> wrote:

If you try to implement a new mac layer, why do you want to inject packets above the mac layer?
Which mac protocol are you trying to implement?

--

Sebastien Deronne

unread,
Apr 10, 2015, 7:47:02 AM4/10/15
to ns-3-...@googlegroups.com
Ok. But it does not reply to my first question...

Chandra Shekar

unread,
Apr 11, 2015, 8:50:59 AM4/11/15
to ns-3-...@googlegroups.com
sir in my project i have created 3 nodes. one of the nodes is helper, all it does is forward the received packet to the other node. to implement this i need ENQUEUE function implementation.


On Fri, Apr 10, 2015 at 5:17 PM, Sebastien Deronne <sebastie...@gmail.com> wrote:
Ok. But it does not reply to my first question...

Sebastien Deronne

unread,
Apr 11, 2015, 8:53:21 AM4/11/15
to ns-3-...@googlegroups.com
Ok but at which layer does it forward packets? You need to respect the layered implementation!

Chandra Shekar

unread,
Apr 11, 2015, 11:02:44 AM4/11/15
to ns-3-...@googlegroups.com
sorry for my mistake sir, it is frames not packets and at MAC layer. can it be done??

On Sat, Apr 11, 2015 at 6:23 PM, Sebastien Deronne <sebastie...@gmail.com> wrote:
Ok but at which layer does it forward packets? You need to respect the layered implementation!

--

Sebastien Deronne

unread,
Apr 11, 2015, 11:10:44 AM4/11/15
to ns-3-...@googlegroups.com
Then I guess you need to implement a new MAC layer on top of the existing PHY layer.

Chandra Shekar

unread,
Apr 11, 2015, 11:14:53 AM4/11/15
to ns-3-...@googlegroups.com
yes sir, i hv written code for conventional wifi-mac, for helper i need to write another special functionality to retransmit received frames. i want to know how to do it.


On Sat, Apr 11, 2015 at 8:40 PM, Sebastien Deronne <sebastie...@gmail.com> wrote:
Then I guess you need to implement a new MAC layer on top of the existing PHY layer.

--

Sebastien Deronne

unread,
Apr 11, 2015, 11:17:21 AM4/11/15
to ns-3-...@googlegroups.com
It is just like I said, you need to IMPLEMENT it. 
What you seem to have written so far is a simulation script, using the existing code base.
So first step => read tutorial, manuals and try to understand how ns-3 works.

Chandra Shekar

unread,
Apr 11, 2015, 11:24:57 AM4/11/15
to ns-3-...@googlegroups.com
sir, just wanted to know if there is any function to achieve retransmission.

--

Sebastien Deronne

unread,
Apr 11, 2015, 11:26:19 AM4/11/15
to ns-3-...@googlegroups.com
Wi-Fi retransmissions are typically handled in DcaTxop and EdcaTxopN.

Chandra Shekar

unread,
Apr 11, 2015, 11:29:21 AM4/11/15
to ns-3-...@googlegroups.com
sir , can you please suggest any examples where these classes have been used so that i can get a clear view of how to implement these classes.


On Sat, Apr 11, 2015 at 8:56 PM, Sebastien Deronne <sebastie...@gmail.com> wrote:
Wi-Fi retransmissions are typically handled in DcaTxop and EdcaTxopN.

--

Sebastien Deronne

unread,
Apr 11, 2015, 11:31:58 AM4/11/15
to ns-3-...@googlegroups.com
Those classes are used by the current Wi-Fi implementation.
Just check in the code how it works.

You should also have a look on some tutorials on how to implement new classes in ns-3.

Chandra Shekar

unread,
Apr 11, 2015, 11:34:05 AM4/11/15
to ns-3-...@googlegroups.com
thank you for your guidance sir , if there's any more doubt i'll contact you.


--
Reply all
Reply to author
Forward
0 new messages