secdev / secdev/scapy

Turnaround time longer on Linux over conf.L2socket

Open
#3,713 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
12.6k
Forks
2.2k
Avg merge
1d 4h
Merged PRs (30d)
56

Description

Brief description

Packets are taking ~0.1 seconds to be received over conf.L2socket on Linux.

Scapy version

2.4.5

Python version

3.6.9

Operating system

Ubuntu 18.04.6

Additional environment information

No response

How to reproduce

Running the attached echo_demo.py file (zipped) which uses the SatCat5 python API, will print the turnaround time it takes to send and receive a message. On the Linux machine (Ubuntu 18.04.6) the turnaround time is consistently ~0.1 seconds, but Wireshark shows that the packet is actually received in less than 0.001 seconds. Running it on a Windows machine (with Npcap 1.60) shows similar results to the Wireshark output.

echo_demo.zip

Actual result

Actual_Result

Expected result

Expected_Result

Related resources

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the attached echo_demo.py in echo_demo.zip and reproduce the turnaround-time difference on Ubuntu 18.04.6 using conf.L2socket, comparing the Python timing with Wireshark and the Windows result. Done means identifying and resolving the added delay so the reported time matches packet receipt latency.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux, python
Domain
networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.