Wifi QoS application

484 views
Skip to first unread message

Patxi Azpiroz

unread,
Nov 18, 2009, 12:38:16 PM11/18/09
to ns-3-users
Hi every one,
I need to use an application that generates different access classes
traffic (AC_VO, AC_VI, AC_BK, AC_BE) and I was wondering if any one
has done something similar already.

I was thinking about modifying OnOffApplication an introducing qos
tags.

Thanks.

Michael

unread,
Nov 18, 2009, 1:11:51 PM11/18/09
to ns-3-users
Yes, I've done that in my own version of onoff-application.cc in the
OnOffApplication::SendPacket() member function.

I added:
QosTag qosTag; // used to set the QosTag
to onoff-application.h in the private area, and then

qosTag.Set (0); //AC_BE
packet->AddPacketTag (qosTag);
to SendPacket() before the m_txTrace (packet); line.

I suppose there is a better way to set the QoS priority than just hard-
coding it in SendPacket, but I haven't gotten there yet.

Michael

Mathieu Lacage

unread,
Nov 18, 2009, 2:00:43 PM11/18/09
to ns-3-...@googlegroups.com
On Wed, Nov 18, 2009 at 7:11 PM, Michael <nowa...@gmail.com> wrote:
> Yes, I've done that in my own version of onoff-application.cc in the
> OnOffApplication::SendPacket() member function.
>
> I added:
>  QosTag          qosTag; // used to set the QosTag
> to onoff-application.h in the private area, and then
>
>  qosTag.Set (0); //AC_BE
>  packet->AddPacketTag (qosTag);
> to SendPacket() before the m_txTrace (packet); line.
>
> I suppose there is a better way to set the QoS priority than just hard-
> coding it in SendPacket, but I haven't gotten there yet.

Yes, there is a better way :)

void
TagMarker (std::string context, Ptr<const Packet> packet, uint8_t tid)
{
 QosTag qosTag;
 tag.Set (tid);
 packet->AddPacketTag (qosTag);
}

Config::TraceConnect ("/NodeList/XX/ApplicationList/YY/Tx", MakeBoundCallback (&TagMarker, AC_VO));

--
Mathieu Lacage <mathieu...@gmail.com>

Zahra Nasr

unread,
Feb 1, 2014, 10:39:40 AM2/1/14
to ns-3-...@googlegroups.com
Dear Mathieu Lacage 
can you say more detail about how to add QOS for your code?
I am working with VoWLAN and i wanted to improve the QoS VoWLAN with different types of traffic (VO, VI, BK and BE) 
but i do not understand that how you do?!!!!
Reply all
Reply to author
Forward
0 new messages