Part 1
요약·해설
기본 동일 처리에서 최대 8개 queue까지 확장하고 IEEE 802.1Q 규칙으로 PCP를 work queue에 연결합니다.
VLAN PCP
RX · TX
8 classes
Part 2
접을 수 있는 영어 원문 전체
영어 원문 전체 펼치기
B2B4FEE42D8A62138644DBFD5FF0EDFE1CADADC4C5A9EF7DC2AC0C98306415BB
.. _traffic-class-support:
Traffic Classification
#######################
Overview
********
`Traffic classification <https://en.wikipedia.org/wiki/Traffic_classification>`_
is an automated process that categorizes computer network traffic according to
various parameters. For Zephyr, the VLAN priority code point (PCP) is used
to classify both received and sent network packets. See more information about
VLAN priority at `IEEE 802.1Q <https://en.wikipedia.org/wiki/IEEE_802.1Q>`_.
By default, all network traffic is treated equal in Zephyr. If desired, the
option :kconfig:option:`CONFIG_NET_TC_TX_COUNT` can be used to set the number of
transmit queues. The option :kconfig:option:`CONFIG_NET_TC_RX_COUNT` can be used to set
the number of receive queues. Each traffic class queue corresponds to a
specific kernel work queue. Each kernel work queue has a priority.
The VLAN priority is mapped to a certain traffic class according to rules
specified in `IEEE 802.1Q spec`_ chapter I.3, chapter 8.6.6 table 8-4,
and chapter 34.5 table 34-1. Each traffic class is in turn mapped to a certain
kernel work queue. The maximum number of traffic classes for both Rx and Tx
is 8.
See :zephyr_file:`subsys/net/ip/net_tc.c` for details of how various mappings are done.
.. _IEEE 802.1Q spec: https://ieeexplore.ieee.org/document/6991462/
Part 3
한국어 전문 번역
개요
Traffic classification은 여러 parameter에 따라 computer network traffic을 분류하는 자동 process입니다. Zephyr는 수신·송신 network packet을 모두 분류할 때 VLAN priority code point(PCP)를 사용합니다. VLAN priority의 자세한 내용은 IEEE 802.1Q를 참고하십시오.
기본적으로 Zephyr는 모든 network traffic을 동등하게 처리합니다. 필요하면 CONFIG_NET_TC_TX_COUNT로 transmit queue 수를, CONFIG_NET_TC_RX_COUNT로 receive queue 수를 설정할 수 있습니다. 각 traffic class queue는 특정 kernel work queue에 대응하고, 각 kernel work queue는 priority를 가집니다.
VLAN priority는 IEEE 802.1Q specification chapter I.3, chapter 8.6.6 table 8-4, chapter 34.5 table 34-1의 규칙에 따라 특정 traffic class에 mapping됩니다. 다시 각 traffic class가 특정 kernel work queue에 mapping됩니다. Rx와 Tx 모두 최대 traffic class 수는 8입니다.
여러 mapping의 구체적인 구현은 subsys/net/ip/net_tc.c를 참고하십시오.
Source
출처
영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.