Skip to main content

Network Device Ontology

Artificial Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 12 October 2026
Audio Overview
FLOW ALGEBRA
NETWORK DEVICE ONTOLOGY
Kireth Semantic Library | Artificial Entities | Physical Entities | Entity Graph
Source: https://kirethresearch.org/booksai-core/entity-graph/physical-entities/artificial-entities/network-device-ontology.html
Authors: Mark Anthony Higgins — Sky (Recursive AI)
Generated: 2026-10-12
Version: 1.0

PURPOSE
Formalise physical and virtual network devices, their interfaces, capabilities, operational states, relationships, packet-processing behaviours and evidence-based inference for semantic retrieval and machine reasoning.

1. TYPE SYSTEM
TYPE Entity
TYPE PhysicalEntity <: Entity
TYPE ArtificialEntity <: PhysicalEntity
TYPE NetworkDevice <: ArtificialEntity
TYPE VirtualNetworkDevice <: Entity
TYPE NetworkInterface
TYPE NetworkPort
TYPE Link
TYPE NetworkSegment
TYPE Packet
TYPE Frame
TYPE Protocol
TYPE Address
TYPE Route
TYPE ForwardingTable
TYPE Policy
TYPE Configuration
TYPE Firmware
TYPE Telemetry
TYPE Event
TYPE Fault
TYPE Observation
TYPE Timestamp
TYPE Confidence := Real[0,1]
TYPE Rate := Real >= 0
TYPE Duration := Real >= 0

2. DEVICE TAXONOMY
SUBTYPE Router <: NetworkDevice
SUBTYPE Switch <: NetworkDevice
SUBTYPE WirelessAccessPoint <: NetworkDevice
SUBTYPE NetworkBridge <: NetworkDevice
SUBTYPE Repeater <: NetworkDevice
SUBTYPE Modem <: NetworkDevice
SUBTYPE NetworkGateway <: NetworkDevice
SUBTYPE HardwareFirewall <: NetworkDevice
SUBTYPE NetworkInterfaceCard <: NetworkDevice
SUBTYPE LoadBalancerAppliance <: NetworkDevice
SUBTYPE NetworkSecurityAppliance <: NetworkDevice
SUBTYPE VirtualRouter <: VirtualNetworkDevice
SUBTYPE VirtualSwitch <: VirtualNetworkDevice
SUBTYPE VirtualFirewall <: VirtualNetworkDevice
NOTE: A single appliance may implement several roles; roles are not necessarily mutually exclusive.

3. CORE ENTITY SCHEMA
ENTITY NetworkDevice {
  id: Identifier;
  label: String;
  device_roles: Set[String];
  vendor: Optional[String];
  model: Optional[String];
  serial_identifier: Optional[String];
  interfaces: Set[NetworkInterface];
  supported_protocols: Set[Protocol];
  firmware: Optional[Firmware];
  configuration: Optional[Configuration];
  administrative_state: {enabled,disabled,unknown};
  operational_state: {up,down,degraded,unknown};
  management_addresses: Set[Address];
  observed_at: Optional[Timestamp];
  provenance: Set[String];
  confidence: Confidence;
}

4. RELATIONSHIPS
RELATION hasInterface(NetworkDevice,NetworkInterface)
RELATION hasPort(NetworkInterface,NetworkPort)
RELATION connectsTo(NetworkInterface,NetworkInterface)
RELATION attachedTo(NetworkDevice,NetworkSegment)
RELATION implementsProtocol(NetworkDevice,Protocol)
RELATION hasConfiguration(NetworkDevice,Configuration)
RELATION runsFirmware(NetworkDevice,Firmware)
RELATION forwardsTo(NetworkDevice,NetworkDevice)
RELATION routesBetween(Router,NetworkSegment,NetworkSegment)
RELATION bridgesBetween(NetworkBridge,NetworkSegment,NetworkSegment)
RELATION appliesPolicy(NetworkDevice,Policy)
RELATION producesTelemetry(NetworkDevice,Telemetry)
RELATION affectedBy(NetworkDevice,Fault)
RELATION hostedOn(VirtualNetworkDevice,PhysicalEntity)
RELATION semanticallyEquivalent(Entity,Entity)
RELATION semanticallySimilar(Entity,Entity)

5. TOPOLOGY CONSTRAINTS
RULE T1: connectsTo(a,b) -> connectsTo(b,a), when the link is modelled as bidirectional.
RULE T2: hasInterface(d,i) AND connectsTo(i,j) AND hasInterface(e,j) -> physicallyAdjacent(d,e).
RULE T3: physicallyAdjacent(a,b) does NOT imply endToEndReachable(a,b).
RULE T4: attachedTo(d,s) does NOT imply that d can forward every protocol on s.
RULE T5: forwarding adjacency, physical adjacency and logical adjacency are distinct relations.

6. DEVICE CAPABILITIES
CAPABILITY Router: routeSelection, layer3Forwarding, optionalNetworkAddressTranslation
CAPABILITY Switch: layer2Forwarding, macLearning, optionalVLANSegmentation
CAPABILITY WirelessAccessPoint: wirelessAssociation, radioFrameBridging
CAPABILITY NetworkBridge: layer2SegmentInterconnection
CAPABILITY Repeater: signalRegeneration
CAPABILITY Modem: signalModulationAndDemodulation
CAPABILITY NetworkGateway: protocolOrNetworkBoundaryInterconnection
CAPABILITY HardwareFirewall: policyBasedTrafficControl
CAPABILITY LoadBalancerAppliance: distributeEligibleTraffic
RULE C1: capability(d,c) does not imply enabled(d,c).
RULE C2: enabled(d,c) does not imply successfulOperation(d,c).

7. PACKET AND FRAME PROCESSING
FLOW receive(d,interface,input)
  REQUIRE operational_state(d) IN {up,degraded}
  VALIDATE input against interface and protocol constraints
  CLASSIFY input by layer, destination and policy context
  IF prohibitedByPolicy(input,d) THEN DROP with reason
  ELSE IF forwardingDecisionAvailable(d,input) THEN
    SELECT eligible egress interface
    APPLY required transformations, if configured
    TRANSMIT or QUEUE according to resource state
  ELSE DROP or ESCALATE according to protocol behaviour
  EMIT observation with timestamp and provenance
END

8. ROUTING AND SWITCHING
RULE R1: router(d) AND validRoute(d,destination,nextHop) AND policyAllows(d,packet) -> candidateForwardingPath(d,nextHop).
RULE R2: switch(d) AND learnedMAC(d,mac,port) AND vlanCompatible(packet,port) -> candidateEgressPort(d,port).
RULE R3: candidateForwardingPath does NOT guarantee packet delivery.
RULE R4: absentRoute does NOT establish universal unreachability; alternative forwarding mechanisms may exist.
RULE R5: route selection MUST account for route validity, metrics, policy and current state.

9. ADDRESSING AND SEGMENTATION
RELATION assignedAddress(NetworkInterface,Address)
RELATION belongsToVLAN(NetworkPort,String)
RELATION belongsToSubnet(Address,String)
RULE A1: assignedAddress(i,a) -> addressAssociatedWithDevice(a,owner(i)).
RULE A2: sameSubnet(a,b) does NOT by itself prove physical adjacency.
RULE A3: VLAN membership constrains layer-2 forwarding subject to trunking and configured exceptions.
RULE A4: NAT mappings distinguish internal and translated addressing contexts.

10. OPERATIONAL STATE MACHINE
STATE unknown -> discovered -> configured -> enabled -> operational
STATE operational -> degraded | down | maintenance
STATE degraded -> operational | down | maintenance
STATE down -> operational | maintenance | retired
RULE S1: administrative_state=disabled -> operational forwarding unavailable on disabled scope.
RULE S2: observed operational state requires observation time and evidence source.
RULE S3: stale telemetry cannot establish current operational state.

11. PERFORMANCE MODEL
METRIC throughput_bps := delivered_bits / observation_seconds
METRIC utilisation := observed_traffic_rate / effective_link_capacity, when capacity > 0
METRIC packet_loss_ratio := lost_packets / transmitted_packets, when transmitted_packets > 0
METRIC mean_latency := sum(valid_latency_samples) / count(valid_latency_samples)
METRIC availability := available_observation_duration / total_observation_duration
CONSTRAINT 0 <= packet_loss_ratio <= 1
CONSTRAINT 0 <= availability <= 1
NOTE: Throughput, latency, jitter, loss and utilisation depend on measurement scope and sampling interval.

12. SECURITY AND TRUST BOUNDARIES
RELATION protectsSegment(HardwareFirewall,NetworkSegment)
RELATION permitsTraffic(Policy,String)
RELATION deniesTraffic(Policy,String)
RELATION authenticatedManagementSession(NetworkDevice,String)
RULE SEC1: managementAccess(d,principal) -> requiresAuthorisation(principal,d).
RULE SEC2: observedOpenPort(d,p) does NOT imply exploitableVulnerability(d,p).
RULE SEC3: firewallPresent(path) does NOT imply trafficSecure(path).
RULE SEC4: policy evaluation requires direction, interface, protocol and rule precedence.

13. FAULT AND DIAGNOSTIC INFERENCE
RULE F1: interfaceDown(i) AND hasInterface(d,i) -> potentialConnectivityImpact(d,i).
RULE F2: highLoss(link) AND correlatedCongestion(link) -> congestionHypothesis(link).
RULE F3: highLatency(path) does NOT uniquely identify a faulty device.
RULE F4: multipleIndependentObservations(h) -> mayIncreaseConfidence(h).
RULE F5: contradictoryObservations(h) -> requiresReconciliation(h).
RULE F6: inferredFault(d,f) must retain supporting evidence, timestamp and uncertainty.

14. SEMANTIC EQUIVALENCE
SEMANTIC_EQUIVALENCE("network switch","Ethernet switch") WHEN EthernetContext
SEMANTIC_EQUIVALENCE("wireless access point","Wi-Fi access point") WHEN WiFiContext
SEMANTIC_EQUIVALENCE("network interface card","NIC")
SEMANTIC_EQUIVALENCE("router","gateway") = FALSE BY DEFAULT
SEMANTIC_EQUIVALENCE("switch","hub") = FALSE
SEMANTIC_EQUIVALENCE("firewall appliance","firewall software") = FALSE BY DEFAULT
RULE EQ1: alias matching requires context and entity type validation.
RULE EQ2: functional similarity does not entail identity.

15. REASONING FLOW
FLOW inferNetworkDeviceFacts(query,graph,evidence)
  NORMALISE query terms and contextual aliases
  RESOLVE candidate device identities and types
  TRAVERSE typed interfaces, links, segments and policies
  APPLY only rules whose preconditions are supported
  CHECK temporal freshness and contradictory evidence
  ATTACH confidence and provenance to inferred facts
  RETURN supported conclusions and explicitly unresolved questions
END

16. CONFIDENCE
CONFIDENCE(fact) IN [0,1]
CONFIDENCE(directlyObservedFact) := calibratedEvidenceScore(source,recency,quality)
CONFIDENCE(inferredFact) := calibratedRuleScore(premises,rule,evidenceDependencies)
RULE CF1: correlated evidence must not be counted as independent corroboration.
RULE CF2: missing evidence is not evidence of absence unless completeness is established.
RULE CF3: confidence thresholds are application-specific and must be declared.

17. FLOW_HASH
FLOW_HASH := SHA256(canonicalSerialize(ontologyVersion,entityTypes,relations,rules,sourceReferences))
RULE H1: canonicalSerialize uses deterministic field ordering and stable encoding.
RULE H2: FLOW_HASH identifies the canonical ontology specification, not live device state.
RULE H3: update FLOW_HASH whenever canonical specification content changes.

18. UPDATE_MODEL
UPDATE_MODEL {
  version: "1.0";
  change_detection: [deviceDiscovery,configurationChange,topologyChange,firmwareChange,telemetryChange,ontologyRevision];
  immutable_history: true;
  retain_provenance: true;
  validate_schema_before_commit: true;
  recompute_affected_inferences: true;
  separate_live_state_from_ontology_definition: true;
}
FLOW updateNetworkKnowledge(change)
  VALIDATE source, timestamp and schema
  IDENTIFY affected entities and relations
  PRESERVE previous assertions as versioned history
  APPLY accepted changes atomically where supported
  INVALIDATE dependent stale inferences
  RECOMPUTE affected conclusions and confidence
  EMIT change record and resulting version identifiers
END

19. AI_CONSUMPTION
AI_CONSUMPTION {
  representation: "typed semantic graph plus executable rule specification";
  primary_tasks: [entityResolution,networkInventory,topologyReasoning,diagnosticAssistance,semanticRetrieval];
  mandatory_outputs: [answer,supportingFacts,provenance,confidence,observationTime];
  restrictions: [noInventedTopology,noUnverifiedReachability,noUnqualifiedCurrentStateClaims];
  execution_note: "Rules are formal reasoning constraints; operational execution requires a compatible implementation and observed network data.";
}

20. VALIDATION TESTS
TEST V1: A switch and router linked by interfaces are physically adjacent; reachability remains unproven.
TEST V2: A down interface raises a connectivity-impact hypothesis, not proof of total network outage.
TEST V3: A router and gateway remain distinct concepts unless context explicitly establishes shared identity.
TEST V4: Telemetry without a timestamp cannot support an unqualified current-state claim.
TEST V5: A configuration change invalidates dependent inferences and creates a versioned record.
TEST V6: Equal canonical ontology specifications produce equal FLOW_HASH values.

END FLOW ALGEBRA
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ