connectivity/networking/api/net_stats.html · connectivity/networking/api/net_stats.rst 공식 원문 ↗

Zephyr 3.7.0 · Connectivity · Networking API

Network Statistics

Interface별 기본 통계부터 Ethernet vendor 통계와 user API까지 수집 경계를 구성합니다.

Official pathconnectivity/networking/api/net_stats.html
Source fileconnectivity/networking/api/net_stats.rst
Source versionZephyr 3.7.0
TranslationFull · reviewed

본문 기준: Zephyr 3.7.0 LTS3 · 이후 유지보수 패치는 별도입니다.

Part 1

요약·해설

Kconfig로 protocol·interface·Ethernet 통계 범위를 선택하고 shell 또는 management API로 소비하는 방법을 설명합니다.

Enable

CONFIG_NET_STATISTICS

Scope

Interface · Protocol

Consume

Shell · User API

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 7AA2D0F33A3F16DC785DFF3B8FA9C03F7EBDF89D49A0F426FD784194B3B80F6D
.. _net_stats_interface:

Network Statistics
##################

.. contents::
    :local:
    :depth: 2

Overview
********

Network statistics are collected if :kconfig:option:`CONFIG_NET_STATISTICS` is set.
Individual component statistics for IPv4 or IPv6 can be turned off
if those statistics are not needed. See various options in
:zephyr_file:`subsys/net/ip/Kconfig.stats` file for details.

By default, the system collects network statistics per network interface. This
can be controlled by :kconfig:option:`CONFIG_NET_STATISTICS_PER_INTERFACE` option.

The :kconfig:option:`CONFIG_NET_STATISTICS_USER_API` option can be set if the
application wants to collect statistics for further processing. The network
management interface API is used for that. See :ref:`net_mgmt_interface` for
details.

The :kconfig:option:`CONFIG_NET_STATISTICS_ETHERNET` option can be set to collect
generic Ethernet statistics. If the
:kconfig:option:`CONFIG_NET_STATISTICS_ETHERNET_VENDOR` option is set, then
Ethernet device driver can collect Ethernet device specific statistics.
These statistics can then be transferred to application for processing.

If the :kconfig:option:`CONFIG_NET_SHELL` option is set, then network shell can
show statistics information with ``net stats`` command.

API Reference
*************

.. doxygengroup:: net_stats

Part 3

한국어 전문 번역

개요

CONFIG_NET_STATISTICS가 설정되면 network statistics를 수집합니다. IPv4 또는 IPv6의 component별 통계가 필요하지 않다면 개별적으로 끌 수 있습니다. 자세한 option은 subsys/net/ip/Kconfig.stats를 참고하십시오.

기본적으로 system은 network interface별로 통계를 수집합니다. CONFIG_NET_STATISTICS_PER_INTERFACE option으로 이 동작을 제어할 수 있습니다.

Application이 추가 처리를 위해 통계를 수집하려면 CONFIG_NET_STATISTICS_USER_API를 설정할 수 있습니다. 이 기능은 network management interface API를 사용하므로 Network Management 문서를 참고하십시오.

CONFIG_NET_STATISTICS_ETHERNET을 설정하면 generic Ethernet statistics를 수집합니다. CONFIG_NET_STATISTICS_ETHERNET_VENDOR도 설정하면 Ethernet device driver가 device별 통계를 수집할 수 있고, 이 통계를 application에 전달해 처리할 수 있습니다.

CONFIG_NET_SHELL이 설정돼 있으면 network shell의 net stats 명령으로 통계 정보를 표시할 수 있습니다.

API Reference

Doxygen group net_stats가 API reference를 제공합니다.

Source

출처

영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.