Skip to main content

OTT Apps

Estimates traffic to OTT and cloud services, keyed by app name. The app name comes from the Passive DNS name of each top external host, matched against a pattern map.

PropertyValue
GUID{0D5FFF94-BDA1-4BDB-A13D-A5AED7D6A96C}
LayerDerived
InputPackets, Flows
Key typeApp name string
ImplementationLua — ottcg.lua (group), resolve-ext-toppers.lua (metering), appmap.lua (patterns) (apps/analyzers/ott)
Trisul Appott (install from Trisul Apps)
Bucket / Topper60 s / 300 s
Enabled by defaultYes, after the app is installed

What it measures​

  • resolve-ext-toppers.lua is a cg_monitor script on External Hosts. It runs at each topper flush of External Hosts meter 1 (Received) and meter 2 (Transmit), every 300 s.
  • For each topper key it takes the host's topper value, multiplies it by 300, and adds the result to an app key. Received goes to meter 0 and Transmit goes to meter 1.
  • Only hosts in the External Hosts topper lists are counted, so this group shows the share of top external traffic, not all traffic.
  • Only IPv4 keys are handled. IPv6 toppers are skipped.
  • The name comes from the Passive DNS LevelDB config/PassiveDNSDB.level.<engine> under //App/DBRoot. If the database cannot be opened, nothing is updated.
  • Updates arrive once per topper flush, so most 60 s buckets are empty and every fifth one holds about 300 s of bytes.

Keys​

One key is decided as follows for each top external IP:

  1. Look up the IP in Passive DNS.
  2. Run the name through the Aho-Corasick matcher (match_one) built from the patterns in appmap.lua. A match gives the pattern's app name, e.g. googlevideo → YOUTUBE.
  3. If no pattern matches, the key is the DNS name itself.
  4. If the IP has no Passive DNS entry, the key is INTERNET.

No labels are set. The key is the readable name.

KeyMeaning
YOUTUBENames matching youtube, ytimg, googlevideo, ggpht, gvt1
AMAZON PRIMENames matching primevideo, aiv-cdn, pv-cdn and others
GMAILNames matching mail.google, gmail and others
edge-12.example.netDNS name that matched no pattern

Special keys​

KeyMeaning
SYS:GROUP_TOTALSSum of every update made to this group in the interval. It covers only the top external hosts, not all traffic.
INTERNETTop external hosts with no Passive DNS name.

Meter list​

IDNameTypeUnitsTopBottomDescription
0bytes recvVT_RATE_COUNTERBps1000Short name Bytes Receive. External Hosts meter 1 (Received) topper value × 300.
1bytes xmitVT_RATE_COUNTERBps1000Short name Bytes Transmit. External Hosts meter 2 (Transmit) topper value × 300.
2uniqsVT_GAUGEUniques2020Reserved cardinality slot. Not populated.
3uniqsVT_GAUGEUniques2020Reserved cardinality slot. Not populated.