All models

ET-BERT

A BERT-style Transformer encoder pre-trained on unlabeled encrypted network traffic for traffic classification.

602 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (24 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
178.9M
Operations
602
Framework
PyTorch
Recurrent
No
Published
WWW 2022
Cited by
593 (as of 29 October 2026)
Authors
Xinjie Lin, Gang Xiong, Gaopeng Gou and others
License
MIT
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m16371
Graph hash
5273d9721af4347a661a7357fc1b7746202c9dfb85a74007098363803f545df5
Skeleton hash
5ad2d6bc8c09ea62025abfdd0e8eda41030f1f0f10ebcf930fd6237c1d5d53d3
Architecture hash
c2b8f704d40301efb398a4dfa0d4e872581d1e33233a4b26a50a5a021b0c3cf2
Diagram SHA-256
03219bd55ebb10b7cbc5a0f27945593819c0e5a0af4d02ed42f086113e870f58
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

ET-BERT, short for Encrypted Traffic Bidirectional Encoder Representations from Transformer, is a model for classifying encrypted network traffic that first pre-trains datagram-level representations on large-scale unlabeled data. The problem the paper sets out is that existing solutions rely heavily on deep features, which depend on data size and are hard to generalize to unseen data.

According to the repository, pre-training applies multi-layer attention to unlabeled traffic to learn both the contextual relationships between datagrams and the transport relationships between traffic. The pre-training command there selects a transformer encoder with a BERT training target. The pre-trained model is then fine-tuned on a small amount of labeled encrypted traffic to identify traffic types in a specific scenario. The code is based on UER-py.

After fine-tuning, the paper reports F1 of 99.2% on ISCX-Tor, 98.9% on ISCX-VPN-Service, 92.5% on Cross-Platform (Android) and 97.4% on CSTNET-TLS 1.3. The TLS 1.3 dataset was collected from March to July 2021 on the China Science and Technology Network (CSTNET).

Key idea. ET-BERT pre-trains contextualized datagram-level representations from large-scale unlabeled encrypted traffic, then fine-tunes on a small amount of labeled data for traffic classification.

  • ET-BERT
  • Encrypted Traffic BERT
  • encrypted traffic classification
  • network traffic classification
  • traffic representation
  • datagram representation
  • pre-trained traffic model
  • TLS 1.3 traffic

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{lin2022etbertcontextualizeddatagramrepresentation,
      title={ET-BERT: A Contextualized Datagram Representation with Pre-training Transformers for Encrypted Traffic Classification}, 
      author={Xinjie Lin and Gang Xiong and Gaopeng Gou and Zhen Li and Junzheng Shi and Jing Yu},
      year={2022},
      eprint={2202.06335},
      archivePrefix={arXiv},
      primaryClass={cs.CR},
      doi={https://doi.org/10.1145/3485447.3512217},
      url={https://arxiv.org/abs/2202.06335}, 
}