Bugzilla – Full Text Bug Listing |
Summary: | Set TOS from Application level (sockets) | ||
---|---|---|---|
Product: | ns-3 | Reporter: | Tommaso Pecorella <tommaso.pecorella> |
Component: | internet | Assignee: | George Riley <riley> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | CC: | nikkipui, ns-bugs, tomh |
Priority: | P5 | ||
Version: | ns-3-dev | ||
Hardware: | All | ||
OS: | All |
Description
Tommaso Pecorella
2012-02-11 20:44:12 EST
Not sure if anyone is still interested in setting ToS. Setting the ToS field on the socket should not a problem. I'm not sure about IPv4 and IPv6 honoring the ToS field as it seems to me that the support is ambiguous and is OS/device specific. (In reply to comment #1) > Not sure if anyone is still interested in setting ToS. > > Setting the ToS field on the socket should not a problem. > > I'm not sure about IPv4 and IPv6 honoring the ToS field as it seems to me that > the support is ambiguous and is OS/device specific. I would be interested if someone provided a patch for this. I would suggest first to propose the API, get some agreement, then work on the implementation. We tend to try to align with Linux in the ns-3 IP implementation, so I would suggest to look at how IP_TOS, IP_RECVTOS, IPV6_TCLASS, and IPV6_RECVTCLASS are supported and try to mimic the behavior, as a first step. I will think about the API for this. How do you want me to propose the API? Directly in here or the code review? Please refer to: http://codereview.appspot.com/6488134/ I could not find an option to set IP_TCLASS for IPv6 in the Linux kernel. Not sure if I missed it. As far as I know, the current Linux kernel still using IP TOS, not DSCP. Sorry for the re-post. I made some changes to support IPv6 IPV6_TCLASS option. http://codereview.appspot.com/6543061/ Changeset: 9145:5752b425cdf5 |