Skip to content
Proyek

Tentang

OpenThread Border Router, router perbatasan Thread untuk platform berbasis POSIX.

Sistem dan infrastruktur

Cara angka ini diukur

Pertumbuhan bintang terukur

dalam 24 jam
0
dalam 7 hari
+3
dalam 15 hari
+3
dalam 1 bulan
Mengumpulkan riwayat

Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.

README.md

Asli

Ask DeepWiki


OpenThread 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 wpan0 are not supported, so the Thread interface is a utun: the one -I utunN names, or the lowest free one when -I is omitted.
  • The agent, built with OTBR_PF as script/setup does, enables pf itself. It needs /etc/pf.conf to reference anchor "otbr", plus nat-anchor "otbr" when NAT64 is on. script/setup adds 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:

OpenThread

To learn more about OpenThread, see the OpenThread repository.

Jelajahi proyek terkait

Memuat…