Udp packets dropped while sending in RHEL4
I have a RHEL 4.6 linux server. The kernel is 2.6.9-67.ELsmp. I have a program which creates "n" threads. Each thread sends 160 bytes of data after every 20 msecs through udp sockets to some other server where the data is taken off the socket at the same rate. Each thread owns a separate udp socket. When the no of threads are increased to around 1400 and more, some udp packets are dropped by the OS while sending but in the code sendto command doesn't return any error. I tried tweaking the kernel parameters but it didn't help. Can anyone tell me the reason for this and a possible solution.
thanks in advance