Course contents

Unit 4: Advanced AARLesson 4.5 (5 of 7 in this unit)19 of 63 in the Advanced Cisco SD-WAN course

DPI/application recognition and visibility limits

Why an edge sometimes cannot name an application, what that does to application-aware policy, a worked case where meeting media stopped matching its list, and safer ways to match traffic.

Advanced · 15 min read

You'll learn to explain how an edge decides which application a flow belongs to, name what weakens that decision, predict what an application-aware policy does when recognition fails, and choose a safer way to match traffic.

Technical definition

Application recognition is the edge's decision about which named application a flow belongs to. It combines clues such as ports, addresses, names seen in the handshake and the shape of the traffic. An application list in a policy matches only what that decision names, so a flow the edge cannot name does not match the policy that was written for it.

A policy can only steer what the edge can name

Application-aware routing and data policy are written in terms of application names: voice, video, a file service, a business tool. The edge, however, sees packets. Between the packets and the name sits a classification step, and every policy that matches an application list depends on it. When that step is confident and correct, the policy does what it says. When it is slow, wrong or silent, the policy quietly does something else, and nothing in the tunnel tables looks broken.

Diagram
What the policy writes and what the edge sees
What the policy writes and what the edge sees

A policy is written with application names. The edge sees packets with addresses, ports and handshakes. A classification step turns the second into the first. If it cannot, the flow does not match the application list.

The policynames applicationsvoice, video,business tools
The edgesees packetsports, addresses,handshakes
The weak point is the step in the middle. Tunnels, BFD and SLA classes can all be healthy while it fails.

How an edge arrives at a name

On Cisco IOS XE SD-WAN devices the classification engine is deep packet inspection (NBAR2). It does not rely on one clue. It combines several, and some are much stronger than others. Some designs also add a central classification service that shares what it learns across sites, depending on release and platform.

Diagram
Clues used to name an application
Clues used to name an application

The edge uses ports and addresses, names seen in a handshake, the pattern of the traffic itself, and sometimes DNS answers or information shared by a central service. No single clue is reliable on its own.

Name the flow
  • Port, addressfast buteasily shared
  • Handshake namestrong, but needspackets first
  • Traffic patternsignaturesand behaviour
  • DNS, shared infoextra help,varies by design
Weak clues are cheap and fast. Strong clues need more packets or an unencrypted name.
Diagram
Clues, strength and weakness
Clues, strength and weakness
ClueHow strongWhat weakens it
Port and protocolWeakMany services share ports; apps move to ports such as UDP 443
Server address or prefixMediumShared cloud and CDN addresses carry many services
Name in the handshakeStrongEncrypted handshake names and clients that hide them
Traffic pattern and signatureMediumNew client versions change the pattern until signatures are updated
DNS answer seen earlierHelpfulNot seen when the client uses an encrypted or remote resolver
Strength depends on the design as well as the application. Treat the table as a way to think, not as a guarantee.

The first packets and the late name

A name that depends on a handshake cannot exist before the handshake. The first packets of a flow are therefore handled before the edge knows what the flow is. For short flows, such as a quick request, the flow can finish before it is ever named. For long flows, such as a call, the effect is a short delay before the policy applies. How the early packets are treated differs by feature and release, so the behaviour is something to test and not to assume.

Diagram
A flow and its name over time
A flow and its name over time

The first packets of a flow arrive before the edge has a name for it. Once enough packets have been seen, the edge names the flow and the application list can match. Short flows may end before that point.

  1. Startfirst packets,no name yet
  2. Clueshandshake andpattern seen
  3. Namedapplicationlist can match
  4. Steeredpolicy picksthe tunnel
Short flows are hardest to steer by application name. Long flows are named, then steered.

What breaks recognition

Diagram
Five common causes of a weak or missing name
Five common causes of a weak or missing name
CauseWhat happensHow it shows up
Encrypted handshake namesThe name is no longer visible to the edgeA well-known service shows as a generic protocol
New transport such as QUICTraffic moves from TCP to UDP 443A category such as quic grows while named apps shrink
New client versionPorts or patterns change before signatures followOne application drops out of reports after an update
Shared cloud addressesMany services share an address rangePrefix matching catches the wrong traffic
One direction onlyThe edge sees one direction of a flowNames are late or missing on asymmetric paths
Most of these begin with a change outside the SD-WAN: a client update, a browser setting or a provider move.
Diagram
Three things recognition failure leaves intact
Three things recognition failure leaves intact

When recognition fails, the tunnels are still up, the BFD sessions still report quality, and the SLA classes still compute. The only thing that fails is the match between the flow and the application list, so nothing looks wrong in the tunnel tables.

  1. TunnelsUp, with long uptimeNothing to alarm on
  2. SLA classesComputed per tunnel as usualNo violation if no flow is in the class
  3. MatchFlow named as quic or unknownThe application list does not match
That is why the fault is quiet. Look at what the edge calls the traffic before looking at the tunnels.

A worked case: the meetings that left the policy

The company steers meeting media with an application list called MEETING-APPS. After a client update, users at several branches complain that calls break up at busy times. The SLA dashboard is flat: no violations, no fallbacks. Priya checks the tunnels first and finds them healthy. Then she looks at what the edge calls the traffic.

Diagram
Application report at BR-02 (example data)
Application report at BR-02 (example data)
ApplicationLast weekThis week
webex-meeting24 %3 %
ms-teams-audio11 %10 %
quic6 %29 %
unknown4 %5 %
Example data written for this lesson, not a capture. Shares are of total branch traffic.

The share of webex-meeting fell by about twenty-one points while quic grew by about twenty-three. The client update moved the meeting media to UDP 443, and the edge now names that traffic by the generic transport. The application list contains webex-meeting, so the media no longer matches sequence 10 and takes the default path, with no SLA class applied. That is why the dashboard is flat: the traffic is not in any class to violate one.

Diagram
Evidence from the case
Evidence from the case

Users report broken calls while the dashboard shows no violations. The tunnels are healthy. The application report shows the named meeting application falling and the generic quic category rising by the same amount. The policy list names only the meeting application, so the media no longer matches.

  1. SymptomCalls break up at busy timesDashboard shows no SLA violations
  2. TunnelsUp, healthy, no alarmsNot the problem
  3. Reportwebex-meeting fell, quic roseMeeting media is now named quic
  4. CauseThe list names only webex-meetingThe media no longer matches sequence 10
The fault was in the match, and the report that exposed it was the application report, not the tunnel report.

Adding quic to the list would catch the meetings and every other QUIC flow, so Priya looks for a narrower match. The meeting service marks its media with DSCP 46 when the client is configured to do so, and the company controls that setting on managed laptops. She adds a second sequence that matches DSCP 46 and applies the same SLA class.

app-route-policy BRANCH-AAR vpn-list CORP-VPN sequence 10 match app-list MEETING-APPS ! action sla-class VOICE preferred-color mpls backup-sla-preferred-color lte ! ! sequence 15 match dscp 46 ! action sla-class VOICE preferred-color mpls backup-sla-preferred-color lte ! !

Policy on the Controller, abbreviated. Sequence 15 matches the DSCP 46 marking set by managed clients, so meeting media is steered even when the edge names it quic. Syntax differs by release.

A second match is only as good as the marking behind it. The report shows 24 points of branch traffic in webex-meeting last week, 3 now, and the other 21 now named quic. The table treats the 3 points still named as matched by sequence 10 and the 21 points under quic as matched by sequence 15 only for the clients that mark DSCP 46.

Diagram
Meeting media matched by DSCP 46 coverage (computed)
Meeting media matched by DSCP 46 coverage (computed)
Clients that mark DSCP 46Meeting media matchedMeeting media on the default pathBranch traffic left unmatched
None (name only)12.50 %87.50 %21.0 points
Half of the clients56.25 %43.75 %10.5 points
80 percent of the clients82.50 %17.50 %4.2 points
All of the clients100.00 %0.00 %0.0 points
Computed from the example report as (3 + marked share of 21) divided by 24. Assumes the 21 points that left webex-meeting are the same media now named quic, and that every marking client marks all of its meeting media. Example data, not a capture.

The second sequence repairs most of the loss only if most clients mark. The unmarked remainder, for example guest or unmanaged laptops, stays on the default path, so the marking setting is part of the fix and belongs on the checklist next to the report.

After the change she compares the flows that use the VOICE class with the list of calls that users report as poor. Both fall to nearly zero over the next busy hour. She also adds a line to the client update checklist: after a meeting client update, read the application report for a drop in named applications and a rise in generic ones.

Choosing a safer match

Diagram
Ways to match traffic when the name is unreliable
Ways to match traffic when the name is unreliable
Match onGood forRisk
Application nameWell-known services with stable recognitionSilent miss when recognition changes
DSCP markingTraffic from managed endpoints that mark itUnmanaged devices can mark traffic too, so it needs a trust boundary
Destination prefixA service with a small, stable address rangeShared ranges catch unrelated traffic; ranges change
Protocol and portNarrow, well-defined servicesOverlaps with other uses of the same port
Several in sequenceCritical traffic that must not be missedMore rules to maintain and to test
For critical traffic, use more than one match and test that the second one catches what the first one misses.
Diagram
Keeping recognition honest
Keeping recognition honest

Read the application report after client updates, keep a second match for critical traffic, keep the signature set current where the platform allows it, and test with a real call after changes.

Habits
  • Read the reportafter clientupdates
  • Second matchDSCP or prefixfor critical apps
  • Update signatureswhere theplatform allows
  • Test a real callafter eachchange
Four habits that turn a quiet failure into a visible one.

Learn more: Application Match, Eligibility and Preferred TLOCSLA Classes and Policy ThresholdsBrownout and Fallback Behaviour

Test yourself

Predict · scenario 1

Users report poor calls. The SLA dashboard shows no violations and every tunnel is healthy. What should you check first?

Predict · scenario 2

After a client update, webex-meeting falls from 24 percent to 3 percent of traffic and quic rises by a similar amount. What is the most likely cause?

Predict · scenario 3

To catch the meetings that are named quic, someone proposes adding quic to the application list. What is the main risk?

Predict · scenario 4

A match on DSCP 46 is added as a second sequence for meeting media. What must be true for it to be a safe match?

Predict · scenario 5

A short request finishes before the edge has named the flow. What does that mean for an application-aware policy that depends on the name?

Predict · scenario 6

Using the example report, webex-meeting fell from 24 to 3 percent and the other 21 points are named quic. A second sequence matches DSCP 46 and 80 percent of clients mark their meeting media. What share of the meeting media is matched now?

Predict · scenario 7

After a client update, the report for a branch shows a named video application falling from 18 to 4 percent while quic rises from 5 to 19 percent. A policy lists only the named application. What does this most likely mean?

Predict · scenario 8

Which habit is most likely to turn this quiet failure into a visible one?

FAQ

Why does the same application sometimes show as unknown?
The edge names an application from clues, and the clues change. A new client version, a new transport such as QUIC, an encrypted handshake that hides a name, or a shared address used by many services can all leave the flow without a confident name.
Can the edge name a flow from its first packet?
Often not. Many applications reveal their name only after a few packets, for example in a handshake. How the first packets are handled before the name is known differs by feature and release, so test it for the policy you use.
Is it safe to put quic or a generic protocol in an application list?
It matches every flow of that protocol, including unrelated ones such as ordinary browsing. That can move a lot of traffic onto a premium path. Prefer a narrower match, and measure the effect.
Does a clean SLA report prove voice is steered correctly?
No. Traffic that is not matched by a policy sequence is not in any SLA class, so it cannot violate one. A flat report can mean the policy did not see the traffic.