eBPF Traffic Routing for Cloud-Network Encryption

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Service mesh and CNI plugins fail to dynamically handle cloud-native workloads that use both encrypted and unencrypted traffic, leading to double encryption and inefficient routing.

Innovation Solution

Implementing an extended Berkeley Packet Filter (eBPF) program to detect whether traffic is encrypted or unencrypted, redirecting unencrypted traffic through an encrypted tunnel and encrypted traffic outside of it, using agents and eBPF maps to configure IPsec tunnels and load certificates dynamically.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If encrypted tunnels are statically configured using a CNI plugin, then secure pod to pod communications are provided, but both encrypted and unencrypted traffic traverse the same tunnel causing double encryption

Engineering Contradiction:
Improvesecure communicationVSAvoidtraffic routing complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent implements dynamic traffic routing where the system automatically detects whether traffic is encrypted or unencrypted and dynamically adjusts the routing path. Encrypted traffic is routed directly without tunneling, while unencrypted traffic is routed through encrypted tunnels. This dynamic adaptation eliminates double encryption and optimizes security based on actual traffic requirements.

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The patent applies different security treatments to different types of traffic based on their encryption status. Instead of applying a uniform encrypted tunnel to all traffic, the system provides localized security appropriate to each traffic type: encrypted traffic receives direct routing while unencrypted traffic receives tunnel-based protection. This local quality approach prevents unnecessary double encryption.

Inventive Principle:
Principle #3Local quality

2Reliability

If all traffic is routed through encrypted tunnels, then all traffic has encryption protection, but encrypted traffic becomes double encrypted reducing efficiency

Engineering Contradiction:
Improveencryption coverageVSAvoidtraffic processing efficiency
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The system dynamically determines the routing path based on the encryption status of incoming traffic. By inspecting traffic characteristics and dynamically selecting appropriate routes, the system ensures that already-encrypted traffic bypasses additional encryption layers while unencrypted traffic receives necessary protection. This dynamic routing maintains encryption coverage where needed while preserving processing efficiency.

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The patent introduces an intermediary component (the routing system with eBPF programs) that sits between the traffic source and destination to intelligently direct traffic flows. This intermediary detects traffic encryption status and mediates the routing decision, directing encrypted traffic through efficient direct paths and unencrypted traffic through secure tunnel paths, thereby optimizing overall system productivity.

Inventive Principle:
Principle #24Intermediary (Mediator)

3Adaptability or versatility

If eBPF programs are used to detect encrypted vs unencrypted traffic, then traffic can be routed appropriately, but system complexity increases

Engineering Contradiction:
Improvetraffic type detection capabilityVSAvoidsystem architecture complexity
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The patent replaces traditional mechanical or manual traffic inspection methods with eBPF (extended Berkeley Packet Filter) programs running in the kernel space. This substitution enables efficient, programmatic detection of traffic encryption status without requiring complex external inspection systems. The eBPF programs provide adaptability in detecting different traffic types while maintaining system efficiency through kernel-level optimization.

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

Data Source

PatentUS20250023852A1Automatic encryption for cloud-native workloads
Publication Date: 2025.01.16 CISCO TECHNOLOGY INC
  • US20250023852A1 patent drawing
  • US20250023852A1 patent drawing
  • US20250023852A1 patent drawing

AI summary

Techniques for routing service mesh traffic based on whether the traffic is encrypted or unencrypted are described herein. The techniques may include receiving, from a first node of a cloud-based network, traffic that is to be sent to a second node of the cloud-based network and determining whether the traffic is encrypted or unencrypted. If it is determined that the traffic is encrypted, the traffic may be sent to the second node via a service mesh of the cloud-based platform. Alternatively, or additionally, if it is determined that the traffic is unencrypted, the traffic may be sent to the second node via an encrypted tunnel. In some examples, the techniques may be performed at least partially by a program running on the first node of the cloud-based network, such as an extended Berkeley Packet Filter (eBPF) program, and the like.