Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

udp datagram packet loss

843790Oct 19 2008 — edited Oct 19 2008
Hello,

I experience slow UDP datagram transfer and also packet loss. Using java datagram multicast socket.

Market quotes are typically sent as datagram packets. UDP datagram packets traversing via 100mps CISCO managed switch show packet loss. However when tried with 1000mps(gigabit) Netgear unmanaged switch works okay but can’t take message burst. When put rate is fast, receiver stops accepting. TTL (32) and buffer size (1mb) are set at java level.

udp datagrams received on same machine (sender and receiver on same machine) - give rate as 800 events/sec, however with sender and receiver on different machine (through switch) - give rate as 200 events/sec. What causes loss when using switch?

How do I make UDP fast and optimized? I need a rate of 20000 events/sec. I feel TCP is slow as compared to UDP. I have observed when put rate is fast then receiver stops accepting.

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 16 2008
Added on Oct 19 2008
4 comments
449 views