Connectivity index - We need more info than ping

For P2P architecture to work flawlessly the users will need more information on conenctions than just the pings.

Currently lags in Demigod are basically caused by:

  • An unusual high ping between any two players
  • Simspeed (computer speed)
  • Upload bandwidth
  • Download bandwidth


We need to know:

  • Longest information route time (ping) between any two hosts, if so which two.
  • Average sim speed statistics of all players
  • Upload bandwidth
  • Download bandwidth

While it may be a hassle to shown all that information, a connectivity index which combines all of the above would be preferable.
Calculation may be as follows:

MAX(ping to player 1, ping to p2, ping to p3, ping to p4, ...) - ((10 + simspeed) * 100)

*If simspeed is negative the score increases.
*If upload bandwidth is less than (number of clients * threshold) then add say 200 to the connectivity index
*Same for download bandwidth.

The higher the score, the worst the connection is.

The upload bandwidth or download bandwidth testing may be a problem. But it can be implemented by only testing for random 512kbyte packets throughout the P2P setup (Say I send 512kbyte to all other 5 players) and record the lowest speed of doing so, and maybe repeat 3 times and take the median.

If such information is known, and some testing will reveal what level of the connection index is acceptable. Color code the index number so people know what is good what is bad. Having such elaborate network test may increase lobby setup time, but I'd rather wait longer in lobby than having a laggy game that drags on half an hour.

13,306 views 23 replies
Reply #1 Top

Would you need to know the download bandwidth?

In my experience all connections have a lower upload than download...

The sim speed is a great idea, it should be in the lobby.

Reply #2 Top

I would agree. Maybe an icon in lobby that showed acceptability of connection and then hovering over it gives more info. The biggest reason for lag appears to be when a persons net connection cannot cope with the net traffic of DG - which a ping may not indicate.

At the same time I frequently play with players across the atlantic with very little lag and wouldn't want these players to be black listed by errant reporting of the above

Reply #3 Top

Sim speed is the crucial missing factor, because it makes the game lag just as much as people who are actually lagging due to connection problems.

Reply #4 Top

Quoting tazgecko, reply 1
Would you need to know the download bandwidth?

In my experience all connections have a lower upload than download...

The sim speed is a great idea, it should be in the lobby.
End of tazgecko's quote

 

It's a problem when people are heavily downloading or BitTorrenting

Reply #5 Top

When you're heavily downloading (actually it's when you're heavily uploading that affects things) from bittorrent it does affect your ping though - you will see it shoot up.

 

I know....from experience....

Reply #6 Top

Quoting InfiniteVengeance, reply 5
When you're heavily downloading (actually it's when you're heavily uploading that affects things) from bittorrent it does affect your ping though - you will see it shoot up.

 

I know....from experience....
End of InfiniteVengeance's quote

 

I am not just referring to BT, but regular http download as well, which won't affect as much.

The effect of BT on ping depend a lot on the agressiveness of your Bit Torrent client software, different software differs, as well as the capability of the router in your network.

I have QoS (Quality of service) setup so that my router prioritize all Internet traffic other than BT, so in my case I get good ping even though I am heavily downloading.

Reply #7 Top

I have QoS (Quality of service) setup so that my router prioritize all Internet traffic other than BT, so in my case I get good ping even though I am heavily downloading.
End of quote

But...net neutrality, man!  You packet discriminator!

Reply #8 Top

Sim speed is a good and doable idea.

 

The DL/UP of their connection isn't. Gonna force them all to run speed tests b 4 they connect? Eh don't think many people would enjoy that.

Reply #9 Top

 

Ah ...I usally turn off my torrents/downloads when i play.

In that case all bandwidth should be shown.

A good idea AnnihilatorX

 

Reply #10 Top

Quoting InfiniteVengeance, reply 7

I have QoS (Quality of service) setup so that my router prioritize all Internet traffic other than BT, so in my case I get good ping even though I am heavily downloading.
But...net neutrality, man!  You packet discriminator!
End of InfiniteVengeance's quote

 

LOL but my home network is not part of the public Internet yet ^_^

Everyone should do it. It helps so much on regular internet browsing speed if you share a house with someone else especially and someone is a heavy downloader. It doesn't change the speed of BT at all (web traffic doesn't really use much bandwidth, and BT does not mind ping issues)

Reply #11 Top

Quoting Makerz, reply 8
Sim speed is a good and doable idea.

 

The DL/UP of their connection isn't. Gonna force them all to run speed tests b 4 they connect? Eh don't think many people would enjoy that.
End of Makerz's quote

 

I'd think hardly anyone would notice. If done properly it'd be transparent to the user anyway. If small packet is used, it won't be that accurate but it certainly won't take a long time.

Reply #12 Top

Everyone should do it. It helps so much on regular internet browsing speed if you share a house with someone else especially and someone is a heavy downloader.
End of quote

Especially if you don't tell them you're doing it.

Reply #13 Top

Quoting InfiniteVengeance, reply 12

Everyone should do it. It helps so much on regular internet browsing speed if you share a house with someone else especially and someone is a heavy downloader.
Especially if you don't tell them you're doing it.
End of InfiniteVengeance's quote

I did tell them. The only reply I got was:

"QoS WTF is that, go away you geek"

Reply #15 Top

sounds like an idea the devs should consider!

Reply #16 Top

This definately should be looked at!!!

Reply #18 Top

So SD where are you please :/ Frogboy?

Reply #19 Top

Tis the weekend?

Reply #20 Top


Longest information route time (ping) between any two hosts, if so which two.
End of quote

This is my favorite.  An excellent idea.  At least give this.

Reply #21 Top

I say this is a great idea. But that connection index may not be a good indicator. What if someones sim speed (hypothetically) is -10 yet their ping is 10 and their bandwidth is REALLY high. This may be able to bump them down to a good connection index just into the good range when they will lag the game like crazy. I'd say put a connection index to the worst thing. Lets say -10 sim speed is a 0 on a scale of 0 to 1000 and 0 sim speed would be 500. Then for ping 250 could be 500 500 could be 0 and could be 1000. And take the lowest because an average won't do any good. Cause if you take taht amazing ping 0 which would be 1000 points add it to the 1000 for bandwidth then add it to -10 sim speed you get 2000 out of 3000 which would seem like a good connection for a game. 2/3 of the way from Unbearable lag to best possible connection while you really would make the lag pretty unbearable.

This may be kind of confusing please post to tell me what to clarify.

Reply #22 Top

Quoting XaviorsFist, reply 21
I say this is a great idea. But that connection index may not be a good indicator. What if someones sim speed (hypothetically) is -10 yet their ping is 10 and their bandwidth is REALLY high. This may be able to bump them down to a good connection index just into the good range when they will lag the game like crazy. I'd say put a connection index to the worst thing. Lets say -10 sim speed is a 0 on a scale of 0 to 1000 and 0 sim speed would be 500. Then for ping 250 could be 500 500 could be 0 and could be 1000. And take the lowest because an average won't do any good. Cause if you take taht amazing ping 0 which would be 1000 points add it to the 1000 for bandwidth then add it to -10 sim speed you get 2000 out of 3000 which would seem like a good connection for a game. 2/3 of the way from Unbearable lag to best possible connection while you really would make the lag pretty unbearable.

This may be kind of confusing please post to tell me what to clarify.
End of XaviorsFist's quote

 

Sure. My formula was just a rough idea of what an index can show. The sim speed require probably exponential penalties down at negative end. Bandwidth also require a threshold against minimum requirement versus number of players.

Reply #23 Top

Shameless bump.

Yeah i know that your formula was rough i was just pointing things out in case you didn't notice. But i still say that all it takes is one thing. If that is below a certain threshold have something that says something like medium lag or high lag depending on how far out of that threshold it is. And sim speed would need a record. Becuase it isn't very cpu intensive just to run a lobby. Maybe have it log a few games and have it compare the lowest points on a certain map. Say their sim speed is -5 on mandala yet 6 on crucible. That would need to be said.