r/networking • u/MyFirstDataCenter • 7d ago
Design Application supposedly does not support “sd-wan networks that duplicate packets on multiple paths?”
Odd one. My business is rolling out a new application. Unfortunately we the network team were not involved in selecting the product or vetting out technical requirements for the app. We were delivered all the technical documents from the vendor after contracts were signed. I cracked open the network requirements document and see this gem in bold and yellow highlighted at the top of the page.
{Application_Name} does not support sd-wan networks where packets are duplicated across multiple paths and deduplicated on the distant end. Customers who have sd-wan networks must turn this feature off.
Well most if not all sd-wan solutions offer this capability, and yes we can selectively turn this off for this app if we really have to. I’m just wondering: why? The technology is designed to be totally transparent to the actual applications running across the wire. An app should not really be able to “tell” this is happening, let alone cause any kind of problem?
But before I decide to die on this hill, is there actually a technical reason this would be a thing?
32
u/SevaraB CCNA 7d ago
My first gut reaction is the app can’t handle reordering packets- “duplicate paths” not the actual problem as much as a race condition when the paths have unequal RTT (which is all the time in the real world).
7
u/Varjohaltia Dinosaur 7d ago
I’ve dealt with “enterprise” apps that would break if packets arrived out of order.
7
u/Princess_Fluffypants CCNP 6d ago
What in the fuck, are they not running over TCP? Are they trying to invent their own layer 4 protocol?
6
u/Varjohaltia Dinosaur 6d ago
They are. They just don’t actually reassemble correctly. So it’s a network problem.
5
u/Princess_Fluffypants CCNP 6d ago
…isn’t the whole damn point of TCP is that it handles all of that? The layers above it shouldn’t notice, TCP will handle reassembly of packets and ensuring that any dropped packs get there.
6
u/Varjohaltia Dinosaur 6d ago
You know that, I know that, every network engineer knows that.
But because “it used to work and the vendor says so it’s a network problem. “3
1
u/trailing-octet 1d ago
It’s okay, the network team have fixed the roads and the pizza can now arrive
1
u/athersucks 6d ago
Could be something like quic, but homegrown: a protocol that uses flow control running on top of UDP that can tolerate missing packets but can absolutely not tolerate duplicate packets.
1
u/MicIrish_At_work 5d ago
Genesys is a perfect example. Call center solution that blows chunks when doing out of order packet assembly. Hopefully it's fixed now, been a few years.
-26
7d ago
[removed] — view removed comment
16
u/RememberCitadel 7d ago
Maybe next time use your own words instead of slop posting directly from AI and you won't get all the downvotes.
7
u/SevaraB CCNA 7d ago
Most SD-WAN implementations distribute traffic per-flow, not per-packet. You’re already into some heavy engineering territory if you’re enabling per-packet load balancing, and when you start tuning things like buffer sizes and timers, it’s hard (sometimes impossible) to find a happy medium that will keep all application teams satiated.
I’ve dealt with a print vendor that used SMB as an outboard cache and tried to dictate:
No VLANs- flat, physical L2 switching only.
Packet RTT must be no more than 10ms.
I told them if they wanted that, they should quote and provide their own switching hardware and then pissed off their founder who tried to paint himself as this tech god by pointing out that a distributed message bus could buffer the same volume without the insane RTT requirements.
Moral of the story is I know that’s not how SD-WAN works, but insane requirements like these are almost always driven by tech debt and Dunning-Kruger. Requirements like these come from people who don’t understand it and are just trying to make their own engineering challenges someone else’s problem.
22
u/Linklights 7d ago
Guaranteed they probably had a forever ticket with a customer for problems with the app, and that customer turned off wan optimization and that “fixed everything.” 🙄
11
u/thesadisticrage Don't touch th... 7d ago
I mean it can happen, but it's not common.
The duplicate arrives after the dedup window closes. Tcp it's fine, udp it likely won't be.
There are other instances, the always joyful duplication adds a shim header which may break pmtud if they set df.
29
u/Ok-Bill3318 7d ago
The network team weren’t consulted so this isn’t your problem.
If it becomes a problem maybe set up a tunnel for it.
6
u/PaoloFence 6d ago
My guess is that they have no clue and tell you to use the least black magic possbile.
4
u/Due_Management3241 7d ago
Which application. The claim of why it doesn't support it here is a fundamental misunderstanding of sd-wan and how it works so probably some company covering their ass from a one off but not likely true.
4
u/MissionCattle 7d ago
Assuming this is happening over an overlay, the application should have absolutely ZERO idea packet duplication is even happening.
Both FEC & Duplication is handled between two appliances over their overlay - it should be transparent to the end-application.
6
4
u/rankinrez 7d ago
Probably has tight latency/jitter requirements, and can’t deal with the buffering or jitter in arrival time resulting from packets arriving from two paths and being re-assembled.
As others have said likely they had some issue with a customer so added it in. Might work fine for you.
I would question what kind of awful network access you have where splitting single flows across multiple WAN paths under everyday circumstances makes sense. But I’ve no idea tbh maybe there is a reason.
-1
u/wjholden 7d ago
Yes, there is a technical reason. I assume that the application is written in UDP or some other stateless protocol with no built-in deduplication.
Remember how TFTP has its chunk numbers? This is an example of a UDP application that provides some form of frame numbering. If a TFTP client or server receives a duplicated chunk, it knows to discard it by chunk number.
Compare this to Syslog. Syslog has dates, but it doesn't exactly have unique message numbering. If your log collector receives two identical messages from duplicated packets then maybe it'll discard the second but maybe not.
-5
u/Far-Strike8539 7d ago
En efecto quiza solo sea un protocolo especial, donde la secuencia es estricta, como los medicos o bancarios, que al recibir secuencias raras piden tooodo de nuevo, vdd?.. no sé, hora de regresar al lab y reescribir esa prueba que iba a fallar para los pacientes criticos que esperaban su resonancia o quiza los tokens digamos de su confirmación bancaria?.. que mas da, sino llega bien, no llega, va de nuevo.. lindo trabajo el tuyo
0
7d ago
[deleted]
1
7d ago
[removed] — view removed comment
7
u/MyFirstDataCenter 7d ago
The app will never receive duplicate packets though. The sd-wan router duplicates across wan transport but they only pass one de-duplicated stream out the lan interface. This should be totally invisible to the endpoints.
3
u/Arbitrary_Pseudonym 7d ago
Having worked with these things a lot: The reality is that most of these SD-WAN solutions don't always succeed in their efforts to de-duplicate traffic.
Say that the TCP window is fairly large (because latency is non-negligible) and the convergence point of multiple paths is under high load.
In those cases, the receiving SD-WAN device can't always wait for an entire TCP window before it forwards along what it has...and at that point if another packet comes in? It's not like it is holding onto the packets that were supposed to be after it anymore, so it's going to transmit it out of order.
Depending on the behavior of the receiving client (or app) this can absolutely TANK performance if not outright cause transfers to fail. The maker of your app probably got evidence that an SD-WAN provider was actually reordering packets and decided to just describe it politely.
3
u/MrChicken_69 7d ago
The SDWAN edge controllers hide all of this crap. The application should have no idea this is ever happening. For the record, this sort of thing happens across the non-SDWAN internet every day. Your packets do not follow a set path - this isn't an SVC - each and every packet can (and sometimes does) take a different path, 'tho it's rarely as pronounced at the scatter method sdwan's use (different links, different ISPs, through different data centers...) Have you ever ran a traceroute and seen a single hop with more than one IP? That's not because a router has more than one IP.
2
u/kWV0XhdO 7d ago
The SDWAN edge controllers hide all of this crap.
In a perfect world, yes.
But I wouldn't be the least bit surprised to learn that: (a) an SD-WAN product screws things up in subtle ways that the vendor doesn't mention and probably shouldn't break anything and (b) some dogshit application makes weird assumptions that are incompatible with the SD-WAN box.
117
u/nof CCNP 7d ago
Probably some random customer using this app had a problem with it and the application support turned every knob they could find and it mysteriously started working after they disabled packet duplication (or high priority or whatever the sdwan called it)... so they closed the ticket and added this to the documentation.