EDF protocol

61 views
Skip to first unread message

VIKRAM LODHI

unread,
Jan 1, 2017, 11:50:34 PM1/1/17
to ns-3-users
hi,

i want to apply EDF (earliest deadline first) in ns3.
i have code for EDF but cant apply in code or where to bind it.
help me.
i have attached both file
1 -> code for edf
2.-> wifi-mac-queue.cc


thank you
edf.cc
wifi-mac-queue.cc

VIKRAM LODHI

unread,
Jan 1, 2017, 11:52:38 PM1/1/17
to ns-3-users

this is the program where i want to apply above protocol
2234.cc

Tommaso Pecorella

unread,
Jan 3, 2017, 8:44:58 AM1/3/17
to ns-3-users
Hi,

you'll need to create anew class derived from WifiMacQueue, subclass the relevant methods (eventually making them virtual in the base class) and modify all the code where the class is used to use 8also) the derived class.
... sorely put: not easy, especially because you posted an EDF example clearly unrelated to ns-3.

T.

VIKRAM LODHI

unread,
Jan 4, 2017, 12:24:00 AM1/4/17
to ns-3-users
let see .. i am gonna try that. 
and one more thing.. 
how can i find packet drop time in a scheduler or packet number?

thanks

PS. go through attached file if you can.
edf-queue.cc
edf-queue.h

Tommaso Pecorella

unread,
Jan 4, 2017, 7:59:50 AM1/4/17
to ns-3-users
I'll subvert your question: how do you decide what is the deadline of a packet ?
That's the real question.

T.

VIKRAM LODHI

unread,
Jan 7, 2017, 10:39:11 PM1/7/17
to ns-3-users
deadline of a packet is max delay it can take, before getting thrown out of queue.
so i was thinking that , the packet who has waited long in queue should get priority and should be next one for transmission.


Tommaso Pecorella

unread,
Jan 8, 2017, 6:36:51 AM1/8/17
to ns-3-users
This is the normal concept of priority. To implement an EDF you must be able to assign a deadline time to each packet. How do you know what is the deadline of each packet ?

T.

netwo...@gmail.com

unread,
Jan 11, 2017, 11:04:21 PM1/11/17
to ns-3-users

sir,
i cant think of any other way, if you have some idea. please do share.
and in future if something strike, i will post here for your good reference 
Reply all
Reply to author
Forward
0 new messages