-->

Tcping and psping |Test port delay

4 minute read
The tcping software is for TCP monitoring, and you can also see the ping value. Even if PING is prohibited in the computer room and PING is prohibited in the server, you can also use it to monitor the situation of the server. Besides ping, it also has a function to monitor the status of the port.


    The following describes the use of this software, this software 

    One can monitor the port status of the server, the default is port 80, or you can specify other ports. 

    Second, you can see the time returned by ping, so you can know whether the server is delayed or the port is blocked. 



Using the software is very simple: 

    1. Download the tcping tool:
https://elifulkerson.com/projects/tcping.php
   2. Put the downloaded tcping.exe or tcping64.exe file in the C:\Windows\System32 directory (the ping command is also in this directory)
tcping google.com
use parameters like -t, -d port number etc 
for more information & commands 
https://elifulkerson.com/projects/tcping.php

Related tools: Tcproute.exe a small tool for testing routing ( https://elifulkerson.com/projects/tcproute.php )

Introduction to the four functions of Psping: ICMP Ping/TCP Ping/Delay Test/Bandwidth Test :
This article mainly introduces Microsoft's test tool Psping, which mainly includes: ICMP Ping, TCP Ping, delay test, bandwidth test

An application scenario needs to be explained: Since ICMP is prohibited in the Windows Azure data center, it is very useful to use the TCP Ping function of Psping to test connectivity or troubleshoot.

Tool download link (https://technet.microsoft.com/en-us/sysinternals/jj729731)

After downloading the PSTools.zip package, put it on any local disk.

Use the CMD command line tool to enter the folder path where PSTools is located, enter psping separately , and you can see the help commands for the four main functions of psping , the four functions are ICMP Ping , TCP Ping , delay test, and bandwidth test.

ICMP ping function
Enter psping -? i to get ICMP ping related parameters

psping -4 -n 10 -w 2 -h 10 180.76.76.76

-4 means force use of IPv4 connection
-n represents the number of formal ping packets, or defines the use of seconds as the unit
-w represents the number of warm-up ping packets, that is, how many warm-up test connections are performed before the formal test
-h represents the minimum and maximum delay in milliseconds.
-i stands for interval seconds, fast ping is set to 0
-l represents the size of the ping packet, the default unit is byte . Use k as a unit to represent kilobytes (KB) , and use m as a unit to represent megabytes (MB)
-q means that the ping process does not output values ​​one by one
-t stands for long ping non-stop
-6 means force use of IPv6 connection

TCP Ping function
Use psping -? t for help
 
psping -n 10 -w 2 -h 10 42.159.27.213:443

The same parameter definitions as the ping function:

-n represents the number of formal ping packets, or defines the use of seconds as the unit
-w represents the number of warm-up ping packets, that is, how many warm-up test connections are performed before the formal test
-h represents the minimum and maximum delay in milliseconds
-i stands for interval seconds, fast ping is set to 0
-l represents the size of the ping packet, the default unit is byte . Use k as a unit to represent kilobytes (KB) , and use m as a unit to represent megabytes (MB)
-q means that the ping process does not output values ​​one by one
-t stands for long ping non-stop
-4 means force use of IPv4 connection
-6 means force use of IPv6 connection

Delay test
Use psping -? l for help with latency testing.
I used oracle VM to build a website and deployed it on port 8081 , 129.34.55.199:8081
psping -l 1500 -n 300 -h 10 120.34.55.199:8081

-l 1500 means that the size of the packets I send is 1500 Bytes each , and the MTU (Maximum Transmission Unit) of the TCP connection in Layer 2 Ethernet is usually 1500 Bytes as a unit -n 300 means relax 300 packets Then             300*1500Bytes=450000Bytes , mostrespond within 5ms.

Bandwidth Test
psping -?b

psping -b -l 1500 -n 15000 
129.34.55.199:8081

-b means bandwidth test will be done
-l 1500 means use data packets of size 1500Bytes
-n 15000 means use 15000 packets
 
The output result shows that the bandwidth between my PC and the Server.
Premium Blogger Templates