• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how to change ToS value of IP layer

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Arch enemy? I mean, I don't like you, but I don't think you qualify as "arch enemy". Here, try this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic