What is the maximum udp packet size that can be transmitted?

Hi ppl!!

What is the maximum udp packet size that can be transmitted on java? I've read a varying number of sizes.So I would like to actually know for sure. Anybody can help??

thanks
blaze_wkAsked:
Who is Participating?
 
Tommy BraasConnect With a Mentor Commented:
Yes it is, unless the underlying JVM doesn't allow it. However, in that case, you should still be able to specify the maximum size of the UDP packet in Java, and the JVM would chop it up in chunks supported by the JVM.
0
 
JK2429Commented:
It depends on the computer you are using.  The max UDP Packet size is the maximum buffer size.
0
 
blaze_wkAuthor Commented:
well the maximum send buffer size on my computer is about 100000 bytes but I don't think a udp packet can go until that big. Or do you mean another kind of buffer size?
0
Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

 
Tommy BraasCommented:
Hi blaze_wk,

Actually, the maximum UDP packet size is 64kb (65536 bytes). This is how it is defined in the standard. Usually a packet size of 1500 bytes is the default.

Cheers!

\tt
0
 
blaze_wkAuthor Commented:
hey there

ok what if i want to transmit with the biggest udp payload size. IS that possible in java?
0
 
blaze_wkAuthor Commented:
ic ic.....do u know what the max udp packet size is for a red hat linux 9 wunning j2se 1.4.2?

0
 
Tommy BraasCommented:
Nope, but in this day and age I can't for the life of me expect a JVM not to support the UDP standard. I think you will be safe.
0
 
Tommy BraasCommented:
blaze_wk,

Thank you much sir! And good luck!!!

=-)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.