Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

RE: Re: Finding patterns in packet data?

by lhoward (Vicar)
on Aug 04, 2000 at 22:44 UTC ( [id://26252] : note . print w/replies, xml ) Need Help??


in reply to Re: Finding patterns in packet data?
in thread Finding patterns in packet data?

My answer (above) works as follows:
For every length you want to consider For each packet for each substring of length N increment count of N's occurrence by 1 Look at all the data you've amassed about which substrings occur with what frequency and spit out some data.
Unless you specify what your "length vs frequency" preference is you can not get a generic answer. If what you are looking for is "what are the largest, most common substrings that occur in more than %90 of the packets" then you can do it.