# US 2020/0396172 A1 · Adaptive polling in software-defined networking (sdn) environments

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

- Number: US 2020/0396172 A1
- Document ID: US20200396172A1
- Status: Published application
- Kind: A1
- Application number: 16/439,689
- Filed: 2019-06-12
- Published: 2020-12-17
- Earliest claimed: 2019-06-12
- Assignees: VMware, Inc.
- Applicants: VMware, Inc.
- Inventors: Dexiang WANG; Eduard SERRA MIRALLES; Yong WANG; Mani KANCHERLA; Binggang LIU
- Web page: https://patentgrep.com/patent/US20200396172A1

## CPC

- H04L 47/522: {Dynamic queue service slot or variable bandwidth allocation}
- H04L 12/12: Arrangements for remote connection or disconnection of substations or of equipment thereof
- Y02D 30/50: in wire-line communication networks, e.g. low power modes or reduced link rate
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- Y02D: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE

## Abstract

Example methods and systems for adaptive polling. One example may comprise operating in a polling mode to poll, from a network interface, zero or more packets that require packet processing by the network device. The method may also comprise: in response to detecting a non-zero polling round, adjusting a polling parameter to delay switching from the polling mode to a sleep mode. The method may further comprise: in response to detecting a zero polling round and determining that a switch condition is satisfied, adjusting a sleep parameter associated with the sleep mode based on traffic characteristic information associated with one or more polling rounds; and switching from the polling mode to the sleep mode in which polling from the network interface is halted based on the sleep parameter.

## Claims

### Claim 1

A method for a network device to perform adaptive polling, wherein the method comprises:
operating in a polling mode to poll, from a network interface of the network device, zero or more packets that require packet processing by the network device;
in response to detecting a non-zero polling round, being a round in which one or more packets are polled, adjusting a polling parameter to delay switching from the polling mode to a sleep mode; and
in response to detecting a zero polling round, being a round in which zero packet is polled, and determining that a switch condition is satisfied,
adjusting a sleep parameter associated with the sleep mode based on traffic characteristic information associated with one or more polling rounds; and
switching from the polling mode to the sleep mode in which polling from the network interface is halted based on the sleep parameter.

### Claim 2 (depends on 1)

The method of claim 1, wherein adjusting the polling parameter comprises:
increasing the polling parameter that includes a number of allowable zero polling rounds to delay switching to the sleep mode, wherein the number of allowable zero polling rounds is adjustable between an upper bound and a lower bound.

### Claim 3 (depends on 2)

The method of claim 2, wherein determination that the switch condition is satisfied comprises:
determining that the number of allowable zero polling rounds has been reached.

### Claim 4 (depends on 1)

The method of claim 1, wherein adjusting the sleep parameter comprises:
adjusting the sleep parameter that includes a sleep time during which the sleep mode is maintained before switching from the sleep mode to the polling mode, wherein the sleep time is adjustable between an upper bound and a lower bound.

### Claim 5 (depends on 4)

The method of claim 4, wherein adjusting the sleep parameter comprises:
identifying the traffic characteristic information that includes a flag indicating whether a non-zero polling round has been detected prior to the zero polling round; and
in response to determination that the flag indicates that the non-zero polling round has been detected, increasing the sleep time to delay switching from the sleep mode to the polling mode; but otherwise, limiting the sleep time to the lower bound.

### Claim 6 (depends on 1)

The method of claim 1, wherein switching to the sleep mode comprises:
switching, by a user-space packet processing engine supported by the network device, to the sleep mode by halting polling from a first packet queue of the network interface, wherein the network interface lacks interrupt support.

### Claim 7 (depends on 1)

The method of claim 1, wherein switching from the polling mode to the sleep mode comprises:
switching, by a kernel-space packet processing engine supported by the network device, to the sleep mode by halting polling from a second packet queue of the network interface, wherein the network interface lacks interrupt support.

### Claim 8

A non-transitory computer-readable storage medium that includes a set of instructions which, in response to execution by a processor of a network device, cause the processor to perform a method of adaptive polling, wherein the method comprises:
operating in a polling mode to poll, from a network interface of the network device, zero or more packets that require packet processing by the network device;
in response to detecting a non-zero polling round, being a round in which one or more packets are polled, adjusting a polling parameter to delay switching from the polling mode to a sleep mode; and
in response to detecting a zero polling round, being a round in which zero packet is polled, and determining that a switch condition is satisfied,
adjusting a sleep parameter associated with the sleep mode based on traffic characteristic information associated with one or more polling rounds; and
switching from the polling mode to the sleep mode in which polling from the network interface is halted based on the sleep parameter.

### Claim 9 (depends on 8)

The non-transitory computer-readable storage medium of claim 8, wherein adjusting the polling parameter comprises:
increasing the polling parameter that includes a number of allowable zero polling rounds to delay switching to the sleep mode, wherein the number of allowable zero polling rounds is adjustable between an upper bound and a lower bound.

### Claim 10 (depends on 9)

The non-transitory computer-readable storage medium of claim 9, wherein the determination that the switch condition is satisfied comprises:
determining that the number of allowable zero polling rounds has been reached.

### Claim 11 (depends on 8)

The non-transitory computer-readable storage medium of claim 8, wherein adjusting the sleep parameter comprises:
adjusting the sleep parameter that includes a sleep time during which the sleep mode is maintained before switching from the sleep mode to the polling mode, wherein the sleep time is adjustable between an upper bound and a lower bound.

### Claim 12 (depends on 11)

The non-transitory computer-readable storage medium of claim 11, wherein adjusting the sleep parameter comprises:
identifying the traffic characteristic information that includes a flag indicating whether a non-zero polling round has been detected prior to the zero polling round; and
in response to determination that the flag indicates that the non-zero polling round has been detected, increasing the sleep time to delay switching from the sleep mode to the polling mode; but otherwise, limiting the sleep time to the lower bound.

### Claim 13 (depends on 8)

The non-transitory computer-readable storage medium of claim 8, wherein switching to the sleep mode comprises:
switching, by a user-space packet processing engine supported by the network device, to the sleep mode by halting polling from a first packet queue of the network interface, wherein the network interface lacks interrupt support.

### Claim 14 (depends on 8)

The non-transitory computer-readable storage medium of claim 8, wherein switching from the polling mode to the sleep mode comprises:
switching, by a kernel-space packet processing engine supported by the network device, to the sleep mode by halting polling from a second packet queue of the network interface, wherein the network interface lacks interrupt support.

### Claim 15

A computer system configured to perform adaptive polling, wherein the computer system comprises:
a processor;
a network interface from which zero or more packets are polled; and
a non-transitory computer-readable medium having stored thereon instructions that, when executed by the processor, cause the processor to:
operate in a polling mode to poll, from the network interface, zero or more packets that require packet processing;
in response to detecting a non-zero polling round, being a round in which one or more packets are polled, adjust a polling parameter to delay switching from the polling mode to a sleep mode; and
in response to detecting a zero polling round, being a round in which zero packet is polled, and determining that a switch condition is satisfied,
adjust a sleep parameter associated with the sleep mode based on traffic characteristic information associated with one or more polling rounds; and
switch from the polling mode to the sleep mode in which polling from the network interface is halted based on the sleep parameter.

### Claim 16 (depends on 15)

The computer system of claim 15, wherein the instructions for adjusting the polling parameter cause the processor to:
increase the polling parameter that includes a number of allowable zero polling rounds to delay switching to the sleep mode, wherein the number of allowable zero polling rounds is adjustable between an upper bound and a lower bound.

### Claim 17 (depends on 16)

The computer system of claim 16, wherein the instructions for the determination that the switch condition is satisfied cause the processor to:
determine that the number of allowable zero polling rounds has been reached.

### Claim 18 (depends on 15)

The computer system of claim 15, wherein the instructions for adjusting the sleep parameter cause the processor to:
adjust the sleep parameter that includes a sleep time during which the sleep mode is maintained before switching from the sleep mode to the polling mode, wherein the sleep time is adjustable between an upper bound and a lower bound.

### Claim 19 (depends on 19)

The computer system of claim 19, wherein the instructions for adjusting the sleep parameter cause the processor to:
identify the traffic characteristic information that includes a flag indicating whether a non-zero polling round has been detected prior to the zero polling round; and
in response to determination that the flag indicates that the non-zero polling round has been detected, increase the sleep time to delay switching from the sleep mode to the polling mode; but otherwise, limiting the sleep time to the lower bound.

### Claim 20 (depends on 15)

The computer system of claim 15, wherein the instructions for switching to the sleep mode cause the processor to:
switch, by a user-space packet processing engine, to the sleep mode by halting polling from a first packet queue of the network interface, wherein the network interface lacks interrupt support.

### Claim 21 (depends on 15)

The computer system of claim 15, wherein the instructions for switching from the polling mode to the sleep mode cause the processor to:
switch, by a kernel-space packet processing engine, to the sleep mode by halting polling from a second packet queue of the network interface, wherein the network interface lacks interrupt support.
