# US 2021/0286614 A1 · Causality determination of upgrade regressions via comparisons of telemetry data

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

- Number: US 2021/0286614 A1
- Document ID: US20210286614A1
- Status: Published application
- Kind: A1
- Application number: 16/820,631
- Filed: 2020-03-16
- Published: 2021-09-16
- Earliest claimed: 2020-03-16
- Assignees: Microsoft Technology Licensing, LLC
- Applicants: Microsoft Technology Licensing, LLC
- Inventors: Andrei NICOLAE; Rahul NIGAM; Parminder Pal SINGH; Mark R. GILBERT
- Web page: https://patentgrep.com/patent/US20210286614A1

## CPC

- H04L 41/082: the condition being updates or upgrades of network functionality
- G06F 8/658: Incremental updates; Differential updates
- G06F 11/1433: {during software upgrading}
- H04L 41/0631: using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
- H04L 41/0895: Configuration of virtualised networks or elements, e.g. virtualised network function or OpenFlow elements
- H04L 41/145: {involving simulating, designing, planning or modelling of a network}
- H04L 41/40: using virtualisation of network functions or resources, e.g. SDN or NFV entities
- H04L 67/10: in which an application is distributed across nodes in the network (software deployment G06F8/60; multiprogramming arrangements G06F9/46)
- H04L 67/34: {involving the movement of software or configuration parameters (network booting or remote initial program loading [RIPL] G06F9/4416)}
- G06F 2201/865: Monitoring of software
- H04L 41/22: comprising specially adapted graphical user interfaces [GUI]
- H04L 43/08: Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L 43/16: Threshold monitoring
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Disclosed herein is a system for automating the causality detection process when upgrades are deployed to different resources that provide a service. The resources can include physical and/or virtual resources (e.g., processing, storage, and/or networking resources) that are divided into different, geographically dispersed, resource units. To determine whether a root cause of a problem is associated with an upgrade event that has recently been deployed, a system is configured to use telemetry data to compute an upgrade-to-upgrade score that represents differences between two different upgrade events that are deployed to the same resource unit. The system is further configured to use telemetry data to compute an upgrade unit-to-unit score that represents differences between the same upgrade event being deployed to two different resource units. The scores can be used to output an alert, for an analyst, that signals whether a recently deployed upgrade event is the cause of a problem.

## Claims

### Claim 1

A system comprising:
one or more processing units; and
computer-readable storage media storing instructions, that when executed by the one or more processing units, configure the system to perform operations comprising:
receiving telemetry data from each of a plurality of units configured with resources to provide a service;
computing, using the telemetry data for a first unit of the plurality of units, a first score using a scoring model, wherein the first score is indicative of a difference between (i) first values associated with a previous upgrade event being deployed to the first unit and (ii) second values associated with a current upgrade event being deployed to the first unit;
determining whether the first score exceeds a first difference threshold;
responsive to determining that the first score does not exceed the first difference threshold, suppressing an alert signaling that the current upgrade event is a cause of a problem;
responsive to determining that the first score does exceed the first difference threshold:
identifying a group of other units, from the plurality of units and other than the first unit, to which the current upgrade event has been deployed;
for each other unit in the group of other units, computing, using the telemetry data for the first unit and the other unit, a second score using the scoring model, wherein the second score is indicative of a difference between (i) the second values associated with the current upgrade event being deployed to the first unit and (ii) third values associated with the current upgrade event being deployed to the other unit;
determining a number of the second scores, computed for each of the other units in the group, that exceed a second difference threshold;
responsive to determining that the number of the second scores that exceed the second difference threshold is less than or equal to a predefined minimum number, causing the alert signaling that the current upgrade event is the cause of the problem to be output; and
responsive to determining that the number of the second scores that exceed the second difference threshold is greater than or equal to a predefined maximum number, causing another alert signaling that the first unit is the cause of the problem to be output.

### Claim 2 (depends on 1)

The system of claim 1, wherein the operations further comprise causing an indication that further investigation is warranted to be output responsive to determining that the number of the second scores that exceed the second difference threshold is between the predefined minimum number and the predefined maximum number.

### Claim 3 (depends on 1)

The system of claim 1, wherein the telemetry data comprises a number of unexpected errors.

### Claim 4 (depends on 3)

The system of claim 3, wherein the telemetry data comprises a total number of requests, and each of the first score and the second score are computed using the number of expected errors when the total number of requests indicates normal usage of the service.

### Claim 5 (depends on 1)

The system of claim 1, wherein the telemetry data comprises a quality of service (QoS) value.

### Claim 6 (depends on 5)

The system of claim 5, wherein the telemetry data comprises a total number of requests, and each of the first score and the second score are computed using the QoS value when the total number of requests indicates normal usage of the service.

### Claim 7 (depends on 1)

The system of claim 1, wherein computing the first score is implemented in response to detecting an anomaly associated with the current upgrade event being deployed to the first unit.

### Claim 8 (depends on 1)

The system of claim 1, wherein:
the group of other units comprises a first group of other units;
the system determines that the number of the second scores that exceed the second difference threshold is less than or equal to the predefined minimum number; and
the operations further comprise:
identifying a second group of other units, from the plurality of units and other than the first unit, to which the current upgrade event has not been deployed;
for each other unit in the second group of other units, computing, using the telemetry data for the first unit and the other unit, a third score using the scoring model, wherein the third score is indicative of a difference between (i) the second values associated with the current upgrade event being deployed to the first unit for a period of time and (ii) fourth values associated with the other unit for the same period of time;
determining a number of the third scores, computed for each of the other units in the second group, that exceed a third difference threshold;
responsive to determining that the number of the third scores that exceed the third difference threshold is greater than or equal to the predefined maximum number, adding an indication of confidence to the alert signaling that the current upgrade event is the cause of the problem; and
responsive to determining that the number of the third scores that exceed the third difference threshold is less than or equal to the predefined minimum number, suppressing the alert signaling that the current upgrade event is the cause of the problem.

### Claim 9 (depends on 1)

The system of claim 1, wherein the scoring model comprises a comparator function configured to map two matrices to a normalized value.

### Claim 10 (depends on 9)

The system of claim 9, wherein the comparator function comprises a Siamese Neural Network or a Multivariate Gaussian Distribution.

### Claim 11

A method comprising:
computing, by one or more processors, a score that represents a difference between (i) first telemetry values associated with a current upgrade event being deployed to a first unit and (ii) second telemetry values associated with the current upgrade event being deployed to each of a group of other upgraded units;
determining a number of the scores that exceed a difference threshold; and
causing an alert to be output, the alert signaling whether the current upgrade event is a cause of a problem based at least in part on the number of scores that exceed the difference threshold.

### Claim 12 (depends on 11)

The method of claim 11, further comprising causing the alert to signal that the current upgrade event is the cause of the problem responsive to determining that the number of the scores that exceed the difference threshold is less than or equal to a predefined minimum number.

### Claim 13 (depends on 11)

The method of claim 11, further comprising causing the alert to signal that the current upgrade event is not the cause of the problem responsive to determining that the number of the scores that exceed the difference threshold is greater than or equal to a predefined maximum number.

### Claim 14 (depends on 11)

The method of claim 11, further comprising causing the alert to signal that further investigation is warranted responsive to determining that the number of the scores that exceed the difference threshold is between a predefined minimum number and a predefined maximum number.

### Claim 15 (depends on 11)

The method of claim 11, wherein the first telemetry values and the second telemetry values comprise at least one of a number of unexpected errors or a quality of service (QoS) value.

### Claim 16 (depends on 15)

The method of claim 15, wherein the first telemetry values and the second telemetry values comprise a total number of requests, and the score is computed using the at least one of the number of unexpected errors or the quality of service (QoS) value when the total number of requests indicates normal usage of a service provided by the first unit and the group of other units.

### Claim 17 (depends on 11)

The method of claim 11, further comprising:
determining that the number of the scores that exceed the difference threshold is less than or equal to a predefined minimum number;
computing another score that represents a difference between (i) the first telemetry values associated with the current upgrade event being deployed to the first unit during a period of time and (ii) third telemetry values associated with each other non-upgraded unit, in a group of non-upgraded units, during the same period of time;
determining a number of the other scores that exceed another difference threshold; and
adding an indication of confidence to the alert based on the number of the other scores that exceed the other difference threshold.

### Claim 18

A system comprising:
one or more processing units; and
computer-readable storage media storing instructions, that when executed by the one or more processing units, configure the system to perform operations comprising:
computing a score that represents a difference between (i) first telemetry values associated with a current upgrade event being deployed to a first unit and (ii) second telemetry values associated with the current upgrade event being deployed to each of a group of other upgraded units;
determining a number of the scores that exceed a difference threshold;
responsive to determining that the number of the scores that exceed the difference threshold is less than or equal to a predefined minimum number, causing an alert to signal that the current upgrade event is a cause of a problem to be output via a computing device; and
responsive to determining that the number of the scores that exceed the difference threshold is greater than or equal to a predefined maximum number, causing the alert to signal that the current upgrade event is not the cause of the problem to be output via the computing device.

### Claim 19 (depends on 18)

The system of claim 18, wherein the operations further comprise causing an indication that further investigation is warranted to be output responsive to determining that the number of the scores that exceed the difference threshold is between the predefined minimum number and the predefined maximum number.

### Claim 20 (depends on 18)

The system of claim 18, wherein the first telemetry values and the second telemetry values comprise a quality of service (QoS) value and a total number of requests, and the score is computed using the quality of service (QoS) value when the total number of requests indicates normal usage of a service provided by the first unit and the group of other upgraded units.
