Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 657805
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T22:51:51+00:00 2026-05-13T22:51:51+00:00

My program use UdpClient to try to receive 27 responses from 27 hosts. The

  • 0

My program use UdpClient to try to receive 27 responses from 27 hosts. The size of the response is 10KB. My broadband incoming bandwidth is 150KB/s.

The 27 responses are sent from the hosts almost at the same time and for every 10 secs.

However, I can only receive 8 – 17 responses each time. The number of responses that I can receive is quite dynamic but within the range.

Can anyone tell me why? why can’t I receive all?

I understand UDP is not reliable. but I tried receiving 5 – 10 responses at the same time, it worked. I guess the network links are not so bad.

The code is very simple. ON the 27 hosts, I just use UdpClient to send 10KB to my machine.

On my machine, I have one UdpClient receive datagrams. Each time I get a data, I create a thread to handle it (basically handling it means just print out “I received 10KB”, but it runs in a thread).

listener = new UDPListener(Port);
listener.Start();
while (true) {
    try {
        UDPContext context = listener.Accept();
        ThreadPool.QueueUserWorkItem(new WaitCallback(HandleMessage), context);

    } catch (Exception) { }
}

If I reduce the size of the response down to 3KB, the case gets much better that roughly 25 responses can be received.

Any more idea? UDP buffer problems???

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T22:51:52+00:00Added an answer on May 13, 2026 at 10:51 pm

    As you said yourself, UDP is not reliable. So chances are packets are dropped somewhere.

    Note that packet drop is caused just as much by overloaded switches/routers/network cards as by bad links. If someone sends you 27 10Kb responses “simultaneously”. it might very well be that the buffers of your network card, or a nearby switch are full, and packets get dropped.

    Until you have some code to show, there’s probably not much else to say.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i use in UDPClient in c#. i invoke the receive function, but the when
I am developing a program that use DirectShow to grab audio data from media
I have program use c and c++ language to access data from MySQL database.
I'm making a program use JNI to call some native directives. My code is:
I have a flight reservation program use mssql ,For reserving flights i want to
This program I use has it's own variables to set when you run it,
I wrote a little program that use activemq embedded broker. Program run on one
I wirte a simple program that use unix sockets to download a html file
I created a hello world java program and use lauch4j to convert executable jar
Is there any apt-get -like program for use with Cygwin? I've already tried cyg-apt

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.