simple-mpdu-aggregation.cc with case AC_VI

161 views
Skip to first unread message

Dang Tai Tan

unread,
Jun 23, 2015, 11:17:27 AM6/23/15
to ns-3-...@googlegroups.com
Dear experts

I try to understand about how the affection of access categories AC_VO,AC_VI,AC_BE in example simple-mpdu-aggregation.cc. 
I set nMpdu = 2 to see ampdu
then, for example, i replaced all AC_BE by AC_VI. keep other same

I looked at .tr file. It is not ampdu in traffic 

I try to fix this by add QosTag because of this "Packets in this simulation aren't marked with a QosTag so they are considered // belonging to BestEffort Access Class (AC_BE)"

add this TagMarker  before main

void TagMarker (uint8_t tid, Ptr<const Packet> packet)
{
 QosTag qosTag;
 qosTag.SetTid (tid);
 packet->AddPacketTag (qosTag);
}

then add this after create application. I use udpclienthelper

Config::ConnectWithoutContext("/NodeList/*/ApplicationList/*/$ns3::UdpClient/Tx",  MakeBoundCallback (&TagMarker, AC_VI));

follow this solution of Mathieu Lacage

please look at full code attached

is it the correct way to solve this? if not so how to fix it

Could anyone give me some explanation? how to fix this 
thank your time
simple-mpdu-aggregation.cc

GBadawy

unread,
Jun 23, 2015, 11:20:23 AM6/23/15
to ns-3-...@googlegroups.com
Hi,
PacketTags don't work with A-MPDUs try using a byte tag instead let me know if that helps

Yiannis

unread,
Jun 23, 2015, 12:15:37 PM6/23/15
to ns-3-...@googlegroups.com
As long as you tag the packets in the application layer, I can't see why not getting
a throughput for AC_VO, AC_VI, AC_BE packets, except if you're calculating the
throughput based on the packets' QosTag.

Regards,
yiannis

Dang Tai Tan

unread,
Jun 24, 2015, 1:50:08 AM6/24/15
to ns-3-...@googlegroups.com
Thank you GBadawy and Yiannis

I am have changed it successful. following the example of onoffapplication with tag https://groups.google.com/forum/#!msg/ns-3-users/dsW5cK8foLE/H4cLb0Xa7CMJ

I see in the UdpClient does not have "Tx" and UdpServer does not have "Rx" ==> I modified udp-client.cc udp-client .h and udp-server.cc and udp-server.h base on onoffapplication.cc and .h and packet-sink.cc and .h

and finally it worked. it is ampdu now




Vào 01:15:37 UTC+9 Thứ Tư, ngày 24 tháng 6 năm 2015, Yiannis đã viết:
Reply all
Reply to author
Forward
0 new messages