# US 2010/0250920 A1 · Techniques for packet processing with removal of ip layer routing dependencies

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2010/0250920 A1
- Document ID: US20100250920A1
- Status: Published application
- Kind: A1
- Application number: 12/414,915
- Filed: 2009-03-31
- Published: 2010-09-30
- Earliest claimed: 2009-03-31
- Assignees: Novell, Inc.
- Inventors: K. Sarath Chandrika
- Web page: https://patentgrep.com/patent/US20100250920A1

## CPC

- H04L 12/4641: {Virtual LANs, VLANs, e.g. virtual private networks [VPN] (LAN interconnection over a bridge based backbone H04L12/462; encapsulation techniques H04L12/4633; routing of packets H04L45/00; packet switches H04L49/00; virtual private networks for security H04L63/0272)}
- H04L 12/4633: {Interconnection of networks using encapsulation techniques, e.g. tunneling}
- H04L 63/0272: {Virtual private networks}
- H04L 63/164: {at the network layer}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Techniques for packet processing with removal of Internet Protocol (IP) layer routing dependencies are presented. Encrypted packets associated with network communications occurring via a VPN and IP tunnel are grabbed off the network stack before being processed by an IP layer of the network stack. Next, an IP header is generated for the encrypted packets and the encrypted packets are sent to a socket application. The socket application provides the encrypted packets back to the network stack at the data link layer for delivery to the VPN over the IP tunnel.

## Claims

### Claim 1

A method implemented and residing in a computer-readable storage medium to process on a processor that is configured to execute the method and the method, comprising:
intercepting, by the processor, an encrypted packet before the encrypted packet is processed by an Internet Protocol (IP) layer of a network communication stack, the encrypted packet was being directed through the network communication stack to a Virtual Private Network (VPN) that is using an IP tunnel at the data link layer of the network communication stack;
generating, by the processor, an IP header for the encrypted packet outside the IP layer of the network communication stack; and
sending, by the processor, the encrypted packet with the generated IP header to a socket application for direct delivery to the data link layer of the network communication stack and for injection into the VPN via the IP tunnel.

### Claim 2 (depends on 1)

The method of claim 1, wherein intercepting further includes, intercepting the encrypted packet after a Transmission Control Protocol (TCP) layer of the network communication stack adds a TCP header to the encrypted packet.

### Claim 3 (depends on 1)

The method of claim 1, wherein generating further includes adding a route specified for a VPN server of the VPN to the generated IP header and including the route with the encrypted packet.

### Claim 4 (depends on 1)

The method of claim 1, wherein generating further includes adding a source IP address and a destination IP address to the generated IP header.

### Claim 5 (depends on 4)

The method of claim 4, wherein adding further includes, augmenting the generated IP header with subnet masks.

### Claim 6 (depends on 5)

The method of claim 5, wherein sending further includes verifying, by the socket application, the source IP address, the destination IP address, and the subnet masks.

### Claim 7 (depends on 6)

The method of claim 6, wherein verifying further includes determining, by the socket application, to abort processing and to not deliver the encrypted packet to the data link layer and IP tunnel when the source IP address, the destination IP address, or the subnet masks cannot be verified by the socket application.

### Claim 8 (depends on 1)

The method of claim 1, wherein sending further includes sending the encrypted packet with the generated IP header to the socket application via a socket IP address and port number combination that identifies the socket application that will inject the encrypted packet with the generated IP header into the data link layer of the network communication stack.

### Claim 9

A method implemented and residing in a computer-readable storage medium to process on a processor that is configured to execute the method and the method, comprising:
receiving, by the processor, an encrypted packet destined for a Virtual Private Network (VPN) via an Internet Protocol (IP) tunnel at a data link layer of a network communication stack, the encrypted packet bypassed the IP layer of the network communication stack but still includes an IP header;
verifying, by the processor, a source IP address and a destination IP address for the encrypted packet; and
sending, by the processor, the encrypted packet to the data link layer for delivery to the VPN over the IP tunnel when the source IP address and the destination IP address are verified and when the source IP address or the destination IP address are not validated terminating processing of the encrypted packet without deliver to the data link layer.

### Claim 10 (depends on 9)

The method of claim 9, wherein receiving further includes acquiring the encrypted packet from an application executing on the processor that intercepts the encrypted packet from a Transmission Control Protocol (TCP) layer of the network communication stack after the TCP layer added a TCP header to the encrypted packet.

### Claim 11 (depends on 9)

The method of claim 9, wherein receiving further includes acquiring a route for a VPN server of the VPN from the IP header.

### Claim 12 (depends on 11)

The method of claim 11, wherein acquiring further includes verifying the route and when the route is not verified terminate processing and abort delivery of the encrypted packet to the data link layer of the network communication stack.

### Claim 13 (depends on 9)

The method of claim 9, wherein verifying further includes verifying subnet masks included with the IP header.

### Claim 14 (depends on 13)

The method of claim 13, wherein sending further includes terminating processing and abort delivery of the encrypted packet to the data link layer of the network communication stack when the subnet masks are not verified.

### Claim 15 (depends on 9)

The method of claim 9 further comprising, processing the method, by the processor as a socket application at a kernel level of an operating system for the processor.

### Claim 16

A processor-implemented system residing in a computer-readable storage medium and adapted to be executed by a processor of a network, comprising:
a stack intercepting service residing in a computer-readable medium and executed by the processor; and
a socket application residing in a computer-readable medium and executed by the processor;
wherein the stack intercepting service is to intercept a packet being sent through a network stack after the packet exits a Transmission Control Protocol (TCP) layer of the network stack and before the packet is processed by an Internet Protocol (IP) layer of the network stack, and the stack intercepting service is to add an IP header to the packet and provide the packet with the IP header to the socket application, the socket application is to deliver the packet with the IP header directly back to the network stack at the data link layer where the packet is injected into an IP tunnel for delivery over a Virtual Private Network (VPN).

### Claim 17 (depends on 16)

The system of claim 16, wherein the stack intercepting service receives the packet with a TCP header that was added at the TCP layer of the network stack.

### Claim 18 (depends on 17)

The system of claim 17, wherein the stack intercepting service is to generate the IP header and includes within the IP header a source IP address and a destination IP address for the packet.

### Claim 19 (depends on 18)

The system of claim 18, wherein the stack intercepting service is to also add a route to a VPN server associated with the VPN to the packet.

### Claim 20 (depends on 19)

The system of claim 19, wherein the socket application is to verify the source IP address, the destination IP address, and the route when the socket application receives the packet from the stack intercepting service.

### Claim 21 (depends on 16)

The system of claim 16, wherein the stack intercepting service identifies the socket application for delivering the packet via a socket IP address and port address combination.

### Claim 22

A processor-implemented system residing in a computer-readable storage medium and adapted to be executed by a processor of a network, comprising:
an Internet Protocol (IP) tunnel packet residing in a computer-readable storage medium and being processed by the processor as the IP tunnel packet traverses a network stack for delivery to a Virtual Private Network (VPN) over an IP tunnel at a data link layer of the network stack; and
a socket application implemented and residing in a computer-readable storage medium and being processed by the processor;
wherein the IP tunnel packet bypasses an IP layer of the network stack as it is being processed through the network stack and delivered to the socket application, the socket application directly supplies the IP tunnel packet to the data link layer for delivery to the VPN over the IP tunnel.

### Claim 23 (depends on 22)

The system of claim 22, wherein an application that is executed by the processor intercepts the IP tunnel Packet after the IP tunnel packet exists a Transmission Control Protocol (TCP) layer of the network stack and before the IP tunnel packet as an opportunity to progress to the IP layer of the network stack, the application adds an IP header to the IP tunnel packet and supplies the IP tunnel packet to the socket application.

### Claim 24 (depends on 22)

The system of claim 22, wherein the socket application verifies a source IP address, a destination IP address, and subnet masks included in the IP header and when verified sends the IP tunnel packet to the data link layer and when not verified terminating processing of the IP tunnel packet and not delivering the IP tunnel packet to the data link layer.
