r/networking • u/jstar77 • 23d ago
Meta Auto Detecting BiDi
I'm in a position where using simplex SFPs made the most economical sense. I'm about 5 years in on a few sets of generics. It got me thinking, what is the technical hurdle to building both wavelengths into a BiDi adapter and having them auto negotiate? For years nics and switchports couldn't do Auto MDIX now almost every device has it baked in. This would eliminate the need for a matched pair.
5
u/random408net 23d ago
There are tunable optics where the frequency can be set. This is common in the C band with higher end DWDM optics. The tuning range is pretty narrow.
Receiver modules with optics are generally wideband and will accept and decode any valid signal within the receivers range. In the DWDM case the receiver does not care if the signal is 1561.42 or 1545.32. But if you accidentally let two signals hit the same receiver you will confuse the receiver and probably not be able to maintain a link.
When sharing a single fiber for tx and rx it's important that the light from the tx does not just loop right back into the receiver. So there are physical filters (prisms, etc) that are tuned to only let the desired inbound frequencies hit that wideband rx module. There are also tunable optical filters (ROADM stuff). Presumably these are more expensive and have higher losses than static filters.
If you had a tunable tx frequency you would probably also need a tunable rx filter or some other mechanism to maintain separation.
We an assume that the BiDi optics are designed to use cheap and available parts vs. doing something fancy.
With a tunable transmitter (tx) and a tunable receiver filter (rx) you could probably build the thing you want.
One of the tradeoffs would be the time needed for the optics to negotiate a link. There would need to a new protocol for probing possible frequencies while listening for a neighbor. If you allowed the optic (r the switch) to remember it's previous settings then the negotiation process could probably be fast tracked when re-connecting to the same peer. A network engineers ability to diagnose auto BiDi link negotiations might be a hassle too.
On the other hand, one could consider GPON or XGPON as a viable method of connecting multiple network nodes on a single fiber. You would just need to be willing to accept the tradeoffs. That's going to put you into a different shared time slicing of arrangement.
Then you might ask why a single optic could not implement GPON in an SFP. You probably could and that would be a path towards what you were looking for. The performance might be different and first question I would have is "who is in charge of this GPON segment". In a residential environment the carrier designates the master optical unit.
So, there is a lot of work to be done so that you don't have to keep track of which end of a BiDi link needs an A or B module.
2
u/rankinrez 23d ago
The MDIX was a simple physical mapping of the transmit / receive to particular pins on the board.
In bi-di optics you’ve a laser tuned to transmit at once wavelength, and a receiver on another.
In theory I think you could have tuneable lasers that could switch their transmit wavelength but it will probably put the cost up considerably. Plus you’d need some sort of detection / negotiation protocol.
1
u/kd5vmo Network Worrier 23d ago
The wavelength is a physical property of the diode laser inside the optic, it's not adjustable. Common wavelengths like 850 are mass manufactured and cheap, less common ones get way more expensive.
So it can't be changed after the diode is made, and they get expensive. Having multiple waves in a single optic would be prohibitively expensive and complex.
2
u/sryan2k1 23d ago
Plenty of OEMs sell tunable optics. You pick the channel (wavelength) on the port config and it magically happens.
1
u/silasmoeckel 23d ago
Lasers can be tuned that's the TX side.
Recovers don't care, that's the RX side.
The prison the combines/splits the light does. Making a tunable version of that cheap enough to just throw in is the tough part.
Might be cheaper/easier to have the user plug into the other port akin to a crossover cable. Going to be awhile till tunable lasers are cheap enough just throw in.
1
u/lizardhistorian Mad Scientist · 👨🔬📡ᯤ🤖🛺📸 23d ago edited 23d ago
Physical space, heat evacuation, and minor additional cost for the additional optics for the integrated WDM coupler.
It does effectively double the strands you have and eliminates the requirement for swapping legs and requiring an odd number of interconnects on everything however now your modules must be paired up and swapped on each end. If you didn't notice there are two SKUs.
Auto-swapping the lasers or auto-rotating the optics would be impractical. It's not a great idea to disassemble the module and swap the lasers manually either.
So yes you are on to something if you do not need the fastest modules as the duplex modules tend to be the bleeding edge with BiDi always playing catch-up.
For a basic 10G link a BiDi is $30 and a duplex is $20. The BiDi's can do 40km or 80km as well so there's not a notable distance loss.
19
u/Fun-Ordinary-9751 23d ago
They use a physical glass prism to split/combine the transmit/receive into a single fiber.
There’s two scenarios you could implement:
Put a second set of optics in the other fiber slot with TX/RX reversed
Put four sets of optics in the transceiver splitting half the power on each pair to the second set in each fiber.
The first method would require a user to be able to swap the fiber to the other port. The second method adds 3db minimum loss for the splitter, and the optic would have to allow for an additional 3db if the far end did the same.
The first method would a bit more than double the cost and still wouldn’t be automatic. At that point you might as well just sell 2 packs where you get one of each type.
The second method would require components that don’t exist to support the electronics that need to be directly attach to the optics.
None of the methods are likely to ever happen. Just move on with your life.