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

wrong "socket TOS:" output when -d 10 is used #49

Open
O-ring opened this issue Sep 17, 2020 · 0 comments
Open

wrong "socket TOS:" output when -d 10 is used #49

O-ring opened this issue Sep 17, 2020 · 0 comments

Comments

@O-ring
Copy link

O-ring commented Sep 17, 2020

Hello everyone,

I noticed that the output of the fields (when the -d 10 debug option is used):

Local socket TOS:
Remote socket TOS:

is not always correct. I have done the whole sequence of cases and this is the output.
However the traffic is generated with the correct value in the "tos" field.

This is netperf 2.7.0 compiled from sources with the following options:
configure --prefix=/usr --enable-demo --enable-histogram

[root@pakito ~]# netperf -H 10.68.68.56 -d 10 -l 2 -v 2 -D 1 -Y 0,0 -f m| grep TOS
Local socket TOS: cs0
Remote socket TOS: cs0

[root@pakito ~]# netperf -H 10.68.68.56 -d 10 -l 2 -v 2 -D 1 -Y 4,4 -f m| grep TOS
Local socket TOS: reliability
Remote socket TOS: reliability

[root@pakito ~]# netperf -H 10.68.68.56 -d 10 -l 2 -v 2 -D 1 -Y 8,8 -f m| grep TOS
Local socket TOS: throughput
Remote socket TOS: throughput

[root@pakito ~]# netperf -H 10.68.68.56 -d 10 -l 2 -v 2 -D 1 -Y 12,12 -f m| grep TOS
Local socket TOS: 0x0c
Remote socket TOS: 0x0c

[root@pakito ~]# netperf -H 10.68.68.56 -d 10 -l 2 -v 2 -D 1 -Y 16,16 -f m| grep TOS
Local socket TOS: lowdelay
Remote socket TOS: lowdelay

[root@pakito ~]# netperf -H 10.68.68.56 -d 10 -l 2 -v 2 -D 1 -Y 32,32 -f m| grep TOS
Local socket TOS: cs1
Remote socket TOS: cs1

[root@pakito ~]# netperf -H 10.68.68.56 -d 10 -l 2 -v 2 -D 1 -Y 40,40 -f m| grep TOS
Local socket TOS: af11
Remote socket TOS: af11

[root@pakito ~]# netperf -H 10.68.68.56 -d 10 -l 2 -v 2 -D 1 -Y 48,48 -f m| grep TOS
Local socket TOS: af12
Remote socket TOS: af12

[root@pakito ~]# netperf -H 10.68.68.56 -d 10 -l 2 -v 2 -D 1 -Y 56,56 -f m| grep TOS
Local socket TOS: af13
Remote socket TOS: af13

[root@pakito ~]# netperf -H 10.68.68.56 -d 10 -l 2 -v 2 -D 1 -Y 64,64 -f m| grep TOS
Local socket TOS: cs2
Remote socket TOS: cs2

[root@pakito ~]# netperf -H 10.68.68.56 -d 10 -l 2 -v 2 -D 1 -Y 72,72 -f m| grep TOS
Local socket TOS: cs0
Remote socket TOS: cs0

[root@pakito ~]# netperf -H 10.68.68.56 -d 10 -l 2 -v 2 -D 1 -Y 80,80 -f m| grep TOS
Local socket TOS: cs0
Remote socket TOS: cs0

[root@pakito ~]# netperf -H 10.68.68.56 -d 10 -l 2 -v 2 -D 1 -Y 88,88 -f m| grep TOS
Local socket TOS: cs0
Remote socket TOS: cs0

[root@pakito ~]# netperf -H 10.68.68.56 -d 10 -l 2 -v 2 -D 1 -Y 96,96 -f m| grep TOS
Local socket TOS: cs0
Remote socket TOS: cs0

[root@pakito ~]# netperf -H 10.68.68.56 -d 10 -l 2 -v 2 -D 1 -Y 104,104 -f m| grep TOS
Local socket TOS: cs0
Remote socket TOS: cs0

[root@pakito ~]# netperf -H 10.68.68.56 -d 10 -l 2 -v 2 -D 1 -Y 112,112 -f m| grep TOS
Local socket TOS: cs0
Remote socket TOS: cs0

[root@pakito ~]# netperf -H 10.68.68.56 -d 10 -l 2 -v 2 -D 1 -Y 120,120 -f m| grep TOS
Local socket TOS: cs0
Remote socket TOS: cs0

[root@pakito ~]# netperf -H 10.68.68.56 -d 10 -l 2 -v 2 -D 1 -Y 128,128 -f m| grep TOS
Local socket TOS: cs0
Remote socket TOS: cs0

[root@pakito ~]# netperf -H 10.68.68.56 -d 10 -l 2 -v 2 -D 1 -Y 136,136 -f m| grep TOS
Local socket TOS: cs0
Remote socket TOS: cs0

[root@pakito ~]# netperf -H 10.68.68.56 -d 10 -l 2 -v 2 -D 1 -Y 144,144 -f m| grep TOS
Local socket TOS: cs0
Remote socket TOS: cs0

[root@pakito ~]# netperf -H 10.68.68.56 -d 10 -l 2 -v 2 -D 1 -Y 152,152 -f m| grep TOS
Local socket TOS: cs0
Remote socket TOS: cs0

[root@pakito ~]# netperf -H 10.68.68.56 -d 10 -l 2 -v 2 -D 1 -Y 160,160 -f m| grep TOS
Local socket TOS: cs0
Remote socket TOS: cs0

[root@pakito ~]# netperf -H 10.68.68.56 -d 10 -l 2 -v 2 -D 1 -Y 176,176 -f m| grep TOS
Local socket TOS: cs0
Remote socket TOS: cs0

[root@pakito ~]# netperf -H 10.68.68.56 -d 10 -l 2 -v 2 -D 1 -Y 184,184 -f m| grep TOS
Local socket TOS: cs0
Remote socket TOS: cs0

[root@pakito ~]# netperf -H 10.68.68.56 -d 10 -l 2 -v 2 -D 1 -Y 192,192 -f m| grep TOS
Local socket TOS: cs0
Remote socket TOS: cs0

[root@pakito ~]# netperf -H 10.68.68.56 -d 10 -l 2 -v 2 -D 1 -Y 224,224 -f m| grep TOS
Local socket TOS: cs0
Remote socket TOS: cs0

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

1 participant