none
Udp Statistics RRS feed

  • Question

  • I ran a method that collects Udp statistics. This is what I got:

    ShowUdpStatistics
    
    
    UDP IPv4 Statistics
      Datagrams Received ...................... : 77419
      Datagrams Sent .......................... : 101346
      Incoming Datagrams Discarded ............ : 13560
      Incoming Datagrams With Errors .......... : 102
      UDP Listeners ........................... : 22
    
     

    I have never defined any Udp's which is "User Defined Protocol." How come my sockets are busy transmitting information via UDP's?

    Thanks, - MyCatAlex

    Thursday, January 23, 2020 8:08 PM

All replies

  • Hi MyCatAlex,


    Does this issue occur only on IE or MS Edge browser?
    If yes, I suggest you provide the sample code and detailed steps for reproducing the issue.
    We will try to test the issue on our side to check the results. Then, we will can to provide further suggestions.
    Only posting the output will not help us to find the cause for this issue.
    If this output you get with other browsers too then this may be a general development-related issue and this forum is not suitable for this question as this forum only handles IE or Edge browser-related issues.


    Thanks for your understanding.
    Regards,
    Deepak


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Friday, January 24, 2020 1:26 AM
    Moderator
  • Deepak hello,

    I don't understand your question about the browsers. For years I had a collection of over 50 short methods related to computer sockets and information transmission. I am not sure where I got them but I am certain they all have been written by Microsoft employees. I tried to google for them but was able to find only one, now do not remember which. It is time for me to make sense out of them.

    The method I used to get this output is here

            public void ShowUdpStatistics(NetworkInterfaceComponent version)
            {
                IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties();
                UdpStatistics udpStat = null;
                switch (version)
                {
                    case NetworkInterfaceComponent.IPv4:
                        udpStat = properties.GetUdpIPv4Statistics();
                        Console.WriteLine("UDP IPv4 Statistics");
                        break;
                    case NetworkInterfaceComponent.IPv6:
                        udpStat = properties.GetUdpIPv6Statistics();
                        Console.WriteLine("UDP IPv6 Statistics");
                        break;
                    default:
                        throw new ArgumentException("version");
                }
                Console.WriteLine("  Datagrams Received ...................... : {0}",
                    udpStat.DatagramsReceived);
                Console.WriteLine("  Datagrams Sent .......................... : {0}",
                    udpStat.DatagramsSent);
                Console.WriteLine("  Incoming Datagrams Discarded ............ : {0}",
                    udpStat.IncomingDatagramsDiscarded);
                Console.WriteLine("  Incoming Datagrams With Errors .......... : {0}",
                    udpStat.IncomingDatagramsWithErrors);
                Console.WriteLine("  UDP Listeners ........................... : {0}",
                    udpStat.UdpListeners);
                Console.WriteLine("");
            }            // ShowUdpStatistics

    This is how I call this method:

    case "ShowUdpStatistics":
                        Console.Clear();
                        Console.WriteLine("ShowUdpStatistics\n\n");
                        NetworkInterfaceComponent version = NetworkInterfaceComponent.IPv4;
                        sd.ShowUdpStatistics(version);
                        break;

    I have a very large mostly C# application with TabControl and I added another page to handle all 50. No browser is involved as you can see. I have many questions besides the one in the OP with other methods and hope gradually post them all because I want to understand what is going on in my computer.

    And now I ran another method:

    ShowActiveUdpListeners
    
    Active UDP Listeners
    0.0.0.0:1434
    0.0.0.0:3702
    0.0.0.0:3702
    0.0.0.0:3702
    0.0.0.0:3702
    0.0.0.0:5004
    0.0.0.0:5004
    0.0.0.0:5005
    0.0.0.0:5005
    0.0.0.0:5050
    0.0.0.0:5353
    0.0.0.0:5355
    0.0.0.0:51057
    0.0.0.0:59748
    0.0.0.0:61011
    127.0.0.1:1900
    127.0.0.1:49100
    127.0.0.1:50690
    127.0.0.1:50691
    127.0.0.1:50692
    127.0.0.1:62438
    192.168.78.13:137
    192.168.78.13:138
    192.168.78.13:1900
    192.168.78.13:62437
    [::]:1434
    [::]:3702
    [::]:3702
    [::]:3702
    [::]:3702
    [::]:5004
    [::]:5005
    [::]:5353
    [::]:5355
    [::]:51058
    [::]:59749
    [::]:61011
    [::1]:1900
    [::1]:62436
    [fe80::b5f9:78f8:ff06:9563%9]:1900
    [fe80::b5f9:78f8:ff06:9563%9]:62435
     
    What are those Apps?

    Thanks,- MyCatAlex




    • Edited by MyCatAlex Thursday, January 30, 2020 7:46 PM
    Friday, January 24, 2020 1:40 PM