Network Device Conversion Apparatus for CPU Packet Identification
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Different switch chips use varying private protocols for adding information headers to packets, making it difficult for CPUs to identify and process packets effectively, leading to issues with packet diversion.
Innovation Solution
A conversion apparatus is introduced to migrate the private information header from the Ethernet header to a specified position within the packet, such as the last N idle bytes in the payload, and recalculate the CRC code, allowing the CPU to process packets without interference from the private information header.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Loss of information
If a private information header is added to the Ethernet header according to a private protocol, then the CPU can obtain packet characteristics, but the CPU cannot normally identify the packets due to different private protocols used by different switch chips
Solution Approach 1:
The patent extracts the private information header from the Ethernet header and places it in a specific position within the packet payload. This separation allows the CPU to process packets using standard Ethernet headers while the extracted private information header contains the packet characteristics needed for processing, thus resolving the conflict between obtaining packet characteristics and maintaining CPU packet identification capability across different switch chip protocols
Solution Approach 2:
The patent introduces a conversion apparatus as an intermediary between the switch chip and the CPU. This conversion apparatus translates private information headers from different switch chip protocols into a standardized format, enabling the CPU to identify and process packets from multiple switch chips without being affected by protocol differences, thus improving adaptability while preserving packet characteristic information
2Adaptability or versatility
If different switch chips use different private protocols, then each switch chip can add packet characteristics, but the CPU cannot identify packets effectively, affecting packet diversion
Solution Approach 1:
The patent creates a universal packet structure where the private information header is positioned in a standardized location within the packet payload, independent of the switch chip protocol. This universal structure allows different switch chips with different private protocols to all produce packets that the CPU can identify and divert effectively, thus achieving multi-functionality across different hardware platforms while simplifying CPU operation
Data Source
AI summary
A network device includes a switch chip and a CPU, wherein the switch chip at least includes a CPU interface, and the CPU at least includes a media access controller and a Buffer. The network device further includes a conversion apparatus. The conversion apparatus receives a first packet uploaded by the switch chip to the CPU through the CPU interface, obtains a second packet by migrating a private information header in an Ethernet header of the first packet to a specified position of the first packet, calculates a Cyclic Redundancy Check, CRC, code of the second packet, obtains a third packet by replacing a CRC code already carried in the second packet with the calculated CRC code, and sends the third packet to the Buffer on the CPU for buffering, wherein the specified position is a position other than the Ethernet header in the first packet.


