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

Posted on 2004-10-14
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??

Question by:blaze_wk
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3

Expert Comment

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

Author Comment

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?
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.


Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Author Comment

ID: 12309958
hey there

ok what if i want to transmit with the biggest udp payload size. IS that possible in java?
LVL 14

Accepted Solution

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.

Author Comment

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

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.
LVL 14

Expert Comment

by:Tommy Braas
ID: 12310128

Thank you much sir! And good luck!!!


Featured Post

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
numbers ascending pyramid 101 241
null output 3 43
Problem to Alipay 10 72
Java program running SQL query 5 50
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
The viewer will learn how to implement Singleton Design Pattern in Java.

730 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