3 ms·
Second Life does something very similar. Reliable and unreliable messages, binary format, multiple messages in a single datagram. Unreliable messsages are for
by Animats 9y ago
Second Life does something very similar. Reliable and unreliable messages, binary format, multiple messages in a single datagram.
Unreliable messsages are for ones that are superseded by later messages. There's no point in retransmitting; you always want the latest object positions.
The big problem is message priority. Games need a low-latency, low-traffic channel for updates and a high-latency, high-traffic channel for assets. It's tough making this work on the open Internet. End to end QoS just isn't widely available. So using much less than the full available bandwidth is needed to keep intermediate FIFO buffers from filling up. This is related to the "bufferbloat" problem - network devices now all have lots of RAM, and if they have FIFO queuing and less output bandwidth than input bandwidth, they will build up huge queues that generate huge latency.
For QoS to work in the wild, there has to be some throttling or incentive to discourage too much high priority traffic. You'd like to have under 5% of your traffic at high priority. It's hard to make this work in the public Internet.
- a_t48 9y agoNearly all real time games do something similar (though in the past I’ve skipped stuff like message packing). I’m definitely interested in digging through this to see what they’ve done differently. Is there anything unique about SL’s reliable UDP implementation? I don’t believe the same system was carried over for Sansar.
- Animats 9y agoSL uses the same transport protocol between servers and between server and client. SL's virtual world is divided into regions 256 meters on a side. Each region is managed by a separate process. Movement of avatars and vehicles across region boundaries does not work very well, because there are delays and race conditions. It's supposed to be a consistent-eventually system; the world doesn't stop just because of inter-region movement. So there's temporary inconsistency, resolved correctly most of the time. It's rather ad-hoc; this is 1990s technology. Also, the client is over-involved in region crossing. The client isn't trusted, but it's involved in the handoff of avatar control from one region to another. This was probably a design mistake - the communications rerouting and virtual object movement should have been separate. Almost everybody else evaded that problem. Sansar has bigger regions (up to 4km on a side, but usually much smaller) and no region crossing at all. It's a simpler client/server architecture. None of the major successors to SL (High Fidelity, Sansar, SineSpace) offer a full connected virtual world. They're more about "experiences" - go in, visit pre-built world, leave. This simplifies their scaling problem. Second Life is an alternate universe to the World Wide Web. There's much the same functionality - chat, voice, graphics, text - but the approach is completely different. The web is mostly stateless. SL is all about state. Everything is persistent, including the state of executing scripts. So most of the tricks used to scale web applications don't work.
- a_t48 9y agoThere were certainly decisions made with Sansar to avoid messiness that happened in SL. (You might say the entire existence of Sansar....) Improbable supposedly offers large large multiserver regions but I don’t know if there is any user generated content platform built on top of it.
- woah 9y agoI believe this type of QoS would easily violate “net neutrality”, which is why it hasn’t happened yet.
- matthewmacleod 9y agoThat is a misconception. It’s totally legitimate to provide QoS based on open protocols, or even for particular classes of traffic. Net neutrality comes into play where providers start prioritising traffic based on the remote service provider.
- SolarNet 9y agoNet neutrality governs providers making decisions based on who you are talking to and what you are talking about. It does not govern providers making decisions based on how you are talking (so long as how doesn't mean who or what). As a separate issue, some providers are regulated (see Comcast) due to other laws. These Title II providers have additional rules that prevent them from making decisions on how. However, if they made such decisions on quality of service (rather than for profit gain, as they have in the past), it would be legal. The problem is that as a monopoly they have no reason to do that.
- mintplant 9y agoThe Second Life client is also free/open source software (LGPLv2) [0]. There are multiple competing forks with significant user bases, the most popular of which is Firestorm [1]. The server software is closed source, but the OpenSimulator project [2] exists as a third-party reimplementation. [0] http://wiki.secondlife.com/wiki/Linden_Lab_Official:Second_Life_Viewer_Licensing_Program http://wiki.secondlife.com/wiki/Linden_Lab_Official:Second_L... [1] http://www.firestormviewer.org/ http://www.firestormviewer.org/ [2] http://opensimulator.org/wiki/Main_Page http://opensimulator.org/wiki/Main_Page
- Const-me 9y ago> It's tough making this work on the open Internet. µTP works OK. The trick is to precisely measure latency (these UDP packets have timestamps in them with 1µs resolution), send enough data to achieve good bandwidth, but just enough to not fill these FIFO queues in both endpoints, and in various routers between them. https://en.wikipedia.org/wiki/Micro_Transport_Protocol https://en.wikipedia.org/wiki/Micro_Transport_Protocol