Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to change ToS value of IP layer  RSS feed

 
Jithu Joijoide
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Experts,

I was trying out a java networking application and was wondering, is there a way in java where I can change the value of TOS field of IP layer when Iam sending some UDP packets from my application.
Though Java Doc mentions this field as unused. This is getting more popular now as DSCP and modifying this is becoming important based on the type of data on whether it is real time data like voice/video.
So is there a way to modify this value in the data that I would be sending from my application.

Just for information, the below link would clarify the importance of this field

http://www.cisco.com/warp/public/105/dscpvalues.html


Thanks in advance.

Regards
Jithu
 
Jithu Joijoide
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok. I think I found the solution for my question.
The TOS field of IP header is modifiable by using the method setTrafficClass() of java.net.Socket class.

Thanks,
Jithu
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!