PDA

View Full Version : lan server latency, maybe settings or system


kedobin
01-25-2010, 06:35 PM
Besides some things found in this thread (http://www.eqemulator.net/forums/showthread.php?t=23350), what are some other common things to look into for lan latency issues?

In the past, sometime between 6.0 and 7.0, I setup an offline emu server using minilogin, and had 2 accounts on 2 separate computers. They could log in, but the connection was unstable, especially when both characters were in the same zone, in that I would get progressively worse latency on either one or even both accounts, eventually going ld. I brushed this off, assuming there was an issue either with the emu or minilogin.

I tried this again recently, only this time using privatelogin instead of minilogin. I'm away from the computer with the server files on it, but my last test used source files from either late Dec '09 or early Jan '10, with the db and quests from the same time period. Playing via 1 client, it works very well, even surviving a mistmoore ldon using bots (and a couple #cheats :D)

As for a description of progressively worsening latency, I'll list what I observed in North Qeynos newbie yard in my most recent test. Both clients enter, using lvl 1 non-#gm characters and no bots, and each client has roughly 20-30ms latency. I grouped the characters, and tested email and chat commands like /say or /g - all worked fine. I also tested combat, with no problems with either melee or spells. After some time, which seems to be about 5 - 10 minutes, the zone launcher no longer displays the current zone in its titlebar, instead stating it's sleeping. I don't know, though, if the zone launcher thing is only relevant some of the time, or all of the time.

At this time, both clients show a connection loss, recovering at about 90-95% with the effect of either one or both clients getting a drastic increase in latency. If I'm lucky, it's only about 300ms, if I'm unlucky it goes beyond 2000ms. After each additional 3-10 minutes I get either another increase in latency on one/both clients, or I go ld on one/both clients. Obviously, higher latencies increase the chances of going ld.

While the latency is high, one client tends to lag behind the other. If I /say something, or even /sit on client A, it can take as little as 5 seconds, or as long as 5 minutes before client B sees this. While this is going on, though, things that happen on client B tend to appear right away on client A, though over time even this stops.

I don't specify which computer is the culprit, because one time the client-only went ld while the server/client stayed connected, and another time the client/server went ld while the client-only stayed connected. Yet another time, both clients went ld at the same time. In cases where one client stayed connected, the latency becomes a non-issue on that client, at least until the ld client reconnects.
It should also be noted that if either client changes zone, and doesn't go ld doing so (tends to be more frequent as latencies exceed 1000ms), then whichever client(s) zoned seem to always have the latency reset to regular levels (30-60ms, depending on zone), though the process begins again.

My setup is an offline netgear router connected only to 2 computers via 10/100 ethernet, supplying a static ip to each. 1 computer is client-only, the other is both client and server. The EQ client on both is SoF.
server/client computer specs:
WinXP SP3
Athlon XP 2500
2GB PC3200
128MB Radeon 9600 AGP 8

In case it's relevant,
client-only computer specs:
WinXP SP3
Sempron 3000
2GB PC2700
128MB Radeon XPress 200m (onboard, shared mem)

I lack any additional windows or linux computers that could be powerful enough to handle being a dedicated emu server.

Thanks for any help, and sorry about the wall of text...

pfyon
01-25-2010, 07:36 PM
I don't really have any suggestions for you, just that you don't need a very powerful computer to act as a dedicated eqemu server. Mine is an acer aspire one (intel atom processor, 512mb ram, first generation 8gb SSD) running ubuntu server 9.10 (I think) and it can definitely handle a single client + full group with no problems.

snorkle
03-12-2010, 08:57 PM
I've been noticing the same issue. I'm running the latest code revision (as of 3/12/2010) from svn on server with these specs:

Dedicated 3ghz Core 2 Duo
2g of ram
Linux 2.6.27-10 + grsec

At first I thought maybe it was zone specific but the really odd thing is that it seems to affect all zones of a specific launcher. I don't see how the launcher has any effect since it's just fork() & exec(). It's affecting my L1 launched zones:

mysql> select * from launcher;
+------+----------+
| name | dynamics |
+------+----------+
| L1 | 0 |
| L2 | 0 |
| zone | 10 |
+------+----------+

mysql> select * from launcher_zones;
+----------+-------------+------+
| launcher | zone | port |
+----------+-------------+------+
| L1 | airplane | 7050 |
| L1 | befallen | 7051 |
| L1 | beholder | 7052 |
| L1 | blackburrow | 7053 |
| L1 | butcher | 7054 |
| L1 | cauldron | 7055 |
| L1 | commons | 7056 |
| L1 | crushbone | 7057 |
| L1 | eastkarana | 7058 |
| L1 | ecommons | 7059 |
| L1 | everfrost | 7060 |
| L1 | fearplane | 7061 |
| L1 | freporte | 7062 |
| L1 | freportn | 7063 |
| L1 | freportw | 7064 |
| L1 | gfaydark | 7065 |
| L1 | gukbottom | 7066 |
| L1 | guktop | 7067 |
| L1 | hateplane | 7068 |
| L1 | highkeep | 7069 |
| L2 | highpass | 7070 |
| L2 | mistmoore | 7071 |
| L2 | najena | 7072 |
| L2 | northkarana | 7073 |
| L2 | nro | 7074 |
| L2 | oasis | 7075 |
| L2 | oot | 7076 |
| L2 | paw | 7077 |
| L2 | permafrost | 7078 |
| L2 | qcat | 7079 |
| L2 | qrg | 7080 |
| L2 | rathemtn | 7081 |
| L2 | runnyeye | 7082 |
| L2 | soldunga | 7083 |
| L2 | soldungb | 7084 |
| L2 | southkarana | 7085 |
| L2 | sro | 7086 |
| L2 | unrest | 7087 |
+----------+-------------+------+
38 rows in set (0.00 sec)


I'll experiment around with my launcher setup and keep this thread updated on what I find.