How to Monitor the UDP Buffer in Linux

Written by jonah quant
  • Share
  • Tweet
  • Share
  • Pin
  • Email
How to Monitor the UDP Buffer in Linux
Monitor the amount of buffered UDP data on your Linux computer. (Hemera Technologies/ Images)

The User Datagram Protocol allows computers to exchange messages -- called "datagrams" in UDP parlance -- over networks, without any guarantee of delivery or of order preservation. It is well suited for applications that do not depend on establishing explicit connections. The Linux kernel keeps an in-memory UDP buffer; incoming datagrams stay in that buffer as long as they have been received by the network adaptor, not yet read by any application, and not yet overwritten by later datagrams as buffer space runs out. You can monitor the current amount of data stored in the UDP buffer on your Linux computer.

Skill level:

Other People Are Reading


  1. 1

    Log in to your Linux computer.

  2. 2

    Launch a command shell by logging in with text mode or by launching a "Terminal" application from the graphical desktop.

  3. 3

    Type the following command into the shell:

    cat /proc/net/udp

    Press "Enter." The "rx_queue" entry in the output of the "cat" command will display the current number of bytes stored in the UDP buffer, as permanently monitored by the Linux kernel and made available via the special "/proc" filesystem.

Don't Miss

  • All types
  • Articles
  • Slideshows
  • Videos
  • Most relevant
  • Most popular
  • Most recent

No articles available

No slideshows available

No videos available

By using the site, you consent to the use of cookies. For more information, please see our Cookie policy.