ZeroTier networks #6471
-
Hello @AJenbo (or whoever can answer), I'm interested in the network "strategy" you have chosen for ZeroTier. Every player are on the same network or when you create a new lobby that would create a new network in ZT? Are there any performance impact having every player in one network instead of having a network for each lobby? What I could think of that ZT is selecting different relays if a network has different peers. If one network has all the peers (players), even those who don't play together, then ZT might select sub-optimal relays (if relays are needed). If relays are selected on a per-connection basis, then this is a non-issue. How have you implemented password protected games? If all players are on the same ZT network, then I guess you have added a separate layer of encryption over it. In one of the issues libsodium is mentioned, is this its purpose? If each lobby would be on a separate network then this additional encryption wouldn't be needed, would it? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
There normally aren't more then about a dozen players at any time so it's not a big concern. Yes, private games are encrypted using libsodium, this isn't related to the network protocol being used and was there before we added ZT support. I'm not sure what you are referring to as a "lobby", if each player is on their own network they won't be able to discover other games or join any other game, and what other information would you use to partition the players? Would they have to manually enter a shared secret network ID? That would break the idea of public discoverable games. Since ZT isn't the only supported protocol and it's not directly tied to encryption, changes to how ZT is managed won't make libsodium encryption redundant. P.s. I'm not the only person on this project and I didn't implement the network and I don't do the majority of the maintenance on it either probably better to state the question in general than directed at me. P.s.s. I see you are active on NBlood, cool 👍 |
Beta Was this translation helpful? Give feedback.
There is no master server, so that would be a good reason not to do it this way.
Have you ever used the libzt library? AFAIK, there's no way to spin up a new network on the fly. Maybe a master server could do it with a paid account and admin credentials? Sounds like a pretty complex implementation.