发明名称 System and methods for leveraging an object cache to monitor network traffic
摘要 According to non-limiting embodiments disclosed herein, the functionality of an object cache in a server can be extended to monitor and track web traffic, and in particular to perform rate accounting on selected web traffic. As the server communicates with clients (e.g., receiving HTTP requests and responding to those requests), the server can use its existing object cache storage and existing object cache services to monitor web traffic by recording how often a client makes a particular request in the object cache and/or other data about the requests. Preferably, the object cache is still used for conventional caching of objects, the object cache thus providing a dual role by storing both web objects and rate accounting data.
申请公布号 US9531720(B2) 申请公布日期 2016.12.27
申请号 US201414475036 申请日期 2014.09.02
申请人 AKAMAI TECHNOLOGIES, INC. 发明人 Zhang Eugene Y.;Boffa Patrice
分类号 G06F7/00;G06F15/173;H04L29/06;H04L29/08 主分类号 G06F7/00
代理机构 代理人
主权项 1. A method operative in a server machine, comprising: receiving a designation of a first set of one or more data elements that form a first request signature; receiving a designation of a second set of one or more data elements that form a second request signature; receiving a first message from a first client, the first message comprising a first IP address and a first HTTP request for a first object, and in response thereto: constructing a first cache key pointing to a first cache entry storing a first count, said construction based at least in part on the first set of one or more data elements, the server machine extracting said one or more data elements from the first message,providing the first cache key to the an object cache, the object cache storing HTTP header and HTTP response bodies,looking up information stored in the object cache under the first cache key, the stored information comprising the first count, the first count tracking particular messages that match the first request signature during a time period for rate accounting, andreturning the first count from the lookup;comparing the first count retrieved from the object cache to a threshold;based at least in part on the comparison, determining how to process the first HTTP request from the first client; receiving a second message from a second client, the second message comprising a second IP address and a second HTTP request for a second object, and in response thereto: constructing a second cache key pointing to a second cache entry storing a second count, said construction based at least in part on the second set of one or more data elements, the server machine extracting said one or more data elements from the second message,providing the second cache key to the object cache,looking up information stored in the object cache under the second cache key and finding an expired cache entry for the second county, andin response to the expired cache entry, returning a cache miss; based at least in part on the cache miss, allowing the second HTTP request to be processed by the server machine, wherein said processing comprises sending the second object to the second client.
地址 Cambridge MA US