• Advertisement

Archived

This topic is now archived and is closed to further replies.

So you want to make an MMORPG?

This topic is 5084 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Guest Anonymous Poster
Just wanted to add onto this topic because it hits near and dear. I''m not a programmer, nor a professional game developer. I was considering as a hobby working on my own MMORPG. I''m still debating; However, While I do believe making an MMORPG is a very daunting task - I would hardly call it impossible. Making a "good" mmorpg that can compete and be successful is another story altogether.

Now to actually contribute something useful to this thread:

Regarding UDP and NAT, technically speaking UDP can work with NAT with no issue whatsoever. NAT or network address translation is typically used to describe what we in the industry call "Static NAT", "One-to-One NAT" or simply NAT. If your IP address is 1.1.1.1 and you are "static NAT''d" to 200.200.200.200, you will have no issues using Unreliable Datagram Protocol.

However and this may be where Thona got confused, if the users edge router is using PAT (Port Address Translation) or "many-to-one address translation" or "hide NAT", your users may have issues connecting.

PAT = you are 1.1.1.1 your neighbor is 1.1.1.2 you both are PAT''d as 200.200.200.200 behind the router/firewall. The router/firewall/whatever rewrites the source port address so when it gets a response back it can differentiate traffic destined for different internal clients i.e. "oh, this source port is 10001. Source Port 10001 = 1.1.1.1 I will send this to 1.1.1.1.". This allows you to both show as IP address 200.200.200.200 yet still receive reply traffic.

Again, in PAT the router or firewall rewrites the source port strictly to distinguish traffic between the internal clients and an outside server/resource.

What defines whether a game will have problem with PAT''d users?

Very simple. If the client (user) must use a specific source port address, typically the edge router will use the one the client requested but if another client has already been assigned that source port the router/firewall will assign the new client a different source port. If your program requires a specific source port address you will have problems when multiple clients try to connect:

A. because one client has that source port already
B. because even if the server did you the same source port for both internal clients, how would it know which traffic was destined for which client?

Situations in which UDP fails is most prevalent (identifiable) in IPSEC communications with older VPN software in which the client must always use source port 500 . As soon as that port is used by someone else (or another session) no other user will be able to use it.

The solution is to use public IP''s on the inside network (which is not always feasible/affordable) or to assign static NAT to the machines which will be going to that server OR TO SIMPLY BUILD A GAME WHICH DOES NOT REQUIRE A PARTICULAR SOURCE PORT ADDRESS FROM THE CLIENT.

Summary: If youre programming a network game don''t be an idiot and define the client source port, just define the port the client needs to connect to (destination port) and NAT or PAT clients will work fine.

UDP is a fast protocol and works great where speed/lag is an issue... and UDP can be load balanced and reliable (at higher layers) as well. If I ever make a MMORPG I guarantee it will use UDP.

It''s late but I hope that made sense and helps clear up some confusion.

J. Ross
MCP +I , MCSE, CCNA, CCSA, CCSE, CCSI

Share this post


Link to post
Share on other sites
Advertisement
quote:
Original post by Anonymous Poster
It''s late but I hope that made sense and helps clear up some confusion.



Yes it was late - almost 2 years late in fact.

The general rule with thread necromancy is: if it''s really old (ie more than a month or so) it''s better to start a new thread but include a link to any previous discussion you want to reference than to dig up an ancient 4+ page thread full of posters half of whom don''t post here any more.

Share this post


Link to post
Share on other sites

This topic is 5084 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Guest
This topic is now closed to further replies.

  • Advertisement