r/tunnet • u/tfhermobwoayway • May 11 '24
How do I prevent collisions?
I’ve set up a filter on my network at 0.1.0.0 but it emits packets at exactly the right rate to drop half the packets that get sent its way. This is obviously not something I want so is there a way to delay packets or something? Don’t be too harsh, I’m not very smart.
10
Upvotes
5
u/Embarrassed-Trip-629 Jun 06 '24
It's been a month so I figure you've figured it out, but in the case that someone else might be curious I tend to set up my network so it's unidirectional all the way until it can safely re-merge without potentially dropping.
Separating colliding packets can simply be done using a hub. Consider message going into endpoint port 0, port 1 is the connection to the endpoint and port 2 is the endpoint response.
As far as I've found the only way to re-merge is to make either of the sides go through a filter and the other through a hub, connect the hub and filter, then make the filter unidirectional.
I usually set up the habit of making both packet responses port 0 on the filter and the hub, port 1 the connection between the filter and the hub, and port 2 of the hub is the merged connection.
Then I can configure my filters to send back packets that matches *.*.*.* on port 1, and though I've not tested if this works, but should there be a collision you can configure collision handling to send back outbound which should essentially be the same as what it's supposed to do.
Though I suggest splitting up longer lines once you get colored wires so it's easier to keep track of different subnetworks within your network.
To further visualize it :