# US 2023/0155945 A1 · Method, system and computer program product for determining congestion of a communication link transmitting a media stream over the communication link

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

- Number: US 2023/0155945 A1
- Document ID: US20230155945A1
- Status: Published application
- Kind: A1
- Application number: 17/989,138
- Filed: 2022-11-17
- Published: 2023-05-18
- Earliest claimed: 2021-11-18
- Assignees: Pexip AS
- Applicants: Pexip AS
- Inventors: Håvard Graff; Tulio Beloqui; Knut Inge Hvidsten
- Web page: https://patentgrep.com/patent/US20230155945A1

## CPC

- H04L 47/2416: Real-time traffic
- H04L 47/11: Identifying congestion
- H04L 47/127: by using congestion prediction
- H04L 47/193: at the transport layer, e.g. TCP related
- H04L 47/27: Evaluation or update of window size, e.g. using information derived from acknowledged [ACK] packets
- H04L 47/283: in response to processing delays, e.g. caused by jitter or round trip time [RTT]
- H04L 47/35: by embedding flow control information in regular packets, e.g. piggybacking
- H04L 47/263: Rate modification at the source after receiving feedback
- H04L 47/34: ensuring sequence integrity, e.g. using sequence numbers
- H04L 47/36: by determining packet size, e.g. maximum transfer unit [MTU]
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A system and method for determining congestion of a communication link transmitting a media stream over the communication link from a sender device to a receiving device.

## Claims

### Claim 1

A method for determining congestion of a communication link transmitting a media stream over the communication link from a sender device to a receiving device, the method comprising the steps of:
transmitting media packets into the media stream, each media packet having a packet identifier;
transmitting recovery packets into the media stream, each recovery packet having a packet identifier and is adapted to replace a missing packet of the media stream;
mapping for each packet in the media stream the packet identifier, a transmission timestamp and a packet size;
mapping for each recovery packet the packet identifier of the recovery packet and the packet identifier of the packet the recovery packet is adapted to replace;
transmitting for each packet received at the receiving device a feedback message to the sender device, the feedback message comprising the packet identifier and an arrival timestamp;
determining a packet as missing when none of the feedback messages comprises the packet identifier of the packet;
determining a packet as recovered when a feedback message comprises the packet identifier of a recovery packet corresponding to the missing packet; and
determining a packet recovery success rate by dividing a total number of packets determined as recovered within a first sliding window with a total number of packets determined as missing within the first sliding window; and
determining that the communication link is congested when for the first sliding window of the N transmitted packets the packet recovery success rate is below a congestion threshold.

### Claim 2 (depends on 1)

The method of claim 1, comprising initiating the step of transmitting recovery packets into the media stream upon determining that the communication link is in a candidate congestion state.

### Claim 3 (depends on 2)

The method of claim 2, wherein determining that the communication link is in a candidate congestion state comprising:
determining a transmission rate for a second sliding window of N transmitted packets by dividing a packet size sum of the N transmitted packets with a time difference between a transmission time stamp of the last of the N transmitted packets and a transmission time stamp of the first of the N transmitted packets;
determining a received rate for the second sliding winding of the N transmitted packets by dividing the packet size sum of the N transmitted packets with a time difference between the arrival time stamp of the last of the N transmitted packets and the arrival time stamp of the first of the N transmitted packets; and
determining that the communication link is in a candidate congestion state when for the second sliding window of the N transmitted packets the difference between the transmission rate and the received rate divided by the transmission rate is above a candidate congestion state threshold.

### Claim 4 (depends on 1)

The method of claim 1, wherein the method further comprising the step of measuring a round trip delay from the receiving device requests a recovery packet to the feedback message comprises the packet identifier of the recovery packet, and waiting the at least one round trip delay before determining the packet recovery rate.

### Claim 5 (depends on 1)

The method of claim 1, wherein the congestion threshold is in the range 0.6-1.0, preferably 0.8.

### Claim 6 (depends on 2)

The method of claim 2, wherein the candidate congestion state threshold is in the range 0.1-0.4, preferably 0.25.

### Claim 7

A system for determining congestion of a communication link transmitting a media stream transmitted over the communication link from a sender device to a receiving device, the system being adapted to:
transmitting, with the sender device, media packets into the media stream, each media packet having a packet identifier;
transmitting, with the sender device, recovery packets into the media stream, each recovery packet adapted to replace a missing packet of the media stream;
mapping, with the sender device, for each packet in the media stream a packet identifier, a transmission timestamp and a packet size;
mapping, with the sender device, for each recovery packet the packet identifier of the recovery packet and the packet identifier of the packet the recovery packet is adapted to replace;
transmitting for each packet received at the receiving device a feedback message to the sender device, the feedback message comprising the packet identifier and an arrival timestamp;
determining a packet as missing when none of the feedback messages comprises the packet identifier of the packet;
determining, with the sender device, a packet as recovered when a feedback message comprises the packet identifier of a recovery packet corresponding to the missing packet; and
determining, with the sender device, a packet recovery success rate by dividing a total number of packets determined as recovered within a second sliding window with a total number of packets determined as missing within the second sliding window;
determining, with the sender device, that the communication link is congested when for the first sliding window of the N transmitted packets the packet recovery success rate is below a congestion threshold.

### Claim 8 (depends on 7)

The system of claim 7, wherein the system is further adapted to initiating the step of transmitting recovery packets into the media stream upon determining that the communication link is in a candidate congestion state.

### Claim 9 (depends on 8)

The system of claim 8, wherein determining that the communication link is in a candidate congestion state comprising:
determining, with the sender device, a transmission rate for a second sliding window of N transmitted packets by dividing a packet size sum of the N transmitted packets with a time difference between a transmission time stamp of the last of the N transmitted packets and a transmission time stamp of the first of the N transmitted packets;
determining, with the sender device, a received rate for the second sliding winding of the N transmitted packets by dividing the packet size sum of the N transmitted packets with a time difference between the arrival time stamp of the last of the N transmitted packets and the arrival time stamp of the first of the N transmitted packets; and
determining, with the sender device, that the communication link is in a candidate congestion state when for the second sliding window of the N transmitted packets the difference between the transmission rate and the received rate divided by the transmission rate is above a candidate congestion state threshold.

### Claim 10 (depends on 7)

The system of claim 7, wherein the sender device is further adapted to measuring a round trip delay from the receiving device requests a recovery packet to the feedback message comprises the packet identifier of the recovery packet, and waiting the at least one round trip delay before determining the packet recovery rate.

### Claim 11 (depends on 7)

The system of claim 7, wherein the congestion threshold is in the range 0.6-1.0, preferably 0.8.

### Claim 12 (depends on 9)

The system of claim 9, wherein the candidate congestion state threshold is in the range 0.1-0.4, preferably 0.25.

### Claim 13 (depends on 1)

A computer program product comprising instructions that when executed on a processor performs the method of claim 1.
