aspose file tools
The moose likes Sockets and Internet Protocols and the fly likes how to change ToS value of IP layer Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Reply Bookmark "how to change ToS value of IP layer" Watch "how to change ToS value of IP layer" New topic
Author

how to change ToS value of IP layer

Jithu Joijoide
Greenhorn

Joined: May 14, 2001
Posts: 17
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

Joined: May 14, 2001
Posts: 17
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
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: how to change ToS value of IP layer
 
Similar Threads
Wich tier should we mount the VOs
Setting Heap size
Setting the Type of Service (ToS) field in the IP header of a packet
Is EJB needed if clustering is involved?
Data Access Layer Best Practices