Solved

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

Posted on 2004-10-14
8
618 Views
Last Modified: 2012-06-21
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
0
Comment
Question by:blaze_wk
  • 4
  • 3
8 Comments
 
LVL 4

Expert Comment

by:JK2429
ID: 12309740
It depends on the computer you are using.  The max UDP Packet size is the maximum buffer size.
0
 

Author Comment

by:blaze_wk
ID: 12309894
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
 
LVL 14

Expert Comment

by:Tommy Braas
ID: 12309929
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
 

Author Comment

by:blaze_wk
ID: 12309958
hey there

ok what if i want to transmit with the biggest udp payload size. IS that possible in java?
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 14

Accepted Solution

by:
Tommy Braas earned 500 total points
ID: 12310012
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
 

Author Comment

by:blaze_wk
ID: 12310079
ic ic.....do u know what the max udp packet size is for a red hat linux 9 wunning j2se 1.4.2?

0
 
LVL 14

Expert Comment

by:Tommy Braas
ID: 12310108
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
 
LVL 14

Expert Comment

by:Tommy Braas
ID: 12310128
blaze_wk,

Thank you much sir! And good luck!!!

=-)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now