mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2024-12-29 17:22:07 +00:00
docs: networking: convert ila.txt to ReST
- add SPDX header; - adjust title markup; - mark code blocks and literals as such; - adjust identation, whitespaces and blank lines; - add to networking/index.rst. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
3c3a2fde4d
commit
1d2698fa05
@ -1,4 +1,8 @@
|
|||||||
|
.. SPDX-License-Identifier: GPL-2.0
|
||||||
|
|
||||||
|
===================================
|
||||||
Identifier Locator Addressing (ILA)
|
Identifier Locator Addressing (ILA)
|
||||||
|
===================================
|
||||||
|
|
||||||
|
|
||||||
Introduction
|
Introduction
|
||||||
@ -26,11 +30,13 @@ The ILA protocol is described in Internet-Draft draft-herbert-intarea-ila.
|
|||||||
ILA terminology
|
ILA terminology
|
||||||
===============
|
===============
|
||||||
|
|
||||||
- Identifier A number that identifies an addressable node in the network
|
- Identifier
|
||||||
|
A number that identifies an addressable node in the network
|
||||||
independent of its location. ILA identifiers are sixty-four
|
independent of its location. ILA identifiers are sixty-four
|
||||||
bit values.
|
bit values.
|
||||||
|
|
||||||
- Locator A network prefix that routes to a physical host. Locators
|
- Locator
|
||||||
|
A network prefix that routes to a physical host. Locators
|
||||||
provide the topological location of an addressed node. ILA
|
provide the topological location of an addressed node. ILA
|
||||||
locators are sixty-four bit prefixes.
|
locators are sixty-four bit prefixes.
|
||||||
|
|
||||||
@ -51,17 +57,20 @@ ILA terminology
|
|||||||
bits) and an identifier (low order sixty-four bits). ILA
|
bits) and an identifier (low order sixty-four bits). ILA
|
||||||
addresses are never visible to an application.
|
addresses are never visible to an application.
|
||||||
|
|
||||||
- ILA host An end host that is capable of performing ILA translations
|
- ILA host
|
||||||
|
An end host that is capable of performing ILA translations
|
||||||
on transmit or receive.
|
on transmit or receive.
|
||||||
|
|
||||||
- ILA router A network node that performs ILA translation and forwarding
|
- ILA router
|
||||||
|
A network node that performs ILA translation and forwarding
|
||||||
of translated packets.
|
of translated packets.
|
||||||
|
|
||||||
- ILA forwarding cache
|
- ILA forwarding cache
|
||||||
A type of ILA router that only maintains a working set
|
A type of ILA router that only maintains a working set
|
||||||
cache of mappings.
|
cache of mappings.
|
||||||
|
|
||||||
- ILA node A network node capable of performing ILA translations. This
|
- ILA node
|
||||||
|
A network node capable of performing ILA translations. This
|
||||||
can be an ILA router, ILA forwarding cache, or ILA host.
|
can be an ILA router, ILA forwarding cache, or ILA host.
|
||||||
|
|
||||||
|
|
||||||
@ -82,18 +91,18 @@ Configuration and datapath for these two points of deployment is somewhat
|
|||||||
different.
|
different.
|
||||||
|
|
||||||
The diagram below illustrates the flow of packets through ILA as well
|
The diagram below illustrates the flow of packets through ILA as well
|
||||||
as showing ILA hosts and routers.
|
as showing ILA hosts and routers::
|
||||||
|
|
||||||
+--------+ +--------+
|
+--------+ +--------+
|
||||||
| Host A +-+ +--->| Host B |
|
| Host A +-+ +--->| Host B |
|
||||||
| | | (2) ILA (') | |
|
| | | (2) ILA (') | |
|
||||||
+--------+ | ...addressed.... ( ) +--------+
|
+--------+ | ...addressed.... ( ) +--------+
|
||||||
V +---+--+ . packet . +---+--+ (_)
|
V +---+--+ . packet . +---+--+ (_)
|
||||||
(1) SIR | | ILA |----->-------->---->| ILA | | (3) SIR
|
(1) SIR | | ILA |----->-------->---->| ILA | | (3) SIR
|
||||||
addressed +->|router| . . |router|->-+ addressed
|
addressed +->|router| . . |router|->-+ addressed
|
||||||
packet +---+--+ . IPv6 . +---+--+ packet
|
packet +---+--+ . IPv6 . +---+--+ packet
|
||||||
/ . Network .
|
/ . Network .
|
||||||
/ . . +--+-++--------+
|
/ . . +--+-++--------+
|
||||||
+--------+ / . . |ILA || Host |
|
+--------+ / . . |ILA || Host |
|
||||||
| Host +--+ . .- -|host|| |
|
| Host +--+ . .- -|host|| |
|
||||||
| | . . +--+-++--------+
|
| | . . +--+-++--------+
|
||||||
@ -173,7 +182,7 @@ ILA address, never a SIR address.
|
|||||||
|
|
||||||
In the simplest format the identifier types, C-bit, and checksum
|
In the simplest format the identifier types, C-bit, and checksum
|
||||||
adjustment value are not present so an identifier is considered an
|
adjustment value are not present so an identifier is considered an
|
||||||
unstructured sixty-four bit value.
|
unstructured sixty-four bit value::
|
||||||
|
|
||||||
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||||
| Identifier |
|
| Identifier |
|
||||||
@ -184,7 +193,7 @@ unstructured sixty-four bit value.
|
|||||||
The checksum neutral adjustment may be configured to always be
|
The checksum neutral adjustment may be configured to always be
|
||||||
present using neutral-map-auto. In this case there is no C-bit, but the
|
present using neutral-map-auto. In this case there is no C-bit, but the
|
||||||
checksum adjustment is in the low order 16 bits. The identifier is
|
checksum adjustment is in the low order 16 bits. The identifier is
|
||||||
still sixty-four bits.
|
still sixty-four bits::
|
||||||
|
|
||||||
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||||
| Identifier |
|
| Identifier |
|
||||||
@ -193,7 +202,7 @@ still sixty-four bits.
|
|||||||
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||||
|
|
||||||
The C-bit may used to explicitly indicate that checksum neutral
|
The C-bit may used to explicitly indicate that checksum neutral
|
||||||
mapping has been applied to an ILA address. The format is:
|
mapping has been applied to an ILA address. The format is::
|
||||||
|
|
||||||
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||||
| |C| Identifier |
|
| |C| Identifier |
|
||||||
@ -204,7 +213,7 @@ mapping has been applied to an ILA address. The format is:
|
|||||||
The identifier type field may be present to indicate the identifier
|
The identifier type field may be present to indicate the identifier
|
||||||
type. If it is not present then the type is inferred based on mapping
|
type. If it is not present then the type is inferred based on mapping
|
||||||
configuration. The checksum neutral adjustment may automatically
|
configuration. The checksum neutral adjustment may automatically
|
||||||
used with the identifier type as illustrated below.
|
used with the identifier type as illustrated below::
|
||||||
|
|
||||||
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||||
| Type| Identifier |
|
| Type| Identifier |
|
||||||
@ -213,7 +222,7 @@ used with the identifier type as illustrated below.
|
|||||||
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||||
|
|
||||||
If the identifier type and the C-bit can be present simultaneously so
|
If the identifier type and the C-bit can be present simultaneously so
|
||||||
the identifier format would be:
|
the identifier format would be::
|
||||||
|
|
||||||
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||||
| Type|C| Identifier |
|
| Type|C| Identifier |
|
||||||
@ -258,28 +267,30 @@ same meanings as described above.
|
|||||||
Some examples
|
Some examples
|
||||||
=============
|
=============
|
||||||
|
|
||||||
# Configure an ILA route that uses checksum neutral mapping as well
|
::
|
||||||
# as type field. Note that the type field is set in the SIR address
|
|
||||||
# (the 2000 implies type is 1 which is LUID).
|
|
||||||
ip route add 3333:0:0:1:2000:0:1:87/128 encap ila 2001:0:87:0 \
|
|
||||||
csum-mode neutral-map ident-type use-format
|
|
||||||
|
|
||||||
# Configure an ILA LWT route that uses auto checksum neutral mapping
|
# Configure an ILA route that uses checksum neutral mapping as well
|
||||||
# (no C-bit) and configure identifier type to be LUID so that the
|
# as type field. Note that the type field is set in the SIR address
|
||||||
# identifier type field will not be present.
|
# (the 2000 implies type is 1 which is LUID).
|
||||||
ip route add 3333:0:0:1:2000:0:2:87/128 encap ila 2001:0:87:1 \
|
ip route add 3333:0:0:1:2000:0:1:87/128 encap ila 2001:0:87:0 \
|
||||||
csum-mode neutral-map-auto ident-type luid
|
csum-mode neutral-map ident-type use-format
|
||||||
|
|
||||||
ila_xlat configuration
|
# Configure an ILA LWT route that uses auto checksum neutral mapping
|
||||||
|
# (no C-bit) and configure identifier type to be LUID so that the
|
||||||
|
# identifier type field will not be present.
|
||||||
|
ip route add 3333:0:0:1:2000:0:2:87/128 encap ila 2001:0:87:1 \
|
||||||
|
csum-mode neutral-map-auto ident-type luid
|
||||||
|
|
||||||
# Configure an ILA to SIR mapping that matches a locator and overwrites
|
ila_xlat configuration
|
||||||
# it with a SIR address (3333:0:0:1 in this example). The C-bit and
|
|
||||||
# identifier field are used.
|
|
||||||
ip ila add loc_match 2001:0:119:0 loc 3333:0:0:1 \
|
|
||||||
csum-mode neutral-map-auto ident-type use-format
|
|
||||||
|
|
||||||
# Configure an ILA to SIR mapping where checksum neutral is automatically
|
# Configure an ILA to SIR mapping that matches a locator and overwrites
|
||||||
# set without the C-bit and the identifier type is configured to be LUID
|
# it with a SIR address (3333:0:0:1 in this example). The C-bit and
|
||||||
# so that the identifier type field is not present.
|
# identifier field are used.
|
||||||
ip ila add loc_match 2001:0:119:0 loc 3333:0:0:1 \
|
ip ila add loc_match 2001:0:119:0 loc 3333:0:0:1 \
|
||||||
csum-mode neutral-map-auto ident-type use-format
|
csum-mode neutral-map-auto ident-type use-format
|
||||||
|
|
||||||
|
# Configure an ILA to SIR mapping where checksum neutral is automatically
|
||||||
|
# set without the C-bit and the identifier type is configured to be LUID
|
||||||
|
# so that the identifier type field is not present.
|
||||||
|
ip ila add loc_match 2001:0:119:0 loc 3333:0:0:1 \
|
||||||
|
csum-mode neutral-map-auto ident-type use-format
|
@ -64,6 +64,7 @@ Contents:
|
|||||||
gen_stats
|
gen_stats
|
||||||
gtp
|
gtp
|
||||||
hinic
|
hinic
|
||||||
|
ila
|
||||||
|
|
||||||
.. only:: subproject and html
|
.. only:: subproject and html
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user