Packet Forwarding via Dual Data Table Identifier Matching

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing packet forwarding technologies using virtual switches face errors due to invalid connection information when the connection status or control plane configuration changes, leading to inefficient packet forwarding.

Innovation Solution

A method and apparatus for packet forwarding that involves maintaining two data tables: a first data table for established connection cache information and a second data table for real-time connection information, where packets are forwarded based on matching identifiers, ensuring valid connection information is used and updating identifiers when changes occur.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Speed

If connection information is saved to a quick table for fast forwarding, then packet forwarding speed is improved, but forwarding errors increase when connection status or configuration changes

Engineering Contradiction:
Improvepacket forwarding speedVSAvoidforwarding accuracy
Core Design Contradiction:
SpeedVSReliability

Solution Approach 1:

The patent divides the connection information storage into two separate tables: a first data table for storing connection cache information and a second data table for storing real-time connection status. This segmentation allows the system to maintain fast forwarding using cached information while separately tracking changes, thereby resolving the contradiction between forwarding speed and accuracy.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent implements a feedback mechanism where the second data table continuously monitors connection status changes and sends updates to the first data table. When connection information changes, the system receives feedback about the updated status and adjusts the cache accordingly, ensuring forwarding accuracy is maintained while preserving speed benefits.

Inventive Principle:
Principle #23Feedback

2Reliability

If connection information is updated in real-time, then forwarding accuracy is improved, but system complexity increases due to multiple data tables and identifier management

Engineering Contradiction:
Improveforwarding accuracyVSAvoiddata table management complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent creates a copy of the connection information in the first data table that mirrors the second data table's real-time status. Instead of managing complex update mechanisms directly, the system uses this copy approach where the first table serves as a read-optimized view of the second table's data, simplifying the overall management while maintaining accuracy.

Inventive Principle:
Principle #26Copying

Solution Approach 2:

The patent introduces connection identifiers as an intermediary element that links the first and second data tables. These identifiers act as mediators between the cached information and real-time status, allowing the system to manage complexity by using simple reference keys rather than complex direct synchronization mechanisms.

Inventive Principle:
Principle #24Intermediary (Mediator)

3Reliability

If invalid connection information is removed from cache tables, then forwarding errors are reduced, but processing time increases due to table traversal

Engineering Contradiction:
Improveforwarding accuracyVSAvoidpacket processing time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The patent performs preliminary action by continuously maintaining the second data table with real-time connection status updates. This pre-prepared status information is immediately available when packets arrive, eliminating the need to traverse tables to find valid information and reducing processing time while ensuring accuracy.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent extracts the validity determination logic from the packet forwarding process by using the second data table as a separate reference. Instead of traversing the first table to check validity, the system extracts the real-time status from the second table, significantly reducing processing time while maintaining accuracy.

Inventive Principle:
Principle #2Taking out (Extraction)

Data Source

PatentUS11050667B2Packet forwarding method, device, switch, apparatus, and storage medium
Publication Date: 2021.06.29 BEIJING KINGSOFT CLOUD NETWORK TECH CO LTD
  • US11050667B2 patent drawing
  • US11050667B2 patent drawing
  • US11050667B2 patent drawing

AI summary

A method, apparatus, switch, device for packet forwarding and storage medium are disclosed. The method includes: obtaining a packet to be forwarded; detecting whether a first data table contains connection cache information corresponding to the packet; obtaining a first identifier of the connection cache information from the first data table if the first data table contains the connection cache information corresponding to the packet; obtaining connection information corresponding to the connection cache information from a second data table, and determining a second identifier of the connection cache information, wherein the second identifier is a current connection identifier corresponding to the connection cache information and changes when the connection information changes; and forwarding the packet based on the connection cache information if the second identifier is the same as the first identifier. The method for packet forwarding according an embodiment of the present application can reduce errors in packet forwarding.