DSCP implementation on NS3

610 views
Skip to first unread message

fpmw

unread,
Sep 4, 2012, 5:37:05 AM9/4/12
to ns-3-...@googlegroups.com
All,

I found the following URL: http://www.eng.uwi.tt/depts/elec/staff/rvadams/sramroop/Core_Node.htm
which is an implementation of DSCP for NS3. Are there any people that actually used this, except for the author :-)
If so, what are your experiences with this code?


Regards,
Frank

sarah boufelja

unread,
Sep 4, 2012, 6:19:07 AM9/4/12
to ns-3-...@googlegroups.com


Dear Frank,
I'm using this code in my project and it's working well, the DiffServ queues realize the DSCP marqing as we expect. Actually, you have to understand the code's details by yourself ( which is sometimes more difficult than writing your own code).
I hope this helps
Regards

fpmw

unread,
Sep 4, 2012, 6:34:59 AM9/4/12
to ns-3-...@googlegroups.com


Op dinsdag 4 september 2012 12:19:10 UTC+2 schreef sarah het volgende:

fpmw

unread,
Sep 4, 2012, 6:36:20 AM9/4/12
to ns-3-...@googlegroups.com
Ah, ok. Will have a look at it.
Did you manage to mark traffic when it flows through edge/core nodes based on bandwidth?

Regards,
Frank

sarah boufelja

unread,
Sep 4, 2012, 7:44:47 AM9/4/12
to ns-3-...@googlegroups.com


What you can do is to mark the traffic according to the IP source/destination addresses and port source/destination numbers, this is done in the SLA (Service Level Agreement) where you specify the flows' marking

Javier Figueroa

unread,
Nov 25, 2014, 5:11:13 AM11/25/14
to ns-3-...@googlegroups.com, boufelj...@gmail.com

Hi!


When i tried to use the DiffServQueue.cc and DiffServQueue.h i had some compilation errors because they are using some libraries that, according to what i have read, they no longer exists. Or even worst, i have read that DiffServ classes are not yet supported on NS-3. But i have alse read about people that have done it so i am confused. According to some other forums, the only way of setting a DSCP value is using the setDSCP method of the ipv4Header class....is this implementation much different than  DiffServQueue.cc?

Tommaso Pecorella

unread,
Nov 25, 2014, 4:19:16 PM11/25/14
to ns-3-...@googlegroups.com, boufelj...@gmail.com
Hi,

the thread you are using is from 2012, i.e., 2 years ago.
Please start a new thread and describe exactly what you are trying to do.
DiffServ is partially supported by ns-3, meaning that you can:
1) set the packets DSCP bits in IPv4 and IPv6 headers
2) interact with DSCP hosts through emulation
3) use the DSCP bits to set the MAC-level QoS bits (e.g., for Wi-Fi). This may require some work.

What you can not do is:
1) differentiate the traffic at IP level (IP doesn't have output queues yet)

I am not totally sure if the AQM techniques in ns-3 are DSCP-aware.

However, this doesn't cover what you could do with DCE.

Said so, please do not reply to 2-years old threads and be aware old posts may contain extremely outdated informations.

Thanks,


T.

Javier Figueroa

unread,
Nov 25, 2014, 5:15:50 PM11/25/14
to ns-3-...@googlegroups.com
Thank you T.
Do you have the link of a more updated thread?
> --
> You received this message because you are subscribed to the Google Groups
> "ns-3-users" group.
> To unsubscribe from this group and stop receiving emails from it, 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.

Joyanta Biswas

unread,
Jan 24, 2020, 9:54:01 AM1/24/20
to ns-3-users
Hi, I was just wondering is there any resource that I can look for the DSCP in latest ns3. I did some code and set Type of Services (TOS) bits in the header, but look like the intermediate nodes are not obeying the TOS/DSCP rule. I have attached the code here. I send packets having TOS as EF (Expedited Forwarding) and AF32 (Assured Forwarding), but both of them encounter the same delay, which supposed not to be the case, as they share a common link. I guessI need to put the concept of priority queue here, but no sure how to do that. Please let me know, if you know any work around of this problem.

Thanks
Joyanta
simple-global-routing.cc
Reply all
Reply to author
Forward
0 new messages