Cacti Windows Ping Latency

-->

By Mark Russinovich

Cacti Templates (Cisco Routers and Switches,Mysql,postfix,Qmail,Apache,Widows and many more) I have collected these scripts from Cacti forum and i hope this would help users to check the templates they are looking for cacti. Handy Repopulate Poller Cache Script. Cacti 1.x provides a 'preview' of the Template Import process so you can assess the changes to the various templates before importing. Again, it is always recommended that you install these templates on Test or Development systems to verify them prior to deploying in a production environment.

Published: June 29, 2016

Download PsTools(2.7 MB)

Introduction

PsPing implements Ping functionality, TCP ping, latency and bandwidthmeasurement. Use the following command-line options to show the usagefor each test type:

Installation

Copy PsPing onto your executable path. Typing 'psping' displays itsusage syntax.

Using PsPing

PsPing implements Ping functionality, TCP ping, latency and bandwidthmeasurement. Use the following command-line options to show the usagefor each test type:

Usage: psping -? [i t l b]

ParameterDescription
-? IUsage for ICMP ping.
-? TUsage for TCP ping.
-? LUsage for latency test.
-? BUsage for bandwidth test.

ICMP ping usage:
psping [[-6] [-4]] [-h [buckets <val1>,<val2>,..]] [-i <interval>] [-l<requestsize>[k m] [-q] [-t -n <count>] [-w<count>] <destination>

ParameterDescription
-hPrint histogram (default bucket count is 20).
If you specify a single argument, it's interpreted as a bucket count and the histogram will contain that number of buckets covering the entire time range of values. Specify a comma-separated list of times to create a custom histogram (e.g. '0.01,0.05,1,5,10').
-iInterval in seconds. Specify 0 for fast ping.
-lRequest size. Append 'k' for kilobytes and 'm' for megabytes.
-nNumber of pings or append 's' to specify seconds e.g. '10s'.
-qDon't output during pings.
-tPing until stopped with Ctrl+C and type Ctrl+Break for statistics.
-wWarmup with the specified number of iterations (default is 1).
-4Force using IPv4.
-6Force using IPv6.

For high-speed ping tests use -q and -i 0.

TCP ping usage:
psping [[-6] [-4]] [-h [buckets <val1>,<val2>,..]] [-i <interval>] [-l<requestsize>[k m] [-q] [-t -n <count>] [-w<count>] <destination:destport>

ParameterDescription
-hPrint histogram (default bucket count is 20).
If you specify a single argument, it's interpreted as a bucket count and the histogram will contain that number of buckets covering the entire time range of values. Specify a comma-separated list of times to create a custom histogram (e.g. '0.01,0.05,1,5,10').
-iInterval in seconds. Specify 0 for fast ping.
-lRequest size. Append 'k' for kilobytes and 'm' for megabytes.
-nNumber of pings or append 's' to specify seconds e.g. '10s'.
-qDon't output during pings.
-tPing until stopped with Ctrl+C and type Ctrl+Break for statistics.
-wWarmup with the specified number of iterations (default is 1).
-4Force using IPv4.
-6Force using IPv6.

For high-speed ping tests use -q and -i 0.

TCP and UDP latency usage:

server: psping [[-6] [-4]] [-f] <-s source:sourceport>

client: psping [[-6] [-4]] [-f] [-u] [-h [buckets <val1>,<val2>,..]] [-r] <-l requestsize>[k m]]<-n count> [-w <count>] <destination:destport>

ParameterDescription
-fOpen source firewall port during the run.
-uUDP (default is TCP).
-hPrint histogram (default bucket count is 20).
If you specify a single argument, it's interpreted as a bucket count and the histogram will contain that number of buckets covering the entire time range of values. Specify a comma-separated list of times to create a custom histogram (e.g. '0.01,0.05,1,5,10').
-lRequest size. Append 'k' for kilobytes and 'm' for megabytes.
-nNumber of sends/receives. Append 's' to specify seconds e.g. '10s'
-rReceive from the server instead of sending.
-wWarmup with the specified number of iterations (default is 5).
-4Force using IPv4.
-6Force using IPv6.
-sServer listening address and port.

The server can serve both latency and bandwidth tests and remains activeuntil you terminate it with Control-C.

TCP and UDP bandwidth usage:

server: psping [[-6] [-4]] [-f] <-s source:sourceport>

client: psping [[-6] [-4]] [-f] [-u] [-h [buckets <val1>,<val2>,..]] [-r] <-l requestsize>[k m]]<-n count> [-i <outstanding>] [-w <count>]<destination:destport>

ParameterDescription
-fOpen source firewall port during the run.
-uUDP (default is TCP).
-bBandwidth test.
-hPrint histogram (default bucket count is 20).
If you specify a single argument, it's interpreted as a bucket count and the histogram will contain that number of buckets covering the entire time range of values. Specify a comma-separated list of times to create a custom histogram (e.g. '0.01,0.05,1,5,10').
-iNumber of outstanding I/Os (default is min of 16 and 2x CPU cores).
-lRequest size. Append 'k' for kilobytes and 'm' for megabytes.
-nNumber of sends/receives. Append 's' to specify seconds e.g. '10s'
-rReceive from the server instead of sending.
-wWarmup for the specified iterations (default is 2x CPU cores).
-4Force using IPv4.
-6Force using IPv6.
-sServer listening address and port.

The server can serve both latency and bandwidth tests and remains activeuntil you terminate it with Control-C.

Examples

This command executes an ICMP ping test for 10 iterations with 3 warmupiterations:
psping -n 10 -w 3 marklap

To execute a TCP connect test, specify the port number. The followingcommand executes connect attempts against the target as quickly aspossible, only printing a summary when finished with the 100 iterationsand 1 warmup iteration:
psping -n 100 -i 0 -q marklap:80

To configure a server for latency and bandwidth tests, simply specifythe -s option and the source address and port the server will bind to:
psping -s 192.168.2.2:5000

A buffer size is required to perform a TCP latency test. This examplemeasures the round trip latency of sending an 8KB packet to the targetserver, printing a histogram with 100 buckets when completed:
psping -l 8k -n 10000 -h 100 192.168.2.2:5000

This command tests bandwidth to a PsPing server listening at the targetIP address for 10 seconds and produces a histogram with 100 buckets.Note that the test must run for at least one second after warmup for ahistogram to generate. Simply add -u to have PsPing perform a UDPbandwidth test.
psping -b -l 8k -n 10000 -h 100 192.168.2.2:5000

Download PsTools(2.7 MB)

If you’re an online gamer, you know how irritating a high ping can be. If you’re having trouble connecting properly to game servers, here are some steps you can take to remedy it.

Watch Your Network With Task Manager

Windows 10 will let you see what applications are using the most network bandwidth behind the scenes. You’ll often find automatic downloads, online videos and music taking up a bunch.

Step 1. Press Crtrl + Shift + Esc to open Task Manager.

Step 2. Press More Details.

Step 3. Sort the Network column in descending order (from high to low) to see the applications that are using the most bandwidth.

Step 4. Close applications using a high amount of bandwidth (unless it’s a system process).

Also Read:How to Use Windows Network Diagnostics to Repair Network Issues

Disable Windows Automatic Updates

Windows downloads updates without your permission, so they can be running whilst you try to game. Since you can’t pause an update that has already started, it can ruin your online gaming experience.

The preferred method of addressing this is to use a new Windows 10 setting that lets you choose how much bandwidth Windows updates are allowed to consume. For those of us that don’t live in gigabit neighborhoods, Windows taking 40% of the available speed is unacceptable.

Step 1. Head to the Settings app, then to Update & Security.

Step 2. From here, press Advanced options.

Step 3. Now you’ll want to look for Delivery Optimisation.

Step 4. Press advanced options yet again.

Step 5. Drop your upload and download bandwidth percentage. A limit of 10% works well, as it's not enough to notice the difference whilst you game, but, the updates still get done in a reasonable amount of time.

Another way to fix this is to tell Windows that your network is metered. That is, trick Windows into thinking you have limited data on a particular WiFi network, and that you need it to not download updates whilst connected to it.

When you’re ready to download the update, connect to another WiFi network or disable the metered setting and Windows will download it as normal.

Step 1. From the settings app, head to Network & Internet.

Step 2. Press Ethernet from the lift sidebar.

Step 3. Click on the network you are currently connected to.

Step 4. Switch on the Set as metered connection toggle.

Be sure to switch this off occasionally, or you might miss out on critical security and driver updates.

Also be warned that automatic Windows app updates and network-shared updates will be disabled. For these two reasons, it’s often better to only turn this on before a gaming session.

If this doesn’t seem to be working, go to Settings > Update and Security > Advanced options and ensure the metered connection download setting is off.

Address Common Router Issues

Your ping can be reduced if you don’t have a solid connection to your internet router. Here are a few ways to can drop your ping further:

  • Move closer to your WiFi router or connect directly with an Ethernet cable.
  • Turn off other devices using the network.
  • Restart your router.

Disable Network Throttling

Windows has a built-in setting that limits your bandwidth to what your computer can handle.

Results will vary and it might cause more harm than good, but it’s worth playing with the settings to see if it works for you.

We’ll need to play with some internet Windows settings, so follow carefully.

Step 1. Search Windows for Regedit.

Step 2. Follow the the following program path, using the arrow next to each folder to to open the next: HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionMultimediaSystemProfile.

Step 3. Whilst you have the SystemProfile folder selected, double click on NetworkThrottlingIndex.

Step 4. Change Value data to ffffffff with the Hexadecimal base still selected.

If you want to switch back, the default value is hexadecimal a.Ping

Reset Windows Connection Settings

Adm8515 usb to lan driver windows 7. As a last resort, you can run the Windows 10 Network reset. The reset installs all of your drivers and software that interact with your network connection, including VPNs.

If you’re willing to take the time to set everything back up, then the network reset will fix many common internet connection problems.

You’ll find the function under Settings > Network and Internet > Network reset.

Consider New Hardware and a New Internet Provider

If none of the steps above reduced your game ping, then it might be time to invest in a new internet router. A better router will provide a more stable connection that can handle more devices connected to the network.

You Might Like: How to Choose a Wi-Fi Router That is Right for You

Alternatively, a new internet provider or even an upgraded plan can often bring better ping.

Time to Game

Now that your ping's lower, you can game in peace.

Got any more suggestions? Let us know in the comments below.


The above article may contain affiliate links which help support Guiding Tech. However, it does not affect our editorial integrity. The content remains unbiased and authentic.Read Next2 Tools to Quickly Configure Multiple Network Profiles in WindowsAlso See#games #internet

Did You Know

Windows Hello is a biometric authentication feature in Windows 10.

More in Gaming

6 Best Ways to Fix Fire TV Stick Stuck on Amazon Logo Screen