microsoft / microsoft/ethr

IP ToS option is not working

Open
#158 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
5.9k
Forks
406
PR merge metrics
No merged PRs in 30d

Description

Hi,

It seems the -tos option is not working. I built the lastest release using the Dockerfile provided in the code and ran a client and server container based on centos 7. When inspecting the packets from the client, the ToS field in the IP header was not set.

I ran the server and client as following:

Dockerfile to test:

FROM centos:7

COPY ethr /

Server:

docker run --rm --name server ethr-test ./ethr -s

Client:

docker run --rm --name client ethr-test ./ethr -c 172.17.0.2 -b 10M -p tcp -t b -tos 56

I inspected the packets in the docker0 interface using Wireshark and this is how they looked:

log_ethr_with_tos

I tried different values for ToS but none of them worked.

Contributor guide

No contributing guide indexed for this repository

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

Reproduce the report using the provided Dockerfile and the server and client commands, then inspect traffic on the docker0 interface. Start at the ./ethr entry point and trace how -tos 56 is handled; done means the requested value appears in the IP header for the generated traffic.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, go
Domain
networking
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.