Network Traffic Characterization Using (p,n)-grams Packet Representation
Bibliographic record
Abstract
With the ever increasing advances in network protocols and traffic complexity, new challenges are emerging in traffic characterization and management.In this thesis, we propose a new approach that can complement existing ones with a simple high-level understanding of network traffic.Our approach uses (p, n)-grams representation to analyze network traffic, where a (p, n)-gram is an n-byte string starting at offset p.We argue that the (p, n)-grams representation combines the efficiency of using specific packet fields (e.g.ports) with the generalized pattern matching of n-grams, without the complexity and overhead of full packet pattern matching.We also show that using (p, n)-grams allows for traffic analysis at all packet parts (payload content, header port/flow, and other header behavior fields), without mixing between similar patterns that may accidentally exist at different fields within packets.As a proof of concept, we develop a (p, n)-gram-based lightweight unsupervised clustering algorithm (ADHIC) that makes no prior assumptions about the involved protocols.We show that ADHIC can automatically cluster network traffic using a binary decision tree into equivalence classes that closely approximate standard measures of network traffic.We also show that ADHIC can be used to monitor network traffic through observing the dynamic updates to the clustering tree.Those incremental updates highlight the temporal changes in network traffic that are not easily detected using standard network analysis methods.We then research the characteristics and distributions of (p, n)-grams in network packets, and how they can be utilized for traffic analysis.In particular, we argue that (p, n)-grams have automatic fingerprinting capability where a simple frequency ii analysis of network packets can capture structural (p, n)-grams based on their relative high frequencies.These (p, n)-grams represent protocol and sub-protocol structures and cross-protocol patterns.We observe that (p, n)-grams follow a power-law-like distribution where the structural ones constitute the rapidly-dropping-off curve before the long tail.We argue that this special distribution adds to the efficiency of (p, n)-grams-based traffic analysis as it describes structural (p, n)-grams as 1) a small set of (p, n)-grams that 2) can be easily distinguished from the long list.Our observation relies on a thorough empirical analysis using independent network traffic traces.In addition, we create an entropy-based conceptual model that explains this distribution behavior in the context of the hierarchy of network protocols and statistics of Internet traffic.iii Acknowledgment Dedicated to my dearest father, Abdullah Hijazi, dearest mother, Ameerah Deyab, and dearest wife, Nesrin Sarmini for their endless support and courage throughout this difficult journey.My father has been always the source of passion and enthusiasm to pursue this long path.My mother gave me the ideal example of dedication and determination.My wife made everything possible to provide the best working environment while raising our five little children. I would like to extend
Fetched live from OpenAlex and de-inverted. Abstracts are not stored in this database: the inverted indexes are 8.6 GB of the frame’s 9.3 GB of text, and the host has 13 GB free.
How this classification was reachedexpand
Full frame machine prediction
Teacher imitationNot calibrated prevalence, not ground truth. Human validation pending. The Gemma side is a direct model label for every work in the frame, read from the title-only record. The Codex side is a classifier learned from the 10,348 direct Codex labels and calibrated to design-weighted sample rates; fields without enough sample support carry no Codex call. Candidate is the union of the two sides; consensus is their intersection. These outputs are machine_predicted_unvalidated and are not human labels.
Distilled classifier scores by category (both heads)
| Category | Codex | Gemma |
|---|---|---|
| Metaresearch | 0.000 | 0.003 |
| Meta-epidemiology (narrow) | 0.001 | 0.000 |
| Meta-epidemiology (broad) | 0.001 | 0.001 |
| Bibliometrics | 0.003 | 0.002 |
| Science and technology studies | 0.001 | 0.001 |
| Scholarly communication | 0.001 | 0.002 |
| Open science | 0.001 | 0.001 |
| Research integrity | 0.001 | 0.001 |
| Insufficient payload (model declined to judge) | 0.001 | 0.001 |
Machine scores (provisional)
The two teacher heads of the student model, read on this work. A score orders the frame for review; it never asserts a category, and the validation status ships verbatim with every row.
Baseline scores from an immature model (maturity gate not passed, 7 training rounds). Scores rank; they never assert a category.
score_only:v0-immature-baseline · verbatim from the scoring run: score_only means the number may rank works, and no category label ships from itClassification
machine, unvalidatedMachine predicted; a candidate call from one source (direct Gemma or distilled Codex), not a consensus.
How this classification was reached, model by model and score by score, is at the end of the page under "How this classification was reached".