US20110255424A1 - Summarizing internet traffic patterns - Google Patents

Summarizing internet traffic patterns Download PDF

Info

Publication number
US20110255424A1
US20110255424A1 US12/760,584 US76058410A US2011255424A1 US 20110255424 A1 US20110255424 A1 US 20110255424A1 US 76058410 A US76058410 A US 76058410A US 2011255424 A1 US2011255424 A1 US 2011255424A1
Authority
US
United States
Prior art keywords
network device
log
difference
determining
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
US12/760,584
Other versions
US8310922B2 (en
Inventor
Jelani Osei Nelson
David Paul Woodruff
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
International Business Machines Corp
Original Assignee
International Business Machines Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by International Business Machines Corp filed Critical International Business Machines Corp
Priority to US12/760,584 priority Critical patent/US8310922B2/en
Assigned to INTERNATIONAL BUSINESS MACHINES CORPORATION reassignment INTERNATIONAL BUSINESS MACHINES CORPORATION ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: WOODRUFF, DAVID PAUL, NELSON, JELANI OSEI
Publication of US20110255424A1 publication Critical patent/US20110255424A1/en
Application granted granted Critical
Publication of US8310922B2 publication Critical patent/US8310922B2/en
Expired - Fee Related legal-status Critical Current
Adjusted expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/18Protocol analysers

Definitions

  • the present invention relates to a data processing method and system for monitoring traffic on a computer network, and more particularly to a technique for efficiently summarizing Internet traffic patterns.
  • a data set being processed by in a massive database may be distributed across several network devices, each receiving a portion of the data as a stream.
  • the devices locally process their data, producing a small sketch, which can then be transmitted to other devices for further processing.
  • Known techniques focus on producing sketches of minimal size for various problems, thereby providing space-efficient processing, while failing to adequately provide time-efficient processing.
  • the present invention provides a computer-implemented method of monitoring network traffic by estimating an L 1 difference.
  • the method comprises:
  • first sketch describes a first set of pairs of data (x, f t (x)), wherein x indicates a source and a destination of a first plurality of data packets that include input x, transmitted via the first network device, wherein f t (x) indicates a first amount of information in the first plurality of data packets transmitted via the first network device from the source to the destination in a time period t, wherein the second sketch s(y) describes a second set of pairs of data (y, f t′ (y)), wherein y indicates the source and the destination of a second plurality of data packets that include input y transmitted via the second network device, wherein f t ′(y) indicates a second amount of information in the second plurality of data packets transmitted via the second network device from the source to the destination in a time period t′;
  • a processor of a computer system estimating an L 1 difference ⁇ f t (x) ⁇ f t′ (y) ⁇ 1 , wherein the estimating the L 1 difference includes determining an L 0 value of a data stream resulting from the first network device inserting elements of a first set of distinct items as insertions into the data stream and from the second network device inserting elements of a second set as deletions from the data stream, wherein the first set includes distinct items derived from x i , wherein the second set of distinct items includes distinct items derived from y i , and wherein the determining the L 0 value includes processing updates to ranges of the data stream; and
  • Embodiments of the present invention provide space- and time-efficient sketches for the determination of an L1 distance for summarizing contents of databases distributed over a network and for Internet traffic monitoring. Furthermore, embodiments of the present invention allow network devices to compute their sketches in only O(n log 2 (nM)) time.
  • FIG. 1 is a block diagram of a system for monitoring network traffic using a sketching procedure, in accordance with embodiments of the present invention.
  • FIG. 2 is a flowchart of a process for monitoring network traffic using a sketching procedure, where the process may be implemented in the system of FIG. 1 , in accordance with embodiments of the present invention.
  • FIG. 3 is a flowchart of a subroutine used for computing an L 1 exactly when L 1 is small, where the subroutine may be included in the process of FIG. 2 , in accordance with embodiments of the present invention.
  • FIGS. 4A-4B depict a flowchart of a method for computing an estimation of L 1 , where the method may be included in the process of FIG. 2 , in accordance with embodiments of the present invention.
  • FIG. 5 is a block diagram of a computer system that is included in the system of FIG. 1 and that implements the process of FIG. 2 , FIG. 2 , FIG. 3 and FIGS. 4A-4B , in accordance with embodiments of the present invention.
  • the problem of producing space-efficient and time-efficient sketches for the L 1 distance has applications related to summarizing contents of databases distributed over a network, and is especially useful for monitoring computer network traffic (e.g., monitoring Internet traffic).
  • Embodiments of the present invention describe a method and system that utilizes a sketching procedure that provides nearly-optimal sized sketches for L 1 in nearly linear time. Specifically, suppose a first computing device (e.g., a first router) receives a vector x ⁇ ⁇ M, . . . , M ⁇ n of data, a second computing device (e.g., a second router) receives a vector y ⁇ ⁇ M, . . .
  • computing devices that share randomness are computing devices that have access to a shared random key, such as a cryptographic key or a public book of random numbers.
  • the first and second computing devices are also referred to as “Alice” and “Bob,” respectively.
  • Alice and Bob also receive a parameter 0 ⁇ 1.
  • Alice outputs a sketch s(x)
  • Bob outputs a sketch s(y), such that a third party (e.g., a computer system) can later quickly recover (1 ⁇ ) ⁇ x ⁇ y ⁇ 1 , i.e., a value Z ⁇ [(1 ⁇ ) ⁇ x ⁇ y ⁇ 1 , (1+ ⁇ ) ⁇ x ⁇ y ⁇ 1 ], given only s(x) and s(y).
  • ⁇ x ⁇ y ⁇ 1 ⁇ i 1 n
  • the third party succeeds with probability at least 2 ⁇ 3 over the randomness of Alice and Bob.
  • Alice and Bob run a sketching procedure to compute the sketches s(x) and s(y) in O(n log 2 (nM)) processing time, which is independent of ⁇ .
  • the size of each of the sketches s(x) and s(y) is a nearly-optimal O( ⁇ ⁇ 2 log(1/ ⁇ )log(nM)) bits.
  • the time for a third party to recover a (1 ⁇ )-approximation to the L 1 -difference, given the sketches is nearly linear in the sketch size.
  • the sketching procedure disclosed herein may be implemented as a one-pass streaming algorithm over an adversarial ordering of the coordinates of x, y (i.e., the sketching procedure works even if the entries of x, y are given in arbitrary order in a data stream).
  • the sketching procedure is also referred to as a streaming algorithm.
  • FIG. 1 is a block diagram of a system for monitoring network traffic using a sketching procedure, in accordance with embodiments of the present invention.
  • System 100 includes a computer system 102 , a first router 104 and a second router 106 .
  • the first and second routers 104 , 106 exchange information with computer system 102 via a network 108 .
  • First and second routers 104 , 106 receive data packets included in data streams via network 108 (e.g., the Internet) or another network (not shown).
  • network 108 e.g., the Internet
  • One or more other routers may also receive data packets via network 108 or another network, and exchange information with computer system 102 .
  • Router 104 , router 106 and any other router each include a software-based sketch generator 110 that generates a sketch (i.e., a summary or description) of information of a flow (a.k.a. flow information), where the flow includes a vector of data received by the router that includes the sketch generator.
  • a sketch generated by sketch generator 110 The characteristics of a sketch generated by sketch generator 110 are presented below relative to the discussion of FIG. 2 .
  • each of the routers 104 and 106 may include a processor and a memory that includes code containing instructions that are carried out by the processor to generate a sketch.
  • Computer system 102 includes the following software-based components: a sketch collector 112 , an L 1 -difference estimator 114 , and a network traffic monitor 116 .
  • Sketch collector 112 receives sketches from routers 104 , 106 via network 108 .
  • L 1 -difference estimator 114 estimates an L 1 -difference between one vector of data received by router 104 and another vector of data received by router 106 .
  • L 1 -difference estimator 114 uses one sketch generated by router 104 and received by sketch collector 112 and another sketch generated by router 106 and received by sketch collector 112 , as described below relative to FIG. 2 , FIG. 3 , and FIGS. 4A-4B .
  • Network traffic monitor 116 utilizes the L 1 -difference estimated by L 1 -difference estimator 114 to determine network traffic via network 108 and may send instructions to router 104 and/or router 106 to manage network traffic. In one embodiment, monitor 116 monitors Internet traffic.
  • the aforementioned Alice and Bob are implemented as routers 104 and 106 , respectively, and the aforementioned third party that recovers (1 ⁇ ) ⁇ x ⁇ y ⁇ 1 , given only sketches s(x) and s(y) respectively generated by Alice and Bob is implemented as computer system 102 .
  • FIG. 2 is a flowchart of a process for monitoring network traffic using a sketching procedure, where the process may be implemented in the system of FIG. 1 , in accordance with embodiments of the present invention.
  • the process in FIG. 2 employs the sketching procedure disclosed herein to monitor Internet traffic.
  • the network traffic monitoring process begins at step 200 .
  • software e.g., NetFlow offered by Cisco Systems, Inc. located in San Jose, Calif.
  • IP Internet Protocol
  • a first router collects information about a first flow, where the information includes a set of pairs (x, f t (x)), where x indicates the source and destination (i.e., a source-destination pair) of data packets in the first flow, and where f t (x) is a measurement of the amount of digital information (e.g., the total number of bytes) sent in the first flow from the source to the destination in a time period t.
  • step 204 the sketch generator 110 in the first router generates a sketch D t that describes and summarizes the set of pairs collected in step 202 .
  • Step 204 also includes the first router storing the sketch D t in memory (not shown in FIG. 1 ) included in the first router.
  • a second router collects information about a second flow, where the collected information about the second flow includes a set of pairs (x, f t′ (x)), where x is a source-destination pair for the second flow, and where f t′ (x) is a measurement of the amount of digital information (e.g., the total number of bytes) sent in the second flow from the source to the destination in a time period t′.
  • the sketch generator 110 in the second router generates a sketch D t′ that describes and summarizes the set of pairs collected in step 206 .
  • Step 208 also includes the second router storing the sketch D t′ in memory (not shown in FIG. 1 ) included in the second router.
  • first router and the second router are the same router and time period t and t′ are different time periods. In another embodiment, the first router and the second router are different routers and time periods t and t′ are the same time period.
  • step 210 sketch collector 112 (see FIG. 1 ) running in computer system 102 (see FIG. 1 ) receives sketches D t and D t′ from the first router and the second router, respectively.
  • step 212 L 1 difference estimator 114 (see FIG. 1 ) running in computer system 102 (see FIG. 1 ) estimates the L 1 difference between the set of pairs collected in step 202 and the set of pairs collected in step 206 .
  • the estimation of the L 1 difference in step 212 is based on sketches D t and D t′ . It should be noted that “L 1 difference” and “L 1 -difference” are used synonymously herein.
  • step 214 network traffic monitor 116 running in computer system 102 determines differences in traffic patterns on network 108 (see FIG. 1 ) based on the L 1 -difference estimated in step 212 .
  • the estimated L 1 -difference between such sets of pairs assembled during different time periods or at different routers indicates a change in Internet traffic patterns and may thereby indicate a denial of service attack if the estimated L 1 -difference is substantially large based on predefined criteria, or that network links are becoming congested. If the estimated L 1 -difference indicates that links are becoming congested, then one or more other routers (i.e., other than the routers 104 and 106 in FIG.
  • the process of FIG. 2 ends at step 216 .
  • the aforementioned set of pairs (x, f t (x)) may be very large for the given time period t, and the method described herein provides a very fast (i.e., in near linear time) procedure for sweeping through the set and producing a very short (i.e., logarithmic size in the original description of the set) description D t of the set of pairs.
  • router 104 in FIG. 1 may, for example, simply store the short description D t of the set of pairs and remove the set of pairs from the router's memory contents (see step 204 ). Later, at a second time period t′, which is subsequent to time period t, the router 104 (see FIG. 1 ) may obtain a second set of pairs (x, f t′ (x)) and run the same procedure to obtain a second short description D t′ , store the description D t′ in memory, and remove the set of pairs (x, f t′ (x)) from the router's memory contents (see step 208 ).
  • the descriptions obtained by the router have the property that given D t and D t′ , the method described herein quickly (i.e., in near linear time in the size of D t and D t′ ) estimates the value ⁇ x
  • This estimated value is more robust and less sensitive to outliers than other measures, such as ⁇ x (f t (x) ⁇ f t′ (x)) 2 .
  • sketch generator 110 (see FIG. 1 ) to produce a short sketch in step 204 summarizing the set of pairs collected in step 202 and another short sketch in step 208 summarizing the set of pairs collected in step 206 allows a central control and storage facility (a.k.a. central processing facility; i.e., computer system 102 in FIG. 1 ) to later efficiently approximate the L 1 -difference (see step 212 ) between the sketches that the central processing facility receives (see step 210 ).
  • the routers 104 , 106 (see FIG. 1 ) producing the sketches cannot predict which source-destination pairs they will receive, or in which order. Since the routers 104 , 106 (see FIG.
  • the L 1 -difference algorithm disclosed herein supports arbitrary permutations of the assembled sets of values. Because of the substantially large size of the packet streams, it is advantageous for the update time to produce the sketches to be as small as possible.
  • the L 1 -difference problem is embedded into L 0 , the number of non-zero coordinates of the underlying vector (i.e., x ⁇ y) presented as data stream.
  • x i , y i the number of non-zero coordinates of the underlying vector (i.e., x ⁇ y) presented as data stream.
  • x i , y i the number of non-zero coordinates of the underlying vector (i.e., x ⁇ y) presented as data stream.
  • x i , y i ⁇ 0 the number of non-zero coordinates of the underlying vector presented as data stream.
  • Alice treats her input x, as a set of distinct items M(i ⁇ 1) +1, . . . , M(i ⁇ 1)+x i
  • Bob treats his input y i as a set of distinct items M(i ⁇ 1)+1, . . . , M(i ⁇ 1)+y i .
  • the size of the set-difference of these two sets of distinct items is
  • the problem with directly reducing to L 0 is that, while the space of the resulting L 1 -difference algorithm is an optimal O( ⁇ ⁇ 2 log(nM)), the processing time can be as large as O(nM) because each set element must be inserted into the L 0 -algorithm.
  • the present invention overcomes this problem by providing a range-efficient L 0 algorithm that allows updates to ranges at a time, which works for streams coming out of the reduction to L 0 by exploiting the structure of ranges that are updated. All updated ranges are of length at most M and start at an index of the form M(i ⁇ 1)+1. Furthermore, the range-efficient L 0 algorithm described herein allows deletions, a feature not found in known L 0 algorithms.
  • the sketching procedure presented herein works by sub-sampling by powers of 2 the universe [nM] arising out of the reduction to L 0 .
  • the sketching procedure keeps a corresponding data structure (a.k.a. summary data structure) of size O( ⁇ ⁇ 2 log(1/ ⁇ )) to summarize the items that are sub-sampled at the corresponding level.
  • the sketching procedure also maintains another data structure on the side to handle the case when L 0 is small, and in parallel, the sketching procedure obtains a constant-factor approximation R of the L 1 -difference.
  • the sketching procedure provides an estimate of the L 1 -difference based on the summary data structure that summarizes the items at a level at which the expected number of universe elements sub-sampled is 1/ ⁇ 2 , where the level is determined based on R being known.
  • the sub-sampling of the data stream may be implemented using pairwise-independent hash functions, which allows the use a subroutine for quickly counting the number of universe elements that are sub-sampled at each of the log(nM) levels. Given these counts, each of the aforementioned summary data structures may be updated efficiently.
  • the summary data structure at a given level may be viewed as maintaining (x′ ⁇ y′)H, where H is the parity-check matrix of a linear error-correcting code, and x′, y′ are the vectors derived from x, y by sub-sampling at that level.
  • H the parity-check matrix of a linear error-correcting code
  • x′, y′ are the vectors derived from x, y by sub-sampling at that level.
  • the sketching procedure disclosed herein hashes the indices of x′, y′ into O( ⁇ ⁇ 2 /log(1/ ⁇ )) buckets with an O(log(1/ ⁇ ))-wise independent hash function, and then keeps in each bucket the product of the difference vector, restricted to the indices mapped to that bucket, with the parity check matrix. With constant probability, no bucket receives more than O(log(1/ ⁇ )) indices where x′, y′ differ.
  • the sketching procedure disclosed herein may use a Reed-Solomon code with minimum distance only O(log(1/ ⁇ )), thereby making the decoding sufficiently fast.
  • the model in which the sketching procedure runs is formally defined as follows. Alice receives x ⁇ ⁇ M, . . . , M ⁇ n , and Bob receives y ⁇ ⁇ M, . . . , M ⁇ n . Both computing devices (i.e., Alice and Bob) have access to a shared source of randomness and must, respectively, output bit-strings s(x) and s(y). The requirement is that a third party (e.g., computer system 102 in FIG. 1 ) can, given access to only s(x) and s(y), compute a value Z such that Pr[
  • the probability is over the randomness shared by Alice and Bob, and the value ⁇ ⁇ (0,1] is a parameter given to Alice and Bob.
  • the goal is to minimize the lengths of s(x) and s(y), as well as the amount of time Alice and Bob each take to compute them.
  • the description of the present invention assumes x i , y i ⁇ 0 for all i. This assumption of x i , y i ⁇ 0 for all i can be enforced by increasing all coordinates of x, y by M, which does not alter ⁇ x ⁇ y ⁇ 1 . Doing so increases the upper bound on coordinate entries by a factor of two, but this increase alters the sketching procedure's running time and resulting sketch size by subconstant factors.
  • ⁇ 1 ⁇ x ⁇ y ⁇ 1
  • the streaming algorithm must approximate ⁇ 1 .
  • Alice and Bob to use the streaming algorithm for sketching, Alice runs the streaming algorithm with updates (i, x i ) for each 1 ⁇ i ⁇ n to produce a sketch, and Bob separately runs the streaming algorithm (using the same random bits) with updates (i, y i ) to produce a sketch.
  • the sketches produced are simply the contents of the streaming algorithm's memory at the end of the data stream. It is a consequence of how the streaming algorithm works that these sketches can be combined by a third party (e.g., computer system 102 in FIG. 1 ) to approximate ⁇ f ⁇ 1 .
  • a third party e.g., computer system 102 in FIG. 1
  • FIG. 3 is a flowchart of a subroutine used for computing an L 1 exactly when L 1 is small, where the subroutine may be included in the process of FIG. 2 , in accordance with embodiments of the present invention.
  • FIG. 3 includes steps of a subroutine referred to herein as T WO L EVEL E STIMATOR .
  • the subroutine of FIG. 3 begins at step 300 .
  • Each of the steps 302 - 310 described below is performed by software running in computer system 102 .
  • steps 302 - 310 are performed by L 1 difference estimator 114 (see FIG. 1 ).
  • d log(x) is the discrete logarithm of x (i.e., the i ⁇ GF(p) such that g i ⁇ x mod p).
  • the choice of k will be relatively small in the final algorithm, so this step will be efficient.
  • GF(p) may be replaced with the set ⁇ 0, 1, 2, 3, . . . , p ⁇ 1 ⁇ .
  • GF(x) for an integer x denotes the finite field (i.e., Galois field) containing x elements.
  • step 304 for each j ⁇ [ ⁇ k/log ⁇ ], maintain 2s counters X 1 j , . . . , X 2s j modulo p, where the counters are initialized to 0.
  • step 306 in response to identifying stream update (i, v), increment X z h 1 (i) by ⁇ (h 2 (i)) z for z ⁇ [2s].
  • the subroutine in FIG. 3 ends at step 312 .
  • the subroutine T WO L EVEL E STIMATOR in FIG. 3 makes calls to the following algorithm included in Theorem 1.
  • the T WO L EVEL E STIMATOR subroutine uses O(k log k) bits of space.
  • the hash functions h 1 , h 2 and tables T 1 , T 2 require an additional O((log k) (log n)+k log 2 k) bits.
  • the time to process a stream update is O(log k). If L 1 ⁇ k, the final output value of the T WO L EVEL E STIMATOR subroutine equals L 1 exactly with probability at least 3 ⁇ 4.
  • Pr[Q Q′] Pr[Q] ⁇ Pr[Q′
  • step 302 the subroutine twice picks a hash function h: [a] ⁇ [b] from an m-wise independent family for some integers m and a ⁇ b (namely h 1 and h 2 ).
  • a a prime power. This is easily circumvented.
  • the T WO L EVEL E STIMATOR subroutine picks a prime ⁇ 2 ⁇ max ⁇ a, b ⁇ and then picks an m-wise independent hash function h′: [ ⁇ ] ⁇ [ ⁇ ] and define h(x) (h′(x) mod b)+1.
  • the family of such h is still m-wise independent, and by choice of ⁇ , no range value is more than twice more likely than any other, which suffices for the present invention with a slight worsening of constant factors.
  • Theorem 4 analyzes the pre-processing and post-processing complexity of the T WO L EVEL E STIMATOR subroutine.
  • Theorem 4 Ignoring the time needed to find the prime ⁇ in Remark 1, the pre-processing time of the T WO L EVEL E STIMATOR subroutine before seeing the stream is O(k log k), and the post-processing time is O(k log k log log k log log log k).
  • the post-processing work of the T WO L EVEL E STIMATOR subroutine is done in steps 308 and 310 in FIG. 3 .
  • step 310 the absolute values of O(log k) non-zero entries of O(k/log k) vectors f j must be summed, taking time O(k). Thus, Theorem 4 is proven.
  • Theorem 5 There is a one-pass streaming algorithm for (1 ⁇ )-approximating the L 1 -difference using O( ⁇ ⁇ 2 log(nM)) space with update time O( ⁇ ⁇ 2 log(nM)), and succeeding with probability at least 19/20.
  • the update time in Theorem 5 is O( ⁇ ⁇ 2 field(log(nM))), where field(D) is the time to do arithmetic over GF(2 D ) (not including division).
  • FIGS. 4A-4B depict a flowchart of a method for computing an estimation of L 1 , where the method may be included in the process of FIG. 2 , in accordance with embodiments of the present invention.
  • the method for computing an estimation of L 1 is referred to herein as the L1-DIFF method.
  • the L1-DIFF method starts at step 400 in FIG. 4A .
  • Each of the steps 402 - 410 in FIG. 4A and steps 412 - 420 in FIG. 4B is performed by software running on computer system 102 (see FIG. 1 ).
  • steps 402 - 410 in FIG. 4A and steps 412 - 420 in FIG. 4B are performed by L 1 difference estimator 114 (see FIG. 1 ).
  • ⁇ 1, and m q.
  • step 412 of FIG. 4B which is performed in parallel with steps 406 - 410 in FIG. 4A , run the algorithm of Theorem 5 with error parameter 1 ⁇ 3 to obtain a value R′ ⁇ [L 1 /2, L 1 ].
  • step 414 R′ is compared to ⁇ 1/( ⁇ ′) 2 ⁇ . If step 414 determines that R′ ⁇ 1/( ⁇ ′) 2 ⁇ , then the Yes branch of step 414 is taken and R is output in step 416 . Following step 416 , the process of FIGS. 4A-4B ends at step 418 . Otherwise, if step 414 determines that R′> ⁇ 1/( ⁇ ′) 2 ⁇ , then the No branch of step 414 is taken and q ⁇ 2 ⁇ log(( ⁇ ′) 2 R′) ⁇ log q ⁇ R ⁇ log(( ⁇ ′) 2 R′) ⁇ is output in step 420 . Following step 420 , the process of FIGS. 4A-4B ends at step 418 .
  • Theorem 7 The algorithm L1-DIFF has update time O(log( ⁇ 2 nM) log(M/ ⁇ )) and the bits of space used is O( ⁇ ⁇ 2 log(1/ ⁇ ) log( ⁇ ⁇ 2 nM)).
  • the pre-processing time used is polylog(nM)+O( ⁇ ⁇ 2 log(1/ ⁇ ) log( ⁇ ⁇ 2 nM)).
  • Time O( ⁇ ⁇ 2 log(1/ ⁇ ) log log(1/ ⁇ ) log log log log log(1/ ⁇ )) is needed for post-processing.
  • the output is (1 ⁇ )L 1 with probability at least 2 ⁇ 3.
  • Step 412 in FIG. 4B requires only O(log(nM)) space by Theorem 5, since the algorithm is run with error parameter 1 ⁇ 3.
  • the necessary update must be fed to each TLE j , each time taking O(log(1/ ⁇ )) time by Theorem 3. Updating every TLE j takes time O(log( ⁇ 2 nM) log(1/ ⁇ )).
  • a prime q In pre-processing, a prime q must be selected in the desired range, which can be accomplished by picking numbers at random and testing primality.
  • the expected time is polylog(nM).
  • the pre-processing time for step 412 in FIG. 4B is O(1).
  • the estimate R′ from step 412 (see FIG. 4B ) must be recovered, which takes O(1) time, and then an estimate from some T WO L EVEL E STIMATOR instantiation must be recovered, so the time is as claimed in Theorem 7. Note that in post-processing, to save time steps 308 and 310 (see FIG. 3 ) of the T WO L EVEL E STIMATOR subroutine should not be run, except at the instantiation whose output is used following step 414 in FIG. 4B .
  • TLE computes L 1 exactly with probability at least 3 ⁇ 4 by Theorem 3, and hence overall outputs L 1 exactly with probability at least (19/20)•(3 ⁇ 4)>2 ⁇ 3.
  • L 1 > ⁇ 1/( ⁇ ′) 2 ⁇ .
  • L1-DIFF helps to view L1-DIFF as actually computing L 0 (f′)
  • f′ j denote the vector whose ith entry, i ⁇ [nM], is f′ i if h(i) ⁇ [c j , d i ], and 0 otherwise. That is, f′ j receives stream updates only to items fed to TLE j .
  • X i,j be a random variable indicating h(i) ⁇ [c j , d j ]
  • Pr[Q Q′ ⁇ circumflex over ( 0 ) ⁇ Q′′] PR[Q] Pr[Q′
  • the streaming algorithm disclosed herein also gives a sketching procedure because, as long as Alice and Bob share randomness, they can generate the same h, h 1 , h 2 , p, g and then separately apply the streaming algorithm to their vectors x, y.
  • the sketch is then just the state of the streaming algorithm's data structures. Since each stream token causes only linear updates to counters, a third party can then take the counters from Bob's sketch and subtract them from Alice's, then do post-processing to recover the estimation of the L 1 -difference.
  • the running time for Alice and Bob to produce their sketches is the streaming algorithm's pre-processing time, plus n times the update time.
  • the time for the third party to obtain an approximation to ⁇ x ⁇ y ⁇ 1 is the time required to combine the sketches, plus the post-processing time.
  • FIG. 5 is a block diagram of a computer system that is included in the system of FIG. 1 and that implements the processes of FIG. 2 , FIG. 3 and FIGS. 4A-4B , in accordance with embodiments of the present invention.
  • Computer system 102 generally comprises a central processing unit (CPU) 502 , a memory 504 , an input/output (I/O) interface 506 , and a bus 508 . Further, computer system 102 may be coupled to I/O devices 510 and a computer data storage unit 512 .
  • CPU 502 performs computation and control functions of computer system 102 .
  • CPU 502 may comprise a single processing unit, or be distributed across one or more processing units in one or more locations (e.g., on a client and server).
  • computer system 102 implements sketch collector 112 (see FIG. 1 ), L 1 difference estimator 114 (see FIG. 1 ), and network traffic monitor 116 (see FIG. 1 ).
  • Memory 504 may comprise any known computer readable storage medium, which is described below.
  • cache memory elements of memory 504 provide temporary storage of at least some program code (e.g., program code 514 , 516 , 518 ) in order to reduce the number of times code must be retrieved from bulk storage while instructions of the program code are carried out.
  • program code 514 , 516 , 518 program code 514 , 516 , 518
  • memory 504 may reside at a single physical location, comprising one or more types of data storage, or be distributed across a plurality of physical systems in various forms. Further, memory 504 can include data distributed across, for example, a local area network (LAN) or a wide area network (WAN).
  • LAN local area network
  • WAN wide area network
  • I/O interface 506 comprises any system for exchanging information to or from an external source.
  • I/O devices 510 comprise any known type of external device, including a display device (e.g., monitor), keyboard, mouse, printer, speakers, handheld device, facsimile, etc.
  • Bus 508 provides a communication link between each of the components in computer system 102 , and may comprise any type of transmission link, including electrical, optical, wireless, etc.
  • I/O interface 506 also allows computer system 102 to store and retrieve information (e.g., data or program instructions such as program code 514 , 516 and 518 ) from an auxiliary storage device such as computer data storage unit 512 or another computer data storage unit (not shown).
  • Computer data storage unit 512 may comprise any known computer readable storage medium, which is described below.
  • computer data storage unit 512 may be a non-volatile data storage device, such as a magnetic disk drive (i.e., hard disk drive) or an optical disc drive (e.g., a CD-ROM drive which receives a CD-ROM disk).
  • Memory 504 may include computer program code 514 , 516 and 518 that provides the logic for collecting sketches, estimating an L 1 difference, and monitoring network traffic, respectively, (e.g., the processes of FIG. 2 , FIG. 3 and FIGS. 4A-4B ).
  • computer program code 514 , 516 and 518 is included in sketch collector 112 (see FIG. 1 ), L 1 difference estimator 114 (see FIG. 1 ), and network traffic monitor 116 (see FIG. 1 ), respectively.
  • memory 504 may include other systems not shown in FIG. 5 , such as an operating system (e.g., Linux) that runs on CPU 502 and provides control of various components within and/or connected to computer system 102 .
  • an operating system e.g., Linux
  • the present invention may be embodied as a system, method or computer program product. Accordingly, aspects of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment (including firmware, resident software, micro-code, etc.) or an embodiment combining software and hardware aspects that may all generally be referred to herein as a “module” or “system” (e.g., system 100 in FIG. 1 or computer system 102 ).
  • an embodiment of the present invention may take the form of a computer program product embodied in one or more computer readable medium(s) (e.g., memory 504 or computer data storage unit 512 ) having computer readable program code (e.g., program code 514 , 516 and/or 518 ) embodied or stored thereon.
  • computer readable medium(s) e.g., memory 504 or computer data storage unit 512
  • computer readable program code e.g., program code 514 , 516 and/or 518
  • the computer readable medium may be a computer readable storage medium or a computer readable signal medium.
  • a computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared or semiconductor system, apparatus, device or any suitable combination of the foregoing.
  • a non-exhaustive list of more specific examples of the computer-readable storage medium includes: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
  • a computer readable storage medium may be any tangible medium that can contain or store a program for use by or in connection with a system, apparatus, or device for carrying out instructions.
  • a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated signal may take any of a variety of forms, including, but not limited to, electromagnetic, optical, or any suitable combination thereof.
  • a computer readable signal medium may be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with a system, apparatus, or device for carrying out instructions.
  • Program code (e.g., program code 514 , 516 and/or 518 ) embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
  • Computer program code (e.g., program code 514 , 516 and/or 518 ) for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java®, Smalltalk, C++ or the like and conventional procedural programming languages, such as the “C” programming language or similar programming languages.
  • object oriented programming language such as Java®, Smalltalk, C++ or the like
  • conventional procedural programming languages such as the “C” programming language or similar programming languages.
  • Instructions of the program code may be carried out entirely on a user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server, where the aforementioned user's computer, remote computer and server may be, for example, computer system 102 or another computer system (not shown) having components analogous to the components of computer system 102 included in FIG. 5 .
  • the remote computer may be connected to the user's computer through any type of network (not shown), including a LAN or a WAN, or the connection may be made to an external computer (e.g., through the Internet using an Internet Service Provider).
  • These computer program instructions may be provided to a processor (e.g., CPU 502 ) of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which are carried out via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.
  • a processor e.g., CPU 502
  • These computer program instructions may also be stored in a computer readable medium (e.g., memory 504 or computer data storage unit 512 ) that can direct a computer (e.g., computer system 102 ), other programmable data processing apparatus, or other devices to function in a particular manner, such that the instructions stored in the computer readable medium produce an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
  • a computer readable medium e.g., memory 504 or computer data storage unit 512
  • a computer e.g., computer system 102
  • other programmable data processing apparatus e.g., computer system 102
  • the computer program instructions may also be loaded onto a computer (e.g., computer system 102 ), other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus, or other devices to produce a computer implemented process such that the instructions which are carried out on the computer, other programmable apparatus, or other devices provide processes for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.
  • an embodiment of the present invention discloses a process for supporting computer infrastructure, comprising integrating, hosting, maintaining and deploying computer-readable code (e.g., program code 514 , 516 and 518 ) into a computer system (e.g., computer system 102 ), wherein the code in combination with the computer system is capable of performing a process of monitoring network traffic by estimating an L 1 difference.
  • computer-readable code e.g., program code 514 , 516 and 518
  • the invention provides a business method that performs the process steps of the invention on a subscription, advertising and/or fee basis. That is, a service provider, such as a Solution Integrator, can offer to create, maintain, support, etc. a process of monitoring network traffic by estimating an L 1 difference. In this case, the service provider can create, maintain, support, etc. a computer infrastructure that performs the process steps of the invention for one or more customers. In return, the service provider can receive payment from the customer(s) under a subscription and/or fee agreement, and/or the service provider can receive payment from the sale of advertising content to one or more third parties.
  • a service provider such as a Solution Integrator
  • the service provider can receive payment from the customer(s) under a subscription and/or fee agreement, and/or the service provider can receive payment from the sale of advertising content to one or more third parties.
  • each block in the flowcharts or block diagrams may represent a module, segment, or portion of code (e.g., program code 514 , 516 or 518 ), which comprises one or more executable instructions for implementing the specified logical function(s).
  • program code 514 , 516 or 518 comprises one or more executable instructions for implementing the specified logical function(s).
  • the functions noted in the block may occur out of the order noted in the figures.

Abstract

A method and system for monitoring network traffic by estimating an L1 difference. Sketches in the form (x, ft(x)) are received from first and second network devices, where x indicates a source-destination pair, and ft(x) indicates an amount of information transmitted via the network device from the source to the destination in a time period t. An L1 difference between ft(x) values is estimated by determining an L0 value of a data stream resulting from the first network device inserting elements of a first set of distinct items as insertions into the data stream and from the second network device inserting elements of a second set as deletions from the data stream. Determining the L0 value includes processing updates to ranges of the data stream. Based on the L1 difference, a pattern of the network traffic is determined.

Description

    FIELD OF THE INVENTION
  • The present invention relates to a data processing method and system for monitoring traffic on a computer network, and more particularly to a technique for efficiently summarizing Internet traffic patterns.
  • BACKGROUND OF THE INVENTION
  • Efficient processing of massive databases is a challenging and important task in applications such as observational sciences, product marketing and monitoring large systems. A data set being processed by in a massive database may be distributed across several network devices, each receiving a portion of the data as a stream. The devices locally process their data, producing a small sketch, which can then be transmitted to other devices for further processing. Known techniques focus on producing sketches of minimal size for various problems, thereby providing space-efficient processing, while failing to adequately provide time-efficient processing. Thus, there exists a need to overcome at least one of the preceding deficiencies and limitations of the related art.
  • SUMMARY OF THE INVENTION
  • In one or more embodiments, the present invention provides a computer-implemented method of monitoring network traffic by estimating an L1 difference. The method comprises:
  • receiving a first sketch s(x) from a first network device and a second sketch from a second network device, wherein the first sketch describes a first set of pairs of data (x, ft(x)), wherein x indicates a source and a destination of a first plurality of data packets that include input x, transmitted via the first network device, wherein ft(x) indicates a first amount of information in the first plurality of data packets transmitted via the first network device from the source to the destination in a time period t, wherein the second sketch s(y) describes a second set of pairs of data (y, ft′(y)), wherein y indicates the source and the destination of a second plurality of data packets that include input y transmitted via the second network device, wherein ft′(y) indicates a second amount of information in the second plurality of data packets transmitted via the second network device from the source to the destination in a time period t′;
  • a processor of a computer system estimating an L1 difference ∥ft(x)−ft′(y)∥1, wherein the estimating the L1 difference includes determining an L0 value of a data stream resulting from the first network device inserting elements of a first set of distinct items as insertions into the data stream and from the second network device inserting elements of a second set as deletions from the data stream, wherein the first set includes distinct items derived from xi, wherein the second set of distinct items includes distinct items derived from yi, and wherein the determining the L0 value includes processing updates to ranges of the data stream; and
  • determining a pattern of the network traffic based on the L1 difference.
  • A system and program product corresponding to the above-summarized method are also described and claimed herein.
  • Embodiments of the present invention provide space- and time-efficient sketches for the determination of an L1 distance for summarizing contents of databases distributed over a network and for Internet traffic monitoring. Furthermore, embodiments of the present invention allow network devices to compute their sketches in only O(n log2(nM)) time.
  • BRIEF DESCRIPTION OF THE DRAWINGS
  • FIG. 1 is a block diagram of a system for monitoring network traffic using a sketching procedure, in accordance with embodiments of the present invention.
  • FIG. 2 is a flowchart of a process for monitoring network traffic using a sketching procedure, where the process may be implemented in the system of FIG. 1, in accordance with embodiments of the present invention.
  • FIG. 3 is a flowchart of a subroutine used for computing an L1 exactly when L1 is small, where the subroutine may be included in the process of FIG. 2, in accordance with embodiments of the present invention.
  • FIGS. 4A-4B depict a flowchart of a method for computing an estimation of L1, where the method may be included in the process of FIG. 2, in accordance with embodiments of the present invention.
  • FIG. 5 is a block diagram of a computer system that is included in the system of FIG. 1 and that implements the process of FIG. 2, FIG. 2, FIG. 3 and FIGS. 4A-4B, in accordance with embodiments of the present invention.
  • DETAILED DESCRIPTION OF THE INVENTION Overview
  • The problem of producing space-efficient and time-efficient sketches for the L1 distance (i.e., the Manhattan distance) has applications related to summarizing contents of databases distributed over a network, and is especially useful for monitoring computer network traffic (e.g., monitoring Internet traffic). Embodiments of the present invention describe a method and system that utilizes a sketching procedure that provides nearly-optimal sized sketches for L1 in nearly linear time. Specifically, suppose a first computing device (e.g., a first router) receives a vector x ∈ {−M, . . . , M}n of data, a second computing device (e.g., a second router) receives a vector y ∈ {−M, . . . , M}n of data, and the first and second computing devices share randomness. As used herein, computing devices that share randomness are computing devices that have access to a shared random key, such as a cryptographic key or a public book of random numbers. Hereinafter, the first and second computing devices are also referred to as “Alice” and “Bob,” respectively. Alice and Bob also receive a parameter 0<ε≦1. Alice outputs a sketch s(x), and Bob outputs a sketch s(y), such that a third party (e.g., a computer system) can later quickly recover (1±ε)∥x−y∥1, i.e., a value Z ∈ [(1−ε)∥x−y∥1, (1+ε)∥x−y∥1], given only s(x) and s(y). As used herein, ƒx−y∥1−Σi=1 n|xi−yi| and denotes the L1-norm of the vector x−y (i.e., denotes the L1-difference of x and y). The third party succeeds with probability at least ⅔ over the randomness of Alice and Bob.
  • In embodiments of the present invention, Alice and Bob run a sketching procedure to compute the sketches s(x) and s(y) in O(n log2(nM)) processing time, which is independent of ε. The size of each of the sketches s(x) and s(y) is a nearly-optimal O(ε−2 log(1/ε)log(nM)) bits. Thus, the time for a third party to recover a (1±ε)-approximation to the L1-difference, given the sketches, is nearly linear in the sketch size. Furthermore, the sketching procedure disclosed herein may be implemented as a one-pass streaming algorithm over an adversarial ordering of the coordinates of x, y (i.e., the sketching procedure works even if the entries of x, y are given in arbitrary order in a data stream). Hereinafter, the sketching procedure is also referred to as a streaming algorithm.
  • A known sketching procedure for estimating the L1-difference is described in Feigenbaum et al., An approximate L1-difference algorithm for massive data streams, SIAM Journal on Computing 32(1):131-151, 2002, achieves an optimal sketch length of O(ε−2 log(nM)) bits, but has a running time of O(n log(nM)/ε2), which unlike the present invention, is dependent upon ε.
  • Although systems and methods are discussed herein relative to network traffic monitoring, it will be apparent to those skilled in the art that the systems and methods may be modified so that databases generate sketches of their data, and the central processing facility receives the sketches from the databases and given the received sketches, determines whether or not the databases include the same data.
  • System for Monitoring Network Traffic
  • FIG. 1 is a block diagram of a system for monitoring network traffic using a sketching procedure, in accordance with embodiments of the present invention. System 100 includes a computer system 102, a first router 104 and a second router 106. The first and second routers 104, 106 exchange information with computer system 102 via a network 108. First and second routers 104, 106 receive data packets included in data streams via network 108 (e.g., the Internet) or another network (not shown). One or more other routers (not shown) may also receive data packets via network 108 or another network, and exchange information with computer system 102.
  • Router 104, router 106 and any other router (not shown) each include a software-based sketch generator 110 that generates a sketch (i.e., a summary or description) of information of a flow (a.k.a. flow information), where the flow includes a vector of data received by the router that includes the sketch generator. The characteristics of a sketch generated by sketch generator 110 are presented below relative to the discussion of FIG. 2. Although not shown in FIG. 1, each of the routers 104 and 106 may include a processor and a memory that includes code containing instructions that are carried out by the processor to generate a sketch.
  • Computer system 102 includes the following software-based components: a sketch collector 112, an L1-difference estimator 114, and a network traffic monitor 116. Sketch collector 112 receives sketches from routers 104, 106 via network 108. L1-difference estimator 114 estimates an L1-difference between one vector of data received by router 104 and another vector of data received by router 106. To estimate the L1-difference, L1-difference estimator 114 uses one sketch generated by router 104 and received by sketch collector 112 and another sketch generated by router 106 and received by sketch collector 112, as described below relative to FIG. 2, FIG. 3, and FIGS. 4A-4B. Network traffic monitor 116 utilizes the L1-difference estimated by L1-difference estimator 114 to determine network traffic via network 108 and may send instructions to router 104 and/or router 106 to manage network traffic. In one embodiment, monitor 116 monitors Internet traffic.
  • Details of the functionality of computer system 102 and its components, and the functionality of routers 104, 106, and their respective components are included in the discussions presented below relative to FIG. 2, FIG. 3 and FIGS. 4A-4B.
  • In one embodiment, the aforementioned Alice and Bob are implemented as routers 104 and 106, respectively, and the aforementioned third party that recovers (1±ε)∥x−y∥1, given only sketches s(x) and s(y) respectively generated by Alice and Bob is implemented as computer system 102.
  • Procedure for Internet Traffic Monitoring
  • FIG. 2 is a flowchart of a process for monitoring network traffic using a sketching procedure, where the process may be implemented in the system of FIG. 1, in accordance with embodiments of the present invention. In one embodiment, the process in FIG. 2 employs the sketching procedure disclosed herein to monitor Internet traffic. The network traffic monitoring process begins at step 200. As data packets travel through routers including routers 104 and 106 (see FIG. 1), software (e.g., NetFlow offered by Cisco Systems, Inc. located in San Jose, Calif.) running on the routers produces summary statistics of groups of data packets, where the packets in a group of packets have the same source and destination (e.g., the same source and destination Internet Protocol (IP) address). Each of the aforementioned groups of packets is referred to herein as a flow. In step 202, a first router (e.g., router 104 (see FIG. 1)) collects information about a first flow, where the information includes a set of pairs (x, ft(x)), where x indicates the source and destination (i.e., a source-destination pair) of data packets in the first flow, and where ft(x) is a measurement of the amount of digital information (e.g., the total number of bytes) sent in the first flow from the source to the destination in a time period t. In step 204, the sketch generator 110 in the first router generates a sketch Dt that describes and summarizes the set of pairs collected in step 202. Step 204 also includes the first router storing the sketch Dt in memory (not shown in FIG. 1) included in the first router.
  • In step 206, a second router (e.g., router 106 (see FIG. 1)) collects information about a second flow, where the collected information about the second flow includes a set of pairs (x, ft′(x)), where x is a source-destination pair for the second flow, and where ft′(x) is a measurement of the amount of digital information (e.g., the total number of bytes) sent in the second flow from the source to the destination in a time period t′. In step 208, the sketch generator 110 in the second router generates a sketch Dt′ that describes and summarizes the set of pairs collected in step 206. Step 208 also includes the second router storing the sketch Dt′ in memory (not shown in FIG. 1) included in the second router.
  • In one embodiment, the first router and the second router are the same router and time period t and t′ are different time periods. In another embodiment, the first router and the second router are different routers and time periods t and t′ are the same time period.
  • In step 210, sketch collector 112 (see FIG. 1) running in computer system 102 (see FIG. 1) receives sketches Dt and Dt′ from the first router and the second router, respectively. In step 212, L1 difference estimator 114 (see FIG. 1) running in computer system 102 (see FIG. 1) estimates the L1 difference between the set of pairs collected in step 202 and the set of pairs collected in step 206. The estimation of the L1 difference in step 212 is based on sketches Dt and Dt′. It should be noted that “L1 difference” and “L1-difference” are used synonymously herein.
  • In step 214, network traffic monitor 116 running in computer system 102 determines differences in traffic patterns on network 108 (see FIG. 1) based on the L1-difference estimated in step 212. In one embodiment, the estimated L1-difference between such sets of pairs assembled during different time periods or at different routers indicates a change in Internet traffic patterns and may thereby indicate a denial of service attack if the estimated L1-difference is substantially large based on predefined criteria, or that network links are becoming congested. If the estimated L1-difference indicates that links are becoming congested, then one or more other routers (i.e., other than the routers 104 and 106 in FIG. 1) that were previously not in use may be automatically activated by computer system 102. The automatic activation of the other router(s) allows an updated routing scheme to be available to data packets (i.e., the data packets may follow a different set of links as compared to the links available before the automatic activation of the one or more other routers). The process of FIG. 2 ends at step 216.
  • The aforementioned set of pairs (x, ft(x)) may be very large for the given time period t, and the method described herein provides a very fast (i.e., in near linear time) procedure for sweeping through the set and producing a very short (i.e., logarithmic size in the original description of the set) description Dt of the set of pairs.
  • Since storing the complete set of pairs is expensive in terms of computer data storage resources required, router 104 in FIG. 1 may, for example, simply store the short description Dt of the set of pairs and remove the set of pairs from the router's memory contents (see step 204). Later, at a second time period t′, which is subsequent to time period t, the router 104 (see FIG. 1) may obtain a second set of pairs (x, ft′(x)) and run the same procedure to obtain a second short description Dt′, store the description Dt′ in memory, and remove the set of pairs (x, ft′(x)) from the router's memory contents (see step 208). The descriptions obtained by the router have the property that given Dt and Dt′, the method described herein quickly (i.e., in near linear time in the size of Dt and Dt′) estimates the value Σx|ft(x)−ft′(x)| (see step 212), which measures differences in traffic patterns across the two time periods (see step 214). This estimated value is more robust and less sensitive to outliers than other measures, such as Σx(ft(x)−ft′(x))2.
  • The ability of sketch generator 110 (see FIG. 1) to produce a short sketch in step 204 summarizing the set of pairs collected in step 202 and another short sketch in step 208 summarizing the set of pairs collected in step 206 allows a central control and storage facility (a.k.a. central processing facility; i.e., computer system 102 in FIG. 1) to later efficiently approximate the L1-difference (see step 212) between the sketches that the central processing facility receives (see step 210). The routers 104, 106 (see FIG. 1) producing the sketches cannot predict which source-destination pairs they will receive, or in which order. Since the routers 104, 106 (see FIG. 1) can transmit their sketches and updates to the central processing facility 102 (see FIG. 1) in an arbitrarily interleaved manner, the L1-difference algorithm disclosed herein supports arbitrary permutations of the assembled sets of values. Because of the substantially large size of the packet streams, it is advantageous for the update time to produce the sketches to be as small as possible.
  • Sketching Procedure Introduction
  • In one embodiment of the method of summarizing Internet traffic patterns, the L1-difference problem is embedded into L0, the number of non-zero coordinates of the underlying vector (i.e., x−y) presented as data stream. Suppose for simplicity xi, yi≧0 for all i ∈ [n]. In this embodiment, Alice treats her input x, as a set of distinct items M(i−1) +1, . . . , M(i−1)+xi, while Bob treats his input yi as a set of distinct items M(i−1)+1, . . . , M(i−1)+yi. The size of the set-difference of these two sets of distinct items is |xi−yi|. Thus, if Alice inserts all of the set elements corresponding to her coordinates as insertions into an L0-algorithm, while Bob inserts all of the set elements corresponding to his coordinates as deletions in the L0-algorithm, the L0-value in the resulting stream equals ∥x−y∥1. In known techniques, the problem with directly reducing to L0 is that, while the space of the resulting L1-difference algorithm is an optimal O(ε−2 log(nM)), the processing time can be as large as O(nM) because each set element must be inserted into the L0-algorithm. The present invention overcomes this problem by providing a range-efficient L0 algorithm that allows updates to ranges at a time, which works for streams coming out of the reduction to L0 by exploiting the structure of ranges that are updated. All updated ranges are of length at most M and start at an index of the form M(i−1)+1. Furthermore, the range-efficient L0 algorithm described herein allows deletions, a feature not found in known L0 algorithms.
  • At a high level, the sketching procedure presented herein works by sub-sampling by powers of 2 the universe [nM] arising out of the reduction to L0. At each level in the sub-sampling, the sketching procedure keeps a corresponding data structure (a.k.a. summary data structure) of size O(ε−2 log(1/ε)) to summarize the items that are sub-sampled at the corresponding level. The sketching procedure also maintains another data structure on the side to handle the case when L0 is small, and in parallel, the sketching procedure obtains a constant-factor approximation R of the L1-difference. At the end of the data stream, the sketching procedure provides an estimate of the L1-difference based on the summary data structure that summarizes the items at a level at which the expected number of universe elements sub-sampled is 1/ε2, where the level is determined based on R being known. The sub-sampling of the data stream may be implemented using pairwise-independent hash functions, which allows the use a subroutine for quickly counting the number of universe elements that are sub-sampled at each of the log(nM) levels. Given these counts, each of the aforementioned summary data structures may be updated efficiently.
  • The summary data structure at a given level may be viewed as maintaining (x′−y′)H, where H is the parity-check matrix of a linear error-correcting code, and x′, y′ are the vectors derived from x, y by sub-sampling at that level. When it is ensured that x′, y′ differ on few coordinates, x′−y′ may be treated as a corruption of the encoding of the 0 codeword followed by an attempt to decode to recover the “error” x′−y′. The decoding succeeds as long as the minimum distance of the code is sufficiently high.
  • Known techniques use the parity-check matrix of a Reed-Solomon code of minimum distance O(k), given that that x′, y′ differ on at most k coordinates. Decoding may then be done by a known recovery procedure in time O(k2+kpoly log(k) log(n)). In one or more embodiments of the present invention, k=ε−2; therefore, the method disclosed herein does not use the known recovery procedure because it would be too slow. To avoid this slowness problem, the sketching procedure disclosed herein hashes the indices of x′, y′ into O(ε−2/log(1/ε)) buckets with an O(log(1/ε))-wise independent hash function, and then keeps in each bucket the product of the difference vector, restricted to the indices mapped to that bucket, with the parity check matrix. With constant probability, no bucket receives more than O(log(1/ε)) indices where x′, y′ differ. Thus, the sketching procedure disclosed herein may use a Reed-Solomon code with minimum distance only O(log(1/ε)), thereby making the decoding sufficiently fast.
  • Preliminaries
  • In the Detailed Description of the Invention section, all space bounds are in bits, and all logarithms are base 2, unless explicitly stated otherwise. Running times are measured as the number of standard machine word operations (i.e., integer arithmetic, bit-wise operations, and bitshifts). Each machine word is assumed to be Ω(log(nM)) bits so that each vector can be indexed and arithmetic can be done on vector entries in constant time. Also, for integer A, [A] denotes the set {1, . . . , A}.
  • The model in which the sketching procedure runs is formally defined as follows. Alice receives x ∈ {−M, . . . , M}n , and Bob receives y ∈ {−M, . . . , M}n. Both computing devices (i.e., Alice and Bob) have access to a shared source of randomness and must, respectively, output bit-strings s(x) and s(y). The requirement is that a third party (e.g., computer system 102 in FIG. 1) can, given access to only s(x) and s(y), compute a value Z such that Pr[|Z−∥x−y∥1|>ε∥x−y∥1]≦⅓. Again, by definition, ∥x−y∥1i=1 n∥xi−yi|. The probability is over the randomness shared by Alice and Bob, and the value ε ∈ (0,1] is a parameter given to Alice and Bob. The goal is to minimize the lengths of s(x) and s(y), as well as the amount of time Alice and Bob each take to compute them. Without loss of generality, the description of the present invention assumes xi, yi≧0 for all i. This assumption of xi, yi≧0 for all i can be enforced by increasing all coordinates of x, y by M, which does not alter ∥x−y∥1. Doing so increases the upper bound on coordinate entries by a factor of two, but this increase alters the sketching procedure's running time and resulting sketch size by subconstant factors.
  • Since the sketching procedure is presented below as a streaming algorithm, streaming notation is introduced in this section. Consider a vector f=(f1, f2, . . . , fn) that is updated in a stream as described in this paragraph. The data stream has exactly 2n updates (i1, v1), . . . , (i2n, v2n) ∈ [n]×{−M, . . . , M}. Each update (i, v) corresponds to the action fi←fi+v. For each j ∈ [n], there are exactly two stream updates (i, v) with i=j. If these two stream updates are (iz1, vz1), (iz2, vz2), then at most one of vz1, vz2 is negative, and at most one of vz1, vz2 is positive. The nonnegative update corresponds to adding xi to fi, and the nonpositive update corresponds to subtracting yi from fi. Again, the assumption is that xi, yi≧0. There is no restriction on the possible values for z1 and z2. That is, the sketching procedure described herein functions correctly even if the stream presents an adversarial permutation of the 2n coordinates x1, . . . , xn, y1, . . . , yn. At the end of the stream ∥∫∥1=∥x−y∥1, so the streaming algorithm must approximate ∥∫∥1. For Alice and Bob to use the streaming algorithm for sketching, Alice runs the streaming algorithm with updates (i, xi) for each 1≦i≦n to produce a sketch, and Bob separately runs the streaming algorithm (using the same random bits) with updates (i, yi) to produce a sketch. The sketches produced are simply the contents of the streaming algorithm's memory at the end of the data stream. It is a consequence of how the streaming algorithm works that these sketches can be combined by a third party (e.g., computer system 102 in FIG. 1) to approximate ∥f∥1.
  • Sketching Procedure
  • FIG. 3 is a flowchart of a subroutine used for computing an L1 exactly when L1 is small, where the subroutine may be included in the process of FIG. 2, in accordance with embodiments of the present invention. Throughout this section it is assumed that ε≧1/√{square root over (n)}; otherwise, ∥∫∥1 can be computed exactly by keeping the entire vector in memory using O(n log M)=O(ε−2 log M) space with constant update time.
  • Handling Small L1
  • FIG. 3 includes steps of a subroutine referred to herein as TWOLEVELESTIMATOR. The TWOLEVELESTIMATOR subroutine in FIG. 3 computes L1 exactly when promised that L1≦k. That is, the subroutine in FIG. 3 computes ∥f∥1 exactly when promised ∥f∥1≦k. This task is trivial if k=1 (i.e., maintain a single counter), so it is assumed that k>1 throughout this section. The subroutine of FIG. 3 begins at step 300. Each of the steps 302-310 described below is performed by software running in computer system 102. In one embodiment, steps 302-310 are performed by L1 difference estimator 114 (see FIG. 1).
  • In step 302, define t and s as follows: set t=2┌log k┐+12 and set s=2t+┌log k┐. Select a random h1: [n]→[┌k/log k┐] from a t-wise independent hash family and select a random h2: [n]→[p−1] from a pairwise independent family. The value p is calculated prior to step 302 and satisfies Equation 1:

  • C≦p≦2C, C=4·(5 ┌log k┐+24)2 ·┌k/log k┐+1   (1)
  • Prior to step 302, the following items are calculated: a generator g for the multiplicative group
    Figure US20110255424A1-20111020-P00001
    *p and logarithm tables T1, T2 such that T1[i]=gi mod p and T2[x]=d log(x), where 0≦i≦p−2 and 1≦x≦p−1. As used herein, d log(x) is the discrete logarithm of x (i.e., the i ∈ GF(p) such that gi≡x mod p). The choice of k will be relatively small in the final algorithm, so this step will be efficient. As used herein, GF(p) may be replaced with the set {0, 1, 2, 3, . . . , p−1}. In general, GF(x) for an integer x denotes the finite field (i.e., Galois field) containing x elements.
  • In step 304, for each j ∈ [┌k/log┐], maintain 2s counters X1 j, . . . , X2s j modulo p, where the counters are initialized to 0.
  • In step 306, in response to identifying stream update (i, v), increment Xz h 1 (i) by ν·(h2(i))z for z ∈ [2s].
  • In step 308, in response to detecting the stream's end, for each j ∈ [┌k/log k┐], attempt to recover the non-zero entries of an s-sparse vector fj=((fj)x∈
    Figure US20110255424A1-20111020-P00002
    satisfying Σx∈
    Figure US20110255424A1-20111020-P00003
    ((fj)x)xz=Xz j for each z ∈ [2s] using Theorem 1.
  • In step 310, define σ: GF(p)→
    Figure US20110255424A1-20111020-P00004
    to be such that σ(α) equals α if α<p/2, and equals α−p otherwise. Furthermore, in step 310, output Σj=1 ┌k/log k┐Σ(f j)x≠0|σ((fj)x)|. The subroutine in FIG. 3 ends at step 312.
  • The subroutine TWOLEVELESTIMATOR in FIG. 3 makes calls to the following algorithm included in Theorem 1.
  • Theorem 1. Let p be prime and r=(rx)x∈
    Figure US20110255424A1-20111020-P00005
    have at most s non-zero entries (2s+1<p). Given Σx∈
    Figure US20110255424A1-20111020-P00006
    rxxi for i ∈ [2s], there is an algorithm to recover {(x, rx)|rx≠0} which uses O(s2+s(log s) (log log s) (log p)) field operations over GF(p).
  • The proof of correctness of the TWOLEVELESTIMATOR subroutine relies in part on Lemma 2, which is presented below.
  • Lemma 2. Let Xi ∈ [0,1], 1≦i≦n, be t-wise independent for t≧4 an even integer,
  • X = i = 1 n X i , and A > 0. Then Pr [ X - E [ X ] A ] 8 ( t E [ x ] + t 2 A 2 ) t / 2 .
  • Theorem 3. Ignoring the space to store the hash functions h1, h2 and tables T1, T2, the TWOLEVELESTIMATOR subroutine uses O(k log k) bits of space. The hash functions h1, h2 and tables T1, T2 require an additional O((log k) (log n)+k log2 k) bits. The time to process a stream update is O(log k). If L1≦k, the final output value of the TWOLEVELESTIMATOR subroutine equals L1 exactly with probability at least ¾.
  • Proof of Theorem 3: Aside from storing h1, h2, T1, T2, the number of counters is 2s ┌k/log k┐=O(k), each of size O(log p)=O(log k) bits, totaling O(k log k) bits. The space to store h1 is O((log k) (log n)), and the space to store h2 is O(log n). The tables T1, T2 each have p−1=O(k log k) entries, each requiring O(log p)=O(log k) bits. Processing a stream update requires evaluating h1, h2, taking O(log k) time and O(1) time, respectively. There must be an update of 2s=O(log k) counters (see step 306). Each counter update can be done in constant time with the help of a table lookup since (h2(i))z=gz·d log(h 2 (i))=T1[(z·T2[h2(i)]) mod (p−1)].
  • Correctness is analyzed as follows. Define I={i ∈ [n]: fi≠0 at the stream's end}. Note |I|≦L1≦k. For j ∈ [┌k log k┐], define the random variable Zj=|h1 −1(j)∩I|. Two events Q and Q′ are defined below.
  • Let Q be the event that Zj≦s=2t+┌log k┐ for all j ∈ [┌k/log k┐].
  • Let Q′ be the event that there do not exist distinct i, i′ ∈ I with both h1(i)=h1(i′) and h2(i)=h2(i′).
  • It is first argued that, conditioned on both Q, Q′ holding, the output of the TWOLEVELESTIMATOR subroutine is correct. Note p−1≧4s2 ┌k/log k┐≧100k log k. Again, recall the definition of s in step 302. If Q′ occurs, |h2 −1(i)∩h1 −1(j)∩I≦1| for all i ∈ [p−1] and j ∈ [┌k/log k┐]. One can then view Xz j as holding Σx∈
    Figure US20110255424A1-20111020-P00007
    (rj)xxi, where (rj)x is the frequency (modulo p) of the unique element in the set h2 −1(i)∩h1 −1(j)∩I (or 0 if that set h2 −1(i)∩h1 −1(j)∩I is empty). Conditioned on Q, every rj is s-sparse, so rj is correctly recovered in step 308 by Theorem 1 since 2s+1=5 ┌log k┌+13<100k ┌log k┐<p. Note that p is strictly greater than twice the absolute value of the largest frequency since L1<k, and thus negative frequencies are strictly above p/2 in GF(p), and positive frequencies are strictly below p/2. Thus, given that the rj are correctly recovered, a correctly recovers the actual frequencies in step 310, implying correctness of the final output of the TWOLEVELESTIMATOR subroutine.
  • The proof of Theorem 3 now proceeds to lower bound Pr[Q
    Figure US20110255424A1-20111020-P00008
    A′]. First it is shown that Q holds with probability at least ⅞. Let Zj,i indicate h1(i)=j and then note the random variables {Zj,i}i∈I are t-wise independent and Zji∈IZj,i. Also, E[Zj]=|I|/┌k/log k┐≦log k. Setting A=2t and applying Lemma 2,
  • Pr [ Z j - E [ Z j ] 2 t ] 8 ( tE [ Z j ] + t 2 A 2 ) t / 2 8 ( 2 t 2 4 t 2 ) lo g k + 6 1 8 k
  • since E[Zj]≦t. A union bound implies Pr[Q]≧⅞.
  • The proof of Theorem 3 proceeds with an analysis of Pr[Q|Q′], as described below. Let Yi,i′ be a random variable indicating h2(i)=h2(i′) and define the random variable Y=Σ(i,i′)∈(I2),h 1 (i)=h 1 (i′)Yi,i′. Note Q′ is simply the event that Y=0. It follows that
  • E [ Y ] = j = 1 k / l og k E h 1 [ ( i , i ) ( h 1 - 1 ( j ) I 2 ) Pr [ h 2 ( i ) = h 2 ( i ) ] ] j = 1 k / lo gk E [ h 1 - 1 ( j ) I 2 ] / 2 p - 1 j = 1 k / lo gk E [ h 1 - 1 ( j ) I 2 ] / 2 4 s 2 k / log k
  • where the first inequality holds by pairwise independence of h2. Conditioned on Q, |h1 −1(j)∩I|≦s for all j so that E[Y|Q]<⅛, implying Pr[Q′|Q]=1−Pr[Y≧1|Q]≧⅞ by Markov's Inequality.
  • Thus, Pr[Q
    Figure US20110255424A1-20111020-P00009
    Q′]=Pr[Q]·Pr[Q′|Q]≧(⅞)2>¾, and Theorem 3 is proven.
  • Remark 1. In step 302, the subroutine twice picks a hash function h: [a]→[b] from an m-wise independent family for some integers m and a≠b (namely h1 and h2). However, known constructions have a=b, with a being a prime power. This is easily circumvented. When an h with unequal domain size a and range size b is desired, the TWOLEVELESTIMATOR subroutine picks a prime Λ≧2·max{a, b} and then picks an m-wise independent hash function h′: [Λ]→[Λ] and define h(x)
    Figure US20110255424A1-20111020-P00010
    (h′(x) mod b)+1. The family of such h is still m-wise independent, and by choice of Λ, no range value is more than twice more likely than any other, which suffices for the present invention with a slight worsening of constant factors.
  • Theorem 4 analyzes the pre-processing and post-processing complexity of the TWOLEVELESTIMATOR subroutine.
  • Theorem 4. Ignoring the time needed to find the prime Λ in Remark 1, the pre-processing time of the TWOLEVELESTIMATOR subroutine before seeing the stream is O(k log k), and the post-processing time is O(k log k log log k log log log k).
  • Proof of Theorem 4. First, with regard to the pre-processing time of the TWOLEVELESTIMATOR subroutine, it is known that the prime p and generator g for
    Figure US20110255424A1-20111020-P00011
    can be found in time poly log(C)=poly log(k). After p and g are found, filling in T1, T2 takes O(p)=O(k log k) time, which dominates the pre-processing time. The time to allocate the O(k) counters Xz j is just O(k).
  • The post-processing work of the TWOLEVELESTIMATOR subroutine is done in steps 308 and 310 in FIG. 3. For step 308, there are O(k/log k) values of j, for each of which the algorithm of Theorem 1 is run with s=O(log k) and p=O(k log k), thus requiring a total of O(k log k log log k log log log k) field operations over GF(p). Since the table T2 is precalculated prior to step 302, all GF(p) operations may be done in constant time, including division. In step 310, the absolute values of O(log k) non-zero entries of O(k/log k) vectors fj must be summed, taking time O(k). Thus, Theorem 4 is proven.
  • The Full Algorithm in the Sketching Procedure
  • The full algorithm in the sketching procedure requires, in part, a constant factor approximation to the L1-difference. To obtain this constant factor approximation to the L1-difference, an implementation of the algorithm in Feigenbaum et al. (see Theorem 12 in Feigenbaum et al.) is used with c a constant.
  • Theorem 5. There is a one-pass streaming algorithm for (1±ε)-approximating the L1-difference using O(ο−2 log(nM)) space with update time O(ε−2 log(nM)), and succeeding with probability at least 19/20.
  • Remark 2. The update time in Theorem 5 is O(ε−2field(log(nM))), where field(D) is the time to do arithmetic over GF(2D) (not including division). Feigenbaum et al. notes that field(D)=O(D2) naively. It suffices for the purposes of the algorithm in Feigenbaum et al. to work over GF(2D) for the smallest D≧log(nM) such that D=2·379 , in which case a highly explicit irreducible polynomial of degree D over
    Figure US20110255424A1-20111020-P00012
    [x] can be used to perform GF(2D) arithmetic in time O(D).
  • The sketching procedure also makes use of the algorithm presented in Theorem 6.
  • Theorem 6. Let a, b, c, d, x, r, m be integers fitting in a machine word with m>0 and a, b, c, d ∈ {0, . . . , m−1}. There is an algorithm to calculate |{i: (a·(x+i)+b mod m) ∈ [c, d], 0≦i≦r}| in time O(log(min(a, r))) using O(log(r·m)) space.
  • FIGS. 4A-4B depict a flowchart of a method for computing an estimation of L1, where the method may be included in the process of FIG. 2, in accordance with embodiments of the present invention. The method for computing an estimation of L1 is referred to herein as the L1-DIFF method. The L1-DIFF method starts at step 400 in FIG. 4A. Each of the steps 402-410 in FIG. 4A and steps 412-420 in FIG. 4B is performed by software running on computer system 102 (see FIG. 1). In one embodiment, steps 402-410 in FIG. 4A and steps 412-420 in FIG. 4B are performed by L1 difference estimator 114 (see FIG. 1).
  • In step 402, set ε′=ε/8. In step 404, select a random hash function h: [q]→[q] from a pairwise independent family so that h(x)=ax+b mod q for some prime q ∈ [2 nM,4 nM] and a, b ∈ GF(q).
  • In step 406, initialize instantiations TLE1, . . . , TLE┌log((e′) 2 nM)┐ of the TWOLEVELESTIMATOR subroutine with k=┌4/(ε′)2┐. All instantiations initialized in step 406 share the same prime p, generator g, hash functions h1, h2, and logarithm tables T1, T2.
  • In step 408, in response to detecting a stream update (i, v), let vj be the output of the algorithm from Theorem 6 with inputs a, b as in step 404, c=cj=2└log q┘−j, d=dj=2|log q|−j+1−1, x=(i−1)M+1, r=|ν|−1, and m=q. Step 408 also includes feeding the update (i, sgn(ν)·νj) to TLEj for j=1, . . . , ┌log((ε′)2 nM)┐. Furthermore, step 408 includes generating Rj as the output of TLEj.
  • In step 410, which is performed in parallel with steps 406 and 408, run an instantiation TLE of the TWOLEVELESTIMATOR subroutine with k=┌1/(ε)2┐ which receives all the aforementioned updates, using the same h1, h2, p, g, T1,T2 of step 406. Step 410 also includes generating R as the output of the TLE instantiation run with k=┌1/(ε′)2┐.
  • In step 412 of FIG. 4B, which is performed in parallel with steps 406-410 in FIG. 4A, run the algorithm of Theorem 5 with error parameter ⅓ to obtain a value R′ ∈ [L1/2, L1].
  • In inquiry step 414, R′ is compared to ┌1/(ε′)2┐. If step 414 determines that R′≦┌1/(ε′)2┐, then the Yes branch of step 414 is taken and R is output in step 416. Following step 416, the process of FIGS. 4A-4B ends at step 418. Otherwise, if step 414 determines that R′>┌1/(ε′)2┐, then the No branch of step 414 is taken and q·2┌log((ε′) 2 R′)┐−└log q┘R┌log((ε′) 2 R′)┐is output in step 420. Following step 420, the process of FIGS. 4A-4B ends at step 418.
  • Theorem 7. The algorithm L1-DIFF has update time O(log(ε2 nM) log(M/ε)) and the bits of space used is O(ε−2 log(1/ε) log(ε−2 nM)). The pre-processing time used is polylog(nM)+O(ε−2 log(1/ε) log(ε−2 nM)). Time O(ε−2 log(1/ε) log log(1/ε) log log log(1/ε)) is needed for post-processing. The output is (1±ε)L1 with probability at least ⅔.
  • Proof of Theorem 7. The hash function h requires O(log (nM)) space. There are O(log(ε2 nM)) instantiations of the TWOLEVELESTIMATOR subroutine (see steps 406 and 410 in FIG. 4A), each with k=O(ε−2), taking a total of O(ε−2 log(1/ε) log(ε2 nM)) space by Theorem 3. The hash functions h1, h2 and tables T1,T2 take O(log(1/ε) log(n)+ε−2 log2(1/ε))=O(ε −2 log(1/ε) log n) space, also by Theorem 3 (recall the assumption that ε≧1/√{square root over (n)}). Step 412 in FIG. 4B requires only O(log(nM)) space by Theorem 5, since the algorithm is run with error parameter ⅓.
  • As for running time, in step 406 in FIG. 4A the algorithm of Theorem 6 is called O(log(ε2 nM)) times, each time with a<q and r≦M, thus taking a total of O(log(ε2 nM) log(min (q, M)))=O(log(ε2 nM) log M) time. The necessary update must be fed to each TLEj, each time taking O(log(1/ε)) time by Theorem 3. Updating every TLEj takes time O(log(ε2 nM) log(1/ε)).
  • In pre-processing, a prime q must be selected in the desired range, which can be accomplished by picking numbers at random and testing primality. The expected time is polylog(nM). There must be a preparation of h1, h2, T1,T2 and all the TWOLEVELESTIMATOR instantiations, which takes O(ε−2 log(1/ε) log(ε2 nM)) time by Theorem 4, in addition to the polylog(n) time required to find an appropriate prime Λ as described in Remark 1. The pre-processing time for step 412 in FIG. 4B is O(1).
  • In post-processing, the estimate R′ from step 412 (see FIG. 4B) must be recovered, which takes O(1) time, and then an estimate from some TWOLEVELESTIMATOR instantiation must be recovered, so the time is as claimed in Theorem 7. Note that in post-processing, to save time steps 308 and 310 (see FIG. 3) of the TWOLEVELESTIMATOR subroutine should not be run, except at the instantiation whose output is used following step 414 in FIG. 4B.
  • Correctness is analyzed as follows. Let Q be the event that R′ ∈ [L1/2, L1]. The analysis henceforth conditions on Q occurring, which happens with probability at least 19/20 by Theorem 5.
  • For the first case, suppose L1≦┌1/(ε′)2┐. Then, TLE computes L1 exactly with probability at least ¾ by Theorem 3, and hence overall outputs L1 exactly with probability at least (19/20)•(¾)>⅔.
  • Now, suppose L1>┌1/(ε′)2┐. In analyzing this case, it helps to view L1-DIFF as actually computing L0(f′)
    Figure US20110255424A1-20111020-P00013
    |{i: f′i≠0}|, where an nM-dimensional vector f′ is being updated as follows: when receiving an update (i, ν) in the stream, conceptually view this update as being |ν| updates ((i−1)M+1, sgn(ν)), . . . , ((i−1)M+|ν|, sgn(ν)) to the vector f′. Here, the vector f′ is initialized to {right arrow over (0)}. Note that at the stream's end, L0(f′)=∥f∥1.
  • Let f′j denote the vector whose ith entry, i ∈ [nM], is f′i if h(i) ∈ [cj, di], and 0 otherwise. That is, f′j receives stream updates only to items fed to TLEj. For i ∈ [nM], let Xi,j be a random variable indicating h(i) ∈ [cj, dj], and let Xjf′ i ≠0 Xi,j so that Xj=L0(f′j). Define pj
    Figure US20110255424A1-20111020-P00014
    (dj−cj+1)/q=2└log q┘−j/q so that E[Xi,j]=pj. Thus, E[Xj]=pj·L0(f′). Note that ½≦2└log q┘/q≦1. Also note the following inequalities:
  • L 0 ( f ) 2 l og ( ( ɛ ) 2 R ) L 0 ( f ) ( ɛ ) 2 R 2 ( ɛ ) 2 and L 0 ( f ) 2 l og ( ( ɛ ) 2 R ) L 0 ( f ) 2 ( ɛ ) 2 R 2 2 ( ɛ ) 2
  • By the choice of j=┌log((ε′)2)R′┐ in step 420 of FIG. 4B, it follows that:
  • 16 ɛ 2 = 1 4 ( ɛ ) 2 E [ X j ] 2 ( ɛ ) 2 since E [ X j ] = p j · L 0 ( f ) = ( 2 l og q / q ) · ( L 0 ( f ) / 2 j ) .
  • Let Q′ be the event that |Xj−E[Xj]|≦εE[Xj]. Applying Chebyshev's inequality,
  • Pr [ Q ] 1 - Var [ X j ] ɛ 2 E 2 [ X j ] 1 - 1 ɛ 2 E ( [ X j ] ) 15 16
  • The second inequality holds since h is pairwise independent and Xj is the sum of Bernoulli random variables, implying Var[Xj]=Σi Var[Xi,j]≦Σi E[Xi,j]=E[Xj]. The last ineqnality holds by choice of ε′=ε/8.
  • Let Q″ be the event that TLEj outputs Xj correctly. Now, conditioned on Q′, Xj≦2(1+ε)/(ε′)2≦4/(ε′)2 since ε≦1. Thus by Theorem 3, Pr[Q″|Q′]≧¾. Overall, noting Pr[Q″|Q
    Figure US20110255424A1-20111020-P00015
    Q′]=Pr[Q″|Q′] by independence, L1 of the entire stream is computed correctly with probability at least

  • Pr[Q
    Figure US20110255424A1-20111020-P00016
    Q′{circumflex over (0)}Q″]=PR[Q] Pr[Q′|Q]·Pr[Q″|Q
    Figure US20110255424A1-20111020-P00017
    Q′]≧(19/20)·(15.16)·(¾)>⅔
  • Thus, Theorem 7 is proven.
  • The streaming algorithm disclosed herein also gives a sketching procedure because, as long as Alice and Bob share randomness, they can generate the same h, h1, h2, p, g and then separately apply the streaming algorithm to their vectors x, y. The sketch is then just the state of the streaming algorithm's data structures. Since each stream token causes only linear updates to counters, a third party can then take the counters from Bob's sketch and subtract them from Alice's, then do post-processing to recover the estimation of the L1-difference. The running time for Alice and Bob to produce their sketches is the streaming algorithm's pre-processing time, plus n times the update time. The time for the third party to obtain an approximation to ∥x−y∥1 is the time required to combine the sketches, plus the post-processing time. This discussion of the sketching procedure leads to Theorem 8, which is presented below.
  • Theorem 8. Sharing polylog(nM) randomness, two parties Alice and Bob, holding vectors x, y ∈ {−M, . . . , M}n, respectively, can produce O(ε−2 log(1/ε) log(ε2 nM))-bit sketches s(x), s(y) such that a third party can recover ∥x−y∥1 to within (1±ε) with probability at least ⅔ given only s(x), s(y). Each of Alice and Bob use time O(n log(ε2 nM) log(M/ε)) to produce their sketches. In O(ε−2(log(ε2 nM)+log(1/ε) log log(1/ε) log log log(1/ε))) time, the third party can recover ∥x−y∥1 to within (1±ε).
  • Note Alice and Bob's running time is always O(n log2(nM)) since ε≧1/√{square root over (n)}.
  • Computer System
  • FIG. 5 is a block diagram of a computer system that is included in the system of FIG. 1 and that implements the processes of FIG. 2, FIG. 3 and FIGS. 4A-4B, in accordance with embodiments of the present invention. Computer system 102 generally comprises a central processing unit (CPU) 502, a memory 504, an input/output (I/O) interface 506, and a bus 508. Further, computer system 102 may be coupled to I/O devices 510 and a computer data storage unit 512. CPU 502 performs computation and control functions of computer system 102. CPU 502 may comprise a single processing unit, or be distributed across one or more processing units in one or more locations (e.g., on a client and server). In one embodiment, computer system 102 implements sketch collector 112 (see FIG. 1), L1 difference estimator 114 (see FIG. 1), and network traffic monitor 116 (see FIG. 1).
  • Memory 504 may comprise any known computer readable storage medium, which is described below. In one embodiment, cache memory elements of memory 504 provide temporary storage of at least some program code (e.g., program code 514, 516, 518) in order to reduce the number of times code must be retrieved from bulk storage while instructions of the program code are carried out. Moreover, similar to CPU 502, memory 504 may reside at a single physical location, comprising one or more types of data storage, or be distributed across a plurality of physical systems in various forms. Further, memory 504 can include data distributed across, for example, a local area network (LAN) or a wide area network (WAN).
  • I/O interface 506 comprises any system for exchanging information to or from an external source. I/O devices 510 comprise any known type of external device, including a display device (e.g., monitor), keyboard, mouse, printer, speakers, handheld device, facsimile, etc. Bus 508 provides a communication link between each of the components in computer system 102, and may comprise any type of transmission link, including electrical, optical, wireless, etc.
  • I/O interface 506 also allows computer system 102 to store and retrieve information (e.g., data or program instructions such as program code 514, 516 and 518) from an auxiliary storage device such as computer data storage unit 512 or another computer data storage unit (not shown). Computer data storage unit 512 may comprise any known computer readable storage medium, which is described below. For example, computer data storage unit 512 may be a non-volatile data storage device, such as a magnetic disk drive (i.e., hard disk drive) or an optical disc drive (e.g., a CD-ROM drive which receives a CD-ROM disk).
  • Memory 504 may include computer program code 514, 516 and 518 that provides the logic for collecting sketches, estimating an L1 difference, and monitoring network traffic, respectively, (e.g., the processes of FIG. 2, FIG. 3 and FIGS. 4A-4B). In one embodiment, computer program code 514, 516 and 518 is included in sketch collector 112 (see FIG. 1), L1 difference estimator 114 (see FIG. 1), and network traffic monitor 116 (see FIG. 1), respectively. Further, memory 504 may include other systems not shown in FIG. 5, such as an operating system (e.g., Linux) that runs on CPU 502 and provides control of various components within and/or connected to computer system 102.
  • As will be appreciated by one skilled in the art, the present invention may be embodied as a system, method or computer program product. Accordingly, aspects of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment (including firmware, resident software, micro-code, etc.) or an embodiment combining software and hardware aspects that may all generally be referred to herein as a “module” or “system” (e.g., system 100 in FIG. 1 or computer system 102). Furthermore, an embodiment of the present invention may take the form of a computer program product embodied in one or more computer readable medium(s) (e.g., memory 504 or computer data storage unit 512) having computer readable program code (e.g., program code 514, 516 and/or 518) embodied or stored thereon.
  • Any combination of one or more computer readable medium(s) (e.g., memory 504 and computer data storage unit 512) may be utilized. The computer readable medium may be a computer readable storage medium or a computer readable signal medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared or semiconductor system, apparatus, device or any suitable combination of the foregoing. A non-exhaustive list of more specific examples of the computer-readable storage medium includes: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain or store a program for use by or in connection with a system, apparatus, or device for carrying out instructions.
  • A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated signal may take any of a variety of forms, including, but not limited to, electromagnetic, optical, or any suitable combination thereof. A computer readable signal medium may be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with a system, apparatus, or device for carrying out instructions.
  • Program code (e.g., program code 514, 516 and/or 518) embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
  • Computer program code (e.g., program code 514, 516 and/or 518) for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java®, Smalltalk, C++ or the like and conventional procedural programming languages, such as the “C” programming language or similar programming languages. Instructions of the program code may be carried out entirely on a user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server, where the aforementioned user's computer, remote computer and server may be, for example, computer system 102 or another computer system (not shown) having components analogous to the components of computer system 102 included in FIG. 5. In the latter scenario, the remote computer may be connected to the user's computer through any type of network (not shown), including a LAN or a WAN, or the connection may be made to an external computer (e.g., through the Internet using an Internet Service Provider).
  • Aspects of the present invention are described herein with reference to flowchart illustrations (e.g., FIG. 2, FIG. 3 and FIGS. 4A-4B) and/or block diagrams of methods, apparatus (systems) (e.g., FIG. 1 and FIG. 5), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions (e.g., program code 514). These computer program instructions may be provided to a processor (e.g., CPU 502) of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which are carried out via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.
  • These computer program instructions may also be stored in a computer readable medium (e.g., memory 504 or computer data storage unit 512) that can direct a computer (e.g., computer system 102), other programmable data processing apparatus, or other devices to function in a particular manner, such that the instructions stored in the computer readable medium produce an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
  • The computer program instructions may also be loaded onto a computer (e.g., computer system 102), other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus, or other devices to produce a computer implemented process such that the instructions which are carried out on the computer, other programmable apparatus, or other devices provide processes for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.
  • Any of the components of an embodiment of the present invention can be deployed, managed, serviced, etc. by a service provider that offers to deploy or integrate computing infrastructure with respect to the process of monitoring network traffic by estimating an L1 difference. Thus, an embodiment of the present invention discloses a process for supporting computer infrastructure, comprising integrating, hosting, maintaining and deploying computer-readable code (e.g., program code 514, 516 and 518) into a computer system (e.g., computer system 102), wherein the code in combination with the computer system is capable of performing a process of monitoring network traffic by estimating an L1 difference.
  • In another embodiment, the invention provides a business method that performs the process steps of the invention on a subscription, advertising and/or fee basis. That is, a service provider, such as a Solution Integrator, can offer to create, maintain, support, etc. a process of monitoring network traffic by estimating an L1 difference. In this case, the service provider can create, maintain, support, etc. a computer infrastructure that performs the process steps of the invention for one or more customers. In return, the service provider can receive payment from the customer(s) under a subscription and/or fee agreement, and/or the service provider can receive payment from the sale of advertising content to one or more third parties.
  • The flowcharts in FIG. 2, FIG. 3 and FIGS. 4A-4B and the block diagrams in FIG. 1 and FIG. 5 illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in the flowcharts or block diagrams may represent a module, segment, or portion of code (e.g., program code 514, 516 or 518), which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be performed substantially concurrently, or the blocks may sometimes be performed in reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
  • While embodiments of the present invention have been described herein for purposes of illustration, many modifications and changes will become apparent to those skilled in the art. Accordingly, the appended claims are intended to encompass all such modifications and changes as fall within the true spirit and scope of this invention.

Claims (20)

1. A computer-implemented method of monitoring network traffic by estimating an L1 difference, said method comprising:
receiving a first sketch s(x) from a first network device and a second sketch from a second network device, wherein said first sketch describes a first set of pairs of data (x, ft(x)), wherein x indicates a source and a destination of a first plurality of data packets that include input x, transmitted via said first network device, wherein ft(x) indicates a first amount of information in said first plurality of data packets transmitted via said first network device from said source to said destination in a time period t, wherein said second sketch s(y) describes a second set of pairs of data (y, ft′(y)), wherein y indicates said source and said destination of a second plurality of data packets that include input y transmitted via said second network device, wherein ft′(y) indicates a second amount of information in said second plurality of data packets transmitted via said second network device from said source to said destination in a time period t′;
a processor of a computer system estimating an L1 difference ∥ft(x)−ft′(y)∥1, wherein said estimating said L1 difference includes determining an L0 value of a data stream resulting from said first network device inserting elements of a first set of distinct items as insertions into said data stream and from said second network device inserting elements of a second set as deletions from said data stream, wherein said first set includes distinct items derived from xi, wherein said second set of distinct items includes distinct items derived from yi, and wherein said determining said L0 value includes processing updates to ranges of said data stream; and
determining a pattern of said network traffic based on said L1 difference.
2. The method of claim 1, wherein said determining said L0 value further includes:
converting xi to said first set of distinct items, wherein said first set of distinct items contains M(i−1)+1, . . . , M(i−1)+xi, wherein each xi is an element of {−M, . . . , M}n;
converting yi to said second set of distinct items, wherein said second set of distinct items contains M(i−1)+1, . . . , M(i−1)+yi, wherein each yi is an element of {−M, . . . , M}n;
inserting said M(i−1)+1, . . . , M(i−1)+xi into said data stream;
deleting said M(i−1)+1, . . . , M(i−1) +yi from said data stream; and
in response to said inserting and said deleting, determining said L0 value as ∥x−y∥1, wherein said L0 value is a number of non-zero elements in a vector (x−y).
3. The method of claim 2, wherein said estimating said L1 difference further includes:
in response to said determining said L0 value, sub-sampling a universe of [nM] in a plurality of levels by a plurality of powers of two;
maintaining a plurality of summary data structures, wherein each summary data structure summarizes a corresponding plurality of items that are sub-sampled by said sub-sampling at a corresponding level of said plurality of levels;
determining a constant-factor approximation R of said L1 difference;
determining a level of said plurality of levels at which an expected number of elements of said universe sub-sampled by said sub-sampling is θ(1/ε2), wherein said level is determined based on R being known, and wherein c is a parameter received by said first network device and by said second network device; and
determining an estimate of said L1 difference based on a summary data structure of said plurality of summary data structure, wherein said summary data structure summarizes a plurality of items at said level.
4. The method of claim 3, wherein said sub-sampling said universe of [nM] in said plurality of levels by said plurality of powers of two includes:
setting ε′=ε/8;
selecting a random hash function h: [q]→[q] from a pairwise independent family so that h(x)=ax+b mod q for a prime q ∈ [2 nM,4 nM] and a, b ∈ GF(q); and
initializing instantiations TLE1, . . . , TLE┌log((e′) 2 nM)┐ of a subroutine that computes said L1 difference exactly if said L1 difference ≦k, wherein k=┌4/(ε′)2┐.
5. The method of claim 4, further comprising:
detecting a stream update (i, ν); and
in response to said detecting said stream update (i, ν), feeding an update (i, sgn(ν)·νj) to TLEj for j=1, . . . , ┌log((ε′)2 nM)┐, wherein νj is an output of a procedure for calculating |{i: (α·(x+i)+b mod m) ∈ [c, d], 0≦i≦r}|, wherein c=cj=2└log q┘−j, d=dj=2└log q┘−j+1−1, x=(i−1)M+1, r=|ν|−1, and m=q, and wherein Rj is an output of TLEj.
6. The method of claim 5, further comprising:
running an instantiation TLE of said subroutine with k=┌1/(ε′)2┐; and
generating R as an output of said instantiation TLE.
7. The method of claim 6, further comprising:
running a one-pass streaming algorithm for (1±ε)-approximating said L1 difference (L1) using error parameter ⅓, using O(ε−2 log(nM)) space with update time O(ε−2 log(nM)), wherein said one-pass streaming algorithm succeeds with probability at least 19/20; and
obtaining a value R′ ∈ [L1/2, L1] as a result of said running said one-pass streaming algorithm.
8. The method of claim 7, wherein said estimating said L1 difference includes
determining R′≦┌1/(ε′)2┐ or R′>┌1/(ε′)2┐;
outputting R as a result of determining R′≦┌1/(ε′)2┐; and
outputting q·2┌log((ε′) 2 R′)┐−└log q┘R|log((ε′) 2 R′| as a result of determining R′22 ┌1(ε′)2┐.
9. The method of claim 1, wherein said first network device is a first router and wherein said second network device is a second router.
10. The method of claim 1, wherein said first amount of information is a first total number of bytes in said first plurality of data packets transmitted via said first network device from said source to said destination in said time period t, and wherein said second amount of information is a second total number of bytes in said second plurality of data packets transmitted via said second network device from said source to said destination in said time period t′.
11. The method of claim 1, further comprising:
said first network device computing said first sketch s(x) in O(n log2(nM)) processing time; and
said second network device computing said second sketch s(y) in said O(n log2(nM)) processing time, wherein said O(n log2(nM)) processing time is independent of ε.
12. The method of claim 1, wherein said first router and said second router are the same router.
13. The method of claim 1, wherein said first router and said second router are different routers.
14. The method of claim 1, wherein said time period t and said time period t′ are the same time period.
15. The method of claim 1, wherein said time period t and said time period t′ are different time periods.
16. A computer system comprising:
a processor; and
a computer-readable memory unit coupled to said processor, said memory unit containing instructions executable by said processor to implement a method of monitoring network traffic by estimating an L1 difference, said method comprising:
receiving a first sketch s(x) from a first network device and a second sketch from a second network device, wherein said first sketch describes a first set of pairs of data (x, ft(x)), wherein x indicates a source and a destination of a first plurality of data packets that include input xi transmitted via said first network device, wherein ft(x) indicates a first amount of information in said first plurality of data packets transmitted via said first network device from said source to said destination in a time period t, wherein said second sketch s(y) describes a second set of pairs of data (y, ft′(y)), wherein y indicates said source and said destination of a second plurality of data packets that include input yi transmitted via said second network device, wherein ft′(y) indicates a second amount of information in said second plurality of data packets transmitted via said second network device from said source to said destination in a time period t′;
estimating an L1 difference ∥ft(x)−ft′(y)∥1, wherein said estimating said L1 difference includes determining an L0 value of a data stream resulting from said first network device inserting elements of a first set of distinct items as insertions into said data stream and from said second network device inserting elements of a second set as deletions from said data stream, wherein said first set includes distinct items derived from xi, wherein said second set of distinct items includes distinct items derived from yi, and wherein said determining said L0 value includes processing updates to ranges of said data stream; and
determining a pattern of said network traffic based on said L1 difference.
17. The system of claim 16, wherein said determining said L0 value further includes:
converting xi to said first set of distinct items, wherein said first set of distinct items contains M(i−1)+1, . . . , M(i−1)+xi, wherein each xi is an element of {−M, . . . , M}n;
converting yi to said second set of distinct items, wherein said second set of distinct items contains M(i−1)+1, . . . , M(i−1)+yi, wherein each y is an element of {−M, . . . , M}n;
inserting said M(i−1)+1, . . . , M(i−1)+xi into said data stream;
deleting said M(i−1)+1, . . . , M(i−1)+yi from said data stream; and
in response to said inserting and said deleting, determining said L0 value as ∥x−y∥1, wherein said L0 value is a number of non-zero elements in a vector (x−y).
18. The system of claim 17, wherein said estimating said L1 difference further includes:
in response to said determining said L0 value, sub-sampling a universe of [nM] in a plurality of levels by a plurality of powers of two;
maintaining a plurality of summary data structures, wherein each summary data structure summarizes a corresponding plurality of items that are sub-sampled by said sub-sampling at a corresponding level of said plurality of levels;
determining a constant-factor approximation R of said L1 difference;
determining a level of said plurality of levels at which an expected number of elements of said universe sub-sampled by said sub-sampling is θ(1/ε2), wherein said level is determined based on R being known, and wherein c is a parameter received by said first network device and by said second network device; and
determining an estimate of said L1 difference based on a summary data structure of said plurality of summary data structure, wherein said summary data structure summarizes a plurality of items at said level.
19. A computer program product comprising:
a computer readable storage medium having a computer readable program code stored therein, said computer readable program code containing instructions executable by a processor of a computer system to implement a method of monitoring network traffic by estimating an L1 difference, said method comprising:
receiving a first sketch s(x) from a first network device and a second sketch from a second network device, wherein said first sketch describes a first set of pairs of data (x, ft(x)), wherein x indicates a source and a destination of a first plurality of data packets that include input xi transmitted via said first network device, wherein ft(x) indicates a first amount of information in said first plurality of data packets transmitted via said first network device from said source to said destination in a time period t, wherein said second sketch s(y) describes a second set of pairs of data (y, ft′(y)), wherein y indicates said source and said destination of a second plurality of data packets that include input yi transmitted via said second network device, wherein ft′(y) indicates a second amount of information in said second plurality of data packets transmitted via said second network device from said source to said destination in a time period t′;
estimating an L1 difference ∥ft(x)−ft′(y)∥1, wherein said estimating said L1 difference includes determining an L0 value of a data stream resulting from said first network device inserting elements of a first set of distinct items as insertions into said data stream and from said second network device inserting elements of a second set as deletions from said data stream, wherein said first set includes distinct items derived from xi, wherein said second set of distinct items includes distinct items derived from yi, and wherein said determining said L0 value includes processing updates to ranges of said data stream; and
determining a pattern of said network traffic based on said L1 difference.
20. The program product of claim 19, wherein said determining said L0 value further includes:
converting xi to said first set of distinct items, wherein said first set of distinct items contains M(i−1)+1, . . . , M(i−1)+xi, wherein each xi is an element of {−M, . . . , M}n;
converting yi to said second set of distinct items, wherein said second set of distinct items contains M(i−1)+1, . . . , M(i−1)+yi, wherein each yi is an element of {−M, . . . , M}n;
inserting said M(i−1)+1, . . . , M(i−1)+xi into said data stream;
deleting said M(i−1)+1, . . . , M(i−1)+yi from said data stream; and
in response to said inserting and said deleting, determining said L0 value as ∥x−y∥1, wherein said L0 value is a number of non-zero elements in a vector (x−y).
US12/760,584 2010-04-15 2010-04-15 Summarizing internet traffic patterns Expired - Fee Related US8310922B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US12/760,584 US8310922B2 (en) 2010-04-15 2010-04-15 Summarizing internet traffic patterns

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
US12/760,584 US8310922B2 (en) 2010-04-15 2010-04-15 Summarizing internet traffic patterns

Publications (2)

Publication Number Publication Date
US20110255424A1 true US20110255424A1 (en) 2011-10-20
US8310922B2 US8310922B2 (en) 2012-11-13

Family

ID=44788121

Family Applications (1)

Application Number Title Priority Date Filing Date
US12/760,584 Expired - Fee Related US8310922B2 (en) 2010-04-15 2010-04-15 Summarizing internet traffic patterns

Country Status (1)

Country Link
US (1) US8310922B2 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150156213A1 (en) * 2012-08-13 2015-06-04 Mts Consulting Pty Limited Analysis of time series data
US20150163104A1 (en) * 2013-12-11 2015-06-11 Telefonaktiebolaget L M Ericsson (Publ) Sketch Based Monitoring of a Communication Network
US20150365229A1 (en) * 2013-02-01 2015-12-17 Morpho Method of xor homomorphic encryption and secure calculation of a hamming distance
US20160018962A1 (en) * 2014-07-18 2016-01-21 Dato, Inc. User-interface for developing applications that apply machine learning
US11580444B2 (en) 2019-04-16 2023-02-14 Apple Inc. Data visualization machine learning model performance

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9262485B2 (en) 2013-08-13 2016-02-16 International Business Machines Corporation Identifying a sketching matrix used by a linear sketch
US10033778B2 (en) * 2015-09-29 2018-07-24 International Business Machines Corporation Real-time statistical analysis on high speed streaming data

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6690951B1 (en) * 1999-12-20 2004-02-10 Telefonaktiebolaget Lm Ericsson (Publ) Dynamic size allocation system and method
US6868062B1 (en) * 2000-03-28 2005-03-15 Intel Corporation Managing data traffic on multiple ports
US20050220023A1 (en) * 2004-03-31 2005-10-06 Kodialam Muralidharan S High-speed traffic measurement and analysis methodologies and protocols
US20090006607A1 (en) * 2007-06-28 2009-01-01 Tian Bu Scalable methods for detecting significant traffic patterns in a data network
US7898949B2 (en) * 2005-03-29 2011-03-01 Cisco Technology, Inc. Brownout detection
US8166138B2 (en) * 2007-06-29 2012-04-24 Apple Inc. Network evaluation grid techniques

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7002980B1 (en) 2000-12-19 2006-02-21 Chiaro Networks, Ltd. System and method for router queue and congestion management
US7751325B2 (en) 2003-08-14 2010-07-06 At&T Intellectual Property Ii, L.P. Method and apparatus for sketch-based detection of changes in network traffic
US7424489B1 (en) 2004-01-23 2008-09-09 At&T Corp. Methods and apparatus for space efficient adaptive detection of multidimensional hierarchical heavy hitters
US20070140131A1 (en) 2005-12-15 2007-06-21 Malloy Patrick J Interactive network monitoring and analysis
US7756805B2 (en) 2006-03-29 2010-07-13 Alcatel-Lucent Usa Inc. Method for distributed tracking of approximate join size and related summaries
US8601113B2 (en) 2007-11-30 2013-12-03 Solarwinds Worldwide, Llc Method for summarizing flow information from network devices
US7764628B2 (en) 2008-01-18 2010-07-27 Alexandre Gerber Method for controlling traffic balance between peering networks

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6690951B1 (en) * 1999-12-20 2004-02-10 Telefonaktiebolaget Lm Ericsson (Publ) Dynamic size allocation system and method
US6868062B1 (en) * 2000-03-28 2005-03-15 Intel Corporation Managing data traffic on multiple ports
US20050220023A1 (en) * 2004-03-31 2005-10-06 Kodialam Muralidharan S High-speed traffic measurement and analysis methodologies and protocols
US7397766B2 (en) * 2004-03-31 2008-07-08 Lucent Technologies Inc. High-speed traffic measurement and analysis methodologies and protocols
US7898949B2 (en) * 2005-03-29 2011-03-01 Cisco Technology, Inc. Brownout detection
US20090006607A1 (en) * 2007-06-28 2009-01-01 Tian Bu Scalable methods for detecting significant traffic patterns in a data network
US8166138B2 (en) * 2007-06-29 2012-04-24 Apple Inc. Network evaluation grid techniques

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150156213A1 (en) * 2012-08-13 2015-06-04 Mts Consulting Pty Limited Analysis of time series data
US9578046B2 (en) * 2012-08-13 2017-02-21 Arbor Networks, Inc. Analysis of time series data
US20150365229A1 (en) * 2013-02-01 2015-12-17 Morpho Method of xor homomorphic encryption and secure calculation of a hamming distance
US20150163104A1 (en) * 2013-12-11 2015-06-11 Telefonaktiebolaget L M Ericsson (Publ) Sketch Based Monitoring of a Communication Network
EP2884696A1 (en) * 2013-12-11 2015-06-17 Telefonaktiebolaget L M Ericsson (publ) Sketch based monitoring of a communication network
US10027542B2 (en) * 2013-12-11 2018-07-17 Telefonaktiebolaget L M Ericsson (Publ) Sketch based monitoring of a communication network
US20160018962A1 (en) * 2014-07-18 2016-01-21 Dato, Inc. User-interface for developing applications that apply machine learning
US10928970B2 (en) * 2014-07-18 2021-02-23 Apple Inc. User-interface for developing applications that apply machine learning
US11580444B2 (en) 2019-04-16 2023-02-14 Apple Inc. Data visualization machine learning model performance

Also Published As

Publication number Publication date
US8310922B2 (en) 2012-11-13

Similar Documents

Publication Publication Date Title
US8310922B2 (en) Summarizing internet traffic patterns
JP7121194B2 (en) Secure multi-party reach and frequency estimation
Alkim et al. NewHope without reconciliation
Alkim et al. Post-quantum key {Exchange—A} new hope
US9158806B2 (en) Integrity checking and selective deduplication based on network parameters
US7853014B2 (en) Ring arithmetic method, system, and apparatus
US20180323973A1 (en) Elliptic curve isogeny-based cryptographic scheme
US20130067218A2 (en) Incorporating data into cryptographic components of an ecqv certificate
US20120243680A1 (en) Incorporating data into an ecdsa signature component
Jerschow et al. Non-parallelizable and non-interactive client puzzles from modular square roots
US20200044860A1 (en) System and method for quantum resistant digital signature
US7346637B2 (en) Polynomial time deterministic method for testing primality of numbers
US20230214826A1 (en) Key-value map commitments system and method
CN109861964B (en) Data analysis method, equipment and system
US7774607B2 (en) Fast RSA signature verification
Ben-Sasson et al. On public key encryption from noisy codewords
Mehta et al. Minimization of mean square error for improved euler elliptic curve secure hash cryptography for textual data
Díaz et al. Chor-rivest knapsack cryptosystem in a post-quantum world
Nelson et al. A near-optimal algorithm for L1-difference
US11876677B1 (en) WAN optimization using probabilistic data filters
Feigenblat et al. The frequent items problem, under polynomial decay, in the streaming model
Yan et al. On the Hardness of Sparsely Learning Parity with Noise
Pramod et al. A cryptosystem using the concepts of algebraic geometric code
Zhang et al. Secure management and processing of metered data in the cloud

Legal Events

Date Code Title Description
AS Assignment

Owner name: INTERNATIONAL BUSINESS MACHINES CORPORATION, NEW Y

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:NELSON, JELANI OSEI;WOODRUFF, DAVID PAUL;SIGNING DATES FROM 20100216 TO 20100217;REEL/FRAME:024235/0316

REMI Maintenance fee reminder mailed
LAPS Lapse for failure to pay maintenance fees
STCH Information on status: patent discontinuation

Free format text: PATENT EXPIRED DUE TO NONPAYMENT OF MAINTENANCE FEES UNDER 37 CFR 1.362

FP Lapsed due to failure to pay maintenance fee

Effective date: 20161113