|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
The IP Address Paradox
Original thread:
"What is the strangest issue with a robot you have ever seen?" This thread: I read the following post (full text in the above thread), and it got me thinking. Quote:
That may sound like it's practically impossible, but I'm pretty sure that's not the case. For a quick refresher of the concepts involved, here's a closely related example from your everyday life: The Birthday Paradox.Anyhow, I was struck with inspiration... This is just the kind of question that can only be answered one way: MATH! ------------------- If there is a "1 in ~650,000 chance" that any given team will experience an IP address conflict with the FMS, then there's a ~(1 - (1 / 650,000)) = ~99.99985% chance that any given team will *not* experience such a conflict at any given event. Note: I'm electing to work backwards from this number, as opposed to using the probability of a conflict (1/650,000) directly; otherwise, we'd pretty much end up solving for the Nth root of the number of molecules in an unladen swallow.. Since the FRC rule for assigning team IP addresses means that we don't have to worry about conflicts *between* teams, the odds of a conflict happening at an event with 66 teams are best expressed as (1 - (~0.9999985 ^ 66)) = ~0.01015%. Also note that my actual math uses way more sig-figs than I've shown in this post. Since all of this math is only based on rough numbers in the first place, however, this works out just fine.. That may sound pretty unlikely, but what happens if we expand all of the way out to the scope of an entire FRC season? We'll need to know the number of times an FMS received a new IP address, and the number of teams that connected to each of these IPs. Counting events with multiple competition fields like MSC and CMP, teams competed on a freshly configured FMS no less than 137 times this past season; depending on whether or not each FMS got a new IP on Saturday morning, there may have been as many as 272 unique IP addresses used by competition FMS setups this season (note that the Einstein fields only operated for one day each). Of course, this ignores any possible field resets mid-day due to technical difficulties! As for the number of teams that connected to each FMS, I can't seem to find a solid number for the average number of teams per FMS. Since I didn't feel like making a Dropbox account just to pull up Jaci's Data Dump, I just spent a few minutes clicking around the event results listing at random; this (completely unscientific) survey pointed to an average around 50. . Taking all these numbers together, we get a lower estimate somewhere around (1 - ((0.9999985 ^ 50) ^ 137)) = 1.05% and an upper estimate around (1 - ((0.9999985 ^ 50) ^ 272)) = 2.07%. ----------------- TL; DR: There was at least a 1% chance of a robot-to-FMS IP conflict happening to somebody during the 2016 competition season; still not exactly likely, but well within the realm of possibility. Now, how many shared birthdays do we have among this year's robots? ![]() Last edited by Ryan_Todd : 11-07-2016 at 17:41. Reason: formatting |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|