摘要 |
A device receives requests for content, determines requests for a same identifier from the requests for the content, and stores information associated with the determined requests in an object. The object includes a number of the determined requests, and a current time and a start time associated with the determined requests. The device also determines whether the number of the determined requests satisfies a first threshold, and determines whether a difference between the current time and the start time satisfies a second threshold. The device identifies a loop associated with another device when the number of the determined requests satisfies the first threshold and the difference satisfies the second threshold, and provides information associated with the identified loop. |
主权项 |
1. A method, comprising:
receiving, by a device, a plurality of requests,
the device being a cache server; determining, by the device and from the plurality of the requests, particular requests, for particular content, that include a same identifier associated with the particular content,
the particular content including a video, an image, text, or software; storing, by the device, information associated with the particular requests in an object,
the object including:
a number of the particular requests, anda current time and a start time associated with the particular requests; determining, by the device, whether the number of the particular requests satisfies a first threshold,
the first threshold being a quantity of requests; determining, by the device, whether a difference between the current time and the start time satisfies a second threshold,
the second threshold being a length of time; identifying, by the device, a loop between the cache server and an origin device when the number of the particular requests satisfies the first threshold and when the difference satisfies the second threshold,
the origin device providing the particular content to the cache server or a client device, based on one of the particular requests, when the origin device is correctly configured,the origin device providing the one of the particular requests to the cache server when the origin device is incorrectly configured, andthe loop being caused by the origin device sending the one of the particular requests to the cache server; and providing, by the device, information associated with the loop. |