Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pcap file generation #7

Open
QiongwenXu opened this issue May 26, 2023 · 1 comment
Open

pcap file generation #7

QiongwenXu opened this issue May 26, 2023 · 1 comment
Assignees

Comments

@QiongwenXu
Copy link
Collaborator

QiongwenXu commented May 26, 2023

For the given original pcap file, writer a script to generate the pcap files for three approaches (shared-state, flow affinity, shared-nothing)

Modifications for all approaches:
Modify dst mac: ensure that the packets can be sent to dut
Add padding: higher tx rate

Shared state:

  • add padding, modify dst mac
  • modify src mac for RSS
  • -> (# of cores) pcap files

Flow affinity

  • add padding, modify dst mac -> 1 pcap file
  • (RSS) Some benchmark needs additional processing: e.g., set dst ip the same for ddos mitigator flow affinity
    State (i.e., map key) is srcip. Need to ensure packets with the same srcip needs to be processed by the same core. The NIC does not support to only use srcip for hash function, but both srcip and dstip
  • -> at most (# of benchmarks) pcap files

Shared nothing

  • add padding, modify dst mac
  • modify src mac for RSS
  • Add metadata
  • -> (# of cores) * (# of benchmarks) pcap files

Scripts implemented:
https://github.com/smartnic/bpf-profile/tree/main/profile/pkt_trace

@sebymiano sebymiano self-assigned this Jun 7, 2023
@QiongwenXu
Copy link
Collaborator Author

QiongwenXu commented Jun 16, 2023

@sebymiano
pcap file generate scripts: https://github.com/smartnic/bpf-profile/tree/main/dpdk_burst_replay/pkt_trace
pcap file folder: https://drive.google.com/drive/folders/1s704Mpi8VJpKD0ua1Y-iTLvZTdjoBDSR?usp=drive_link

- original pcap file: trace_10_mtu1500.pcap
- Shared state: shared_state_[#cores].pcap
- Flow affinity: [benchmark]_flow_affinity.pcap
- Shared nothing: [benchmark]_shared_nothing_[#cores].pcap

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants