save bandwidth with multicast?

Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.

Moderator: OpenTTD Developers

Post Reply
User avatar
CharlyHRO
Traffic Manager
Traffic Manager
Posts: 186
Joined: 13 Mar 2006 11:03
Location: ::1

save bandwidth with multicast?

Post by CharlyHRO »

What about changing transmissions from unicast (one stream of data per client) to multicast (only one stream of data not depending on number of clients). So I think just need 1/9 or 1/8 of bandwidth and hosting a server is even possible if you only have a modem line. Or is the amount of work way to much to try it?
moe moe pipebomb
pshemko
Engineer
Engineer
Posts: 104
Joined: 24 Sep 2004 02:43
Location: Aotearoa (New Zealand)

Post by pshemko »

The problem is that all routers on the way between the server and the client have to support multicast and that's not always the case. The other problem is casued by the way multcast works - one way, so it's unreliable, as the server wouldn't be able to tell if the data it send got anywhere (and where to). And if you want to keep another communication channel just for the confirmations (and this has to be unicast) it's simply not worth the work required to make it work.
TrueBrain
OpenTTD Developer
OpenTTD Developer
Posts: 1370
Joined: 31 May 2004 09:21

Post by TrueBrain »

An other problem is, we use TCP here. Multicast is more for UDP games. We need TCP because we need to be sure client and server are in sync at all times (long story, don't ask).

Above that, the bandwidth usage is very low (just 2 kbyte/sec per client). Most other games use around 10 times as much. So I think we have nothing to complain :)
User avatar
CharlyHRO
Traffic Manager
Traffic Manager
Posts: 186
Joined: 13 Mar 2006 11:03
Location: ::1

Post by CharlyHRO »

Well, I don't need to ask why server and client have to be in sync. I know this fact. And I just asked for multicast because me is sometimes bound to a POTS*-line with about 42kBit/sec down and at max 33.6kBit/sec up. But when multicast isn't possible then I just have to miss that multiplayer advantage on my own server when I'm not at home...

I think the thread can be closed now...

*POTS = plain old telephone service
moe moe pipebomb
TrueBrain
OpenTTD Developer
OpenTTD Developer
Posts: 1370
Joined: 31 May 2004 09:21

Post by TrueBrain »

You maybe can't host a server, hosting a server on a dail-up is a bad idea anyway ;), but you can always join a server. It should be easy possible, even for 28k8 users.. anyway, that was the intention while designing the protocol :)
Syranide
Engineer
Engineer
Posts: 38
Joined: 18 Mar 2006 15:31

Post by Syranide »

CharlyHRO wrote:Well, I don't need to ask why server and client have to be in sync. I know this fact. And I just asked for multicast because me is sometimes bound to a POTS*-line with about 42kBit/sec down and at max 33.6kBit/sec up. But when multicast isn't possible then I just have to miss that multiplayer advantage on my own server when I'm not at home...

I think the thread can be closed now...

*POTS = plain old telephone service
Aren't you always connected at home?
If so you could just join your own server and remote the console and it should work just as good, if it is always connected that is.
User avatar
CharlyHRO
Traffic Manager
Traffic Manager
Posts: 186
Joined: 13 Mar 2006 11:03
Location: ::1

Post by CharlyHRO »

Hm, ok. I didn't think that way ;) But this would to open a server every time I leave home and go somewhere else. And maybe there are a lot of days at wich I don't have time or mood to play multiplayer. Or even noone calls me and asks "wanna play?".
moe moe pipebomb
Syranide
Engineer
Engineer
Posts: 38
Joined: 18 Mar 2006 15:31

Post by Syranide »

Hehe well of course, if you have a computer always running then you could probably have it dedicated all the time or use some script to start it up (and just have it locked when not playing).

But, of course, if you aren't connected with a computer around the clock then the it is another situation.
gigajum
Route Supervisor
Route Supervisor
Posts: 511
Joined: 08 Mar 2006 08:33
Location: Germany

Post by gigajum »

Well you could use VNC (i prefer UltraVNC) to manage a windows box if your not in front of it. But VNC is bandwith hungry even with "slow connection" settings :(

If you use linux you should know how to handle this (i only say SSH). So you can start or stop the OpenTTD server if you aren't at home. Turning on your Computer if your not at home is a problem :D but there are still solutions for this problem. The easiest may be call someone who is at home and tell to turn on your PC :)
User avatar
CharlyHRO
Traffic Manager
Traffic Manager
Posts: 186
Joined: 13 Mar 2006 11:03
Location: ::1

Post by CharlyHRO »

I'm already using Remote Administrator http://www.radmin.com but with the slow download of the POTS line you have to wait "forever" when you have fullscreen changes...
moe moe pipebomb
thorkia
Traffic Manager
Traffic Manager
Posts: 130
Joined: 25 Nov 2002 03:19
Location: Toronto, Ontario, Canada

Post by thorkia »

Well, you use your remote admin to start the game server, and then connect to it from the PC you are on at the time. Then when you are done, you can use remote admin to stop the game until the next time you are ready to play
User avatar
Thief^
Route Supervisor
Route Supervisor
Posts: 469
Joined: 10 Oct 2004 00:11

Post by Thief^ »

I assume there's some reason why people recommend vnc and so on instead of window's built-in* Remote Desktop functions? I mean vnc is fine for linux because it's fully integrated into the login and desktop system, but on windows it's not...

Did you know that XP Pro even has a telnet service? (No SSH though unfortunately)

*= XP Pro and above only to be the remote server, but any version of windows can connect as the client
Melt with the Shadows,
Embrace your destiny...
gigajum
Route Supervisor
Route Supervisor
Posts: 511
Joined: 08 Mar 2006 08:33
Location: Germany

Post by gigajum »

Thief^ wrote:I assume there's some reason why people recommend vnc and so on instead of window's built-in* Remote Desktop functions? I mean vnc is fine for linux because it's fully integrated into the login and desktop system, but on windows it's not...

Did you know that XP Pro even has a telnet service? (No SSH though unfortunately)

*= XP Pro and above only to be the remote server, but any version of windows can connect as the client
first of all it's offtopic ....

VNC can be integrated as service, so it starts befor a login screen too. On linux you can login on X11 sessions over network, as far as i know, but i never used linux that way, may be i should really get away from Windows and discover it myself. For me, i prefer opensource to M$ crap, that's why i use VNC. You can put all crap into one application, but if one piece fails, the whole application fails (may be not all, but M$ do usually).

Telnet on Windows <- LOL?
Windows get's more and more GUI based, and not command line based so that you cannot use command line interface ever. And btw telnet looks not save to me.

At last: This sounds like Windows Terminal Server, which is also available on Win NT and Win 2K. Every Windows version is able to use a Terminal Server, and work on that machine, instead of the own. it's not really a remote admin tool.
User avatar
CharlyHRO
Traffic Manager
Traffic Manager
Posts: 186
Joined: 13 Mar 2006 11:03
Location: ::1

Post by CharlyHRO »

gigajum wrote:...

VNC can be integrated as service, so it starts befor a login screen too. ...
same for Remote Administrator, but only for the NT-based systems (not sure with NT 3.xx). <edit> And Remote Administrator uses a better compression algorithm for the image data, than the Windows Remotedesktop.</edit>
moe moe pipebomb
User avatar
Thief^
Route Supervisor
Route Supervisor
Posts: 469
Joined: 10 Oct 2004 00:11

Post by Thief^ »

gigajum wrote:VNC can be integrated as service, so it starts before a login screen too.
Yeah, but can you log in via VNC to a different account to the local login? Or even log in multiple times with VNC and not end up arguing over the mouse cursor. I'm refering to on windows of course, the linux version is fine.
gigajum wrote:At last: This sounds like Windows Terminal Server, which is also available on Win NT and Win 2K. Every Windows version is able to use a Terminal Server, and work on that machine, instead of the own. it's not really a remote admin tool.
The windows server version is called Terminal server, and allows multiple logins by the same user, and if you originally logged in locally and then log in remotely the remote connection gets a new session. i.e. it's a remote terminal tool.

The XP version is called remote desktop, and only allows one login by a user at a time, if you are logged in locally and log in remotely you interupt the local session and the currently running programs and display are redirected to the remote session. i.e. it's a remote login tool.

Either one can be used for remote administration. I use it all the time for retrieving files from my pc when I forget to take them to uni. EDIT: that wasn't an exmple of remote admin, try this: we've used it for installing new versions of mani on my cs server, and that is definitely remote administration.
Melt with the Shadows,
Embrace your destiny...
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 17 guests