Network Protocol
Synopsis
A network analysis processor that converts IP protocol numbers to their corresponding human-readable protocol names using the IANA protocol number registry, enhancing network traffic analysis and security monitoring.
Schema
- network_protocol:
field: <ident>
target_field: <ident>
description: <text>
if: <script>
ignore_failure: <boolean>
ignore_missing: <boolean>
on_failure: <processor[]>
on_success: <processor[]>
tag: <string>
Configuration
The following fields are used to define the processor:
Field | Required | Default | Description |
---|---|---|---|
field | Y | - | Field containing the protocol number to convert |
target_field | N | field | Field to store the protocol name |
description | N | - | Explanatory note |
if | N | - | Condition to run |
ignore_failure | N | false | Continue if conversion fails |
ignore_missing | N | false | Continue if source field doesn't exist |
on_failure | N | - | See Handling Failures |
on_success | N | - | See Handling Success |
tag | N | - | Identifier |
Details
The processor maintains a comprehensive mapping of IANA protocol numbers to their standard names, supporting all registered protocols including TCP, UDP, ICMP, and many specialized protocols used in modern networking.
The processor supports multiple input formats including integers, floats, and string representations of protocol numbers.
Protocol number resolution follows the official IANA registry for Internet Protocol Numbers. Unknown or unassigned protocol numbers are handled gracefully by returning a formatted "UNKNOWN(number)" string for debugging purposes.
The processor automatically handles type conversion from various numeric types and string representations. Floating-point values are truncated to integers during conversion.
Ensure protocol number fields contain valid numeric values to avoid conversion errors.
Examples
Basic Protocol Conversion
Converting common protocol numbers... |
|
produces readable protocol names: |
|
In-Place Conversion
Converting protocol number in place... |
|
replaces the original field: |
|
Multiple Protocol Fields
Processing multiple protocol fields... |
|
identifies all protocols: |
|
Unknown Protocol Handling
Handling unknown protocol numbers... |
|
provides fallback identification: |
|
IPv6 Protocol Conversion
Converting IPv6-specific protocols... |
|
identifies IPv6 protocols: |
|
Conditional Protocol Analysis
Converting protocols based on conditions... |
|
applies conversion when conditions match: |
|