Skip to content
Projets

À propos

OpenThread Border Router, un routeur frontière Thread pour les plateformes basées sur POSIX.

Systèmes et infrastructure

Comment ces chiffres sont mesurés

Progression mesurée des étoiles

in 24h
0
in 7 days
+3
in 15 days
+3
in 1 month
Historique en cours

Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.

README.md

Original

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.

Explorer des projets similaires

Chargement…