From: Hangbin Liu <liuhangbin@gmail.com>
To: paolo lungaroni <paolo.lungaroni@alumni.uniroma2.eu>
Cc: Andrea Mayer <andrea.mayer@uniroma2.it>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
"stefano.salsano" <stefano.salsano@uniroma2.it>,
Ahmed Abdelsalam <ahabdels.dev@gmail.com>,
David Lebrun <dlebrun@google.com>
Subject: Re: R: Why we need add :: at the last when encap seg6 with inline mode?
Date: Tue, 4 Jul 2023 10:48:32 +0800 [thread overview]
Message-ID: <ZKOIgDp4DIXV2Aj4@Laptop-X1> (raw)
In-Reply-To: <AM6PR07MB56691CDB704895F0E13689AA9125A@AM6PR07MB5669.eurprd07.prod.outlook.com>
Hi Paolo,
On Thu, Jun 29, 2023 at 10:57:32PM +0000, paolo lungaroni wrote:
> Just for the sake of clarity let's consider Example 1 where the SID List is
> built as follows: <S3,S2,S1>.
>
> Before applying H.Insert
> IPv6 DA=B2
>
> After applying H.Insert:
> IPv6 DA=S1 | SRH <B2,S3,S2,S1>
>
> In this representation, we stick with the draft conventions where the SID List
> is represented in the reversed order. That means that S1 will be the first SID,
> S2 the second one, etc. B2 is the original IPv6 DA that is pushed into the
> SID List and will be restored once the SRH is removed.
>
> Now let's consider the H.Insert implementation in Linux.
>
> User space
> =========
>
> Currently, when a H.Insert tunnel is instantiated the userspace (iproute2, in
> this case) acquires all the info (e.g. inline, segs, etc) from the CLI and
> builds directly the required SRH header [2].
> Considering the H.Insert tunnel (i.e. inline mode), parse_srh() (line 894)
> accommodates for an extra space required to store the original IPv6 DA (i.e.
> B2 considering the Example 1) which is not known at the moment of the tunnel
> creation.
> For this reason, iproute2 fills the reserved space with 16 bytes set to zero
> (and that's why we see ::).
Thanks for the explanation. Compared with dealing each segment route and
adding the original DA in the middle of struct ipv6_sr_hdr, this way looks
more easier. Although the users may feel a little confused :)
Regards
Hangbin
prev parent reply other threads:[~2023-07-04 2:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-27 7:28 Why we need add :: at the last when encap seg6 with inline mode? Hangbin Liu
[not found] ` <AM6PR07MB56691CDB704895F0E13689AA9125A@AM6PR07MB5669.eurprd07.prod.outlook.com>
2023-07-04 2:48 ` Hangbin Liu [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZKOIgDp4DIXV2Aj4@Laptop-X1 \
--to=liuhangbin@gmail.com \
--cc=ahabdels.dev@gmail.com \
--cc=andrea.mayer@uniroma2.it \
--cc=dlebrun@google.com \
--cc=netdev@vger.kernel.org \
--cc=paolo.lungaroni@alumni.uniroma2.eu \
--cc=stefano.salsano@uniroma2.it \
/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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox