0.PCATTCP Introduction
PCATTCP's predecessor, Test Tcp,test TCP, is the native tool of the BSD operating system, which uses the console input parameters to test TCP or UDP communication speed. The project was launched in 1984 and the source code for the tool is now open. PCATTCP is the Windows ported version of test TCP and is a Windows console program for testing TCP and UDP communication speeds.
installation of 1.PCTATCP"1" Download the executable and source code package, download the URL "2" To extract the executable file to a file, such as D:\tools "3" to add D:\tools to the environment variable path
2. Simple TestThe test requires two devices to be involved, and the IP addresses of the two devices need to be recorded before starting. For example, two devices in this example. Device a server-side IP address for 192.168.1.103 device B client IP address is 192.168.1.102 where device a accesses the router via a network cable, device B accesses the router via WiFi.
The "Device A" console input Pcattcp-r-c parameter-R indicates the server-side mode, which is in the receive State. The-c parameter indicates that the device works in continuous mode. The output of the control is shown in the figure below, and the feedback from the graph shows that the pcattcp works on port 5001. The specified port can also be modified with the-P parameter.
Figure 1 Device a works in server mode
"Device B" console input pcattcp-t 192.168.1.103-t client mode, send.
Figure 2 after device B works in the client mode input command, the PCATTCP tool sends some column packets over the network, by default the size of a single packet is 8192 and the number of packets is 2048. At this point, the TCP transfer speed from device B to device A is 2311.71kb/s.
3. Modifying parametersThere are often limitations in the general testing process, such as the length of the packet or the limit of the number of packets, and the-L and-n parameters can be used at this time. PCATTCP-T-L 1024-n 1024x768 192.168.1.103-t client mode, send. -L is the size of the packet transmitted, when the length of a single packet is 1024 and the default size is 8192. -N sends the number of packets, at which point the number of repeated packets is 1024, the default number of packets is 2048.
Figure 3 Modifying packet length and number of packets
4. References"1" Official introduction and instructions for use "2" pcattcp command live
Pcattcp-h Pcausa Test TCP Utility V2.01.01.13 (Ipv4/ipv6) usage:pcattcp-t [ -4|-6] [-options] host [< in] Pcattcp-r [ -4|-6] [-options > Out] Common options:-4 use IPV4 (default)-6 use ipv6-l # Length of BU FS read from or written to network (default 8192)-u use UDP instead of Tcp-p # # port number to send to or listen a T (default 5001) Can specify multiple sequential ports double ways:-P #first-#last-P #f irst+ #additional-S toggle Sinkmode (enabled by default) Sinkmode enabled:-t:source (trans
MIT) Fabricated Pattern-r: sink (Discard) all received data Sinkmode disabled: -t:reads data to is transmitted from Stdin-r: writes received data to stdout-a align the start of buf Fers to this modulus (default 16384)-O start buffers at this offset from the modulus (default 0)-V verbose:print More statistics-d SET so_debug socket option-b # # SET Socket buffer size (if supported)-F X format for rate:k,k = Kilo{bit,byte}; M,m = Mega; G,g = giga-c-t:send continuously-r: Accept multiple connections sequentially-a bind to local host I Nterface IP address Options specific to-t:-N # # Number of source Bufs written to network (default 2048)-D don ' t b Uffer TCP writes (sets tcp_nodelay socket option)-W # # Milliseconds of delay before each write (default 0)-R # # de Sired transmit Data rate in Bytes/second Options specific to-r:-M concurrent tcp/udp multithreaded Receiver-b for -S, only output full blocks as specified by-l (for TAR)-T "touch": Access each byte as it ' s read