# US 2017/0250908 A1 · System and Method for Dataplane-Signaled Packet Capture in a Segment Routing Environment

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

- Number: US 2017/0250908 A1
- Document ID: US20170250908A1
- Status: Published application
- Kind: A1
- Application number: 15/056,502
- Filed: 2016-02-29
- Published: 2017-08-31
- Earliest claimed: 2016-02-29
- Assignees: Cisco Technology, Inc.
- Applicants: Cisco Technology, Inc.
- Inventors: Nagendra Kumar Nainar; Richard Furr; Carlos Pignataro; Joseph Michael Clarke
- Web page: https://patentgrep.com/patent/US20170250908A1

## CPC

- H04L 45/50: using label swapping, e.g. multi-protocol label switch [MPLS]
- H04L 12/4633: {Interconnection of networks using encapsulation techniques, e.g. tunneling}
- 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 45/04: {Interdomain routing, e.g. hierarchical routing}
- H04L 45/566: {Routing instructions carried by the data packet, e.g. active networks}
- H04L 45/64: using an overlay routing layer
- H04L 41/0246: Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
- H04L 43/02: Capturing of monitoring data
- H04L 45/66: {Layer 2 routing, e.g. in Ethernet based MAN's}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Presented herein are segment-routing methods and systems that facilitate data plane signaling of a packet as a candidate for capture at various network nodes within a segment routing (SR) network. The signaling occurs in-band, via the data plane—that is, a capture or interrogation signal is embedded within the respective packet that carries a user traffic. The signaling is inserted, preferably when the packet is classified, e.g., at the ingress node of the network, to which subsequent network nodes with the SR network are signaled to capture or further inspect the packet for capture.

## Claims

### Claim 1

A method comprising:
in a segment-routing (SR) network, receiving, at a first network node, a packet to selectively route, according to one or more policies enforced at the first network node, to a plurality of network nodes, collectively, forming the segment routing network;
receiving, at the first network node, one or more packet capture policies; and
generating, at the first network node, a segment routing (SR) packet to transmit to a network node in the segment routing network, the SR packet having a stack of one or more segment identifiers, wherein the stack encapsulates the received packet, and wherein at least one of the segment identifier within the stack includes a capture instruction to signal, to at least one network node of the plurality of network nodes, payload of the SR packet as a candidate for capture.

### Claim 2 (depends on 1)

The method of claim 1, wherein the one or more capture policies are selected from the group consisting of per-flow capture, per-VPN (per-virtual-private-network session) capture, interface type capture, time capture, and packet count capture.

### Claim 3 (depends on 1)

The method of claim 1, wherein upon receiving, at a given network node, a given SR packet, the given network node is configured to scan the stack to determine presence of a capture instruction, and
wherein, upon the capture instruction being determined to be present, the given network node is configured to capture the SR packet by:
locally storing the SR packet in a memory of the given network node,
or
generate and forward a copy of the SR packet to a network node having an inspection, capture, or storage function.

### Claim 4 (depends on 3)

The method of claim 3, wherein the given network node is configured to scan the stack at a current segment identifier for presence of the capture instruction, the given network node capturing the SR packet when the capture instruction is at the current segment identifier.

### Claim 5 (depends on 4)

The method of claim 4, wherein the stack includes a plurality of capture segment identifiers, each having a capture instruction.

### Claim 6 (depends on 3)

The method of claim 3, wherein the given network node is configured to scan the stack at a last segment identifier for presence of the capture instruction, the given network node capturing the SR packet when the capture instruction is at the last segment identifier.

### Claim 7 (depends on 6)

The method of claim 6, wherein an egress node in the SR network is configured to remove the last segment identifier from the SR packet.

### Claim 8 (depends on 3)

The method of claim 3, wherein the given network node is configured to scan all the segment identifiers of the stack for presence of the capture instructions, the given network node capturing the SR packet when the capture instruction is present in any of the scanned segment identifiers.

### Claim 9 (depends on 1)

The method of claim 1,
wherein upon receiving, at a transit node, a given SR packet, the transit node is configured to i) scan the stack for a current segment identifier within the stack to determine a next forwarding network node and any intermediate network nodes therebetween and ii) forward a modified SR packet to the determined next network node, wherein the modified SR packet includes a modified stack of segment identifiers with the next segment identifier updated as the current segment identifier, and wherein, upon the capture instruction being determined to be present, the transit node is configured to establish a MPLS (multi-protocol label stack) tunnel to a remote computing device.

### Claim 10 (depends on 1)

The method of claim 1,
wherein upon receiving, at a transit node, a given SR packet, the transit node is configured to i) scan, using a current position number of the segment identifier, a current segment identifier within the stack to determine a next forwarding network node and any intermediate network nodes therebetween, and ii) forward a modified SR packet to the determined next network node, wherein the modified SR packet includes a modified stack of segment identifiers with the current position number for the current segment identifier incremented or decremented by one, and wherein, upon the capture instruction being determined to be present, the transit node is configured to establish a MPLS (multi-protocol label stack) tunnel to a remote computing device.

### Claim 11 (depends on 1)

The method of claim 1, wherein each of the one or more segment identifiers, collectively, is defined in an IPv6 segment routing header or a MPLS header.

### Claim 12 (depends on 1)

The method of claim 1, wherein the capture instruction includes a capture direction instruction selected from the group consisting of ingress direction, egress direction, and both ingress and egress direction.

### Claim 13 (depends on 1)

The method of claim 1, wherein the segment identifier with the capture instruction has a value assigned from a segment routing global range, the value being broadcasted, via IGP (Interior Gateway Protocol) or BGP (Border Gateway Protocol), to other network nodes in the SR network.

### Claim 14 (depends on 1)

The method of claim 1, wherein the first network node is located at an ingress of the SR network.

### Claim 15 (depends on 1)

The method of claim 1, wherein the plurality of network nodes comprise at least a device selected from the group consisting of a router, network addressor translation (NAT) device, an intrusion prevention system (IPS), an intrusion detection system (IDS), a deep packet inspection (DPI) device, a firewall, a switch, a computing device executing a virtual switch, a network-attached storage (NAS) device, a load balancer (LB) system, a wide-area network/local-area network (WAN/LAN) accelerator, and a computing system executing a virtual machine (VM).

### Claim 16 (depends on 1)

The method of claim 1, comprising:
determining, by a processor of the first network node, based on the one or more packet capture policies, one or more network nodes to capture the SR packet.

### Claim 17

A method comprising:
in a segment-routing (SR) network, receiving, at a network node, a SR packet, the SR packet having a packet payload encapsulated via a segment routing stack having a plurality of segment identifiers;
interrogating, at the network node, the segment routing stack; and
in response to a determination of a capture instruction being present in the segment routing stack, causing the SR packet to be either stored in a memory of the network node or forwarded to a remote computing device for interrogation or capture of the SR packet.

### Claim 18 (depends on 17)

The method of claim 17, comprising:
in response to a determination of the capture instruction being present in the stack, i) replicating and forwarding, to the remote computing device having a packet capture and/or analysis function, the SR packet, and ii) replicating and forwarding, to a next forwarding network node identified by a current segment identifier within the stack, a modified SR packet, wherein the modified SR packet has a next segment identifier updated as the current segment identifier.

### Claim 19 (depends on 17)

The method of claim 17, wherein the network nodes is configured to interrogate a current segment identifier in the stack to determine presence of a capture instruction.

### Claim 20 (depends on 17)

The method of claim 17, wherein the network nodes is configured to interrogate a last segment identifier in the stack to determine presence of a capture instruction.

### Claim 21 (depends on 17)

The method of claim 17, wherein the network nodes is configured to interrogate all segment identifiers in the stack to determine presence of a capture instruction.

### Claim 22

A system comprising:
a processor; and
a memory having instructions thereon, wherein the instructions, when executed by the processor, cause the processor to:
receive a packet to selectively route, according to one or more policies enforced at the first network node, to a plurality of network nodes, collectively, forming the segment routing network;
receive one or more packet capture policies; and
generate a segment routing (SR) packet to transmit to a network node in the segment routing network, the SR packet having a stack of one or more segment identifiers, wherein the stack encapsulates the received packet, and wherein at least one of the segment identifier within the stack includes a capture instruction to signal, to at least one network node of the plurality of network nodes, payload of the SR packet as a candidate for capture.
