Stateful Loop Detection via Address Swapping
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Current loop detection methods in stateful network devices are inadequate, as they rely on non-stateful features like TTL counters and unicast Reverse Path Forwarding, which do not effectively mitigate forwarding loops, especially when network address translation is used, leading to resource wastage and difficulty in troubleshooting.
Innovation Solution
A stateful device detects loops by swapping and checking source and destination identification against its stateful connection table, allowing for immediate packet dropping and subsequent traffic blocking to prevent resource overload and facilitate loop resolution.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Ease of manufacture
If TTL counters and unicast Reverse Path Forwarding are used for loop detection, then the detection mechanism is simple to implement, but the effectiveness of loop mitigation is poor, especially when network address translation is used
Solution Approach 1:
The patent changes the detection parameter from non-stateful TTL counters to stateful connection table lookups with swapped source and destination addresses. This parameter change enables reliable loop detection even with network address translation by using the stateful connection information that tracks the actual packet flow path.
Solution Approach 2:
The patent creates a virtual copy of the packet flow path by swapping source and destination addresses in the stateful connection table. This copied path information allows the system to detect loops without modifying actual packet traffic, maintaining simplicity while improving reliability.
2Device complexity
If existing loop detection methods are used, then device complexity is low, but resource wastage occurs and troubleshooting becomes difficult
Solution Approach 1:
The stateful device uses its existing stateful connection table to detect loops, making the system self-service. The patent leverages the already-maintained connection tracking infrastructure to perform loop detection, eliminating the need for separate complex detection mechanisms and reducing resource wastage.
Solution Approach 2:
The patent implements feedback by checking the stateful connection table after swapping source and destination addresses. This feedback mechanism immediately identifies loops and allows the system to take mitigation actions, preventing resource wastage while maintaining acceptable complexity.
3Adaptability or versatility
If packets are allowed to loop through the network, then network address translation can function, but forwarding loops cause resource overload and performance degradation
Solution Approach 1:
The patent applies preliminary anti-action by detecting loops before they cause significant resource overload. The stateful connection table check with address swapping identifies loops early, allowing the system to take preventive mitigation actions that protect network processing efficiency while maintaining NAT functionality.
Solution Approach 2:
The patent converts the harmful looped packets into beneficial detection signals. By swapping addresses and checking the stateful connection table, the system uses the looped packets themselves as the detection mechanism, turning the harmful phenomenon into a useful diagnostic tool that protects overall network efficiency.
Data Source
AI summary
In one embodiment, a stateful device receives a packet on a particular interface of a stateful device in a computer network, where the packet includes source identification and destination identification. The source identification and destination identification of the packet may then be swapped and checked against a stateful connection table managed at the stateful device for the particular interface, such that a loop may be detected at the particular interface in response to the swapped source identification and destination identification matching an existing entry in the stateful connection table. In the event there is such a detected loop, the packet (e.g., and any subsequent similar packets) may to be dropped, accordingly.


