# US 9,357,076 B2 · Load balancing of distributed media agents in a conference system

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

- Number: US 9,357,076 B2
- Document ID: US9357076B2
- Status: Granted
- Kind: B2
- Application number: 14/298,014
- Filed: 2014-06-06
- Published: 2015-12-10
- Granted: 2016-05-31
- Earliest claimed: 2014-06-06
- Assignees: Cisco Technology, Inc.
- Applicants: Cisco Technology, Inc.
- Inventors: Jonathan D. Rosenberg
- Web page: https://patentgrep.com/patent/US9357076B2

## CPC

- H04M 3/56: Arrangements for connecting several subscribers to a common circuit, i.e. affording conference facilities (video conference systems H04N7/15)
- G06F 16/95: Retrieval from the web
- H04L 47/125: by balancing the load, e.g. traffic engineering
- H04L 61/4511: using domain name system [DNS]
- H04L 65/1069: Session establishment or de-establishment
- H04L 65/403: Arrangements for multi-party communication, e.g. for conferences (data switching systems for conference H04L12/18; arrangements for connecting several subscribers to a common circuit, i.e. affording conference facilities H04M3/56; television conferencing systems H04N7/15)
- H04M 3/5238: {with waiting time or load prediction arrangements}
- H04L 61/2575: using address mapping retrieval, e.g. simple traversal of user datagram protocol through session traversal utilities for NAT [STUN]
- H04M: TELEPHONIC COMMUNICATION (circuits for controlling other apparatus via a telephone cable and not involving telephone switching apparatus G08)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A load balancer controls a cluster of media agents each configured to perform media packet processing operations in a conference session. The load balancer receives a Session Traversal Utilities for Network Address Translation/Translator (NAT) (STUN) request from a caller to establish media. The STUN request includes a conference identifier (ID) for the session. The load balancer determines an availability of each of the media agents in the cluster, selects a media agent for the caller based on the conference ID and the determined media agent availabilities, forwards the STUN request to the selected media agent, and routes media packets between the caller and the selected agent for the session.

## Claims

### Claim 1

A method comprising:
at a load balancer configured to control a cluster of media agents each configured to perform media packet processing operations in a conference session:
receiving a Session Traversal Utilities for Network Address Translation/Translator (NAT) (STUN) request from a caller to establish media, the STUN request including a conference identifier (ID) for the conference session;
determining an availability of each of the media agents in the cluster;
selecting a media agent for the caller based on the conference ID and the determined media agent availabilities;
forwarding the STUN request to the selected media agent; and
routing media packets between the caller and the selected media agent for the conference session.

### Claim 2 (depends on 1)

The method of claim 1, wherein the STUN request is received from the caller over a first logical connection between the caller and the load balancer,
the STUN request is forwarded to the selected media agent over a second logical connection between the load balancer and the selected media agent; and
the method further comprises:
storing a connection mapping of the first logical connection to the second logical connection, wherein the routing includes routing the media packets between the caller and the selected media agent over the first and second logical connections based on the stored connection mapping.

### Claim 3 (depends on 2)

The method of claim 2, further comprising generating the connection mapping as a mapping between first and second 5-tuples respectively identifying the first and second logical connections, wherein each 5-tuple includes a source Internet Protocol (IP) address, a source port, a destination IP address, a destination port, and a protocol.

### Claim 4 (depends on 1)

The method of claim 1, wherein:
the determining includes determining for each media agent an operational/failure status and a processor loading of the media agent; and
the selecting includes selecting a media agent that is determined to be operational and utilizing a consistent hash of the conference ID to the set of available media agents.

### Claim 5 (depends on 4)

The method of claim 4, further comprising:
activating a new media agent if all existing media agents are each determined to have processor loading above a high threshold; and
deactivating any media agents determined to have processor loading below a low threshold.

### Claim 6 (depends on 1)

The method of claim 1, further comprising:
receiving a second STUN request from a second caller to join the conference session, the second STUN request including the conference ID; and
selecting the previously selected media agent for the second caller based on the conference ID.

### Claim 7 (depends on 1)

The method of claim 1, wherein:
the receiving includes receiving multiple join requests including respective conference IDs;
the selecting includes:
selecting a same one of the media agents for each of the multiple join requests if the respective conference IDs are the same; and
selecting different media agents for each of the multiple join requests if the respective conference IDs are different.

### Claim 8 (depends on 1)

The method of claim 1, further comprising:
receiving a second STUN request from the caller to join the conference session, the second STUN request including the conference identifier (ID) for the conference session;
determining that the operational status of the selected media agent is down;
selecting a second media agent for the caller; and
routing media packets between the caller and the second selected media agent for the conference session.

### Claim 9 (depends on 1)

The method of claim 1, wherein the STUN request is sent as part of connectivity checks mandated by the Interactive Connectivity Establishment (ICE) protocol (RFC 5245).

### Claim 10

An apparatus comprising:
an interface unit configured to enable communications with a cluster of media agents each configured to perform media packet processing operations in a conference session; and
a processor coupled to the interface unit, and configured to:
receive a Session Traversal Utilities for Network Address Translation/Translator (NAT) (STUN) request from a caller to establish media, the STUN request including a conference identifier (ID) for the conference session;
determine an availability of each of the media agents in the cluster;
select a media agent for the caller based on the conference ID and the determined media agent availabilities;
forward the STUN request to the selected media agent; and
route media packets between the caller and the selected media agent for the conference session.

### Claim 11 (depends on 10)

The apparatus of claim 10, wherein
the STUN request is received from the caller over a first logical connection between the caller and the load balancer,
the STUN request is forwarded to the selected media agent over a second logical connection between the load balancer and the selected media agent; and
the processor is further configured to:
store a connection mapping of the first logical connection to the second logical connection, wherein the processor is configured to route by routing media packets between the caller and the selected media agent over the first and second logical connections based on the stored connection mapping.

### Claim 12 (depends on 11)

The apparatus of claim 11, wherein the processor is further configured to generate the connection mapping as a mapping between first and second 5-tuples respectively identifying the first and second logical connections, wherein each 5-tuple includes a source Internet Protocol (IP) address, a source port, a destination IP address, a destination port, and a protocol.

### Claim 13 (depends on 10)

The apparatus of claim 10, wherein:
the processor is configured to determine by determining for each media agent an operational/failure status and a processor loading of the media agent; and
the processor is configured to select by selecting a media agent that is determined to be operational and utilizing a consistent hash of the conference ID to the set of available media agents.

### Claim 14 (depends on 13)

The apparatus of claim 13, wherein the processor is further configured to:
activate a new media agent if all existing media agents are each determined to have processor loading above a high threshold; and
deactivate any media agents determined to have processor loading below a low threshold.

### Claim 15 (depends on 10)

The apparatus of claim 10, wherein the processor is further configured to:
receive a second STUN request from a second caller to join the conference session, the second STUN request including the conference ID; and
select the previously selected media agent for the second caller based on the conference ID.

### Claim 16 (depends on 10)

The apparatus of claim 10, wherein:
the processor is configured to receive by receiving multiple join requests including respective conference IDs; and
the processor is configured to select by:
selecting a same one of the media agents for each of the multiple join requests if the respective conference IDs are the same; and
selecting different media agents for each of the multiple join requests if the respective conference IDs are different.

### Claim 17 (depends on 10)

The apparatus of claim 10, wherein the processor is further configured to:
receive a second STUN request from the caller to join the conference session, the second STUN request including the conference identifier (ID) for the conference session;
determine that the operational status of the selected media agent is down;
select a second media agent for the caller; and
route media packets between the caller and the second selected media agent for the conference session.

### Claim 18

A non-transitory processor readable medium storing instructions that, when executed by a processor, cause the processor to:
at a load balancer configured to control a cluster of media agents each configured to perform media packet processing operations in a conference session, receive a Session Traversal Utilities for Network Address Translation/Translator (NAT) (STUN) request from a caller to establish media, the STUN request including a conference identifier (ID) for the conference session;
determine an availability of each of the media agents in the cluster;
select a media agent for the caller based on the conference ID and the determined media agent availabilities;
forward the STUN request to the selected media agent; and
route media packets between the caller and the selected media agent for the conference session.

### Claim 19 (depends on 18)

The non-transitory processor readable medium of claim 18, wherein the STUN request is received from the caller over a first logical connection between the caller and the load balancer,
the STUN request is forwarded to the selected media agent over a second logical connection between the load balancer and the selected media agent; and
the non-transitory processor readable medium further comprising instructions to cause the processor to:
store a connection mapping of the first logical connection to the second logical connection, wherein the instructions include instructions to cause the processor to route media packets between the caller and the selected media agent over the first and second logical connections based on the stored connection mapping.

### Claim 20 (depends on 19)

The non-transitory processor readable medium of claim 19, further comprising instructions to cause the processor to generate the connection mapping as a mapping between first and second 5-tuples respectively identifying the first and second logical connections, wherein each 5-tuple includes a source Internet Protocol (IP) address, a source port, a destination IP address, a destination port, and a protocol.

### Claim 21 (depends on 18)

The non-transitory processor readable medium of claim 18, wherein the instructions include instructions to cause the processor to:
determine for each media agent an operational/failure status and a processor loading of the media agent; and
select a media agent that is determined to be operational and utilize a consistent hash of the conference ID to the set of available media agents.

### Claim 22 (depends on 21)

The non-transitory processor readable medium of claim 21, further comprising instructions to cause the processor to:
activate a new media agent if all existing media agents are each determined to have processor loading above a high threshold; and
deactivate any media agents determined to have processor loading below a low threshold.

### Claim 23 (depends on 18)

The non-transitory processor readable medium of claim 18, further comprising instructions to cause the processor to:
receive a second STUN request from a second caller to join the conference session, the second STUN request including the conference ID; and
select the previously selected media agent for the second caller based on the conference ID.

### Claim 24 (depends on 18)

The non-transitory processor readable medium of claim 18, wherein the instructions include instructions to cause the processor to:
receive multiple join requests including respective conference IDs;
select a same one of the media agents for each of the multiple join requests if the respective conference IDs are the same; and
select different media agents for each of the multiple join requests if the respective conference IDs are different.

### Claim 25 (depends on 18)

The non-transitory processor readable medium of claim 18, further comprising instructions to cause the processor to:
receive a second STUN request from the caller to join the conference session, the second STUN request including the conference identifier (ID) for the conference session;
determine that the operational status of the selected media agent is down;
select a second media agent for the caller; and
route media packets between the caller and the second selected media agent for the conference session.
