openthread/ot-br-posix
소개
OpenThread Border Router는 POSIX 기반 플랫폼을 위한 Thread 보더 라우터입니다.
시스템 및 인프라측정된 스타 증가
- in 24h
- 0
- in 7 days
- +3
- in 15 days
- +3
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalOpenThread Border Router
A Thread Border Router connects a Thread network to other IP-based networks, such as Wi-Fi or Ethernet.
A Thread Border Router supports the following functions:
- End-to-end IP connectivity via routing between Thread devices and other external IP networks.
- Bidirectional DNS-based service discovery via mDNS (on a Wi-Fi/Ethernet link) and SRP (on a Thread network).
- DHCPv6 Prefix Delegation to obtain IPv6 prefixes for a Thread network.
- NAT64 for connecting to IPv4 networks.
- External Thread Commissioning (for example, a mobile phone) to authenticate and join a Thread device to a Thread network.
OpenThread's implementation of a Border Router is called OpenThread Border Router (OTBR).
More information about Thread can be found at threadgroup.org. Thread is a registered trademark of the Thread Group, Inc.
Getting started
The quickest way to set up a Thread-compliant Border Router is to follow the Raspberry Pi Setup guide.
Note: For users in China, end-user documentation is available at openthread.google.cn.
On macOS, ./script/bootstrap installs the build dependencies with Homebrew and
INFRA_IF_NAME=en0 RADIO_URL='spinel+hdlc+uart:///dev/cu.usbserial-XXXX?uart-baudrate=460800' ./script/setup
builds the border router, installs it under /usr/local, adds its pf anchors and IP forwarding, and loads it as the launchd job io.openthread.otbr-agent, which starts at boot. The agent's options live in /usr/local/etc/default/otbr-agent. Its log is in the unified log (log show --predicate 'process == "otbr-agent"' --last 10m); /var/log/otbr-agent.log receives what it writes to stderr. The Thread interface defaults to utun100 (with its daemon socket at /var/run/openthread-utun100.sock), and sudo /usr/local/sbin/ot-ctl -I utun100 state talks to it. The web GUI (WEB_GUI=1, the default here as on Raspbian) is the launchd job io.openthread.otbr-web at http://127.0.0.1/; its options live in /usr/local/etc/default/otbr-web, and /var/log/otbr-web.log receives its output.
What differs on macOS:
- SPI radios are not supported, because OpenThread's SPI interface needs the Linux kernel's spidev driver. The radio is attached over a serial device.
- Since the D-Bus API is Linux-only, the agent is driven through its REST API and
ot-ctl. - NCP mode is only supported on Linux.
- Custom interface names like
wpan0are not supported, so the Thread interface is autun: the one-I utunNnames, or the lowest free one when-Iis omitted. - The agent, built with
OTBR_PFasscript/setupdoes, enablespfitself. It needs/etc/pf.confto referenceanchor "otbr", plusnat-anchor "otbr"when NAT64 is on.script/setupadds them. - Kernel routes for OMR prefixes (
OT_POSIX_INSTALL_OMR_ROUTES) and external routes (OT_POSIX_INSTALL_EXTERNAL_ROUTES), both off by default, go through the routing socket, which has no route metrics. A default route (::/0) is tracked without a kernel route.
Border routing, SRP, mDNS service discovery, TREL and the web GUI work as on Linux.
For otbr-agent command-line options, Radio URLs, and service configuration examples, see src/agent/README.md.
Contributing
We would love for you to contribute to OpenThread Border Router and help make it even better than it is today! See our Contributing Guidelines for more information.
Contributors are required to abide by our Code of Conduct and Coding Conventions and Style Guide.
License
OpenThread Border Router is released under the BSD 3-Clause license. See the LICENSE file for more information.
Please only use the OpenThread name and marks when accurately referencing this software distribution. Do not use the marks in a way that suggests you are endorsed by or otherwise affiliated with Nest, Google, or The Thread Group.
Need help?
OpenThread support is available on GitHub:
- Bugs and feature requests pertaining to the OpenThread Border Router — submit to the openthread/ot-br-posix Issue Tracker
- OpenThread bugs and feature requests — submit to the OpenThread Issue Tracker
- Community Discussion - ask questions, share ideas, and engage with other community members
OpenThread
To learn more about OpenThread, see the OpenThread repository.
관련 프로젝트 살펴보기
불러오는 중…