Flent-users discussion archives
 help / color / mirror / Atom feed
From: "Toke Høiland-Jørgensen" <notifications@github.com>
To: tohojo/flent <flent@noreply.github.com>
Cc: Subscribed <subscribed@noreply.github.com>
Subject: [Flent-users] Re: [tohojo/flent] Question about custom symbolic diffserv marking names feature (#215)
Date: Sun, 06 Dec 2020 07:43:49 -0800
Message-ID: <tohojo/flent/issues/215/739520901@github.com> (raw)
In-Reply-To: <tohojo/flent/issues/215@github.com>

[-- Attachment #1: Type: text/plain, Size: 2112 bytes --]

olg33 <notifications@github.com> writes:

> Hello,
>
> I have a system using the feature that implements custom symbolic diffserv marking names, In the past, I got it working with your help (Issue #203).
>
> Now, I had to replicate settings in another server. First I cloned the VM of the first deployment and reviewed the flentrc file, which has the following lines:
>
> `[global]
> marking_names=10=0x28;12=0x30;14=0x38;16=0x40;18=0x48;20=0x50;26=0x68;34=0x88`
>
> Once everything was in place I ran the following test:
>
> `flent rrul_var -H 10.111.38.60 --test-parameter bidir_streams=5 --test-parameter markings=10,12,14,16,20`
>
> In principle all went fine:
>
>  
> ![Capture](https://user-images.githubusercontent.com/61751672/101208375-1ac72e00-3640-11eb-935d-8f88eb9f14b1.JPG)
>
> Simultaneously, I performed a packet capture to see the marks in the traffic generated in the upload traffic as the download one doesn't seem to be marked maybe due to a router blocking, but that is not an issue right now. 
>
> Looking at the upload captures I'm not seeing the outcome expected. I should see values of 0x28, 0x30, 0x38, 0x40 and 0x50 in those packets. Instead, I see values like 0x10, 0x0a, ox0e, etc.
>
> ![Capture](https://user-images.githubusercontent.com/61751672/101209320-8a89e880-3641-11eb-873e-ec7e87534ad5.JPG)
>    
> After banging my head for a wile, I would like to ask if you see anything that I may be missing in steps described above?
>
>  Any clue would be appreciated.

Hmm, seems like the configuration is correct on the Flent side. However,
note that the values you specify are the values of the entire TOS byte,
whereas what wireshark displays is only the DSCP field. So you need to
left-shift your values by two bits. I.e., if you want the DSCP field to
be 0x28, you need to set the marking to (0x28 << 2) == 0xa0...

0x28 >> 2 is 0x0a, so this seems to be consistent with what you're
seeing :)


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/tohojo/flent/issues/215#issuecomment-739520901

[-- Attachment #2: Type: text/html, Size: 3269 bytes --]

  reply	other threads:[~2020-12-06 15:43 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-04 20:19 [Flent-users] " olg33
2020-12-06 15:43 ` Toke Høiland-Jørgensen [this message]
2020-12-07 17:56 ` [Flent-users] " olg33
2020-12-07 18:06 ` Toke Høiland-Jørgensen
2020-12-07 18:26 ` olg33
2020-12-07 20:21 ` olg33
2020-12-07 22:13 ` Toke Høiland-Jørgensen
2020-12-08  0:00 ` olg33
2020-12-08 13:11 ` Toke Høiland-Jørgensen
2020-12-08 17:12 ` olg33
2020-12-08 22:43 ` Toke Høiland-Jørgensen
2020-12-09 18:15 ` olg33
2020-12-09 18:25 ` Toke Høiland-Jørgensen
2021-01-13 16:02 ` Toke Høiland-Jørgensen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://lists.flent.org/postorius/lists/flent-users.flent.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=tohojo/flent/issues/215/739520901@github.com \
    --to=notifications@github.com \
    --cc=flent@noreply.github.com \
    --cc=reply+AHVNJP4ICHND7UGOL74732N53DOTLEVBNHHC2JFLFU@reply.github.com \
    --cc=subscribed@noreply.github.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Flent-users discussion archives

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://lists.flent.org/flent-users

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 flent-users flent-users/ https://lists.flent.org/flent-users \
		flent-users@flent.org
	public-inbox-index flent-users

Example config snippet for mirrors.


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git