udp datagram packet loss
843790Oct 19 2008 — edited Oct 19 2008Hello,
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 cant 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