Skip to first unread message

Miguel Angel Lopez Lafuente

unread,
Jan 21, 2016, 12:38:49 PM1/21/16
to ns-3-users
Hi, I am Miguel Angel, and I would want to know how can I set the TXOP limit.

I have this:

Ptr<Node> node_important = apNode.Get(0); // Nodo donde ponemos el EDCA (el AP)
Ptr<NetDevice> dev_important = node_important->GetDevice(1);
Ptr<WifiNetDevice> wifi_dev = DynamicCast<WifiNetDevice>(dev_important);
Ptr<WifiMac> prueba = wifi_dev->GetMac();
Ptr<WifiMac> mac = wifi_dev->GetMac();
    PointerValue ptr;
mac->GetAttribute("DcaTxop", ptr);
    ////Ptr<DcaTxop> dca = ptr.Get<DcaTxop>();
////dca->SetMinCw(minCw);
////dca->SetMaxCw(maxCw);
//////dca->SetAifsn(2);

    Ptr<EdcaTxopN> edca;
mac->GetAttribute("VO_EdcaTxopN", ptr);
edca = ptr.Get<EdcaTxopN>();
edca->WifiMacHeader;
edca->SetMinCw(CWminVO);
edca->SetMaxCw(CWmaxVO);
edca->SetAifsn(AIFSvo);

mac->GetAttribute("VI_EdcaTxopN", ptr);
edca = ptr.Get<EdcaTxopN>();
edca->SetMinCw(CWminVI);
edca->SetMaxCw(CWmaxVI);
edca->SetAifsn(AIFSvi);

mac->GetAttribute("BE_EdcaTxopN", ptr);
edca = ptr.Get<EdcaTxopN>();
edca->SetMinCw(CWminBE);
edca->SetMaxCw(CWmaxBE);
edca->SetAifsn(AIFSbe);

mac->GetAttribute("BK_EdcaTxopN", ptr);
edca = ptr.Get<EdcaTxopN>();
edca->SetMinCw(CWminBK);
edca->SetMaxCw(CWmaxBK);
  edca->SetAifsn(AIFSbk);

But I know that there is a parameter that I can change, the TXOP limit. Can I edit it? or it is not programmed yet in ns3.

Thanks to everything for your help.

Sebastien Deronne

unread,
Jan 21, 2016, 2:54:43 PM1/21/16
to ns-3-users
802.11e frame burst (TXOP) is not yet supported.
I've recently started on its implementation and it should not be too much effort, but it is not the top priority for the moment.

Miguel Angel Lopez Lafuente

unread,
Jan 21, 2016, 3:20:41 PM1/21/16
to ns-3-users
Okay, thank you for your fast reply. It is for an University project, so if I can help in something, i can try it. Thanks.
Reply all
Reply to author
Forward
0 new messages