Author Topic: Webcam Send, SendQuickly, how to increase UDP packet limit?  (Read 2218 times)

aikshutan

  • Guest
Webcam Send, SendQuickly, how to increase UDP packet limit?
« on: August 13, 2013, 11:45:45 PM »
Hi,

I m working on webcam chat system. How to increase the UDP packet size?
Here is my test result:

System (ImageCaster) Imac Window 7 64bit
System (ImageReceiver) Window 8 64 bit
Network environment: Intranet router
byte[].size : approx 146000 - 156000

TCP / tno.Send(1, Target.Others, byte [] ) result:
sendRate 0.1 second is still oki, but with sendRate of 0.04 second (25 fps) the result is not good. The packet had queue up, and the update rate is still cap to 0.1 sec speed. So i try UDP / SendQuickly

UDP / tno.SendQuickly(1, Target.Others, byte [] ) result:
sendRate 0.5 second : fail, in fact it fail on first fire. The alert is the packet size is exceeding...

Is there a way to up the SendQuickly packet limit?

Cheers,

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Webcam Send, SendQuickly, how to increase UDP packet limit?
« Reply #1 on: August 14, 2013, 11:04:00 PM »
You're trying to send a 156 kb packet? Maximum sane UDP packet size is around 2048-4096 bytes iirc. You need to split up your data.

Mobile devices also often cap the send rates, so you sending 25 times per second may actually result in a much smaller number of packets per second than you'd expect.

aikshutan

  • Guest
Re: Webcam Send, SendQuickly, how to increase UDP packet limit?
« Reply #2 on: August 18, 2013, 05:23:19 AM »
Thanks for the great support and guidance!!