← Documents Documentation/networking/mpls-sysctl.rst GitHub 원문 ↗

Linux 6.18.37 · Networking

MPLS Sysfs variables

MPLS label table 크기, TTL 전파와 interface별 입력 허용 sysctl을 정리합니다.

Source pathDocumentation/networking/mpls-sysctl.rst
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.

1. 요약·해설

원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.

요약·해설

mpls-sysctl.rst:1-57

`platform_labels`가 forwarding 가능 label 범위를 정하고, TTL 설정은 IP와 MPLS header 사이의 전파 model을 선택합니다. Interface별 `input`은 MPLS packet 수신 자체를 허용하거나 차단합니다.

2. 영어 원문 전체

번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.

원문 전체 펼치기
1 .. SPDX-License-Identifier: GPL-2.0
2
3 ====================
4 MPLS Sysfs variables
5 ====================
6
7 /proc/sys/net/mpls/* Variables:
8 ===============================
9
10 platform_labels - INTEGER
11 Number of entries in the platform label table. It is not
12 possible to configure forwarding for label values equal to or
13 greater than the number of platform labels.
14
15 A dense utilization of the entries in the platform label table
16 is possible and expected as the platform labels are locally
17 allocated.
18
19 If the number of platform label table entries is set to 0 no
20 label will be recognized by the kernel and mpls forwarding
21 will be disabled.
22
23 Reducing this value will remove all label routing entries that
24 no longer fit in the table.
25
26 Possible values: 0 - 1048575
27
28 Default: 0
29
30 ip_ttl_propagate - BOOL
31 Control whether TTL is propagated from the IPv4/IPv6 header to
32 the MPLS header on imposing labels and propagated from the
33 MPLS header to the IPv4/IPv6 header on popping the last label.
34
35 If disabled, the MPLS transport network will appear as a
36 single hop to transit traffic.
37
38 * 0 - disabled / RFC 3443 [Short] Pipe Model
39 * 1 - enabled / RFC 3443 Uniform Model (default)
40
41 default_ttl - INTEGER
42 Default TTL value to use for MPLS packets where it cannot be
43 propagated from an IP header, either because one isn't present
44 or ip_ttl_propagate has been disabled.
45
46 Possible values: 1 - 255
47
48 Default: 255
49
50 conf/<interface>/input - BOOL
51 Control whether packets can be input on this interface.
52
53 If disabled, packets will be discarded without further
54 processing.
55
56 * 0 - disabled (default)
57 * not 0 - enabled
58

3. 한국어 전문 번역

영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.

platform_labels

1-22

`/proc/sys/net/mpls/platform_labels`는 platform label table의 entry 수입니다. 이 수와 같거나 큰 label value에는 forwarding을 설정할 수 없습니다. Platform label은 local에서 할당하므로 table을 빽빽하게 사용하는 것이 가능하고 예상되는 동작입니다.

값을 0으로 설정하면 kernel이 어떤 label도 인식하지 않아 MPLS forwarding이 꺼집니다. 값을 줄이면 새 table 범위에 들어가지 않는 모든 label route entry가 제거됩니다. 허용 범위는 0~1048575이고 기본값은 0입니다.

.. SPDX-License-Identifier: GPL-2.0

====================
MPLS Sysfs variables
====================

/proc/sys/net/mpls/* Variables:
===============================

platform_labels - INTEGER
        Number of entries in the platform label table.  It is not
        possible to configure forwarding for label values equal to or
        greater than the number of platform labels.

        A dense utilization of the entries in the platform label table
        is possible and expected as the platform labels are locally
        allocated.

        If the number of platform label table entries is set to 0 no
        label will be recognized by the kernel and mpls forwarding
        will be disabled.

ip_ttl_propagate

23-40

`ip_ttl_propagate`는 label을 붙일 때 IPv4/IPv6 header의 TTL을 MPLS header로 전파하고 마지막 label을 제거할 때 MPLS TTL을 IP header로 되돌릴지 제어합니다. 끄면 MPLS transport network가 transit traffic에 하나의 hop처럼 보입니다.

0은 disabled이며 RFC 3443의 Short Pipe Model, 1은 enabled이며 RFC 3443 Uniform Model입니다. 기본값은 1입니다.

        Reducing this value will remove all label routing entries that
        no longer fit in the table.

        Possible values: 0 - 1048575

        Default: 0

ip_ttl_propagate - BOOL
        Control whether TTL is propagated from the IPv4/IPv6 header to
        the MPLS header on imposing labels and propagated from the
        MPLS header to the IPv4/IPv6 header on popping the last label.

        If disabled, the MPLS transport network will appear as a
        single hop to transit traffic.

        * 0 - disabled / RFC 3443 [Short] Pipe Model
        * 1 - enabled / RFC 3443 Uniform Model (default)

default_ttl

41-50

`default_ttl`은 IP header가 없거나 `ip_ttl_propagate`를 꺼서 IP header에서 TTL을 가져올 수 없는 MPLS packet에 사용할 기본 TTL입니다. 허용 범위는 1~255이고 기본값은 255입니다.

default_ttl - INTEGER
        Default TTL value to use for MPLS packets where it cannot be
        propagated from an IP header, either because one isn't present
        or ip_ttl_propagate has been disabled.

        Possible values: 1 - 255

        Default: 255

conf/<interface>/input - BOOL

conf/interface/input

51-57

`conf/<interface>/input`은 해당 interface가 MPLS packet을 입력으로 받을 수 있는지 정합니다. 0이면 추가 처리 없이 packet을 버리며 이것이 기본값입니다. 0이 아닌 값이면 입력을 허용합니다.

        Control whether packets can be input on this interface.

        If disabled, packets will be discarded without further
        processing.

        * 0 - disabled (default)
        * not 0 - enabled