# US 2019/0097938 A1 · Systems and methods to minimize packet discard in case of spiky receive traffic

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

- Number: US 2019/0097938 A1
- Document ID: US20190097938A1
- Status: Published application
- Kind: A1
- Application number: 15/719,232
- Filed: 2017-09-28
- Published: 2019-03-28
- Earliest claimed: 2017-09-28
- Assignees: Citrix Systems, Inc.
- Applicants: Citrix Systems, Inc.
- Inventors: Ramanjaneyulu Talla; Anshul Kumar; Narendra Kataria
- Web page: https://patentgrep.com/patent/US20190097938A1

## CPC

- H04L 47/32: by discarding or delaying data units, e.g. packets or frames
- H04L 47/30: in combination with information about buffer occupancy at either end or at transit nodes
- H04L 47/365: {Dynamic adaptation of the packet size}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Described embodiments provide for minimizing packet discarding in case of spiky traffic reception by using adaptive buffers. Transmission buffers may be adjusted based on traffic behavior, with the buffer size dynamically expanding or shrinking as needed, providing a cushion to hold extra packets when a buffer drain rate is slower than the buffer arrival rate.

## Claims

### Claim 1

A system for adaptive buffer size management, comprising:
a network interface comprising a packet buffer having at least a first predetermined size; and
a buffer manager configured to:
determine that a packet is present in the packet buffer at a position corresponding to the first predetermined size from a tail of the buffer, and
responsive to the determination, increase the size of the packet buffer by a predetermined value.

### Claim 2 (depends on 1)

The system of claim 1, wherein the buffer manager is further configured to:
subsequently determine that a packet is absent from the packet buffer at the position corresponding to the first predetermined size from the tail of the buffer; and
responsive to the determination, reduce the size of the packet buffer to the first predetermined size.

### Claim 3 (depends on 2)

The system of claim 2, wherein the buffer manager is further configured to reduce the size of the packet buffer by a multiple of the predetermined value to equal the first predetermined size.

### Claim 4 (depends on 1)

The system of claim 1, wherein the buffer manager is further configured to:
subsequently determine that a packet is absent from the packet buffer at the position corresponding to the first predetermined size from the tail of the buffer; and
responsive to the determination, reduce the size of the packet buffer by the predetermined value.

### Claim 5 (depends on 1)

The system of claim 1, wherein the packet buffer comprises a ring buffer.

### Claim 6 (depends on 5)

The system of claim 5, wherein the buffer manager is further configured to increase the size of the packet buffer by increasing the ring size.

### Claim 7 (depends on 1)

The system of claim 1, wherein the buffer manager is further configured to increase the size of the packet buffer by the first predetermined size.

### Claim 8 (depends on 1)

The system of claim 1, wherein the buffer manager is further configured to wait a predetermined period before subsequently determining whether a packet is present in or absent from the packet buffer at the position corresponding to the first predetermined size from the tail of the buffer.

### Claim 9 (depends on 1)

The system of claim 1, wherein the network interface lacks hardware flow control.

### Claim 10 (depends on 1)

The system of claim 1, wherein the buffer manager is further configured to increase the size of the packet buffer by the predetermined value, responsive to a determination a flow control of the connection is disabled.

### Claim 11

A method for adaptive buffer size management, comprising:
determining, by a buffer manager of a device, that a packet is present in a packet buffer of a network interface having a first predetermined size at a position corresponding to the first predetermined size from a tail of the buffer, and
responsive to the determination, increasing the size of the packet buffer, by the buffer manager, by a predetermined value.

### Claim 12 (depends on 11)

The method of claim 11, further comprising:
subsequently determining, by the buffer manager, that a packet is absent from the packet buffer at the position corresponding to the first predetermined size from the tail of the buffer; and
responsive to the determination, reducing the size of the packet buffer, by the buffer manager, to the first predetermined size.

### Claim 13 (depends on 12)

The method of claim 12, wherein reducing the size of the packet buffer further comprises reducing the size of the packet buffer, by the buffer manager, by a multiple of the predetermined value to equal the first predetermined size.

### Claim 14 (depends on 11)

The method of claim 11, further comprising:
subsequently determining, by the buffer manager, that a packet is absent from the packet buffer at the position corresponding to the first predetermined size from the tail of the buffer; and
responsive to the determination, reducing the size of the packet buffer, by the buffer manager, by the predetermined value.

### Claim 15 (depends on 11)

The method of claim 11, wherein the packet buffer comprises a ring buffer.

### Claim 16 (depends on 15)

The method of claim 15, wherein increasing the size of the packet buffer further comprises increasing the ring size.

### Claim 17 (depends on 11)

The method of claim 11, wherein increasing the size of the packet buffer further comprises increasing the size of the packet buffer, by the buffer manager, by the first predetermined size.

### Claim 18 (depends on 11)

The method of claim 11, further comprising waiting a predetermined period, by the buffer manager, before subsequently determining whether a packet is present in or absent from the packet buffer at the position corresponding to the first predetermined size from the tail of the buffer.

### Claim 19 (depends on 11)

The method of claim 11, wherein the network interface lacks hardware flow control.

### Claim 20 (depends on 11)

The method of claim 11, wherein increasing the size of the packet buffer is performed responsive to a determination a flow control of the connection is disabled.
