[AIX 네트워크 관리 27] TCP/IP (21) 경로 MTU 발견과 TCP/IP 서비스 품질(QoS)
https://archive.horanglab.com/posts/aix-net-tcpip-21
핵심 정리
- 경로 MTU 발견(RFC 1191)은
tcp_pmtu_discover,udp_pmtu_discover(둘 다 기본 켜짐)로 켜며, UDP 응용은IP_FINDPMTU·IP_DONTFRAG소켓 옵션을 써야 합니다. PMTU 표는pmtu display로 보고, 항목은pmtu_expire(10분)가 지나면 지워집니다. 감소는pmtu_default_age(10분), 증가는pmtu_rediscover_interval(30분)마다 확인하며, RFC 1191을 지원하지 않는 라우터가 있으면mmtu로 시도할 값을 바꿉니다. - 중복 경로(그룹 라우팅 포함)에서는 경로 MTU 발견을 쓸 수 없고, 켜면
arpqsize가 최소 5가 됩니다. - QoS는 커널 확장(cfgqos·ucfgqos), 정책 에이전트 policyd(
/etc/policyd.conf, LDAP), RSVP 에이전트 rsvpd(/etc/rsvpd.conf), RAPI 라이브러리로 이루어집니다.bos.net.tcp.server에 들어 있으며smit qos나mkqos -N,rmqos -B로 켜고 끕니다. 예제 구성 그대로는 동작하지 않습니다. - 모델: IntServ(RSVP로 흐름마다 예약, 보장·부하 제어 서비스)와 DiffServ(TOS 바이트의 DS codepoint, EF·AF·DE PHB). 정책은 ServiceCategories(속도·토큰 버킷·OutgoingTOS)와 ServicePolicyRules(주소·포트·프로토콜, ServiceReference)로 정의합니다.
- 주의: 겹치는 정책은
PolicyRulePriority가 큰 것이 적용되고, 연결된 UDP 소켓만 지원하며,MaxTokenBucket은 최대 MTU 이상이어야 합니다. QoS는 IPv4만 지원하고, policyd는startsrc -s policyd -a "-i 60"·stopsrc로 다루며 refresh는 지원하지 않습니다.
| 항목 | 내용 |
|---|---|
| 버전 | AIX 5.3, AIX 6.1 (경로 MTU 발견 설명의 버전별 문구만 다름) |
| 원문 | Networks and communication management — 5.3판 289301쪽, 6.1판 395406쪽 |
| 파일 | /usr/lib/drivers/qos, /usr/sbin/policyd, /usr/sbin/rsvpd, /usr/lib/librapi.a, /etc/policyd.conf, /etc/rsvpd.conf, /usr/samples/tcpip/qos |
| 관련 명령어 | no, pmtu, mmtu, mkqos, rmqos, qosadd, qosmod, qoslist, qosremove, qosstat, startsrc, stopsrc |
여러 네트워크를 거치는 경로로 통신하는 두 호스트에서, 보내는 패킷의 크기가 경로에 있는 네트워크의 가장 작은 MTU보다 크면 패킷이 조각납니다. 패킷 조각화는 네트워크 성능을 떨어뜨릴 수 있으므로, 네트워크 경로의 가장 작은 MTU보다 크지 않은 크기로 패킷을 보내 조각화를 피하는 것이 바람직합니다. 이 크기를 경로 MTU라고 합니다.
운영 체제는 RFC 1191에 설명된 경로 MTU 발견 알고리즘을 지원합니다. no 명령의 tcp_pmtu_discover와 udp_pmtu_discover 옵션을 바꿔 TCP와 UDP 응용 프로그램에 경로 MTU 발견을 켤 수 있습니다. TCP에 켜면 경로 MTU 발견이 TCP 응용 프로그램이 보내는 모든 패킷의 크기가 경로 MTU를 넘지 않도록 자동으로 강제합니다. UDP 응용 프로그램은 보내는 패킷의 크기를 스스로 정하므로, udp_pmtu_discover no 옵션이 켜져 있어도 IP_FINDPMTU 소켓 옵션으로 경로 MTU 정보를 쓰도록 따로 작성해야 합니다. 기본으로 tcp_pmtu_discover와 udp_pmtu_discover는 켜져 있습니다.
목적지에 경로 MTU 발견을 시도하면 PMTU(Path MTU) 표에 pmtu 항목이 만들어집니다. 이 표는 pmtu display 명령으로 볼 수 있습니다. 쓰지 않는 pmtu 항목이 만료되어 지워지게 하면 pmtu 항목이 쌓이는 것을 피할 수 있습니다. PMTU 항목 만료는 no 명령의 pmtu_expire 옵션으로 제어합니다. pmtu_expire의 기본값은 10분입니다.
경로는 동적으로 바뀔 수 있으므로 경로의 경로 MTU 값도 시간에 따라 바뀔 수 있습니다. 경로 MTU 값이 줄면 패킷이 조각나므로, 발견한 경로 MTU 값이 줄었는지 주기적으로 확인합니다. 기본으로 10분마다 감소를 확인하며, 이 값은 no 명령의 pmtu_default_age 옵션 값을 바꿔 바꿀 수 있습니다.
UDP 응용 프로그램은 PMTU 감소를 감지하려면 언제나 IP_DONTFRAG 소켓 옵션을 설정해야 합니다. 그러면 pmtu_default_age분마다 감소를 확인하는 대신 경로 MTU 감소를 바로 감지합니다.
경로 MTU 값이 늘면 네트워크 성능이 좋아질 수 있으므로, 발견한 경로 MTU 값이 늘었는지 주기적으로 확인합니다. 기본으로 30분마다 증가를 확인하며, 이 값은 no 명령의 pmtu_rediscover_interval 옵션 값을 바꿔 바꿀 수 있습니다.
네트워크 경로의 라우터가 모두 RFC 1191을 지원하지 않으면 정확한 경로 MTU 값을 알아내지 못할 수 있습니다. 이 경우 mmtu 명령으로 시도할 경로 MTU 값을 더하거나 지울 수 있습니다.
주:
- 그룹 라우팅용으로 구성한 경로를 포함해 중복 경로에서는 경로 MTU 발견을 쓸 수 없습니다(경로 사용 제한 참고).
- 경로 MTU 발견을 켜면 no 명령의 arpqsize 옵션 값이 최소 5로 설정됩니다. 나중에 경로 MTU 발견을 꺼도 이 값은 줄지 않습니다.
(5.3판은 기본값을 "AIX 4.2.1~4.3.1은 꺼짐, 4.3.2 이후는 켜짐"으로 적고, AIX 5.3 전에는 경로 MTU를 발견한 네트워크 경로마다 별도 호스트 경로를 복제했으며 이 복제 경로와 경로 MTU 값을 netstat로 볼 수 있었다고 설명했습니다.)
영어 원문
Path MTU discovery
For two hosts communicating across a path of multiple networks, a transmitted packet becomes fragmented if its size is greater than the smallest MTU of any network in the path. Because packet fragmentation can result in reduced network performance, it is desirable to avoid fragmentation by transmitting packets with a size is no greater than the smallest MTU in the network path. This size is called the path MTU.
The operating system supports a path MTU discovery algorithm as described in RFC 1191. Path MTU discovery can be enabled for TCP and UDP applications by modifying the tcp_pmtu_discover and udp_pmtu_discover options of the no command. When enabled for TCP, path MTU discovery will automatically force the size of all packets transmitted by TCP applications to not exceed the path MTU. Because UDP applications themselves determine the size of their transmitted packets, UDP applications must be specifically written to utilize path MTU information by using the IP_FINDPMTU socket option, even if the udp_pmtu_discover no option is enabled. By default, the tcp_pmtu_discover and udp_pmtu_discover are enabled.
When the Path MTU discovery is attempted for a destination, a pmtu entry gets created in a Path MTU (PMTU) table. This table can be displayed using the pmtu display command. Accumulation of pmtu entries can be avoided by allowing unused pmtu entries to expire and be deleted. PMTU entry expiration is controlled by the pmtu_expire option of the no command. pmtu_expire is set to 10 minutes by default.
Since routes can change dynamically, the path MTU value for a path might also change over time. Decreases in the path MTU value will result in packet fragmentation, so discovered path MTU values are periodically checked for decreases. By default, decreases are checked for every 10 minutes, and this value can be changed by modifying the value of the pmtu_default_age option of the no command.
UDP applications will always need to set the IP_DONTFRAG socket option to detect decreases in PMTU. This will enable immediate detection of decreases in Path MTU rather than checking for decreases every pmtu_default_age minutes.
Increases in the path MTU value can result in a potential increase in network performance, so discovered path MTU values are periodically checked for increases. By default, increases are checked for every 30 minutes, and this value can be changed by modifying the value of the pmtu_rediscover_interval option of the no command.
If not all of the routers in the network path support RFC 1191, then it might not be possible to determine an exact path MTU value. In these cases, the mmtu command can be used to add or delete path MTU values that are attempted.
Note
Path MTU discovery cannot be used on duplicate routes, including those configured for group routing (see Route use restrictions). Path MTU discovery can be used on duplicate routes
Enabling path MTU discovery sets the value of the arpqsize option of the no command to a minimum value of 5. This value is not decreased if path MTU discovery is subsequently disabled.
TCP/IP 서비스 품질(QoS)
QoS(Quality of Service)는 특정 종류의 IP 트래픽을 우대하는 방법을 제공하는, 발전 중인 인터넷 표준 묶음입니다.
경로를 따라 QoS가 제대로 지원되면, 네트워크 성능을 떨어뜨리는 가변 큐 지연과 혼잡의 영향을 줄일 수 있습니다. 운영 체제는 나가는 트래픽을 서로 다른 서비스 등급으로 분류하고, 클라이언트 응용 프로그램의 요청에 따라 자원 예약을 알리고 맺는 QoS 호스트 지원을 제공합니다.
기관은 QoS로 네트워크 대역폭 사용을 다스리는 네트워크 정책을 배치하고 강제할 수 있습니다. QoS로 호스트는 다음을 할 수 있습니다.
- 네트워크에 넣는 특정 종류 트래픽의 양을 조절합니다.
- 다음 라우터가 지정한 서비스를 제공할 수 있도록 어떤 정책에 따라 고른 패킷에 표시를 합니다.
- 경로를 따라 QoS가 제대로 지원되면 가상 전용선 서비스 같은 서비스를 지원합니다.
- 수신자의 자원 예약 요청에 참여하고, 자원 예약 요청에 쓸 수 있는 송신자 세션을 알립니다.
QoS 지원은 다음 기능을 제공합니다.
- RFC 2474에 정의된 차등 서비스(Differentiated services)
- 트래픽 감시(policing)
- in-profile과 out-of-profile 패킷 표시
- 트래픽 셰이핑
- 계량(metering)
- RFC 1633에 정의된, 클라이언트와 서버 응용 프로그램을 위한 통합 서비스(Integrated services)
- RSVP 신호(RFC 2205)
- 보장 서비스(RFC 2212)
- 부하 제어 서비스(Controlled-Load, RFC 2211)
- 정책 기반 네트워킹
- 응용 프로그램용 RAPI 공유 라이브러리
QoS 하위 시스템은 네 가지 구성 요소로 이루어집니다.
QoS 커널 확장(/usr/lib/drivers/qos)
QoS 커널 확장은 /usr/lib/drivers/qos에 있으며 cfgqos와 ucfgqos 구성 메서드로 올리고 내립니다. 이 커널 확장이 QoS 지원을 켭니다.
정책 에이전트(/usr/sbin/policyd)
정책 에이전트는 /usr/sbin/policyd에 있는 사용자 수준 데몬입니다. 정책 관리를 지원하고, QoS 커널 확장과 상호 작용해 정책 규칙을 설치, 수정, 삭제합니다. 정책 규칙은 로컬 구성 파일(/etc/policyd.conf)에 정의하거나, LDAP로 중앙 네트워크 정책 서버에서 가져오거나, 둘 다 할 수 있습니다.
RSVP 에이전트(/usr/sbin/rsvpd)
RSVP 에이전트는 /usr/sbin/rsvpd에 있는 사용자 수준 데몬입니다. RSVP 신호 프로토콜의 의미를 구현합니다.
RAPI 공유 라이브러리(/usr/lib/librapi.a)
응용 프로그램은 RSVP API(RAPI)로 통합 서비스 인터넷 QoS 모델이 정의한 향상된 서비스 품질을 요청할 수 있습니다. 이 라이브러리는 로컬 RSVP 에이전트와 상호 작용해 RSVP 프로토콜로 데이터 흐름의 경로를 따라 QoS 요청을 전파합니다. 이 API는 개방 표준입니다.
참고: 이 QoS 구현은 IETF(Internet Engineering Task Force)와 그 여러 작업 그룹이 지금 개발 중인, 발전하는 인터넷 표준과 표준 초안을 바탕으로 합니다. IETF에서 표준화가 진행되면서 이 기술은 더 일관되고 잘 정의될 것입니다. 또 QoS는 인터넷에 막 배치되기 시작한 새로운 인터넷 기술이라는 점도 중요합니다. QoS는 배치의 모든 단계에서 여러 이점이 있습니다. 그러나 진정한 끝에서 끝까지의 서비스는 특정 경로 전체에 QoS 지원이 있을 때만 이룰 수 있습니다.
영어 원문
TCP/IP Quality of Service
Quality of Service (QoS) is a family of evolving Internet standards that provides ways to give preferential treatment to certain types of IP traffic.
With the proper support for QoS along a route, this can ameliorate the effects of variable queueing delays and congestion that contribute to poor network performance. The operating system provides host support for QoS to classify outbound traffic into distinct classes of service and to announce and establish resource reservations as requested by client applications.
QoS can be used by an institution to deploy and enforce network policies governing the use of network bandwidth. With QoS, a host can:
Regulate the amount of traffic of a certain type injected into the network;
Mark selected packets according to some policy so that subsequent routers can deliver the indicated service;
Support services such as the virtual leased line service with proper QoS support along the route; and
Participate in the resource reservation requests from receivers and announce sender sessions available for resource reservation requests.
The QoS support provides the following functions:
Differentiated services as defined in RFC 2474
Traffic policing
In-profile and out-of-profile packet marking
Traffic shaping
Metering
Integrated services for client and server applications as defined in RFC 1633
RSVP signaling (RFC 2205)
Guaranteed service (RFC 2212)
Controlled-Load service (RFC 2211)
Policy-based networking
RAPI shared library for application
The QoS subsystem consists of four components:
QoS kernel extension (/usr/lib/drivers/qos)
The QoS kernel extension resides in /usr/lib/drivers/qos and is loaded and unloaded using the cfgqos and ucfgqos configuration methods. This kernel extension enables QoS support.
Policy agent (/usr/sbin/policyd)
The policy agent is a user-level daemon that resides in /usr/sbin/policyd. It provides support for policy management and interfaces with the QoS kernel extension to install, modify, and delete policy rules. Policy rules can be defined in the local configuration file (/etc/policyd.conf), retrieved from a central network policy server using LDAP, or both.
RSVP agent (/usr/sbin/rsvpd)
The RSVP agent is a user-level daemon that resides in /usr/sbin/rsvpd. It implements the RSVP signaling protocol semantics.
RAPI shared library (/usr/lib/librapi.a)
Applications can use the RSVP API (RAPI) to request enhanced quality of service as defined by the Integrated Services Internet QoS model. This library interacts with the local RSVP agent to propagate the QoS request along the path of the data flow using the RSVP protocol. This API is an open standard.
Note: This implementation of QoS is based on a set of evolving Internet standards and draft standards currently under development by the Internet Engineering Task Force (IETF) and its various working groups. This technology will become more consistent and well defined as these standardization efforts progress within the IETF. It is also important to note that QoS is an emerging Internet technology that is just beginning to be deployed within the Internet. There are many benefits of QoS at all stages of deployment. However, true end-to-end services can only be realized when QoS support exists all along a particular route.
QoS 모델
인터넷의 QoS 모델은 IETF가 정의하는 개방 표준입니다.
지금 IETF에서 표준화 중인 인터넷 QoS 모델은 통합 서비스와 차등 서비스 두 가지입니다. 이 두 모델은 RFC 1812에 설명된 전통적인 최선 노력(best-effort) 서비스 모델을 보강합니다.
통합 서비스
통합 서비스(IS, Integrated Services)는 RFC 1633에 설명된 인터넷의 동적 자원 예약 모델입니다.
호스트는 RSVP(Resource ReSerVation Protocol)라는 신호 프로토콜로 네트워크에 특정 서비스 품질을 동적으로 요청합니다. QoS 매개변수는 이 RSVP 메시지에 실려 가고, 경로를 따라 각 네트워크 노드가 요청한 서비스 품질을 얻도록 매개변수를 설치합니다. 이 QoS 매개변수는 지금 정의된 두 서비스, 곧 보장 서비스와 부하 제어 서비스 가운데 하나를 설명합니다. IS의 중요한 특징은 이 신호를 트래픽 흐름마다 하고 경로의 각 홉에 예약을 설치한다는 것입니다. 이 모델은 응용 프로그램의 동적으로 바뀌는 요구를 맞추는 데 잘 맞지만, 라우터 하나가 동시에 많은 흐름을 처리하는 네트워크에는 배치할 수 없을 만큼 큰 확장성 문제가 있습니다.
차등 서비스
차등 서비스(DS, Differentiated Services)는 흐름별·홉별 확장성 문제를 없애고 패킷을 분류하는 단순한 메커니즘으로 대신합니다.
DS는 동적 신호 방식 대신 IP TOS(type of service) 바이트의 비트로 패킷을 등급으로 나눕니다. IP TOS 바이트의 특정 비트 패턴을 DS codepoint라고 하며, 라우터는 라우팅 테이블 조회로 IP 전달을 하는 것과 거의 같은 방식으로 이것을 써서 그 홉에서 제공할 서비스 품질을 정합니다. 특정 DS codepoint를 가진 패킷에 주는 처리를 PHB(per-hop behavior)라고 하며, 각 네트워크 노드에서 독립적으로 관리합니다. 이 개별적이고 독립적인 PHB의 효과가 이어지면 끝에서 끝까지의 서비스가 됩니다.
차등 서비스는 IETF 작업 그룹이 표준화하고 있으며 세 PHB, 곧 EF(Expedited Forwarding) PHB, AF(Assured Forwarding) PHB 그룹, DE(Default) PHB를 정의했습니다. EF PHB로 가상 전용선(VLL) 같은 낮은 지연, 낮은 지터, 낮은 손실의 끝에서 끝까지 서비스를 구현할 수 있습니다. AF는 PHB 그룹이라고 하는 PHB 묶음으로, 패킷을 여러 폐기 우선순위 수준으로 분류하는 데 씁니다. 패킷에 할당한 폐기 우선순위는 AF 등급 안에서 패킷의 상대적 중요도를 정합니다. 이것으로 동·은·금 세 등급으로 된 이른바 올림픽 서비스를 구현할 수 있습니다. DE PHB는 RFC 1812에 표준화된 전통적인 최선 노력 서비스 모델입니다.
영어 원문
QoS models
The QoS models for the Internet are open standards defined by the IETF.
There are two Internet QoS models currently being standardized within the IETF: integrated services and differentiated services. These two Internet QoS models augment the traditional best-effort service model described in RFC 1812.
Integrated services
Integrated Services (IS) is a dynamic resource reservation model for the Internet described in RFC 1633.
Hosts use a signaling protocol called Resource ReSerVation Protocol (RSVP) to dynamically request a specific quality of service from the network. QoS parameters are carried in these RSVP messages and each network node along the path installs the parameters to obtain the requested quality of service. These QoS parameters describe one of two currently defined services, guaranteed service and controlled-load service. An important characteristic of IS is that this signaling is done for each traffic flow and reservations are installed at each hop along the route. Although this model is well-suited for meeting the dynamically changing needs of applications, there exist some significant scaling issues that imply it cannot be deployed in a network in which single routers handle many simultaneous flows.
Differentiated services
Differentiated Services (DS) removes the per-flow and per-hop scalability issues, replacing them with a simplified mechanism of classifying packets.
Rather than a dynamic signaling approach, DS uses bits in the IP type of service (TOS) byte to separate packets into classes. The particular bit pattern in the IP TOS byte is called the DS codepoint and is used by routers to define the quality of service delivered at that particular hop, in much the same way routers do IP forwarding using routing table lookups. The treatment given to a packet with a particular DS codepoint is called a per-hop behavior (PHB) and is administered independently at each network node. When the effects of these individual, independent PHBs are concatenated, this results in an end-to-end service.
Differentiated services is being standardized by an IETF working group, which has defined three PHBs: the Expedited Forwarding (EF) PHB, the Assured Forwarding (AF) PHB group, and the Default (DE) PHB. The EF PHB can be used to implement a low latency, low jitter, low loss, end-to-end service such as a virtual leased line (VLL). AF is a family of PHBs, called a PHB group, that is used to classify packets into various drop precedence levels. The drop precedence assigned to a packet determines the relative importance of a packet within the AF class. It can be used to implement the so-called Olympic service, which consists of three classes: bronze, silver, and gold. The DE PHB is the traditional best-effort service model as standardized in RFC 1812.
지원 표준과 표준 초안
다음 RFC와 인터넷 초안은 이 QoS 구현이 바탕으로 하는 표준을 설명합니다.
| 문서 | 제목 |
|---|---|
| RFC 2474 | Definition of the Differentiated Services Field (DS Field) in the IPv4 and IPv6 Headers |
| RFC 2475 | An Architecture for Differentiated Services |
| RFC 1633 | Integrated Services in the Internet Architecture: an Overview |
| RFC 2205 | Resource ReSerVation Protocol (RSVP) |
| RFC 2210 | The Use of RSVP with IETF Integrated Services |
| RFC 2211 | Specification of the Controlled-Load Network Element Service |
| RFC 2212 | Specification of Guaranteed Quality of Service |
| RFC 2215 | General Characterization Parameters for Integrated Service Network Elements |
| draft-ietf-diffserv-framework-01.txt(1998년 10월) | A Framework for Differentiated Services |
| draft-ietf-diffserv-rsvp-01.txt(1998년 11월) | A Framework for Use of RSVP with DIFF-serv Networks |
| draft-ietf-diffserv-phb-ef-01.txt | An Expedited Forwarding PHB |
| draft-ietf-diffserv-af-04.txt | Assured Forwarding PHB Group |
| draft-rajan-policy-qosschema-00.txt(1998년 10월) | Schema for Differentiated Services and Integrated Services in Networks |
| draft-ietf-rap-framework-01.txt(1998년 11월) | A Framework for Policy-based Admission Control |
| draft-ietf-rap-rsvp-ext-01.txt(1998년 11월) | RSVP Extensions for Policy Control |
참고: QoS는 새로운 인터넷 기술입니다. QoS는 배치의 모든 단계에서 여러 이점이 있습니다. 그러나 진정한 끝에서 끝까지의 서비스는 특정 경로 전체에 QoS 지원이 있을 때만 이룰 수 있습니다.
영어 원문
Supported standards and draft standards
These RFCs and Internet drafts describe the standards on which this QoS implementation is based.
- RFC 2474 — Definition of the Differentiated Services Field (DS Field) in the IPv4 and IPv6 Headers
- RFC 2475 — An Architecture for Differentiated Services
- RFC 1633 — Integrated Services in the Internet Architecture: an Overview
- RFC 2205 — Resource ReSerVation Protocol (RSVP)
- RFC 2210 — The Use of RSVP with IETF Integrated Services
- RFC 2211 — Specification of the Controlled-Load Network Element Service
- RFC 2212 — Specification of Guaranteed Quality of Service
- RFC 2215 — General Characterization Parameters for Integrated Service Network Elements
- draft-ietf-diffserv-framework-01.txt, October 1998 — A Framework for Differentiated Services
- draft-ietf-diffserv-rsvp-01.txt, November 1998 — A Framework for Use of RSVP with DIFF-serv Networks
- draft-ietf-diffserv-phb-ef-01.txt — An Expedited Forwarding PHB
- draft-ietf-diffserv-af-04.txt — Assured Forwarding PHB Group
- draft-rajan-policy-qosschema-00.txt, October 1998 — Schema for Differentiated Services and Integrated Services in Networks
- draft-ietf-rap-framework-01.txt, November 1998 — A Framework for Policy-based Admission Control[25]
- draft-ietf-rap-rsvp-ext-01.txt, November 1998 — RSVP Extensions for Policy Control
- Note: QoS is an emerging Internet technology. There are many benefits of QoS at all stages of
deployment. However, true end-to-end services can only be realized when QoS support exists all along a particular route.
QoS 설치
QoS는 bos.net.tcp.server에 들어 있습니다. QoS를 쓰려면 이 파일 세트가 설치되어 있어야 합니다.
RAPI 공유 라이브러리를 쓰려면 bos.adt.include도 설치해야 합니다.
영어 원문
QoS installation
QoS is packaged with bos.net.tcp.server. This fileset must be installed in order to use QoS.
To use the RAPI shared library, bos.adt.include must also be installed.
QoS 하위 시스템 멈추고 시작하기
QoS는 SMIT의 smit qos 빠른 경로나 mkqos와 rmqos 명령으로 시작하거나 멈출 수 있습니다.
- QoS 하위 시스템을 지금, 그리고 다음 시스템 재시작 때 끄려면:
/usr/sbin/rmqos -B
- QoS 하위 시스템을 지금만 켜려면:
/usr/sbin/mkqos -N
시작과 제거 명령의 플래그는 mkqos와 rmqos 명령 설명을 봅니다.
policyd와 rsvpd 데몬은 각각 /etc/policyd.conf와 /etc/rsvpd.conf 구성 파일로 구성합니다. QoS 하위 시스템을 로컬 환경에 맞추려면 이 구성 파일을 편집해야 합니다. 제공된 예제 구성으로는 QoS가 올바르게 동작하지 않습니다.
영어 원문
Stopping and starting the QoS subsystem
QoS can be started or stopped through SMIT with the smit qos fast path or with the mkqos and rmqos commands.
- To disable the QoS subsystem now and on the next system restart:
/usr/sbin/rmqos -B
- To enable the QoS subsystem now only:
/usr/sbin/mkqos -N
See the command descriptions for mkqos and rmqos for the startup and removal command flags.
The policyd and rsvpd daemons are configured through the /etc/policyd.conf and /etc/rsvpd.conf configuration files, respectively. These configuration files must be edited to customize the QoS subsystem to the local environment. QoS does not work correctly with the supplied example configurations.
RSVP 에이전트 구성
호스트가 RSVP 프로토콜을 지원하려면 RSVP 에이전트가 필요합니다.
RSVP 에이전트는 /etc/rsvpd.conf 구성 파일로 구성합니다. 구성 파일의 구문은 /etc/rsvpd.conf에 설치된 예제 구성 파일에 설명되어 있습니다.
다음 예는 호스트에 IP 주소 1.2.3.1, 1.2.3.2, 1.2.3.3,과 1.2.3.4로 주어진 (가상이나 물리) 인터페이스 4개가 있을 때 가능한 RSVP 구성입니다.
interface 1.2.3.1
interface 1.2.3.2 disabled
interface 1.2.3.3 disabled
interface 1.2.3.4
{
trafficControl
}
rsvp 1.2.3.1
{
maxFlows 64
}
rsvp 1.2.3.4
{
maxFlows 100
}
인터페이스 1.2.3.1은 RSVP에 켜져 있습니다. 그러나 트래픽 제어가 지정되지 않아 들어오는 RSVP RESV 메시지가 TCP 하위 시스템 안에 자원 예약을 일으키지 않습니다. 이 인터페이스는 동시 RSVP 세션을 최대 64개 지원할 수 있습니다.
인터페이스 1.2.3.2와 1.2.3.3은 꺼져 있습니다. RSVP 에이전트는 이 인터페이스로 RSVP 메시지를 보내거나 받을 수 없습니다.
인터페이스 1.2.3.4는 RSVP에 켜져 있습니다. 또 RSVP RESV 메시지에 응답해 TCP 하위 시스템에 자원 예약을 설치할 수 있습니다. 이 인터페이스는 RSVP 세션을 최대 100개 지원할 수 있습니다.
호스트에 있지만 /etc/rsvpd.conf에 명시하지 않은 다른 인터페이스는 모두 꺼져 있습니다.
영어 원문
RSVP agent configuration
The RSVP agent is required if the host is to support the RSVP protocol.
The /etc/rsvpd.conf configuration file is used to configure the RSVP agent. The syntax of the configuration file is described in the sample configuration file installed in /etc/rsvpd.conf.
The following example illustrates a possible RSVP configuration in which the host has 4 interfaces (virtual or physical) given by the 4 IP addresses, 1.2.3.1, 1.2.3.2, 1.2.3.3, and 1.2.3.4.
(15줄짜리 예는 위 한글 본문에 그대로 실었습니다.)
Interface 1.2.3.1 has been enabled for RSVP. However, traffic control has not been specified and incoming RSVP RESV messages do not cause resource reservation within the TCP subsystem. This interface can support a maximum of 64 simultaneous RSVP sessions.
Interfaces 1.2.3.2 and 1.2.3.3 have been disabled. The RSVP agent cannot use this interface to transmit or receive RSVP messages.
Interface 1.2.3.4 has been enabled for RSVP. In addition, it can install resource reservations into the TCP subsystem in response to an RSVP RESV message. This interface can support up to 100 RSVP sessions.
Any other interfaces present on the host but not mentioned explicitly in /etc/rsvpd.conf are disabled.
정책 에이전트 구성
정책 에이전트는 QoS 하위 시스템의 필수 구성 요소입니다.
정책 에이전트는 /etc/policyd.conf 구성 파일로 구성합니다. 이 구성 파일의 구문은 /etc/policyd.conf에 설치된 예제 구성 파일에 설명되어 있습니다.
정책 에이전트는 /etc/policyd.conf를 편집해 구성할 수 있습니다. 또 정책 구성을 돕는 다음 명령이 있습니다.
- qosadd
- qosmod
- qoslist
- qosremove
다음 예에서는 premium 서비스 범주를 만들어 tcptraffic 정책 규칙에 씁니다. 이 서비스 범주는 최대 속도 110000 Kbps, 토큰 버킷 깊이 10000비트, 나가는 IP TOS 값 2진수 11100000을 갖습니다. tcptraffic 정책 규칙은 출발지 IP 주소가 1.2.3.6, 목적지 주소가 1.2.3.3, 목적지 포트가 0~1024 범위인 모든 트래픽에 이 premium 서비스를 줍니다.
ServiceCategories premium
{
PolicyScope DataTraffic
MaxRate 110000
MaxTokenBucket 10000
OutgoingTOS 11100000
}
ServicePolicyRules tcptraffic
{
PolicyScope DataTraffic
ProtocolNumber 6 # tcp
SourceAddressRange 1.2.3.6-1.2.3.6
DestinationAddressRange 1.2.3.3-1.2.3.3
DestinationPortRange 0-1024
ServiceReference premium
}
다음 문은 default 서비스 범주를 설정하고, 그것으로 인터페이스 1.2.3.11.2.3.4에서 IP 주소 1.2.3.61.2.3.10의 포트 8000으로 흐르는 UDP 트래픽을 제한합니다.
ServiceCategories default
{
MaxRate 110000
MaxTokenBucket 10000
OutgoingTOS 00000000
}
ServicePolicyRules udptraffic
{
ProtocolNumber 17 # udp
SourceAddressRange 1.2.3.1-1.2.3.4
DestinationAddressRange 1.2.3.6-1.2.3.10
DestinationPortRange 8000-8000
ServiceReference default
}
다음 예제 구성은 구별 하위 트리 이름으로 LDAP 서버에서 규칙을 내려받아 LDAP 서버 호스트의 정책을 찾는 데 쓸 수 있습니다.
ReadFromDirectory
{
LDAP_Server 1.2.3.27
Base ou=NetworkPolicies,o=myhost.mydomain.com,c=us
}
영어 원문
Policy agent configuration
The policy agent is a required component of the QoS subsystem.
The /etc/policyd.conf configuration file is used to configure the policy agent. The syntax of this configuration file is described in the sample configuration file installed in /etc/policyd.conf.
The policy agent can be configured by editing /etc/policyd.conf. Additionally, the following commands are provided to assist in configuring policies:
qosadd
qosmod
qoslist
qosremove
In the following example, a premium service category is created and used in the tcptraffic policy rule. This service category has a maximum rate of 110000 Kbps, a token bucket depth of 10000 bits, and an outgoing IP TOS value of 11100000 in binary. The tcptraffic policy rule gives this premium service to all traffic with source IP address given by 1.2.3.6, destination address 1.2.3.3, and destination port in the range 0 to 1024.
(16줄짜리 예는 위 한글 본문에 그대로 실었습니다.)
The following statements set up a default service category and use it to restrict the UDP traffic flowing from interfaces 1.2.3.1 through 1.2.3.4 to IP addresses 1.2.3.6 through 1.2.3.10, port 8000.
(14줄짜리 예는 위 한글 본문에 그대로 실었습니다.)
The following example configuration can be used to download rules from an LDAP server using the distinguished subtree name, to lookup the policies on the LDAP server host.
ReadFromDirectory
{
LDAP_Server 1.2.3.27
Base ou=NetworkPolicies,o=myhost.mydomain.com,c=us
}
QoS 문제 해결
qosstat 명령으로 QoS 하위 시스템에 설치되어 활성인 정책의 상태 정보를 볼 수 있습니다. QoS 구성 문제를 해결할 때 문제가 어디 있는지 판단하는 데 이 정보가 쓸모 있을 수 있습니다.
qosstat으로 다음 보고서를 만들 수 있습니다.
Action:
Token bucket rate (B/sec): 10240
Token bucket depth (B): 1024
Peak rate (B/sec): 10240
Min policied unit (B): 20
Max packet size (B): 1452
Type: IS-CL
Flags: 0x00001001 (POLICE,SHAPE)
Statistics:
Compliant packets: 1423 (440538 bytes)
Conditions:
Source address Dest address Protocol
192.168.127.39:8000 192.168.256.29:35049 tcp (1 connection)
Action:
Token bucket rate (B/sec): 10240
Token bucket depth (B): 1024
Peak rate (B/sec): 10240
Outgoing TOS (compliant): 0xc0
Outgoing TOS (non-compliant): 0x00
Flags: 0x00001011 (POLICE,MARK)
Type: DS
Statistics:
Compliant packets: 335172 (20721355 bytes)
Non-compliant packets: 5629 (187719 bytes)
Conditions:
Source address Dest address Protocol
192.168.127.39:80 *:* tcp (1 connection)
192.168.127.40:80 *:* tcp (5 connections)
영어 원문
QoS troubleshooting
The qosstat command may be used to display status information about the installed and active policies in the QoS subsystem. This information may be useful to you in determining where a problem exists if you are troubleshooting your QoS configuration.
qosstat can be used to generate the following report.
(28줄짜리 예는 위 한글 본문에 그대로 실었습니다.)
QoS 정책 명세
정책 에이전트가 나가는 트래픽의 QoS 정책을 지정하는 데 쓰는 객체 클래스와 속성을 설명합니다.
객체 클래스와 속성을 정의한 뒤 표시(marking), 감시(policing), 셰이핑(shaping)을 켜는 지침을 설명합니다.
다음 설명에는 이런 표기 규칙을 씁니다.
p : choose one in the allowed parameter set
B : integer value of a byte (i.e., 0 =< B =< 255)
b : bit string starting with left most bit (e.g., 101 is
equivalent 10100000 in a byte field)
i : integer value
s : a character string
a : IP address format B.B.B.B
(R) : Required parameter
(O) : Optional parameter
ReadFromDirectory 문
이 문은 LDAP 세션을 맺는 매개변수를 지정합니다.
ReadFromDirectory 문은 /etc/policyd.conf 파일에서 LDAP 세션을 맺는 데 씁니다.
ReadFromDirectory
{
LDAP_Server a # IP address of directory server running LDAP
LDAP_Port i # Port number LDAP server is listening to
Base s # Distinguished Name for LDAP usage
LDAP_SelectedTag s # Tag to match SelectorTag in object classes
}
여기서
LDAP_Server (R): IP address of LDAP server
LDAP_Port (0): Unique port number, default port is 389
Base (R): Example is o=ibm, c=us where o is your organization and c is country
LDAP_SelectedTag (R): Unique string matching SelectorTag attribute in the object class
ServiceCategories 문
이 문은 IP 패킷 흐름(예: TCP 연결이나 UDP 데이터)이 네트워크를 지나면서 끝에서 끝까지 받아야 할 서비스 종류를 지정합니다.
ServiceCategories는 나중에 가리킬 수 있도록 이름을 달리해 여러 번 쓸 수 있습니다. ServiceCategories 객체가 정책 정의를 완성하려면 ServicePolicyRules가 필요합니다.
ServiceCategories s
{
SelectorTag s # Required tag for LDAP Search
MaxRate i # Target rate for traffic in this service class
MaxTokenBucket i # The bucket depth
OutgoingTOS b # TOS value of outbound traffic for this service class
FlowServiceType p # Type of traffic
}
여기서
s (R) : is the name of this service category
SelectorTag (R) : Required only for LDAP to Search object classes
MaxRate (O) : in Kbps (K bits per second), default is 0
MaxTokenBucket(O) : in Kb, default is system defined maximum
OutgoingTOS (O) : default is 0
FlowServiceType (O): ControlledLoad | Guaranteed, default is ControlledLoad
ServicePolicyRules 문
이 문은 해당 서비스 범주에 맞추는 데 쓰는 IP 패킷의 특성을 지정합니다.
곧 특정 서비스를 받아야 할 IP 데이터그램 묶음을 정의합니다. ServicePolicyRules는 ServiceReference 속성으로 ServiceCategories와 연결됩니다. 두 규칙이 같은 ServiceCategory를 가리키면 각 규칙은 그 ServiceCategory의 고유한 인스턴스와 연결됩니다.
ServicePolicyRules s
{
SelectorTag s # Required tag for LDAP Search
ProtocolNumber i # Transport protocol id for the policy rule
SourceAddressRange a1-a2
DestinationAddressRange a1-a2
SourcePortRange i1-i2
DestinationPortRange i1-i2
PolicyRulePriority i # Highest value is enforced first
ServiceReference s # Service category name which for this policy rule
}
여기서
s (R): is the name of this policy rule
SelectorTag (R): required only for LDAP to Search object class
ProtocolNumber (R): default is 0 which causes no match, must explicity specify
SourceAddressRange (O): from a1 to a2 where a2 >= a1, default is 0, any source address
SourcePortRange (O): from i1 to i2 where i2 >= i1, default is 0, any source port
DestinationAddressRange (O): same as SourceAddressRange
DestinationPortRange (O): same as SourcePortRange
PolicyRulePriority (O): Important to specify when ovelapping policies exist
ServiceReference (R): service category this rule uses
영어 원문
QoS policy specification
The object classes and attributes used by the policy agent to specify policies for quality of service (QoS) on outgoing traffic are described here.
The object classes and attributes are defined, followed by guidelines to enable marking, policing, and shaping.
These conventions are used in the explanations that follow.
p : choose one in the allowed parameter set
B : integer value of a byte (i.e., 0 =< B =< 255)
b : bit string starting with left most bit (e.g., 101 is
equivalent 10100000 in a byte field)
i : integer value
s : a character string
a : IP address format B.B.B.B
(R) : Required parameter
(O) : Optional parameter
ReadFromDirectory statement
This statement specifies parameters for establishing an LDAP session.
The ReadFromDirectory statement is used in the /etc/policyd.conf file to establish the LDAP session.
ReadFromDirectory
{
LDAP_Server a # IP address of directory server running LDAP
LDAP_Port i # Port number LDAP server is listening to
Base s # Distinguished Name for LDAP usage
LDAP_SelectedTag s # Tag to match SelectorTag in object classes
}
where
LDAP_Server (R): IP address of LDAP server
LDAP_Port (0): Unique port number, default port is 389
Base (R): Example is o=ibm, c=us where o is your organization and c is country
LDAP_SelectedTag (R): Unique string matching SelectorTag attribute in the object class
ServiceCategories statement
This statement specifies the type of service that a flow of IP packets (for example, from a TCP connection or UDP data) should receive end-to-end as they traverse the network.
ServiceCategories can be repeated with each having a different name so that they can be referred to later. A ServiceCategories object requires ServicePolicyRules to complete the policy definition.
ServiceCategories s
{
SelectorTag s # Required tag for LDAP Search
MaxRate i # Target rate for traffic in this service class
MaxTokenBucket i # The bucket depth
OutgoingTOS b # TOS value of outbound traffic for this service class
FlowServiceType p # Type of traffic
}
where
s (R) : is the name of this service category
SelectorTag (R) : Required only for LDAP to Search object classes
MaxRate (O) : in Kbps (K bits per second), default is 0
MaxTokenBucket(O) : in Kb, default is system defined maximum
OutgoingTOS (O) : default is 0
FlowServiceType (O): ControlledLoad | Guaranteed, default is ControlledLoad
ServicePolicyRules statement
This statement specifies characteristics of IP packets that are used to match to a corresponding service category.
In other words, it defines a set of IP datagrams that should receive a particular service. ServicePolicyRules are associated with ServiceCategories through the ServiceReference attribute. If two rules refer to the same ServiceCategory, each rule is associated with a unique instance of the ServiceCategory.
ServicePolicyRules s
{
SelectorTag s # Required tag for LDAP Search
ProtocolNumber i # Transport protocol id for the policy rule
SourceAddressRange a1-a2
DestinationAddressRange a1-a2
SourcePortRange i1-i2
DestinationPortRange i1-i2
PolicyRulePriority i # Highest value is enforced first
ServiceReference s # Service category name which for this policy rule
}
where
s (R): is the name of this policy rule
SelectorTag (R): required only for LDAP to Search object class
ProtocolNumber (R): default is 0 which causes no match, must explicity specify
SourceAddressRange (O): from a1 to a2 where a2 >= a1, default is 0, any source address
SourcePortRange (O): from i1 to i2 where i2 >= i1, default is 0, any source port
DestinationAddressRange (O): same as SourceAddressRange
DestinationPortRange (O): same as SourcePortRange
PolicyRulePriority (O): Important to specify when ovelapping policies exist
ServiceReference (R): service category this rule uses
DiffServ 환경 지침
DiffServ 환경에서 표시, 셰이핑, 감시 정책을 지정하는 지침입니다.
- 표시만
OutgoingTOS : Desired Type Of Service
FlowServiceType : ControlledLoad
MaxRate : Take default of 0
- 셰이핑만
OutgoingTOS : Take default of 0
FlowServiceType : Guaranteed
MaxRate : Target rate desired for traffic as a positive integer
- 표시와 감시(참고 봄)
OutgoingTOS : Desired Type of Service
FlowServiceType : ControlledLoad
MaxRate : Target rate desired for traffic as a positive integer
- 표시와 셰이핑
OutgoingTOS : Desired Type of Service
FlowServiceType : Guaranteed
MaxRate : Target rate desired for traffic as a positive integer
참고: 감시의 경우 out-of-profile 패킷에 설정하는 서비스 종류는 0입니다.
영어 원문
Guidelines for DiffServ environments
The following are guidelines to specify policies for marking, shaping, and/or policing in a DiffServ environment.
- Marking Only
OutgoingTOS : Desired Type Of Service
FlowServiceType : ControlledLoad
MaxRate : Take default of 0
- Shaping Only
OutgoingTOS : Take default of 0
FlowServiceType : Guaranteed
MaxRate : Target rate desired for traffic as a positive integer
- Marking and Policing (See Note)
OutgoingTOS : Desired Type of Service
FlowServiceType : ControlledLoad
MaxRate : Target rate desired for traffic as a positive integer
- Marking and Shaping
OutgoingTOS : Desired Type of Service
FlowServiceType : Guaranteed
MaxRate : Target rate desired for traffic as a positive integer
Note: The type of service set for the out of profile packets is set to zero in the case of policing.
policyd 구성 파일 예
다음은 /etc/policyd.conf 구성 파일의 완전한 예입니다.
#loglevel 511 # Verbose logging
######################################################################
#
# Mark rsh traffic on TCP source ports 513 and 514.
ServiceCategories tcp_513_514_svc
{
MaxRate 0 # Mark only
OutgoingTOS 00011100 # binary
FlowServiceType ControlledLoad
}
ServicePolicyRules tcp_513_514_flt
{
ProtocolNumber 6 # TCP
SourceAddressRange 0.0.0.0-0.0.0.0 # Any IP src addr
DestinationAddressRange 0.0.0.0-0.0.0.0 # Any IP dst addr
SourcePortRange 513-514
DestinationPortRange 0-0 # Any dst port
ServiceReference tcp_513_514_svc
}
#
######################################################################
#
# Shape connected UDP traffic on source port 9000.
ServiceCategories udp_9000_svc
{
MaxRate 8192 # kilobits
MaxTokenBucket 64 # kilobits
FlowServiceType Guaranteed
}
ServicePolicyRules udp_9000_flt
{
ProtocolNumber 17 # UDP
SourceAddressRange 0.0.0.0-0.0.0.0 # Any IP src addr
DestinationAddressRange 0.0.0.0-0.0.0.0 # Any IP dst addr
SourcePortRange 9000-9000
DestinationPortRange 0-0 # Any dst port
ServiceReference udp_9000_svc
}
#
######################################################################
#
# Mark and police finger traffic on TCP source port 79.
ServiceCategories tcp_79_svc
{
MaxRate 8 # kilobits
MaxTokenBucket 32 # kilobits
OutgoingTOS 00011100 # binary
FlowServiceType ControlledLoad
}
ServicePolicyRules tcp_79_flt
{
ProtocolNumber 6 # TCP
SourceAddressRange 0.0.0.0-0.0.0.0 # Any IP src addr
DestinationAddressRange 0.0.0.0-0.0.0.0 # Any IP dst addr
SourcePortRange 79-79
DestinationPortRange 0-0 # Any dst port
ServiceReference tcp_79_svc
}
#
######################################################################
#
# Mark and shape ftp-data traffic on TCP source port 20.
ServiceCategories tcp_20_svc
{
MaxRate 81920 # kilobits
MaxTokenBucket 128 # kilobits
OutgoingTOS 00011101 # binary
FlowServiceType Guaranteed
}
ServicePolicyRules tcp_20_flt
{
ProtocolNumber 6 # TCP
SourceAddressRange 0.0.0.0-0.0.0.0 # Any IP src addr
DestinationAddressRange 0.0.0.0-0.0.0.0 # Any IP dst addr
SourcePortRange 20-20
DestinationPortRange 0-0 # Any dst port
ServiceReference tcp_20_svc
}
#
######################################################################
#
# LDAP server entry.
#ReadFromDirectory
#{
# LDAP_Server 9.3.33.138 # IP address of LDAP server
# Base o=ibm,c=us # Base distinguished name
# LDAP_SelectedTag myhost # Typically client hostname
#}
#
######################################################################
영어 원문
Sample policyd configuration file
This is a complete example of the /etc/policyd.conf configuration file.
(90줄짜리 예는 위 한글 본문에 그대로 실었습니다.)
IBM SecureWay Directory Server 정책 적재
정책 데몬을 IBM SecureWay Directory LDAP 서버와 함께 쓴다면, LDAP 서버를 시작하기 전에 이 스키마를 지침으로 삼아 /etc/ldapschema/V3.modifiedschema를 갱신합니다.
자세한 내용은 Planning and configuring for LDAP name resolution (IBM SecureWay Directory schema)을 봅니다.
objectClasses {
( ServiceCategories-OID NAME ’ServiceCategories’ SUP top MUST
( objectClass $ SelectorTag $ serviceName ) MAY
( description $ FlowServiceType $ MaxRate $ MaxTokenBucket $ OutgoingTos ) )
( ServicePolicyRules-OID NAME ’ServicePolicyRules’ SUP top MUST
( objectClass $ PolicyName $ SelectorTag ) MAY
( description $ DestinationAddressRange $ DestinationPortRange $
ProtocolNumber $ ServiceReference $ SourceAddressRange $ SourcePortRange ) )
}
attributeTypes {
( DestinationAddressRange-OID NAME ’DestinationAddressRange’ SYNTAX
1.3.6.1.4.1.1466.115.121.1.15 SINGLE-VALUE )
( DestinationPortRange-OID NAME ’DestinationPortRange’ SYNTAX
1.3.6.1.4.1.1466.115.121.1.15 SINGLE-VALUE )
( FlowServiceType-OID NAME ’FlowServiceType’
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 SINGLE-VALUE )
( MaxRate-OID NAME ’MaxRate’ SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 SINGLE-VALUE )
( MaxTokenBucket-OID NAME ’MaxTokenBucket’ SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 SINGLE-VALUE )
( OutgoingTos-OID NAME ’OutgoingTos’ SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 SINGLE-VALUE )
( PolicyName-OID NAME ’PolicyName’ SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 SINGLE-VALUE )
( ProtocolNumber-OID NAME ’ProtocolNumber’ SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 SINGLE-VALUE )
( SelectorTag-OID NAME ’SelectorTag’ SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 SINGLE-VALUE )
( ServiceReference-OID NAME ’ServiceReference’ SYNTAX
1.3.6.1.4.1.1466.115.121.1.15 SINGLE-VALUE )
( SourceAddressRange-OID NAME ’SourceAddressRange’ SYNTAX
1.3.6.1.4.1.1466.115.121.1.15 SINGLE-VALUE )
( SourcePortRange-OID NAME ’SourcePortRange’ SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 SINGLE-VALUE )
}
IBMattributeTypes {
( DestinationAddressRange-OID DBNAME ( ’DestinationAddressRange’ ’DestinationAddressRange’ ) )
( DestinationPortRange-OID DBNAME ( ’DestinationPortRange’ ’DestinationPortRange’ ) )
( FlowServiceType-OID DBNAME ( ’FlowServiceType’ ’FlowServiceType’ ) )
( MaxRate-OID DBNAME ( ’MaxRate’ ’MaxRate’ ) )
( MaxTokenBucket-OID DBNAME ( ’MaxTokenBucket’ ’MaxTokenBucket’ ) )
( OutgoingTos-OID DBNAME ( ’OutgoingTos’ ’OutgoingTos’ ) )
( PolicyName-OID DBNAME ( ’PolicyName’ ’PolicyName’ ) )
( ProtocolNumber-OID DBNAME ( ’ProtocolNumber’ ’ProtocolNumber’ ) )
( SelectorTag-OID DBNAME ( ’SelectorTag’ ’SelectorTag’ ) )
( ServiceReference-OID DBNAME ( ’ServiceReference’ ’ServiceReference’ ) )
( SourceAddressRange-OID DBNAME ( ’SourceAddressRange’ ’SourceAddressRange’ ) )
( SourcePortRange-OID DBNAME ( ’SourcePortRange’ ’SourcePortRange’ ) )
}
ldapSyntaxes {
}
matchingRules {
}
영어 원문
IBM SecureWay Directory Server policy loads
If the policy daemon is used with the IBM SecureWay Directory LDAP Server, use this schema as a guide to update /etc/ldapschema/V3.modifiedschema before starting the LDAP server.
Refer to Planning and configuring for LDAP name resolution (IBM SecureWay Directory schema) for details.
(46줄짜리 예는 위 한글 본문에 그대로 실었습니다.)
QoS 시스템 구성
겹치는 정책은 정해지지 않은 순서로 QoS Manager에 설치됩니다. 정책이 겹치면 정책 적용 순서를 정하도록 ServicePolicyRules의 PolicyRulePriority 속성을 지정해야 합니다. PolicyRulePriority 속성은 정수를 매개변수로 받으며, 정책이 겹치면 정수 값이 가장 큰 규칙이 적용됩니다.
QoS에는 연결된(connected) UDP 소켓만 지원합니다.
정책 에이전트와 RSVP 에이전트는 서로 독립적입니다. 그래서 기존 RSVP 예약과 충돌하거나 그에 포함되는 정책을 지정하지 않도록 주의해야 합니다. 이런 충돌이 있으면 시스템은 첫 정책이나 예약을 받아들이고 나머지에는 위반 표시를 합니다.
올바르게 동작하려면 MaxTokenBucket 속성을 시스템에 구성된 모든 인터페이스의 최대 MTU 이상으로 설정해야 합니다.
정책 에이전트는 기존 정책을 자동으로 지우고 새 정책을 설치하는 방식으로 정책 수정을 처리합니다. 그래서 해당 트래픽이 기본(보통 최선 노력) 서비스를 받는 짧은 임시 시간이 생길 수 있습니다.
영어 원문
QoS system configuration
Policies that overlap are installed in the QoS Manager in a nondeterministic ordering. In the case of overlapping policies the PolicyRulePriority attribute of the ServicePolicyRules should be specified to determine the ordering of enforcement of policies. The PolicyRulePriority attribute takes an integer as a parameter and, in the case of overlapping policies, the rule with the highest integer value is enforced.
Only connected UDP sockets are supported for QoS.
The policy and RSVP agents as mutually independent. Thus, care must be taken not to specify a policy that conflicts with, or is covered by, an existing RSVP reservation. In the presence of such conflicts, the system accepts the first policy or reservation while flagging a violation for the others.
For correct operation, the MaxTokenBucket attribute must be set to at least the maximum MTU of all interfaces configured in the system.
Policy modifications are handled by the policy agent by automatically deleting the existing policies and installing the new ones. This may result in a short, temporary window of time during which the corresponding traffic receives default (typically best effort) service.
IntServ·DiffServ 모델의 IETF 표준 준수
이 릴리스는 인터넷의 차등 서비스(DiffServ)와 통합 서비스(IntServ)에 관해 발전 중인 IETF 표준과 호환됩니다.
다음 RFC는 IntServ 모델의 여러 구성 요소를 설명합니다.
- The Use of RSVP with IETF Integrated Services (RFC 2210)
- Specification of the Controlled-Load Network Element Service (RFC 2211)
- Specification of Guaranteed Quality of Service (RFC 2212)
다음 RFC는 DiffServ 모델의 여러 구성 요소를 설명합니다.
- Definition of the Differentiated Services Field (DS Field) in the IPv4 and IPv6 Headers (RFC 2474)
- An Architecture for Differentiated Services (RFC 2475)
다음 RFC는 IP TOS 옥텟의 현재 사용법을 설명합니다.
- Type of Service in the Internet Protocol Suite (RFC 1349)
다음 RFC는 IP TOS 옥텟 사용에 관한 앞으로의 관행을 설명합니다.
- Definition of the Differentiated Services Field (DS Field) in the IPv4 and IPv6 Headers (RFC 2474)
- Assured Forwarding PHB Group (RFC 2597)
- An Expedited Forwarding PHB (RFC 2598)
영어 원문
IETF standards compliance for IntServ and DiffServ models
This release is compatible with evolving Internet Engineering Task Force (IETF) standards for Differentiated (DiffServ) and Integrated Services (IntServ) on the Internet.
The following RFCs describe various components of the IntServ model:
The Use of RSVP with IETF Integrated Services (RFC 2210)
Specification of the Controlled-Load Network Element Service (RFC 2211)
Specification of Guaranteed Quality of Service (RFC 2212)
The following RFCs describe various components of the DiffServ model:
Definition of the Differentiated Services Field (DS Field) in the IPv4 and IPv6 Headers (RFC 2474)
An Architecture for Differentiated Services (RFC 2475)
The following RFC outlines the current usage of the IP TOS octet:
- Type of Service in the Internet Protocol Suite (RFC 1349)
The following RFCs outline future practices governing usage of the IP TOS octet:
Definition of the Differentiated Services Field (DS Field) in the IPv4 and IPv6 Headers (RFC 2474)
Assured Forwarding PHB Group (RFC 2597)
An Expedited Forwarding PHB (RFC 2598)
IPv6 지원
QoS는 IPv4만 지원합니다. IPv6는 지원하지 않습니다.
영어 원문
IPv6 Support
QoS only supports IPv4. IPv6 is not supported.
정책 데몬 제어
정책 데몬은 SRC(System Resource Controller)로 제어할 수 있습니다.
예를 들어 다음 명령은
startsrc -s policyd -a "-i 60"
새로 고침 간격 60초로 정책 에이전트를 시작합니다.
다음 명령은
stopsrc -s policyd
정책 데몬을 멈춥니다.
참고: 정책 데몬을 멈춰도 커널에 설치된 정책은 지워지지 않습니다. 정책 데몬을 다시 시작하면 (전에 커널에 설치된) 이전 정책을 지우고 /etc/policyd.conf 파일에 정의된 정책을 다시 설치합니다.
refresh SRC 명령은 지금 지원하지 않습니다.
영어 원문
Policy daemon control
You can control the policy daemon by using the system resource controller (SRC).
For example, the command:
startsrc -s policyd -a "-i 60"
starts the policy agent with a refresh interval of 60 seconds.
The command
stopsrc -s policyd
stops the policy daemon.
Note: Stopping the policy daemon does not remove the installed policies in the kernel. When you start the policy daemon again, the old policies (previously installed in the kernel) are deleted, and the policies defined in the /etc/policyd.conf file are reinstalled.
The refresh SRC command is not currently supported.
QoS 명령과 메서드
TCP/IP 서비스 품질 명령과 메서드 목록입니다.
이 문서의 중요한 갱신 내용은 /usr/samples/tcpip/qos의 README 파일을 봅니다.
지원하는 QoS 명령은 다음과 같습니다.
- qosadd
- qoslist
- qosmod
- qosremove
- qosstat
- mkqos
- rmqos
지원하는 QoS 메서드는 다음과 같습니다.
- cfgqos
- ucfgqos
영어 원문
QoS commands and methods
The TCP/IP quality of service commands and methods are listed here.
For important updates to this documentation, consult the README file in /usr/samples/tcpip/qos.
The following QoS commands are supported:
qosadd
qoslist
qosmod
qosremove
qosstat
mkqos
rmqos
The following QoS methods are supported:
cfgqos
ucfgqos