KTP/
github ↗
learn

Telemetry & the Physical Layer

created 23 August 2026 · last modified 23 August 2026

The Foundation of Digital Trust

In the Kinetic Trust Protocol, trust is not declared—it is derived. Every millisecond, billions of telemetry events flow through digital systems. The challenge is

The Data Compass

LayerWhatWhyAction
SignalsFactsPatternsAlerts
MeaningContextInsightsRecommendations
WisdomPrinciplesStrategiesDecisions

Use this grid to ensure telemetry covers all three layers: Facts (micro), Context (meso), and Principles (macro). Without all three, you can raise alerts, but you lose adaptive insight.

The Principle

"You cannot trust what you cannot measure. You cannot measure what you cannot observe."

This page details the telemetry architecture that feeds the KTP model, from individual packets to the Experience Score.


The Three Layers of Observation

We categorize telemetry into three distinct layers, each corresponding to a scale of observation in the KTP model:

%%{init: {'themeVariables': {'fontSize': '18px'}}}%%
flowchart TB
    subgraph L1["🔬 Layer 1: MICRO"]
        direction TB
        M1[High Volume]
        M2[Low Context]
        M3[Individual Events]
    end
    
    subgraph L2["⚗️ Layer 2: MESO"]
        direction TB
        S1[Medium Volume]
        S2[Medium Context]
        S3[Statistical Aggregates]
    end
    
    subgraph L3["🌌 Layer 3: MACRO"]
        direction TB
        A1[Low Volume]
        A2[High Context]
        A3[Strategic Metrics]
    end
    
    L1 --> L2 --> L3
    
    style L1 fill:#1a1a2e,stroke:#87CEEB
    style L2 fill:#16213e,stroke:#87CEEB
    style L3 fill:#0f3460,stroke:#87CEEB

| Layer | Physics Analogy | Data Characteristic | Update Frequency | |-------|-----------------|---------------------|------------------| | Micro | Quantum particles | Individual events, high entropy | Milliseconds | | Meso | Thermodynamics | Statistical emergence, patterns | Seconds-Minutes | | Macro | Celestial mechanics | Gravitational force, stability | Minutes-Hours |


Layer 1: Micro Telemetry

Physics Analogy

Particles in motion—individual, discrete events that have no meaning in isolation but form the foundation of all higher-order understanding.

Raw Packets

The fundamental particles of the network. Packets are the photons of the digital universe—discrete quanta of information that travel at finite speed and can be absorbed, reflected, or lost in transit.

Data Captured

FieldTypeDescription
timestampdatetimeCapture time (nanosecond precision)
src_ipstringSource IP address
dst_ipstringDestination IP address
protocolenumTCP, UDP, ICMP, etc.
portintDestination port
payload_lenintPayload size in bytes
tcp_flagsarraySYN, ACK, FIN, RST, etc.
ttlintTime-to-live hops

Derived Metrics

MetricCalculationUnitImpact on ARQ
ThroughputΣ payload_len / timeGbpsQuality ↑
Packet Losslost / total × 100%Quality ↓↓
Jitterstddev(inter_arrival_time)msQuality ↓
Latencyresponse_time - request_timemsAvailability ↓

Example Query

-- Splunk: Packet loss by region
index=network sourcetype=packets
| stats count as total, 
        sum(eval(if(retransmit=1,1,0))) as lost 
  by geo_region
| eval loss_pct = round(lost/total*100, 4)
| where loss_pct > 0.01
| sort -loss_pct

Logs & Events

The semantic layer of telemetry. Unlike packets, logs contain structured or unstructured text that describes what is happening within applications and systems.

Physics Analogy

Logs are the thermodynamic state variables—they describe the internal configuration and energy distribution of the digital machinery.

Event Types

LevelDescriptionExample
DEBUGDetailed diagnostic"Cache lookup: key=user_123, hit=true"
INFONormal operations"Request processed in 45ms"
WARNPotential issues"Connection pool at 80% capacity"
ERRORFailures"Database connection timeout after 30s"
FATALCritical failures"Out of memory, process terminating"

Key Metrics

MetricCalculationThresholdImpact
Log VolumeΣ bytes / hourBaseline ± 2σAnomaly detection
Error Rateerrors / total × 100< 0.1%Retainability ↓↓
Unique Sourcescount_distinct(source)Expected rangeCoverage validation
Event ClustersTemporal pattern analysisN/ARoot cause analysis

Example Query

-- Splunk: Error rate trend with correlation to E-score
index=application level=ERROR
| bucket _time span=5m
| stats count as errors by _time, service
| join type=left _time [
    search index=ktp_metrics metric=e_score
    | bucket _time span=5m
| stats avg(value) as e_score by _time
]
| eval correlation = if(errors > 10 AND e_score < 80, "HIGH", "LOW")

Real-time Metrics

Field measurements of operational health—the temperature, pressure, and electromagnetic field strength of the digital system. Below are the Real-time Metrics (348 Signals) used in the math mechanics of KTP. Each tab groups signals by layer and includes the calculation model used for scoring and aggregation.

Notation

  • count(x) is event count per window, describing raw activity volume.
  • rate(x) is count per second, capturing velocity and churn.
  • pXX(x) is a percentile, used for tail behavior and outliers.
  • uniq(x) is distinct count, used for cardinality and spread.
  • z(x) is a z-score against baseline, used for anomaly detection.
  • ema(x) is exponential moving average, used for smoothing.
  • All metrics are normalized to 0–1 before projection into the tensor.

Global

MetricExpressionExample
Throughput_spssessions / second
Trust_Mass100 - Accumulated_Risk
Env_Friction_Riskcurrent_risk_score (0-100)<span class="ktp-metric-detail" data-meso="The "drag" applied to a session; high friction triggers step-up authentication or CAPTCHAs."drag" applied to a session; high friction triggers step-up authentication or CAPTCHAs."drag" applied to a session; high friction triggers step-up authentication or CAPTCHAs." data-macro="Organizational risk appetite; adjusting this dial balances security posture against user productivity.">
Accumulated_Risksum(risk_score) over session<span class="ktp-metric-detail" data-meso="Session-level "heat"; crossing a threshold (e.g., 80) triggers immediate session termination."heat"; crossing a threshold (e.g., 80) triggers immediate session termination."heat"; crossing a threshold (e.g., 80) triggers immediate session termination." data-macro="Long-term threat exposure; high accumulated risk across the org indicates a need for architectural security changes.">
Phaseenum(AUTH, RECON, LATERAL, ESCALATE, EXFIL, CLEANUP)
Time_Tplussimulation_time_cursor
Event_Risk_Levelseverity_enum(0,1,2)
Zonecategorical(network_zone)<span class="ktp-metric-detail" data-meso="Segmentation enforcement; traffic moving from "Guest" to "PCI" triggers a firewall block."Guest" to "PCI" triggers a firewall block."Guest" to "PCI" triggers a firewall block." data-macro="Network architecture validation; ensures critical assets are properly isolated from public networks.">

Layer 8: Identity

MetricExpressionExample
user_ididentity_key
Auth_Volume_by_Usercount(auth) / window
Failed_Login_Ratecount(failed_login) / count(login)
Concurrent_Sessionsactive_sessions_per_user<span class="ktp-metric-detail" data-meso="Session hijacking indicator; simultaneous logins from NY and London trigger a "kill session" command."kill session" command."kill session" command." data-macro="Licensing compliance; ensures the organization isn't exceeding seat limits for SaaS tools.">
New_Device_Accesscount(new_device_login) / count(login)
rolerbac_role<span class="ktp-metric-detail" data-meso="Access control decision; "Intern" role is denied access to "Production DB"."Intern" role is denied access to "Production DB"."Intern" role is denied access to "Production DB"." data-macro="RBAC maturity; tracks the granularity and correctness of role definitions across the org.">
Privilege_Escalationcount(priv_escalation) / window<span class="ktp-metric-detail" data-meso="Critical alert; a standard user suddenly adding themselves to "Domain Admins" triggers an immediate page."Domain Admins" triggers an immediate page."Domain Admins" triggers an immediate page." data-macro="Insider threat monitoring; tracks the effectiveness of Least Privilege policies.">
Role_Change_Frequencycount(role_change) / window
Toxic_Combinationcount(toxic_pairings) / window<span class="ktp-metric-detail" data-meso="Separation of Duties (SoD) violation; a user with both "Create Vendor" and "Pay Vendor" rights is flagged."Create Vendor" and "Pay Vendor" rights is flagged."Create Vendor" and "Pay Vendor" rights is flagged." data-macro="Fraud prevention; ensures compliance with financial regulations (SOX).">
Dormant_Role_Usagecount(dormant_role_use) / window
departmentorg_unit<span class="ktp-metric-detail" data-meso="Contextual access; "HR" department users are allowed access to payroll systems."HR" department users are allowed access to payroll systems."HR" department users are allowed access to payroll systems." data-macro="Cost allocation; tracks IT resource consumption by business unit.">
Cross_Dept_Accesscount(cross_dept_access) / window<span class="ktp-metric-detail" data-meso="Data leakage risk; "Engineering" accessing "Legal" files triggers a DLP alert."Engineering" accessing "Legal" files triggers a DLP alert."Engineering" accessing "Legal" files triggers a DLP alert." data-macro="Collaboration patterns; visualizes how different teams interact and share data.">
Dept_Outlier_Analysisz(access_volume_by_dept)<span class="ktp-metric-detail" data-meso="Behavioral anomaly; one user downloading 10x more data than their peers triggers an investigation." data-macro="Insider threat baseline; establishes "normal" behavior profiles for different job functions."normal" behavior profiles for different job functions."normal" behavior profiles for different job functions.">
Shadow_IT_by_Deptcount(unapproved_apps_by_dept) / window<span class="ktp-metric-detail" data-meso="Policy enforcement; "Marketing" using an unapproved file sharing tool triggers a block."Marketing" using an unapproved file sharing tool triggers a block."Marketing" using an unapproved file sharing tool triggers a block." data-macro="Vendor risk management; identifies unvetted SaaS tools that need to be brought under governance.">
geo_locationgeo_coord
Impossible_Travelcount(impossible_travel) / window
New_Country_Accesscount(new_country_access) / window
Geo_Velocity_Anomalyz(geo_velocity)<span class="ktp-metric-detail" data-meso="Credential theft indicator; a user "moving" at 5000 mph implies shared credentials."moving" at 5000 mph implies shared credentials."moving" at 5000 mph implies shared credentials." data-macro="Remote work policy; validates that employees are working from authorized locations.">
High_Risk_Countrycount(risky_geo_access) / window
device_iddevice_key
Device_Trust_Scoreema(device_trust)
New_Device_Ratecount(new_device) / count(auth)
Jailbroken_Devicecount(jailbroken_device) / count(device)
BYOD_Usagecount(byod) / count(device)

Layer 7: Application

MetricExpressionExample
http_methodenum(GET, POST, PUT, DELETE)
Method_Distributiondistribution(http_method)
Unusual_Method_Usagez(method_rate)
High_Volume_POSTrate(POST) > baseline
Method_vs_Path_Anomalyz(method_path_pair)
http_statusenum(200,403,500)
Error_Rate_5xxcount(5xx) / count(request)
Access_Denied_403count(403) / count(request)
Not_Found_Spike_404z(count(404))
Success_Ratecount(200) / count(request)
url_pathpath_key
Path_Traversal_Attemptcount(path_traversal) / window
Admin_Page_Accesscount(admin_path) / window
Sensitive_File_Accesscount(sensitive_path) / window
High_Cardinality_Pathsuniq(url_path) / window
user_agentua_string
Rare_User_Agentz(ua_rarity)
Bot_Scraper_Detectionscore(bot_score)
Outdated_Browsercount(outdated_browser) / window
UA_Spoofingcount(ua_mismatch) / window
refererreferer_url
Empty_Referercount(empty_referer) / window
Cross_Site_Scriptingcount(xss_indicators) / window
External_Referercount(external_referer) / window
cookie_idcookie_key
Cookie_Replaycount(cookie_replay) / window
Cookie_Theftcount(cookie_theft) / window
Missing_Secure_Flagcount(missing_secure) / window
Session_Fixationcount(session_fixation) / window

Layer 6.5: API

MetricExpressionExample
api_endpointendpoint_path
Endpoint_Usagecount(endpoint) / window
Deprecated_Endpointcount(deprecated_endpoint) / window<span class="ktp-metric-detail" data-meso="Developer warning; returns a "Sunset" header to clients using old versions."Sunset" header to clients using old versions."Sunset" header to clients using old versions." data-macro="Technical debt; tracks the progress of migrating clients to newer API versions.">
Shadow_APIcount(unknown_endpoint) / window
Endpoint_Latencyp95(endpoint_latency)
api_key_idapi_client_key
Key_Usage_Volumecount(api_key_use) / window
Invalid_Key_Ratecount(invalid_key) / count(api_key_use)
Key_Rotationcount(key_rotation) / window
Concurrent_Key_Useuniq(concurrent_key_use)
response_sizebytes_out
Payload_Size_Avgavg(response_size)
Data_Exfiltrationz(bytes_out) > threshold<span class="ktp-metric-detail" data-meso="DLP trigger; a 5GB response from a "User Profile" endpoint is blocked immediately."User Profile" endpoint is blocked immediately."User Profile" endpoint is blocked immediately." data-macro="Intellectual property protection; monitors the flow of sensitive data leaving the organization.">
Large_Payloadp99(response_size)
Zero_Byte_Responsecount(response_size == 0) / window
rate_limit_statuscount(429) / window
Throttled_Requestscount(429) / count(request)
Quota_Consumptionused_quota / allocated_quota
Abusive_Clientscore(client_abuse)

Layer 6: Presentation

MetricExpressionExample
tls_versionenum(TLS1.0, TLS1.2, TLS1.3)
Legacy_Protocolcount(TLS1.0) / window
TLS_1_3_Adoptioncount(TLS1.3) / count(tls_handshake)
Downgrade_Attackcount(downgrade_attempt) / window
cipher_suitecipher_id
Weak_Cipher_Usagecount(weak_cipher) / window
Cipher_Distributiondistribution(cipher_suite)
PFS_Usagecount(pfs_cipher) / count(cipher_suite)
content_typemime_type
MIME_Type_Mismatchcount(mime_mismatch) / window
Executable_Downloadcount(exec_download) / window
Unexpected_Contentcount(unexpected_content) / window
encodingcharset_or_compression
Compression_Ratiobytes_in / bytes_out
Double_Encodingcount(double_encode) / window
Malformed_Encodingcount(malformed_encode) / window

Layer 5: Session

MetricExpressionExample
session_idsession_key
Session_Countcount(session_id) / window
Session_Fixationcount(session_fixation) / window
Session_Churncount(session_end) / window
Concurrent_Sessionsuniq(active_session_id)<span class="ktp-metric-detail" data-meso="Session hijacking indicator; simultaneous logins from NY and London trigger a "kill session" command."kill session" command."kill session" command." data-macro="Licensing compliance; ensures the organization isn't exceeding seat limits for SaaS tools.">
session_durationseconds_active
Avg_Session_Lengthavg(session_duration)<span class="ktp-metric-detail" data-meso="Engagement metric; longer sessions imply deeper user engagement." data-macro="Product value; indicates how "sticky" the application is for users."sticky" the application is for users."sticky" the application is for users.">
Short_Sessionscount(session_duration < threshold)
Long_Sessionscount(session_duration > threshold)
Session_Timeout_Ratecount(timeout) / count(session_end)
login_statusenum(success, failure)
Login_Success_Ratecount(success) / count(login)
Brute_Forcez(failed_login_rate)
Credential_Stuffingscore(credential_stuffing)
Impossible_Travelcount(impossible_travel) / window
keepalive_statusenum(alive, dead)
Keepalive_Failurescount(keepalive_fail) / window
Zombie_Sessionscount(zombie_session) / window

Layer 4: Transport

MetricExpressionExample
src_portport_number
Ephemeral_Port_Exhaustionz(src_port_distribution)
Fixed_Source_Portcount(src_port_fixed) / window
Port_Scan_Sourcecount(src_port_scan) / window
dest_portservice_port
Service_Distributiondistribution(dest_port)
Dark_Port_Accesscount(dest_port_unexpected) / window<span class="ktp-metric-detail" data-meso="Malware beaconing; traffic to non-standard ports (e.g., 6667) is blocked." data-macro="Firewall policy; validates that the "default deny" rule is effective."default deny" rule is effective."default deny" rule is effective.">
Port_Scan_Destcount(dest_port_scan) / window
High_Port_Usagecount(dest_port_high) / window
tcp_flagsenum(SYN, ACK, FIN, RST)
SYN_Floodrate(SYN) > baseline
RST_Ratecount(RST) / count(tcp_flags)
Null_Scancount(null_scan) / window
Xmas_Scancount(xmas_scan) / window
Handshake_Completioncount(handshake_ok) / count(handshake_start)
window_sizetcp_window
Zero_Windowcount(window_size == 0) / window
Window_Scalingavg(window_scale)
Retransmission_Correlationcorr(retransmissions, latency)
retransmission_ratecount(retransmit) / count(packet)<span class="ktp-metric-detail" data-meso="Network congestion; high retransmits trigger a rerouting of traffic to a healthy link." data-macro="User experience; directly correlates with application "sluggishness" and employee frustration."sluggishness" and employee frustration."sluggishness" and employee frustration.">
Retransmission_Spikez(retransmission_rate)
High_Retransmission_Hosttop(retransmission_host)
Global_Retransmissionavg(retransmission_rate)

Layer 3.5: Flow

MetricExpressionExample
flow_bytes_inbytes_in
Inbound_Volumesum(flow_bytes_in)
Large_Transferp99(flow_bytes_in)
Volume_Spikez(flow_bytes_in)
Ratio_Analysisflow_bytes_out / flow_bytes_in<span class="ktp-metric-detail" data-meso="C2 detection; high outbound/low inbound ratio suggests exfiltration." data-macro="Threat modeling; defines "normal" traffic profiles for different server types."normal" traffic profiles for different server types."normal" traffic profiles for different server types.">
flow_bytes_outbytes_out
Outbound_Volumesum(flow_bytes_out)
Exfiltration_Detectionz(flow_bytes_out)
Upload_Anomalyz(flow_bytes_out / flow_duration)
Asymmetric_Flowz(flow_bytes_out / flow_bytes_in)
flow_packetspacket_count
Packet_Volumesum(flow_packets)
Small_Packet_Floodcount(flow_packets < threshold)
Packet_Size_Avgavg(flow_bytes_out / flow_packets)
Scan_Detectionscore(scan_pattern)
flow_durationseconds_active
Average_Flow_Durationavg(flow_duration)
Long_Lived_Flowscount(flow_duration > threshold)
C2_Beaconingscore(beacon_pattern)<span class="ktp-metric-detail" data-meso="Malware comms; short, periodic flows to a bad IP trigger an alert." data-macro="APT defense; detects the "heartbeat" of compromised machines."heartbeat" of compromised machines."heartbeat" of compromised machines.">
Tunnel_Detectionscore(tunnel_pattern)
flow_start_timetimestamp_start
Flow_Start_Distributiondistribution(flow_start_time)
Off_Hours_Activitycount(off_hours_flow) / window
Burst_Detectionz(burst_rate)
Time_Correlationcorr(flow_start_time, flow_end_time)
flow_end_reasonenum(RST, FIN, TIMEOUT)
End_Reason_Distributiondistribution(flow_end_reason)
Timeout_Flowscount(flow_end_reason == TIMEOUT)
RST_FIN_Analysiscount(RST) / count(FIN)
Forced_Closurecount(forced_close) / window
application_iddpi_app_id<span class="ktp-metric-detail" data-meso="Layer 7 visibility; identifies traffic as "Netflix" or "Salesforce" via DPI."Netflix" or "Salesforce" via DPI."Netflix" or "Salesforce" via DPI." data-macro="App rationalization; identifies redundant applications (e.g., Zoom vs. Teams).">
App_Distributiondistribution(application_id)
Shadow_IT_Detectioncount(unknown_app) / window<span class="ktp-metric-detail" data-meso="Unauthorized app; detection of "Tor" traffic triggers an immediate block."Tor" traffic triggers an immediate block."Tor" traffic triggers an immediate block." data-macro="Risk management; brings unapproved tools into the governance process.">
New_Applicationcount(new_app) / window<span class="ktp-metric-detail" data-meso="Change detection; first time seeing "BitTorrent" on the network."BitTorrent" on the network."BitTorrent" on the network." data-macro="Threat hunting; investigates new, unknown protocols appearing in the environment.">
App_Usage_Trendtrend(app_usage)
flow_directionenum(ingress, egress, internal)
Direction_Distributiondistribution(flow_direction)
Egress_Anomalyz(egress_ratio)
Lateral_Movementscore(lateral_pattern)
Internal_Trafficrate(internal_flow)

Layer 3: Network

MetricExpressionExample
src_ipsource_identity
Unique_Sourcesuniq(src_ip)
New_Source_Detectioncount(new_src_ip) / window
Top_Talkerstop(src_ip_by_volume)
Source_Reputationscore(src_ip_reputation)<span class="ktp-metric-detail" data-meso="Threat blocking; traffic from a known "Spam" IP is dropped at the border."Spam" IP is dropped at the border."Spam" IP is dropped at the border." data-macro="Threat intelligence; leverages global data to protect the local environment.">
Internal_vs_Externalratio(internal, external)
dest_ipdestination_target
Unique_Destinationsuniq(dest_ip)
New_Destination_Alertcount(new_dest_ip) / window
Destination_Reputationscore(dest_ip_reputation)<span class="ktp-metric-detail" data-meso="Web filtering; access to "Gambling" or "Malware" sites is blocked."Gambling" or "Malware" sites is blocked."Gambling" or "Malware" sites is blocked." data-macro="Acceptable use policy; enforces corporate rules on internet usage.">
Beaconing_Detectionscore(beaconing_pattern)
Rare_Destination_Accessz(dest_ip_rarity)
latencyrtt_ms
Average_Latencyavg(latency)<span class="ktp-metric-detail" data-meso="Baseline; establishes the "normal" speed of the network."normal" speed of the network."normal" speed of the network." data-macro="SLA tracking; ensures providers are meeting their latency guarantees.">
P50_Latencyp50(latency)
P95_Latencyp95(latency)
P99_Latencyp99(latency)
Latency_Anomalyz(latency)
Latency_Trendtrend(latency)
packet_lossloss_ratio
Loss_Rateavg(packet_loss)
Loss_Spikez(packet_loss)
Loss_Outlierscount(packet_loss > threshold)
Loss_by_Pathgroup(path, avg(packet_loss))
P99_Lossp99(packet_loss)
hop_countttl_hops
Avg_Path_Lengthavg(hop_count)
Path_Change_Detectioncount(path_change) / window
Excessive_Hopscount(hop_count > threshold)
TTL_Expiry_Ratecount(ttl_expired) / window
tos_dscpqos_tag
QoS_Marking_Distributiondistribution(tos_dscp)<span class="ktp-metric-detail" data-meso="Policy audit; verifies that only authorized apps are using the "Expedited Forwarding" tag."Expedited Forwarding" tag."Expedited Forwarding" tag." data-macro="Network fairness; prevents low-priority traffic from starving critical apps.">
Voice_Traffic_Taggingcount(voice_tag) / window
Mismarked_Trafficcount(mismark) / window<span class="ktp-metric-detail" data-meso="Configuration error; YouTube traffic tagged as "Critical" is re-marked to "Best Effort"."Critical" is re-marked to "Best Effort"."Critical" is re-marked to "Best Effort"." data-macro="Bandwidth management; enforces the intended QoS policy.">
protocol_idenum(TCP, UDP, ICMP, GRE, ESP)
Protocol_Distributiondistribution(protocol_id)
Unusual_Protocolz(protocol_id_rarity)
ICMP_Volumerate(ICMP)
GRE_ESP_Tunnelscount(GRE_or_ESP) / window
icmp_typeenum(unreachable, echo_request)<span class="ktp-metric-detail" data-meso="Message analysis; distinguishes between "Echo Request" (Ping) and "Unreachable"."Echo Request" (Ping) and "Unreachable"."Echo Request" (Ping) and "Unreachable"." data-macro="Troubleshooting; "Fragmentation Needed" messages help fix MTU issues."Fragmentation Needed" messages help fix MTU issues."Fragmentation Needed" messages help fix MTU issues.">
Unreachable_Ratecount(icmp_unreachable) / count(icmp_type)<span class="ktp-metric-detail" data-meso="Configuration error; high unreachables suggest a router has no route to a destination." data-macro="Network availability; minimizes "black holes" in the network."black holes" in the network."black holes" in the network.">
Echo_Request_Volumerate(icmp_echo)
ICMP_Flood_Detectionz(icmp_echo_rate)
Redirect_Messagescount(icmp_redirect) / window
bgp_peer_stateenum(established, idle)
Peer_Statuscount(bgp_peer_state) / window<span class="ktp-metric-detail" data-meso="Alerting; a peer going from "Established" to "Idle" pages the engineer."Established" to "Idle" pages the engineer."Established" to "Idle" pages the engineer." data-macro="Vendor reliability; tracks the stability of ISP connections.">
State_Flap_Detectioncount(bgp_flap) / window<span class="ktp-metric-detail" data-meso="Instability; a peer bouncing up and down triggers a "dampening" penalty."dampening" penalty."dampening" penalty." data-macro="Route stability; prevents unstable routes from propagating to the internet.">
Idle_Peer_Alertcount(bgp_idle) / window
Prefix_Count_Changez(prefix_count)
Session_Uptimeavg(bgp_session_uptime)
route_next_hopnext_hop_ip
Next_Hop_Distributiondistribution(route_next_hop)
Next_Hop_Changecount(next_hop_change) / window
Black_Hole_Routescount(blackhole_route) / window<span class="ktp-metric-detail" data-meso="DDoS mitigation; routing traffic for a victim IP to "Null0" drops it at the edge."Null0" drops it at the edge."Null0" drops it at the edge." data-macro="Infrastructure protection; sacrifices one victim to save the rest of the network.">
Path_Symmetryscore(path_symmetry)
tunnel_idsdwan_tunnel_id
Tunnel_Statuscount(tunnel_up) / window
Tunnel_Flap_Detectioncount(tunnel_flap) / window
Tunnel_Latencyavg(tunnel_latency)
Tunnel_Throughputavg(tunnel_throughput)
Failover_Eventscount(failover) / window
vpc_idcloud_vpc_id
VPC_Traffic_Distributiondistribution(vpc_id)
Cross_VPC_Trafficcount(cross_vpc) / window
New_VPC_Detectioncount(new_vpc) / window
VPC_Flow_Anomalyz(vpc_flow_rate)<span class="ktp-metric-detail" data-meso="Threat detection; unusual traffic patterns within a VPC suggest a compromise." data-macro="Cloud security; monitors the "East-West" traffic inside the cloud perimeter."East-West" traffic inside the cloud perimeter."East-West" traffic inside the cloud perimeter.">
security_group_idcloud_sg_id
SG_Rule_Effectivenessscore(sg_effectiveness)
Overly_Permissive_SGcount(overly_permissive_sg) / window
SG_Change_Detectioncount(sg_change) / window
Unused_SG_Detectioncount(unused_sg) / window
SG_Deny_Spikez(sg_deny_rate)

MetricExpressionExample
src_macmac_address
Unique_MACsuniq(src_mac)
New_MAC_Detectioncount(new_mac) / window<span class="ktp-metric-detail" data-meso="NAC enforcement; a new MAC address on a secure port triggers a "quarantine VLAN" assignment."quarantine VLAN" assignment."quarantine VLAN" assignment." data-macro="Asset inventory; ensures the CMDB is accurate and no unauthorized hardware is on the network.">
MAC_Spoofing_Detectioncount(mac_spoof) / window
OUI_Distributiondistribution(oui)
Rogue_Device_Detectioncount(rogue_device) / window
vlan_idvlan_identifier
VLAN_Distributiondistribution(vlan_id)
VLAN_Hopping_Detectioncount(vlan_hop) / window<span class="ktp-metric-detail" data-meso="Attack detection; a device trying to tag traffic for a different VLAN is blocked." data-macro="Switch hardening; validates that ports are configured as "Access" not "Trunk"."Access" not "Trunk"."Access" not "Trunk".">
Native_VLAN_Trafficrate(native_vlan)
Unused_VLAN_Detectioncount(unused_vlan) / window
interfaceport_identifier
Port_Utilizationavg(port_util)
Port_Flappingcount(port_flap) / window
Broadcast Stormz(broadcast_rate)
Port_Error_Ratecount(port_error) / window
Duplex_Mismatchcount(duplex_mismatch) / window<span class="ktp-metric-detail" data-meso="Performance killer; one side Half, one side Full causes massive collisions." data-macro="Configuration standard; enforces "Auto/Auto" negotiation everywhere."Auto/Auto" negotiation everywhere."Auto/Auto" negotiation everywhere.">
frame_typeenum(Ethernet_II, 802.3)
Frame_Type_Distributiondistribution(frame_type)
Unusual_EtherTypecount(unknown_ethertype) / window
ARP_Traffic_Volumerate(arp)
IPv6_Adoptioncount(ipv6) / count(frame_type)
stp_stateenum(blocking, forwarding)
Blocking_Port_Countcount(stp_blocking) / window
STP_Topology_Changecount(stp_change) / window
Root_Bridge_Changecount(root_bridge_change) / window
Port_State_Flapcount(stp_flap) / window<span class="ktp-metric-detail" data-meso="Instability; a port cycling through STP states prevents connectivity." data-macro="Edge protection; use "PortFast" to skip STP steps for end-user devices."PortFast" to skip STP steps for end-user devices."PortFast" to skip STP steps for end-user devices.">
Designated_Port_Ratiocount(designated_port) / count(port)
link_statusenum(up, down)
Link_Availabilitycount(up) / window
Link_Down_Eventscount(down) / window
Flapping_Detectioncount(link_flap) / window
Critical_Link_Monitorcount(critical_link_down) / window
MTTRmean(time_to_recover)
input_discardscount(input_discard) / window
Discard_Rateinput_discards / window
Discard_Spikez(input_discards)
input_errorscount(input_error) / window
Error_Rateinput_errors / window
CRC_Error_Spikez(crc_error)
Error_Trendtrend(input_errors)
Hardware_Failurecount(hardware_failure) / window
Error_Distributiondistribution(error_type)
neighbor_maclldp_cdp_neighbor
Expected_Neighborscount(expected_neighbor) / window
Neighbor_Changecount(neighbor_change) / window
Missing_Neighborcount(missing_neighbor) / window
New_Neighbor_Detectioncount(new_neighbor) / window<span class="ktp-metric-detail" data-meso="Rogue device; a "Linksys" router appearing as a neighbor is flagged."Linksys" router appearing as a neighbor is flagged."Linksys" router appearing as a neighbor is flagged." data-macro="Security audit; prevents unauthorized switches from extending the network.">
arp_statusenum(resolved, incomplete)
Incomplete_ARP_Ratecount(incomplete_arp) / count(arp)
ARP_Timeout_Spikez(arp_timeout)
ARP_Cache_Sizeavg(arp_cache_size)
Duplicate_IP_Detectioncount(duplicate_ip) / window

Layer 1: Physical

MetricExpressionExample
rssisignal_strength
Average_RSSIavg(rssi)
P10_RSSIp10(rssi)
Low_Signal_Clientscount(rssi < threshold)
RSSI_Anomalyz(rssi)
Coverage_Holescount(coverage_gap) / window
RSSI_Distributiondistribution(rssi)
snrsignal_to_noise
Average_SNRavg(snr)
SNR_Anomalyz(snr)
Low_SNR_Clientscount(snr < threshold)
SNR_vs_Throughputcorr(snr, throughput)
channelchannel_id
Channel_Utilizationavg(channel_util)
Co_Channel_Interferencez(co_channel_interference)
Channel_Change_Ratecount(channel_change) / window<span class="ktp-metric-detail" data-meso="Instability; frequent changes suggest the AP is "running away" from noise."running away" from noise."running away" from noise." data-macro="RRM tuning; adjusting the sensitivity of the auto-channel algorithm.">
DFS_Event_Ratecount(dfs_event) / window
Channel_Widthavg(channel_width)
data_ratenegotiated_rate
Average_Data_Rateavg(data_rate)
P10_Data_Ratep10(data_rate)
Low_Rate_Clientscount(data_rate < threshold)
Rate_vs_RSSIcorr(data_rate, rssi)
retry_rateretries / frames
Average_Retry_Rateavg(retry_rate)
Retry_Spikez(retry_rate)<span class="ktp-metric-detail" data-meso="Transient noise; a microwave running causes a spike in retries." data-macro="User complaints; correlates "WiFi sucks" tickets with interference events."WiFi sucks" tickets with interference events."WiFi sucks" tickets with interference events.">
High_Retry_APstop(retry_rate)
Retry_vs_Channel_Utilcorr(retry_rate, channel_util)
noise_floorrf_noise
Average_Noise_Flooravg(noise_floor)<span class="ktp-metric-detail" data-meso="Baseline; establishes the "silence" of the environment."silence" of the environment."silence" of the environment." data-macro="Site suitability; noisy environments (factories) need different hardware.">
Interference_Spikez(noise_floor)
High_Noise_APstop(noise_floor)
Noise_Trendtrend(noise_floor)
optical_rx_powerrx_light_level
Rx_Power_Levelavg(optical_rx_power)
Low_Power_Alertcount(optical_rx_power < threshold)<span class="ktp-metric-detail" data-meso="Link failure imminent; light level dropping to -25dBm triggers a "clean fiber" ticket."clean fiber" ticket."clean fiber" ticket." data-macro="Physical plant health; proactive maintenance prevents costly unplanned outages.">
Power_Degradationtrend(optical_rx_power)
Link_Margintarget_rx - optical_rx_power
Asymmetric_Powerabs(tx_power - rx_power)
transceiver_temptemp_c
Average_Temperatureavg(transceiver_temp)
Overheating_Alertcount(transceiver_temp > threshold)
Temperature_Trendtrend(transceiver_temp)
Thermal_Runawayz(transceiver_temp)
poe_power_drawwatts
Power_Per_Deviceavg(poe_power_draw)
Total_Budget_Usagesum(poe_power_draw)
Power_Anomalyz(poe_power_draw)
Class_Mismatchcount(power_class_mismatch) / window
Power_Trendtrend(poe_power_draw)
fan_statusenum(ok, fail)
Fan_Healthcount(ok) / window
Fan_Failure_Alertcount(fail) / window
Fan_Speed_Anomalyz(fan_speed)
Degraded_Coolingcount(degraded_cooling) / window
psu_statusenum(ok, fail)
PSU_Healthcount(ok) / window
PSU_Failurecount(fail) / window
Redundancy_Statusscore(redundancy)
Power_Input_Voltageavg(input_voltage)
Load_Balancescore(load_balance)

Layer 0: Endpoint/Host

MetricExpressionExample
process_nameexecutable_name
Process_Execution_Volumecount(process_start) / window
Rare_Process_Detectionz(process_rarity)
Process_Spawn_Raterate(process_spawn)
Living_Off_the_Landscore(lotl_usage)
process_hashsha256_or_md5
Known_Malware_Matchcount(known_hash) / window
Unknown_Hash_Detectioncount(unknown_hash) / window
Hash_Diversityuniq(process_hash)
First_Seen_Hashcount(new_hash) / window
parent_processparent_exec
Process_Tree_Anomalyscore(process_tree_anomaly)<span class="ktp-metric-detail" data-meso="Exploit detection; Outlook spawning cmd.exe is blocked." data-macro="Behavioral rules; defining "normal" parent-child relationships."normal" parent-child relationships."normal" parent-child relationships.">
Suspicious_Spawningcount(suspicious_spawn) / window
Injection_Detectioncount(injection) / window
Execution_Chain_Lengthavg(exec_chain_length)
process_cmd_linefull_command
Encoded_Commandcount(encoded_cmd) / window
Long_Command_Linez(cmd_length)
Suspicious_Patternsscore(cmd_pattern)
PowerShell_Cmdletscount(ps_cmdlet) / window
registry_keyreg_path
Run_Key_Modificationscount(run_key_change) / window
Service_Registry_Changescount(service_reg_change) / window
Persistence_Detectionscore(persistence_indicators)
Unusual_Key_Accesscount(unusual_reg_access) / window
file_operationenum(create, modify, delete)
File_Operations_Volumecount(file_op) / window
Mass_File_Changesz(file_op_rate)
Sensitive_File_Accesscount(sensitive_file) / window
Shadow_Copy_Deletioncount(shadow_copy_delete) / window
network_connection_locallocal_conn
Outbound_Connectionscount(outbound_conn) / window
Rare_Destinationz(dest_rarity)
Beaconing_Detectionscore(beaconing_pattern)
Port_Anomalyz(port_rarity)
usb_device_idusb_key
USB_Insert_Volumecount(usb_insert) / window
Unknown_USB_Devicecount(unknown_usb) / window
USB_Write_Volumecount(usb_write) / window
After_Hours_USBcount(usb_after_hours) / window

Layer 2: Meso Analysis

Physics Analogy

Statistical mechanics—the emergence of macroscopic properties from microscopic chaos. Just as temperature emerges from the average kinetic energy of particles, ARQ dimensions emerge from the statistical properties of telemetry events.

Aggregation Functions

The aggregation engine reduces cardinality while preserving signal. This is where millions become meaningful:

| Function | Purpose | Example | Preserves | |----------|---------|---------|-----------| | SUM | Total volume | Total errors | Magnitude | | AVG | Central tendency | Mean latency | Typical behavior | | MEDIAN | Robust center | Median response time | Typical behavior | | MIN | Lower bound | Min response time | Best-case behavior | | MAX | Upper bound | Max response time | Worst-case behavior | | MODE | Most common value | Most frequent status code | Typical behavior | | PERCENTILE(95) | Tail behavior | P95 response time | Worst cases | | PERCENTILE(99) | Extreme cases | P99 latency | Outliers | | COUNT_DISTINCT | Cardinality | Affected users | Scope | | STDDEV | Variability | Latency consistency | Stability | | HISTOGRAM(bucket) | Distribution shape | Latency histogram | Spread & density | | ROLLUP | Hierarchical aggregation | By service → region → org | Scope alignment | | TOPK(k) | Highest contributors | Top 10 noisy hosts | Concentration | | SMA(window) | Simple moving average | SMA(5m) latency | Trend smoothing | | EMA(alpha) | Weighted moving average | EMA(0.3) error rate | Trend smoothing | | RATE | Velocity | Requests/second | Throughput | | DELTA | Change over time | Error rate delta | Change detection |

Statistical Normalization

To compare "apples to oranges" (latency in ms vs. error rates in %), we apply Z-score normalization:

Z=xμσZ = \frac{x - \mu}{\sigma}

Where:

  • xx = Raw observed value
  • μ\mu = Historical mean (rolling 7-day)
  • σ\sigma = Historical standard deviation

Interpretation

Z-ScoreInterpretationAction
-2 to +2Normal varianceContinue monitoring
+2 to +3Notable deviationInvestigate
> +3 or < -3Significant anomalyAlert
> +4 or < -4Critical anomalyAuto-remediate

ARQ Dimension Calculation

Raw technical capability score composed of Availability (40%), Retainability (30%), and Quality (30%).

Availability (A)

Weight: 40% - Measures the ability to establish initial connection.

SignalWhy it mattersContribution
Physical layer connectivity and signal strengthConfirms the link is viable before higher layers can succeed.Stabilizes first-contact reliability and reduces retries.
Network address allocation success rateEnsures devices can obtain a usable network identity.Prevents early session failures and onboarding drop-offs.
Identity verification and access controlValidates the requester and policy compliance at the edge.Filters invalid access while keeping legitimate access fast.
Name resolution service availabilityGuarantees services can be discovered by clients.Removes the most common early-failure point in sessions.
Initial data transmission success rateConfirms the first payload crosses the link cleanly.Sets the baseline for downstream session continuity.

Retainability (R)

Weight: 30% - Measures the ability to maintain connection.

SignalWhy it mattersContribution
Connection stability over timeLong-lived sessions are sensitive to jitter and drops.Preserves continuity for real user workflows.
Seamless transition between access pointsMobility without interruption prevents session resets.Sustains engagement during roaming or handoffs.
Overall connection quality metricsCaptures sustained performance beyond initial access.Keeps sessions usable under real load conditions.
Automatic recovery from failuresFast recovery reduces user-visible interruptions.Converts transient faults into acceptable blips.

Quality (Q)

Weight: 30% - Measures the quality of the connection.

SignalWhy it mattersContribution
Round-trip time and response speedLatency dominates perceived responsiveness.Keeps interactions crisp and predictable.
Data transfer rate and bandwidthThroughput governs task completion time.Sustains heavy workflows without bottlenecks.
End-to-end application responsivenessMeasures real service behavior, not just transport.Aligns technical performance with user outcomes.
Perceived quality from user perspectiveCaptures the human judgment of the experience.Anchors Q to actual satisfaction signals.

Risk Deflation

Risk acts as friction—it opposes the positive effects of good performance:

Drisk=1Rscore100D_{risk} = 1 - \frac{R_{score}}{100}

| Risk Factor | Detection Source | Severity Multiplier | |-------------|------------------|---------------------| | Active CVEs (Critical) | Vuln scanner | 0.3 | | Active CVEs (High) | Vuln scanner | 0.15 | | Anomalous Traffic | ML detector | 0.2 | | Compliance Violation | Policy engine | 0.25 | | Certificate Issues | TLS monitor | 0.1 | | Data Exposure | DLP | 0.5 |


Layer 3: Macro Intelligence

Physics Analogy

Celestial mechanics and gravity—the E-score represents the gravitational pull of a digital experience, attracting or repelling users based on its strength.

Global Context

The Experience Score exists within a broader context that modulates its interpretation:

flowchart TB
    subgraph CONTEXT["Global Context Factors"]
        MKT[📈 Market Sentiment<br/><small>Social, news, analyst</small>]
        REG[🌍 Regional Events<br/><small>Sports, politics, weather</small>]
        CMP[🏢 Competitive Status<br/><small>Outages, launches, pricing</small>]
        SEA[📅 Seasonality<br/><small>Holidays, cycles, patterns</small>]
    end
    
    subgraph ADJUST["Context Multiplier"]
        CALC[Calculate<br/>context_mult]
    end
    
    MKT --> CALC
    REG --> CALC
    CMP --> CALC
    SEA --> CALC
    
    CALC --> |0.8 - 1.2| ESCORE[Experience Score]

    classDef dark fill:#121922,stroke:#cfd8e3,color:#f5f5f5;
    class MKT,REG,CMP,SEA,CALC,ESCORE dark;
    style CONTEXT fill:#121922,stroke:#cfd8e3,color:#f5f5f5
    style ADJUST fill:#121922,stroke:#cfd8e3,color:#f5f5f5

| Context Factor | Data Source | Range | Example Impact | |----------------|-------------|-------|----------------| | Market Sentiment | News API, social | ±10% | Negative press → stricter threshold | | Regional Events | Calendar, traffic | ±15% | Major event → higher expected load | | Competitor Status | Monitoring, news | ±5% | Competitor outage → relative advantage | | Seasonality | Historical patterns | ±20% | Holiday spike → adjusted baseline |

Experience Score Formula

The complete formula integrating all layers:

E=(AwA+RwR+QwQ)×Drisk×Ccontext×100E = \left( A \cdot w_A + R \cdot w_R + Q \cdot w_Q \right) \times D_{risk} \times C_{context} \times 100

Where:

| Variable | Description | Range | |----------|-------------|-------| | A,R,QA, R, Q | ARQ dimension values | 0.0 - 1.0 | | wA,wR,wQw_A, w_R, w_Q | Dynamic weights | Sum to 1.0 | | DriskD_{risk} | Risk deflation factor | 0.0 - 1.0 | | CcontextC_{context} | Context multiplier | 0.8 - 1.2 | | EE | Experience Score | 0 - 100 |

Full Calculation Example

# Input telemetry (aggregated)
Availability metrics:
  - Uptime: 99.95%
  - DNS Success: 99.99%
  - Connection Rate: 99.8%
  A = (0.9995 × 0.9999 × 0.998)^(1/3) = 0.9991

Retainability metrics:
  - Session Duration: 8.5 min (target: 10 min) → 0.85
  - Completion Rate: 94%
  - Recovery Rate: 88%
  R = (0.85 × 0.94 × 0.88)^(1/3) = 0.8893

Quality metrics:
  - P95 Response: 180ms (target: 200ms) → 0.90
  - Throughput: 95% of capacity
  - Render: 92% within threshold
  Q = (0.90 × 0.95 × 0.92)^(1/3) = 0.9231

# Weights (enterprise segment)
w_A = 0.30, w_R = 0.40, w_Q = 0.30

# Risk assessment
- 2 medium CVEs: 0.15 × 2 = 0.30
- Minor compliance gap: 0.05
Risk Score = 35
D_risk = 1 - 0.35 = 0.65

# Context
- Normal market conditions
- No regional events
- Competitor stable
C_context = 1.0

# Final calculation
ARQ_weighted = (0.9991 × 0.30) + (0.8893 × 0.40) + (0.9231 × 0.30)
ARQ_weighted = 0.2997 + 0.3557 + 0.2769 = 0.9323

E = 0.9323 × 0.65 × 1.0 × 100 = 60.6

Integration Points

  • Trust Flow Viewer


    Visualize how telemetry flows through the three-layer architecture in real-time.

  • Context Signals


    Understand the mathematical space where ARQ dimensions create the trust manifold.

  • KTP-Sensors RFC


    The formal specification for telemetry collection and sensor configuration.

  • Sensor Config Schema


    JSON schema for configuring telemetry collection agents.