someone explain me about ping.
Ping is the amount of time it takes for one packet of data to go from your network card, through multiple switches and devices all the way to the remote computer, and then come back to your network card.
This means that anything you do in a game for example will take about half that time to reach the game server, then the game server will probably spend a few milliseconds composing an answer for your game and then that answer will be sent to your computer.
It's important to keep in mind that ping is often considered a lower priority protocol than other protocols (tcp/ip, udp etc) , think of it like ping commands using the French language and the actual game communication using the English language. The ping commands may not even actually reach the actual computer that has the game server, the ping commands may enter the datacenter and get routed to a separate set of computers or network devices which would filter these ping commands to protect the network against floods and attacks (imagine 1000 random users sending ping commands to the same compuer), and these ping commands may or may not be "grouped together" and slowed down a bit and replied to in batches, to reduce the possibility of attacks. So the ping reply time may be higher than the actual amount of time proper communication between your game and the game server takes.
Multiplayer games support various latencies because they're smart enough to keep track of your character's behavior and movement in the game, and based on the previous behavior they can predict what you did it those 50-100ms between when the data packet was sent by your computer and the moment the data packet arrived at the game server, and the game server can make calculations and estimate where your character will be another 50-100ms from the moment the data packet is processed, so the answer sent to your game will be adjusted with this prediction of where characters will be in mind.
For example, if you're running in a corridor the game may have the previous 10 reports of moving from left to right in a straight line, so the game server could predict you're gonna continue to run for another 20-50 milliseconds in the same straight line.
Have a look at the video below if you want to learn more about how a game deals with the latency and all these network issues :

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now