SYSLOG Message Parsing with Length Prefixes

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

The existing SYSLOG message transfer protocols face issues with message loss, security vulnerabilities such as information falsification, leakage, and identity spoofing, and inefficient parsing due to the use of unreliable protocols like UDP and the complexity of parsing messages with secure protocols like TCP, which results in high processing consumption and potential errors.

Innovation Solution

Attaching message length information to each SYSLOG message allows for rapid identification and parsing of messages within a transport payload, improving reliability and security by enabling efficient message boundary detection and reducing errors.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Device complexity

If UDP is used to transfer SYSLOG messages, then the transfer protocol is simple and flexible, but message loss occurs and reliability deteriorates

Engineering Contradiction:
Improveprotocol complexityVSAvoidmessage transfer reliability
Core Design Contradiction:
Device complexityVSReliability

Solution Approach 1:

The patent segments the SYSLOG message transfer process into distinct phases: connection establishment, message transmission with length prefixes, and connection termination. Each phase is handled with specific TCP operations, allowing reliable transfer while maintaining structured complexity only where necessary for reliability.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent applies preliminary action by attaching the message length prefix before each SYSLOG message is transmitted. This pre-processing step enables the receiver to immediately know the message boundaries and length without requiring additional acknowledgment or parsing overhead, thus ensuring reliable transfer without increasing protocol complexity during message processing.

Inventive Principle:
Principle #10Preliminary action

2Reliability

If TCP is used to transfer SYSLOG messages, then transfer reliability improves, but message parsing complexity and processing consumption increase

Engineering Contradiction:
Improvemessage transfer reliabilityVSAvoidmessage parsing complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent applies preliminary action by attaching the message length prefix before each SYSLOG message is transmitted. This pre-processing step enables the receiver to immediately know the message boundaries and length without requiring additional acknowledgment or parsing overhead, thus ensuring reliable transfer without increasing protocol complexity during message processing.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The message length prefix acts as an intermediary element between the TCP transport layer and the SYSLOG application layer. It provides a clear delimiter that simplifies the interface between reliable TCP delivery and simple text-based SYSLOG processing, reducing parsing complexity while maintaining reliability.

Inventive Principle:
Principle #24Intermediary (Mediator)

3Reliability

If secure protocols like TLS or SSH are used to transfer SYSLOG messages, then security improves, but message parsing complexity and processing consumption increase

Engineering Contradiction:
Improvemessage securityVSAvoidmessage parsing complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent segments the secure message transfer into two independent layers: the secure transport layer (TLS/SSH) handling encryption and authentication, and the SYSLOG layer handling message formatting and content. The length prefix is inserted at the SYSLOG layer, allowing simple parsing of the application layer while relying on the transport layer for security.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The message length prefix acts as an intermediary element between the TCP transport layer and the SYSLOG application layer. It provides a clear delimiter that simplifies the interface between reliable TCP delivery and simple text-based SYSLOG processing, reducing parsing complexity while maintaining reliability.

Inventive Principle:
Principle #24Intermediary (Mediator)

4Productivity

If multiple SYSLOG messages are arranged in one TCP message, then transfer efficiency improves, but message boundary identification complexity increases

Engineering Contradiction:
Improvemessage transfer efficiencyVSAvoidmessage boundary identification complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The patent applies preliminary action by attaching the message length prefix before each SYSLOG message is transmitted. This pre-processing step enables the receiver to immediately know the message boundaries and length without requiring additional acknowledgment or parsing overhead, thus ensuring reliable transfer without increasing protocol complexity during message processing.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The message length prefix acts as an intermediary element between the TCP transport layer and the SYSLOG application layer. It provides a clear delimiter that simplifies the interface between reliable TCP delivery and simple text-based SYSLOG processing, reducing parsing complexity while maintaining reliability.

Inventive Principle:
Principle #24Intermediary (Mediator)

Data Source

PatentUS9241048B2Mechanism for processing network event protocol messages
Publication Date: 2016.01.19 HUAWEI TECH CO LTD
  • US9241048B2 patent drawing
  • US9241048B2 patent drawing
  • US9241048B2 patent drawing

AI summary

A communication system includes a first apparatus and a second apparatus. The first apparatus is configured to: attach first and second message length information to a first and second SYSLOG message, respectively; form at least a portion of a transport payload by adding a first portion and a second portion thereto, wherein the first portion includes the first SYSLOG message with the attached first message length information, and the second portion includes the second SYSLOG message with the attached second message length information; and send the transport payload. The second apparatus is configured to: parse the first and second SYSLOG messages one by one from the transport payload.