Turnaround time longer on Linux over conf.L2socket
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.
Actual result

Expected result

Related resources
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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