If you often play Online Games, then the word "ping" is familiar to you even if you are not particularly versed in computer networks. In this article, you will briefly learn what ping is and how to check it, but let's take a closer look at how to reduce it or make it smaller. I will also answer a couple of questions related to it along the way.
I want to note that you will not learn anything super-new and innovative. All this has always been and will always be relevant and it is likely that you already knew everything without the article, but I think that some do not know or do not know everything.
So, let's begin.
What is ping?
Ping is the time it takes to get to the server and get back. This can be compared to how long it takes you to get to the store and back home. That's just the store will be the server, you - the client (computer), and the time spent - ping. Ping is measured in milliseconds (ms).
How to check (find out) your ping?
In order to determine your ping, you can use the regular and ping command.
Open and write the address of the site or server there. For example ping a site
Here we look at the last line "Approximate round-trip time in ms:" and Average just will be your ping to this server (for example 47)
If you want to know your ping to the server with the game, then write its address in the line. For example, Counter Strike servers have an ip:port binding (for example, 46.174.48.38:27229).
We write to the command line ping 46.174.48.38 and find out.
As you understand, for the definition it is not at all necessary to write the address (domain) of the site or server. Quite enough of it.
How to lower ping?
What to do if the ping is high? Reduce! Logically...
In fact, many factors affect ping. Of course, if you powerful computer and high-speed Internet, then you won’t even think about it, but others still have to look for ways to reduce ping in every possible way in order to play a game or access a resource faster.
By the way, maybe many of you have wondered "Why do I surf the Internet and watch online videos normally, but when I start playing, then the ping is immediately high?". The fact is that when you play a game, much more productivity of both the computer itself and the network is used to display the picture in real time.
So, let's start lowering the ping by considering the factors that affect it.
Are you using a USB modem? f firebox it!
Do you use one carrier? Change to another.
Use a cheap rate? We take more expensive and higher in speed.
Yes, although it hits the money and not everyone can afford both wired and changing the operator or tariff, but still this is the most effective and trouble-free way to reduce ping. It may be that the tariff does not always help, but it depends on the specific case.
Also, on the one hand, not everyone will be able to do this. he is either alone or loved, but still this factor affects the ping. Have you noticed, for example, that in "contra" there are servers with relatively low ping, but there are much higher ones? It's about two things here:
1) Depends on the remoteness of the server itself. For example, if you live in Kazan (and your provider's server too), and the game server is located in Moscow, then the speed will be the same. But if the game server is located in Kazan itself (or closer / farther), then the ping will be less (or more, if further). Logically. The closer the servers are to each other, the less time they need to get to each other.
2) Depends on the number of routers between you and the server. Expires from the first dependency. The farther you are, the greater the distance and the more intermediate routers to connect you.
By the way, you can also see how many routers are present on the path to the server on the command line. To do this, there is a Tracert 0.0.0.0 command in which we replace zeros with the necessary numbers and get complete information.
Therefore, we are looking for a server that is closer and play on it.
It may be that it has not been updated or you yourself did not know about it that a new version has appeared. So this is a necessary task in itself, and for a network card this is especially necessary if you want to reduce ping.
Many games have their own commands for lowering ping. More precisely, these settings relate to the Internet connection. For example, for "contra" the following basic commands are used:
Rate - indicates what size of information in bytes will be transmitted in one second.
Cl_updaterate - Indicates the number of packets received from the server by the client. To determine the size of one received packet in bytes, you need to divide the rate by this number.
Cl_cmdrate - sets how many network packets will be sent to the server from your computer, that is, the client. To determine the size of a single sent packet in bytes, divide cl_rate by the specified amount.
These commands are written either to the console or directly to the configuration file.
Few people will give you the exact value. they are individual for different providers and servers. For example, someone is comfortable playing with such teams:
cl_updaterate 25
cl_cmdrate 25
rate 12500
and others have less ping with these commands:
cl_updaterate 101
cl_cmdrate 101
rate 25000
It is better to calculate it yourself empirically.
I will not focus on this because. many articles and games have been written about this. Google to the rescue
You can tell the system that some process (namely our game) requires more attention, and therefore it will be given the most resources. It's a matter of priority. Usually it is average for everyone.
So, we launch the game, then we need to launch it in any convenient way, and then find the process with the game and set its priority to "High" or "Above average".
Also, in some cases, you can lower the priority on the contrary. We do the same, but we already set the priority to "Low" or "Below average".
This needs to be done every time you start the game.
To automate this process a little, you need to create a cmd file containing the priority in the game folder. The text will be like this:
start /belownormal wow.exe (for World of Warcraft)
start /belownormal L2.exe (for Lineage)
start /belownormal hl2.exe -game cstrike(for Counter-Strike: Source)
start /belownormal hl.exe -game cstrike(for Counter-Strike 1.6)
Well, and so on. Depending on which process (file) you set priority.
The text above prioritizes "Below Medium". If you are interested and need more - write in the comments.
Someone may call it a useless exercise, because. online games use UDP, and it works over IP, and TCP settings are useless (and we will change them), but still I want you to know that there are such parameters.
ATTENTION! Be sure to back up before changing.!!!
So, we need the following sections and these parameters:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\
We are looking for our network interface (if you don’t know which one, you will have to do it in all) and change the TcpAckFrequency parameter to 1
This option causes a TCP/IP acknowledgment message to be sent after each received segment and not to wait for the next one.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSMQ\Parameters
Parameter TCPNoDelay do 1
This setting reduces latency by disabling one of Windows' internal algorithms (Nagle algorithm).
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile
The NetworkThrottlingIndex parameter is ffffffff (hex value).
This setting removes restrictions for non-media traffic.
There are also additional parameters that do not really wag, but still ...
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
SackOpts - 1 (0 - disable). Selective transmission of corrupted data.
EnablePMTUDiscovery - 1 (0 - disable). Automatically determine the maximum size of the transmitted data block.
EnablePMTUBHDetect - 1 (0 - disable). Enables the black hole router detection algorithm.
DisableTaskOffload - 0 (1 - disable). Allows you to offload the central processor, freeing it from the calculation of checksums for the TCP protocol, shifting this task to the network adapter.
DefaultTTL - 64 (to disable - remove this parameter). Specifies the maximum time an IP packet spends on the network if it cannot reach the destination host. This greatly limits the number of routers an IP packet can traverse before being dropped.
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Psched
NonBestEffortLimit - 0 . Disables bandwidth reservation for QoS.
If there is no parameter, create it.
If it doesn't help, it's better to return everything as it was (either from a backup or from memory).
Don't blame me later for breaking something. You do everything at your own peril and risk!
It is possible that they use some of your traffic to send their data. Viruses are bad anyway. Therefore, check, search and eliminate.
Antiviruses often consume a lot of resources, including data transfer. Therefore, temporarily disabling them can help.
Disable for a while everything possible that consumes traffic - online video (music), downloading something somewhere (if you know what and where), etc. In general, everything that consumes Internet traffic.
You can also view and terminate processes in the Manager that you are familiar with and you know that they can go online.
And ... something else, but what exactly - I think you yourself write in the comments how you managed to lower the ping, and I will supplement the article
27. 09.2018
Blog of Dmitry Vassiyarov.
How to check ping via command line?
Greetings my dear readers. Surely each of you was worried about the quality of the connection over the network. In search of a solution to optimize it, one has to look for a weak link, which is often a high time for exchanging data packets. To check this setting, it is useful to know how to check ping through the command line. This is what I will talk about in this article.
Let me briefly remind you what ping is. The process of connecting over a network between two points involves the exchange of data in both directions. Even if there is a one-way translation of the stream, the receiver sends various control information, information about its configuration and changes when working with the interface to the source.
So ping is the time during which packet data is exchanged. The smaller it is, the better. And if it is missing, then there is no network connection either.
Let's return to our task of determining the ping. I recommend using the command line method, because it is a classic and allows you to learn the necessary amount of information even with obvious problems in the operating system. It is briefly described in one of my blog articles on the concept of ping, and now there is a chance to talk about it in more detail.
But we will start by calling the command line, which can be launched in the following ways:
- in Windows XP, press "Win + R" and enter "cmd";
- in Windows 7 or 8, we call the context menu (right-click) of the "Start" button and select "Command Prompt (Administrator);
- in Windows 10, the “Power Shell (as administrator)” analogue of cmd is called in the same way;
- well, just in the search engine of the system we hammer in “Command line;
We will use essentially one command, which is called and written "ping". But it adds a network object identifier and additional features that we'll look at later.
First, let's check the ping when accessing the site, more precisely, to its server. To do this, we need his Internet address, which we are used to entering in the browser. So the command would look like this:
"ping site".
We confirm "Enter" and we get the result, the details of which I propose to understand. To get an objective assessment, your computer sends four requests (this is the standard format for this command), so in 4 similar lines you will see:
- IP address;
- the number of bytes to send (usually 32);
- signal transit time in milliseconds (reception and transmission) - this is ping;
- TTL (Time to live) signal lifetime, but in fact, this is the number of hops between intermediate points, which can be your router, provider switch, routing server;
The ping data is averaged and given as a final figure. You can experiment with different sites and compare the results. For such experienced companies as Google, sites will provide the best ping, and for self-made sites located on a common disk of one server, this indicator can be critically large.
If in both cases the results are equally unsatisfactory, or absent at all, problems in the network itself are obvious.
IP address - a universal identifier for determining ping
When requesting a web address, the information given to you will also contain the IP of the object. You can also ping this address by typing the following command:
"ping 5.45.116.213"
This method has much more possibilities, since you can check the quality of the connection with your home router. For example, for Tp-Link models it will look like this:
"ping 192.168.0.1" (or "ping tplinkwifi.net");
In this way, you can check the speed of data exchange with all devices in your home or office network. This could be a smart TV, printer, external media server, or other PC.
Especially relevant is the ping check for gamers, because this parameter largely determines the degree of pleasure received from gameplay. Depending on the type of network, you will need the IP address of the game server or another PC here if you are playing LAN together.
Additional features of the "ping" function
Now I want to share some secrets. The fact is that the “ping” command can be used with various additional parameters, which are shown in the figure.
How to use them? Yes, very simple. For example, when using the command
"ping –t fishki.net"
The number of requests will be sent an unlimited number of times, until you press "Ctrl + C". With the rest of the ping options, you can also safely experiment without fear of doing something unfortunate.
That, perhaps, is all that I wanted to tell you about checking ping through the command line. I hope the information was useful to you, expanded your horizons and convinced you that the good old command line is capable of wiping out many modern applications.
On this I say goodbye to you, my dear readers, and sincerely wish you all good luck.
To check the connection on the network, a special system command ping is used, which sends an ICMP protocol request to a resource with a specific address on the network and displays the result received in response from this device.
That is, the ping command helps to determine the amount of time required to transfer certain data from one device to another.
The lower the latency, the faster the connection between two nodes.
What is ping
Ping (ping) is the length of time during which a packet sent from one device on the network will be delivered to another device on the network and returned back.
The higher the ping, the longer, for example, the waiting time required to open a web page.
There is another concept in relation to Ping, bordering on the first. Ping is also the most popular command for determining the speed of access to certain network devices. It can be used as the main tool that determines the return period of packets along the route of interest.
Ping should be used with any Internet node, including to control the quality of the connection with the terminal equipment. At the same time, ping allows you to quickly determine the presence or absence of connection problems at the physical (break, cable damage, network card failure, etc.) and software (for example, blocking all network traffic) levels.
Pinging means that you send a certain number of data packets from one device to another device, both on the local network and on the Internet. Thanks to this exchange of packets, you can get information on the quality of the connection.
If there are no responses received from the tested device, then there are connection problems. Packets that did not come back are called "losses". The greater the number of lost packets, the worse. If all sent packets are lost, then this means either the lack of a network connection, or the unavailability of the pinged device.
The ping speed is very important: the lower it is, the faster and more reliable the connection between the nodes.
Video: ping check
Verification methods
To check the connection using ping, you can either run the ping command from the operating system console, or use specialized online services.
Through the command line
To check ping via cmd, you need to do the following sequence of actions:
- open a command prompt in one of three ways:
Online
An alternative option for checking ping to an online server is to use online services. These Internet services allow you to check the availability of an information resource and the waiting time of users.
Consider the most common of them:
How to check ping to router
The fastest and easiest way on Windows to check ping to the router is to use the Ping command. To do this, you first need to know its ip-address. Usually it is applied to the router case on the reverse side. Most often, the router has the following ip address 192.168.1.1.
At the command line, type the command: ping 192.168.1.1 -t.
If the router has an ip address of 192.168.0.1 (as is the case with D-Link routers), then the command should be: ping 192.168.0.1 –t.
The -t option means that pings will be sent until the user terminates the process by pressing the "Ctrl" + "C" key combination, or closes the console window. A successful ping result is shown in the figure:
This result indicates that the ip address is available and responses to ICMP requests are coming. If the router pings, therefore, we can talk about its availability from the workstation. In such a situation, you can connect to the router settings through its web interface.
If the router's IP address is not available and there is no response from the device, then the result of the ping command is as follows:
Photo: the result of the ping command
In such a situation, you need to check which ip address is set in the network card settings, try to change the port in the router and, in extreme cases, reset the router settings to factory settings.
Usually, ping comes up in the case of an increase in the time between operations on the local network or the Internet, or in the absence of a response from the addressee. For example, quite often you need to check the ping in relation to search engines. Quite often, comfort in online games depends on ping.
It is reasonable to check the ping to the game server before playing. Of course, the lower the ping, the more comfortable the network.
Let's start with the fact that it is desirable to first check the parameters of the Internet connection.
This is done as follows:
1 Go to "A computer" and right-click on the drive with the most information.
2 In the drop-down menu, select the item "Properties".
3 The properties window will open. In it, go to the tab "Service" and in block "Disk Defragmenter" click on the button "Perform defragmentation".
4 In the next defrag window, just click again "Disk Defragmenter", after selecting the required one in the block under the inscription "Current state".
5 After that, follow the instructions and just wait for the process to finish.
Note: If in the block under the inscription "Current state" next to the selected disk it says “(fragmented: 0%)”, which means that this is not the problem and defragmentation is not necessary at all.
And if that was indeed the problem, We recommend setting up a defragmentation schedule. and so that the system independently performs this process once in a certain period.
To do this, use the corresponding button in the defragmentation window. Thanks to this, you won't come back to this question again.
Driver update
For the operation of the Internet, as you know, the network card is responsible. So, it is advisable to update the drivers for it from time to time. It's done like this:
1 In the menu "Start" enter the query "driver". Among the programs found, run the one called "Updating Device Drivers".
2 Expand the section "Network adapters". Find there the device called "Network Adapter..."
3 Right-click on it and select from the drop-down menu "Update Drivers..."
Tip: Do the same for other devices in the section "Network adapters". Perhaps the problem is in one of them.
Virus check
Therefore, it is best to check your computer for viruses and remove them.
If you have a good anti-virus program installed on your computer, for example, from Kaspersky Lab, run a scan with it.
However, even if you are confident in your antivirus, you can do the same. A list of the best such utilities is presented in. Choose any.
Disabling other programs
Often all sorts of things software also takes over a significant part of the traffic. Thus, it does not allow you to achieve high ping.
That's why it is best to disable a number of programs for the duration of the game, namely:
Most programs can be disabled by simply clicking on the "Exit" button in the context menu of the tray shortcut.
This means that if a program has an icon on the bottom bar of the desktop, it must be right-clicked.
A menu will appear in which you need to click "Exit".
This method, in particular, is suitable for antiviruses.
Many other software samples can be closed in the same way. If this option is not suitable, you will have to use the task manager.
This process as follows:
- In the same tray, right-click on an empty space and select from the context menu "Start Task Manager". You can also press "Ctrl", "Alt" and "Delete" on the keyboard.
- In the dispatcher window, go to the "Processes" tab.
- There, by name, you can easily recognize all the programs. On the one you want to close, just right-click once to highlight.
- Click on the button "End Process". In the window that appears, click the button with the same name again.
- Do the same with all software. which needs internet to work.
Changing program priority
In addition to the fact that various programs can be forced to close to unload the operating system, other programs can be put in the first place in the OS priority.
That is, you can make the system pay the most attention to a single process.
Due to this, the most OS resources will be spent on it and, accordingly, .
The priority change is as follows:
1 Launch an online game. Open Task Manager. How to do this is described in the first step of the previous section.
2 On the tab "Applications" right-click on the game and select from the menu that appears "Go to Process". Of course, you can try to find the right process yourself, but it's much easier.
4 Options will appear on the right, which priority to assign to this application. Click "High". In the window that appears, click "Change Priority".
5 Close the dispatcher. Wait a while. The priority will not change immediately. But in any case, the ping should go down, as well as the performance. And maybe the graphics will be better.
If all this does not help, you will have to return to the network. But now we will perform much more complex operations than simple and the like.
Network Channel Extension
This process takes place by doing the following:
- Press the "Win" and "R" buttons on your keyboard at the same time. This will open the program execution window.
- In it, enter the command "gpedit.msc" and click "OK".
Clue: If it was not possible to open the local group policy editor in this way (an error appears), go to the C:\Windows\SysWOW64 folder and manually run the file with the same name.
- Next, on the left panel, sequentially go to the sections “Computer Configuration” (if in Russian, then “Computer Configuration”), “Administration Templates” (“Administrative Templates”), “Network” (“Network”) and “QoS Packet Scheduler” ("QoS Packet Scheduler").
- A shortcut will appear on the right "Limit reservable bandwidth"(in Russian "Limit reserved bandwidth").
- A small window will open. In it, check the box next to the item "Enabled" ("Enabled").
- In the block below, the inscription "Bandwidth limit (%):" and a field for specifying percentages will become available. The initial setting is 20%. Instead, the value should be set to 0%, as shown in Figure 10.
- Click Apply, then OK.
- Restart your computer for the changes to take effect.
Thus, you can significantly increase the bandwidth of your computer.
Changing TCP/IP settings
In many games, for example, in World of tanks, changing some TCP / IP parameters helps. Without going into details, let's say that it is done like this:
1 In the window "Run"(started by simultaneously pressing Win and "R") enter the command "regedit" and press "OK".
2 Then sequentially go to the sections "HKEY_LOCAL_MACHINE", "SYSTEM", "CurrentControlSet", Services, tcpip, "Parameters"(on the panel on the left). Open section "Interfaces"(double click on this folder).
4 Options for creating a file will appear. Choose there "DWORD (32-bit) Value".
5 The new option will appear in the list. It will be possible to change his name. If it is not, right-click on it and select the option "Rename". In any case, you must enter a name "TcpAckFrequency".
6 After successful renaming, right-click on this file and select "Change" in the menu that appears.
7 In the field under the inscription "Meaning" enter "one". Be sure to check that under the inscription "calculus system" stood option "Hexadecimal".
8 Press "OK". Close all open windows and restart your computer.
You can also use this editor to change the MSMQ.
Changing MSMQ Settings
MSMQ or Microsoft Message Queuing is an implementation of a message queue, which, in particular, is for working with the Internet. This setting can also be changed to reduce ping.
To do this, do this:
- Launch Registry Editor("regedit" in the program window).
- Sequentially go to the sections"HKEY_LOCAL_MACHINE", "SOFTWARE", "Microsoft", "MSMQ" and expand the "Parameters" folder (on the left).
- On the empty field on the right, in the same way as before, create "DWORD (32-bit) Value".
- name it "TCPNoDelay" and open.
- Change the value to one. Make sure the number system is hexadecimal. Click OK, close all windows and restart your computer.
This method works great in Warface.
FixPinger
There is a program called FixPinger. It changes the ping value to the most optimal one. To use it, you need to do the following: You can deactivate the program with the same button.
As mentioned above, if all this does not help, you need to call the provider and ask his representative for help.
Hi all! If you are a regular reader of this blog, then remember that most recently we have been on the topic of creating and configuring a local network. But here it is quite undeservedly kept silent about very important points.
For example, they did not reveal the topic of what the PING command is on the Windows 10 command line. So, what kind of animal is this and what is it eaten with? In fact, this utility is simply an indispensable tool for diagnosing network problems.
So, the essence of PING is to poll the specified node on the network. For example, we need to understand whether a certain computer is responding to requests. To do this, you just need to know its IP address.
In our case, it will be as follows: 192.168.1.150. Well, let's "ping" him. Right-click on "Start" and select "Command Prompt (Admin)" from the menu that opens:
After that, the system will ask you to confirm the seriousness of intentions again. Select "Yes", then in the command line enter the command itself:
Remember that in our case it will look like this:
Naturally, instead of the above IP address, in each case, you need to substitute your own. And now we look, if the node answered and the packet loss is zero, then everything is fine, the network is working.
And this is how the situation will look like when the desired computer for some reason will not respond to requests:
As you can see, the request timeout has been exceeded and the specified node is unavailable. So, this is a disaster, something is wrong with our network, we need to do it again.
It is also important to understand that this method can be used to diagnose not only a PC, but also any device with a network card. These can be Smart TVs or satellite tuners.
And instead of the numeric value of the IP address, you can enter an alphabetic one. Look, now we will test the availability on the Internet of this blog:
Fu, thank God everything is fine! For those who are especially sophisticated, it should be said that the PING command has many additional parameters. Here they are:
Let's see how this might look in practice. In fact, everything is very simple. For a live example, let's reduce the number of requests sent from 4 to 2. Here we need the "-n" operator from the list above:
In general, now you can see for yourself, dear readers, that the PING command on the Windows 10 command line is not difficult at all. Therefore, use it to your health and remember the author of the blog in good words.
Let's wrap up on this. If you have any questions or incomprehensible moments, knock on the comments to the article. By the way, another cool utility will be considered in, do not miss it. In the meantime, let's watch an interesting video about your age.