[要約] 制約付きアプリケーションプロトコル (CoAP) のグループ通信を規定する標準化過程の文書で、UDP/IPマルチキャストをデフォルトのトランスポートとして、クライアントが複数のサーバへ一度にリクエストを送る方法を定義します。セキュリティ保護なしのNoSecモードの利用は強く非推奨とされ、安全なグループ通信にはGroup OSCOREを用います。CoAPグループ、アプリケーショングループ、セキュリティグループの区別や、プロキシ、輻輳対策、Observeの扱いも定めます。実験的なRFC 7390を廃止し、RFC 7252とRFC 7641を更新します。

Internet Engineering Task Force (IETF)                           E. Dijk
Request for Comments: 10020                            IoTconsultancy.nl
Obsoletes: 7390                                                M. Tiloca
Updates: 7252, 7641                                              RISE AB
Category: Standards Track                                  November 2026
ISSN: 2070-1721
        

Group Communication for the Constrained Application Protocol (CoAP)

制約付きアプリケーションプロトコル (CoAP) のグループ通信

Abstract

要旨

The Constrained Application Protocol (CoAP) is a web transfer protocol for constrained devices and constrained networks. In a number of use cases, constrained devices often naturally operate in groups (e.g., in a building automation scenario, all lights in a given room may need to be switched on/off as a group). This document specifies the use of CoAP for group communication, including the use of UDP/IP multicast as the default underlying data transport. Both unsecure and secure CoAP group communication are specified. Security is achieved by use of the Group Object Security for Constrained RESTful Environments (Group OSCORE) protocol. The target application area of this specification is any group communication use cases that involve resource-constrained devices or networks that support CoAP. This document obsoletes RFC 7390 and updates RFCs 7252 and 7641.

制約付きアプリケーションプロトコル (CoAP) は、制約のあるデバイスおよび制約のあるネットワーク向けのウェブ転送プロトコルです。多くのユースケースでは、制約のあるデバイスは自然にグループで動作することがよくあります(例えば、ビルオートメーションのシナリオでは、ある部屋にあるすべての照明をグループとしてオン/オフする必要がある場合があります)。本文書は、UDP/IPマルチキャストをデフォルトの下位データ転送として用いることを含め、グループ通信におけるCoAPの使用を規定します。セキュアでないCoAPグループ通信とセキュアなCoAPグループ通信の両方を規定します。セキュリティは、Group Object Security for Constrained RESTful Environments (Group OSCORE) プロトコルを使用することで実現されます。本仕様の対象とするアプリケーション領域は、リソースに制約のあるデバイス、またはCoAPをサポートするネットワークを伴うあらゆるグループ通信のユースケースです。本文書はRFC 7390を廃止し、RFC 7252およびRFC 7641を更新します。

Status of This Memo

本メモのステータス

This is an Internet Standards Track document.

これはインターネット標準化過程の文書です。

This document is a product of the Internet Engineering Task Force (IETF). It represents the consensus of the IETF community. It has received public review and has been approved for publication by the Internet Engineering Steering Group (IESG). Further information on Internet Standards is available in Section 2 of RFC 7841.

本文書は、Internet Engineering Task Force (IETF) の成果物です。IETFコミュニティのコンセンサスを表しています。本文書は公開レビューを受け、Internet Engineering Steering Group (IESG) により発行が承認されています。インターネット標準に関する詳細は、RFC 7841のセクション2にあります。

Information about the current status of this document, any errata, and how to provide feedback on it may be obtained at https://www.rfc-editor.org/info/rfc10020.

本文書の現在のステータス、正誤表、およびフィードバックの方法に関する情報は、https://www.rfc-editor.org/info/rfc10020 で入手できます。

著作権表示

Table of Contents

目次

   1.  Introduction
   1.  はじめに
     1.1.  Scope
     1.1.  適用範囲
     1.2.  Terminology
     1.2.  用語
     1.3.  Changes to Other Documents
     1.3.  他の文書への変更
   2.  Types of Groups and Their Configuration
   2.  グループの種類とその構成
     2.1.  Types of Groups
     2.1.  グループの種類
       2.1.1.  CoAP Group
       2.1.1.  CoAPグループ
       2.1.2.  Application Group
       2.1.2.  アプリケーショングループ
       2.1.3.  Security Group
       2.1.3.  セキュリティグループ
       2.1.4.  Relationships Between Group Types
       2.1.4.  グループの種類間の関係
     2.2.  Group Configuration
     2.2.  グループ構成
       2.2.1.  Group Naming
       2.2.1.  グループの命名
       2.2.2.  Group Creation and Membership
       2.2.2.  グループの作成とメンバーシップ
       2.2.3.  Group Discovery
       2.2.3.  グループの発見
       2.2.4.  Group Maintenance
       2.2.4.  グループメンテナンス
   3.  CoAP Usage in Group Communication
   3.  グループ通信におけるCoAPの使用
     3.1.  Request/Response Model
     3.1.  リクエスト/レスポンスモデル
       3.1.1.  General
       3.1.1.  概要
       3.1.2.  Response Suppression
       3.1.2.  応答抑制
       3.1.3.  Repeating a Request
       3.1.3.  リクエストの再送
       3.1.4.  Request/Response Matching and Distinguishing Responses
       3.1.4.  リクエストとレスポンスの対応付けおよびレスポンスの区別
       3.1.5.  Token Reuse
       3.1.5.  Tokenの再利用
       3.1.6.  Client Handling of Multiple Responses with the Same
               Token
       3.1.6.  同じTokenを持つ複数の応答のクライアントによる処理
     3.2.  Caching
     3.2.  キャッシュ
       3.2.1.  Freshness Model
       3.2.1.  鮮度モデル
       3.2.2.  Validation Model
       3.2.2.  検証モデル
     3.3.  URI Path Selection
     3.3.  URIパスの選択
     3.4.  Port Selection for UDP Transport
     3.4.  UDPトランスポートにおけるポートの選択
     3.5.  Proxy Operation
     3.5.  プロキシの動作
       3.5.1.  Forward-Proxies
       3.5.1.  フォワードプロキシ
       3.5.2.  Reverse-Proxies
       3.5.2.  リバースプロキシ
       3.5.3.  Single Group Request to Multiple Proxies
       3.5.3.  複数のプロキシに対する単一のグループリクエスト
     3.6.  Congestion Control
     3.6.  輻輳制御
       3.6.1.  Default Leisure Updates
       3.6.1.  デフォルトのLeisureの更新
     3.7.  Observing Resources
     3.7.  リソースの監視
     3.8.  Block-Wise Transfer
     3.8.  ブロック単位転送
     3.9.  Transport Protocols
     3.9.  トランスポートプロトコル
       3.9.1.  UDP/IPv6 Multicast Transport
       3.9.1.  UDP/IPv6マルチキャストトランスポート
       3.9.2.  UDP/IPv6 Multicast Transport over 6LoWPAN
       3.9.2.  6LoWPAN上のUDP/IPv6マルチキャストトランスポート
       3.9.3.  UDP/IPv4 Multicast Transport
       3.9.3.  UDP/IPv4マルチキャストトランスポート
       3.9.4.  TCP, TLS, and WebSockets
       3.9.4.  TCP、TLS、およびWebSockets
       3.9.5.  Other Transports
       3.9.5.  その他のトランスポート
     3.10. Interworking with Other Protocols
     3.10. 他のプロトコルとの相互運用
       3.10.1.  MLDv2 and IGMPv3
       3.10.1.  MLDv2とIGMPv3
       3.10.2.  RPL
       3.10.2.  RPL
       3.10.3.  MPL
       3.10.3.  MPL
   4.  Unsecure Group Communication (NoSec Mode)
   4.  セキュリティ保護のないグループ通信 (NoSecモード)
   5.  Secure Group Communication Using Group OSCORE
   5.  Group OSCOREを使用したセキュアなグループ通信
     5.1.  Group OSCORE
     5.1.  Group OSCORE
     5.2.  Secure Group Maintenance
     5.2.  セキュアなグループメンテナンス
     5.3.  Proxy Security
     5.3.  プロキシのセキュリティ
   6.  Security Considerations
   6.  セキュリティに関する考慮事項
     6.1.  CoAP NoSec Mode
     6.1.  CoAP NoSecモード
     6.2.  Group OSCORE
     6.2.  Group OSCORE
       6.2.1.  Group Key Management
       6.2.1.  グループ鍵管理
       6.2.2.  Source Authentication
       6.2.2.  送信元認証
       6.2.3.  Countering Attacks
       6.2.3.  攻撃への対抗
     6.3.  Risk of Amplification
     6.3.  増幅のリスク
       6.3.1.  Mitigation with the CoAP Echo Option
       6.3.1.  CoAP Echoオプションによる緩和
     6.4.  Replay of Group Requests
     6.4.  グループリクエストのリプレイ
     6.5.  Use of the CoAP No-Response Option
     6.5.  CoAP No-Response Optionの使用
     6.6.  6LoWPAN and MPL
     6.6.  6LoWPANとMPL
     6.7.  Wi-Fi
     6.7.  Wi-Fi
     6.8.  Monitoring
     6.8.  モニタリング
       6.8.1.  General Monitoring
       6.8.1.  一般的なモニタリング
       6.8.2.  Pervasive Monitoring
       6.8.2.  広範なモニタリング
   7.  IANA Considerations
   7.  IANAに関する考慮事項
   8.  References
   8.  参考文献
     8.1.  Normative References
     8.1.  引用文献
     8.2.  Informative References
     8.2.  参考情報
   Appendix A.  Use Cases
   Appendix A.  ユースケース
     A.1.  Discovery
     A.1.  ディスカバリ
       A.1.1.  Distributed Device Discovery
       A.1.1.  分散デバイスディスカバリ
       A.1.2.  Distributed Service Discovery
       A.1.2.  分散サービスディスカバリ
       A.1.3.  Directory Discovery
       A.1.3.  ディレクトリディスカバリ
     A.2.  Operational Phase
     A.2.  運用フェーズ
       A.2.1.  Actuator Group Control
       A.2.1.  アクチュエータグループ制御
       A.2.2.  Device Group Status Request
       A.2.2.  デバイスグループのステータスリクエスト
       A.2.3.  Network-Wide Query
       A.2.3.  ネットワーク全体へのクエリ
       A.2.4.  Network-Wide/Group Notification
       A.2.4.  ネットワーク全体/グループへの通知
     A.3.  Software Update
     A.3.  ソフトウェア更新
   Appendix B.  Examples of Group Naming for Application Groups
   Appendix B.  アプリケーショングループのグループ命名の例
     B.1.  Group Naming Using the URI Path Component
     B.1.  URIパスコンポーネントを用いたグループ命名
     B.2.  Group Naming Using the URI Query Component
     B.2.  URIクエリコンポーネントを用いたグループ命名
     B.3.  Group Naming Using the URI Authority Component
     B.3.  URIオーソリティコンポーネントを用いたグループ命名
   Appendix C.  Examples of Group Discovery from CoAP Servers
   Appendix C.  CoAPサーバからのグループディスカバリの例
     C.1.  Application Groups Associated with a CoAP Group
     C.1.  CoAPグループに関連付けられたアプリケーショングループ
     C.2.  Members of a Given Application Group
     C.2.  指定されたアプリケーショングループのメンバ
     C.3.  Members of Any Application Group of a Given Type
     C.3.  指定されたタイプの任意のアプリケーショングループのメンバ
     C.4.  Members of Any Application Group in the Network
     C.4.  ネットワーク内の任意のアプリケーショングループのメンバ
   Appendix D.  Examples of Message Exchanges
   Appendix D.  メッセージ交換の例
   Appendix E.  Issues and Limitations with Forward-Proxies
   Appendix E.  フォワードプロキシの問題と制限事項
   Appendix F.  Issues and Limitations with Reverse-Proxies
   Appendix F.  リバースプロキシの問題と制限事項
   Acknowledgements
   謝辞
   Authors' Addresses
   著者の連絡先

1. Introduction

1. はじめに

The Constrained Application Protocol (CoAP) [RFC7252] is a web transfer protocol based on Representational State Transfer (REST) that is used in resource-constrained devices and in resource-constrained networks where packet sizes should be small. This area of use is summarized as Constrained RESTful Environments (CoRE). CoAP has many similarities to HTTP [RFC9110][RFC9112] but also some key differences.

制約付きアプリケーションプロトコル (CoAP) [RFC7252] は、Representational State Transfer (REST) に基づくウェブ転送プロトコルであり、リソースに制約のあるデバイスや、パケットサイズを小さくすべきリソースに制約のあるネットワークで使用されます。この利用領域は Constrained RESTful Environments (CoRE) として要約されます。CoAPにはHTTP [RFC9110][RFC9112] と多くの類似点がありますが、重要な相違点もいくつかあります。

In a number of use cases, constrained devices can be large in number as well as often related to each other in function or by location. For example, in a building automation scenario, all the light switches in a building may belong to one group, and all the thermostats may belong to another group. Groups may be preconfigured before deployment or dynamically formed during operation. If information needs to be sent to or received from a group of devices, group communication mechanisms can improve efficiency and latency of communication and reduce bandwidth requirements for a given application. While CoAP supports group communication via multicast requests (see Section 8 of [RFC7252]), HTTP does not support any equivalent functionality.

多くのユースケースでは、制約のあるデバイスは数が多いだけでなく、機能や設置場所によって互いに関連していることもよくあります。例えば、ビルオートメーションのシナリオでは、ビル内のすべての照明スイッチが1つのグループに属し、すべてのサーモスタットが別のグループに属することがあります。グループは、展開前にあらかじめ構成される場合もあれば、運用中に動的に形成される場合もあります。グループのデバイスへ情報を送信する必要がある場合、またはグループのデバイスから情報を受信する必要がある場合、グループ通信の仕組みにより、通信の効率とレイテンシを改善し、あるアプリケーションに必要な帯域幅を削減できます。CoAPはマルチキャストリクエストによるグループ通信をサポートしています ([RFC7252] のセクション8を参照) が、HTTPには同等の機能はありません。

This document specifies the use of CoAP for group communication, together with UDP/IP multicast as the default transport for CoAP group communication messages.

本文書は、グループ通信におけるCoAPの使用を、CoAPグループ通信メッセージのデフォルトの転送としてのUDP/IPマルチキャストとともに規定します。

One-to-many group communication can be achieved in CoAP, by a client using UDP/IP multicast data transport to send multicast CoAP request messages to all servers in a group. Within a given group, multiple clients can send multicast CoAP request messages. In response, each server in the addressed group sends a response message back to the client over UDP/IP unicast.

CoAPでは、クライアントがUDP/IPマルチキャストデータ転送を使用してグループ内のすべてのサーバにマルチキャストCoAPリクエストメッセージを送信することで、1対多のグループ通信を実現できます。1つのグループ内で、複数のクライアントがマルチキャストCoAPリクエストメッセージを送信できます。これに対し、宛先グループ内の各サーバは、UDP/IPユニキャストでクライアントへレスポンスメッセージを返送します。

Both unsecure and secure CoAP group communication are covered in this document.

本文書では、セキュアでないCoAPグループ通信とセキュアなCoAPグループ通信の両方を扱います。

Unsecure group communication relies on the No Security (NoSec) mode, whose use is strongly discouraged and is limited to specific cases (see Section 4).

セキュアでないグループ通信は No Security (NoSec) モードに依存します。その使用は強く非推奨であり、特定の場合に限られます(セクション4を参照)。

Secure group communication is achieved by using Group Object Security for Constrained RESTful Environments (Group OSCORE) [RFC10021], which in turn builds on OSCORE [RFC8613]. This method provides end-to-end application-layer security protection of CoAP messages, by using CBOR Object Signing and Encryption (COSE) [RFC9052] [RFC9053].

セキュアなグループ通信は、Group Object Security for Constrained RESTful Environments (Group OSCORE) [RFC10021] を使用することで実現されます。Group OSCOREは、さらにOSCORE [RFC8613] を基盤としています。この方式は、CBOR Object Signing and Encryption (COSE) [RFC9052] [RFC9053] を使用することで、CoAPメッセージにエンドツーエンドのアプリケーション層セキュリティ保護を提供します。

This document is a Standards Track specification that replaces and obsoletes the Experimental specification [RFC7390] while it updates both [RFC7252] and [RFC7641]. A summary of the changes and additions to these documents is provided in Section 1.3.

本文書は標準化過程の仕様であり、実験的な仕様 [RFC7390] を置き換えて廃止するとともに、[RFC7252] と [RFC7641] の両方を更新します。これらの文書に対する変更と追加の概要は、セクション1.3に示します。

All sections in the body of this document are normative, while appendices are informative. For additional background about use cases for CoAP group communication in resource-constrained devices and networks, see Appendix A.

本文書の本体のすべてのセクションは規範的であり、付録は参考情報です。リソースに制約のあるデバイスおよびネットワークにおけるCoAPグループ通信のユースケースに関する追加の背景については、付録Aを参照してください。

1.1. Scope

1.1. 適用範囲

For group communication, only those solutions that use CoAP messages over a "one-to-many" (i.e., non-unicast) transport protocol are in the scope of this document. By using such a transport protocol, any client in a group can send a multicast CoAP request message to all servers in the group. That is, "one-to-many" refers to the delivery of a given message from one sender to multiple recipients, and the sender, the recipients, or both can change on a per-message basis. Such solutions are desirable for applications that need a request message to be delivered with low latency and/or in a synchronous way to multiple recipient servers at once.

グループ通信については、「1対多」(すなわち非ユニキャスト)の転送プロトコル上でCoAPメッセージを使用するソリューションのみが、本文書の適用範囲に含まれます。このような転送プロトコルを使用することで、グループ内のどのクライアントも、グループ内のすべてのサーバにマルチキャストCoAPリクエストメッセージを送信できます。つまり、「1対多」とは、あるメッセージを1つの送信者から複数の受信者へ配送することを指し、送信者、受信者、またはその両方がメッセージごとに変わりうるということです。このようなソリューションは、リクエストメッセージを低レイテンシで、かつ/または同期的に、複数の受信側サーバへ一度に配送する必要があるアプリケーションにとって望ましいものです。

For applications that do not have those requirements, there are alternative methods to achieve group communication using CoAP, using unicast only. One example is Publish-Subscribe [CoAP-PUB-SUB], which uses a central broker server that CoAP clients access via unicast communication. These alternative methods may be usable for the same or similar use cases as the ones targeted in this document.

これらの要件を持たないアプリケーションに対しては、ユニキャストのみを使用して、CoAPによるグループ通信を実現する代替の方法があります。一例は Publish-Subscribe [CoAP-PUB-SUB] で、CoAPクライアントがユニキャスト通信でアクセスする中央のブローカサーバを使用します。これらの代替方法は、本文書が対象とするものと同じ、または類似のユースケースで使用できる場合があります。

This document defines UDP/IP multicast as the default transport protocol for CoAP group requests, as in [RFC7252]. Only the Any-Source Multicast (ASM) mode of IP multicast operation is in scope, as defined in [RFC1112] and referred to by that name in [RFC8085]. This means that there is no restriction on the source node that sends (originates) CoAP group messages to an IP multicast group (corresponding to a "CoAP Group" in this document; see Section 2.1.1). For example, the source node may or may not be part of the IP multicast group. Also, there is no restriction on the number of source nodes.

本文書は、[RFC7252] と同様に、CoAPグループリクエストのデフォルトの転送プロトコルとしてUDP/IPマルチキャストを定義します。IPマルチキャスト運用のうち、Any-Source Multicast (ASM) モードのみが適用範囲に含まれます。これは [RFC1112] で定義され、[RFC8085] でその名称で言及されています。これは、IPマルチキャストグループ(本文書の「CoAPグループ」に相当します。セクション2.1.1を参照)へCoAPグループメッセージを送信(発信)する送信元ノードに制限がないことを意味します。例えば、送信元ノードはIPマルチキャストグループの一員であってもなくてもかまいません。また、送信元ノードの数にも制限はありません。

Other transport protocols (which may include broadcast, non-IP multicast, geocast, etc.) are not described in detail and are not considered. Although UDP/IP multicast transport is assumed in most of the text in this document, it is expected that many of the considerations for UDP/IP multicast can be reused for alternative transport protocols.

その他の転送プロトコル(ブロードキャスト、非IPマルチキャスト、ジオキャストなどを含みうる)は、詳細には記述されず、考慮もされません。本文書のほとんどの記述ではUDP/IPマルチキャスト転送を想定していますが、UDP/IPマルチキャストに関する考慮事項の多くは、代替の転送プロトコルにも再利用できると期待されます。

Furthermore, this document defines the use of Group OSCORE [RFC10021] as the default group communication security solution for CoAP. Security solutions for group communication and configuration other than Group OSCORE are not considered. General principles for secure group configuration are in scope.

さらに、本文書は、CoAPのデフォルトのグループ通信セキュリティソリューションとしてGroup OSCORE [RFC10021] の使用を定義します。Group OSCORE以外のグループ通信および構成のセキュリティソリューションは考慮しません。セキュアなグループ構成の一般原則は適用範囲に含まれます。

Finally, this document defines the foundation of how proxies operate in a group communication scenario (see Section 3.5) and compiles related issues and limitations to account for (see Appendices E and F). While further details that are relevant to operate such proxies are not defined here, other specifications can build on the common denominator provided by this document and define specific realizations of proxies that operate in a group communication scenario. For example, a possible realization of proxy for CoAP group communication is specified in [CoAP-GROUP-PROXY].

最後に、本文書は、グループ通信シナリオにおけるプロキシの動作の基礎を定義し(セクション3.5を参照)、考慮すべき関連する問題と制限をまとめます(付録EおよびFを参照)。そのようなプロキシを運用するために関連するさらなる詳細は本文書では定義しませんが、他の仕様が、本文書が提供する共通項を基にして、グループ通信シナリオで動作するプロキシの具体的な実現方法を定義することができます。例えば、CoAPグループ通信のプロキシの可能な実現方法は [CoAP-GROUP-PROXY] で規定されています。

1.2. Terminology

1.2. 用語

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.

本文書におけるキーワード "MUST"、"MUST NOT"、"REQUIRED"、"SHALL"、"SHALL NOT"、"SHOULD"、"SHOULD NOT"、"RECOMMENDED"、"NOT RECOMMENDED"、"MAY"、"OPTIONAL" は、ここに示すようにすべて大文字で現れる場合に限り、BCP 14 [RFC2119] [RFC8174] に記載されているとおりに解釈されます。

This specification requires readers to be familiar with CoAP terminology [RFC7252]. Terminology related to group communication is defined in Section 2.1.

本仕様は、読者がCoAPの用語 [RFC7252] に精通していることを求めます。グループ通信に関連する用語はセクション2.1で定義します。

In addition, the following terms are extensively used.

加えて、次の用語が広く使用されます。

* Group URI: This is defined as a CoAP URI that has the "coap" scheme and includes in the authority component either an IP multicast address or a group hostname (e.g., a Group Fully Qualified Domain Name (FQDN)) that can be resolved to an IP multicast address. A group URI also can contain a UDP port number in the authority component. Group URIs follow the regular CoAP URI syntax (see Section 6 of [RFC7252]).

* グループURI: これは、"coap" スキームを持ち、authority コンポーネントにIPマルチキャストアドレス、またはIPマルチキャストアドレスに解決できるグループホスト名(例: グループ Fully Qualified Domain Name (FQDN))のいずれかを含むCoAP URIとして定義されます。グループURIは、authority コンポーネントにUDPポート番号を含むこともできます。グループURIは通常のCoAP URI構文に従います ([RFC7252] のセクション6を参照)。

* Security material: This refers to any security keys, counters, or parameters stored in a device that are required to participate in secure group communication with other devices.

* セキュリティマテリアル: これは、他のデバイスとのセキュアなグループ通信に参加するために必要な、デバイスに保存されているあらゆるセキュリティ鍵、カウンタ、またはパラメータを指します。

1.3. Changes to Other Documents

1.3. 他の文書への変更

This document obsoletes and replaces [RFC7390] as follows.

本文書は、次のとおり [RFC7390] を廃止して置き換えます。

* It provides separate definitions for CoAP groups, application groups, and security groups, together with high-level guidelines on their configuration (see Section 2).

* CoAPグループ、アプリケーショングループ、セキュリティグループについて個別の定義を提供し、それらの構成に関する高レベルのガイドラインを示します(セクション2を参照)。

* It updates all the guidelines about using group communication for CoAP (see Section 3).

* CoAPのグループ通信の使用に関するすべてのガイドラインを更新します(セクション3を参照)。

* It updates all sections on transport protocols and interworking with other protocols based on new IETF work done for these protocols (see Sections 3.9 and 3.10).

* これらのプロトコルについて行われた新たなIETFの作業に基づき、転送プロトコルおよび他のプロトコルとの相互運用に関するすべてのセクションを更新します(セクション3.9および3.10を参照)。

* It strongly discourages unsecure group communication for CoAP based on the CoAP NoSec mode (see Sections 4 and 6.1) and highlights the risk of amplification attacks together with mitigations against those (see Section 6.3).

* CoAP NoSecモードに基づくCoAPのセキュアでないグループ通信を強く非推奨とし(セクション4および6.1を参照)、増幅攻撃のリスクとその緩和策を強調します(セクション6.3を参照)。

This is a major advancement from [RFC7390], which defined CoAP group communication based on IP multicast to operate in CoAP NoSec mode, until a future group security solution was developed.

これは [RFC7390] からの大きな前進です。[RFC7390] は、将来のグループセキュリティソリューションが開発されるまでの間、CoAP NoSecモードで動作するIPマルチキャストに基づくCoAPグループ通信を定義していました。

* It defines the use of Group OSCORE [RFC10021] as the security protocol to protect group communication for CoAP, together with high-level guidelines on secure group maintenance (see Section 5).

* CoAPのグループ通信を保護するセキュリティプロトコルとしてのGroup OSCORE [RFC10021] の使用を定義し、あわせて安全なグループ維持に関する高水準のガイドラインを示します(5章を参照)。

This is a major advancement from [RFC7390], which at that time could not rely on a group security solution to protect group communication for CoAP.

これは [RFC7390] からの大きな前進です。[RFC7390] は、当時はCoAPのグループ通信を保護するためにグループセキュリティソリューションに依拠することができませんでした。

This document updates [RFC7252] as follows.

本文書は [RFC7252] を次のように更新します。

* With reference to Section 8.2 of [RFC7252], it updates the request/response layer for group communication in terms of response suppression (see Section 3.1.2 of the present document).

* [RFC7252] の8.2節に関連して、グループ通信におけるリクエスト/レスポンス層を応答抑制の観点から更新します(本文書の3.1.2節を参照)。

* With reference to Section 5.3.1 of [RFC7252], it updates the token requirements on request/response matching in terms of Token reuse time (see Section 3.1.5 of the present document).

* [RFC7252] の5.3.1節に関連して、リクエスト/レスポンスの対応付けに関するトークン(Token) の要件を、トークン(Token) の再利用時間の観点から更新します(本文書の3.1.5節を参照)。

* With reference to Section 8.2.1 of [RFC7252], it updates the freshness model and validation model, which are used for cached responses (see Sections 3.2.1 and 3.2.2 of the present document).

* [RFC7252] の8.2.1節に関連して、キャッシュされたレスポンスに用いられる鮮度モデルと検証モデルを更新します(本文書の3.2.1節および3.2.2節を参照)。

* With reference to the measures against congestion risk specified in Sections 5.2.3, 8.1, 8.2, and 11.3 of [RFC7252], it defines such measures to be applicable also to alternative transports (other than IP multicast) and defines additional requirements to reduce congestion risks (see Section 3.6 of the present document). It also defines new values for the transmission parameter DEFAULT_LEISURE that account for secure communication with Group OSCORE (see Section 3.6.1 of the present document).

* [RFC7252] の5.2.3節、8.1節、8.2節、および11.3節に規定されている輻輳リスクへの対策に関連して、そのような対策が(IPマルチキャスト以外の)代替トランスポートにも適用されるものと定義し、輻輳リスクを低減するための追加要件を定義します(本文書の3.6節を参照)。また、Group OSCOREによる安全な通信を考慮した、送信パラメータ DEFAULT_LEISURE の新しい値も定義します(本文書の3.6.1節を参照)。

* It explicitly allows the use of the IPv6 multicast address scopes realm-local (3), admin-local (4), and global (E). In particular, with reference to Section 12.8 of [RFC7252], it recommends that an IPv6 CoAP server supports at least the link-local (2), admin-local (4), and site-local (5) scopes with the "All CoAP Nodes" IPv6 multicast addresses (see Section 3.9.1 of the present document). Also, it recommends that the realm-local (3) scope is supported by an IPv6 CoAP server on a 6LoWPAN node (see Section 3.9.1 of the present document).

* IPv6マルチキャストアドレスのスコープとして、レルムローカル (3)、管理ローカル (4)、グローバル (E) の使用を明示的に許可します。特に、[RFC7252] の12.8節に関連して、IPv6 CoAPサーバは「All CoAP Nodes」IPv6マルチキャストアドレスについて、少なくともリンクローカル (2)、管理ローカル (4)、サイトローカル (5) のスコープをサポートすることを推奨します(本文書の3.9.1節を参照)。また、6LoWPANノード上のIPv6 CoAPサーバが、レルムローカル (3) スコープをサポートすることも推奨します(本文書の3.9.1節を参照)。

This document updates [RFC7641] as follows.

本文書は [RFC7641] を次のように更新します。

* With reference to Sections 3 and 4 of [RFC7641], it defines the use of the CoAP Observe Option in group requests, for both the GET method and the FETCH method [RFC8132], together with normative behavior for both CoAP clients and CoAP servers (see Section 3.7 of the present document).

* [RFC7641] の3節および4節に関連して、グループリクエストにおけるCoAP Observeオプションの使用を、GETメソッドとFETCHメソッド [RFC8132] の両方について定義し、CoAPクライアントとCoAPサーバの両方に対する規範的な動作もあわせて定義します(本文書の3.7節を参照)。

2. Types of Groups and Their Configuration

2. グループの種類とその構成

In the following sections, different group types are first defined in Section 2.1. Then, group configuration, including group creation and maintenance by an application, user, or commissioning entity, is considered in Section 2.2.

以降の各節では、まず2.1節でさまざまなグループの種類を定義します。次に、アプリケーション、ユーザ、またはコミッショニングエンティティによるグループの作成と維持を含むグループ構成を、2.2節で検討します。

2.1. Types of Groups

2.1. グループの種類

Three types of groups and their mutual relationships are defined in this section: CoAP group, application group, and security group.

本節では、3種類のグループとそれらの相互関係を定義します。CoAPグループ、アプリケーショングループ、セキュリティグループです。

2.1.1. CoAP Group

2.1.1. CoAPグループ

A CoAP group is defined as a set of CoAP endpoints, where each endpoint is configured to receive CoAP group messages that are sent to the group's associated IP multicast address and UDP port. That is, CoAP groups have relevance at the level of IP networks and CoAP endpoints.

CoAPグループは、CoAPエンドポイントの集合として定義されます。各エンドポイントは、そのグループに関連付けられたIPマルチキャストアドレスとUDPポートに送信されるCoAPグループメッセージを受信するように構成されています。つまり、CoAPグループはIPネットワークおよびCoAPエンドポイントのレベルで意味を持ちます。

This is aligned with the notion of CoAP endpoint as identified by an IP address and a UDP port number, both for unsecure group communication using the NoSec mode and secure group communication using Group OSCORE. In either case, the default port number is 5683.

これは、IPアドレスとUDPポート番号によって識別されるCoAPエンドポイントの概念と整合しており、NoSecモードを用いる安全でないグループ通信と、Group OSCOREを用いる安全なグループ通信の両方に当てはまります。いずれの場合も、デフォルトのポート番号は5683です。

An endpoint may be a member of multiple CoAP groups, e.g., by subscribing to multiple IP multicast addresses. A node may be a member of multiple CoAP groups, by hosting multiple CoAP server endpoints on different combinations of IP address and UDP port. Membership(s) of an endpoint or node to a CoAP group may dynamically change over time. A node or endpoint sending a CoAP group message to a CoAP group is not necessarily itself a member of that CoAP group: It is a member only if it also has a CoAP endpoint listening on the associated IP multicast address and UDP port associated with the CoAP group.

エンドポイントは、たとえば複数のIPマルチキャストアドレスに加入することで、複数のCoAPグループのメンバーになってもよいです。ノードは、IPアドレスとUDPポートの異なる組み合わせで複数のCoAPサーバエンドポイントをホストすることで、複数のCoAPグループのメンバーになってもよいです。エンドポイントまたはノードのCoAPグループへの所属は、時間とともに動的に変化することがあります。CoAPグループにCoAPグループメッセージを送信するノードまたはエンドポイントは、必ずしもそのCoAPグループ自体のメンバーであるとは限りません。メンバーとなるのは、そのCoAPグループに関連付けられたIPマルチキャストアドレスとUDPポートで待ち受けるCoAPエンドポイントも持つ場合に限られます。

A CoAP group is identified by information encoded within a group URI, which can contain a UDP port number in the authority component (see Section 1.2). If no UDP port number is present, then the port number used to identify the CoAP group is the default port number 5683.

CoAPグループは、グループURI内にエンコードされた情報によって識別されます。グループURIは、オーソリティコンポーネントにUDPポート番号を含めることができます(1.2節を参照)。UDPポート番号が存在しない場合、CoAPグループの識別に用いられるポート番号はデフォルトのポート番号5683です。

Consequently, a configuring entity can choose to rely only on IP multicast addresses (or corresponding hostnames) in order to practically identify different CoAP groups, without specifying port numbers. As a result, those CoAP groups will be identified by a pair (IP address, port number), where different CoAP groups use a different IP multicast address and all use the same default port number 5683.

したがって、構成エンティティは、ポート番号を指定せずに、IPマルチキャストアドレス(または対応するホスト名)のみに依拠して、実用上異なるCoAPグループを識別することを選択できます。その結果、それらのCoAPグループは(IPアドレス、ポート番号)の組で識別されることになり、異なるCoAPグループはそれぞれ異なるIPマルチキャストアドレスを使用し、すべて同じデフォルトのポート番号5683を使用します。

Further details on identifying a CoAP group are provided in Section 2.2.1.1.

CoAPグループの識別に関する詳細は、2.2.1.1節で説明します。

2.1.2. Application Group

2.1.2. アプリケーショングループ

An application group is a set of CoAP server endpoints (hosted on different nodes) that share a common set of CoAP resources. That is, an application group has relevance at the application level. For example, an application group could denote all lights in an office room or all sensors in a hallway.

アプリケーショングループは、共通のCoAPリソースの集合を共有する、(異なるノード上でホストされる)CoAPサーバエンドポイントの集合です。つまり、アプリケーショングループはアプリケーションレベルで意味を持ちます。たとえば、アプリケーショングループは、オフィスの部屋にあるすべての照明や、廊下にあるすべてのセンサーを表すことができます。

An endpoint may be a member of multiple application groups. A client endpoint that sends a group communication message to an application group is not necessarily itself a member of this application group.

エンドポイントは、複数のアプリケーショングループのメンバーになってもよいです。アプリケーショングループにグループ通信メッセージを送信するクライアントエンドポイントは、必ずしもそのアプリケーショングループ自体のメンバーであるとは限りません。

Between CoAP groups and application groups, there can be a many-to-many, one-to-many, many-to-one, or one-to-one relationship. Such relationships are discussed in more detail in Section 2.1.4.

CoAPグループとアプリケーショングループの間には、多対多、1対多、多対1、または1対1の関係があり得ます。このような関係については、2.1.4節でさらに詳しく説明します。

An application group name may be explicitly encoded in the group URI of a CoAP request, for example, in the URI path component. If this is not the case, the application group is implicitly derived by the receiver, e.g., based on information in the CoAP request or other contextual information. Further details on identifying an application group are provided in Section 2.2.1.2.

アプリケーショングループ名は、たとえばURIパスコンポーネントなど、CoAPリクエストのグループURI内に明示的にエンコードされることがあります。そうでない場合、アプリケーショングループは、たとえばCoAPリクエスト内の情報やその他のコンテキスト情報に基づいて、受信者によって暗黙的に導出されます。アプリケーショングループの識別に関する詳細は、2.2.1.2節で説明します。

2.1.3. Security Group

2.1.3. セキュリティグループ

For secure group communication, a security group is required. A security group comprises endpoints storing shared group security material, such that they can use it to protect and verify mutually exchanged messages.

安全なグループ通信には、セキュリティグループが必要です。セキュリティグループは、共有されるグループのセキュリティマテリアルを保存するエンドポイントで構成され、それらのエンドポイントは、そのセキュリティマテリアルを用いて、相互に交換するメッセージを保護および検証できます。

That is, a client endpoint needs to be a member of a security group in order to send a valid secure group communication message to that group. A server endpoint needs to be a member of a security group in order to receive and correctly verify a secure group communication message sent to that group. An endpoint may be a member of multiple security groups.

つまり、クライアントエンドポイントは、有効な安全なグループ通信メッセージをあるグループに送信するために、そのセキュリティグループのメンバーである必要があります。サーバエンドポイントは、あるグループに送信された安全なグループ通信メッセージを受信して正しく検証するために、そのセキュリティグループのメンバーである必要があります。エンドポイントは、複数のセキュリティグループのメンバーになってもよいです。

Between CoAP groups and security groups, there can be a many-to-many, one-to-many, many-to-one, or one-to-one relationship. Also, between application groups and security groups, there can be a many-to-many, one-to-many, many-to-one, or one-to-one relationship. Configuring entities can establish relationships between groups of different types as appropriate for the specific deployment and with no restriction by design. Endpoints that are members of security groups are expected to support all such relationships, which are discussed in more detail in Section 2.1.4.

CoAPグループとセキュリティグループの間には、多対多、1対多、多対1、または1対1の関係があり得ます。また、アプリケーショングループとセキュリティグループの間にも、多対多、1対多、多対1、または1対1の関係があり得ます。構成エンティティは、個々のデプロイメントに適した形で、設計上の制約なしに、異なる種類のグループ間の関係を確立できます。セキュリティグループのメンバーであるエンドポイントは、そのようなすべての関係をサポートすることが期待されます。これらの関係については、2.1.4節でさらに詳しく説明します。

Further details on identifying a security group are provided in Section 2.2.1.3.

セキュリティグループの識別に関する詳細は、2.2.1.3節で説明します。

It is strongly discouraged to have unsecure group communication through the NoSec mode (see Section 4), whose possible exceptional use ought to be limited to specific circumstances (see Sections 4 and 6.1). When the NoSec mode is nevertheless used, the communicating endpoints do not refer to a security group.

NoSecモードによる安全でないグループ通信は強く非推奨とされており、例外的な使用は特定の状況に限るべきです(4章および6.1節を参照)。それでもNoSecモードを使用する場合、通信するエンドポイントはセキュリティグループを参照しません。

When a security group uses the security protocol Group OSCORE [RFC10021] to protect group communication (see Section 5 of this document), source authentication is achieved for messages exchanged within the group (see Sections 5.1 and 6.2.2 of this document). That is, even though the endpoints in the security group do share group security material, a recipient CoAP endpoint is able to verify that a message protected with Group OSCORE has actually been originated and sent by a specific and identified CoAP endpoint as a member of the security group.

セキュリティグループがグループ通信の保護にセキュリティプロトコルGroup OSCORE [RFC10021] を使用する場合(本文書の5章を参照)、グループ内で交換されるメッセージについて送信元認証が実現されます(本文書の5.1節および6.2.2節を参照)。つまり、セキュリティグループ内のエンドポイントはグループのセキュリティマテリアルを共有しているにもかかわらず、受信側のCoAPエンドポイントは、Group OSCOREで保護されたメッセージが、セキュリティグループのメンバーである特定の識別されたCoAPエンドポイントによって実際に生成され送信されたことを検証できます。

2.1.4. Relationships Between Group Types

2.1.4. グループの種類間の関係

Using the above group type definitions, a CoAP group communication message sent by an endpoint can be associated with a tuple that contains one instance of each group type: application group, CoAP group, and security group.

上記のグループの種類の定義を用いると、エンドポイントが送信するCoAPグループ通信メッセージは、アプリケーショングループ、CoAPグループ、セキュリティグループの各種類のインスタンスを1つずつ含むタプルに関連付けることができます。

The following paragraphs describe the possible relationships between security groups and application groups.

以下の段落では、セキュリティグループとアプリケーショングループの間に考えられる関係について説明します。

On one hand, multiple application groups may use the same security group. Thus, the same group security material is used to protect the messages targeting any of those application groups. This has the benefit that typically less storage, configuration, and updating are required for security material. In this case, a CoAP endpoint is supposed to know the exact application group to refer to for each message that is sent or received, based on, e.g., the server port number used, the targeted resource, or the content and structure of the message payload.

一方で、複数のアプリケーショングループが同じセキュリティグループを使用してもよいです。この場合、それらのアプリケーショングループのいずれかを対象とするメッセージの保護に、同じグループのセキュリティマテリアルが使用されます。これには、一般にセキュリティマテリアルの保存、構成、更新が少なくて済むという利点があります。この場合、CoAPエンドポイントは、たとえば使用されるサーバのポート番号、対象のリソース、メッセージペイロードの内容や構造などに基づいて、送受信する各メッセージについて参照すべき正確なアプリケーショングループを把握しているものとされます。

On the other hand, a single application group may use multiple security groups. Thus, different messages targeting the resources of the application group can be protected with different security material. This can be convenient, for example, if the security groups differ with respect to the cryptographic algorithms and related parameters they use. In this case, a CoAP client can join a subset of these security groups, e.g., selected according to a local policy or determined by a local configuration. This subset needs to be consistent with the security algorithms that the client supports. A CoAP server in the application group has to join all of the security groups in order to successfully process group requests from any CoAP clients that have been configured to use the application group. This particular case can be useful if different CoAP clients have different, incompatible requirements for the security algorithms that can be supported.

他方で、単一のアプリケーショングループが複数のセキュリティグループを使用してもよいです。この場合、そのアプリケーショングループのリソースを対象とする異なるメッセージを、異なるセキュリティマテリアルで保護できます。これは、たとえば、セキュリティグループが使用する暗号アルゴリズムや関連パラメータが異なる場合に便利です。この場合、CoAPクライアントは、たとえばローカルポリシーに従って選択されるか、ローカル構成によって決定される、それらのセキュリティグループの一部に参加できます。この部分集合は、クライアントがサポートするセキュリティアルゴリズムと整合している必要があります。アプリケーショングループ内のCoAPサーバは、そのアプリケーショングループを使用するように構成されたあらゆるCoAPクライアントからのグループリクエストを正常に処理するために、すべてのセキュリティグループに参加しなければなりません。この特殊なケースは、CoAPクライアントごとに、サポート可能なセキュリティアルゴリズムに対する互換性のない異なる要件がある場合に有用です。

Beyond this particular case, applications should be careful in associating a single application group to multiple security groups. In particular, different security groups are not meant to reflect different access policies, e.g., for enforcing access control to resources that are hosted at servers in the same application group. Therefore, it is NOT RECOMMENDED to simply take into account memberships to security groups as a way to enforce access control within an application group, which instead should rely on separate means.

この特殊なケースを除き、アプリケーションは、単一のアプリケーショングループを複数のセキュリティグループに関連付ける際には注意すべきです。特に、異なるセキュリティグループは、たとえば同じアプリケーショングループ内のサーバでホストされるリソースへのアクセス制御を実施するためなど、異なるアクセスポリシーを反映することを意図していません。したがって、アプリケーショングループ内でのアクセス制御を実施する手段として、単にセキュリティグループへの所属を考慮することは推奨されません (NOT RECOMMENDED)。アクセス制御は、代わりに別個の手段に依拠すべきです。

Being a member of a security group grants access only to exchange secured messages and enables authentication of group members, while access control (authorization) to use resources in the application group belongs to a separate security domain. Therefore, access control to use resources in the application group should be separately enforced by leveraging the resource properties or through dedicated access control credentials assessed by separate means.

セキュリティグループのメンバーであることは、保護されたメッセージを交換するためのアクセスを許可し、グループメンバーの認証を可能にするだけです。アプリケーショングループ内のリソースを使用するためのアクセス制御(認可)は、別のセキュリティドメインに属します。したがって、アプリケーショングループ内のリソースを使用するためのアクセス制御は、リソースの特性を活用するか、別の手段で評価される専用のアクセス制御クレデンシャルを通じて、個別に実施すべきです。

Figure 1 summarizes the relationships between the different types of groups described above in Unified Modeling Language (UML) class diagram notation [UML]. When creating groups (see Section 2.2.2), a configuring entity follows and maintains the view depicted in Figure 1. The class attributes in square brackets are optionally defined.

図1は、上述した各種のグループ間の関係を、統一モデリング言語 (UML) のクラス図表記 [UML] で要約したものです。グループを作成する際(2.2.2節を参照)、構成エンティティは図1に示された見方に従い、それを維持します。角括弧内のクラス属性は、任意で定義されます。

   +------------------------------+              +--------------------+
   |   Application group          |              |    CoAP group      |
   |..............................|              |....................|
   |                              |        1...N |                    |
   | [ - Application group name ] +--------------+ - IP mcast address |
   |                              | 1...N        | - UDP port number  |
   | - Resource URI path(s)       |              |                    |
   |                              |              |                    |
   +-------------+----------------+              +---------+----------+
                 |  1...N                                  |  1...N
                 |                                         |
                 |                                         |
                 |                                         |  1...N
                 |                            +------------+----------+
                 |                            |   Security group      |
                 |                            |.......................|
                 |                            |                       |
                 '----------------------------+ - Security group name |
                                       1...N  | - Security material   |
                                              |                       |
                                              +-----------------------+
        

Figure 1: Relationships Among Different Group Types

図1: 各種グループ間の関係

Figure 2 provides a deployment example of the relationships between the different types of groups. It shows six CoAP servers (Srv1-Srv6) and their respective resources hosted (/resX). Although in real-life deployments using group communication the number of servers and resources would usually be higher, only limited numbers are shown here for ease of representation.

図2は、各種グループ間の関係の展開例を示します。この図には、6台のCoAPサーバ (Srv1-Srv6) と、それぞれがホストするリソース (/resX) が示されています。グループ通信を用いる実際の展開では、サーバとリソースの数は通常これより多くなりますが、ここでは表現を容易にするため、限られた数のみを示しています。

There are three application groups (1, 2, 3) and two security groups (1, 2). Security Group 1 may, for example, include all lighting devices on a floor of an office building, while Security Group 2 includes all Heating, Ventilation, and Air Conditioning (HVAC) devices of that floor. Security Group 1 is used by Application Groups 1 and 2. Application Group 1, for example, may consist of all lights in a hallway, while Application Group 2 includes all lights in a storage room. Three clients (Cli1, Cli2, Cli3) are configured with security material for Security Group 1. These clients may be motion sensors and a control panel (Cli3) that send multicast messages to /resA to inform the lights of any motion or user activity detected. The control panel Cli3 additionally sends a multicast message to /resB to communicate the latest light preset selected by a user. The latter action only influences the lighting in the storage room (Application Group 2). Two clients (Cli2, Cli4) are configured with security material for Security Group 2. These clients may be temperature/humidity sensors that report measurements periodically to all HVAC devices (Srv5, Srv6) in Application Group 3, using, for example, /resC to report temperature and /resD to report humidity.

3つのアプリケーショングループ (1, 2, 3) と2つのセキュリティグループ (1, 2) があります。セキュリティグループ1には、たとえばオフィスビルの1フロアにあるすべての照明デバイスが含まれ、セキュリティグループ2には、そのフロアのすべての暖房・換気・空調 (HVAC) デバイスが含まれます。セキュリティグループ1は、アプリケーショングループ1と2で使用されます。アプリケーショングループ1は、たとえば廊下にあるすべての照明で構成され、アプリケーショングループ2は、倉庫にあるすべての照明を含みます。3つのクライアント (Cli1, Cli2, Cli3) には、セキュリティグループ1のセキュリティマテリアルが設定されています。これらのクライアントは、人感センサーと操作パネル (Cli3) であり、検知した動きやユーザーの操作を照明に知らせるために、/resA にマルチキャストメッセージを送信します。操作パネル Cli3 はさらに、ユーザーが選択した最新の照明プリセットを伝えるために、/resB にマルチキャストメッセージを送信します。後者の動作は、倉庫の照明(アプリケーショングループ2)にのみ影響します。2つのクライアント (Cli2, Cli4) には、セキュリティグループ2のセキュリティマテリアルが設定されています。これらのクライアントは温度・湿度センサーであり、たとえば温度の報告に /resC を、湿度の報告に /resD を使用して、アプリケーショングループ3のすべてのHVACデバイス (Srv5, Srv6) に測定値を定期的に報告します。

All the application groups shown may use the same CoAP group (not illustrated in Figure 2), such as the CoAP group with the site-local IP multicast address ff05::db8:0:3456 and with the default UDP port number 5683 on which all the shown resources are hosted for each server. Other floors of the same building may replicate the shown structure but using different security groups and different CoAP groups.

示されているすべてのアプリケーショングループは、同じCoAPグループ(図2には図示されていません)を使用してもよく、たとえば、サイトローカルのIPマルチキャストアドレス ff05::db8:0:3456 とデフォルトのUDPポート番号5683を持つCoAPグループがあり、各サーバ上で示されているすべてのリソースがホストされます。同じ建物の他のフロアでは、示された構造を複製しつつ、異なるセキュリティグループと異なるCoAPグループを使用することもあります。

    .------------------------------.   .-----------------------------.
   |                                | |                               |
   |       +---------------------+  | |  +---------------------+      |
   |       | Application Group 1 |  | |  | Application Group 3 | Cli2 |
   |       |                     |  | |  |                     |      |
   | Cli1  | Srv1   Srv2   Srv3  |  | |  | Srv5   Srv6         | Cli4 |
   |       | /resA  /resA  /resA |  | |  | /resC  /resC        |      |
   | Cli2  +---------------------+  | |  | /resD  /resD        |      |
   |                                | |  +---------------------+      |
   | Cli3     Security Group 1      | |                               |
   |                                | |        Security Group 2       |
   |       +---------------------+  |  '-----------------------------'
   |       | Application Group 2 |  |
   |       |                     |  |
   |       | Srv1   Srv4         |  |
   |       | /resB  /resB        |  |
   |       +---------------------+  |
    '------------------------------'
        

Figure 2: Deployment Example of Different Group Types

図2: 各種グループ間の展開例

2.2. Group Configuration

2.2. グループ構成

The following sections define how groups of different types are named, created, discovered, and maintained.

以下の各節では、各種のグループがどのように命名、作成、発見、維持されるかを定義します。

2.2.1. Group Naming

2.2.1. グループの命名

Different types of groups are named as specified below, separately for CoAP groups, application groups, and security groups.

各種のグループは、CoAPグループ、アプリケーショングループ、セキュリティグループごとに個別に、以下のとおり命名されます。

2.2.1.1. CoAP Groups

2.2.1.1. CoAPグループ

A CoAP group is always defined by two properties: an IP multicast address and a UDP port number (see Section 2.1.1).

CoAPグループは常に、IPマルチキャストアドレスとUDPポート番号という2つの属性で定義されます(2.1.1節を参照)。

However, a CoAP group is, for practical purposes, identified and named by the authority component in the group URI. This component includes the host subcomponent and an optional UDP port number. The host subcomponent directly defines the IP multicast address of the CoAP group, in the case that the host consists of an IP literal. The host subcomponent indirectly defines the IP multicast address of the CoAP group, in the case that the host consists of a hostname. Resolving the hostname to an IP address in this case produces the IP multicast address. If the hostname resolves to multiple multicast addresses, then the authority component of the group URI identifies (names) multiple CoAP groups: one for each resolved address.

ただし、CoAPグループは実用上、グループURIのオーソリティコンポーネントによって識別され、命名されます。このコンポーネントには、ホストサブコンポーネントと、任意のUDPポート番号が含まれます。ホストがIPリテラルで構成される場合、ホストサブコンポーネントはCoAPグループのIPマルチキャストアドレスを直接定義します。ホストがホスト名で構成される場合、ホストサブコンポーネントはCoAPグループのIPマルチキャストアドレスを間接的に定義します。この場合、ホスト名をIPアドレスに解決すると、IPマルチキャストアドレスが得られます。ホスト名が複数のマルチキャストアドレスに解決される場合、グループURIのオーソリティコンポーネントは、解決された各アドレスに1つずつ、複数のCoAPグループを識別(命名)します。

It follows that one name can be used for multiple CoAP groups. Conversely, a single CoAP group might also have multiple names, which can be simultaneously and interchangeably used within a network. For example, if the two hostnames group1.example and group1.alias.example both resolve to the IP multicast address [ff05::db8:0:1], then the following authority components are all names for the same CoAP group.

したがって、1つの名前を複数のCoAPグループに使用できます。逆に、1つのCoAPグループが複数の名前を持つこともあり、それらはネットワーク内で同時に、かつ互換的に使用できます。たとえば、2つのホスト名 group1.example と group1.alias.example がどちらもIPマルチキャストアドレス [ff05::db8:0:1] に解決される場合、以下のオーソリティコンポーネントはすべて同じCoAPグループの名前です。

* group1.example:7700

* group1.example:7700

* group1.alias.example:7700

* group1.alias.example:7700

* [ff05::db8:0:1]:7700

* [ff05::db8:0:1]:7700

Also note that, when using the "coap" scheme, the two authority components <HOST> and <HOST>:5683 both identify the same CoAP group whose members listen to the CoAP default port number 5683. Therefore, building on the above, the following authority components are all names for the same CoAP group.

また、"coap" スキームを使用する場合、2つのオーソリティコンポーネント <HOST> と <HOST>:5683 は、どちらもCoAPのデフォルトポート番号5683で待ち受けるメンバーを持つ同じCoAPグループを識別することにも注意してください。したがって、上記を踏まえると、以下のオーソリティコンポーネントはすべて同じCoAPグループの名前です。

* group1.example

* group1.example

* group1.alias.example

* group1.alias.example

* [ff05::db8:0:1]

* [ff05::db8:0:1]

* group1.example:5683

* group1.example:5683

* group1.alias.example:5683

* group1.alias.example:5683

* [ff05::db8:0:1]:5683

* [ff05::db8:0:1]:5683

When configuring a CoAP group membership, it is recommended to configure an endpoint with an IP multicast address literal instead of a group hostname to avoid network load due to name resolution queries. In fact, an infrastructure providing a name resolution service, such as DNS, may not be deployed in some constrained networks. In such cases, using an IP multicast address literal is the only viable option for the configuring entity that creates a CoAP group.

CoAPグループのメンバーシップを設定する際は、名前解決クエリによるネットワーク負荷を避けるため、グループホスト名ではなくIPマルチキャストアドレスリテラルでエンドポイントを設定することが推奨されます。実際、DNSなどの名前解決サービスを提供するインフラストラクチャは、一部の制約のあるネットワークには展開されていない場合があります。そのような場合、CoAPグループを作成する構成エンティティにとって、IPマルチキャストアドレスリテラルを使用することが唯一の実行可能な選択肢です。

If a group hostname is configured, it can be uniquely mapped to an IP multicast address via a name resolution service. For example, this can rely on the DNS resolution process if DNS client functionality is available in the endpoint being configured and the DNS service is supported in the network.

グループホスト名を設定した場合、そのホスト名は名前解決サービスを介してIPマルチキャストアドレスに一意にマッピングできます。たとえば、設定対象のエンドポイントでDNSクライアント機能が利用可能で、ネットワークでDNSサービスがサポートされていれば、DNSの解決プロセスを利用できます。

Some examples of hierarchical CoAP group FQDN naming (and scoping) for a building control application are shown below. For all these example CoAP groups, the associated port number is the default CoAP port number 5683.

ビル制御アプリケーションにおける、階層的なCoAPグループのFQDN命名(およびスコープ設定)の例を以下に示します。これらすべての例のCoAPグループについて、関連するポート番号はCoAPのデフォルトポート番号5683です。

     +=====================================+========================+
     | URI Authority                       | Targeted Group of      |
     |                                     | Nodes                  |
     +=====================================+========================+
     | all.bldg6.example                   | "all nodes in building |
     |                                     | 6"                     |
     +-------------------------------------+------------------------+
     | all.west.bldg6.example              | "all nodes in west     |
     |                                     | wing, building 6"      |
     +-------------------------------------+------------------------+
     | all.floor1.west.bldg6.example       | "all nodes in floor 1, |
     |                                     | west wing, building 6" |
     +-------------------------------------+------------------------+
     | all.bu036.floor1.west.bldg6.example | "all nodes in office   |
     |                                     | bu036, floor 1, west   |
     |                                     | wing, building 6"      |
     +-------------------------------------+------------------------+
        

Table 1: Examples of Hierarchical Group FQDN Naming

表1: 階層的なグループFQDN命名の例

Similarly, if supported, reverse mapping (from IP multicast address to Group FQDN) is also possible. For example, when using an IPv6 multicast address, the reverse mapping can rely on DNS and the IP6.ARPA domain (see Section 2.5 of [RFC3596]). Reverse mapping is important, for example, in troubleshooting to translate IP multicast addresses back to human-readable hostnames to show in a diagnostics user interface.

同様に、サポートされていれば、逆引きマッピング(IPマルチキャストアドレスからグループFQDNへ)も可能です。たとえば、IPv6マルチキャストアドレスを使用する場合、逆引きマッピングはDNSとIP6.ARPAドメインに基づいて行えます([RFC3596] の2.5節を参照)。逆引きマッピングは、たとえばトラブルシューティングにおいて、IPマルチキャストアドレスを人間が読めるホスト名に戻して診断用ユーザーインタフェースに表示するために重要です。

2.2.1.2. Application Groups

2.2.1.2. アプリケーショングループ

An application group can be named through different types of identifiers, such as a name string, (integer) number, URI, or other types of strings. The decision of whether and how an application group name is encoded and transported in a CoAP group request is application specific.

アプリケーショングループは、名前文字列、(整数の)番号、URI、その他の種類の文字列など、さまざまな種類の識別子で命名できます。アプリケーショングループ名をCoAPグループリクエストの中でエンコードして伝送するかどうか、およびその方法は、アプリケーションに依存します。

This section summarizes possible methods for encoding an application group name in a CoAP group request. Full examples for these methods are provided in Appendix B.

この節では、CoAPグループリクエストにアプリケーショングループ名をエンコードするための可能な方法を要約します。これらの方法の完全な例は、付録Bに示されています。

An application group name can be explicitly encoded in a group URI. Specifically, it can be encoded within one of the following URI components:

アプリケーショングループ名は、グループURI内に明示的にエンコードできます。具体的には、次のいずれかのURIコンポーネント内にエンコードできます。

* URI path component: This is the most common and RECOMMENDED method to encode the application group name. When using this method in constrained networks, an application group name APPNAME should be kept short.

* URIパスコンポーネント: これはアプリケーショングループ名をエンコードする最も一般的な方法であり、推奨されます (RECOMMENDED)。制約のあるネットワークでこの方法を使用する場合、アプリケーショングループ名 APPNAME は短く保つべきです。

A best practice is to use a URI path component such that it includes a path segment as the delimiter with a designated value, e.g., "gp", followed by a path segment containing the name of the application group, followed by the path segment(s) that identifies the targeted resource within the application group. For example, both /gp/APPNAME/res1 and /base/gp/APPNAME/res1/res2 conform to this practice. The path segment used as the delimiter ("gp" in the examples) should be kept short in constrained networks.

ベストプラクティスは、"gp" などの指定された値を持つ区切りとしてのパスセグメントを含み、その後にアプリケーショングループ名を含むパスセグメントが続き、さらにその後にアプリケーショングループ内の対象リソースを識別するパスセグメントが続くように、URIパスコンポーネントを使用することです。たとえば、/gp/APPNAME/res1 と /base/gp/APPNAME/res1/res2 はどちらもこの慣行に沿っています。区切りとして使用するパスセグメント(例では "gp")は、制約のあるネットワークでは短く保つべきです。

Full examples are provided in Appendix B.1.

完全な例は付録B.1に示されています。

* URI query component: This method can use the following formats. In either case, when using this method in constrained networks, an application group name APPNAME should be as short as possible.

* URIクエリコンポーネント: この方法では、次の形式を使用できます。いずれの場合も、制約のあるネットワークでこの方法を使用する際は、アプリケーショングループ名 APPNAME をできるだけ短くすべきです。

- As a first alternative, the URI query component consists of only one parameter, which has no value and has the name of the application group as its own identifier. The query component ?APPNAME conforms to this format.

- 第1の選択肢として、URIクエリコンポーネントが、値を持たず、アプリケーショングループ名自体を識別子とする名前を持つ、1つだけのパラメータで構成されます。クエリコンポーネント ?APPNAME はこの形式に沿っています。

- As a second alternative, the URI query component includes a query parameter as the designated indicator, e.g., "gp", with a value equal to the name of the application group. That is, assuming that "gp" is used as the designated indicator, both the query components ?gp=APPNAME and ?par1=v1&gp=APPNAME conform to this format.

- 第2の選択肢として、URIクエリコンポーネントが、指定された指示子(例: "gp")をクエリパラメータとして含み、その値がアプリケーショングループ名に等しくなります。つまり、"gp" を指定された指示子として使用すると仮定した場合、クエリコンポーネント ?gp=APPNAME と ?par1=v1&gp=APPNAME はどちらもこの形式に沿っています。

Full examples are provided in Appendix B.2.

完全な例は付録B.2に示します。

* URI authority component: If this method is used, the application group is identified by the authority component of the group URI or a subset thereof.

* URI authorityコンポーネント:この方法を使用する場合、アプリケーショングループは、グループURIのauthorityコンポーネントまたはその一部によって識別されます。

Note that the host subcomponent within the authority component of the group URI can be a group hostname or an IP address literal. For constrained networks, using an IP address literal matching the request's destination IP address has the benefit of reducing the size of the CoAP message. This is because the Uri-Host Option is elided from the CoAP request in this case, since its default value applies (see Sections 5.10.1 and 6.4 of [RFC7252]).

グループURIのauthorityコンポーネント内のhostサブコンポーネントは、グループホスト名にも、IPアドレスリテラルにもなり得る点に注意してください。制約のあるネットワークでは、リクエストの宛先IPアドレスと一致するIPアドレスリテラルを使用すると、CoAPメッセージのサイズを削減できるという利点があります。この場合はデフォルト値が適用されるため、CoAPリクエストからUri-Host Optionが省略されるからです([RFC7252]の5.10.1節および6.4節を参照)。

The CoAP group is also defined by the same authority component (see Section 2.2.1.1). If the authority component of the group URI is an IP address literal, then the identified application group is associated with exactly one CoAP group. But if the authority component of the group URI is a hostname, then the identified application group can be associated with one or more CoAP groups as per the result of the name resolution process (see Section 2.2.1.1). See Section 2.1.4 for further background on group relationships.

CoAPグループも同じauthorityコンポーネントによって定義されます(2.2.1.1節を参照)。グループURIのauthorityコンポーネントがIPアドレスリテラルである場合、識別されるアプリケーショングループはちょうど1つのCoAPグループに関連付けられます。しかし、グループURIのauthorityコンポーネントがホスト名である場合、識別されるアプリケーショングループは、名前解決プロセスの結果に応じて1つ以上のCoAPグループに関連付けられ得ます(2.2.1.1節を参照)。グループ間の関係に関する背景については、2.1.4節を参照してください。

Full examples are provided in Appendix B.3.

完全な例は付録B.3に示します。

Due to the CoAP client's encoding of the request URI into CoAP options (per Section 6.4 of [RFC7252]) and the possibility of the CoAP server composing the URI again based on the options received (see Section 6.5 of [RFC7252]), the application group name information can be transported to the server and used to select the intended application group.

CoAPクライアントがリクエストURIをCoAPオプションにエンコードすること([RFC7252]の6.4節による)と、CoAPサーバが受信したオプションに基づいてURIを再構成できること([RFC7252]の6.5節を参照)により、アプリケーショングループ名の情報をサーバに伝達し、意図したアプリケーショングループの選択に使用できます。

Any other method to transport the application group name within a CoAP request, but not using the group URI, would require a new CoAP option to be defined. Such an approach is out of the scope of this document.

グループURIを使用せずにCoAPリクエスト内でアプリケーショングループ名を伝達するその他の方法は、新しいCoAPオプションの定義を必要とします。そのような方法は本文書の範囲外です。

Finally, it is also possible to omit the application group name from the CoAP request, yielding the most compact representation on the wire. In this case, each CoAP server needs to determine the right application group based on contextual information, such as the CoAP group, the client identity, and/or the target resource. For example, each application group on a server could support a unique set of resources, such that it does not overlap with the set of resources of any other application group. Appendix A of [RFC9176] provides an example of a named application group registered to a Resource Directory (RD), along with the CoAP group it uses and the resources it supports. In that example, an application group name "lights" is encoded in the "ep" (endpoint) attribute of the RD registration entry, while the multicast address identifying the CoAP group is specified in the authority component of the URI encoded in the "base" attribute. In subsequent group requests by a client to the "lights" group, the name of the group is not present in the request message. Rather, the URI authority component that selects the CoAP group will implicitly also select the "lights" application group.

最後に、CoAPリクエストからアプリケーショングループ名を省略することも可能であり、その場合はワイヤ上で最もコンパクトな表現になります。この場合、各CoAPサーバは、CoAPグループ、クライアントのアイデンティティ、対象リソースなどの文脈情報に基づいて、適切なアプリケーショングループを判断する必要があります。例えば、サーバ上の各アプリケーショングループが、他のどのアプリケーショングループのリソース集合とも重複しない固有のリソース集合をサポートする、といった構成が考えられます。[RFC9176]の付録Aに、リソースディレクトリ (RD) に登録された名前付きアプリケーショングループの例が、そのグループが使用するCoAPグループおよびサポートするリソースとともに示されています。その例では、アプリケーショングループ名「lights」がRD登録エントリの「ep」(エンドポイント)属性にエンコードされ、CoAPグループを識別するマルチキャストアドレスは「base」属性にエンコードされたURIのauthorityコンポーネントで指定されています。クライアントによる「lights」グループへの以降のグループリクエストでは、グループ名はリクエストメッセージに含まれません。むしろ、CoAPグループを選択するURI authorityコンポーネントが、暗黙的に「lights」アプリケーショングループも選択することになります。

2.2.1.3. Security Groups

2.2.1.3. セキュリティグループ

A security group can be named in many ways through different types of identifiers, such as name string, (integer) number, URI, or other types of strings. Such a group name is generally not related to other kinds of group identifiers that may be specific to the security solution used.

セキュリティグループには、名前文字列、(整数の)番号、URI、その他の種類の文字列など、さまざまな種類の識別子を通じて、多様な方法で名前を付けることができます。そのようなグループ名は、一般に、使用されるセキュリティソリューション固有の他の種類のグループ識別子とは関連しません。

The name of a security group is not expected to be used in messages exchanged among its members, unless the application requires otherwise. At the same time, it is useful to identify the security group when performing a number of side tasks related to secure group communication, such as the following ones.

セキュリティグループの名前は、アプリケーションが別途必要としない限り、そのメンバー間で交換されるメッセージ内で使用されることは想定されていません。同時に、次のような、セキュアなグループ通信に関連するいくつかの付随的なタスクを実行する際には、セキュリティグループを識別できると便利です。

* An administrator may have to request an authorization to configure security groups at an available Group Manager (see Section 5). During the authorization process, as well as during the interaction between the administrator and the Group Manager, the group name identifies the specific security group that the administrator wishes to configure and is authorized to.

* 管理者は、利用可能なGroup Managerでセキュリティグループを設定するための認可を要求しなければならない場合があります(5節を参照)。認可プロセスの間、および管理者とGroup Managerとの間のやり取りの間、グループ名は、管理者が設定を望み、かつ認可されている特定のセキュリティグループを識別します。

* A CoAP endpoint may have to request an authorization to join a specific security group through the respective Group Manager and thus obtain the required group security material (see Section 5). During the authorization process, as well as during the interaction between the CoAP endpoint and the Group Manager, the group name identifies the specific security group that the CoAP endpoint wishes to join and is authorized to.

* CoAPエンドポイントは、特定のセキュリティグループに参加するために、該当するGroup Managerを通じて認可を要求し、必要なグループセキュリティマテリアルを取得しなければならない場合があります(5節を参照)。認可プロセスの間、およびCoAPエンドポイントとGroup Managerとの間のやり取りの間、グループ名は、そのCoAPエンドポイントが参加を望み、かつ認可されている特定のセキュリティグループを識別します。

* A CoAP endpoint may first need to discover the specific security groups to join through the respective Group Manager (see Section 2.2.3.1). Results from the discovery process include the names of the security groups to join, together with additional information such as a pointer to the respective Group Manager.

* CoAPエンドポイントは、まず、該当するGroup Managerを通じて、参加すべき特定のセキュリティグループを発見する必要がある場合があります(2.2.3.1節を参照)。発見プロセスの結果には、参加すべきセキュリティグループの名前と、該当するGroup Managerへのポインタなどの追加情報が含まれます。

It is discouraged to use "NoSec" and any of its lowercase/uppercase combinations as the name of a security group. Indications that endpoints can use the NoSec mode MUST NOT rely on setting up and advertising a pseudo security group with the name "NoSec" or any of its lowercase/uppercase combinations.

「NoSec」およびその大文字小文字の任意の組み合わせをセキュリティグループの名前として使用することは推奨されません。エンドポイントがNoSecモードを使用できることの通知は、名前「NoSec」またはその大文字小文字の任意の組み合わせを持つ擬似的なセキュリティグループを設定してアドバタイズすることに依存してはなりません (MUST NOT)。

2.2.2. Group Creation and Membership

2.2.2. グループの作成とメンバーシップ

This section discusses the creation of different types of groups, as entrusted to a "configuring entity". The same configuring entity can be responsible for creating groups of different types, e.g., both CoAP groups and application groups.

本節では、「構成エンティティ」に委ねられる、さまざまな種類のグループの作成について説明します。同じ構成エンティティが、例えばCoAPグループとアプリケーショングループの両方など、異なる種類のグループの作成を担当することもあります。

To create a CoAP group, a configuring entity defines an IP multicast address (or hostname) for the group and optionally a UDP port number in the case that it differs from the default CoAP port number 5683. Then, the configuring entity configures one or more devices as listeners to that IP multicast address, with a CoAP endpoint listening on the CoAP group's associated UDP port. These endpoints/ devices are the group members.

CoAPグループを作成するには、構成エンティティが、そのグループのIPマルチキャストアドレス(またはホスト名)を定義し、デフォルトのCoAPポート番号5683と異なる場合はUDPポート番号も任意で定義します。次に、構成エンティティは、1つ以上のデバイスをそのIPマルチキャストアドレスのリスナーとして設定し、CoAPグループに関連付けられたUDPポートでCoAPエンドポイントを待ち受けさせます。これらのエンドポイント/デバイスがグループメンバーです。

Note that, for some use cases, multiple CoAP groups can be created to serve the same purpose. For example, to accommodate dual-stack group members, the configuring entity can define one CoAP group with an IPv4 multicast address and another one with an IPv6 multicast address, which can be interchangeably used by CoAP clients. Another example consists of creating multiple CoAP groups using IPv6 multicast addresses of different scopes.

ユースケースによっては、同じ目的のために複数のCoAPグループを作成できる点に注意してください。例えば、デュアルスタックのグループメンバーに対応するために、構成エンティティは、IPv4マルチキャストアドレスを持つCoAPグループと、IPv6マルチキャストアドレスを持つ別のCoAPグループを定義でき、これらはCoAPクライアントが互換的に使用できます。別の例として、異なるスコープのIPv6マルチキャストアドレスを使用して複数のCoAPグループを作成する方法があります。

A configuring entity can be, for example, a local application with preconfiguration, a user, a software developer, a cloud service, or a local commissioning tool. In general, the creation of a CoAP group can involve multiple configuring entities that might be of different types. If the configuring entities are different from the ones entrusted with the device deployment, care has to be taken in order to avoid configurations that are conflicting or stale.

構成エンティティには、例えば、事前設定を持つローカルアプリケーション、ユーザ、ソフトウェア開発者、クラウドサービス、ローカルのコミッショニングツールなどがあります。一般に、CoAPグループの作成には、種類の異なる複数の構成エンティティが関与する場合があります。構成エンティティが、デバイスの展開を委ねられたものと異なる場合は、競合する設定や古くなった設定を避けるよう注意しなければなりません。

The devices sending CoAP requests to the CoAP group in the role of CoAP client also need to be configured with the same information, even though they are not necessarily group members. One way to configure a client is to supply it with a group URI.

CoAPクライアントの役割でCoAPグループにCoAPリクエストを送信するデバイスも、必ずしもグループメンバーではないものの、同じ情報で設定される必要があります。クライアントを設定する1つの方法は、グループURIを与えることです。

The IETF does not define a mandatory protocol to accomplish CoAP group creation. [RFC7390] defined an Experimental protocol for configuring memberships of CoAP groups for unsecure group communication, based on JSON-formatted configuration resources. The experiment is concluded as showing that the protocol has not been considered for deployment and use.

IETFは、CoAPグループの作成を実現するための必須プロトコルを定義していません。[RFC7390]は、JSON形式の設定リソースに基づいて、セキュアでないグループ通信のためのCoAPグループのメンバーシップを設定する実験的 (Experimental) プロトコルを定義しました。この実験は、そのプロトコルが展開や使用のために検討されなかったことを示して終了しています。

For IPv6 CoAP groups, this document does not suggest or recommend any particular multicast address ranges from which group addresses can be taken. It is up to network operators and managers to appropriately select addresses from the multicast address space with the intended multicast address scope. Guidelines for selecting and assigning IPv6 multicast addresses are compiled in [RFC3307].

IPv6のCoAPグループについて、本文書は、グループアドレスの取得元となる特定のマルチキャストアドレス範囲を提案も推奨もしません。意図したマルチキャストアドレススコープを持つマルチキャストアドレス空間からアドレスを適切に選択することは、ネットワークオペレータと管理者に委ねられます。IPv6マルチキャストアドレスの選択と割り当てに関するガイドラインは[RFC3307]にまとめられています。

To create an application group, a configuring entity may configure a resource or a set of resources on CoAP endpoints, such that a CoAP request sent to a group URI by a configured CoAP client will be processed by one or more CoAP servers that have the matching URI path configured. These servers are the members of the application group.

アプリケーショングループを作成するには、構成エンティティが、CoAPエンドポイント上に1つのリソースまたはリソースの集合を設定します。これにより、設定済みのCoAPクライアントがグループURIに送信したCoAPリクエストが、一致するURIパスを設定している1つ以上のCoAPサーバによって処理されるようになります。これらのサーバがアプリケーショングループのメンバーです。

To create a security group, a configuring entity defines an initial subset of the related security material. This comprises a set of group properties including the cryptographic algorithms and parameters used in the security group, as well as additional information relevant throughout the group life cycle, such as the security group name and description. This task can be entrusted to a dedicated administrator that interacts with a Group Manager, as defined in Section 5. After that, further security materials to protect group communications have to be generated and compatible with the configuration specified for the security group.

セキュリティグループを作成するには、構成エンティティが、関連するセキュリティマテリアルの初期サブセットを定義します。これは、セキュリティグループで使用される暗号アルゴリズムとパラメータ、ならびにセキュリティグループの名前や説明など、グループのライフサイクル全体を通じて関連する追加情報を含む、一連のグループプロパティで構成されます。このタスクは、5節で定義されるGroup Managerとやり取りする専任の管理者に委ねることができます。その後、グループ通信を保護するためのさらなるセキュリティマテリアルを、セキュリティグループに指定された設定と適合するように生成しなければなりません。

To participate in a security group, CoAP endpoints have to be configured with the group security material used to protect communications in the associated application/CoAP groups. The part of the process that involves secure distribution of group security material for Group OSCORE is entrusted to the Group Manager responsible for the security group (see Section 5).

セキュリティグループに参加するには、CoAPエンドポイントに、関連するアプリケーション/CoAPグループでの通信を保護するために使用されるグループセキュリティマテリアルを設定しなければなりません。Group OSCOREのためのグループセキュリティマテリアルを安全に配布するプロセスの部分は、そのセキュリティグループを担当するGroup Managerに委ねられます(5節を参照)。

For unsecure group communication using the NoSec mode (see Section 4), there is no security material to be provided; hence, there is no security group for CoAP endpoints to participate in.

NoSecモード(4節を参照)を使用するセキュアでないグループ通信では、提供すべきセキュリティマテリアルはありません。したがって、CoAPエンドポイントが参加すべきセキュリティグループも存在しません。

The configuration of groups and membership may be performed at different moments in the life cycle of a device. For example, it can occur during product (software) creation, in the factory, at a reseller, on-site during first deployment, or on-site during a system reconfiguration operation. These configurations are likely performed by different configuring entities, possibly with minimal or no coordination. Therefore, it is important that means are available and supported for controlling, retrieving, updating, and retiring configurations, as well as for performing related troubleshooting procedures. Further details on such means are out of the scope of this document.

グループとメンバーシップの設定は、デバイスのライフサイクルにおけるさまざまな時点で行われる場合があります。例えば、製品(ソフトウェア)の作成時、工場、再販業者、初回展開時の現地、またはシステム再構成作業時の現地で行われることがあります。これらの設定は、おそらく最小限の調整のみで、あるいは調整なしに、異なる構成エンティティによって行われる可能性が高いです。したがって、設定の制御、取得、更新、廃止、ならびに関連するトラブルシューティング手順の実行のための手段が利用可能であり、サポートされていることが重要です。そのような手段の詳細は本文書の範囲外です。

2.2.3. Group Discovery

2.2.3. グループの発見

The following describes how a CoAP endpoint can discover groups by different means, i.e., by using an RD or directly from the CoAP servers that are members of such groups.

以下では、CoAPエンドポイントが、RDを使用する方法、またはそれらのグループのメンバーであるCoAPサーバから直接発見する方法など、さまざまな手段でグループを発見する方法を説明します。

2.2.3.1. Discovery Through an RD

2.2.3.1. RDを通じた発見

It is possible for CoAP endpoints to discover application groups as well as CoAP groups by using the RD-Groups usage pattern of the CoRE RD, as defined in Appendix A of [RFC9176].

CoAPエンドポイントは、[RFC9176]の付録Aで定義されているCoRE RDのRD-Groups使用パターンを用いて、アプリケーショングループおよびCoAPグループを発見することができます。

In particular, an application group can be registered to the RD, specifying the reference IP multicast address(es) of its associated CoAP group(s). The registration of groups to the RD is typically performed by a commissioning tool. Later on, CoAP endpoints can discover the registered application groups and related CoAP group(s) by using the lookup interface of the RD.

特に、アプリケーショングループは、関連するCoAPグループの参照用IPマルチキャストアドレスを指定してRDに登録できます。グループのRDへの登録は、通常、コミッショニングツールによって行われます。その後、CoAPエンドポイントは、RDのルックアップインタフェースを使用して、登録されたアプリケーショングループと関連するCoAPグループを発見できます。

When secure communication is provided with Group OSCORE (see Section 5), the approach described in [GROUP-OSCORE-DISCOVERY] also based on the RD can be used in order to discover the security group to join.

Group OSCOREでセキュア通信が提供される場合(5節を参照)、参加すべきセキュリティグループを発見するために、同じくRDに基づく[GROUP-OSCORE-DISCOVERY]に記載の手法を使用できます。

In particular, the responsible OSCORE Group Manager registers its security groups to the RD as links to its own corresponding resources for joining the security groups [GROUP-MANAGER]. Later on, CoAP endpoints can discover the names of the registered security groups and related application groups by using the lookup interface of the RD and then join the security group through the respective Group Manager.

特に、担当のOSCORE Group Managerは、セキュリティグループへの参加用の自身の対応するリソースへのリンクとして、自身のセキュリティグループをRDに登録します[GROUP-MANAGER]。その後、CoAPエンドポイントは、RDのルックアップインタフェースを使用して、登録されたセキュリティグループの名前と関連するアプリケーショングループを発見し、該当するGroup Managerを通じてそのセキュリティグループに参加できます。

2.2.3.2. Discovery from Server Members of an Application or CoAP Group

2.2.3.2. アプリケーショングループまたはCoAPグループのサーバメンバーからの発見

It is possible for CoAP endpoints to discover application groups and CoAP groups from the CoAP servers that are members of such groups by using a GET request targeting the /.well-known/core resource.

CoAPエンドポイントは、/.well-known/core リソースを対象とするGETリクエストを使用して、それらのグループのメンバーであるCoAPサーバから、アプリケーショングループおよびCoAPグループを発見することができます。

As discussed below, such a GET request may be sent to the IP multicast address of an already known CoAP group associated with one or more application groups. Alternatively, the GET request may be sent to the "All CoAP Nodes" IPv4 multicast address 224.0.1.187 or IPv6 multicast address ff0x::fd (see Section 12.8 of [RFC7252]), thus targeting all reachable CoAP servers in any CoAP group. Also, the GET request may specify a query component (see Section 4.1 of [RFC6690]) in order to filter the application groups of interest.

以下で述べるように、そのようなGETリクエストは、1つ以上のアプリケーショングループに関連付けられた、既知のCoAPグループのIPマルチキャストアドレスに送信される場合があります。あるいは、GETリクエストは、「All CoAP Nodes」のIPv4マルチキャストアドレス224.0.1.187またはIPv6マルチキャストアドレスff0x::fd([RFC7252]の12.8節を参照)に送信される場合もあり、その場合は任意のCoAPグループ内の到達可能なすべてのCoAPサーバが対象になります。また、GETリクエストは、対象のアプリケーショングループを絞り込むために、クエリコンポーネント([RFC6690]の4.1節を参照)を指定する場合もあります。

These particular details concerning the GET request depend on the specific discovery action intended by the client and on application-specific means used to encode names of application groups and CoAP groups, e.g., in group URIs and/or CoRE target attributes used with resource links.

GETリクエストに関するこれらの具体的な詳細は、クライアントが意図する特定の発見動作と、アプリケーショングループおよびCoAPグループの名前を、たとえばグループURIやリソースリンクで使用されるCoRE target attributeにエンコードするために用いられる、アプリケーション固有の手段に依存します。

The following discusses a number of methods to discover application groups and CoAP groups. When discussing the different methods, the two assumptions below are made as an example:

以下では、アプリケーショングループおよびCoAPグループを発見するための方法をいくつか説明します。異なる方法を説明する際には、例として次の2つの前提を置きます。

* Application group names are encoded in the path component of group URIs (see Section 2.2.1.2) and the path segment "gp" is used as the designated delimiter. The same holds for the full examples presented in Appendix C.

* アプリケーショングループ名はグループURIのパスコンポーネント(2.2.1.2節を参照)にエンコードされ、パスセグメント "gp" が指定された区切りとして使用されます。付録Cで示す完全な例でも同様です。

* The type of an application group is encoded in the value of the CoRE Link Format attribute "rt" of a group resource. Also, such values for the attribute "rt" have the semantics "g.<GROUPTYPE>", where GROUPTYPE denotes the type of the application group in question. The same holds for the full examples presented in Appendix C.

* アプリケーショングループのタイプは、グループリソースのCoRE Link Format属性 "rt" の値にエンコードされます。また、属性 "rt" のこのような値は "g.<GROUPTYPE>" という意味を持ち、GROUPTYPE は対象のアプリケーショングループのタイプを表します。付録Cで示す完全な例でも同様です。

Resource Type values can be registered in the "Resource Type (rt=) Link Target Attribute Values" IANA registry [Link.Target.Attributes] within the "Constrained RESTful Environments (CoRE) Parameters" registry group. While relying on registered Resource Type values is not strictly necessary, it is encouraged in order to ensure a more effective discovery of application groups and CoAP groups.

リソースタイプの値は、"Constrained RESTful Environments (CoRE) Parameters" レジストリグループ内の IANA レジストリ "Resource Type (rt=) Link Target Attribute Values" [Link.Target.Attributes] に登録できます。登録済みのリソースタイプの値に依拠することは厳密には必要ではありませんが、アプリケーショングループおよびCoAPグループのより効果的な発見を確実にするために推奨されます。

Note that the specific way of using the methods discussed below is application specific. That is, there is currently no standard way of encoding names of application groups and CoAP groups in group URIs and/or CoRE target attributes used with resource links. In particular, the discovery of application groups and CoAP groups through the RD mentioned in Section 2.2.3.1 is only defined for use with an RD, i.e., not directly with CoAP servers as group members.

以下で説明する方法の具体的な使い方はアプリケーション固有であることに注意してください。すなわち、アプリケーショングループおよびCoAPグループの名前をグループURIやリソースリンクで使用されるCoRE target attributeにエンコードする標準的な方法は、現時点では存在しません。特に、2.2.3.1節で言及したRDを介したアプリケーショングループおよびCoAPグループの発見は、RDとともに使用する場合に限って定義されており、グループメンバーとしてのCoAPサーバに対して直接使用する場合には定義されていません。

Full examples for the different methods are provided in Appendix C.

各方法の完全な例は付録Cに示します。

* A CoAP client can discover all the application groups associated with a specific CoAP group.

* CoAPクライアントは、特定のCoAPグループに関連付けられたすべてのアプリケーショングループを発見することができます。

This is achieved by sending the GET request above to the IP multicast address of the CoAP group and specifying a wildcarded group type "g.*" as the resource type in the URI query parameter "rt". For example, the request can use a group URI with path and query components "/.well-known/core?rt=g.*", so that the query matches any application group resource type. Alternatively, the request can use a group URI with path and query components "/.well-known/core?href=/gp/*", so that the query matches any application group resources and also matches any sub-resources of those.

これは、上記のGETリクエストをそのCoAPグループのIPマルチキャストアドレスに送信し、URIクエリパラメータ "rt" のリソースタイプとしてワイルドカード付きのグループタイプ "g.*" を指定することで実現されます。たとえば、リクエストはパスとクエリのコンポーネントが "/.well-known/core?rt=g.*" であるグループURIを使用でき、これによりクエリはあらゆるアプリケーショングループのリソースタイプに一致します。あるいは、リクエストはパスとクエリのコンポーネントが "/.well-known/core?href=/gp/*" であるグループURIを使用でき、これによりクエリはあらゆるアプリケーショングループのリソースに一致し、さらにそれらのあらゆるサブリソースにも一致します。

Through the corresponding responses, the query result is a list of resources at CoAP servers that are members of the specified CoAP group and of at least one application group associated with the CoAP group. That is, the client gains knowledge of the set of servers that are members of the specified CoAP group and members of any of the associated application groups and, for each of those servers, the names of the application groups where the server is a member and that are associated with the CoAP group.

対応するレスポンスを通じて、クエリ結果は、指定されたCoAPグループのメンバーであり、かつそのCoAPグループに関連付けられた少なくとも1つのアプリケーショングループのメンバーでもあるCoAPサーバ上のリソースの一覧になります。すなわち、クライアントは、指定されたCoAPグループのメンバーであり、かつ関連付けられたいずれかのアプリケーショングループのメンバーでもあるサーバの集合を知ることができ、さらにそれらの各サーバについて、そのサーバがメンバーであり、かつそのCoAPグループに関連付けられているアプリケーショングループの名前を知ることができます。

A full example is provided in Appendix C.1.

完全な例はC.1節に示します。

* A CoAP client can discover the CoAP servers that are members of a specific application group, the CoAP group(s) associated with the application group, and optionally the resources that those servers host for each application group.

* CoAPクライアントは、特定のアプリケーショングループのメンバーであるCoAPサーバ、そのアプリケーショングループに関連付けられたCoAPグループ、および必要に応じて、それらのサーバが各アプリケーショングループのために公開しているリソースを発見することができます。

This is achieved by sending the GET request above to an "All CoAP Nodes" IP multicast address (see Section 12.8 of [RFC7252]), with a particular chosen scope (e.g., site-local or realm-local) if IPv6 is used. Also, the request specifies the application group name of interest in the URI query component, as defined in Section 2.2.1.2. For example, the request can use a group URI with path and query components "/.well-known/core?href=/gp/gp1" to specify the application group with name "gp1".

これは、上記のGETリクエストを「All CoAP Nodes」のIPマルチキャストアドレス([RFC7252]の12.8節を参照)に送信し、IPv6を使用する場合は選択した特定のスコープ(たとえばサイトローカルやレルムローカル)を用いることで実現されます。また、リクエストは、2.2.1.2節で定義されているとおり、URIクエリコンポーネントに対象のアプリケーショングループ名を指定します。たとえば、リクエストはパスとクエリのコンポーネントが "/.well-known/core?href=/gp/gp1" であるグループURIを使用して、名前が "gp1" のアプリケーショングループを指定できます。

Through the corresponding responses, the query result is a list of application group resources hosted at CoAP servers that are members of the specified application group. The list also carries information about which CoAP group(s) are associated with the application group. That is, the client gains knowledge of the set of servers that are members of the specified application group and, for each of those servers, the CoAP groups where the server is a member and that are associated with the application group. Optionally, for each of those servers, the client also gains knowledge of the resources that the server hosts within the application group.

対応するレスポンスを通じて、クエリ結果は、指定されたアプリケーショングループのメンバーであるCoAPサーバ上で公開されているアプリケーショングループリソースの一覧になります。この一覧には、どのCoAPグループがそのアプリケーショングループに関連付けられているかについての情報も含まれます。すなわち、クライアントは、指定されたアプリケーショングループのメンバーであるサーバの集合を知ることができ、さらにそれらの各サーバについて、そのサーバがメンバーであり、かつそのアプリケーショングループに関連付けられているCoAPグループを知ることができます。必要に応じて、クライアントは、それらの各サーバがそのアプリケーショングループ内で公開しているリソースも知ることができます。

If the client wishes to discover resources that a particular server hosts within a particular application group, it may use a unicast discovery request(s) to this server.

クライアントが、特定のサーバが特定のアプリケーショングループ内で公開しているリソースを発見したい場合は、そのサーバに対してユニキャストの発見リクエストを使用してもかまいません。

A full example is provided in Appendix C.2.

完全な例はC.2節に示します。

* A CoAP client can discover the CoAP servers that are members of any application group of a specific type, the CoAP group(s) associated with those application groups, and optionally the resources that those servers host as members of those application groups.

* CoAPクライアントは、特定のタイプのいずれかのアプリケーショングループのメンバーであるCoAPサーバ、それらのアプリケーショングループに関連付けられたCoAPグループ、および必要に応じて、それらのサーバがそれらのアプリケーショングループのメンバーとして公開しているリソースを発見することができます。

This is achieved by sending the GET request above to an "All CoAP Nodes" IP multicast address (see Section 12.8 of [RFC7252]), with a particular chosen scope (e.g., site-local or realm-local) if IPv6 is used. Also, the request can specify the application group type of interest in the URI query component as the value of a query parameter "rt". For example, the request can use a group URI with path and query components "/.well-known/core?rt=TypeA" to specify the application group type "TypeA".

これは、上記のGETリクエストを「All CoAP Nodes」のIPマルチキャストアドレス([RFC7252]の12.8節を参照)に送信し、IPv6を使用する場合は選択した特定のスコープ(たとえばサイトローカルやレルムローカル)を用いることで実現されます。また、リクエストは、対象のアプリケーショングループのタイプを、URIクエリコンポーネント内のクエリパラメータ "rt" の値として指定できます。たとえば、リクエストはパスとクエリのコンポーネントが "/.well-known/core?rt=TypeA" であるグループURIを使用して、アプリケーショングループのタイプ "TypeA" を指定できます。

Through the corresponding responses, the combined query result is a list of resources at CoAP servers that are members of any application group of the specified type. Each resource identifies a specific application group with one associated CoAP group. That is, the client gains knowledge of the set of servers that are members of application groups of the specified type and, for each of those servers, the CoAP groups where the server is a member and that are associated with those application groups. Optionally, for each of those servers, the client also gains knowledge of the resources that the server hosts within each of those application groups.

対応するレスポンスを通じて、統合されたクエリ結果は、指定されたタイプのいずれかのアプリケーショングループのメンバーであるCoAPサーバ上のリソースの一覧になります。各リソースは、1つの関連付けられたCoAPグループとともに、特定のアプリケーショングループを識別します。すなわち、クライアントは、指定されたタイプのアプリケーショングループのメンバーであるサーバの集合を知ることができ、さらにそれらの各サーバについて、そのサーバがメンバーであり、かつそれらのアプリケーショングループに関連付けられているCoAPグループを知ることができます。必要に応じて、クライアントは、それらの各サーバがそれらの各アプリケーショングループ内で公開しているリソースも知ることができます。

If the client wishes to discover resources that a particular server hosts within a particular application group, it may use unicast discovery request(s) to this server.

クライアントが、特定のサーバが特定のアプリケーショングループ内で公開しているリソースを発見したい場合は、そのサーバに対してユニキャストの発見リクエストを使用してもかまいません。

A full example is provided in Appendix C.3.

完全な例はC.3節に示します。

* A CoAP client can discover the CoAP servers that are members of any application group configured in the 6LoWPAN network of the client, the CoAP group(s) associated with each application group, and optionally the resources that those servers host as members of the application group.

* CoAPクライアントは、そのクライアントの6LoWPANネットワークで構成されているいずれかのアプリケーショングループのメンバーであるCoAPサーバ、各アプリケーショングループに関連付けられたCoAPグループ、および必要に応じて、それらのサーバがそのアプリケーショングループのメンバーとして公開しているリソースを発見することができます。

This is achieved by sending the GET request above with a query specifying a wildcarded group type in the URI query parameter for "rt". For example, the request can use a group URI with path and query components "/.well-known/core?rt=g.*", so that the query matches any application group type. The request is sent to an "All CoAP Nodes" IP multicast address (see Section 12.8 of [RFC7252]), with a particular chosen scope if IPv6 is used.

これは、"rt" のURIクエリパラメータにワイルドカード付きのグループタイプを指定したクエリを伴う、上記のGETリクエストを送信することで実現されます。たとえば、リクエストはパスとクエリのコンポーネントが "/.well-known/core?rt=g.*" であるグループURIを使用でき、これによりクエリはあらゆるアプリケーショングループのタイプに一致します。このリクエストは、IPv6を使用する場合は選択した特定のスコープを用いて、「All CoAP Nodes」のIPマルチキャストアドレス([RFC7252]の12.8節を参照)に送信されます。

Through the corresponding responses, the query result is a list of group resources hosted by any server in the 6LoWPAN network. Each group resource denotes one application group membership of a server. For each application group, the associated CoAP group(s) is identified by the information encoded in the URI authority component of the corresponding returned link.

対応するレスポンスを通じて、クエリ結果は、6LoWPANネットワーク内のいずれかのサーバが公開しているグループリソースの一覧になります。各グループリソースは、サーバの1つのアプリケーショングループへのメンバーシップを表します。各アプリケーショングループについて、関連付けられたCoAPグループは、返された対応するリンクのURIオーソリティコンポーネントにエンコードされた情報によって識別されます。

If the client wishes to discover resources that a particular server hosts within a particular application group, it may use a unicast discovery request(s) to this server.

クライアントが、特定のサーバが特定のアプリケーショングループ内で公開しているリソースを発見したい場合は、そのサーバに対してユニキャストの発見リクエストを使用してもかまいません。

Full examples are provided in Appendix C.4.

完全な例はC.4節に示します。

2.2.4. Group Maintenance

2.2.4. グループメンテナンス

Maintenance of a group includes any necessary operations to cope with changes in a system, such as adding group members, removing group members, changing group security material, reconfiguration of UDP port number and/or IP multicast address, reconfiguration of the group URI, renaming of application groups, splitting of groups, or merging of groups.

グループのメンテナンスには、システムの変化に対処するために必要なあらゆる操作が含まれます。たとえば、グループメンバーの追加、グループメンバーの削除、グループのセキュリティマテリアルの変更、UDPポート番号やIPマルチキャストアドレスの再構成、グループURIの再構成、アプリケーショングループの名称変更、グループの分割、グループの統合などです。

For unsecure group communication (see Section 4), i.e., when the NoSec mode is used, addition/removal of CoAP group members is simply done by configuring these devices to start/stop listening to the group IP multicast address on the group's UDP port.

セキュリティで保護されていないグループ通信(4節を参照)、すなわちNoSecモードを使用する場合、CoAPグループメンバーの追加・削除は、それらのデバイスを、グループのUDPポートでグループのIPマルチキャストアドレスの待ち受けを開始・停止するように構成するだけで行われます。

For secure group communication (see Section 5), the maintenance operations of the protocol Group OSCORE [RFC10021] MUST be performed as well. When using Group OSCORE, CoAP endpoints participating in group communication are also members of a corresponding OSCORE security group and thus share common security material. Additional related maintenance operations are discussed in Section 5.2.

セキュリティで保護されたグループ通信(5節を参照)では、プロトコルGroup OSCORE [RFC10021] のメンテナンス操作も併せて実行しなければなりません (MUST)。Group OSCOREを使用する場合、グループ通信に参加するCoAPエンドポイントは、対応するOSCOREセキュリティグループのメンバーでもあるため、共通のセキュリティマテリアルを共有します。関連する追加のメンテナンス操作については5.2節で説明します。

3. CoAP Usage in Group Communication

3. グループ通信におけるCoAPの使用

This section specifies the usage of CoAP in group communication, both unsecure and secure. This includes additional support for protocol extensions, such as Observe (see Section 3.7) and block-wise transfer (see Section 3.8).

本節では、セキュリティで保護されていないグループ通信とセキュリティで保護されたグループ通信の両方における、CoAPの使用を規定します。これには、Observe(3.7節を参照)やブロック単位転送(3.8節を参照)などのプロトコル拡張に対する追加のサポートが含まれます。

How CoAP group messages are carried over various transport layers is the subject of Section 3.9. Finally, Section 3.10 covers the interworking of CoAP group communication with other protocols that may operate in the same network.

CoAPグループメッセージを各種のトランスポート層でどのように運ぶかは、3.9節の主題です。最後に、3.10節では、CoAPグループ通信と、同じネットワーク内で動作しうる他のプロトコルとの相互運用について扱います。

3.1. Request/Response Model

3.1. リクエスト/レスポンスモデル

3.1.1. General

3.1.1. 概要

A CoAP client is an endpoint able to transmit CoAP requests and receive CoAP responses. Since the underlying UDP transport supports multiplexing by means of UDP port number, there can be multiple independent CoAP clients operational on a single host. On each UDP port, an independent CoAP client can be hosted. Each independent CoAP client sends requests that use the associated endpoint's UDP port number as the UDP source port number of the request.

CoAPクライアントは、CoAPリクエストを送信し、CoAPレスポンスを受信できるエンドポイントです。基盤となるUDPトランスポートはUDPポート番号による多重化をサポートしているため、1つのホスト上で複数の独立したCoAPクライアントが動作しえます。各UDPポートでは、独立したCoAPクライアントをホストできます。各独立CoAPクライアントは、関連付けられたエンドポイントのUDPポート番号を、リクエストのUDP送信元ポート番号として使用するリクエストを送信します。

All CoAP requests that are sent via IP multicast must be Non-confirmable (NON) (see Section 8.1 of [RFC7252]). Although a corresponding response should be returned in a Non-confirmable message as well, clients must be prepared to receive Confirmable responses in reply to those requests (see Section 5.2.3 of [RFC7252]). The Message ID in an IP multicast CoAP message is used for optional message deduplication by both clients and servers, as detailed in Section 4.5 of [RFC7252]. A server MAY send one or more responses to a CoAP group request; these are always unicast messages. The unicast responses received by the CoAP client may carry a mixture of success (e.g., 2.05 (Content)) and failure (e.g., 4.04 (Not Found)) Response Codes, depending on the individual server processing results.

IPマルチキャストで送信されるすべてのCoAPリクエストは、Non-confirmable (NON) でなければなりません([RFC7252]の8.1節を参照)。対応するレスポンスもNon-confirmableメッセージで返されるべきですが、クライアントは、それらのリクエストへの応答としてConfirmableレスポンスを受信する場合にも備えていなければなりません([RFC7252]の5.2.3節を参照)。IPマルチキャストのCoAPメッセージ内のMessage IDは、[RFC7252]の4.5節で詳述されているとおり、クライアントとサーバの両方による任意のメッセージ重複排除に使用されます。サーバは、CoAPグループリクエストに対して1つ以上のレスポンスを送信してもよい (MAY) です。これらは常にユニキャストメッセージです。CoAPクライアントが受信するユニキャストレスポンスには、個々のサーバの処理結果に応じて、成功(例:2.05 (Content))と失敗(例:4.04 (Not Found))のレスポンスコードが混在している場合があります。

When using CoAP group communication, an amplification attack becomes more harmful than when sending a unicast request to a single server. That is, by spoofing the source IP address of a designated victim in the group request sent via IP multicast, the attack could result in multiple servers within the CoAP group sending responses to the victim. This is further discussed in Section 6.3, together with available mitigations.

CoAPグループ通信を使用する場合、増幅攻撃は、単一のサーバにユニキャストリクエストを送信する場合よりも有害になります。すなわち、IPマルチキャストで送信されるグループリクエストの送信元IPアドレスを、指定された被害者のものに偽装することで、この攻撃は、CoAPグループ内の複数のサーバが被害者にレスポンスを送信する結果を招く可能性があります。これについては、利用可能な緩和策とともに6.3節でさらに説明します。

3.1.2. Response Suppression

3.1.2. 応答抑制

A server MAY suppress its response for various reasons given in Section 8.2 of [RFC7252]. This document adds the requirement that a server SHOULD suppress the response in the case of error or in the case that there is nothing useful to respond, unless the application related to a particular resource requires such a response to be made for that resource. Such exceptions are application specific and defined by corresponding application policies.

サーバは、[RFC7252]の8.2節に挙げられているさまざまな理由により、レスポンスを抑制してもよい (MAY) です。本ドキュメントは、特定のリソースに関連するアプリケーションがそのリソースに対するレスポンスの送信を必要としない限り、エラーの場合、または応答すべき有用な内容がない場合には、サーバがレスポンスを抑制すべきである (SHOULD) という要件を追加します。このような例外はアプリケーション固有であり、対応するアプリケーションポリシーによって定義されます。

The CoAP No-Response Option [RFC7967] can be used by a client to influence the default response suppression on the server side. It is RECOMMENDED that a server supporting this option only takes it into account when processing requests that target resources for which influencing the default suppression has been predetermined to be appropriate, as well as useful, in the application context.

CoAP No-Response Option [RFC7967] は、クライアントがサーバ側のデフォルトの応答抑制に影響を与えるために使用できます。このオプションをサポートするサーバは、デフォルトの抑制に影響を与えることがアプリケーションの文脈において適切かつ有用であると事前に決定されているリソースを対象とするリクエストを処理するときにのみ、このオプションを考慮することが推奨されます (RECOMMENDED)。

Any default response suppression by a server SHOULD be performed consistently, as follows: If a request on a resource produces a particular Response Code and this response is not suppressed, then another request on the same resource that produces a response of the same Response Code class (see Section 3 of [RFC7252]) is also not suppressed. For example, if a response with 4.05 (Method Not Allowed) error Response Code is suppressed by default on a resource, then a response with 4.15 (Unsupported Content-Format) error Response Code is also suppressed by default for that resource.

サーバによるデフォルトの応答抑制は、次のように一貫して実行すべきです (SHOULD)。あるリソースに対するリクエストが特定のResponse Codeを生成し、その応答が抑制されない場合、同じリソースに対する別のリクエストが同じResponse Codeクラス([RFC7252] のセクション3を参照)の応答を生成するときも、その応答は抑制されません。たとえば、4.05 (Method Not Allowed) エラーのResponse Codeを持つ応答があるリソースでデフォルトで抑制される場合、4.15 (Unsupported Content-Format) エラーのResponse Codeを持つ応答も、そのリソースではデフォルトで抑制されます。

3.1.3. Repeating a Request

3.1.3. リクエストの再送

Group requests sent over IP multicast can have much higher loss rates than messages sent over unicast, particularly when using a constrained network. Therefore, having a strategy in place for handling the loss of group requests is even more important than one for handling the loss of unicast responses. To this end, a CoAP client MAY repeat a group request by relying on the following two approaches.

IPマルチキャストで送信されるグループリクエストは、特に制約のあるネットワークを使用する場合、ユニキャストで送信されるメッセージよりもはるかに高い損失率になる可能性があります。したがって、グループリクエストの損失を扱うための戦略を用意しておくことは、ユニキャスト応答の損失を扱う戦略よりもいっそう重要です。この目的のため、CoAPクライアントは、次の2つの方法に基づいてグループリクエストを再送してもよい (MAY)。

The first approach is supported already by all CoAP stacks and is used by default. That is, it SHOULD be used in case the implementer has no explicit preference or reason to use the alternative approach described further below. When using this first approach, the application implements a custom retransmission logic that can trigger a new API request for transmission (of a CoAP request) to the CoAP stack if fewer responses than expected were received. The CoAP client then sends this group request using a different Message ID (and the same or a different Token value); in which case, all servers that received the initial request will again process the repeated request since it appears within a new CoAP message with a new Message ID. This is useful in case a client suspects that one or more responses to its original request were lost and the client needs to collect more, or even all, responses from members of the CoAP group, even if this comes at the cost of the overhead of certain group members responding twice (once to the original request and once to the repeated request with a different Message ID).

最初の方法は、すべてのCoAPスタックで既にサポートされており、デフォルトで使用されます。すなわち、実装者に明確な好みや、後述する代替方法を使用する理由がない場合は、この方法を使用すべきです (SHOULD)。この最初の方法を使用する場合、アプリケーションは独自の再送ロジックを実装します。このロジックは、期待より少ない応答しか受信されなかったときに、CoAPスタックに対して(CoAPリクエストの)送信のための新しいAPIリクエストを発行できます。その後、CoAPクライアントは、異なるMessage ID(および同じまたは異なるToken値)を使用してこのグループリクエストを送信します。この場合、最初のリクエストを受信したすべてのサーバは、新しいMessage IDを持つ新しいCoAPメッセージとして届くため、再送されたリクエストを再び処理します。これは、クライアントが元のリクエストに対する1つ以上の応答が失われたと推測し、CoAPグループのメンバーからより多くの、あるいはすべての応答を収集する必要がある場合に有用です。これは、一部のグループメンバーが2回応答する(元のリクエストに1回、異なるMessage IDを持つ再送リクエストに1回)というオーバーヘッドを伴う場合でも同様です。

The second approach requires specific support in the CoAP stack and MAY be implemented. When using this second approach, the application layer also implements a custom retransmission logic that can trigger a new API request to the stack if fewer responses than expected were received. If this specific API request is made, the CoAP client repeats a group request using the same Token value and same Message ID value. This ensures that enough (or all) members of the CoAP group have been reached with the request. This is useful in the case that a number of members of the CoAP group did not respond to the initial request and the client/application suspects that the request did not reach these group members. However, if one or more servers did receive the initial request but the response to that request was lost, this repeat does not help to retrieve the lost response(s) if the server(s) implements the optional Message-ID-based deduplication (Section 4.5 of [RFC7252]).

2番目の方法は、CoAPスタックにおける特定のサポートを必要とし、実装してもよい (MAY)。この2番目の方法を使用する場合も、アプリケーション層は独自の再送ロジックを実装します。このロジックは、期待より少ない応答しか受信されなかったときに、スタックに対して新しいAPIリクエストを発行できます。この特定のAPIリクエストが行われた場合、CoAPクライアントは、同じToken値と同じMessage ID値を使用してグループリクエストを再送します。これにより、CoAPグループの十分な数の(またはすべての)メンバーにリクエストが到達したことが保証されます。この方法は、CoAPグループの一部のメンバーが最初のリクエストに応答せず、クライアントまたはアプリケーションが、リクエストがそれらのグループメンバーに到達しなかったと推測する場合に有用です。ただし、1つ以上のサーバが最初のリクエストを受信したものの、そのリクエストに対する応答が失われた場合、サーバが任意のMessage IDに基づく重複排除([RFC7252] のセクション4.5)を実装していると、この再送は失われた応答を取得する助けになりません。

In summary, even though the CoAP message is Non-confirmable, the CoAP stack now provides a mechanism to retransmit the CoAP message, which is normally never done for Non-confirmable messages.

要するに、CoAPメッセージはNon-confirmableであるにもかかわらず、CoAPスタックはそのCoAPメッセージを再送するための仕組みを提供するようになります。通常、Non-confirmableメッセージではこのような再送は行われません。

3.1.4. Request/Response Matching and Distinguishing Responses

3.1.4. リクエストとレスポンスの対応付けおよびレスポンスの区別

A CoAP client can distinguish the origin of multiple server responses by the source IP address of the message containing the CoAP response and/or any other available application-specific source identifiers contained in the CoAP response payload or CoAP response options, such as an application-level unique ID associated with the server. If secure communication is provided with Group OSCORE (see Section 5), additional security-related identifiers in the CoAP response enable the client to retrieve the right security material for decrypting each response and authenticating its source.

CoAPクライアントは、CoAP応答を含むメッセージの送信元IPアドレス、および/または、CoAP応答のペイロードやCoAP応答オプションに含まれるその他の利用可能なアプリケーション固有の送信元識別子(サーバに関連付けられたアプリケーションレベルの一意のIDなど)によって、複数のサーバ応答の発信元を区別できます。Group OSCORE(セクション5を参照)で保護された通信が提供される場合、CoAP応答内の追加のセキュリティ関連の識別子により、クライアントは各応答を復号し、その送信元を認証するための適切なセキュリティマテリアルを取得できます。

While processing a response on the client, the source endpoint of the response is not matched to the destination endpoint of the request, since these will never match for a group request. This is specified in Section 8.2 of [RFC7252], with reference to IP multicast.

クライアントで応答を処理する際、応答の送信元エンドポイントはリクエストの宛先エンドポイントと照合されません。グループリクエストでは、これらが一致することはないためです。これは、IPマルチキャストに言及して [RFC7252] のセクション8.2で規定されています。

Also, when UDP transport is used, a server MAY respond from a UDP port number that differs from the destination UDP port number of the request.

また、UDPトランスポートを使用する場合、サーバはリクエストの宛先UDPポート番号とは異なるUDPポート番号から応答してもよい (MAY)。

If a single client has sent multiple group requests and concurrent CoAP transactions are ongoing, the responses received by that client are matched to an active request using only the Token value. Due to UDP-level multiplexing, the UDP destination port number of the response MUST match to the client endpoint's UDP port number, i.e., to the UDP source port number of the client's request.

1つのクライアントが複数のグループリクエストを送信し、並行するCoAPトランザクションが進行中である場合、そのクライアントが受信した応答は、Token値のみを使用して、アクティブなリクエストに対応付けられます。UDPレベルの多重化のため、応答の宛先UDPポート番号は、クライアントエンドポイントのUDPポート番号、すなわちクライアントのリクエストの送信元UDPポート番号と一致しなければなりません (MUST)。

Note that some responses to a group request might be filtered out and not reach the client if a NAT device is used with restrictive filtering in place. For example, this can be the case if the NAT device employs "Address-Dependent Filtering" or "Address and Port-Dependent Filtering" (see Section 5 of [RFC4787]).

制限的なフィルタリングを行うNATデバイスが使用されている場合、グループリクエストに対する一部の応答がフィルタリングされ、クライアントに到達しない可能性があることに注意してください。たとえば、NATデバイスが "Address-Dependent Filtering" または "Address and Port-Dependent Filtering"([RFC4787] のセクション5を参照)を採用している場合に、これが起こり得ます。

3.1.5. Token Reuse

3.1.5. Tokenの再利用

For CoAP group requests, there are additional constraints on the reuse of Token values at the client, compared to the unicast case defined in [RFC7252] and updated by [RFC9175]. Since the number of responses for CoAP group requests is not bounded a priori, the client cannot use the reception of a response as a trigger to "free up" a Token value for reuse.

CoAPグループリクエストでは、[RFC7252] で定義され [RFC9175] で更新されたユニキャストの場合と比べて、クライアントにおけるToken値の再利用に追加の制約があります。CoAPグループリクエストに対する応答の数は事前に上限が決まっていないため、クライアントは、応答の受信をToken値を「解放」して再利用するためのトリガとして使用できません。

Reusing a Token value too early could lead to incorrect response/ request matching on the client and would be a protocol error. Therefore, the time between reuse of Token values for different group requests MUST be greater than:

Token値を早すぎる時点で再利用すると、クライアントでリクエストとレスポンスの対応付けが誤る可能性があり、プロトコルエラーとなります。したがって、異なるグループリクエストに対するToken値の再利用の間隔は、次の値より大きくなければなりません (MUST)。

   MIN_TOKEN_REUSE_TIME = (NON_LIFETIME + MAX_LATENCY +
                           MAX_SERVER_RESPONSE_DELAY)
        

where NON_LIFETIME and MAX_LATENCY are defined in Section 4.8.2 of [RFC7252]. This specification defines MAX_SERVER_RESPONSE_DELAY as was done in [RFC7390], that is: the expected maximum response delay over all servers that the client can send a CoAP group request to. This delay includes the maximum leisure period as defined in Section 8.2 of [RFC7252]. However, CoAP does not define a time limit for the server response delay. Using the default CoAP parameters, the Token reuse time MUST be greater than 250 seconds plus MAX_SERVER_RESPONSE_DELAY.

ここで、NON_LIFETIME と MAX_LATENCY は [RFC7252] のセクション4.8.2で定義されています。本仕様は、[RFC7390] と同様に MAX_SERVER_RESPONSE_DELAY を定義します。すなわち、クライアントがCoAPグループリクエストを送信できるすべてのサーバにわたる、想定される最大の応答遅延です。この遅延には、[RFC7252] のセクション8.2で定義される最大の猶予期間が含まれます。ただし、CoAPはサーバの応答遅延に対する時間制限を定義していません。デフォルトのCoAPパラメータを使用する場合、Tokenの再利用間隔は250秒に MAX_SERVER_RESPONSE_DELAY を加えた値より大きくなければなりません (MUST)。

To meet this requirement, a client can simply generate a new unique Token for every new group request, such that a Token value is never reused. If a client has to reuse Token values for some reason, and also MAX_SERVER_RESPONSE_DELAY is unknown, then using MAX_SERVER_RESPONSE_DELAY = 250 seconds is a reasonable guideline. The time between Token reuses is in that case set to a value greater than MIN_TOKEN_REUSE_TIME = 500 seconds.

この要件を満たすために、クライアントは、グループリクエストごとに新しい一意のTokenを生成するだけで済み、これによりToken値が再利用されることはありません。クライアントが何らかの理由でToken値を再利用しなければならず、かつ MAX_SERVER_RESPONSE_DELAY が不明な場合は、MAX_SERVER_RESPONSE_DELAY = 250秒を使用することが妥当な指針です。この場合、Tokenの再利用間隔は MIN_TOKEN_REUSE_TIME = 500秒より大きい値に設定されます。

When securing CoAP group communication with Group OSCORE [RFC10021], secure binding between requests and responses is ensured (see Section 5). Thus, a client can safely reuse a Token value after it has been freed up, as discussed above and considering a reuse time greater than MIN_TOKEN_REUSE_TIME. If an alternative security protocol for CoAP group communication is used, which does not ensure secure binding between requests and responses, a client MUST follow the Token processing requirements as defined in [RFC9175].

Group OSCORE [RFC10021] でCoAPグループ通信を保護する場合、リクエストとレスポンスの間のセキュアなバインディングが保証されます(セクション5を参照)。したがって、クライアントは、上述のとおりToken値が解放された後、MIN_TOKEN_REUSE_TIME より大きい再利用間隔を考慮して、そのToken値を安全に再利用できます。リクエストとレスポンスの間のセキュアなバインディングを保証しない、CoAPグループ通信向けの代替セキュリティプロトコルが使用される場合、クライアントは [RFC9175] で定義されているTokenの処理要件に従わなければなりません (MUST)。

An alternative method that meets the requirement above consists in instantiating multiple CoAP clients at multiple UDP ports on the same host. This is consistent with what is defined in Section 5.3.1 of [RFC7252], i.e., Token values currently in use only have to be unique for a given source/destination endpoint pair.

上記の要件を満たす代替の方法は、同一ホスト上の複数のUDPポートで複数のCoAPクライアントをインスタンス化することです。これは [RFC7252] のセクション5.3.1の定義、すなわち、現在使用中のToken値は、特定の送信元/宛先エンドポイントのペアの中でのみ一意であればよいという定義と整合しています。

3.1.6. Client Handling of Multiple Responses with the Same Token

3.1.6. 同じTokenを持つ複数の応答のクライアントによる処理

Since a client sending a group request with a Token T will accept multiple responses with the same Token T, it is possible in particular that the same server sends multiple responses with the same Token T back to the client.

Token T を持つグループリクエストを送信したクライアントは、同じToken T を持つ複数の応答を受け入れるため、特に、同じサーバが同じToken T を持つ複数の応答をクライアントに返す可能性があります。

For example, if the client sends a group request specifying the Observe Option set to 0 (see Section 3.1 of [RFC7641]) and this server adds the client to the list of observers for the targeted resource, then the server is set up to send multiple responses as Observe notifications to notify the client of changes to the resource state (see Section 4.2 of [RFC7641]). The use of Observe with group communication is discussed in more detail in Section 3.7. As another example, a server might not implement the optional CoAP message deduplication based on Message ID; or it might be acting out of specification as a malicious, compromised, or faulty server.

たとえば、クライアントがObserve Optionを0に設定したグループリクエストを送信し([RFC7641] のセクション3.1を参照)、このサーバが対象リソースのオブザーバのリストにそのクライアントを追加した場合、サーバは、リソース状態の変化をクライアントに通知するObserve通知として、複数の応答を送信するように設定されます([RFC7641] のセクション4.2を参照)。グループ通信でのObserveの使用については、セクション3.7でより詳しく説明します。別の例として、サーバがMessage IDに基づく任意のCoAPメッセージ重複排除を実装していない場合があります。あるいは、サーバが悪意のある、侵害された、または不具合のあるサーバとして、仕様に反する動作をしている場合もあります。

When this happens, it is up to the specific client implementation to decide at which layer deduplication of responses is performed or whether it is necessary in an application at all. If the processing of a response is successful, the client delivers the response to the application as usual.

このような場合、どの層で応答の重複排除を行うか、あるいはアプリケーションで重複排除が必要かどうかは、特定のクライアント実装の判断に委ねられます。応答の処理が成功した場合、クライアントは通常どおり応答をアプリケーションに引き渡します。

The application itself can be in a good position to decide what to do, depending on the available context information. For instance, it might accept and process all the responses from the same server, even if they are not Observe notifications (i.e., they do not include an Observe Option). Alternatively, the application might accept and process only one of those responses, e.g., when this can trigger a change of state within the application.

アプリケーション自体が、利用可能な文脈情報に応じて、何をすべきかを判断するのに適した立場にある場合があります。たとえば、同じサーバからのすべての応答を、それらがObserve通知でない場合(すなわち、Observe Optionを含まない場合)でも、受け入れて処理することがあります。あるいは、アプリケーションは、たとえばそれがアプリケーション内の状態変化を引き起こし得る場合などに、それらの応答のうち1つだけを受け入れて処理することもあります。

As part of a message exchange between the client and any of the servers in the CoAP group, the multiple responses considered above are examples of the more general concept of non-traditional responses elaborated in [CoAP-NON-TRAD].

クライアントとCoAPグループ内のいずれかのサーバとの間のメッセージ交換の一部として、上で検討した複数の応答は、[CoAP-NON-TRAD] で詳述されている、より一般的な概念である非従来型の応答の例です。

3.2. Caching

3.2. キャッシュ

CoAP endpoints that are members of a CoAP group MAY cache responses to a group request as defined in Section 5.6 of [RFC7252]. The set of request options used as "Cache-Key" is also as defined in Section 5.6 of [RFC7252].

CoAPグループのメンバーであるCoAPエンドポイントは、[RFC7252] のセクション5.6で定義されているとおり、グループリクエストに対する応答をキャッシュしてもよい (MAY)。"Cache-Key" として使用されるリクエストオプションの集合も、[RFC7252] のセクション5.6で定義されているとおりです。

Furthermore, building on what is defined in Section 8.2.1 of [RFC7252]:

さらに、[RFC7252] のセクション8.2.1で定義されている内容に基づいて、次のとおりです。

* A client sending a GET or FETCH group request MAY update a cache with the responses from the servers in the CoAP group. With such a cache, the client uses both cached-still-fresh and new responses as the result of further group requests.

* GETまたはFETCHのグループリクエストを送信するクライアントは、CoAPグループ内のサーバからの応答でキャッシュを更新してもよい (MAY)。このようなキャッシュがある場合、クライアントは、以降のグループリクエストの結果として、キャッシュされていてまだ鮮度のある応答と新しい応答の両方を使用します。

* A client sending a GET or FETCH group request MAY use a response received from a server to satisfy a subsequently sent request intended to that server on the related unicast request URI. In particular, the unicast request URI is obtained by replacing the host subcomponent in the authority component of the group request URI with the source address of the cached response message.

* GETまたはFETCHのグループリクエストを送信するクライアントは、サーバから受信した応答を、そのサーバ宛てに関連するユニキャストのリクエストURIに対して後から送信されるリクエストを満たすために使用してもよい (MAY)。特に、ユニキャストのリクエストURIは、グループリクエストURIのオーソリティコンポーネント内のホストサブコンポーネントを、キャッシュされた応答メッセージの送信元アドレスに置き換えることで得られます。

* A client MAY revalidate a cached response by making a GET or FETCH request on the related unicast request URI.

* クライアントは、関連するユニキャストのリクエストURIに対してGETまたはFETCHリクエストを行うことで、キャッシュされた応答を再検証してもよい (MAY)。

Note that, in the presence of proxies, doing any of the above (optional) unicast requests requires the client to distinguish the different responses to a group request, as well as to distinguish the different origin servers that responded. In turn, this requires additional means to provide the client with information about the origin server of each response. As an example, this is accomplished when using the forward-proxying method provided by the realization of proxy specified in [CoAP-GROUP-PROXY].

プロキシが存在する場合、上記の(任意の)ユニキャストリクエストのいずれかを行うには、クライアントが、グループリクエストに対する異なる応答を区別し、かつ応答を返した異なるオリジンサーバを区別する必要があることに注意してください。そのためには、各応答のオリジンサーバに関する情報をクライアントに提供する追加の手段が必要になります。一例として、[CoAP-GROUP-PROXY] で規定されているプロキシの実現が提供するフォワードプロキシ方式を使用する場合に、これが達成されます。

The following subsections define the freshness model and validation model to use for cached responses, which update the models defined in Sections 5.6.1 and 5.6.2 of [RFC7252], respectively.

以下のサブセクションでは、キャッシュされた応答に使用する鮮度モデルと検証モデルを定義します。これらは、それぞれ [RFC7252] のセクション5.6.1および5.6.2で定義されているモデルを更新するものです。

3.2.1. Freshness Model

3.2.1. 鮮度モデル

For caching of group communication responses at client endpoints, the same freshness model relying on the Max-Age Option as defined in Section 5.6.1 of [RFC7252] applies, and the multicast caching rules of Section 8.2.1 of [RFC7252] apply except for the one discussed below.

クライアントエンドポイントでのグループ通信の応答のキャッシュには、[RFC7252] のセクション5.6.1で定義されているMax-Age Optionに依拠する同じ鮮度モデルが適用され、[RFC7252] のセクション8.2.1のマルチキャストのキャッシュ規則が、以下で説明する1つを除いて適用されます。

In Section 8.2.1 of [RFC7252], it is stated that, regardless of the presence of cached responses to the group request, the client endpoint will always send out a new group request onto the network because new members may have joined the CoAP group since the last group request to the same CoAP group or resource. That is, a request is never served from cached responses only. This document updates [RFC7252] by adding the following exception case, where a client endpoint MAY serve a request by using cached responses only and not send out a new group request onto the network:

[RFC7252] のセクション8.2.1では、グループリクエストに対するキャッシュ済み応答が存在するかどうかにかかわらず、クライアントエンドポイントは常に新しいグループリクエストをネットワークに送信すると述べられています。これは、同じCoAPグループまたはリソースに対する前回のグループリクエスト以降に、新しいメンバーがCoAPグループに参加している可能性があるためです。つまり、リクエストがキャッシュ済み応答のみで処理されることはありません。本文書は、次の例外ケースを追加することで [RFC7252] を更新します。このケースでは、クライアントエンドポイントは、キャッシュ済み応答のみを使用してリクエストを処理し、新しいグループリクエストをネットワークに送信しなくてもよい (MAY) ものとします。

* The client knows all current CoAP servers that are members of the CoAP group; for each group member, the client's cache currently stores a fresh response.

* クライアントが、CoAPグループのメンバーである現在のCoAPサーバをすべて把握しており、各グループメンバーについて、クライアントのキャッシュに現在有効な(鮮度のある)応答が保存されている場合。

The client in the case above can use different possible methods to determine the CoAP servers that are currently members of the CoAP group. For example, consistent with enforced policies, the client can retrieve that information from the group's configuring entity, or the client may be able to monitor group joining protocol exchanges. The specific method used by the client is out of the scope of this document.

上記のケースにおけるクライアントは、現在CoAPグループのメンバーであるCoAPサーバを特定するために、さまざまな方法を用いることができます。たとえば、適用されているポリシーに沿って、クライアントはその情報をグループの構成エンティティから取得することも、グループ参加プロトコルのやり取りを監視できることもあります。クライアントが用いる具体的な方法は、本文書のスコープ外です。

For caching at proxies, a possible freshness model is defined as part of the realization of proxy specified in [CoAP-GROUP-PROXY].

プロキシでのキャッシュについては、[CoAP-GROUP-PROXY] で規定されるプロキシの実現の一部として、可能な鮮度モデルが定義されています。

3.2.2. Validation Model

3.2.2. 検証モデル

For validation of cached group communication responses at client endpoints, the multicast validation rules in Section 8.2.1 of [RFC7252] apply, except for the last paragraph, which states "A GET request to a multicast group MUST NOT contain an ETag option". This document updates Section 8.2.1 of [RFC7252] by allowing a group request to contain ETag Options as specified below.

クライアントエンドポイントにおけるキャッシュ済みグループ通信応答の検証には、[RFC7252] のセクション8.2.1のマルチキャスト検証規則が適用されます。ただし、「マルチキャストグループへのGETリクエストはETagオプションを含んではなりません (MUST NOT)」と述べている最後の段落は除きます。本文書は、以下に規定するとおりグループリクエストにETagオプションを含めることを認めることで、[RFC7252] のセクション8.2.1を更新します。

For validation at proxies, a possible validation model is defined as part of the realization of proxy specified in [CoAP-GROUP-PROXY].

プロキシでの検証については、[CoAP-GROUP-PROXY] で規定されるプロキシの実現の一部として、可能な検証モデルが定義されています。

3.2.2.1. ETag Option in a Group Request/Response

3.2.2.1. グループリクエスト/レスポンスにおけるETagオプション

A client endpoint MAY include one or more ETag Options in a GET or FETCH group request to validate one or more stored responses it has cached. In the case that two or more servers in the CoAP group have responded to a past request to the same resource with an identical ETag value, it is the responsibility of the client to handle this case. In particular, if the client wishes to use a group request for validating a response from server 1 (with ETag value N) and for receiving a fresh response from server 2, there is no way to achieve this using a single group request. This wish could occur if the client has a cached representation for server 1 but has no cached representation for server 2, for example, because the client needed to remove older items from its cache to make space for newer resource representations.

クライアントエンドポイントは、キャッシュしている1つ以上の保存済み応答を検証するために、GETまたはFETCHのグループリクエストに1つ以上のETagオプションを含めてもよい (MAY)。CoAPグループ内の2台以上のサーバが、同じリソースに対する過去のリクエストに同一のETag値で応答した場合、このケースへの対処はクライアントの責任です。特に、クライアントがサーバ1(ETag値N)からの応答を検証しつつ、サーバ2から新しい応答を受け取るためにグループリクエストを使いたい場合、単一のグループリクエストでこれを実現する方法はありません。このような要望は、たとえばクライアントが新しいリソース表現のための空きを作るためにキャッシュから古い項目を削除する必要があった結果、サーバ1についてはキャッシュ済みの表現があるがサーバ2についてはない場合に生じ得ます。

A client that uses the ETag Option for validating stored responses SHOULD perform the following actions in order to avoid problems caused by identical ETag values.

保存済み応答の検証にETagオプションを使用するクライアントは、同一のETag値によって生じる問題を避けるために、次の動作を行うべきです (SHOULD)。

* The client repeats a request if a particular server returned 2.03 (Valid) with an ETag value that is not in the client's cache (for that server). The repeated request excludes the "duplicate" ETag value. It can be either a group request or a unicast request to the particular server.

* あるサーバが、クライアントの(そのサーバに対する)キャッシュにないETag値とともに2.03 (Valid) を返した場合、クライアントはリクエストを再送します。再送するリクエストでは、「重複した」ETag値を除外します。これは、グループリクエストでも、当該サーバへのユニキャストリクエストでもかまいません。

* The client marks a cached ETag value as "duplicated - not to be used for revalidation" as soon as another server responds with the same ETag value.

* 別のサーバが同じETag値で応答した時点で、クライアントはキャッシュ済みのETag値に「重複あり - 再検証には使用しない」という印を付けます。

A server endpoint MUST process an ETag Option in a GET or FETCH group request in the same way it processes an ETag Option for a unicast request. A server endpoint that includes an ETag Option in a response to a group request SHOULD construct the ETag Option value in such a way that the value will be unique to this particular server with a high probability. This practically prevents a collision of the ETag values from different servers in the same CoAP group and application group, which in turn allows the client to effectively validate a particular response of an origin server. This can be accomplished, for example, by embedding a compact ID (or hash) of the server within the ETag value, where the ID is unique (or unique with a high probability) in the scope of the CoAP/application groups.

サーバエンドポイントは、GETまたはFETCHのグループリクエスト内のETagオプションを、ユニキャストリクエストのETagオプションを処理するのと同じ方法で処理しなければなりません (MUST)。グループリクエストへの応答にETagオプションを含めるサーバエンドポイントは、その値がこの特定のサーバに対して高い確率で一意となるように、ETagオプションの値を構成すべきです (SHOULD)。これにより、同じCoAPグループおよびアプリケーショングループ内の異なるサーバ間でETag値が衝突することが実質的に防がれ、結果としてクライアントはオリジンサーバからの特定の応答を効果的に検証できるようになります。これは、たとえば、サーバのコンパクトなID(またはハッシュ)をETag値の中に埋め込むことで実現できます。ここでIDは、CoAP/アプリケーショングループのスコープ内で一意(または高い確率で一意)です。

Note: A CoAP server implementation that is unaware of the updates to [RFC7252] made by this document will expect group requests to never contain an ETag Option (see Section 8.2.1 of [RFC7252]). Such a server treats an ETag Option in a group request as an unrecognized option per Sections 5.4 and 8.2.1 of [RFC7252], causing it to ignore this (elective) ETag Option regardless of its value, and processes the request normally as if that ETag Option was not included.

注記:本文書による [RFC7252] への更新を認識していないCoAPサーバ実装は、グループリクエストにETagオプションが含まれることは決してないと想定します ([RFC7252] のセクション8.2.1を参照)。そのようなサーバは、[RFC7252] のセクション5.4および8.2.1に従い、グループリクエスト内のETagオプションを認識できないオプションとして扱います。その結果、この(エレクティブな)ETagオプションを値にかかわらず無視し、そのETagオプションが含まれていなかったかのようにリクエストを通常どおり処理します。

3.3. URI Path Selection

3.3. URIパスの選択

The URI Path used in a group request is preferably a path that is known to be supported across all members of a CoAP group. However, there are valid use cases where a group request is known to be successful only for a subset of the CoAP group. For instance, the subset may include only members of a specific application group, while the members of the CoAP group for which the request is unsuccessful (for example, because they are outside the target application group) either suppress a response as per the default behavior from Section 3.1.2 or reply with an error response, e.g., when the default behavior is overridden by a No-Response Option [RFC7967] included in the group request.

グループリクエストで使用されるURIパスは、CoAPグループのすべてのメンバーでサポートされていることが分かっているパスであることが望ましいです。しかし、グループリクエストがCoAPグループの一部のサブセットに対してのみ成功することが分かっている、正当なユースケースもあります。たとえば、サブセットが特定のアプリケーショングループのメンバーのみを含む場合があります。このとき、リクエストが成功しないCoAPグループのメンバー(たとえば、対象のアプリケーショングループの外にいるため)は、セクション3.1.2の既定の動作に従って応答を抑制するか、あるいは、グループリクエストに含まれるNo-Responseオプション [RFC7967] によって既定の動作が上書きされている場合などに、エラー応答を返します。

3.4. Port Selection for UDP Transport

3.4. UDPトランスポートにおけるポートの選択

A server that is a member of a CoAP group listens for CoAP request messages on the group's IP multicast address and port number. The group's port number is usually the CoAP default UDP port number 5683 [Port.Number] or alternatively another non-default UDP port number if configured. If any is assigned in the future, a UDP port number designated for multicast applications can be used as the group's port number (e.g., see [MCAST-APP-PORT]).

CoAPグループのメンバーであるサーバは、そのグループのIPマルチキャストアドレスおよびポート番号でCoAPリクエストメッセージを待ち受けます。グループのポート番号は通常、CoAPの既定のUDPポート番号5683 [Port.Number] ですが、設定されていれば別の非既定のUDPポート番号となる場合もあります。将来割り当てられた場合には、マルチキャストアプリケーション用に指定されたUDPポート番号をグループのポート番号として使用できます(例として [MCAST-APP-PORT] を参照)。

Regardless of the method that is used for selecting the group's port number, the same port number is used as the destination port number by all CoAP clients when sending group requests to the CoAP group, thus addressing all CoAP servers that are members of that group.

グループのポート番号を選択する方法にかかわらず、CoAPグループにグループリクエストを送信する際には、すべてのCoAPクライアントが同じポート番号を宛先ポート番号として使用します。これにより、そのグループのメンバーであるすべてのCoAPサーバが宛先となります。

It is NOT RECOMMENDED to create multiple CoAP groups by using different UDP ports with the same IP multicast address. An allowed exception is the presence of constrained devices whose network stack only supports a limited number of multicast address subscriptions. The use of such an approach for creating CoAP groups incurs additional processing overhead on each CoAP server participating in at least one of these groups: Messages to groups that are not of interest to the node are only discarded at the higher transport (UDP) layer instead of directly at the Internet (IP) layer. Also, a constrained network may be additionally burdened in this case with multicast traffic that is eventually discarded at the UDP layer by most nodes.

同じIPマルチキャストアドレスで異なるUDPポートを使用して複数のCoAPグループを作成することは推奨されません (NOT RECOMMENDED)。許容される例外は、ネットワークスタックがサポートするマルチキャストアドレスの購読数が限られている制約のあるデバイスが存在する場合です。このような方法でCoAPグループを作成すると、これらのグループの少なくとも1つに参加している各CoAPサーバに追加の処理オーバーヘッドが生じます。つまり、ノードが関心を持たないグループ宛てのメッセージが、インターネット (IP) 層で直接ではなく、より上位のトランスポート (UDP) 層で初めて破棄されることになります。また、この場合、制約のあるネットワークは、大半のノードによって最終的にUDP層で破棄されるマルチキャストトラフィックによって、さらに負荷がかかる可能性があります。

The port number 5684 is dedicated for DTLS-secured unicast CoAP [Port.Number] and MUST NOT be used for any CoAP group communication.

ポート番号5684は、DTLSで保護されたユニキャストCoAP専用であり [Port.Number]、いかなるCoAPグループ通信にも使用してはなりません (MUST NOT)。

For a CoAP server node that offers resources for resource discovery (see Section 2.4 of [RFC7252]), the default port number 5683 must be supported (see Section 7.1 of [RFC7252]) for the "All CoAP Nodes" IP multicast addresses (see Section 12.8 of [RFC7252]), as detailed in Section 3.9.

リソースディスカバリ ([RFC7252] のセクション2.4を参照)のためのリソースを提供するCoAPサーバノードでは、セクション3.9で詳述するとおり、「All CoAP Nodes」IPマルチキャストアドレス ([RFC7252] のセクション12.8を参照)に対して、既定のポート番号5683をサポートしなければなりません ([RFC7252] のセクション7.1を参照)。

3.5. Proxy Operation

3.5. プロキシの動作

This section defines the foundation of how proxies operate in a group communication scenario.

本セクションでは、グループ通信シナリオにおいてプロキシがどのように動作するかの基礎を定義します。

In particular, forward-proxies and reverse-proxies are separately considered in Sections 3.5.1 and 3.5.2, respectively. Furthermore, Section 3.5.3 discusses the case where a client sends a group request to multiple proxies at once. When sending a CoAP group request over UDP/IP multicast, a proxy MUST conform to the congestion control requirements compiled in Section 3.6 of this document. Security considerations that apply when using a proxy are discussed later in Section 5.3.

特に、フォワードプロキシとリバースプロキシは、それぞれセクション3.5.1と3.5.2で個別に扱います。さらに、セクション3.5.3では、クライアントが複数のプロキシに同時にグループリクエストを送信するケースを論じます。UDP/IPマルチキャストでCoAPグループリクエストを送信する場合、プロキシは、本文書のセクション3.6にまとめられた輻輳制御要件に準拠しなければなりません (MUST)。プロキシを使用する際に適用されるセキュリティ上の考慮事項は、後のセクション5.3で論じます。

Further details that are relevant to operate such proxies are not defined here. Other specifications can build on the common denominator provided by this document and define specific realizations of proxies that operate in a group communication scenario. As an example, a realization of such proxy is specified in [CoAP-GROUP-PROXY].

そのようなプロキシを運用するうえで関連するさらなる詳細は、ここでは定義しません。他の仕様は、本文書が提供する共通部分を土台として、グループ通信シナリオで動作するプロキシの具体的な実現を定義できます。一例として、そのようなプロキシの実現が [CoAP-GROUP-PROXY] で規定されています。

3.5.1. Forward-Proxies

3.5.1. フォワードプロキシ

CoAP enables a client to request a forward-proxy to process a CoAP request on its behalf, as described in Sections 5.7.2 and 8.2.2 of [RFC7252].

CoAPでは、[RFC7252] のセクション5.7.2および8.2.2に記載されているとおり、クライアントがフォワードプロキシに自身に代わってCoAPリクエストを処理するよう要求できます。

When intending to reach a CoAP group through a proxy, the client sends a unicast CoAP group request to the proxy. The group URI where the request has to be forwarded to is specified in the request, either as a string in the Proxy-Uri Option or through the Proxy-Scheme Option with the group URI constructed from the usual Uri-* options. Then, the forward-proxy resolves the group URI to a destination CoAP group, i.e., it sends (e.g., multicasts) the CoAP group request to the group URI, receives the responses, and forwards all the individual (unicast) responses back to the client.

プロキシを介してCoAPグループに到達しようとする場合、クライアントはプロキシにユニキャストのCoAPグループリクエストを送信します。リクエストの転送先となるグループURIは、Proxy-Uriオプション内の文字列として、または通常のUri-*オプションから構成されたグループURIを伴うProxy-Schemeオプションを通じて、リクエスト内で指定されます。続いてフォワードプロキシは、グループURIを宛先のCoAPグループに解決します。すなわち、グループURIにCoAPグループリクエストを送信(例: マルチキャスト)し、応答を受信して、個々の(ユニキャストの)応答をすべてクライアントに転送します。

Issues and limitations of this approach are compiled in Appendix E. The forward-proxying method provided by the realization of proxy specified in [CoAP-GROUP-PROXY] uses this approach and addresses such issues and limitations.

この方法の問題点と制限事項は、付録Eにまとめています。[CoAP-GROUP-PROXY] で規定されるプロキシの実現が提供するフォワードプロキシ方式は、この方法を用いており、これらの問題点と制限事項に対処しています。

An alternative approach is for the proxy to collect all the individual (unicast) responses to a CoAP group request and then send back only a single (aggregated) response to the client. Issues and limitations of this alternative approach are also compiled in Appendix E.

代替の方法として、プロキシがCoAPグループリクエストに対する個々の(ユニキャストの)応答をすべて収集し、その後クライアントに単一の(集約された)応答のみを返す方法があります。この代替方法の問題点と制限事項も、付録Eにまとめています。

It is RECOMMENDED that a CoAP proxy processes a request to be forwarded to a group URI only if it is explicitly enabled to do so. If such functionality is not explicitly enabled, the default response returned to the client is 5.01 (Not Implemented). Furthermore, a proxy SHOULD be explicitly configured (e.g., by allow-listing and/or client authentication) to allow proxied CoAP group requests only from a specific client(s).

CoAPプロキシは、グループURIに転送されるリクエストを、明示的に有効化されている場合にのみ処理することが推奨されます (RECOMMENDED)。そのような機能が明示的に有効化されていない場合、クライアントに返される既定の応答は5.01 (Not Implemented) です。さらに、プロキシは、プロキシ経由のCoAPグループリクエストを特定のクライアントからのみ許可するように、(たとえば、許可リストやクライアント認証によって)明示的に構成されるべきです (SHOULD)。

The operation of HTTP-to-CoAP proxies for multicast CoAP requests is specified in Sections 8.4 and 10.1 of [RFC8075]. In this case, the "application/http" media type is used to let the proxy return multiple CoAP responses -- each translated to an HTTP response -- back to the HTTP client. Resulting issues and limitations are also compiled in Appendix E.

マルチキャストCoAPリクエストに対するHTTP-to-CoAPプロキシの動作は、[RFC8075] のセクション8.4および10.1で規定されています。この場合、プロキシが複数のCoAP応答(それぞれがHTTP応答に変換されたもの)をHTTPクライアントに返せるようにするため、「application/http」メディアタイプが使用されます。これによって生じる問題点と制限事項も、付録Eにまとめています。

The forward-proxying method for HTTP-to-CoAP proxies provided by the realization of proxy specified in [CoAP-GROUP-PROXY] addresses such issues and limitations.

[CoAP-GROUP-PROXY] で規定されるプロキシの実現が提供する、HTTP-to-CoAPプロキシ向けのフォワードプロキシ方式は、これらの問題点と制限事項に対処しています。

3.5.2. Reverse-Proxies

3.5.2. リバースプロキシ

CoAP enables the use of a reverse-proxy, as an endpoint that stands in for one or more other servers, and satisfies requests on behalf of these, doing any necessary translations (see Section 5.7.3 of [RFC7252]).

CoAPでは、1つ以上の他のサーバの代わりとなるエンドポイントとしてリバースプロキシを使用でき、リバースプロキシはこれらに代わってリクエストを満たし、必要な変換を行います ([RFC7252] のセクション5.7.3を参照)。

In a group communication scenario, a reverse-proxy can rely on its configuration and/or on information in a request from a client in order to determine that a group request has to be sent to servers in a CoAP group over a one-to-many transport such as UDP/IP multicast.

グループ通信シナリオにおいて、リバースプロキシは、UDP/IPマルチキャストなどの1対多トランスポートを介してCoAPグループ内のサーバにグループリクエストを送信する必要があると判断するために、自身の構成および/またはクライアントからのリクエスト内の情報に依拠できます。

One typical implementation is to allocate specific resources on the reverse-proxy to application groups. A client can then select the application group, and group resource to access, using the URI path in its group request. For example, a request to /proxy/APPNAME/res1 could give access to resource /res1 in the application group APPNAME. In this example, the proxy automatically selects the associated CoAP group.

典型的な実装の1つは、リバースプロキシ上の特定のリソースをアプリケーショングループに割り当てることです。クライアントは、グループリクエスト内のURIパスを使用して、アクセスするアプリケーショングループとグループリソースを選択できます。たとえば、/proxy/APPNAME/res1 へのリクエストにより、アプリケーショングループAPPNAME内のリソース /res1 にアクセスできます。この例では、プロキシが関連するCoAPグループを自動的に選択します。

In general, using the URI path to select the application group and/or CoAP group is an efficient way to access a reverse-proxy. Other methods are possible, such as using the URI authority component: This requires configuration of more elements on the reverse-proxy, like multiple virtual servers, multiple IP addresses, and/or multiple port numbers.

一般に、URIパスを使用してアプリケーショングループおよび/またはCoAPグループを選択することは、リバースプロキシにアクセスする効率的な方法です。URIのオーソリティコンポーネントを使用するなど、他の方法も可能です。この場合、複数の仮想サーバ、複数のIPアドレス、および/または複数のポート番号など、リバースプロキシ上でより多くの要素を構成する必要があります。

The reverse-proxy practically stands in for a CoAP group, thus preventing the client from reaching the group as a whole with a single group request directly addressed to that group (e.g., via multicast). In addition to that, the reverse-proxy may also stand in for each of the individual servers in the CoAP group (e.g., if acting as firewall), thus also preventing the client from individually reaching any server in the group with a unicast request directly addressed to that server.

リバースプロキシは事実上CoAPグループの代理となるため、クライアントが、そのグループ宛ての単一のグループリクエストを直接(例:マルチキャストで)送ってグループ全体に到達することはできなくなります。これに加えて、リバースプロキシは(例:ファイアウォールとして動作する場合)CoAPグループ内の個々のサーバの代理にもなりうるため、クライアントが、特定のサーバ宛てのユニキャストリクエストを直接送ってグループ内の個々のサーバに到達することもできなくなります。

For a reverse-proxy that sends a group request to servers in a CoAP group, the considerations as defined in Section 5.7.3 of [RFC7252] hold. Resulting issues and limitations are compiled in Appendix F. The reverse-proxying method provided by the realization of proxy specified in [CoAP-GROUP-PROXY] uses this approach and addresses such issues and limitations.

CoAPグループ内のサーバにグループリクエストを送るリバースプロキシについては、[RFC7252] のセクション 5.7.3 に定義された考慮事項が当てはまります。その結果生じる問題と制限は付録 F にまとめています。[CoAP-GROUP-PROXY] で規定されるプロキシの実現によるリバースプロキシ方式は、このアプローチを用いており、それらの問題と制限に対処しています。

A client might reuse a Token value in a valid new request to the reverse-proxy while the reverse-proxy still has an ongoing group communication request for this client with the same Token value (i.e., its time period for response collection has not ended yet). If the client does so and the new request is not an Observe request (see Section 3.7), the reverse-proxy MUST stop the ongoing request and associated response forwarding; it MUST NOT forward the new request to the servers in the CoAP group; and it MUST send a 4.00 (Bad Request) error response to the client. The diagnostic payload of the error response SHOULD indicate to the client that the resource is a reverse-proxy resource and that, for this reason, immediate Token reuse is not possible.

クライアントが、リバースプロキシに対する有効な新しいリクエストで、トークン(Token)値を再利用することがあります。このとき、リバースプロキシには、同じトークン(Token)値を持つそのクライアント向けのグループ通信リクエストがまだ進行中です(つまり、応答収集の期間がまだ終了していません)。クライアントがそうしており、かつ新しいリクエストがObserveリクエスト(セクション 3.7 を参照)でない場合、リバースプロキシは、進行中のリクエストと関連する応答の転送を停止しなければなりません (MUST)。また、新しいリクエストをCoAPグループ内のサーバに転送してはなりません (MUST NOT)。さらに、クライアントに4.00 (Bad Request) エラー応答を送信しなければなりません (MUST)。エラー応答の診断ペイロードは、そのリソースがリバースプロキシのリソースであり、そのため直後のトークン(Token) の再利用はできないことを、クライアントに示すべきです (SHOULD)。

The last two paragraphs of Section 3.5.1 also apply for the operation of HTTP-to-CoAP reverse-proxies.

セクション 3.5.1 の最後の2つの段落は、HTTP-to-CoAPリバースプロキシの動作にも適用されます。

3.5.3. Single Group Request to Multiple Proxies

3.5.3. 複数のプロキシに対する単一のグループリクエスト

A client might send a group request to multiple proxies at once (e.g., over IP multicast), so that each of those proxies forwards it to the servers in the CoAP group. Assuming that no message loss occurs and that N proxies receive and forward the group request, this has the following implications.

クライアントが、複数のプロキシに対して(例:IPマルチキャストで)一度にグループリクエストを送り、それぞれのプロキシがそれをCoAPグループ内のサーバに転送することがあります。メッセージの損失が発生せず、N個のプロキシがグループリクエストを受信して転送すると仮定すると、次のような影響があります。

* Each server receives N copies of the group request, i.e., one copy from each proxy.

* 各サーバはグループリクエストのコピーをN個受信します。つまり、各プロキシから1つずつ受信します。

* If the NoSec mode is used (see Section 4), each server treats each received copy of the group request as a different request from a different client. As a result:

* NoSecモードが使用される場合(セクション 4 を参照)、各サーバは、受信したグループリクエストの各コピーを、異なるクライアントからの異なるリクエストとして扱います。その結果、次のようになります。

- Each server can reply to each of the N received requests with multiple responses over time (see Section 3.1.6). All the responses to the same received request are sent to the same proxy that has forwarded that request, which in turn relays those responses to the client.

- 各サーバは、受信したN個のリクエストのそれぞれに対して、時間をおいて複数の応答を返すことができます(セクション 3.1.6 を参照)。同じ受信リクエストに対するすべての応答は、そのリクエストを転送した同じプロキシに送られ、そのプロキシが順次それらの応答をクライアントに中継します。

- From each proxy, the client receives all the responses to the group request that each server has sent to that proxy. Even if the client is able to distinguish the different servers originating the responses (e.g., leveraging the approach used by the realization of proxy specified in [CoAP-GROUP-PROXY]), the client would receive the same response content originated by each server N times, as relayed by the N proxies.

- クライアントは、各プロキシから、各サーバがそのプロキシに送ったグループリクエストへのすべての応答を受信します。クライアントが(例:[CoAP-GROUP-PROXY] で規定されるプロキシの実現が用いるアプローチを活用して)応答の送信元となった異なるサーバを区別できたとしても、クライアントは、各サーバが発した同じ応答内容を、N個のプロキシによる中継を通じてN回受信することになります。

* If secure group communication with Group OSCORE is used (see Section 5), each server is able to determine that each received copy of the group request is in fact originated by the same client. In particular, by leveraging the replay protection provided by Group OSCORE, each server is able to determine that all such received requests are copies of exactly the same group request.

* Group OSCOREによるセキュアなグループ通信が使用される場合(セクション 5 を参照)、各サーバは、受信したグループリクエストの各コピーが実際には同じクライアントから発せられたものであると判断できます。特に、Group OSCOREが提供するリプレイ保護を活用することで、各サーバは、受信したそれらのリクエストがすべてまったく同じグループリクエストのコピーであると判断できます。

As a result, each server accepts only the first verified copy of the group request received from one of the proxies while discarding as replay any later copies received from any other proxy.

その結果、各サーバは、いずれかのプロキシから受信した、検証済みの最初のグループリクエストのコピーだけを受け入れ、他のプロキシから後で受信したコピーはリプレイとして破棄します。

After that, the server can reply to the accepted request with multiple responses over time (see Section 3.1.6). All those responses are sent to the same proxy that forwarded the only accepted request, and that in turn relays those responses to the client.

その後、サーバは、受け入れたリクエストに対して、時間をおいて複数の応答を返すことができます(セクション 3.1.6 を参照)。それらの応答はすべて、受け入れた唯一のリクエストを転送した同じプロキシに送られ、そのプロキシが順次それらの応答をクライアントに中継します。

As a consequence, for each server, the client receives responses originated by that server only from one proxy. That is, the client receives a certain response content only once, like in the case with only one proxy.

その結果、クライアントは、各サーバについて、そのサーバが発した応答を1つのプロキシからのみ受信します。つまり、クライアントは、プロキシが1つだけの場合と同様に、ある応答内容を1回だけ受信します。

3.6. Congestion Control

3.6. 輻輳制御

CoAP group requests could result in a multitude of responses from different nodes, potentially causing congestion. Therefore, both the sending of CoAP group requests and the sending of the unicast CoAP responses to these group requests SHOULD be conservatively controlled.

CoAPグループリクエストは、異なるノードからの多数の応答を引き起こし、輻輳を招く可能性があります。したがって、CoAPグループリクエストの送信と、それらのグループリクエストに対するユニキャストCoAP応答の送信の両方を、保守的に制御すべきです (SHOULD)。

CoAP [RFC7252] reduces IP multicast-specific congestion risks through the following measures, which the present document inherits and extends as appropriate:

CoAP [RFC7252] は、次の措置によってIPマルチキャスト特有の輻輳リスクを低減しています。本ドキュメントはこれらの措置を継承し、適宜拡張します。

* A server may choose not to respond to an IP multicast request if there is nothing useful to respond, e.g., error or empty response (see Section 8.2 of [RFC7252]).

* サーバは、応答すべき有用な内容がない場合(例:エラーや空の応答)、IPマルチキャストリクエストに応答しないことを選択してもよいです([RFC7252] のセクション 8.2 を参照)。

* A server should limit the support for IP multicast requests to specific resources where multicast operation is required (see Section 11.3 of [RFC7252]).

* サーバは、マルチキャスト動作が必要なリソースに限って、IPマルチキャストリクエストのサポートを制限すべきです([RFC7252] のセクション 11.3 を参照)。

* An IP multicast request must be Non-confirmable (see Section 8.1 of [RFC7252]).

* IPマルチキャストリクエストはNon-confirmableでなければなりません([RFC7252] のセクション 8.1 を参照)。

* A response to an IP multicast request should be Non-confirmable (see Section 5.2.3 of [RFC7252]).

* IPマルチキャストリクエストへの応答はNon-confirmableであるべきです([RFC7252] のセクション 5.2.3 を参照)。

* A server does not respond immediately to an IP multicast request and should first wait for a time that is randomly picked within a predetermined time interval. Such time interval is called leisure period and its length is denoted as the Leisure (see Section 8.2 of [RFC7252]). This holds not only for the first response to an IP multicast request, but also to potential subsequent responses to that request (see Section 3.1.6), which are the "further responses" mentioned in Section 8.2 of [RFC7252].

* サーバは、IPマルチキャストリクエストにすぐには応答せず、まず、あらかじめ定められた時間間隔の中からランダムに選んだ時間だけ待つべきです。この時間間隔は猶予期間(leisure period) と呼ばれ、その長さはLeisureと表記されます([RFC7252] のセクション 8.2 を参照)。これは、IPマルチキャストリクエストに対する最初の応答だけでなく、そのリクエストに対する後続の応答(セクション 3.1.6 を参照)にも当てはまります。この後続の応答は、[RFC7252] のセクション 8.2 で言及されている「further responses」にあたります。

If further responses need to be sent based on the same multicast address membership, a new leisure period starts at the earliest after the previous one finishes.

同じマルチキャストアドレスのメンバーシップに基づいて後続の応答を送る必要がある場合、新しい猶予期間は、早くても直前の猶予期間が終了した後に開始されます。

The transmission parameter DEFAULT_LEISURE MAY be used to define the Leisure when it cannot be computed otherwise (see Section 3.6.1).

Leisureを他の方法で計算できない場合、Leisureを定義するために送信パラメータDEFAULT_LEISUREを使用してもよいです (MAY)(セクション 3.6.1 を参照)。

This document also defines these measures to be applicable to alternative transports (other than IP multicast) if not defined otherwise. Updates related to Leisure are described in Section 3.6.1.

本ドキュメントは、別途定義されていない限り、これらの措置が代替トランスポート(IPマルチキャスト以外)にも適用可能であると定めます。Leisureに関する更新はセクション 3.6.1 に記述します。

CoAP also defines non-multicast-specific congestion control measures that also apply to the IP multicast case:

CoAPは、IPマルチキャストの場合にも適用される、マルチキャスト固有ではない輻輳制御措置も定義しています。

* The transmission parameter NSTART defined in Section 4.7 of [RFC7252] limits "the number of simultaneous outstanding interactions ... to a given server". For the IP multicast case, a "given server" is to be understood as a "given CoAP group", i.e., a set of CoAP endpoints where each endpoint is configured to receive CoAP group messages that are sent to the group's associated IP multicast address and UDP port (see Section 2.1.1). The same default value of NSTART=1 (Section 4.8 of [RFC7252]) applies for the group communication case.

* [RFC7252] のセクション 4.7 で定義される送信パラメータNSTARTは、「特定のサーバに対する同時の未完了のやり取りの数」を制限します。IPマルチキャストの場合、「特定のサーバ」は「特定のCoAPグループ」、すなわち、各エンドポイントがそのグループに関連付けられたIPマルチキャストアドレスとUDPポート宛てに送られるCoAPグループメッセージを受信するよう構成されたCoAPエンドポイントの集合として理解されます(セクション 2.1.1 を参照)。グループ通信の場合にも、NSTART=1という同じデフォルト値が適用されます([RFC7252] のセクション 4.8)。

* The transmission parameter PROBING_RATE (Section 4.7 of [RFC7252]) limits the average data rate in sending to another endpoint that does not respond, e.g., to a Non-confirmable request such as a group request. Therefore, an average transmission data rate PROBING_RATE is not to be exceeded by a client that does not receive a response from any server in the targeted CoAP group. The same default value of PROBING_RATE=1 byte/second (Section 4.8 of [RFC7252]) applies for the group communication case.

* 送信パラメータPROBING_RATE([RFC7252] のセクション 4.7)は、応答しない他のエンドポイント(例:グループリクエストなどのNon-confirmableリクエストの宛先)に送信する際の平均データレートを制限します。したがって、対象のCoAPグループ内のどのサーバからも応答を受信しないクライアントは、平均送信データレートPROBING_RATEを超えてはなりません。グループ通信の場合にも、PROBING_RATE=1バイト/秒という同じデフォルト値が適用されます([RFC7252] のセクション 4.8)。

Note that the transmission parameter values for NSTART, DEFAULT_LEISURE, and PROBING_RATE may be configured to values specific to the application environment (including dynamically adjusted values); however, the configuration method is out of the scope of this document. This is unchanged from Section 4.8.1 of [RFC7252].

NSTART、DEFAULT_LEISURE、PROBING_RATEの送信パラメータ値は、アプリケーション環境に固有の値(動的に調整される値を含む)に構成してもよいことに注意してください。ただし、その構成方法は本ドキュメントの対象外です。これは [RFC7252] のセクション 4.8.1 から変更されていません。

Independently of the transport used, additional requirements to reduce congestion risks defined in this document are as follows:

使用するトランスポートに関係なく、本ドキュメントで定義する、輻輳リスクを低減するための追加要件は次のとおりです。

* A server in a constrained network SHOULD only support group requests for resources that have a small representation (where the representation may be retrieved via a GET, FETCH, or POST method in the request). For example, "small" can be defined as a response payload limited to approximately 5% of the IP Maximum Transmission Unit (MTU) size so that it fits into a single link-layer frame in the case that IPv6 over Low-Power Wireless Personal Area Networks (6LoWPAN) (see Section 3.9.2) is used on the constrained network.

* 制約のあるネットワーク内のサーバは、小さな表現を持つリソースに対するグループリクエストのみをサポートすべきです (SHOULD)(表現はリクエスト内のGET、FETCH、またはPOSTメソッドで取得される場合があります)。例えば、制約のあるネットワークでIPv6 over Low-Power Wireless Personal Area Networks (6LoWPAN) が使用される場合(セクション 3.9.2 を参照)に単一のリンク層フレームに収まるよう、「小さい」を、IP Maximum Transmission Unit (MTU) サイズの約5%までに制限された応答ペイロードとして定義することができます。

* A server SHOULD minimize the payload size of a response to a group GET or FETCH request on "/.well-known/core" by using hierarchy in arranging link descriptions for the response. An example of this is given in Section 5 of [RFC6690].

* サーバは、"/.well-known/core" に対するグループGETまたはFETCHリクエストへの応答において、応答用のリンク記述を階層的に配置することで、ペイロードサイズを最小化すべきです (SHOULD)。この例は [RFC6690] のセクション 5 に示されています。

* A server MAY minimize the payload size of a response to a group GET or FETCH request (e.g., on "/.well-known/core") by using CoAP block-wise transfers [RFC7959] if the payload is long, returning only a first block of the CoRE Link Format description. For this reason, a CoAP client sending a CoAP group request to "/.well-known/core" SHOULD support block-wise transfers. See also Section 3.8.

* サーバは、ペイロードが長い場合、CoAPブロック単位転送 [RFC7959] を用い、CoRE Link Format記述の最初のブロックだけを返すことで、グループGETまたはFETCHリクエスト(例:"/.well-known/core" に対するもの)への応答のペイロードサイズを最小化してもよいです (MAY)。このため、"/.well-known/core" にCoAPグループリクエストを送るCoAPクライアントは、ブロック単位転送をサポートすべきです (SHOULD)。セクション 3.8 も参照してください。

* A client SHOULD be configured to use CoAP groups with the smallest possible IP multicast scope that fulfills the application needs. As an example, site-local scope is always preferred over global scope IP multicast if this fulfills the application needs. Similarly, realm-local scope is always preferred over site-local scope if this fulfills the application needs.

* クライアントは、アプリケーションの要件を満たす最小のIPマルチキャストスコープを持つCoAPグループを使用するよう構成されるべきです (SHOULD)。例えば、アプリケーションの要件を満たすのであれば、サイトローカルスコープは常にグローバルスコープのIPマルチキャストより優先されます。同様に、アプリケーションの要件を満たすのであれば、レルムローカルスコープは常にサイトローカルスコープより優先されます。

3.6.1. Default Leisure Updates

3.6.1. デフォルトのLeisureの更新

The leisure period as defined in Section 8.2 of [RFC7252] is preferably computed or configured on the CoAP server with a length Leisure that is suitable for the specific use case. The equation from that section for computing a rough lower bound for Leisure is:

[RFC7252] のセクション 8.2 で定義される猶予期間は、特定のユースケースに適した長さLeisureで、CoAPサーバ上で計算または構成されることが望ましいです。Leisureの大まかな下限を計算するための同セクションの式は次のとおりです。

       lb_Leisure = S * G / R
        

for a group size estimate G (which should be chosen conservatively), a target data transfer rate R (which should also be chosen conservatively), and an estimated response size S. Note that S is the estimated average response size for all responding servers for the given group request, not necessarily the known response size of the server's own response to the request. If the Leisure is not computed, then a configured/predefined value is used, which MAY be the default value DEFAULT_LEISURE in case no better or more suitable value is known. In [RFC7252], the default is calculated based on a baseline IEEE 802.15.4 [IEEE802.15.4] 6LoWPAN network situation with G=50, S=100, and R=1000; however, this is not explicitly written down.

ここで、Gはグループサイズの推定値(保守的に選ぶべきです)、Rは目標データ転送レート(これも保守的に選ぶべきです)、Sは推定応答サイズです。Sは、当該グループリクエストに対して応答するすべてのサーバの推定平均応答サイズであり、そのサーバ自身のリクエストに対する応答の既知のサイズとは限らないことに注意してください。Leisureが計算されない場合は、構成済み/事前定義の値が使用されます。より良い値やより適切な値が分からない場合、この値はデフォルト値DEFAULT_LEISUREでもよいです (MAY)。[RFC7252] では、デフォルト値は、G=50、S=100、R=1000という、IEEE 802.15.4 [IEEE802.15.4] 6LoWPANネットワークの基準的な状況に基づいて計算されていますが、これは明示的には書かれていません。

This document updates the calculation for DEFAULT_LEISURE by modifying the estimated response size (S) parameter to account for responses protected with Group OSCORE (see Section 5.1). In particular, the two cases of group mode and pairwise mode are considered.

本ドキュメントは、Group OSCOREで保護された応答(セクション 5.1 を参照)を考慮するよう、推定応答サイズ (S) パラメータを変更することで、DEFAULT_LEISUREの計算を更新します。特に、グループモードとペアワイズモードの2つの場合を考慮します。

When the group mode is used to protect a response, it is largely cautious to account for 100 additional bytes of security overhead, so that S becomes 200. When the pairwise mode is used to protect a response, it is largely cautious to account for 30 additional bytes of security overhead, so that S becomes 130. Using these new values for S in the calculation yields the following new default parameter values:

応答の保護にグループモードが使用される場合、セキュリティオーバーヘッドとして100バイトを追加して見積もれば十分に慎重であり、Sは200になります。応答の保護にペアワイズモードが使用される場合、セキュリティオーバーヘッドとして30バイトを追加して見積もれば十分に慎重であり、Sは130になります。計算でSにこれらの新しい値を使用すると、次の新しいデフォルトパラメータ値が得られます。

* DEFAULT_LEISURE = 10 seconds if the OSCORE group is set to use (also) the group mode.

* OSCOREグループが(も)グループモードを使用するよう設定されている場合、DEFAULT_LEISURE = 10秒。

* DEFAULT_LEISURE = 6.5 seconds if the OSCORE group is set to use only the pairwise mode.

* DEFAULT_LEISURE = OSCOREグループがペアワイズモードのみを使用するよう設定されている場合は6.5秒。

Obviously, the requirement to insert a new leisure period as described earlier in Section 3.6 does not apply to retransmissions of a Confirmable separate response (see Section 5.2.2 of [RFC7252]) but only to the initial CoAP message transmission when the CoAP retransmission counter is 0 (see Section 4.2 of [RFC7252]).

言うまでもなく、3.6節で前述した新たな猶予期間を挿入する要件は、Confirmableの個別レスポンス([RFC7252]の5.2.2節を参照)の再送には適用されず、CoAPの再送カウンタが0である最初のCoAPメッセージ送信にのみ適用されます([RFC7252]の4.2節を参照)。

3.7. Observing Resources

3.7. リソースの監視

The CoAP Observe Option [RFC7641] is a protocol extension of CoAP, which allows a CoAP client to retrieve a representation of a resource and automatically keep its knowledge of this representation up-to-date over a longer period of time. The client gets notified when the representation has changed. [RFC7641] does not mention whether the Observe Option can be combined with CoAP (multicast) group communication.

CoAP Observeオプション [RFC7641] はCoAPのプロトコル拡張であり、CoAPクライアントがリソースの表現を取得し、より長い期間にわたってこの表現に関する知識を自動的に最新の状態に保つことを可能にします。表現が変更されると、クライアントに通知されます。[RFC7641] は、Observeオプションを CoAP(マルチキャスト)グループ通信と組み合わせて使用できるかどうかについて言及していません。

This section updates [RFC7641] with the use of the Observe Option in a CoAP GET group request and defines normative behavior for both client and server. Consistent with Section 2.4 of [RFC8132], the same rules apply when using the Observe Option in a CoAP FETCH group request.

本節は、CoAP GETグループリクエストにおけるObserveオプションの使用について [RFC7641] を更新し、クライアントとサーバの双方に対する規範的な動作を定義します。[RFC8132] の2.4節と整合して、CoAP FETCHグループリクエストでObserveオプションを使用する場合にも同じ規則が適用されます。

Multicast Observe is a useful way to start observing a particular resource on all members of a CoAP group at the same time. If a group member does not have this particular resource, or it does not allow the GET or FETCH method on that resource, then the group member will either suppress a response as per the default behavior from Section 3.1.2 or reply with an error response -- 4.04 (Not Found) or 4.05 (Method Not Allowed), respectively -- e.g., when the default behavior is overridden by a No-Response Option [RFC7967] included in the group request.

マルチキャストObserveは、CoAPグループのすべてのメンバで特定のリソースの監視を同時に開始するための有用な方法です。グループメンバがこの特定のリソースを持っていない場合、またはそのリソースに対してGETメソッドやFETCHメソッドを許可していない場合、そのグループメンバは、3.1.2節の既定の動作に従って応答を抑制するか、それぞれ 4.04 (Not Found) または 4.05 (Method Not Allowed) というエラーレスポンスを返します。後者は、たとえば、グループリクエストに含まれるNo-Responseオプション [RFC7967] によって既定の動作が上書きされる場合です。

A client that sends a group GET or FETCH request with the Observe Option MAY repeat this request using the same Token value and the same Observe Option value in order to ensure that enough (or all) members of the CoAP group have been reached with the request. Repeating a request is discussed in more detail in Section 3.1.3. This is useful in the case that a number of members of the CoAP group did not respond to the initial request. The client MAY additionally use the same Message ID in the repeated request to avoid having members of the CoAP group that had already received the initial request respond again. Note that using the same Message ID in a repeated request will not be helpful in the case of loss of a response message, since the server that responded already will consider the repeated request as a duplicate message. On the other hand, if the client uses a different, fresh Message ID in the repeated request, then all the members of the CoAP group that receive this new message will typically respond again, which increases the network load.

Observeオプションを付けたグループGETリクエストまたはFETCHリクエストを送信するクライアントは、CoAPグループの十分な数の(またはすべての)メンバにリクエストが到達したことを確実にするために、同じトークン(Token)値と同じObserveオプション値を使用してこのリクエストを繰り返してもよい (MAY)。リクエストの繰り返しについては、3.1.3節でより詳しく説明しています。これは、CoAPグループの一部のメンバが最初のリクエストに応答しなかった場合に有用です。クライアントはさらに、すでに最初のリクエストを受信したCoAPグループのメンバが再度応答することを避けるために、繰り返しのリクエストで同じメッセージIDを使用してもよい (MAY)。なお、繰り返しのリクエストで同じメッセージIDを使用しても、応答メッセージが失われた場合には役に立たないことに注意してください。すでに応答したサーバは、繰り返されたリクエストを重複メッセージとみなすためです。一方、クライアントが繰り返しのリクエストで異なる新しいメッセージIDを使用した場合、この新しいメッセージを受信するCoAPグループのすべてのメンバは、通常、再度応答するため、ネットワーク負荷が増加します。

A client that has sent a group GET or FETCH request with the Observe Option MAY follow up by sending a new unicast CON request with the same Token value and same Observe Option value to a particular server in order to ensure that the particular server receives the request. This is useful if a specific member of the CoAP group did not respond to the initial group request, although it was expected to. In this case, the client MUST use a Message ID that differs from that of the initial group request message.

Observeオプションを付けたグループGETリクエストまたはFETCHリクエストを送信したクライアントは、特定のサーバがリクエストを確実に受信するために、同じトークン(Token)値と同じObserveオプション値を使用して、その特定のサーバに新たなユニキャストCONリクエストを送信して追跡してもよい (MAY)。これは、CoAPグループの特定のメンバが応答するはずであったにもかかわらず、最初のグループリクエストに応答しなかった場合に有用です。この場合、クライアントは、最初のグループリクエストメッセージのメッセージIDとは異なるメッセージIDを使用しなければなりません (MUST)。

Since the first Observe notification from a server can be lost, a client SHOULD be ready to begin receiving the Observe notifications from a server long after the Non-confirmable group request with the Observe Option was sent.

サーバからの最初のObserve通知が失われる可能性があるため、クライアントは、Observeオプションを付けたNon-confirmableのグループリクエストが送信されてからかなり後になってから、サーバからのObserve通知の受信を開始する準備をしておくべきです (SHOULD)。

At the same time, the loss of initial responses with the Observe Option from a server is less problematic than in the case where the group request is a regular request, i.e., when the request does not include the Observe Option. That is, as per Section 4.5 of [RFC7641], servers that have registered a client as an observer have to ensure that the client achieves eventual consistency with respect to the representation of the observed resource. This realistically relies on the sending of new Observe notifications, which are occasionally expected to be sent as Confirmable messages also in order to assess client aliveness (see below).

同時に、サーバからのObserveオプションを伴う最初のレスポンスが失われることは、グループリクエストが通常のリクエスト、すなわちObserveオプションを含まないリクエストである場合に比べて、問題が小さくなります。つまり、[RFC7641] の4.5節に従い、クライアントをオブザーバとして登録したサーバは、監視対象リソースの表現に関して、クライアントが最終的な一貫性に到達することを保証しなければなりません。これは現実的には新たなObserve通知の送信に依存しており、その通知は、クライアントの生存を確認するため(後述)に、時折Confirmableメッセージとしても送信されることが想定されます。

Furthermore, consistent with Section 3.3.1 of [RFC7641] and following its guidelines, a client MAY at any time send a new group/multicast GET or FETCH request with the same Token value and same Observe Option value as the original request. This allows the client to verify that it has an up-to-date representation of an observed resource and/or to re-register its interest to observe a resource.

さらに、[RFC7641] の3.3.1節と整合し、そのガイドラインに従って、クライアントは、元のリクエストと同じトークン(Token)値と同じObserveオプション値を使用して、新たなグループ/マルチキャストGETリクエストまたはFETCHリクエストをいつでも送信してもよい (MAY)。これにより、クライアントは、監視対象リソースの最新の表現を保持していることを検証したり、リソースを監視することへの関心を再登録したりできます。

In the above client behaviors, the Token value is kept identical to the initial request to avoid that a client is included in more than one entry in the list of observers (Section 4.1 of [RFC7641]).

上記のクライアントの動作では、クライアントがオブザーバのリスト([RFC7641] の4.1節)の複数のエントリに含まれてしまうことを避けるために、トークン(Token)値は最初のリクエストと同一のままにされます。

Before repeating a request as specified above, the client SHOULD wait for at least the expected round-trip time plus the leisure period defined in Section 8.2 of [RFC7252] to give the server time to respond.

上記のようにリクエストを繰り返す前に、クライアントは、サーバが応答する時間を確保するために、少なくとも想定されるラウンドトリップ時間に [RFC7252] の8.2節で定義されている猶予期間を加えた時間だけ待つべきです (SHOULD)。

A server that receives a GET or FETCH request with the Observe Option, for which request processing is successful, SHOULD respond to this request and not suppress the response. If a server adds a client (as a new entry) to the list of observers for a resource due to an Observe request, the server SHOULD respond to this request and SHOULD NOT suppress the response. An exception to the above is the overriding of response suppression according to a CoAP No-Response Option [RFC7967] specified by the client in the GET or FETCH request (see Section 3.1.2).

Observeオプションを付けたGETリクエストまたはFETCHリクエストを受信し、そのリクエストの処理が成功したサーバは、このリクエストに応答し、応答を抑制しないべきです (SHOULD)。サーバがObserveリクエストによってリソースのオブザーバのリストにクライアントを(新しいエントリとして)追加する場合、サーバはこのリクエストに応答すべきであり (SHOULD)、応答を抑制すべきではありません (SHOULD NOT)。上記の例外は、クライアントがGETリクエストまたはFETCHリクエストで指定したCoAP No-Responseオプション [RFC7967] による応答抑制の上書きです(3.1.2節を参照)。

When responding, a server SHOULD apply the leisure period defined in Section 8.2 of [RFC7252] (if DEFAULT_LEISURE is used, it is computed as defined in Section 3.6.1 of this document). This holds not only for the first response to the multicast Observe request but also for the subsequent Observe notifications. The Observe notifications in this case are the "further responses" mentioned in that section:

応答する際、サーバは [RFC7252] の8.2節で定義されている猶予期間を適用すべきです (SHOULD)(DEFAULT_LEISURE を使用する場合は、本文書の3.6.1節で定義されているとおりに計算されます)。これは、マルチキャストObserveリクエストに対する最初のレスポンスだけでなく、その後のObserve通知にも当てはまります。この場合のObserve通知は、同節で言及されている「さらなるレスポンス」に当たります。

If further responses need to be sent based on the same multicast address membership, a new leisure period starts at the earliest after the previous one finishes.

同じマルチキャストアドレスのメンバーシップに基づいてさらなるレスポンスを送信する必要がある場合、新たな猶予期間は、早くとも前の猶予期間が終了した後に開始します。

This implies that, while a server is still waiting for the random point in time chosen to send an Observe notification within a leisure period, a new Observe notification cannot be sent yet and remains pending if it is related to a different observation but to the same CoAP group.

これは、サーバが猶予期間内にObserve通知を送信するために選択したランダムな時点をまだ待っている間は、別の監視に関連するものの同じCoAPグループに対する新たなObserve通知はまだ送信できず、保留されたままになることを意味します。

Throughout the lifetime of an observation, a server MUST verify the aliveness of its observing clients and the continued interest of these clients in receiving the Observe notifications. To this end, the server occasionally sends a notification to a given observing client in a Confirmable message (see Sections 4.5 and 7 of [RFC7641] for details). This requirement overrides the regular behavior of sending Non-confirmable notifications in response to a Non-confirmable request. Obviously, the requirement to insert a new leisure period as described above does not apply to retransmissions of a Confirmable notification but only to the initial CoAP message transmission when the CoAP retransmission counter is 0 (see Section 4.2 of [RFC7252]).

監視の存続期間を通じて、サーバは、監視しているクライアントの生存と、これらのクライアントがObserve通知を受信し続けることへの関心とを検証しなければなりません (MUST)。このためにサーバは、時折、特定の監視中のクライアントにConfirmableメッセージで通知を送信します(詳細は [RFC7641] の4.5節および7節を参照)。この要件は、Non-confirmableリクエストに対してNon-confirmableの通知を送信するという通常の動作を上書きします。言うまでもなく、上記で説明した新たな猶予期間を挿入する要件は、Confirmableの通知の再送には適用されず、CoAPの再送カウンタが0である最初のCoAPメッセージ送信にのみ適用されます([RFC7252] の4.2節を参照)。

A client can use the unicast cancellation methods of Section 3.6 of [RFC7641] and stop the ongoing observation of a particular resource on members of a CoAP group. This can be used to remove specific observed servers, or even all servers in the CoAP group (using serial unicast to each known group member). In addition, a client MAY explicitly deregister from all those servers at once by sending a group/multicast GET or FETCH request that includes the Token value of the observation to be canceled and includes an Observe Option with the value set to 1 (deregister). In case not all the servers in the CoAP group received this deregistration request, either the unicast cancellation methods can be used at a later point in time or the group/multicast deregistration request MAY be repeated upon receiving another observe response from a server.

クライアントは、[RFC7641] の3.6節のユニキャストによる取り消し方法を使用して、CoAPグループのメンバ上の特定のリソースに対する進行中の監視を停止できます。これは、特定の監視対象サーバを削除するために、あるいは(既知の各グループメンバへの逐次ユニキャストを用いて)CoAPグループ内のすべてのサーバを削除するためにも使用できます。さらにクライアントは、取り消す監視のトークン(Token)値を含み、値を1(登録解除)に設定したObserveオプションを含むグループ/マルチキャストGETリクエストまたはFETCHリクエストを送信することで、それらすべてのサーバから一度に明示的に登録解除してもよい (MAY)。CoAPグループのすべてのサーバがこの登録解除リクエストを受信したわけではない場合は、後の時点でユニキャストによる取り消し方法を使用することもできますし、サーバから別のObserveレスポンスを受信したときにグループ/マルチキャストの登録解除リクエストを繰り返してもよい (MAY)。

When combining CoAP group communication and Observe as described above, an amplification attack can become particularly harmful. That is, by spoofing the source IP address of a designated victim in the group request conveying the Observe Option, the attack could result in multiple servers within the CoAP group sending multiple Observe notifications to the victim throughout the observation lifetime. This is further discussed in Section 6.3, together with available mitigations.

上記のようにCoAPグループ通信とObserveを組み合わせる場合、増幅攻撃は特に有害になり得ます。すなわち、Observeオプションを伝えるグループリクエストで、標的とされた被害者の送信元IPアドレスを詐称することで、この攻撃により、CoAPグループ内の複数のサーバが、監視の存続期間を通じて被害者に複数のObserve通知を送信する結果になり得ます。これについては、利用可能な緩和策とともに6.3節でさらに議論します。

For observing at servers that are members of a CoAP group through a CoAP-to-CoAP proxy, the limitations stated in Section 3.5 apply. The realization of proxy specified in [CoAP-GROUP-PROXY] enables group communication including resource observation through proxies and addresses those limitations.

CoAPグループのメンバであるサーバをCoAP-to-CoAPプロキシ経由で監視する場合は、3.5節に記載した制限が適用されます。[CoAP-GROUP-PROXY] で規定されているプロキシの実現は、プロキシ経由でのリソース監視を含むグループ通信を可能にし、それらの制限に対処します。

3.8. Block-Wise Transfer

3.8. ブロック単位転送

Section 2.8 of [RFC7959] specifies how a client can use block-wise transfer (Block2 Option) in a multicast GET request to limit the size of the initial response of each server. Consistent with Section 2.5 of [RFC8132], the same can be done with a multicast FETCH request.

[RFC7959] の2.8節は、クライアントがマルチキャストGETリクエストでブロック単位転送(Block2オプション)を使用して、各サーバの最初のレスポンスのサイズを制限する方法を規定しています。[RFC8132] の2.5節と整合して、マルチキャストFETCHリクエストでも同様のことができます。

If a client sends a multicast GET or FETCH request including a Block2 Option with a block number of 0, then the client can rely on two possible approaches in order to retrieve any further blocks of the resource from responding servers.

クライアントがブロック番号0のBlock2オプションを含むマルチキャストGETリクエストまたはFETCHリクエストを送信する場合、クライアントは、応答するサーバからリソースの残りのブロックを取得するために、2つの方法のいずれかに頼ることができます。

1. The client uses unicast requests, separately addressing each different server.

1. クライアントはユニキャストリクエストを使用し、各サーバを個別に宛先とします。

2. The client uses follow-up group requests if all the responses received from different servers specify the same block size in their Block2 Option. In particular, such a block size can be equal to the block size specified in the Block2 Option of the first group request, or instead a smaller one. If the client relies on this approach, then the Block2 Option of follow-up group requests in the same block-wise transfer specifies the same block size used by all the servers in the Block2 Option of their responses.

2. 異なるサーバから受信したすべてのレスポンスがBlock2オプションで同じブロックサイズを指定している場合、クライアントは後続のグループリクエストを使用します。特に、そのようなブロックサイズは、最初のグループリクエストのBlock2オプションで指定したブロックサイズと等しいか、それより小さいものになり得ます。クライアントがこの方法に頼る場合、同じブロック単位転送内の後続のグループリクエストのBlock2オプションは、すべてのサーバがレスポンスのBlock2オプションで使用した同じブロックサイズを指定します。

Furthermore, a server (member of a targeted CoAP group) that needs to respond to a group request with a particularly large resource can use block-wise transfer (Block2 Option) at its own initiative to limit the size of the initial response. That is the case when a client sends a multicast GET or FETCH request that does not include a Block2 Option. In such a situation, unless the implementer of the server is aware that its clients do not support block-wise transfer, the server SHOULD use block-wise transfer at its own initiative.

さらに、特に大きなリソースを持つグループリクエストに応答する必要がある(対象のCoAPグループのメンバである)サーバは、最初のレスポンスのサイズを制限するために、自らの判断でブロック単位転送(Block2オプション)を使用できます。これは、クライアントがBlock2オプションを含まないマルチキャストGETリクエストまたはFETCHリクエストを送信した場合に当てはまります。このような状況では、サーバの実装者がクライアントがブロック単位転送をサポートしていないことを把握していない限り、サーバは自らの判断でブロック単位転送を使用すべきです (SHOULD)。

After a client receives responses that include a Block2 Option to the first group request that did not include a Block2 Option, the client can rely on either of the two approaches above for any further requests to retrieve more blocks of the resource. Alternatively, the client can compute a block size that is smaller than or equal to the smallest block size among those specified in the Block2 Option of the received responses. If the client relies on this latter approach, then the Block2 Option of follow-up group requests in the same block-wise transfer specifies the block size computed by the client.

クライアントは、Block2オプションを含まない最初のグループリクエストに対して、Block2オプションを含むレスポンスを受信した後、リソースのさらなるブロックを取得するための以降のリクエストについて、上記の2つの方法のいずれかに頼ることができます。あるいは、クライアントは、受信したレスポンスのBlock2オプションで指定されたブロックサイズのうち最小のものと等しいか、それより小さいブロックサイズを計算できます。クライアントがこの後者の方法に頼る場合、同じブロック単位転送内の後続のグループリクエストのBlock2オプションは、クライアントが計算したブロックサイズを指定します。

A solution for group/multicast block-wise transfer using the Block1 Option is not specified in [RFC7959] nor in the present document. Such a solution would be useful for group FETCH/PUT/POST/PATCH/iPATCH requests to efficiently distribute a large request payload as multiple blocks to all members of a CoAP group. Multicast usage of Block1 is non-trivial due to potential message loss (leading to missing blocks or missing confirmations) and potential diverging block size preferences of different members of the CoAP group. Besides addressing such issues, a future solution for group/multicast block-wise transfer using the Block1 Option needs to conform to the congestion control requirements compiled in Section 3.6 of this document.

Block1オプションを使用したグループ/マルチキャストのブロック単位転送の解決策は、[RFC7959] でも本文書でも規定されていません。そのような解決策は、グループFETCH/PUT/POST/PATCH/iPATCHリクエストにおいて、大きなリクエストペイロードを複数のブロックとしてCoAPグループのすべてのメンバに効率的に配布するために有用でしょう。Block1のマルチキャスト使用は、メッセージ損失の可能性(ブロックの欠落や確認の欠落につながる)と、CoAPグループの各メンバのブロックサイズの選好が食い違う可能性があるため、容易ではありません。このような問題に対処することに加えて、Block1オプションを使用したグループ/マルチキャストのブロック単位転送に関する将来の解決策は、本文書の3.6節にまとめられた輻輳制御の要件に適合する必要があります。

[RFC9177] specifies a specialized alternative method for CoAP block-wise transfer. It specifies that "servers MUST ignore multicast requests that contain the Q-Block2 Option".

[RFC9177] は、CoAPのブロック単位転送のための特化した代替方法を規定しています。そこでは「サーバは、Q-Block2オプションを含むマルチキャストリクエストを無視しなければならない (MUST)」と規定されています。

3.9. Transport Protocols

3.9. トランスポートプロトコル

In this document, UDP (both over IPv4 and IPv6) is considered as the default transport protocol for CoAP group communication.

本文書では、UDP(IPv4上およびIPv6上の両方)を、CoAPグループ通信のデフォルトのトランスポートプロトコルとみなします。

3.9.1. UDP/IPv6 Multicast Transport

3.9.1. UDP/IPv6マルチキャストトランスポート

CoAP group communication can use UDP over IPv6 as a transport protocol, provided that IPv6 multicast is enabled. A network might support IPv6 multicast only for a limited scope. For example, Section 3.10.2 describes the potential limited support of the Routing Protocol for Low-Power and Lossy Networks (RPL) for multicast, depending on how the protocol is configured.

CoAPグループ通信は、IPv6マルチキャストが有効であれば、IPv6上のUDPをトランスポートプロトコルとして使用できます。ネットワークによっては、限られたスコープに対してのみIPv6マルチキャストをサポートする場合があります。たとえば、3.10.2節では、プロトコルの構成方法に応じて、Routing Protocol for Low-Power and Lossy Networks (RPL) によるマルチキャストのサポートが限定される可能性について説明しています。

For a CoAP server node that offers resources for resource discovery as defined in Section 2.4 of [RFC7252], the default port number 5683 must be supported as per Section 7.1 of [RFC7252] for the "All CoAP Nodes" IPv6 multicast addresses (see Section 12.8 of [RFC7252]). An IPv6 CoAP server SHOULD support the "All CoAP Nodes" IPv6 multicast addresses with at least the link-local (2), admin-local (4), and site-local (5) scopes. An IPv6 CoAP server on a 6LoWPAN node (see Section 3.9.2) SHOULD also support the realm-local (3) scope.

[RFC7252] の2.4節で定義されているリソースディスカバリのためのリソースを提供するCoAPサーバノードでは、[RFC7252] の7.1節に従い、"All CoAP Nodes" IPv6マルチキャストアドレス([RFC7252] の12.8節を参照)に対して、デフォルトのポート番号5683をサポートしなければなりません。IPv6 CoAPサーバは、少なくともリンクローカル (2)、管理ローカル (4)、サイトローカル (5) のスコープを持つ "All CoAP Nodes" IPv6マルチキャストアドレスをサポートすべきです (SHOULD)。6LoWPANノード上のIPv6 CoAPサーバ(3.9.2節を参照)は、レルムローカル (3) スコープもサポートすべきです (SHOULD)。

Note that a client sending an IPv6 multicast CoAP message to a port number that is not supported by the server will not receive an ICMPv6 Port Unreachable error message from that server, because the server does not send it in this case, per Section 2.4 of [RFC4443].

サーバがサポートしていないポート番号宛てにIPv6マルチキャストCoAPメッセージを送信したクライアントは、そのサーバからICMPv6 Port Unreachableエラーメッセージを受信しない点に注意してください。[RFC4443] の2.4節に従い、この場合サーバはこのメッセージを送信しないためです。

3.9.2. UDP/IPv6 Multicast Transport over 6LoWPAN

3.9.2. 6LoWPAN上のUDP/IPv6マルチキャストトランスポート

In 6LoWPAN [RFC4944] [RFC6282] networks, an IPv6 packet (up to 1280 bytes) may be fragmented into multiple 6LoWPAN fragments, each fragment small enough to be carried over an IEEE 802.15.4 medium access control (MAC) frame (up to 127 bytes) [IEEE802.15.4].

6LoWPAN [RFC4944] [RFC6282] ネットワークでは、IPv6パケット(最大1280バイト)は複数の6LoWPANフラグメントに分割されることがあり、各フラグメントはIEEE 802.15.4のメディアアクセス制御 (MAC) フレーム(最大127バイト)[IEEE802.15.4] で運べる程度に小さくなります。

These 6LoWPAN fragments are exchanged between 6LoWPAN nodes, potentially involving 6LoWPAN routers operating in a multi-hop network topology. Although 6LoWPAN multicast routing protocols usually define mechanisms to compensate for the loss of transmitted fragments (e.g., using link-layer unicast acknowledgements or repeated link-layer broadcast transmissions as in the Multicast Protocol for Low-Power and Lossy Networks (MPL) -- see Section 3.10.3), a fragment may still be lost in transit. The loss of a single fragment implies the loss of the entire IPv6 packet, because the reassembly back into the IPv6 packet will fail in that case. Also, if this fragment loss causes the application-layer retransmission of the entire multi-fragment IPv6 packet, it may happen that much of the same data is transmitted yet again over the constrained network.

これらの6LoWPANフラグメントは6LoWPANノード間で交換され、マルチホップのネットワークトポロジで動作する6LoWPANルータが関与することもあります。6LoWPANマルチキャストルーティングプロトコルは通常、送信されたフラグメントの損失を補うメカニズム(たとえば、リンク層ユニキャスト確認応答の使用や、Multicast Protocol for Low-Power and Lossy Networks (MPL) のようなリンク層ブロードキャスト送信の繰り返し。3.10.3節を参照)を定義していますが、それでもフラグメントが転送中に失われることがあります。この場合、IPv6パケットへの再構築が失敗するため、1つのフラグメントの損失はIPv6パケット全体の損失を意味します。また、このフラグメントの損失によって、複数フラグメントからなるIPv6パケット全体がアプリケーション層で再送されると、同じデータの多くが制約のあるネットワーク上で再び送信される可能性があります。

For this reason, the performance in terms of packet loss and throughput of using larger, multi-fragment IPv6 multicast packets is on average worse than the performance of smaller, single-fragment IPv6 multicast packets. Therefore, it is recommended to design application payloads for group communication sufficiently small: A CoAP request sent over multicast over a 6LoWPAN network interface SHOULD fit in a single IEEE 802.15.4 MAC frame, if possible.

このため、より大きな複数フラグメントのIPv6マルチキャストパケットを使用した場合のパケット損失とスループットの観点での性能は、平均して、より小さな単一フラグメントのIPv6マルチキャストパケットの性能より劣ります。したがって、グループ通信のアプリケーションペイロードは十分に小さくなるよう設計することが推奨されます。6LoWPANネットワークインタフェース上でマルチキャストにより送信されるCoAPリクエストは、可能であれば、1つのIEEE 802.15.4 MACフレームに収まるべきです (SHOULD)。

On 6LoWPAN networks, multicast CoAP groups can be defined with realm-local scope [RFC7346]. Such a realm-local CoAP group is restricted to the local 6LoWPAN network/subnet. In other words, a multicast request to that CoAP group does not propagate beyond the 6LoWPAN network segment where the request originated. For example, a multicast discovery request can be sent to the "All CoAP Nodes" IPv6 multicast address (see Section 3.9.1) with realm-local scope, in order to discover only CoAP servers on the local 6LoWPAN network.

6LoWPANネットワークでは、マルチキャストCoAPグループをレルムローカルスコープ [RFC7346] で定義できます。このようなレルムローカルのCoAPグループは、ローカルの6LoWPANネットワーク/サブネットに限定されます。言い換えると、そのCoAPグループへのマルチキャストリクエストは、リクエストの発信元である6LoWPANネットワークセグメントを越えて伝搬しません。たとえば、ローカルの6LoWPANネットワーク上のCoAPサーバのみを発見するために、レルムローカルスコープの "All CoAP Nodes" IPv6マルチキャストアドレス(3.9.1節を参照)宛てにマルチキャストディスカバリリクエストを送信できます。

3.9.3. UDP/IPv4 Multicast Transport

3.9.3. UDP/IPv4マルチキャストトランスポート

CoAP group communication can use UDP over IPv4 as a transport protocol, provided that IPv4 multicast is enabled. For a CoAP server node that offers resources for resource discovery as defined in Section 2.4 of [RFC7252], the default port number 5683 must be supported as per Section 7.1 of [RFC7252] for the "All CoAP Nodes" IPv4 multicast address (see Section 12.8 of [RFC7252]).

CoAPグループ通信は、IPv4マルチキャストが有効であれば、IPv4上のUDPをトランスポートプロトコルとして使用できます。[RFC7252] の2.4節で定義されているリソースディスカバリのためのリソースを提供するCoAPサーバノードでは、[RFC7252] の7.1節に従い、"All CoAP Nodes" IPv4マルチキャストアドレス([RFC7252] の12.8節を参照)に対して、デフォルトのポート番号5683をサポートしなければなりません。

Note that a client sending an IPv4 multicast CoAP message to a port number that is not supported by the server will not receive an ICMP Port Unreachable error message from that server, because the server does not send it in this case, per Section 3.2.2 of [RFC1122].

サーバがサポートしていないポート番号宛てにIPv4マルチキャストCoAPメッセージを送信したクライアントは、そのサーバからICMP Port Unreachableエラーメッセージを受信しない点に注意してください。[RFC1122] の3.2.2節に従い、この場合サーバはこのメッセージを送信しないためです。

3.9.4. TCP, TLS, and WebSockets

3.9.4. TCP、TLS、およびWebSockets

CoAP over TCP, TLS, and WebSockets is defined in [RFC8323]. Although it supports unicast only, it can be employed as a transport for CoAP group communication in situations where unicast is used, such as exchanging messages with a proxy and completing block-wise transfers. In particular:

TCP、TLS、およびWebSocket上のCoAPは [RFC8323] で定義されています。これはユニキャストのみをサポートしますが、プロキシとのメッセージ交換やブロック単位転送の完了など、ユニキャストが使用される状況では、CoAPグループ通信のトランスポートとして利用できます。特に次のとおりです。

* A suitable cross-proxy can be set up, such that it receives a unicast CoAP group request over TCP/TLS/WebSockets and then forwards the request to the servers in the group over UDP/IP multicast (see Section 3.5). The discovery of such a proxy can rely on means defined in [CoAP-TRANSPORT].

* 適切なクロスプロキシを設定し、TCP/TLS/WebSockets上のユニキャストCoAPグループリクエストを受信して、そのリクエストをUDP/IPマルチキャストでグループ内のサーバへ転送させることができます(3.5節を参照)。このようなプロキシの発見は、[CoAP-TRANSPORT] で定義された手段に依拠できます。

* [RFC8323] can be employed to complete block-wise transfers for CoAP group communication, with the limitations discussed in Section 3.8.

* [RFC8323] は、3.8節で論じた制限の下で、CoAPグループ通信のブロック単位転送を完了するために利用できます。

That is, after the first group request containing the Block2 Option is sent over UDP, the following unicast CoAP requests targeting individual servers to retrieve further blocks may be sent over TCP or WebSockets, potentially protected by TLS.

つまり、Block2オプションを含む最初のグループリクエストをUDP上で送信した後、追加のブロックを取得するために個々のサーバを対象とする後続のユニキャストCoAPリクエストを、TCPまたはWebSockets上で(場合によってはTLSで保護して)送信してもよい、ということです。

This requires the individually addressed servers to be reachable via a suitable cross-proxy or to also support CoAP over TCP/TLS/ WebSockets for the targeted resource. While those transports do not support multicast, it is possible to rely on multicast for discovering that a server has those transports available and that they allow accessing the targeted resource, possibly with block-wise transfer used for random access to blocks within the resource representation. Such discovering can rely on means defined in [CoAP-TRANSPORT].

これには、個別にアドレス指定されるサーバが、適切なクロスプロキシ経由で到達可能であるか、対象リソースについてTCP/TLS/WebSockets上のCoAPもサポートしている必要があります。これらのトランスポートはマルチキャストをサポートしませんが、サーバがそれらのトランスポートを利用可能であり、対象リソースへのアクセスを許可しているかどうかを発見するためにマルチキャストに依拠することは可能です。その際、リソース表現内のブロックへのランダムアクセスにブロック単位転送が使用されることもあります。このような発見は、[CoAP-TRANSPORT] で定義された手段に依拠できます。

3.9.5. Other Transports

3.9.5. その他のトランスポート

CoAP group communication may be used over transports other than UDP/ IP multicast, for example, broadcast, non-UDP multicast, geocast, serial unicast, etc. In such cases, the particular considerations for UDP/IP multicast in this document may need to be applied to that particular transport. Further details about such alternative transports and their use for CoAP group communication are out of scope for this document.

CoAPグループ通信は、UDP/IPマルチキャスト以外のトランスポート、たとえばブロードキャスト、UDP以外のマルチキャスト、ジオキャスト、シリアルユニキャストなどの上で使用されることがあります。そのような場合、本文書におけるUDP/IPマルチキャスト固有の考慮事項を、そのトランスポートに適用する必要があるかもしれません。このような代替トランスポートの詳細とCoAPグループ通信での使用については、本文書の対象範囲外です。

3.10. Interworking with Other Protocols

3.10. 他のプロトコルとの相互運用

3.10.1. MLDv2 and IGMPv3

3.10.1. MLDv2とIGMPv3

A CoAP node that is an IP host (i.e., not an IP router) may be unaware of the specific IP multicast routing/forwarding protocol being used in its network. When such a node needs to join a specific (CoAP) multicast group, the application process would typically subscribe to the particular IP multicast group via an API method of the IP stack on the node. Then, the IP stack would execute a particular (e.g., default) method to communicate its subscription to on-link IP (multicast) routers.

IPホスト(つまりIPルータではない)であるCoAPノードは、そのネットワークで使用されている具体的なIPマルチキャストルーティング/フォワーディングプロトコルを認識していないことがあります。そのようなノードが特定の(CoAP)マルチキャストグループに参加する必要がある場合、アプリケーションプロセスは通常、ノード上のIPスタックのAPIメソッドを介して、特定のIPマルチキャストグループに加入します。その後、IPスタックは、その加入情報をオンリンクのIP(マルチキャスト)ルータへ伝えるために、特定の(たとえばデフォルトの)方法を実行します。

The Multicast Listener Discovery Version 2 (MLDv2) protocol [RFC9777] is the standard IPv6 method to communicate multicast subscriptions when other methods are not defined. The CoAP server nodes then act in the role of MLDv2 Multicast Address Listener. MLDv2 uses link-local communication between Listeners and IP multicast routers. Constrained IPv6 networks such as ones implementing either RPL (see Section 3.10.2) or MPL (see Section 3.10.3) do not typically support MLDv2 as they have their own mechanisms defined for subscribing to multicast groups.

Multicast Listener Discovery Version 2 (MLDv2) プロトコル [RFC9777] は、他の方法が定義されていない場合にマルチキャストの加入情報を伝えるための、標準的なIPv6の方法です。この場合、CoAPサーバノードはMLDv2のMulticast Address Listenerの役割を果たします。MLDv2は、ListenerとIPマルチキャストルータとの間でリンクローカル通信を使用します。RPL(3.10.2節を参照)またはMPL(3.10.3節を参照)を実装している制約のあるIPv6ネットワークは、マルチキャストグループへの加入のための独自のメカニズムが定義されているため、通常はMLDv2をサポートしません。

The Internet Group Management Protocol Version 3 (IGMPv3) [RFC9776] is the standard IPv4 method to signal subscriptions to a multicast group. This SHOULD be used by members of a CoAP group to subscribe to its IPv4 multicast address on IPv4 networks unless another method is defined for the network interface/technology used.

Internet Group Management Protocol Version 3 (IGMPv3) [RFC9776] は、マルチキャストグループへの加入を通知するための標準的なIPv4の方法です。使用するネットワークインタフェース/技術に対して別の方法が定義されていない限り、CoAPグループのメンバーは、IPv4ネットワーク上でそのIPv4マルチキャストアドレスに加入するためにこれを使用すべきです (SHOULD)。

The guidelines from [RFC6636] on the tuning of MLDv2 and IGMPv3 for mobile and wireless networks may be useful when implementing MLDv2 and IGMPv3 in constrained networks.

モバイルネットワークおよびワイヤレスネットワーク向けのMLDv2とIGMPv3のチューニングに関する [RFC6636] のガイドラインは、制約のあるネットワークにMLDv2とIGMPv3を実装する際に有用な場合があります。

3.10.2. RPL

3.10.2. RPL

The IPv6 Routing Protocol for Low-Power and Lossy Networks (RPL) [RFC6550] is an IPv6-based routing protocol suitable for low-power, lossy networks (LLNs). In such a context, CoAP is often used as an application protocol.

IPv6 Routing Protocol for Low-Power and Lossy Networks (RPL) [RFC6550] は、低電力でロッシーなネットワーク (LLN) に適したIPv6ベースのルーティングプロトコルです。このような状況では、CoAPがアプリケーションプロトコルとしてよく使用されます。

If only RPL is used in a network for routing and its optional multicast support is disabled, there will be no IP multicast routing available. Any IPv6 multicast packets in this case will not propagate beyond a single hop (to direct neighbors in the LLN). This implies that any CoAP group request will be delivered to link-local nodes only, for any scope value >= 2 used in the IPv6 destination address.

ネットワークでルーティングにRPLのみが使用され、そのオプションのマルチキャストサポートが無効になっている場合、利用可能なIPマルチキャストルーティングは存在しません。この場合、IPv6マルチキャストパケットは1ホップを越えて(LLN内の直接の隣接ノードを越えて)伝搬しません。これは、IPv6宛先アドレスで使用されるスコープ値が2以上であっても、あらゆるCoAPグループリクエストがリンクローカルのノードにのみ配送されることを意味します。

RPL supports advertisement of IP multicast destinations using Destination Advertisement Object (DAO) messages and subsequent routing of IPv6 multicast packets based on this (see Section 12 of [RFC6550]). It requires the RPL mode of operation to be set to a mode that supports multicast, for example, 3 (Storing mode with multicast support) or 5 (Non-Storing mode of operation with ingress replication multicast support) defined in [RFC9685].

RPLは、Destination Advertisement Object (DAO) メッセージを使用したIPマルチキャスト宛先の広告と、それに基づくIPv6マルチキャストパケットのその後のルーティングをサポートします([RFC6550] の12節を参照)。これには、RPLのオペレーションモードを、マルチキャストをサポートするモードに設定する必要があります。たとえば、[RFC9685] で定義されているモード3(マルチキャストサポート付きStoringモード)やモード5(イングレスレプリケーションマルチキャストサポート付きNon-Storingオペレーションモード)です。

In mode 3, RPL DAO can be used by a RPL/CoAP node that is either a RPL router or a RPL Leaf Node to advertise its CoAP group membership to parent RPL routers. Then, RPL will route any IP multicast CoAP requests over multiple hops to those CoAP servers that are members of the CoAP group.

モード3では、RPLルータまたはRPLリーフノードのいずれであるRPL/CoAPノードも、RPL DAOを使用して、自身のCoAPグループメンバーシップを親RPLルータに広告できます。その後、RPLは、IPマルチキャストCoAPリクエストを、そのCoAPグループのメンバーであるCoAPサーバへ複数ホップにわたってルーティングします。

The same DAO mechanism can be used by an edge router such as a 6LoWPAN Border Router (6LBR) (see [RFC6775]) in order to learn CoAP group membership information of the entire RPL network, in the case that the edge router is also the root of the RPL Destination-Oriented Directed Acyclic Graph (DODAG). This is useful because the edge router learns which IP multicast traffic it needs to selectively pass through from the backbone network into the LLN subnet. In LLNs, such ingress filtering helps to avoid congestion of the resource-constrained network segment, due to IP multicast traffic from the high-speed backbone IP network.

エッジルータが、RPL Destination-Oriented Directed Acyclic Graph (DODAG) のルートでもある場合、6LoWPAN Border Router (6LBR)([RFC6775] を参照)などのエッジルータは、同じDAOメカニズムを使用して、RPLネットワーク全体のCoAPグループメンバーシップ情報を学習できます。これは、エッジルータが、バックボーンネットワークからLLNサブネットへ選択的に通過させる必要があるIPマルチキャストトラフィックを把握できるため、有用です。LLNでは、このようなイングレスフィルタリングは、高速なバックボーンIPネットワークからのIPマルチキャストトラフィックによる、リソースの制約のあるネットワークセグメントの輻輳を避けるのに役立ちます。

See [RFC9685] for more details on RPL Mode 5 and on subscribing to IPv6 multicast groups using 6LoWPAN Neighbor Discovery (ND) and the Extended Address Registration Option (EARO) in RPL networks.

RPLモード5の詳細、およびRPLネットワークにおける6LoWPAN Neighbor Discovery (ND) とExtended Address Registration Option (EARO) を使用したIPv6マルチキャストグループへの加入の詳細については、[RFC9685] を参照してください。

3.10.3. MPL

3.10.3. MPL

The Multicast Protocol for Low-Power and Lossy Networks (MPL) [RFC7731] can be used for propagation of IPv6 multicast packets throughout a defined network domain over multiple hops. MPL is designed to work in LLNs and can operate alone or in combination with RPL. The protocol involves a predefined group of MPL Forwarders to collectively distribute IPv6 multicast packets throughout their MPL Domain. An MPL Forwarder may be associated with multiple MPL Domains at the same time. Non-Forwarders will receive IPv6 multicast packets from one or more of their neighboring Forwarders. Therefore, MPL can be used to propagate a CoAP multicast group request to all members of the CoAP group.

Multicast Protocol for Low-Power and Lossy Networks (MPL) [RFC7731] は、定義されたネットワークドメイン全体にわたって、複数ホップでIPv6マルチキャストパケットを伝搬させるために使用できます。MPLはLLNで動作するよう設計されており、単独でも、RPLと組み合わせても動作できます。このプロトコルでは、事前に定義されたMPL Forwarderのグループが、協調してIPv6マルチキャストパケットをMPL Domain全体に配布します。MPL Forwarderは、同時に複数のMPL Domainに関連付けられることがあります。Non-Forwarderは、隣接する1つ以上のForwarderからIPv6マルチキャストパケットを受信します。したがって、MPLは、CoAPマルチキャストグループリクエストをCoAPグループの全メンバーへ伝搬させるために使用できます。

However, a CoAP multicast request to a CoAP group that originated outside of the MPL Domain will not be propagated by MPL -- unless an MPL Forwarder is explicitly configured as an ingress point that introduces external multicast packets into the MPL Domain. Such an ingress point could be located on an edge router (e.g., 6LBR). Methods to configure which IPv6 multicast groups are to be propagated into the MPL Domain could be:

ただし、MPL Domainの外部で発信されたCoAPグループ宛てのCoAPマルチキャストリクエストは、MPL Forwarderが外部のマルチキャストパケットをMPL Domainに取り込むイングレスポイントとして明示的に構成されていない限り、MPLによって伝搬されません。このようなイングレスポイントは、エッジルータ(たとえば6LBR)上に置かれる可能性があります。どのIPv6マルチキャストグループをMPL Domainへ伝搬させるかを構成する方法としては、次のようなものが考えられます。

* Manual configuration on each ingress MPL Forwarder.

* 各イングレスMPL Forwarderでの手動構成。

* The MLDv2 protocol [RFC9777], which works only if all CoAP servers joining a CoAP group are in link-local communication range of an ingress MPL Forwarder.

* MLDv2プロトコル [RFC9777]。これは、CoAPグループに参加するすべてのCoAPサーバが、イングレスMPL Forwarderのリンクローカル通信範囲内にある場合にのみ機能します。

* Use of 6LoWPAN ND and EARO as described in [RFC9685] in a network that supports 6LoWPAN-ND, RPL, and MPL.

* 6LoWPAN-ND、RPL、およびMPLをサポートするネットワークにおける、[RFC9685] に記載されている6LoWPAN NDとEAROの使用。

* A new/custom protocol to register multicast groups at an ingress MPL Forwarder. This could be, for example, a CoAP-based protocol offering multicast group subscription features similar to MLDv2.

* イングレスMPL Forwarderにマルチキャストグループを登録するための新規/独自のプロトコル。たとえば、MLDv2に似たマルチキャストグループ購読機能を提供するCoAPベースのプロトコルが考えられます。

For security and performance reasons, other filtering criteria may also be defined at an ingress MPL Forwarder. See Section 6.6 for more details.

セキュリティ上およびパフォーマンス上の理由から、イングレスMPL Forwarderでは他のフィルタリング基準も定義されることがあります。詳細は6.6節を参照してください。

4. Unsecure Group Communication (NoSec Mode)

4. セキュリティ保護のないグループ通信 (NoSecモード)

CoAP group communication can operate in CoAP NoSec mode, i.e., without using application-layer and transport-layer security mechanisms.

CoAPグループ通信は、CoAP NoSecモード、すなわちアプリケーション層およびトランスポート層のセキュリティ機構を使用しない形で動作させることができます。

It is NOT RECOMMENDED to use CoAP group communication in NoSec mode.

NoSecモードでCoAPグループ通信を使用することは推奨されません (NOT RECOMMENDED)。

The possible, exceptional use of the NoSec mode ought to be limited to specific, well-defined "unsecured steps" that unquestionably do not require security or are not able to attain it, e.g., early discovery of devices and resources (see Section 6.1).

NoSecモードの例外的な使用が考えられる場合でも、セキュリティを必要としないことが疑いなく明らかな、あるいはセキュリティを確保できない、特定の明確に定義された「セキュリティ保護のない段階」、たとえばデバイスやリソースの初期ディスカバリ (6.1節を参照) に限定されるべきです。

Before possibly and exceptionally using the NoSec mode in such circumstances, the security implications in Section 6.1 must be very well considered and understood, especially as to the risk and impact of amplification attacks (see Section 6.3). Consistent with such security implications, the use of the NoSec mode SHOULD still be avoided whenever possible.

このような状況でNoSecモードを例外的に使用する可能性がある場合は、その前に、6.1節のセキュリティ上の影響、特に増幅攻撃のリスクと影響 (6.3節を参照) を十分に検討し理解しなければなりません。こうしたセキュリティ上の影響に鑑み、NoSecモードの使用は、それでも可能な限り避けるべきです (SHOULD)。

The NoSec mode uses the "coap" scheme and is defined in Section 9 of [RFC7252]. The NoSec mode does not require and does not make use of a security group (see Section 2.2.1.3).

NoSecモードは "coap" スキームを使用し、[RFC7252] の9節で定義されています。NoSecモードはセキュリティグループ (2.2.1.3節を参照) を必要とせず、使用もしません。

A CoAP server MUST NOT be accessible for group communication in NoSec mode through the public Internet.

CoAPサーバは、NoSecモードでのグループ通信に対して、公衆インターネット経由でアクセス可能であってはなりません (MUST NOT)。

5. Secure Group Communication Using Group OSCORE

5. Group OSCOREを使用したセキュアなグループ通信

This section discusses how CoAP group communication can be secured. In particular, Section 5.1 describes how the Group OSCORE security protocol [RFC10021] can be used to protect messages exchanged in a CoAP group, while Section 5.2 provides guidance on required maintenance operations for OSCORE groups used as security groups.

本節では、CoAPグループ通信をどのように保護できるかを説明します。特に、5.1節ではGroup OSCOREセキュリティプロトコル [RFC10021] を使用してCoAPグループ内で交換されるメッセージを保護する方法を説明し、5.2節ではセキュリティグループとして使用されるOSCOREグループに必要なメンテナンス操作に関するガイダンスを示します。

5.1. Group OSCORE

5.1. Group OSCORE

The application-layer protocol OSCORE [RFC8613] provides end-to-end encryption, integrity, and replay protection of CoAP messages exchanged between two CoAP endpoints. These can act both as CoAP client and CoAP server and share an OSCORE Security Context used to protect and verify exchanged messages. The use of OSCORE does not affect the URI scheme, and OSCORE can therefore be used with any URI scheme defined for CoAP.

アプリケーション層プロトコルであるOSCORE [RFC8613] は、2つのCoAPエンドポイント間で交換されるCoAPメッセージのエンドツーエンドの暗号化、完全性保護、およびリプレイ保護を提供します。これらのエンドポイントはCoAPクライアントとしてもCoAPサーバとしても動作でき、交換されるメッセージの保護と検証に使用するOSCOREセキュリティコンテキストを共有します。OSCOREの使用はURIスキームに影響しないため、OSCOREはCoAP用に定義された任意のURIスキームで使用できます。

OSCORE uses COSE [RFC9052][RFC9053] to perform encryption operations and protect a CoAP message carried in a COSE object by using an Authenticated Encryption with Associated Data (AEAD) algorithm. In particular, OSCORE takes an unprotected CoAP message as input and transforms it into a protected CoAP message transporting the COSE object.

OSCOREは、COSE [RFC9052][RFC9053] を使用して暗号化操作を行い、認証付き関連データ付き暗号 (AEAD) アルゴリズムを用いて、COSEオブジェクトに格納されたCoAPメッセージを保護します。具体的には、OSCOREは保護されていないCoAPメッセージを入力として受け取り、COSEオブジェクトを運ぶ保護されたCoAPメッセージに変換します。

OSCORE makes it possible to selectively protect different parts of a CoAP message in different ways while still allowing intermediaries (e.g., CoAP proxies) to perform their intended functionalities. That is, some message parts are encrypted and integrity protected; other parts are only integrity protected to be accessible to, but not modifiable by, proxies; and some parts are kept as plain content to be both accessible to and modifiable by proxies. Section 4 of [RFC8613] defines in detail if and what protection is applied to the CoAP header fields, payload, and CoAP options specified in the unprotected message, in accordance with their class for OSCORE.

OSCOREでは、仲介者 (たとえばCoAPプロキシ) が本来の機能を実行できるようにしたまま、CoAPメッセージの各部分を異なる方法で選択的に保護できます。すなわち、一部のメッセージ部分は暗号化され完全性が保護されます。他の部分は完全性のみが保護され、プロキシはアクセスできますが変更はできません。さらに別の部分は平文のまま保持され、プロキシがアクセスも変更も可能です。[RFC8613] の4節は、保護されていないメッセージで指定されたCoAPヘッダフィールド、ペイロード、およびCoAPオプションに対し、OSCOREにおけるそれぞれのクラスに応じて、どのような保護が適用されるか、また適用されるかどうかを詳細に定義しています。

Group OSCORE [RFC10021] builds on OSCORE and provides end-to-end security of CoAP messages exchanged between members of an OSCORE group while fulfilling the same security requirements.

Group OSCORE [RFC10021] はOSCOREを基盤とし、同じセキュリティ要件を満たしつつ、OSCOREグループのメンバ間で交換されるCoAPメッセージのエンドツーエンドセキュリティを提供します。

In particular, Group OSCORE protects CoAP group requests sent by a CoAP client, e.g., over UDP/IP multicast, as well as multiple corresponding CoAP responses sent as (IP) unicast by different CoAP servers. However, the same security material can also be used to protect CoAP requests sent over (IP) unicast to a single CoAP server in the OSCORE group, as well as the corresponding responses.

特に、Group OSCOREは、CoAPクライアントが (たとえばUDP/IPマルチキャスト経由で) 送信するCoAPグループリクエストと、異なるCoAPサーバが (IP) ユニキャストで送信する対応する複数のCoAPレスポンスを保護します。ただし、同じセキュリティマテリアルは、OSCOREグループ内の単一のCoAPサーバに (IP) ユニキャストで送信されるCoAPリクエストと、その対応するレスポンスの保護にも使用できます。

Group OSCORE ensures source authentication of all messages exchanged within the OSCORE group. That is, the recipient of a CoAP message protected with Group OSCORE is able to securely verify whether the CoAP endpoint that has generated and sent the message is indeed the alleged one. This is achieved by means of two possible methods.

Group OSCOREは、OSCOREグループ内で交換されるすべてのメッセージの送信元認証を保証します。すなわち、Group OSCOREで保護されたCoAPメッセージの受信者は、そのメッセージを生成して送信したCoAPエンドポイントが、名乗っているとおりのものであるかどうかを安全に検証できます。これは、2つの方法のいずれかによって実現されます。

The first method, called group mode, relies on digital signatures. That is, sender devices sign their outgoing messages using their own private key and embed the signature in the protected CoAP message.

グループモードと呼ばれる第1の方法は、デジタル署名に依拠します。すなわち、送信側デバイスは自身の秘密鍵を使用して送信メッセージに署名し、その署名を保護されたCoAPメッセージに埋め込みます。

The second method, called pairwise mode, relies on a symmetric key, which is derived from a pairwise shared secret computed from the asymmetric keys of the message sender and recipient. This method is intended for one-to-one messages sent in the security group, such as all responses individually sent by servers, as well as requests addressed to an individual server.

ペアワイズモードと呼ばれる第2の方法は、対称鍵に依拠します。この鍵は、メッセージの送信者と受信者の非対称鍵から計算されたペアワイズの共有シークレットから導出されます。この方法は、セキュリティグループ内で送信される1対1のメッセージ、たとえばサーバが個別に送信するすべてのレスポンスや、個々のサーバ宛てのリクエストを対象としています。

A Group Manager is responsible for managing one or multiple OSCORE groups. In particular, the Group Manager acts as a repository of the security group members' authentication credentials including the corresponding public keys; manages, renews, and provides security material in the security group; and handles the join process of new members in the security group.

グループマネージャは、1つまたは複数のOSCOREグループの管理を担当します。特に、グループマネージャは、対応する公開鍵を含むセキュリティグループメンバの認証クレデンシャルのリポジトリとして動作し、セキュリティグループ内のセキュリティマテリアルを管理・更新・提供し、セキュリティグループへの新規メンバの参加処理を扱います。

As defined in [GROUP-MANAGER-ADMIN], an administrator entity can interact with the Group Manager to create OSCORE groups and specify their configuration (see Section 2.2.2). During the lifetime of the OSCORE group, the administrator can further interact with the Group Manager in order to possibly update the configuration of the security group and eventually delete the group.

[GROUP-MANAGER-ADMIN] で定義されているように、管理者エンティティはグループマネージャと対話して、OSCOREグループを作成し、その構成を指定できます (2.2.2節を参照)。OSCOREグループの存続期間中、管理者はさらにグループマネージャと対話して、セキュリティグループの構成を更新したり、最終的にグループを削除したりすることもできます。

As mentioned in [RFC10021], a CoAP endpoint can join an OSCORE group through the realization of a Group Manager that is specified in [GROUP-MANAGER] and is based on the Authentication and Authorization for Constrained Environments (ACE) framework [RFC9200].

[RFC10021] で述べられているとおり、CoAPエンドポイントは、[GROUP-MANAGER] で規定され、制約のある環境向けの認証と認可 (ACE) フレームワーク [RFC9200] に基づくグループマネージャの実現を通じて、OSCOREグループに参加できます。

A CoAP endpoint can discover OSCORE groups and retrieve information to join them through their respective Group Managers by using the method described in [GROUP-OSCORE-DISCOVERY] that employs the CoRE RD [RFC9176].

CoAPエンドポイントは、CoRE RD [RFC9176] を利用する [GROUP-OSCORE-DISCOVERY] に記載された方法を使用して、OSCOREグループを発見し、それぞれのグループマネージャを通じて参加のための情報を取得できます。

If security is required, CoAP group communication as described in this specification MUST use Group OSCORE. In particular, a CoAP group as defined in Section 2.1.1 and using secure group communication is associated with an OSCORE security group, which includes:

セキュリティが必要な場合、本仕様で説明するCoAPグループ通信はGroup OSCOREを使用しなければなりません (MUST)。特に、2.1.1節で定義され、セキュアなグループ通信を使用するCoAPグループは、次のものを含むOSCOREセキュリティグループに関連付けられます。

* All members of the CoAP group, i.e., the CoAP endpoints that are configured to receive CoAP group messages sent to the particular CoAP group and -- in the case of IP multicast transport -- that are listening to the group's IP multicast address on the group's UDP port.

* CoAPグループのすべてのメンバ、すなわち、その特定のCoAPグループに送信されるCoAPグループメッセージを受信するよう構成されており、IPマルチキャストトランスポートの場合には、グループのIPマルチキャストアドレスおよびグループのUDPポートでリッスンしているCoAPエンドポイント。

* All further CoAP endpoints configured only as CoAP clients that may send CoAP group requests to the CoAP group.

* CoAPクライアントとしてのみ構成され、CoAPグループにCoAPグループリクエストを送信する可能性のある、その他すべてのCoAPエンドポイント。

5.2. Secure Group Maintenance

5.2. セキュアなグループメンテナンス

As part of group maintenance operations (see Section 2.2.4), additional key management operations are required for an OSCORE group, also depending on the security requirements of the application (see Section 6.2.1). Specifically:

グループメンテナンス操作 (2.2.4節を参照) の一環として、OSCOREグループには、アプリケーションのセキュリティ要件 (6.2.1節を参照) にも応じて、追加の鍵管理操作が必要になります。具体的には次のとおりです。

* Adding new members to a CoAP group, or enabling new client-only endpoints to interact with that group, requires that each new member/endpoint joins the corresponding OSCORE group. When this happens, they are securely provided with the security material to use in that OSCORE group.

* CoAPグループに新しいメンバを追加すること、または新しいクライアント専用エンドポイントがそのグループと対話できるようにすることには、各新規メンバ/エンドポイントが対応するOSCOREグループに参加することが必要です。参加時には、そのOSCOREグループで使用するセキュリティマテリアルが安全に提供されます。

Applications may need backward security. That is, they may require that, after having joined an OSCORE group, a new member of that group cannot read the cleartext of messages exchanged in the group prior to its joining, even if it has recorded them.

アプリケーションは後方セキュリティを必要とする場合があります。すなわち、OSCOREグループに参加した後、そのグループの新しいメンバが、参加前にグループ内で交換されたメッセージを、たとえ記録していたとしても、その平文を読めないことを要求する場合があります。

In such a case, new security material to be used in the OSCORE group has to first be generated and distributed to the current members of that group before new endpoints are also provided with that new security material upon their joining.

このような場合、OSCOREグループで使用する新しいセキュリティマテリアルをまず生成してそのグループの現在のメンバに配布し、その後に、新しいエンドポイントが参加する際にその新しいセキュリティマテリアルを提供する必要があります。

* Removing members from a CoAP group or stopping client-only endpoints from interacting with that group requires removing such members/endpoints from the corresponding OSCORE group. To this end, new security material is generated and securely distributed only to the remaining members of the OSCORE group, together with the list of former members removed from that group.

* CoAPグループからメンバを削除すること、またはクライアント専用エンドポイントがそのグループと対話できないようにすることには、対応するOSCOREグループからそれらのメンバ/エンドポイントを削除することが必要です。このために、新しいセキュリティマテリアルが生成され、OSCOREグループの残りのメンバにのみ安全に配布されます。その際、そのグループから削除された元メンバのリストも併せて配布されます。

This ensures forward security in the OSCORE group. That is, it ensures that only the members intended to remain in the OSCORE group are able to continue participating in the secure communications within that group, while the evicted ones are not able to participate after the distribution and installation of the new security material.

これにより、OSCOREグループにおける前方セキュリティが保証されます。すなわち、OSCOREグループに残ることが意図されたメンバのみが、そのグループ内のセキュアな通信への参加を継続でき、排除されたメンバは、新しいセキュリティマテリアルの配布とインストールの後には参加できなくなることが保証されます。

Also, this ensures that the members intended to remain in the OSCORE group are able to confidently verify the group membership of other sender nodes when receiving protected messages in the OSCORE group after the distribution and installation of the new security material (see Section 12.2 of [RFC10021]).

また、これにより、OSCOREグループに残ることが意図されたメンバは、新しいセキュリティマテリアルの配布とインストールの後にOSCOREグループ内で保護されたメッセージを受信する際、他の送信ノードのグループメンバーシップを確信を持って検証できることも保証されます ([RFC10021] の12.2節を参照)。

The key management operations mentioned above are entrusted to the Group Manager responsible for the OSCORE group [RFC10021]. For example, they can be performed as defined in [GROUP-MANAGER].

上記の鍵管理操作は、OSCOREグループを担当するグループマネージャに委ねられます [RFC10021]。たとえば、これらは [GROUP-MANAGER] で定義されているとおりに実行できます。

5.3. Proxy Security

5.3. プロキシのセキュリティ

Different solutions may be selected for secure group communication via a proxy depending on proxy type, use case, and deployment requirements. In this section, the options based on Group OSCORE are listed.

プロキシ経由のセキュアなグループ通信には、プロキシの種類、ユースケース、および展開要件に応じて、さまざまなソリューションを選択できます。本節では、Group OSCOREに基づく選択肢を列挙します。

For a client performing a group communication request via a forward-proxy, end-to-end security SHOULD be implemented. The client then creates a group request protected with Group OSCORE and unicasts this to the proxy. The proxy adapts the request from a forward-proxy request to a regular request and multicasts this adapted request to the indicated CoAP group. During the adaptation, the security provided by Group OSCORE persists, in the case of either using the group mode or using the pairwise mode. The first leg of communication from the client to the proxy can optionally be further protected, e.g., by using (D)TLS and/or OSCORE.

クライアントがフォワードプロキシ経由でグループ通信リクエストを実行する場合、エンドツーエンドセキュリティを実装すべきです (SHOULD)。この場合、クライアントはGroup OSCOREで保護されたグループリクエストを作成し、それをプロキシにユニキャストします。プロキシは、そのリクエストをフォワードプロキシリクエストから通常のリクエストに変換し、変換後のリクエストを指定されたCoAPグループにマルチキャストします。この変換の間も、グループモードとペアワイズモードのどちらを使用する場合でも、Group OSCOREによって提供されるセキュリティは維持されます。クライアントからプロキシへの最初の通信区間は、たとえば (D)TLS や OSCORE を使用して、任意でさらに保護してもかまいません。

For a client performing a group communication request via a reverse-proxy, either end-to-end security or hop-by-hop security can be implemented. The case of end-to-end security is the same as for the forward-proxy case.

クライアントがリバースプロキシ経由でグループ通信リクエストを実行する場合、エンドツーエンドセキュリティまたはホップバイホップセキュリティのいずれかを実装できます。エンドツーエンドセキュリティの場合は、フォワードプロキシの場合と同じです。

The case of hop-by-hop security is only possible if the proxy is considered trustworthy in sending a group request on behalf of clients and it is configured as a member of the OSCORE security group(s) that it needs to access. As further clarified below, the first communication leg between the client and the proxy and the second communication leg between the proxy and the servers are protected individually and independently of one another.

ホップバイホップセキュリティの場合は、プロキシがクライアントに代わってグループリクエストを送信することについて信頼できると見なされ、かつ、プロキシが自身のアクセスを必要とするOSCOREセキュリティグループのメンバーとして構成されている場合にのみ可能です。以下でさらに明確にするように、クライアントとプロキシの間の最初の通信区間と、プロキシとサーバの間の2番目の通信区間は、それぞれ個別に、互いに独立して保護されます。

The first leg of communication between the client and the proxy is then protected with a security method for CoAP unicast, such as (D)TLS, OSCORE, or a combination of such methods. The second leg between the proxy and servers is protected using Group OSCORE. This can be useful in applications where, for example, the origin client does not implement Group OSCORE or the group management operations are confined to a particular network domain and the client is outside this domain.

このとき、クライアントとプロキシの間の最初の通信区間は、(D)TLS、OSCORE、またはこれらの方式の組み合わせなど、CoAPユニキャスト向けのセキュリティ方式で保護されます。プロキシとサーバの間の2番目の区間は、Group OSCOREを用いて保護されます。これは、たとえば、元のクライアントがGroup OSCOREを実装していない場合や、グループ管理操作が特定のネットワークドメイン内に限定されていてクライアントがこのドメインの外にいる場合などのアプリケーションで有用です。

The realization of proxy specified in [CoAP-GROUP-PROXY] provides further details on using Group OSCORE for all the above cases.

[CoAP-GROUP-PROXY] で規定されているプロキシの実現方法は、上記のすべてのケースでGroup OSCOREを使用することについて、さらに詳細を提供します。

6. Security Considerations

6. セキュリティに関する考慮事項

This section provides security considerations for CoAP group communication in general and particularly when using IP multicast.

このセクションでは、CoAPグループ通信全般、および特にIPマルチキャストを使用する場合のセキュリティに関する考慮事項を示します。

6.1. CoAP NoSec Mode

6.1. CoAP NoSecモード

CoAP group communication, if not protected, is vulnerable to all the attacks mentioned in Section 11 of [RFC7252] for IP multicast. Moreover, as also discussed in [CoAP-ATTACKS], the NoSec mode is susceptible to source IP address spoofing; hence, amplification attacks are especially feasible and greatly harmful, since a single request can result in multiple responses from multiple servers (see Section 6.3).

保護されていないCoAPグループ通信は、IPマルチキャストについて [RFC7252] のセクション11に挙げられているすべての攻撃に対して脆弱です。さらに、[CoAP-ATTACKS] でも論じられているように、NoSecモードは送信元IPアドレスのなりすましを受けやすく、したがって、1つのリクエストが複数のサーバからの複数の応答を引き起こす可能性があるため、増幅攻撃は特に実行しやすく、非常に有害です(セクション6.3を参照)。

For these reasons and in order to prevent proliferation of high-volume amplification attacks, as further discussed in Section 6.3, it is NOT RECOMMENDED to use CoAP group communication in NoSec mode. The requirement in Section 4 on publicly accessible CoAP servers also aims to prevent amplification attacks.

これらの理由から、またセクション6.3でさらに論じるように、大量トラフィックの増幅攻撃の拡散を防ぐため、NoSecモードでCoAPグループ通信を使用することは推奨されません (NOT RECOMMENDED)。公開アクセス可能なCoAPサーバに関するセクション4の要件も、増幅攻撃の防止を目的としています。

Exceptionally, and only after the security implications have been very well considered and understood, some applications may rely on a limited use of the NoSec mode when performing specific, well-defined "unsecured steps" (see Section 4).

例外的に、セキュリティへの影響を十分に検討し理解した後に限り、一部のアプリケーションは、特定の明確に定義された「保護されないステップ」(セクション4を参照)を実行する際に、NoSecモードを限定的に使用することに依存してもよいでしょう。

For example, early link-local discovery of devices and resources as part of an onboarding protocol is a typical use case where the NoSec mode or equivalent unsecured mode is used. In such a discovery step, there may be a querying device that needs to discover nearby devices capable of helping it with the network onboarding process. But there are no mutual security relationships configured on the querying device and its neighbor devices at the time it performs the early discovery. These relationships are configured later in the process based on secure device identities. Alternatively, a new device to be onboarded may wait for advertisements of nearby devices able to help it do the network onboarding process. Also in this case, these messages cannot be secured initially because the new device does not yet have any security relationship configured with devices that are already a member of the network. See [cBRSKI] for an example of an onboarding protocol that can use CoAP multicast for early link-local discovery.

たとえば、オンボーディングプロトコルの一環として行われる、デバイスとリソースの早期のリンクローカルディスカバリは、NoSecモードまたはそれと同等の保護されないモードが使用される典型的なユースケースです。このようなディスカバリのステップでは、ネットワークのオンボーディング処理の支援が可能な近隣のデバイスを発見する必要がある、問い合わせ側のデバイスが存在する場合があります。しかし、早期のディスカバリを実行する時点では、問い合わせ側のデバイスとその近隣デバイスとの間に、相互のセキュリティ関係は構成されていません。これらの関係は、セキュアなデバイスIDに基づいて、処理の後の段階で構成されます。あるいは、オンボーディングされる新しいデバイスが、ネットワークのオンボーディング処理の支援が可能な近隣デバイスのアドバタイズメントを待つ場合もあります。この場合も、新しいデバイスは、すでにネットワークのメンバーであるデバイスとの間にセキュリティ関係をまだ何も構成していないため、これらのメッセージを当初は保護できません。早期のリンクローカルディスカバリにCoAPマルチキャストを使用できるオンボーディングプロトコルの例については、[cBRSKI] を参照してください。

As a further example, the NoSec mode may be useful and acceptable in simple read-only applications that do not involve, impact, or disclose sensitive data and personal information. These include, e.g., read-only temperature sensors deployed in a public gathering environment, where unauthenticated clients retrieve temperature values but do not use this data to control actuators or to perform other automated actions.

さらなる例として、NoSecモードは、機微なデータや個人情報に関与せず、影響を与えず、開示もしない単純な読み取り専用のアプリケーションでは、有用かつ許容できる場合があります。これには、たとえば、公共の集会環境に展開された読み取り専用の温度センサーがあり、認証されていないクライアントが温度値を取得しますが、このデータをアクチュエータの制御やその他の自動化された動作の実行には使用しない場合が含まれます。

In the exception cases where NoSec mode is used, high-volume and harmful amplifications need to be prevented through appropriate and conservative device configurations: Taking the early discovery query as an example, only a few CoAP servers are expected to be configured for responding to multicast group requests that are sent for discovery. Also, the time window during which such unsecured requests are accepted can be limited. Furthermore, the scope is also limited: Only link-local requests are accepted.

NoSecモードが使用される例外的なケースでは、大量かつ有害な増幅を、適切で保守的なデバイス構成によって防止する必要があります。早期ディスカバリのクエリを例にとると、ディスカバリのために送信されるマルチキャストのグループリクエストに応答するよう構成されるCoAPサーバは、少数にとどまると想定されます。また、このような保護されないリクエストが受け入れられる時間枠を制限することもできます。さらに、スコープも制限されます。受け入れられるのは、リンクローカルのリクエストのみです。

Except for the class of applications discussed above (in which unsecure communication is required or is not harmful for specific, well-defined "unsecured steps"), CoAP group communication MUST NOT be used in NoSec mode.

上述のアプリケーションのクラス(特定の明確に定義された「保護されないステップ」において、保護されない通信が必要である、または有害でないもの)を除き、CoAPグループ通信をNoSecモードで使用してはなりません (MUST NOT)。

6.2. Group OSCORE

6.2. Group OSCORE

Group OSCORE provides end-to-end application-level security. This has many desirable properties, including maintaining security assurances while forwarding traffic through intermediaries (proxies). Application-level security also tends to more cleanly separate security from the specific dynamics of security group membership (e.g., the problem of distributing security keys across large groups with many members that come and go).

Group OSCOREは、エンドツーエンドのアプリケーションレベルのセキュリティを提供します。これには、中継装置(プロキシ)を経由してトラフィックを転送する間もセキュリティ保証を維持できることなど、多くの望ましい特性があります。また、アプリケーションレベルのセキュリティは、セキュリティを、セキュリティグループのメンバーシップに固有の動的な事情(たとえば、出入りの多い大勢のメンバーを持つ大規模なグループ全体にセキュリティ鍵を配布する問題)から、より明確に分離する傾向があります。

CoAP group communication MUST be protected by using Group OSCORE as specified in [RFC10021], with the possible exception of specific, well-defined "unsecured steps" (see Section 4).

CoAPグループ通信は、特定の明確に定義された「保護されないステップ」(セクション4を参照)という例外を除き、[RFC10021] で規定されているとおりにGroup OSCOREを使用して保護しなければなりません (MUST)。

The security considerations from Section 13 of [RFC10021] hold for this specification.

[RFC10021] のセクション13のセキュリティに関する考慮事項は、この仕様にも当てはまります。

6.2.1. Group Key Management

6.2.1. グループ鍵管理

Group rekeying, that is, a key management scheme for secure revocation and renewal of group security material, is required to be adopted in OSCORE groups. The key management scheme has to preserve forward security in the OSCORE group, as well as backward security if this is required by the application (see Section 5.2). In particular, the key management scheme MUST comply with the functional steps defined in Section 12.2 of [RFC10021].

グループの鍵更新、すなわちグループのセキュリティマテリアルを安全に失効させ更新するための鍵管理方式は、OSCOREグループで採用することが求められます。鍵管理方式は、OSCOREグループにおけるフォワードセキュリティを維持しなければならず、アプリケーションで必要とされる場合にはバックワードセキュリティも維持しなければなりません(セクション5.2を参照)。特に、鍵管理方式は、[RFC10021] のセクション12.2で定義されている機能ステップに準拠しなければなりません (MUST)。

Even though security group policies vary depending on the specific applications and their security requirements, they SHOULD also take into account:

セキュリティグループのポリシーは、特定のアプリケーションとそのセキュリティ要件によって異なりますが、次の事項も考慮に入れるべきです (SHOULD)。

* The expected amount of time that the key management scheme requires to rekey the OSCORE group.

* 鍵管理方式がOSCOREグループの鍵を更新するために必要とする、想定所要時間。

* The expected frequency of group membership changes in the OSCORE group (i.e., nodes joining and leaving).

* OSCOREグループにおけるグループメンバーシップの変更(すなわち、ノードの参加と離脱)の想定頻度。

* The identity of the specific CoAP endpoints as they join and leave the OSCORE group.

* 特定のCoAPエンドポイントがOSCOREグループに参加および離脱する際のそのIDの扱い。

In particular, it can be desirable to not rekey the OSCORE group upon every single membership change, in case group members frequently join and leave, and at the same time, a single group rekeying instance takes a non-negligible time to complete.

特に、グループメンバーが頻繁に参加と離脱を繰り返し、同時に、1回のグループ鍵更新の完了にかなりの時間がかかる場合には、メンバーシップが1回変わるたびにOSCOREグループの鍵を更新しないことが望ましい場合があります。

In such a case, the Group Manager can cautiously consider to rekey the OSCORE group, e.g., after a minimum number of nodes has joined or left the group within a predefined time interval, or according to communication patterns with predictable time intervals of network inactivity. This would prevent a slow rekeying scheme that is frequently invoked from paralyzing communications in the OSCORE group.

そのような場合、グループマネージャは、たとえば、あらかじめ定められた時間間隔内に最小限の数のノードがグループに参加または離脱した後や、ネットワークの非活動時間間隔が予測可能な通信パターンに従って、OSCOREグループの鍵を更新することを慎重に検討できます。これにより、頻繁に呼び出される低速な鍵更新方式がOSCOREグループ内の通信を麻痺させることを防げます。

At the same time, the security implications of delaying the rekeying process have to be carefully considered and understood before employing such security group policies.

同時に、このようなセキュリティグループポリシーを採用する前に、鍵更新プロセスを遅延させることによるセキュリティへの影響を、慎重に検討し理解しておかなければなりません。

In fact, this comes at the cost of not continuously preserving backward and forward security, since group rekeying might not occur upon every single change in the OSCORE group membership. That is, recently joined nodes would have access to the security material used prior to their joining and thus would be able to access past group communications protected with that security material. Similarly, until the OSCORE group is rekeyed, recently left nodes would retain access to group communications protected with the existing security material.

実際、これはバックワードセキュリティとフォワードセキュリティを継続的には維持しないという代償を伴います。OSCOREグループのメンバーシップが1回変わるたびにグループ鍵更新が行われるとは限らないためです。すなわち、最近参加したノードは、参加前に使用されていたセキュリティマテリアルにアクセスできるため、そのセキュリティマテリアルで保護された過去のグループ通信にアクセスできてしまいます。同様に、OSCOREグループの鍵が更新されるまでは、最近離脱したノードは、既存のセキュリティマテリアルで保護されたグループ通信へのアクセスを保持します。

6.2.2. Source Authentication

6.2.2. 送信元認証

Both the group mode and the pairwise mode of Group OSCORE ensure source authentication of messages exchanged by CoAP endpoints through CoAP group communication.

Group OSCOREのグループモードとペアワイズモードはいずれも、CoAPグループ通信を通じてCoAPエンドポイント間でやり取りされるメッセージの送信元認証を保証します。

To this end, outgoing messages are either signed by the message sender endpoint with its own private key (group mode) or protected with a symmetric key, which is in turn derived using the asymmetric keys of the message sender and recipient (pairwise mode).

このために、送信するメッセージは、メッセージ送信側エンドポイントが自身の秘密鍵で署名する(グループモード)か、送信側と受信側の非対称鍵を用いて導出された対称鍵で保護されます(ペアワイズモード)。

Thus, both modes allow a recipient CoAP endpoint to verify that a message has actually been originated and sent by a specific and identified CoAP endpoint as a member of the OSCORE group.

したがって、どちらのモードでも、受信側のCoAPエンドポイントは、メッセージが実際にOSCOREグループのメンバーである特定の識別されたCoAPエンドポイントによって生成され送信されたことを検証できます。

Note that Group OSCORE does not protect the addressing information about the CoAP endpoint that has sent the message, e.g., the source IP address and port number used when sending the message. In particular, Group OSCORE does not provide authentication of such source addressing information.

Group OSCOREは、メッセージを送信したCoAPエンドポイントのアドレッシング情報(たとえば、メッセージの送信時に使用された送信元IPアドレスとポート番号)を保護しないことに注意してください。特に、Group OSCOREは、そのような送信元のアドレッシング情報の認証を提供しません。

6.2.3. Countering Attacks

6.2.3. 攻撃への対抗

As discussed below, Group OSCORE addresses a number of security attacks mentioned in Section 11 of [RFC7252], with particular reference to their execution over IP multicast.

以下で論じるように、Group OSCOREは、[RFC7252] のセクション11で挙げられているいくつかのセキュリティ攻撃に、特にIPマルチキャスト上でのそれらの実行に着目して対処します。

* Since Group OSCORE provides end-to-end confidentiality and integrity of request/response messages, proxies capable of group communication cannot break message protection and thus cannot act as meddler-in-the-middle beyond their legitimate duties (see Section 11.2 of [RFC7252]). In fact, intermediaries such as proxies are not assumed to have access to the Group OSCORE Security Context used by OSCORE group members. Also, with the notable addition of signatures for the group mode, Group OSCORE protects messages using the same procedure as OSCORE (see Sections 7 and 8 of [RFC10021]) and especially processes CoAP options according to the same classification in U/I/E classes.

* Group OSCOREはリクエスト/レスポンスメッセージのエンドツーエンドの機密性と完全性を提供するため、グループ通信に対応したプロキシは、メッセージの保護を破ることができず、したがって正当な任務を超えて中間者として振る舞うことはできません([RFC7252] のセクション11.2を参照)。実際、プロキシなどの中継装置は、OSCOREグループのメンバーが使用するGroup OSCOREセキュリティコンテキストにアクセスできるとは想定されていません。また、グループモードの署名が加わる点が顕著な違いですが、Group OSCOREはOSCOREと同じ手順でメッセージを保護し([RFC10021] のセクション7および8を参照)、特にCoAPオプションをU/I/Eクラスの同じ分類に従って処理します。

* Thanks to the handling of protected group requests on the server side, Group OSCORE limits the feasibility and impact of amplification attacks (see Section 11.3 of [RFC7252]).

* サーバ側での保護されたグループリクエストの処理のおかげで、Group OSCOREは増幅攻撃の実行可能性と影響を制限します([RFC7252] のセクション11.3を参照)。

Upon receiving a group request protected with Group OSCORE, a server verifies whether the request is not a replay and has been originated by the alleged CoAP endpoint in the OSCORE group.

Group OSCOREで保護されたグループリクエストを受信すると、サーバは、そのリクエストがリプレイではないこと、およびOSCOREグループ内の名乗っているCoAPエンドポイントによって生成されたことを検証します。

In order to perform the latter check of source authentication, the server either: i) verifies the signature included in the request by using the public key of the client when the request is protected using the group mode (see Section 7.2 of [RFC10021]) or ii) decrypts and verifies the request by means of an additionally derived pairwise key associated with the client when the request is protected using the pairwise mode (see Section 8.4 of [RFC10021]).

後者の送信元認証のチェックを行うために、サーバは次のいずれかを行います。i) リクエストがグループモードで保護されている場合は、クライアントの公開鍵を使用して、リクエストに含まれる署名を検証します([RFC10021] のセクション7.2を参照)。ii) リクエストがペアワイズモードで保護されている場合は、クライアントに関連付けられた追加で導出されるペアワイズ鍵を用いて、リクエストを復号して検証します([RFC10021] のセクション8.4を参照)。

As also discussed in Section 7 of [RFC10021], it is recommended that, when failing to decrypt and verify an incoming group request protected with the group mode, a server does not send back any error message if any of the following holds: the server determines that the request was indeed sent to the whole CoAP group (e.g., over IP multicast) or the server is not able to determine it altogether.

[RFC10021] のセクション7でも論じられているように、グループモードで保護された受信グループリクエストの復号と検証に失敗した場合、次のいずれかが成り立つときは、サーバはエラーメッセージを返さないことが推奨されます。すなわち、リクエストが実際にCoAPグループ全体に(たとえばIPマルチキャスト経由で)送信されたとサーバが判断した場合、またはサーバがそれをまったく判断できない場合です。

With respect to amplification attacks, such a message processing on the server limits an external adversary to being on-path and leveraging an intercepted group request protected with Group OSCORE by altering the source address of the request to be the one of the intended amplification victim.

増幅攻撃に関しては、サーバでのこのようなメッセージ処理により、外部の攻撃者は、経路上に位置し、傍受したGroup OSCOREで保護されたグループリクエストの送信元アドレスを、意図する増幅攻撃の被害者のアドレスに書き換えて悪用することに限定されます。

Furthermore, the adversary needs to consider a group request that specifically targets a resource for which the CoAP servers are configured to respond. While this can often be correctly inferred from the application context, it is not explicit from the group request itself, since Group OSCORE protects the Uri-Path and Uri-Query CoAP Options conveying the respective components of the target URI.

さらに、攻撃者は、CoAPサーバが応答するように構成されているリソースを具体的に対象とするグループリクエストを考慮する必要があります。これはアプリケーションコンテキストから正しく推測できることが多いものの、Group OSCOREが対象URIの各コンポーネントを運ぶ Uri-Path および Uri-Query のCoAPオプションを保護するため、グループリクエスト自体からは明示されません。

Amplification attacks are further discussed in Section 6.3, together with available mitigations.

増幅攻撃については、利用可能な緩和策とともに、6.3節でさらに議論します。

* Group OSCORE limits the impact of attacks based on IP spoofing over IP multicast (see Section 11.4 of [RFC7252]). In fact, requests and corresponding responses sent in the OSCORE group can be correctly generated only by CoAP endpoints that are legitimate members of the group.

* Group OSCOREは、IPマルチキャスト上のIPスプーフィングに基づく攻撃の影響を抑えます([RFC7252]の11.4節を参照)。実際、OSCOREグループ内で送信されるリクエストおよび対応するレスポンスを正しく生成できるのは、そのグループの正当なメンバであるCoAPエンドポイントだけです。

Within an OSCORE group, the shared symmetric-key security material strictly provides only group-level authentication. However, source authentication of messages is also ensured, both in the group mode by means of signatures (see Sections 7.1 and 7.3 of [RFC10021]) and in the pairwise mode by using additionally derived pairwise keys (see Sections 8.3 and 8.5 of [RFC10021]). Thus, recipient endpoints can verify a message to have been originated and sent by the alleged, identifiable CoAP endpoint in the OSCORE group.

OSCOREグループ内では、共有される対称鍵のセキュリティマテリアルが厳密に提供するのはグループレベルの認証のみです。しかし、メッセージの送信元認証も確保されます。これは、グループモードでは署名によって([RFC10021]の7.1節および7.3節を参照)、ペアワイズモードでは追加で導出されるペアワイズ鍵を用いることによって([RFC10021]の8.3節および8.5節を参照)実現されます。したがって、受信側エンドポイントは、メッセージがOSCOREグループ内の主張どおりの識別可能なCoAPエンドポイントによって生成・送信されたことを検証できます。

The server may additionally rely on the Echo Option for CoAP defined in [RFC9175] in order to verify the reachability of the client sending a request from a particular IP address. As discussed in Section 6.3, this also helps mitigate amplification attacks.

サーバは、特定のIPアドレスからリクエストを送信するクライアントへの到達性を検証するために、[RFC9175]で定義されているCoAP用のEchoオプションをさらに利用してもよい。6.3節で議論するとおり、これは増幅攻撃の緩和にも役立ちます。

Note that using the Echo Option does not provide authentication of source addressing information about the sender of a CoAP message. Also, using the Echo Option in itself does not provide source authentication of exchanged messages, which is achieved by means of Group OSCORE (see Section 6.2.2).

Echoオプションを使用しても、CoAPメッセージの送信者に関する送信元アドレス情報の認証は提供されないことに注意してください。また、Echoオプションを使用すること自体は、やり取りされるメッセージの送信元認証を提供しません。送信元認証はGroup OSCOREによって実現されます(6.2.2節を参照)。

Using the Echo Option together with Group OSCORE also allows a CoAP server in the OSCORE group to verify the freshness of CoAP requests received from other members in the group (see Section 9 of [RFC10021]), thereby verifying the aliveness of CoAP clients sending those requests.

Echoオプションを Group OSCORE と併用すると、OSCOREグループ内のCoAPサーバは、グループ内の他のメンバから受信したCoAPリクエストの鮮度を検証でき([RFC10021]の9節を参照)、それによってそれらのリクエストを送信するCoAPクライアントの生存性も検証できます。

* Group OSCORE does not require members of an OSCORE group to be equipped with a good source of entropy for generating security material (see Section 11.6 of [RFC7252]) and thus does not contribute to create an entropy-related attack vector against such (constrained) CoAP endpoints. In particular, the symmetric keys used for message encryption and decryption are derived through the same HMAC-based Key Derivation Function (HKDF) scheme used for OSCORE (see Section 3.2 of [RFC8613]). Besides, the OSCORE Master Secret used in such derivation is securely generated by the Group Manager responsible for the OSCORE group and is securely provided to the CoAP endpoints when they join the OSCORE group.

* Group OSCOREは、OSCOREグループのメンバに対し、セキュリティマテリアルを生成するための良質なエントロピー源を備えることを要求しません([RFC7252]の11.6節を参照)。そのため、そのような(制約のある)CoAPエンドポイントに対してエントロピーに関連する攻撃経路を生み出すことにもなりません。特に、メッセージの暗号化と復号に使われる対称鍵は、OSCOREで使われるものと同じHMACベースの鍵導出関数 (HKDF) 方式によって導出されます([RFC8613]の3.2節を参照)。さらに、その導出に使われるOSCORE Master Secretは、そのOSCOREグループを担当するGroup Managerによって安全に生成され、CoAPエンドポイントがOSCOREグループに参加する際に安全に提供されます。

* Group OSCORE prevents any single member of an OSCORE group from being a target for subverting security in the whole group (see Section 11.6 of [RFC7252]), even though all group members share (and can derive) the same symmetric-key security material used in the group. In fact, source authentication is always ensured for exchanged CoAP messages, as they can be verified as originating from a specific, identifiable sender within the OSCORE group. This relies on including a signature computed with a node's individual private key (in the group mode) or on protecting messages with a pairwise symmetric key, which is in turn derived from the asymmetric keys of the sender and recipient CoAP endpoints (in the pairwise mode).

* Group OSCOREは、グループ内で使われる同一の対称鍵のセキュリティマテリアルをすべてのグループメンバが共有しており(かつ導出でき)ても、OSCOREグループの単一のメンバが、グループ全体のセキュリティを破壊するための標的になることを防ぎます([RFC7252]の11.6節を参照)。実際、やり取りされるCoAPメッセージについては、OSCOREグループ内の特定の識別可能な送信者から発信されたものとして検証できるため、送信元認証が常に確保されます。これは、(グループモードでは)ノード固有の秘密鍵で計算された署名を含めること、または(ペアワイズモードでは)ペアワイズ対称鍵でメッセージを保護することに依拠しており、この鍵は送信側と受信側のCoAPエンドポイントの非対称鍵から導出されます。

6.3. Risk of Amplification

6.3. 増幅のリスク

Section 11.3 of [RFC7252] highlights that CoAP group requests may be used for accidentally or deliberately performing Denial of Service (DoS) attacks, especially in the form of a high-volume amplification attack, by using all the servers in the CoAP group as attack vectors.

[RFC7252]の11.3節は、CoAPのグループリクエストが、CoAPグループ内のすべてのサーバを攻撃の媒介として使うことで、偶発的または意図的にサービス拒否 (DoS) 攻撃、特に大量の増幅攻撃を行うために使われる可能性があることを指摘しています。

In particular, an adversary can send a group request via IP multicast to a CoAP group, spoofing the source IP address to be the one of a designated victim (within the local network or on the Internet).

特に、攻撃者は、送信元IPアドレスを(ローカルネットワーク内またはインターネット上の)指定した被害者のものに偽装して、IPマルチキャストでCoAPグループにグループリクエストを送信できます。

After receiving the group request, each of the servers in the group may reply to the victim with a response that is likely larger in size than the group request. In terms of attack impact, an adversary sending a single group request may therefore achieve a large amplification factor, i.e., a high ratio between the total size of the responses sent to the attack victim and the size of the corresponding group request.

グループリクエストを受信すると、グループ内の各サーバは、グループリクエストよりもサイズが大きくなりそうなレスポンスを被害者に返信する可能性があります。攻撃の影響という観点では、したがって、単一のグループリクエストを送信する攻撃者が大きな増幅率、すなわち、攻撃の被害者に送信されるレスポンスの合計サイズと対応するグループリクエストのサイズとの高い比率を達成する可能性があります。

When performing such an attack, the amplification factor would become even larger if CoAP group communication is combined with resource observation [RFC7641], as described in Section 3.7 of this document. That is, a single group request conveying the Observe Option may result in multiple notification responses from each of the responding servers in the CoAP group throughout the observation lifetime.

このような攻撃を行う場合、本文書の3.7節で説明されているように、CoAPグループ通信がリソースオブザベーション [RFC7641] と組み合わされると、増幅率はさらに大きくなります。つまり、Observeオプションを運ぶ単一のグループリクエストにより、CoAPグループ内の応答する各サーバから、オブザベーションの存続期間を通じて複数の通知レスポンスが送信される可能性があります。

Further discussion and examples of amplification attacks using CoAP are provided in [CoAP-ATTACKS].

CoAPを用いた増幅攻撃に関するさらなる議論と例は、[CoAP-ATTACKS]に示されています。

Consistent with the mitigations defined in Section 11.3 of [RFC7252], a server in a CoAP group:

[RFC7252]の11.3節で定義されている緩和策と整合して、CoAPグループ内のサーバは次のようにします。

* SHOULD limit the support for CoAP group requests only to the group resources of the application group(s) using that CoAP group;

* CoAPグループ向けのリクエストのサポートを、そのCoAPグループを使用するアプリケーショングループのグループリソースのみに限定すべきです (SHOULD)。

* SHOULD NOT accept group requests that cannot be authenticated in some way, i.e., for which it is not possible to securely verify that they have been originated and sent by the alleged, identifiable CoAP endpoint in the OSCORE group; and

* 何らかの方法で認証できないグループリクエスト、すなわち、OSCOREグループ内の主張どおりの識別可能なCoAPエンドポイントによって生成・送信されたことを安全に検証できないグループリクエストを受け入れるべきではありません (SHOULD NOT)。

* SHOULD NOT provide large amplification factors through its responses to a non-authenticated group request, possibly employing CoAP block-wise transfers [RFC7959] to reduce the amount of amplification provided.

* 認証されていないグループリクエストに対するレスポンスによって大きな増幅率をもたらすべきではありません (SHOULD NOT)。必要に応じて、CoAPブロック単位転送 [RFC7959] を採用して、もたらされる増幅の量を減らしてもよい。

Furthermore, when CoAP group communication is combined with resource observation [RFC7641], a server in a CoAP group MUST strictly limit the number of notifications it sends between receiving CoAP Acknowledgements that confirm the actual interest of the client in continuing the observation (see Section 7 of [RFC7641]). That is, any notifications sent in Non-confirmable messages MUST be interspersed with Confirmable messages. Note that an adversary may still spoof the CoAP Acknowledgements, e.g., if it is on-path and can read the Message ID values or if the time when Confirmable messages are sent by the server and their Message ID values are sufficiently predictable.

さらに、CoAPグループ通信がリソースオブザベーション [RFC7641] と組み合わされる場合、CoAPグループ内のサーバは、クライアントがオブザベーションを継続する実際の関心を確認するCoAP Acknowledgementを受信する間に送信する通知の数を、厳格に制限しなければなりません (MUST)([RFC7641]の7節を参照)。つまり、Non-confirmableメッセージで送信される通知は、Confirmableメッセージを間に挟まなければなりません (MUST)。ただし、攻撃者がオンパスでMessage IDの値を読み取れる場合や、サーバがConfirmableメッセージを送信する時刻およびそのMessage IDの値が十分に予測可能な場合などには、攻撃者が依然としてCoAP Acknowledgementを偽装できる可能性があることに注意してください。

Section 6.3.1 describes how amplification attacks can be mitigated by using the Echo Option for CoAP defined in [RFC9175].

6.3.1節では、[RFC9175]で定義されているCoAP用のEchoオプションを使用することで、増幅攻撃をどのように緩和できるかを説明します。

Evidently, it is especially easy to perform an amplification attack when the NoSec mode is used (see Section 4). Therefore, also in order to prevent an easy proliferation of high-volume amplification attacks, it is generally NOT RECOMMENDED to use CoAP group communication in NoSec mode (see Section 6.1).

NoSecモードが使用される場合、増幅攻撃を行うことが特に容易であることは明らかです(4節を参照)。したがって、大量の増幅攻撃が容易に蔓延するのを防ぐためにも、一般にNoSecモードでCoAPグループ通信を使用することは推奨されません (NOT RECOMMENDED)(6.1節を参照)。

Besides building on very well understood security implications and being limited to specific, well-defined "unsecured steps" (see Section 4), possible exceptions to the above rule should also be limited to use cases where accesses to a group resource have a specific, narrow, and well-understood scope and where only a few CoAP servers (or, ideally, only one) would possibly respond to a group request.

セキュリティ上の影響が非常によく理解されていることと、明確に定義された特定の「セキュリティなしのステップ」に限定されること(4節を参照)に加えて、上記の規則に対する例外となり得るものは、グループリソースへのアクセスの範囲が特定的で狭く、よく理解されているユースケース、かつ、グループリクエストに応答する可能性があるCoAPサーバが少数(理想的には1つだけ)であるユースケースにも限定されるべきです。

A relevant exceptional example is a CoAP client performing the discovery of hosts such as a Group Manager or an RD [RFC9176] by probing for them through a group request sent to the CoAP group. This early, unprotected step is relevant for a CoAP client that does not know the address of such hosts in advance and that has not yet configured a mutual security relationship with them. In these kinds of deployments, such a discovery procedure does not result in a considerable and harmful amplification, since only the few CoAP servers that are the object of discovery are going to respond to the group request targeting that specific resource. In particular, those hosts can be the only CoAP servers in that specific CoAP group (hence listening for group requests sent to that group) and/or the only CoAP servers explicitly configured to respond to group requests targeting specific group resources.

関連する例外的な例は、CoAPクライアントが、CoAPグループに送信するグループリクエストによってGroup ManagerやRD [RFC9176] などのホストを探索し、それらのディスカバリを行う場合です。この初期の保護されていないステップは、そのようなホストのアドレスを事前に知らず、まだそれらとの相互のセキュリティ関係を構成していないCoAPクライアントにとって重要です。この種の展開では、このようなディスカバリ手順は、相当な有害な増幅をもたらしません。これは、その特定のリソースを対象とするグループリクエストに応答するのは、ディスカバリの対象である少数のCoAPサーバのみだからです。特に、それらのホストは、その特定のCoAPグループ内で唯一のCoAPサーバ(したがって、そのグループに送信されたグループリクエストを待ち受けている)であるか、特定のグループリソースを対象とするグループリクエストに応答するように明示的に構成された唯一のCoAPサーバであるか、またはその両方である場合があります。

With the exception of such particular use cases, group communications MUST be secured using Group OSCORE [RFC10021]; see Section 5. As discussed in Section 6.2.3, this limits the feasibility and impact of amplification attacks.

そのような特定のユースケースを除き、グループ通信は Group OSCORE [RFC10021] を使用して保護しなければなりません (MUST)。5節を参照してください。6.2.3節で議論するとおり、これにより増幅攻撃の実現可能性と影響が抑えられます。

6.3.1. Mitigation with the CoAP Echo Option

6.3.1. CoAP Echoオプションによる緩和

As a further mitigation against amplification attacks, a server can also rely on the Echo Option for CoAP [RFC9175], including it in a response to a group request. By doing so, the server can verify whether the alleged sender of the group request is indeed reachable at the claimed source address of the group request.

増幅攻撃に対するさらなる緩和策として、サーバは、グループリクエストに対するレスポンスにCoAP用のEchoオプション [RFC9175] を含めることで、これに依拠することもできます。そうすることで、サーバは、グループリクエストの主張上の送信者が、そのグループリクエストの主張された送信元アドレスで実際に到達可能かどうかを検証できます。

In particular, Section 2.6 of [RFC9175] updates Section 11.3 of [RFC7252] as normatively recommending that CoAP servers use the Echo Option to mitigate amplification attacks by replying to unauthenticated CoAP clients with a 4.01 (Unauthorized) response including an Echo Option.

特に、[RFC9175]の2.6節は[RFC7252]の11.3節を更新し、認証されていないCoAPクライアントに対して、Echoオプションを含む4.01 (Unauthorized) レスポンスを返すことで増幅攻撃を緩和するために、CoAPサーバがEchoオプションを使用することを規範的に推奨しています。

Consistent with the above, a server in a CoAP group SHOULD mitigate potential amplification attacks by replying to unauthenticated CoAP clients with a 4.01 (Unauthorized) response including an Echo Option, as described in Section 2.3 of [RFC9175] and in item 3 in Section 2.4 of [RFC9175].

上記と整合して、CoAPグループ内のサーバは、[RFC9175]の2.3節および[RFC9175]の2.4節の項目3で説明されているように、認証されていないCoAPクライアントに対して、Echoオプションを含む4.01 (Unauthorized) レスポンスを返すことで、潜在的な増幅攻撃を緩和すべきです (SHOULD)。

In the limited, exceptional cases where the NoSec mode is used (see Section 4), relying on the Echo Option makes it possible to mitigate amplification attacks launched by an off-path adversary.

NoSecモードが使用される限定的で例外的なケース(4節を参照)では、Echoオプションに依拠することで、オフパスの攻撃者によって仕掛けられる増幅攻撃を緩和できます。

When using secure communications protected with Group OSCORE, source authentication of messages is ensured. Hence, upon receiving a valid group request, a server always authenticates the CoAP client that has sent the request.

Group OSCOREで保護されたセキュアな通信を使用する場合、メッセージの送信元認証が確保されます。したがって、有効なグループリクエストを受信すると、サーバは常に、そのリクエストを送信したCoAPクライアントを認証します。

Nevertheless, also when using Group OSCORE, a server in a CoAP group SHOULD mitigate potential amplification attacks by using the Echo Option. In particular, the server does so after having successfully decrypted and verified an incoming group request by using a Recipient Context that is not associated with a validated network address or is associated with a validated network address different from the source address of the present group request.

それでも、Group OSCOREを使用する場合も、CoAPグループ内のサーバは、Echoオプションを使用して潜在的な増幅攻撃を緩和すべきです (SHOULD)。特に、サーバは、検証済みネットワークアドレスに関連付けられていない、または今回のグループリクエストの送信元アドレスとは異なる検証済みネットワークアドレスに関連付けられているRecipient Contextを使用して、受信したグループリクエストの復号と検証に成功した後に、これを行います。

The server uses the Echo Option as specified in Section 2.3 of [RFC9175] and in item 3 in Section 2.4 of [RFC9175]. In particular, the 4.01 (Unauthorized) response including the Echo Option is protected with Group OSCORE and MUST be an inner option (i.e., it is also protected by means of Group OSCORE).

サーバは、[RFC9175]の2.3節および[RFC9175]の2.4節の項目3で規定されているとおりにEchoオプションを使用します。特に、Echoオプションを含む4.01 (Unauthorized) レスポンスはGroup OSCOREで保護され、inner optionでなければなりません (MUST)(すなわち、Group OSCOREによっても保護されます)。

If the server receives a new request conveying the Echo Option and recognizes the stored option value as associated with the source address of the present request, then the server associates that source address with the Recipient Context used to process the request, after having successfully decrypted and verified it with Group OSCORE.

サーバが、Echoオプションを運ぶ新しいリクエストを受信し、保存されているオプション値が今回のリクエストの送信元アドレスに関連付けられたものであると認識した場合、サーバは、Group OSCOREでそのリクエストの復号と検証に成功した後に、その送信元アドレスを、リクエストの処理に使用したRecipient Contextに関連付けます。

By doing so, the server can verify whether the alleged sender of the group request (i.e., the CoAP client associated with a certain authentication credential including the corresponding public key) is indeed reachable at the claimed source address of the group request, especially if such an address differs from the one used in previous group requests from the same (authenticated) device.

そうすることで、サーバは、グループリクエストの主張上の送信者(すなわち、対応する公開鍵を含む特定の認証クレデンシャルに関連付けられたCoAPクライアント)が、そのグループリクエストの主張された送信元アドレスで実際に到達可能かどうかを検証できます。これは特に、そのアドレスが同じ(認証済みの)デバイスからの以前のグループリクエストで使われたものと異なる場合に有効です。

Note that the above is also achieved when the server uses the Echo Option due to other reasons, e.g., when running the challenge-response method defined in Section 9 of [RFC10021].

上記は、サーバが他の理由でEchoオプションを使用する場合、たとえば[RFC10021]の9節で定義されているチャレンジレスポンス方式を実行する場合にも達成されることに注意してください。

When using Group OSCORE, relying on the Echo Option makes it possible to mitigate amplification attacks launched by an external on-path adversary (see also Section 6.2.3) or by an internal off-path adversary. Instead, it is not effective against attacks launched by an internal on-path adversary.

Group OSCOREを使用する場合、Echoオプションに依拠することで、外部のオンパスの攻撃者(6.2.3節も参照)または内部のオフパスの攻撃者によって仕掛けられる増幅攻撃を緩和できます。一方、内部のオンパスの攻撃者によって仕掛けられる攻撃には有効ではありません。

Note that an internal adversary, being a member of the security group, considerably exposes itself in an identifiable and accountable way due to the source authentication of the protected requests that it sends. This raises the chances that such an adversary is detected and consequently evicted from the security group, i.e., through group rekeying (see Section 6.2.1).

セキュリティグループのメンバである内部の攻撃者は、自身が送信する保護されたリクエストの送信元認証により、識別可能かつ追跡可能な形で自らを大きく晒すことに注意してください。これにより、そのような攻撃者が検出され、その結果としてグループの鍵更新を通じてセキュリティグループから排除される可能性が高まります(6.2.1節を参照)。

Although CoAP responses including the Echo Option may still result in amplification, this is limited in volume compared to when all servers in a CoAP group reply with larger, full responses.

Echo Optionを含むCoAP応答でも増幅は生じうるものの、CoAPグループ内のすべてのサーバがより大きな完全な応答を返す場合と比べると、その量は限定されます。

6.4. Replay of Group Requests

6.4. グループリクエストのリプレイ

After a client has sent a group request over IP multicast, an adversary might capture the group request to be re-injected in the group as a replay to the server nodes. In particular:

クライアントがIPマルチキャストでグループリクエストを送信した後、攻撃者はそのグループリクエストを捕捉し、サーバノードに対するリプレイとしてグループに再注入するかもしれません。具体的には次のとおりです。

* If the adversary re-injects the group request before the client has freed up the corresponding Token value (see Section 3.1.5), the client might receive additional responses from one or more of the servers in the group.

* 攻撃者が、クライアントが対応するトークン(Token) の値を解放する前にグループリクエストを再注入した場合、クライアントはグループ内の1つ以上のサーバから追加の応答を受信するかもしれません。

Due to the group request being Non-confirmable and thus not eliciting Acknowledgement messages, the client might not be able to notice the attack or to distinguish the responses that a particular server has sent as a reply to the original group request (if any) or to the replayed group request.

グループリクエストはNon-confirmableであり、Acknowledgementメッセージを引き起こさないため、クライアントは攻撃に気づけない可能性があります。また、特定のサーバが元のグループリクエスト(があれば)への応答として送信した応答と、リプレイされたグループリクエストへの応答として送信した応答とを区別できない可能性もあります。

* If the adversary re-injects the group request after the client has freed up the corresponding Token value, the client would no longer have a valid, active request matching with responses that the servers sent to the replayed group request.

* 攻撃者が、クライアントが対応するトークン(Token) の値を解放した後にグループリクエストを再注入した場合、クライアントには、サーバがリプレイされたグループリクエストに対して送信した応答と対応づく有効でアクティブなリクエストがもはや存在しません。

It follows that, in either case, this replay attack would not accomplish anything on the client; however, it does target the servers in the group that do not implement the optional deduplication based on Message ID.

したがって、いずれの場合でも、このリプレイ攻撃がクライアントに対して何かを達成することはありません。ただし、Message IDに基づく任意の重複排除を実装していない、グループ内のサーバは攻撃の対象となります。

If Group OSCORE is used, such a replay attack is prevented on all servers, since a client protects each different request with a different Sender Sequence Number value, which is in turn included as Partial IV in the protected message and takes part in the construction of the AEAD cipher nonce. Thus, a server would be able to detect the replayed request by checking the conveyed Partial IV against its own Replay Window in the Recipient Context associated with the client.

Group OSCOREを使用する場合、クライアントは異なるリクエストごとに異なるSender Sequence Numberの値で保護し、その値はPartial IVとして保護メッセージに含まれ、AEAD暗号のナンスの構成に使われるため、このようなリプレイ攻撃はすべてのサーバで防止されます。したがって、サーバは、伝達されたPartial IVを、そのクライアントに関連づけられたRecipient Context内の自身のReplay Windowと照合することで、リプレイされたリクエストを検出できます。

This requires a server to have a Replay Window that is in a valid state. If the server's Replay Window is initialized as invalid, e.g., due to a reboot, the server should use the challenge-response synchronization method based on the Echo Option for CoAP defined in [RFC9175] as described in Section 9 of [RFC10021] in order to make the Replay Window valid before resuming to accept incoming messages from other group members.

これには、サーバのReplay Windowが有効な状態であることが必要です。サーバのReplay Windowが、再起動などにより無効として初期化されている場合、サーバは、他のグループメンバーからの受信メッセージの受理を再開する前にReplay Windowを有効にするため、[RFC10021] のセクション9で説明されているとおり、[RFC9175] で定義されたCoAP向けEcho Optionに基づくチャレンジレスポンス同期方式を使用すべきです。

6.5. Use of the CoAP No-Response Option

6.5. CoAP No-Response Optionの使用

When CoAP group communication is used in CoAP NoSec mode (see Section 4), the CoAP No-Response Option [RFC7967] could be misused by a malicious client to evoke as many responses from servers to a group request as possible by using the value '0' -- Interested in all responses. This might even override the default behavior of a CoAP server to suppress the response in case there is nothing of interest to respond with. Therefore, this option can be used to perform an amplification attack (see Section 6.3).

CoAPグループ通信がCoAP NoSecモードで使用される場合(セクション4を参照)、CoAP No-Response Option [RFC7967] は、悪意のあるクライアントによって、値 '0' -- Interested in all responses を使用することで、グループリクエストに対してサーバからできるだけ多くの応答を引き出すために悪用される可能性があります。これは、返すべき関心対象がない場合に応答を抑制するというCoAPサーバのデフォルトの動作さえ上書きしてしまうかもしれません。したがって、このオプションは増幅攻撃(セクション6.3を参照)の実行に使われうるものです。

As a mitigation, a server that takes the No-Response Option into account can specifically relax the standard suppression rules for a resource only in the case that the option is sent by an authenticated client. Consequently, if sent by an unauthenticated client, the option can still be used to expand the classes of responses suppressed compared to the default rules but not to reduce the classes of responses suppressed.

緩和策として、No-Response Optionを考慮に入れるサーバは、そのオプションが認証済みのクライアントから送信された場合に限り、リソースに対する標準の抑制規則を個別に緩和できます。その結果、認証されていないクライアントから送信された場合、このオプションは、デフォルトの規則と比べて抑制される応答のクラスを拡大するためには依然として使用できますが、抑制される応答のクラスを減らすためには使用できません。

6.6. 6LoWPAN and MPL

6.6. 6LoWPANとMPL

In a 6LoWPAN network, the MPL [RFC7731] protocol may be used to forward multicast packets throughout the network. A 6LoWPAN Router that forwards a large IPv6 packet may have a relatively high impact on the occupation of the wireless channel because sending a large packet consists of the transmission of multiple link-layer IEEE 802.15.4 frames. Also, a constrained 6LoWPAN Router may experience a high memory load due to buffering of the large packet -- MPL requires an MPL Forwarder to store the packet for a longer duration to allow multiple forwarding transmissions to neighboring Forwarders. This could allow an attacker on the 6LoWPAN network or outside the 6LoWPAN network to execute a DoS attack by sending large IPv6 multicast packets. This is also an amplification attack in general, because each of potentially multiple MPL Forwarders repeat the transmission of the IPv6 packet potentially multiple times, hence amplifying the original amount of data sent by the attacker considerably.

6LoWPANネットワークでは、ネットワーク全体にマルチキャストパケットを転送するためにMPL [RFC7731] プロトコルが使用される場合があります。大きなIPv6パケットを転送する6LoWPANルータは、無線チャネルの占有に比較的大きな影響を与える可能性があります。これは、大きなパケットの送信が、複数のリンク層IEEE 802.15.4フレームの送信から成るためです。また、制約のある6LoWPANルータは、大きなパケットのバッファリングによりメモリ負荷が高くなる可能性があります。MPLでは、MPL Forwarderが、隣接するForwarderへの複数回の転送送信を可能にするために、パケットをより長い時間保存する必要があるためです。これにより、6LoWPANネットワーク上または6LoWPANネットワーク外の攻撃者が、大きなIPv6マルチキャストパケットを送信してDoS攻撃を実行できてしまう可能性があります。これは一般に増幅攻撃でもあります。複数存在しうるMPL Forwarderのそれぞれが、IPv6パケットの送信をおそらく複数回繰り返すため、攻撃者が送信した元のデータ量が大幅に増幅されるからです。

The amplification factor may be even further increased by the loss of link-layer frames. If one or more of the fragments are not received correctly by an MPL Forwarder during its packet reassembly time window, the Forwarder discards all received fragments and it will likely at a future point in time trigger a neighboring MPL Forwarder to send the IPv6 packet (fragments) again, because its internal state marks this packet (that it failed to receive previously) still as a "new" IPv6 packet. Hence, this leads to an MPL Forwarder signaling to neighbors its "old" state, triggering additional transmission(s) of all packet fragments.

増幅率は、リンク層フレームの損失によってさらに増大する可能性があります。MPL Forwarderがパケット再構成の時間枠の間に1つ以上のフラグメントを正しく受信しなかった場合、そのForwarderは受信済みのすべてのフラグメントを破棄し、将来のある時点で、隣接するMPL ForwarderにIPv6パケット(のフラグメント)を再送させる可能性が高くなります。これは、(以前に受信に失敗した)このパケットを、内部状態がなお「新しい」IPv6パケットとして記録しているためです。したがって、これはMPL Forwarderが隣接ノードに自身の「古い」状態を通知することにつながり、すべてのパケットフラグメントの追加送信を引き起こします。

For these reasons, a large IPv6 multicast packet is a possible attack vector in a DoS amplification attack on a 6LoWPAN network. See Section 6.3 of this document and Section 11.3 of [RFC7252] for more details on amplification. To mitigate the risk, applications sending IPv6 multicast requests to 6LoWPAN hosted CoAP servers SHOULD limit the size of the request to avoid 6LoWPAN fragmentation of the request packet. If packet forwarding relies on priority-based scheduling, a 6LoWPAN Router or (MPL) multicast forwarder SHOULD deprioritize forwarding for multi-fragment 6LoWPAN multicast packets, which is implementation specific. 6LBRs are typical ingress points where multicast traffic enters into a 6LoWPAN network. Specific MPL Forwarders (whether located on a 6LBR or not) may also be configured as ingress points. Any such ingress point SHOULD implement multicast packet filtering to prevent unwanted multicast traffic from entering a 6LoWPAN network from the outside. For example, it could filter out all multicast packets for which there is no known multicast listener on the 6LoWPAN network. See Section 3.10 for protocols that allow multicast listeners to signal which groups they would like to listen to. As part of multicast packet filtering, the ingress point SHOULD implement a filtering criterion based on the size of the multicast packet. Ingress multicast packets above a defined size may then be dropped or deprioritized.

これらの理由から、大きなIPv6マルチキャストパケットは、6LoWPANネットワークに対するDoS増幅攻撃において、攻撃ベクトルとなりうるものです。増幅の詳細については、本文書のセクション6.3および [RFC7252] のセクション11.3を参照してください。リスクを緩和するため、6LoWPANでホストされるCoAPサーバにIPv6マルチキャストリクエストを送信するアプリケーションは、リクエストパケットの6LoWPANフラグメンテーションを避けるためにリクエストのサイズを制限すべきです (SHOULD)。パケット転送が優先度ベースのスケジューリングに依存する場合、6LoWPANルータまたは (MPL) マルチキャストフォワーダは、複数フラグメントの6LoWPANマルチキャストパケットの転送の優先度を下げるべきです (SHOULD)。これは実装依存です。6LBRは、マルチキャストトラフィックが6LoWPANネットワークに入る典型的なイングレスポイントです。特定のMPL Forwarder(6LBR上にあるかどうかを問いません)もイングレスポイントとして構成される場合があります。このようなイングレスポイントはすべて、望ましくないマルチキャストトラフィックが外部から6LoWPANネットワークに入るのを防ぐため、マルチキャストパケットのフィルタリングを実装すべきです (SHOULD)。たとえば、6LoWPANネットワーク上に既知のマルチキャストリスナーが存在しないマルチキャストパケットをすべてフィルタリングして除外できます。マルチキャストリスナーが聴取したいグループを通知できるプロトコルについては、セクション3.10を参照してください。マルチキャストパケットのフィルタリングの一環として、イングレスポイントは、マルチキャストパケットのサイズに基づくフィルタリング基準を実装すべきです (SHOULD)。その場合、定義されたサイズを超えるイングレスのマルチキャストパケットは、破棄されるか優先度を下げられる場合があります。

6.7. Wi-Fi

6.7. Wi-Fi

In a home automation scenario using Wi-Fi, Wi-Fi security SHOULD be enabled to prevent rogue nodes from joining. The Customer Premises Equipment (CPE) that enables access to the Internet should also have its IP multicast filters set so that it enforces multicast scope boundaries to isolate local multicast groups from the rest of the Internet (e.g., as per [RFC6092]). In addition, the scope of IP multicast transmissions and listeners should be site-local (5) or smaller. For site-local scope, the CPE will be an appropriate multicast scope boundary point.

Wi-Fiを使用するホームオートメーションのシナリオでは、不正なノードの参加を防ぐため、Wi-Fiのセキュリティを有効にすべきです (SHOULD)。また、インターネットへのアクセスを可能にするCustomer Premises Equipment (CPE) は、ローカルのマルチキャストグループをインターネットの他の部分から隔離するために、マルチキャストのスコープ境界を強制するようにIPマルチキャストフィルタを設定しておくべきです(例: [RFC6092] に従う)。さらに、IPマルチキャスト送信およびリスナーのスコープは、サイトローカル (5) 以下とすべきです。サイトローカルスコープの場合、CPEが適切なマルチキャストスコープ境界点となります。

6.8. Monitoring

6.8. モニタリング

6.8.1. General Monitoring

6.8.1. 一般的なモニタリング

CoAP group communication can be used to control a set of related devices, for example, to simultaneously turn on all the lights in a room. This intrinsically exposes the communicating devices to some unique monitoring risks, which they are not as vulnerable to when not using group communication.

CoAPグループ通信は、関連するデバイスの集合を制御するために使用できます。たとえば、部屋のすべての照明を同時に点灯させる場合です。これは本質的に、通信するデバイスを、グループ通信を使用していなければさらされないような特有のモニタリングのリスクにさらします。

For example, an attacker might be able to physically see a set of lights turn on in a room. Then, the attacker can correlate an observed CoAP group communication message to the observed coordinated group action -- even if the CoAP message is (partly) encrypted. This will give the attacker side-channel information to plan further attacks (e.g., by determining the members of the CoAP group, some network topology information may be deduced).

たとえば、攻撃者は、部屋の一連の照明が点灯するのを物理的に目にできるかもしれません。その場合、攻撃者は、観測したCoAPグループ通信メッセージを、観測した協調的なグループ動作と関連づけられます。これは、CoAPメッセージが(部分的に)暗号化されていても可能です。これにより、攻撃者はさらなる攻撃を計画するためのサイドチャネル情報を得ることになります(たとえば、CoAPグループのメンバーを特定することで、ネットワークトポロジに関する情報が推測される場合があります)。

6.8.2. Pervasive Monitoring

6.8.2. 広範なモニタリング

CoAP traffic is typically used for the Internet of Things (IoT), and CoAP (multicast) group communication may specifically be used for conveniently controlling and monitoring critical infrastructure (e.g., lights, alarms, HVAC devices, electrical grids, etc.).

CoAPトラフィックは通常モノのインターネット (IoT) に使用され、CoAP(マルチキャスト)グループ通信は、重要インフラ(照明、警報、HVACデバイス、電力網など)を便利に制御・監視するために特に使用される場合があります。

This may make it a prime target of pervasive monitoring attacks [RFC7258], which have to be considered as a key additional threat for group communication. For example, an attacker may attempt to record all the CoAP traffic going over a smart grid (i.e., networked electrical utility) and try to determine critical nodes for further attacks. For instance, the source node (controller) sends out CoAP group messages, which easily identifies it as a controller.

このため、グループ通信における重要な追加の脅威として考慮しなければならない、広範なモニタリング攻撃 [RFC7258] の主要な標的となる可能性があります。たとえば、攻撃者は、スマートグリッド(すなわち、ネットワーク化された電力事業)を流れるすべてのCoAPトラフィックを記録し、さらなる攻撃のための重要なノードを特定しようとするかもしれません。たとえば、送信元ノード(コントローラ)はCoAPグループメッセージを送信するため、それがコントローラであることは容易に特定されます。

CoAP group communication built on top of IP multicast is inherently more vulnerable compared to communications solely relying on IP unicast, since the same packet may be replicated over many links. In particular, this yields a higher probability of packet capture by a pervasive monitoring system, which in turn results in more information available to analyze within the same time interval. Moreover, a single CoAP group request potentially results in multiple CoAP responses, thus further contributing to the information available to analyze.

IPマルチキャスト上に構築されたCoAPグループ通信は、同じパケットが多数のリンクに複製されうるため、IPユニキャストのみに依存する通信と比べて本質的に脆弱です。特に、これにより広範なモニタリングシステムによるパケット捕捉の確率が高まり、結果として同じ時間間隔内に分析可能な情報が増えます。さらに、1つのCoAPグループリクエストが複数のCoAP応答を生じさせる可能性があり、分析可能な情報がさらに増えることにつながります。

This requires CoAP group communication solutions that are built on top of IP multicast to pay particular attention to these dangers.

このため、IPマルチキャスト上に構築されるCoAPグループ通信ソリューションは、これらの危険に特別な注意を払う必要があります。

In order to limit the ease of interception of group communication messages, one mitigation is to restrict the scope of IP multicast to the minimal scope that fulfills the application need. See the congestion control recommendations in the last bullet of Section 3.6 to minimize the scope. Thus, for example, realm-local IP multicast scope is always preferred over site-local scope IP multicast, if it fulfills the application needs.

グループ通信メッセージの傍受のしやすさを抑えるための緩和策の1つは、IPマルチキャストのスコープを、アプリケーションの必要を満たす最小のスコープに制限することです。スコープを最小化するための輻輳制御の推奨事項については、セクション3.6の最後の箇条書きを参照してください。したがって、たとえば、アプリケーションの必要を満たすのであれば、レルムローカルのIPマルチキャストスコープは、常にサイトローカルスコープのIPマルチキャストより好まれます。

Even if CoAP group communications are encrypted/protected (see Section 5), an attacker may still attempt to capture this traffic and perform an off-line attack in the future.

CoAPグループ通信が暗号化・保護されている場合(セクション5を参照)でも、攻撃者はこのトラフィックを捕捉し、将来にオフライン攻撃を行おうとするかもしれません。

7. IANA Considerations

7. IANAに関する考慮事項

This document has no IANA actions.

本文書にIANAへの要請はありません。

As per the IANA considerations of [RFC7390], the Resource Type (rt=) Link Target Attribute Value "core.gp" and the media type "application/coap-group+json" were registered.

[RFC7390] のIANAに関する考慮事項に従い、リソースタイプ (rt=) のLink Target Attribute Valueである "core.gp" と、メディアタイプ "application/coap-group+json" が登録されました。

Those registrations were made in the interest of the Experimental protocol defined in [RFC7390] for configuring memberships of CoAP groups for unsecure group communication. As noted in Section 2.2.2, that protocol has not been considered for deployment and use.

これらの登録は、セキュリティ保護のないグループ通信のためのCoAPグループのメンバーシップを構成する、[RFC7390] で定義された実験的プロトコルのために行われました。セクション2.2.2で述べたとおり、そのプロトコルは展開および使用の対象として検討されていません。

The two registrations mentioned above remain in place; however, the Resource Type Link Target Attribute Value "core.gp" and the media type "application/coap-group+json" are not expected to be used by applications and are not used by the present document.

上記の2つの登録は有効なままですが、リソースタイプのLink Target Attribute Value "core.gp" とメディアタイプ "application/coap-group+json" は、アプリケーションによって使用されることは想定されておらず、本文書でも使用されません。

8. References

8. 参考文献

8.1. Normative References

8.1. 引用文献

   [RFC1112]  Deering, S., "Host extensions for IP multicasting", STD 5,
              RFC 1112, DOI 10.17487/RFC1112, August 1989,
              <https://www.rfc-editor.org/info/rfc1112>.
        
   [RFC1122]  Braden, R., Ed., "Requirements for Internet Hosts -
              Communication Layers", STD 3, RFC 1122,
              DOI 10.17487/RFC1122, October 1989,
              <https://www.rfc-editor.org/info/rfc1122>.
        
   [RFC2119]  Bradner, S., "Key words for use in RFCs to Indicate
              Requirement Levels", BCP 14, RFC 2119,
              DOI 10.17487/RFC2119, March 1997,
              <https://www.rfc-editor.org/info/rfc2119>.
        
   [RFC4443]  Conta, A., Deering, S., and M. Gupta, Ed., "Internet
              Control Message Protocol (ICMPv6) for the Internet
              Protocol Version 6 (IPv6) Specification", STD 89,
              RFC 4443, DOI 10.17487/RFC4443, March 2006,
              <https://www.rfc-editor.org/info/rfc4443>.
        
   [RFC4944]  Montenegro, G., Kushalnagar, N., Hui, J., and D. Culler,
              "Transmission of IPv6 Packets over IEEE 802.15.4
              Networks", RFC 4944, DOI 10.17487/RFC4944, September 2007,
              <https://www.rfc-editor.org/info/rfc4944>.
        
   [RFC6282]  Hui, J., Ed. and P. Thubert, "Compression Format for IPv6
              Datagrams over IEEE 802.15.4-Based Networks", RFC 6282,
              DOI 10.17487/RFC6282, September 2011,
              <https://www.rfc-editor.org/info/rfc6282>.
        
   [RFC6690]  Shelby, Z., "Constrained RESTful Environments (CoRE) Link
              Format", RFC 6690, DOI 10.17487/RFC6690, August 2012,
              <https://www.rfc-editor.org/info/rfc6690>.
        
   [RFC6775]  Shelby, Z., Ed., Chakrabarti, S., Nordmark, E., and C.
              Bormann, "Neighbor Discovery Optimization for IPv6 over
              Low-Power Wireless Personal Area Networks (6LoWPANs)",
              RFC 6775, DOI 10.17487/RFC6775, November 2012,
              <https://www.rfc-editor.org/info/rfc6775>.
        
   [RFC7252]  Shelby, Z., Hartke, K., and C. Bormann, "The Constrained
              Application Protocol (CoAP)", RFC 7252,
              DOI 10.17487/RFC7252, June 2014,
              <https://www.rfc-editor.org/info/rfc7252>.
        
   [RFC7641]  Hartke, K., "Observing Resources in the Constrained
              Application Protocol (CoAP)", RFC 7641,
              DOI 10.17487/RFC7641, September 2015,
              <https://www.rfc-editor.org/info/rfc7641>.
        
   [RFC7959]  Bormann, C. and Z. Shelby, Ed., "Block-Wise Transfers in
              the Constrained Application Protocol (CoAP)", RFC 7959,
              DOI 10.17487/RFC7959, August 2016,
              <https://www.rfc-editor.org/info/rfc7959>.
        
   [RFC7967]  Bhattacharyya, A., Bandyopadhyay, S., Pal, A., and T.
              Bose, "Constrained Application Protocol (CoAP) Option for
              No Server Response", RFC 7967, DOI 10.17487/RFC7967,
              August 2016, <https://www.rfc-editor.org/info/rfc7967>.
        
   [RFC8075]  Castellani, A., Loreto, S., Rahman, A., Fossati, T., and
              E. Dijk, "Guidelines for Mapping Implementations: HTTP to
              the Constrained Application Protocol (CoAP)", RFC 8075,
              DOI 10.17487/RFC8075, February 2017,
              <https://www.rfc-editor.org/info/rfc8075>.
        
   [RFC8085]  Eggert, L., Fairhurst, G., and G. Shepherd, "UDP Usage
              Guidelines", BCP 145, RFC 8085, DOI 10.17487/RFC8085,
              March 2017, <https://www.rfc-editor.org/info/rfc8085>.
        
   [RFC8132]  van der Stok, P., Bormann, C., and A. Sehgal, "PATCH and
              FETCH Methods for the Constrained Application Protocol
              (CoAP)", RFC 8132, DOI 10.17487/RFC8132, April 2017,
              <https://www.rfc-editor.org/info/rfc8132>.
        
   [RFC8174]  Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC
              2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174,
              May 2017, <https://www.rfc-editor.org/info/rfc8174>.
        
   [RFC8613]  Selander, G., Mattsson, J., Palombini, F., and L. Seitz,
              "Object Security for Constrained RESTful Environments
              (OSCORE)", RFC 8613, DOI 10.17487/RFC8613, July 2019,
              <https://www.rfc-editor.org/info/rfc8613>.
        
   [RFC9052]  Schaad, J., "CBOR Object Signing and Encryption (COSE):
              Structures and Process", STD 96, RFC 9052,
              DOI 10.17487/RFC9052, August 2022,
              <https://www.rfc-editor.org/info/rfc9052>.
        
   [RFC9053]  Schaad, J., "CBOR Object Signing and Encryption (COSE):
              Initial Algorithms", RFC 9053, DOI 10.17487/RFC9053,
              August 2022, <https://www.rfc-editor.org/info/rfc9053>.
        
   [RFC9110]  Fielding, R., Ed., Nottingham, M., Ed., and J. Reschke,
              Ed., "HTTP Semantics", STD 97, RFC 9110,
              DOI 10.17487/RFC9110, June 2022,
              <https://www.rfc-editor.org/info/rfc9110>.
        
   [RFC9112]  Fielding, R., Ed., Nottingham, M., Ed., and J. Reschke,
              Ed., "HTTP/1.1", STD 99, RFC 9112, DOI 10.17487/RFC9112,
              June 2022, <https://www.rfc-editor.org/info/rfc9112>.
        
   [RFC9175]  Amsüss, C., Preuß Mattsson, J., and G. Selander,
              "Constrained Application Protocol (CoAP): Echo, Request-
              Tag, and Token Processing", RFC 9175,
              DOI 10.17487/RFC9175, February 2022,
              <https://www.rfc-editor.org/info/rfc9175>.
        
   [RFC9776]  Haberman, B., Ed., "Internet Group Management Protocol,
              Version 3", STD 100, RFC 9776, DOI 10.17487/RFC9776, March
              2025, <https://www.rfc-editor.org/info/rfc9776>.
        
   [RFC10021] Tiloca, M., Selander, G., Palombini, F., Preuß Mattsson,
              J., and R. Höglund, "Group Object Security for Constrained
              RESTful Environments (Group OSCORE)", RFC 10021,
              DOI 10.17487/RFC10021, November 2026,
              <https://www.rfc-editor.org/info/rfc10021>.
        

8.2. Informative References

8.2. 参考情報

   [cBRSKI]   Richardson, M., Van der Stok, P., Kampanakis, P., and E.
              Dijk, "Constrained Bootstrapping Remote Secure Key
              Infrastructure (cBRSKI)", Work in Progress, Internet-
              Draft, draft-ietf-anima-constrained-voucher-32, 2 November
              2026, <https://datatracker.ietf.org/doc/html/draft-ietf-
              anima-constrained-voucher-32>.
        
   [CoAP-ATTACKS]
              Mattsson, J. P., Selander, G., and C. Amsüss,
              "Amplification Attacks Using the Constrained Application
              Protocol (CoAP)", Work in Progress, Internet-Draft, draft-
              irtf-t2trg-amplification-attacks-05, 18 June 2025,
              <https://datatracker.ietf.org/doc/html/draft-irtf-t2trg-
              amplification-attacks-05>.
        
   [CoAP-GROUP-PROXY]
              Tiloca, M. and E. Dijk, "Proxy Operations in Group
              Communication for the Constrained Application Protocol
              (CoAP)", Work in Progress, Internet-Draft, draft-ietf-
              core-groupcomm-proxy-07, 2 September 2026,
              <https://datatracker.ietf.org/doc/html/draft-ietf-core-
              groupcomm-proxy-07>.
        
   [CoAP-NON-TRAD]
              Bormann, C. and C. Amsüss, "CoAP: Non-traditional Response
              Forms", Work in Progress, Internet-Draft, draft-ietf-core-
              responses-01, 6 July 2026,
              <https://datatracker.ietf.org/doc/html/draft-ietf-core-
              responses-01>.
        
   [CoAP-PUB-SUB]
              Jimenez, J., Koster, M., and A. Keränen, "A publish-
              subscribe architecture for the Constrained Application
              Protocol (CoAP)", Work in Progress, Internet-Draft, draft-
              ietf-core-coap-pubsub-22, 2 November 2026,
              <https://datatracker.ietf.org/doc/html/draft-ietf-core-
              coap-pubsub-22>.
        
   [CoAP-TRANSPORT]
              Amsüss, C. and M. S. Lenders, "CoAP Transport Indication",
              Work in Progress, Internet-Draft, draft-ietf-core-
              transport-indication-11, 2 November 2026,
              <https://datatracker.ietf.org/doc/html/draft-ietf-core-
              transport-indication-11>.
        
   [GROUP-MANAGER]
              Tiloca, M. and F. Palombini, "Key Management for Group
              Object Security for Constrained RESTful Environments
              (Group OSCORE) Using Authentication and Authorization for
              Constrained Environments (ACE)", Work in Progress,
              Internet-Draft, draft-ietf-ace-key-groupcomm-oscore-21, 14
              March 2026, <https://datatracker.ietf.org/doc/html/draft-
              ietf-ace-key-groupcomm-oscore-21>.
        
   [GROUP-MANAGER-ADMIN]
              Tiloca, M., Höglund, R., Van der Stok, P., and F.
              Palombini, "Admin Interface for the OSCORE Group Manager",
              Work in Progress, Internet-Draft, draft-ietf-ace-oscore-
              gm-admin-17, 26 March 2026,
              <https://datatracker.ietf.org/doc/html/draft-ietf-ace-
              oscore-gm-admin-17>.
        
   [GROUP-OSCORE-DISCOVERY]
              Tiloca, M., Amsüss, C., and P. Van der Stok, "Discovery of
              OSCORE Groups with the CoRE Resource Directory", Work in
              Progress, Internet-Draft, draft-tiloca-core-oscore-
              discovery-20, 2 September 2026,
              <https://datatracker.ietf.org/doc/html/draft-tiloca-core-
              oscore-discovery-20>.
        
   [IEEE802.15.4]
              IEEE, "IEEE Standard for Low-Rate Wireless Networks", IEEE
              Std 802.15.4-2024, DOI 10.1109/IEEESTD.2024.10794632,
              2024, <https://ieeexplore.ieee.org/document/10794632>.
        
   [Link.Target.Attributes]
              IANA, "Resource Type (rt=) Link Target Attribute Values",
              <https://www.iana.org/assignments/core-parameters/>.
        
   [MCAST-APP-PORT]
              Karstens, N., Cheshire, S., and M. McBride, "The Multicast
              Application Port", Work in Progress, Internet-Draft,
              draft-ietf-intarea-multicast-application-port-09, 2
              November 2026, <https://datatracker.ietf.org/doc/html/
              draft-ietf-intarea-multicast-application-port-09>.
        
   [Port.Number]
              IANA, "Service Name and Transport Protocol Port Number
              Registry", <https://www.iana.org/assignments/service-
              names-port-numbers/>.
        
   [RFC3307]  Haberman, B., "Allocation Guidelines for IPv6 Multicast
              Addresses", RFC 3307, DOI 10.17487/RFC3307, September
              2002, <https://www.rfc-editor.org/info/rfc3307>.
        
   [RFC3596]  Thomson, S., Huitema, C., Ksinant, V., and M. Souissi,
              "DNS Extensions to Support IP Version 6", STD 88,
              RFC 3596, DOI 10.17487/RFC3596, October 2003,
              <https://www.rfc-editor.org/info/rfc3596>.
        
   [RFC4787]  Audet, F., Ed. and C. Jennings, "Network Address
              Translation (NAT) Behavioral Requirements for Unicast
              UDP", BCP 127, RFC 4787, DOI 10.17487/RFC4787, January
              2007, <https://www.rfc-editor.org/info/rfc4787>.
        
   [RFC6092]  Woodyatt, J., Ed., "Recommended Simple Security
              Capabilities in Customer Premises Equipment (CPE) for
              Providing Residential IPv6 Internet Service", RFC 6092,
              DOI 10.17487/RFC6092, January 2011,
              <https://www.rfc-editor.org/info/rfc6092>.
        
   [RFC6550]  Winter, T., Ed., Thubert, P., Ed., Brandt, A., Hui, J.,
              Kelsey, R., Levis, P., Pister, K., Struik, R., Vasseur,
              JP., and R. Alexander, "RPL: IPv6 Routing Protocol for
              Low-Power and Lossy Networks", RFC 6550,
              DOI 10.17487/RFC6550, March 2012,
              <https://www.rfc-editor.org/info/rfc6550>.
        
   [RFC6636]  Asaeda, H., Liu, H., and Q. Wu, "Tuning the Behavior of
              the Internet Group Management Protocol (IGMP) and
              Multicast Listener Discovery (MLD) for Routers in Mobile
              and Wireless Networks", RFC 6636, DOI 10.17487/RFC6636,
              May 2012, <https://www.rfc-editor.org/info/rfc6636>.
        
   [RFC7258]  Farrell, S. and H. Tschofenig, "Pervasive Monitoring Is an
              Attack", BCP 188, RFC 7258, DOI 10.17487/RFC7258, May
              2014, <https://www.rfc-editor.org/info/rfc7258>.
        
   [RFC7346]  Droms, R., "IPv6 Multicast Address Scopes", RFC 7346,
              DOI 10.17487/RFC7346, August 2014,
              <https://www.rfc-editor.org/info/rfc7346>.
        
   [RFC7390]  Rahman, A., Ed. and E. Dijk, Ed., "Group Communication for
              the Constrained Application Protocol (CoAP)", RFC 7390,
              DOI 10.17487/RFC7390, October 2014,
              <https://www.rfc-editor.org/info/rfc7390>.
        
   [RFC7731]  Hui, J. and R. Kelsey, "Multicast Protocol for Low-Power
              and Lossy Networks (MPL)", RFC 7731, DOI 10.17487/RFC7731,
              February 2016, <https://www.rfc-editor.org/info/rfc7731>.
        
   [RFC8323]  Bormann, C., Lemay, S., Tschofenig, H., Hartke, K.,
              Silverajan, B., and B. Raymor, Ed., "CoAP (Constrained
              Application Protocol) over TCP, TLS, and WebSockets",
              RFC 8323, DOI 10.17487/RFC8323, February 2018,
              <https://www.rfc-editor.org/info/rfc8323>.
        
   [RFC8710]  Fossati, T., Hartke, K., and C. Bormann, "Multipart
              Content-Format for the Constrained Application Protocol
              (CoAP)", RFC 8710, DOI 10.17487/RFC8710, February 2020,
              <https://www.rfc-editor.org/info/rfc8710>.
        
   [RFC9019]  Moran, B., Tschofenig, H., Brown, D., and M. Meriac, "A
              Firmware Update Architecture for Internet of Things",
              RFC 9019, DOI 10.17487/RFC9019, April 2021,
              <https://www.rfc-editor.org/info/rfc9019>.
        
   [RFC9124]  Moran, B., Tschofenig, H., and H. Birkholz, "A Manifest
              Information Model for Firmware Updates in Internet of
              Things (IoT) Devices", RFC 9124, DOI 10.17487/RFC9124,
              January 2022, <https://www.rfc-editor.org/info/rfc9124>.
        
   [RFC9176]  Amsüss, C., Ed., Shelby, Z., Koster, M., Bormann, C., and
              P. van der Stok, "Constrained RESTful Environments (CoRE)
              Resource Directory", RFC 9176, DOI 10.17487/RFC9176, April
              2022, <https://www.rfc-editor.org/info/rfc9176>.
        
   [RFC9177]  Boucadair, M. and J. Shallow, "Constrained Application
              Protocol (CoAP) Block-Wise Transfer Options Supporting
              Robust Transmission", RFC 9177, DOI 10.17487/RFC9177,
              March 2022, <https://www.rfc-editor.org/info/rfc9177>.
        
   [RFC9200]  Seitz, L., Selander, G., Wahlstroem, E., Erdtman, S., and
              H. Tschofenig, "Authentication and Authorization for
              Constrained Environments Using the OAuth 2.0 Framework
              (ACE-OAuth)", RFC 9200, DOI 10.17487/RFC9200, August 2022,
              <https://www.rfc-editor.org/info/rfc9200>.
        
   [RFC9685]  Thubert, P., Ed., "Listener Subscription for IPv6 Neighbor
              Discovery Multicast and Anycast Addresses", RFC 9685,
              DOI 10.17487/RFC9685, November 2024,
              <https://www.rfc-editor.org/info/rfc9685>.
        
   [RFC9777]  Haberman, B., Ed., "Multicast Listener Discovery Version 2
              (MLDv2) for IPv6", STD 101, RFC 9777,
              DOI 10.17487/RFC9777, March 2025,
              <https://www.rfc-editor.org/info/rfc9777>.
        
   [UML]      Object Management Group, "OMG Unified Modeling Language
              (OMG UML)", Version 2.5.1, OMG Document Number
              formal/2017-12-05, December 2017,
              <https://www.omg.org/spec/UML/2.5.1/PDF>.
        

Appendix A. Use Cases

付録A. ユースケース

To illustrate where and how CoAP-based group communication can be used, this section summarizes the most common use cases. These use cases include both secured and non-secured CoAP usage. Each subsection below covers one particular category of use cases for CoRE. Within each category, a use case may cover multiple application areas such as home IoT, commercial building IoT (sensing and control), industrial IoT/control, or environmental sensing.

CoAPベースのグループ通信をどこでどのように使用できるかを説明するため、本セクションでは最も一般的なユースケースをまとめます。これらのユースケースには、セキュリティ保護されたCoAPの使用と保護されていないCoAPの使用の両方が含まれます。以下の各サブセクションは、CoREのユースケースの特定の1つのカテゴリを扱います。各カテゴリ内では、1つのユースケースが、家庭向けIoT、商業ビルのIoT(センシングと制御)、産業用IoT/制御、環境センシングなど、複数のアプリケーション分野にまたがる場合があります。

A.1. Discovery

A.1. ディスカバリ

Discovery of physical devices in a network, or discovery of resources hosted on network devices, are operations that are usually required in a system during the phases of setup or (re)configuration. When a discovery use case involves devices that need to interact without having been configured previously with a common security context, unsecure CoAP communication is typically used. Discovery may involve a request to a directory server, which provides services to aid clients in the discovery process. One particular type of directory server is the CoRE RD [RFC9176]; and there may be other types of directories that can be used with CoAP.

ネットワーク内の物理デバイスのディスカバリや、ネットワークデバイス上でホストされるリソースのディスカバリは、システムのセットアップや(再)構成の段階で通常必要となる操作です。共通のセキュリティコンテキストを事前に構成していないデバイス同士がやり取りする必要があるディスカバリのユースケースでは、通常、セキュアでないCoAP通信が使用されます。ディスカバリでは、クライアントのディスカバリ処理を支援するサービスを提供するディレクトリサーバへのリクエストが伴う場合があります。ディレクトリサーバの1つの種類がCoRE RD [RFC9176] であり、CoAPで使用できる他の種類のディレクトリが存在してもかまいません。

A.1.1. Distributed Device Discovery

A.1.1. 分散デバイスディスカバリ

Device discovery is the discovery and identification of networked devices -- optionally only devices of a particular class, type, model, or brand. Group communication is used for distributed device discovery if a central directory server is not used. Typically, in distributed device discovery, a multicast request is sent to a particular address (or address range) and multicast scope of interest, and any devices configured to be discoverable will respond back. For the alternative solution of centralized device discovery, a central directory server is accessed through unicast; in which case, group communication is not needed. This requires that the address of the central directory is either preconfigured in each device or configured during operation using a protocol.

デバイスディスカバリとは、ネットワーク接続されたデバイス(任意で、特定のクラス、種類、モデル、ブランドのデバイスのみ) を発見し識別することです。中央のディレクトリサーバを使用しない場合、分散デバイスディスカバリにグループ通信が使用されます。通常、分散デバイスディスカバリでは、対象とする特定のアドレス(またはアドレス範囲) とマルチキャストスコープにマルチキャストリクエストが送信され、発見可能となるよう構成されたデバイスが応答を返します。代替の解決策である集中型デバイスディスカバリでは、中央のディレクトリサーバにユニキャストでアクセスするため、グループ通信は不要です。この場合、中央ディレクトリのアドレスを各デバイスに事前構成しておくか、運用中にプロトコルを用いて構成しておく必要があります。

In CoAP, device discovery can be implemented by CoAP resource discovery (Section 7 of [RFC7252]), sending a request (e.g., a GET request) targeting a particular resource that the sought device class, type, model, or brand is known to respond to. It can also be implemented using CoAP resource discovery and the CoAP query interface defined in Section 4 of [RFC6690] to find these particular resources.

CoAPでは、デバイスディスカバリは、CoAPリソースディスカバリ ([RFC7252] のセクション7) により、探しているデバイスのクラス、種類、モデル、ブランドが応答することが分かっている特定のリソースを対象としたリクエスト(例: GETリクエスト) を送信することで実装できます。また、CoAPリソースディスカバリと、[RFC6690] のセクション4で定義されているCoAPクエリインタフェースを用いて、これらの特定のリソースを見つけることでも実装できます。

A.1.2. Distributed Service Discovery

A.1.2. 分散サービスディスカバリ

Service discovery is the discovery and identification of particular services hosted on network devices. Services can be identified by one or more parameters such as ID, name, protocol, version, and/or type. Distributed service discovery involves group communication to reach individual devices hosting a particular service, with a central directory server not being used.

サービスディスカバリとは、ネットワークデバイス上でホストされる特定のサービスを発見し識別することです。サービスは、ID、名前、プロトコル、バージョン、種類などの1つ以上のパラメータで識別できます。分散サービスディスカバリでは、中央のディレクトリサーバを使用せず、特定のサービスをホストする個々のデバイスに到達するためにグループ通信を用います。

In CoAP, services are represented as resources and service discovery is implemented using resource discovery (Section 7 of [RFC7252]) and the CoAP query interface defined in Section 4 of [RFC6690].

CoAPでは、サービスはリソースとして表現され、サービスディスカバリはリソースディスカバリ ([RFC7252] のセクション7) と [RFC6690] のセクション4で定義されているCoAPクエリインタフェースを用いて実装されます。

A.1.3. Directory Discovery

A.1.3. ディレクトリディスカバリ

This use case is a specific subcase of distributed service discovery (Appendix A.1.2), in which a device needs to identify the location of a directory on the network to which it can, e.g., register its own offered services, or to which it can perform queries to identify and locate other devices/services it needs to access on the network.

このユースケースは、分散サービスディスカバリ(付録A.1.2) の特定のサブケースであり、デバイスがネットワーク上のディレクトリの場所を特定する必要があります。デバイスはそのディレクトリに、たとえば自身が提供するサービスを登録したり、ネットワーク上でアクセスが必要な他のデバイスやサービスを特定・探索するためのクエリを実行したりできます。

As defined in [RFC9176], a CoRE RD is a web entity that stores information about web resources and implements REST interfaces for registration and lookup of those resources. For example, a device can register itself to an RD to let it be found by other devices and/ or applications.

[RFC9176] で定義されているように、CoRE RDは、ウェブリソースに関する情報を保存し、それらのリソースの登録と検索のためのRESTインタフェースを実装するウェブエンティティです。たとえば、デバイスは自身をRDに登録して、他のデバイスやアプリケーションから発見できるようにできます。

As an example, the following shows two IPv6 network configurations. Both are based on the topology as shown in Figure 3. The two configurations using this topology are as follows:

例として、以下に2つのIPv6ネットワーク構成を示します。どちらも図3に示すトポロジに基づいています。このトポロジを用いる2つの構成は次のとおりです。

1. Subnets are 6LoWPAN networks; the routers Rtr-1 and Rtr-2 are 6LBRs [RFC6775].

1. サブネットは6LoWPANネットワークであり、ルータRtr-1とRtr-2は6LBR [RFC6775] です。

2. Subnets are Ethernet links; the routers Rtr-1 and Rtr-2 are multicast-capable Ethernet routers.

2. サブネットはイーサネットリンクであり、ルータRtr-1とRtr-2はマルチキャスト対応のイーサネットルータです。

Both configurations are further specified by the following:

どちらの構成も、さらに次のように規定されます。

* There is a large room (Room-A) with three lights (Light-1, Light-2, Light-3) controlled by a light switch (Light Switch). The devices are organized into two subnets. In reality, there could be more lights (up to several hundreds), but only three are shown for clarity.

* 大きな部屋(Room-A) があり、照明スイッチ(Light Switch) で制御される3つの照明(Light-1、Light-2、Light-3) があります。デバイスは2つのサブネットに編成されています。実際には照明がもっと(最大で数百) あるかもしれませんが、分かりやすくするため3つだけを示しています。

* Light-1 and the light switch are connected to a router (Rtr-1).

* Light-1と照明スイッチは、ルータ(Rtr-1) に接続されています。

* Light-2 and Light-3 are connected to another router (Rtr-2).

* Light-2とLight-3は、別のルータ(Rtr-2) に接続されています。

* The routers are connected to an IPv6 network backbone (Network Backbone) that is also multicast enabled. In the general case, this means the network backbone and Rtr-1/Rtr-2 support a PIM-based multicast routing protocol and, e.g., MLDv2 for forming groups.

* ルータは、マルチキャストにも対応したIPv6ネットワークバックボーン(Network Backbone) に接続されています。一般的には、これはネットワークバックボーンとRtr-1/Rtr-2が、PIMベースのマルチキャストルーティングプロトコルと、グループを形成するための、たとえばMLDv2をサポートしていることを意味します。

* A CoRE RD using CoAP (CoAP RD) is connected to the network backbone.

* CoAPを使用するCoRE RD (CoAP RD) が、ネットワークバックボーンに接続されています。

* The DNS server (DNS Server) is optional. If the server is there (connected to the network backbone), then certain DNS-based features are available (e.g., DNS resolution of the hostname to the IP multicast address). If the DNS server is not there and no alternative name resolution service is available to use, then different provisioning of the network is required (e.g., IP multicast addresses are hard-coded into devices, manually configured, or obtained via a service discovery method).

* DNSサーバ (DNS Server) は任意です。サーバが存在する(ネットワークバックボーンに接続されている)場合は、特定のDNSベースの機能(例: ホスト名からIPマルチキャストアドレスへのDNS解決) を利用できます。DNSサーバが存在せず、利用可能な代替の名前解決サービスもない場合は、ネットワークの別のプロビジョニングが必要です(例: IPマルチキャストアドレスをデバイスにハードコードする、手動で構成する、サービスディスカバリの方法で取得するなど)。

* A controller using CoAP (CoAP Controller Client) is connected to the backbone, which is able to control various building functions including lighting.

* CoAPを使用するコントローラ (CoAP Controller Client) がバックボーンに接続されており、照明を含むさまざまなビル機能を制御できます。

    ................................................
    :                                       Room-A :
    :       +++++++++++++++++++++++++++            :
    :      /    Subnet-1               \           :            Network
    :     /                             \          :           Backbone
    :    /     +----------+              \         :                  |
    :   /      |  Light   |-------+       \        :                  |
    :  |       |  Switch  |       |        |       :                  |
    :  |       +----------+  +---------+   |       :                  |
    :  |                     |  Rtr-1  |------------------------------+
    :  |                     +---------+   |       :                  |
    :  |                           |       |       :                  |
    :   \      +----------+        |      /        :                  |
    :    \     |  Light-1 |--------+     /         :                  |
    :     \    +----------+             /          :                  |
    :      \                           /           :                  |
    :       +++++++++++++++++++++++++++            :                  |
    :                                              :                  |
    :                                              :                  |
    :       +++++++++++++++++++++++++++            :  +------------+  |
    :      /    Subnet-2               \           :  | DNS Server |  |
    :     /                             \          :  | (Optional) |--+
    :    /     +----------+              \         :  +------------+  |
    :   /      |  Light-2 |-------+       \        :                  |
    :  |       +----------+       |        |       :                  |
    :  |                     +---------+   |       :                  |
    :  |                     |  Rtr-2  |------------------------------+
    :  |                     +---------+   |       :                  |
    :  |                           |       |       :                  |
    :   \      +----------+        |      /        :  +------------+  |
    :    \     |  Light-3 |--------+     /         :  | CoAP       |  |
    :     \    +----------+             /          :  | Controller |--+
    :      \                           /           :  | Client     |  |
    :       +++++++++++++++++++++++++++            :  +------------+  |
    :                                              :                  |
    :..............................................:                  |
                                                                      |
                                       +-----------+                  |
                                       | CoAP      |                  |
                                       | Resource  |------------------+
                                       | Directory |
                                       +-----------+
        

Figure 3: Network Topology of a Large Room (Room-A)

図3: 大きな部屋(Room-A) のネットワークトポロジ

Building on the above, an example of protocol flow for discovery of the RD for the given network (of Figure 3) is shown in Figure 4:

上記を踏まえ、(図3の)ネットワークにおけるRDのディスカバリのプロトコルフローの例を図4に示します。

* Light-2 is installed and powered on for the first time.

* Light-2が設置され、初めて電源が入れられます。

* Light-2 will then search for the local RD by sending out a group communication GET request (with the "/.well-known/core?rt=core.rd" request URI) to the site-local "All CoAP Nodes" IP multicast address (ff05::fd).

* その後、Light-2は、サイトローカルの「All CoAP Nodes」IPマルチキャストアドレス (ff05::fd) 宛てに、(リクエストURIを "/.well-known/core?rt=core.rd" とした)グループ通信のGETリクエストを送信して、ローカルのRDを検索します。

* This multicast message will then go to each node in Subnet-2. Rtr-2 will then forward it into the network backbone where it will be received by the RD. All other nodes in Subnet-2 will ignore the group communication GET request because it is qualified by the query string "?rt=core.rd" (which indicates it should only be processed by the endpoint if it hosts a resource of type "core.rd").

* このマルチキャストメッセージは、Subnet-2内の各ノードに届きます。その後Rtr-2がそれをネットワークバックボーンに転送し、RDによって受信されます。Subnet-2内の他のすべてのノードは、このグループ通信のGETリクエストを無視します。これは、リクエストがクエリ文字列 "?rt=core.rd" で限定されているためです(このクエリ文字列は、エンドポイントが "core.rd" タイプのリソースをホストしている場合にのみ処理すべきであることを示します)。

* The RD will then send back a unicast response containing the requested content, which is a CoRE Link Format representation of a resource of type "core.rd".

* その後、RDは、要求されたコンテンツを含むユニキャスト応答を返します。このコンテンツは、"core.rd" タイプのリソースのCoRE Link Format表現です。

* Note that the flow is shown only for Light-2 for clarity. Similar flows will happen for Light-1, Light-3, and Light Switch when they are first installed.

* なお、このフローは分かりやすくするためLight-2についてのみ示しています。Light-1、Light-3、Light Switchが最初に設置されるときにも、同様のフローが行われます。

The RD may also be discovered by other means such as by assuming a default location (e.g., on a 6LBR), or by using DHCP, an anycast address, etc. However, these approaches do not invoke CoAP group communication so are not further discussed here.

RDは、デフォルトの場所(例: 6LBR上) を仮定する、DHCPやエニーキャストアドレスなどを使用するといった他の手段で発見することもできます。ただし、これらの方法はCoAPグループ通信を用いないため、ここではこれ以上取り上げません。

For other discovery use cases such as discovering local CoAP servers, services, or resources, CoAP group communication can be used in a similar fashion as in the above use case. For example, link-local, realm-local, admin-local, or site-local scoped discovery can be done this way.

ローカルのCoAPサーバ、サービス、リソースの発見といった他のディスカバリのユースケースでも、上記のユースケースと同様にCoAPグループ通信を使用できます。たとえば、リンクローカル、レルムローカル、管理ローカル、サイトローカルのスコープでのディスカバリは、この方法で行えます。

                                    Light
   Light-1   Light-2    Light-3     Switch     Rtr-1     Rtr-2       RD
    |          |          |          |          |          |          |
    |          |          |          |          |          |          |
    ..................................          |          |          |
    :   Light-2 is installed         :          |          |          |
    :   and powers on for first time :          |          |          |
    :................................:          |          |          |
    |                                |          |          |          |
    |          |          |          |          |          |          |
    |          |          |          |          |          |          |
    |          | CoAP NON Mcast(GET                        |          |
    |          |           /.well-known/core?rt=core.rd)   |          |
    |          |------------------------------------------>|          |
    |          |          |          |          |          |--------->|
    |          |          |          |          |          |          |
    |          |          |          |          |          |          |
    |          | CoAP NON (2.05 Content                    |          |
    |          |         </rd>;rt="core.rd";ct=40)         |<---------|
    |          |<------------------------------------------|          |
    |          |          |          |          |          |          |
    |          |          |          |          |          |          |
        

Figure 4: RD Discovery via Multicast Request

図4: マルチキャストリクエストによるRDディスカバリ

A.2. Operational Phase

A.2. 運用フェーズ

Operational phase use cases describe those operations that occur most frequently in a networked system, during its operational lifetime and regular operation. Regular usage is when the applications on networked devices perform the tasks they were designed for and exchange of application-related data using group communication occurs. Processes like system reconfiguration, group changes, system/device setup, extra group security changes, etc. are not part of regular operation.

運用フェーズのユースケースは、ネットワーク化されたシステムの運用期間中の通常運用において、最も頻繁に発生する操作を記述します。通常の利用とは、ネットワークデバイス上のアプリケーションが設計されたタスクを実行し、グループ通信を用いてアプリケーション関連データの交換が行われる状態を指します。システムの再構成、グループの変更、システム/デバイスのセットアップ、グループセキュリティの追加変更といった処理は、通常運用には含まれません。

A.2.1. Actuator Group Control

A.2.1. アクチュエータグループ制御

Group communication can be beneficial to control actuators that need to act in synchrony, as a cohesive collection, with strict timing (latency) requirements. Examples are office lighting, stage lighting, street lighting, or audio alert / Public Address systems.

グループ通信は、厳密なタイミング(レイテンシ)要件のもとで、まとまりのある集合として同期して動作する必要があるアクチュエータの制御に有益です。例として、オフィス照明、舞台照明、街路照明、音声警報/構内放送システムがあります。

The following presents examples of lighting control of a set of 6LoWPAN-connected lights.

以下に、6LoWPAN接続された一連の照明の照明制御の例を示します。

Figure 5 shows the protocol flow for a building automation lighting control scenario for the network considered in Figure 3. The network is assumed to be in a 6LoWPAN configuration. Also, it is assumed that the CoAP servers in each light are configured to suppress CoAP responses for any IP multicast CoAP requests related to lighting control. (See Section 3.1.2 for more details on response suppression by a server.)

図5は、図3で想定したネットワークにおけるビルオートメーションの照明制御シナリオのプロトコルフローを示します。ネットワークは6LoWPAN構成であると想定します。また、各照明内のCoAPサーバは、照明制御に関するIPマルチキャストCoAPリクエストに対するCoAP応答を抑制するよう構成されているものと想定します。(サーバによる応答抑制の詳細は、セクション3.1.2を参照してください。)

In addition, Figure 6 shows a protocol flow example for the case where servers do respond to a lighting control IP multicast request with (unicast) CoAP NON responses. There are two success responses and one 5.00 error response. In this particular case, the light switch does not check that all lights in the group received the IP multicast request by examining the responses. This is because the light switch is not configured with an exhaustive list of the IP addresses of all lights belonging to the group. However, based on received error responses, it could take additional action such as logging a fault or alerting the user via its LCD display. In the case that a CoAP message is delivered multiple times to a light, the subsequent CoAP messages can be filtered out as duplicates, based on the CoAP Message ID.

加えて、図6は、サーバが照明制御のIPマルチキャストリクエストに対して(ユニキャストの)CoAP NON応答で応答する場合のプロトコルフローの例を示します。成功応答が2つと、5.00エラー応答が1つあります。この例では、照明スイッチは、応答を調べてグループ内のすべての照明がIPマルチキャストリクエストを受信したかどうかを確認しません。これは、照明スイッチが、グループに属するすべての照明のIPアドレスの網羅的なリストを構成されていないためです。しかし、受信したエラー応答に基づいて、障害を記録したり、LCDディスプレイを通じてユーザーに警告したりするなど、追加の動作をとることはできます。CoAPメッセージが1つの照明に複数回配信された場合、2回目以降のCoAPメッセージは、CoAP Message IDに基づいて重複として除外できます。

Reliability of IP multicast is not guaranteed. Therefore, one or more lights in the group may not have received the CoAP control request due to packet loss. In this use case, there is no detection nor correction of such situations: The application layer expects that the IP multicast forwarding/routing will be of sufficient quality to provide on average a very high probability of packet delivery to all CoAP endpoints in an IP multicast group. An example protocol to accomplish this using randomized retransmission is the MPL forwarding protocol for LLNs [RFC7731].

IPマルチキャストの信頼性は保証されません。したがって、グループ内の1つ以上の照明が、パケット損失によりCoAP制御リクエストを受信していない可能性があります。このユースケースでは、そのような状況の検出も訂正も行われません。アプリケーション層は、IPマルチキャストの転送/ルーティングが十分な品質を備え、IPマルチキャストグループ内のすべてのCoAPエンドポイントに対して平均して非常に高いパケット配信確率をもたらすことを期待しています。ランダム化された再送を用いてこれを実現するプロトコルの例が、LLN向けのMPL転送プロトコル [RFC7731] です。

It is assumed that the following steps have already occurred before the illustrated flows:

図示するフローの前に、次の手順がすでに行われているものと想定します。

1) Startup phase: 6LoWPANs are formed. IPv6 addresses are assigned to all devices. The CoAP network is formed.

1) 起動フェーズ:6LoWPANが形成されます。すべてのデバイスにIPv6アドレスが割り当てられます。CoAPネットワークが形成されます。

2) Network configuration (application independent): 6LBRs are configured with IP multicast addresses or address blocks to filter out or to pass through to/from the 6LoWPAN.

2) ネットワーク構成(アプリケーション非依存):6LBRに、6LoWPANとの間でフィルタリングする、または通過させるIPマルチキャストアドレスまたはアドレスブロックが構成されます。

3a) Commissioning phase (application related): The IP multicast address of the group (Room-A-Lights) has been configured in all the lights and in the light switch.

3a) コミッショニングフェーズ(アプリケーション関連):グループ (Room-A-Lights) のIPマルチキャストアドレスが、すべての照明と照明スイッチに構成されています。

3b) As an alternative to the previous step, when a DNS server or an alternative name resolution service is available, the light switch and/or the lights have been configured with a group hostname that each node resolves to the above IP multicast address of the group.

3b) 前のステップの代替として、DNSサーバまたは代替の名前解決サービスが利用可能な場合、照明スイッチまたは照明(あるいはその両方)に、各ノードが上記のグループのIPマルチキャストアドレスへ解決するグループホスト名が構成されています。

Note for the Commissioning phase: The switch's 6LoWPAN/CoAP software stack supports sending unicast, multicast, or proxied unicast CoAP requests, including processing of the multiple responses that may be generated by an IP multicast CoAP request.

コミッショニングフェーズに関する注記:スイッチの6LoWPAN/CoAPソフトウェアスタックは、ユニキャスト、マルチキャスト、またはプロキシ経由のユニキャストのCoAPリクエストの送信をサポートしており、IPマルチキャストのCoAPリクエストによって生成されうる複数の応答の処理も含まれます。

                                    Light                       Network
   Light-1   Light-2    Light-3     Switch    Rtr-1      Rtr-2  Backbone
    |          |          |          |          |          |          |
    |          |          |          |          |          |          |
    |          |          .......................          |          |
    |          |          :   User flips on     :          |          |
    |          |          :   light switch to   :          |          |
    |          |          :   turn on all the   :          |          |
    |          |          :   lights in Room-A  :          |          |
    |          |          :.....................:          |          |
    |          |                                           |          |
    |          |          |          |          |          |          |
    |          |          |          |          |          |          |
    |          |          |    CoAP NON Mcast(PUT,         |          |
    |          |          |    Payload=lights ON)          |          |
    |<-------------------------------+--------->|          |          |
    ON         |          |          |          |-------------------->|
    |          |          |          |          |          |<---------|
    |          |<---------|<-------------------------------|          |
    |          ON         ON         |          |          |          |
    ^          ^          ^          |          |          |          |
    .......................          |          |          |          |
    :   Lights in Room-A  :          |          |          |          |
    :   turn on (nearly   :          |          |          |          |
    :   simultaneously)   :          |          |          |          |
    :.....................:          |          |          |          |
                                     |          |          |          |
    |          |          |          |          |          |          |
    |          |          |          |          |          |          |
        

Figure 5: Light Switch Sends Multicast Control Message

図5: 照明スイッチによるマルチキャスト制御メッセージの送信

                                    Light                       Network
   Light-1   Light-2    Light-3     Switch    Rtr-1      Rtr-2  Backbone
    |          |          |          |          |          |          |
    |     CoAP NON (2.04 Changed)    |          |          |          |
    |------------------------------->|          |          |          |
    |          |          |          |          |          |          |
    |          |          |          |          |          |          |
    |          CoAP NON (2.04 Changed)          |          |          |
    |          |------------------------------------------>|          |
    |          |          |          |          |          |--------->|
    |          |          |          |          |<--------------------|
    |          |          |          |<---------|          |          |
    |          |          |          |          |          |          |
    |          |        CoAP NON (5.00 Internal Server Error)         |
    |          |          |------------------------------->|          |
    |          |          |          |          |          |--------->|
    |          |          |          |          |<--------------------|
    |          |          |          |<---------|          |          |
    |          |          |          |          |          |          |
        

Figure 6: Lights (Optionally) Respond to Multicast CoAP Request

図6: 照明によるマルチキャストCoAPリクエストへの(任意の)応答

Another, but similar, lighting control use case is shown in Figure 7. In this case, a controller connected to the network backbone sends a CoAP group communication request to turn on all lights in Room-A. Every light sends back a CoAP response to the controller after being turned on.

別の、しかし類似した照明制御のユースケースを図7に示します。この場合、ネットワークバックボーンに接続されたコントローラが、Room-Aのすべての照明を点灯させるCoAPグループ通信リクエストを送信します。各照明は、点灯後にコントローラへCoAPレスポンスを返送します。

                                                               CoAP
                                                      Network  Controller
   Light-1   Light-2    Light-3     Rtr-1      Rtr-2  Backbone Client
    |          |          |           |          |          |        |
    |          |          |           |          |    CoAP NON Mcast(PUT,
    |          |          |           |          |    Payload=lights ON)
    |          |          |           |          |          |<-------|
    |          |          |           |<----------<---------|        |
    |<--------------------------------|          |          |        |
    ON         |          |           |          |          |        |
    |          |<----------<---------------------|          |        |
    |          ON         ON          |          |          |        |
    ^          ^          ^           |          |          |        |
    .......................           |          |          |        |
    :   Lights in Room-A  :           |          |          |        |
    :   turn on (nearly   :           |          |          |        |
    :   simultaneously)   :           |          |          |        |
    :.....................:           |          |          |        |
                                      |          |          |        |
    |          |          |           |          |          |        |
    |          |          |           |          |          |        |
    |    CoAP NON (2.04 Changed)      |          |          |        |
    |-------------------------------->|          |          |        |
    |          |          |           |-------------------->|        |
    |          |  CoAP NON (2.04 Changed)        |          |------->|
    |          |-------------------------------->|          |        |
    |          |          |           |          |--------->|        |
    |          |          | CoAP NON (2.04 Changed)         |------->|
    |          |          |--------------------->|          |        |
    |          |          |           |          |--------->|        |
    |          |          |           |          |          |------->|
    |          |          |           |          |          |        |
        

Figure 7: Controller on Backbone Sends Multicast Control Message

図7: バックボーン上のコントローラによるマルチキャスト制御メッセージの送信

A.2.2. Device Group Status Request

A.2.2. デバイスグループのステータスリクエスト

To properly monitor the status of systems, there may be a need for ad hoc, unplanned status updates. Group communication can be used to quickly send out a request to a (potentially large) number of devices for specific information. Each device then responds back with the requested data. Those devices that did not respond to the request can optionally be polled again via reliable unicast communication to complete the dataset. A set of devices may be defined as a CoAP group, e.g., as intended to cover "all temperature sensors on floor 3" or "all lights in wing B". For example, it could be a status request for the device temperature, most recent sensor event detected, firmware version, network load, and/or battery level.

システムのステータスを適切に監視するために、アドホックで計画されていないステータス更新が必要になることがあります。グループ通信を使用すると、(潜在的に多数の)デバイスに対して特定の情報を求めるリクエストを迅速に送信できます。その後、各デバイスは要求されたデータを返信します。リクエストに応答しなかったデバイスは、データセットを完成させるために、信頼性のあるユニキャスト通信で任意に再度ポーリングできます。デバイスの集合は、たとえば「3階のすべての温度センサー」や「B棟のすべての照明」を対象とするように、CoAPグループとして定義できます。例として、デバイスの温度、最後に検出されたセンサーイベント、ファームウェアのバージョン、ネットワーク負荷、バッテリ残量(またはその一部)に対するステータスリクエストが考えられます。

A.2.3. Network-Wide Query

A.2.3. ネットワーク全体へのクエリ

In some cases, a whole network or subnet of multiple IP devices needs to be queried for status or other information. This is similar to the previous use case except that the set of devices is not defined in terms of its function/type but in terms of its network location. Technically, this is also similar to distributed service discovery (Appendix A.1.2) where a query is processed by all devices on a network -- except that the query is not about services offered by the device, but rather specific operational data is requested.

場合によっては、複数のIPデバイスからなるネットワーク全体またはサブネットに対して、ステータスやその他の情報を問い合わせる必要があります。これは、デバイスの集合が機能や種類ではなくネットワーク上の位置によって定義される点を除けば、前のユースケースに似ています。技術的には、ネットワーク上のすべてのデバイスがクエリを処理するという点で、分散型サービスディスカバリ(付録A.1.2)にも似ていますが、クエリがデバイスの提供するサービスに関するものではなく、特定の運用データを要求するものである点が異なります。

A.2.4. Network-Wide/Group Notification

A.2.4. ネットワーク全体/グループへの通知

In some cases, a whole network, subnet of multiple IP devices, or a specific target set of devices needs to be notified of a status change or other information. This is similar to the previous two use cases except that the recipients are not expected to respond with some information. Unreliable notification can be acceptable in some use cases in which a recipient does not respond with a confirmation of having received the notification. In such a case, the receiving CoAP server does not have to create a CoAP response. If the sender needs confirmation of reception, the CoAP servers can be configured for that resource to respond with a 2.xx success status after successfully processing a request that provided a notification.

場合によっては、複数のIPデバイスからなるネットワーク全体、サブネット、またはデバイスの特定の対象集合に対して、ステータスの変化やその他の情報を通知する必要があります。これは、受信者が何らかの情報で応答することが期待されない点を除けば、前の2つのユースケースに似ています。受信者が通知を受信したことの確認を返さないユースケースでは、信頼性のない通知が許容される場合があります。そのような場合、受信側のCoAPサーバはCoAPレスポンスを作成する必要はありません。送信者が受信の確認を必要とする場合、通知を含むリクエストを正常に処理した後、そのリソースについて2.xxの成功ステータスで応答するようにCoAPサーバを構成できます。

A.3. Software Update

A.3. ソフトウェア更新

Group communication can be useful to efficiently distribute new software (firmware, image, application, etc.) to a set of multiple devices, e.g., by relying on the SUIT firmware update architecture [RFC9019] and its manifest information model [RFC9124]. In this case, a CoAP group can be defined in terms of the device type of its members: All devices in the target CoAP group are known to be capable of installing and running the new software. The software is distributed as a series of smaller blocks that are collected by all devices and stored in memory. All devices in the target CoAP group are usually responsible for integrity verification of the received software, which can be done per block or for the entire software image once all blocks have been received. Due to the inherent unreliability of CoAP multicast, there needs to be a backup mechanism (e.g., implemented using CoAP unicast) by which a device can individually request missing blocks of a whole software image/entity. Prior to a multicast software update, the CoAP group of recipients can be separately notified that there is new software available and coming, using the above network-wide or group notification.

グループ通信は、たとえばSUITファームウェア更新アーキテクチャ [RFC9019] とそのマニフェスト情報モデル [RFC9124] に依拠することで、新しいソフトウェア(ファームウェア、イメージ、アプリケーションなど)を複数のデバイスの集合に効率的に配布するのに役立ちます。この場合、CoAPグループはメンバーのデバイスタイプによって定義できます。対象のCoAPグループ内のすべてのデバイスは、新しいソフトウェアをインストールして実行できることが分かっています。ソフトウェアは一連の小さなブロックとして配布され、すべてのデバイスがそれらを収集してメモリに格納します。対象のCoAPグループ内のすべてのデバイスは通常、受信したソフトウェアの完全性検証を担当し、これはブロックごとに、またはすべてのブロックを受信した後にソフトウェアイメージ全体に対して行うことができます。CoAPマルチキャストには本質的に信頼性がないため、デバイスがソフトウェアイメージ/エンティティ全体のうち欠落したブロックを個別に要求できるバックアップの仕組み(たとえばCoAPユニキャストを用いて実装されるもの)が必要です。マルチキャストによるソフトウェア更新の前に、上記のネットワーク全体への通知またはグループへの通知を用いて、受信者のCoAPグループに対し、新しいソフトウェアが利用可能で配布されることを個別に通知できます。

Appendix B. Examples of Group Naming for Application Groups

付録B. アプリケーショングループのグループ命名の例

This section provides examples for the different methods that can be used to name application groups, as defined in Section 2.2.1.2.

本節では、2.2.1.2節で定義されているアプリケーショングループの命名に使用できるさまざまな方法の例を示します。

The content of this section is purely illustrative and has no ambition to be comprehensive. That is, while the methods defined in Section 2.2.1.2 are presented as viable to use, further viable methods might exist and can be defined in the future. Furthermore, this section does not provide guidelines on how to choose between the different methods, for which a decision is application specific.

本節の内容は純粋に説明用であり、網羅的であることを意図していません。すなわち、2.2.1.2節で定義されている方法は使用可能なものとして示されていますが、他にも使用可能な方法が存在する可能性があり、将来定義されることもありえます。さらに、本節は異なる方法の間でどのように選択するかについての指針を示しません。その判断はアプリケーションに依存します。

The shown examples consider a CoAP group identified by the group hostname grp.example that resolves to the IPv6 address ff05::db8:8000:1. Its members are CoAP servers listening to the associated IP multicast address ff05::db8:8000:1 and port number 5685.

示される例では、グループホスト名 grp.example で識別されるCoAPグループを考えます。このホスト名はIPv6アドレス ff05::db8:8000:1 に解決されます。そのメンバーは、関連付けられたIPマルチキャストアドレス ff05::db8:8000:1 とポート番号5685で待ち受けるCoAPサーバです。

Note that a group hostname is used in most examples to improve readability. In practice, as discussed in Section 2.2.1.2, using an IP address literal as the host subcomponent of the group URI can reduce the size of the CoAP request message, if the Uri-Host Option can be elided.

ほとんどの例では、読みやすさのためにグループホスト名が使用されていることに注意してください。実際には、2.2.1.2節で述べたように、グループURIのホストサブコンポーネントとしてIPアドレスリテラルを使用すると、Uri-Hostオプションを省略できる場合にCoAPリクエストメッセージのサイズを削減できます。

Also note that the Uri-Port Option does not appear in the examples, since the port number 5685 is already included in the CoAP request's UDP header (which is not shown in the examples) in the destination port field.

また、例にはUri-Portオプションが現れないことにも注意してください。これは、ポート番号5685がすでにCoAPリクエストのUDPヘッダ(例には示されていません)の宛先ポートフィールドに含まれているためです。

B.1. Group Naming Using the URI Path Component

B.1. URIパスコンポーネントを用いたグループ命名

Figure 8 provides an example where the URI path component is used for naming application groups.

図8は、URIパスコンポーネントをアプリケーショングループの命名に使用する例を示しています。

      Application group name: gp1

      Group URI: coap://grp.example:5685/gp/gp1/light?foo=bar

      CoAP group request
         Header: GET (T=NON, Code=0.01, MID=0x7d41)
         Uri-Host: "grp.example"
         Uri-Path: "gp"
         Uri-Path: "gp1"
         Uri-Path: "light"
         Uri-Query: "foo=bar"
        

Figure 8: Example of Application Group Name in the URI Path (1/2)

図8: URIパスにおけるアプリケーショングループ名の例 (1/2)

Figure 9 provides a different example, where an IPv6 address literal and the default CoAP port number 5683 are used in the authority component to identify a different CoAP group, which yields a compact CoAP request. Also, the resource structure is different in this example.

図9は、IPv6アドレスリテラルとデフォルトのCoAPポート番号5683をオーソリティコンポーネントで使用して別のCoAPグループを識別する、異なる例を示しています。これにより、コンパクトなCoAPリクエストになります。また、この例ではリソース構造も異なります。

      Application group name: gp1

      Group URI: coap://[ff05::db8:8000:1]/g/gp1/li

      CoAP group request
         Header: POST (T=NON, Code=0.02, MID=0x7d41)
         Uri-Path: "g"
         Uri-Path: "gp1"
         Uri-Path: "li"
        

Figure 9: Example of Application Group Name in the URI Path (2/2)

図9: URIパスにおけるアプリケーショングループ名の例 (2/2)

B.2. Group Naming Using the URI Query Component

B.2. URIクエリコンポーネントを用いたグループ命名

Figure 10 provides an example where the URI query component is used for naming application groups. In particular, it considers the first alternative discussed in Section 2.2.1.2, where the URI query component consists of only one parameter, which has no value and has the name of the application group as its own identifier.

図10は、URIクエリコンポーネントをアプリケーショングループの命名に使用する例を示しています。特に、2.2.1.2節で論じた最初の選択肢を考えます。そこでは、URIクエリコンポーネントが値を持たないパラメータを1つだけ含み、そのパラメータ自身の識別子としてアプリケーショングループの名前を持ちます。

      Application group name: gp1

      Group URI: coap://grp.example:5685/light?gp1

      CoAP group request
         Header: GET (T=NON, Code=0.01, MID=0x7d41)
         Uri-Host: "grp.example"
         Uri-Path: "light"
         Uri-Query: "gp1"
        

Figure 10: Example of Application Group Name in the URI Query (1/2)

図10: URIクエリにおけるアプリケーショングループ名の例 (1/2)

Figure 11 provides another example, which considers the second alternative discussed in Section 2.2.1.2. In particular, the URI query component includes a query parameter "gp" as the designated indicator, whose value is the name of the application group.

図11は、2.2.1.2節で論じた2番目の選択肢を考える、別の例を示しています。特に、URIクエリコンポーネントには、指定された指示子としてクエリパラメータ "gp" が含まれ、その値がアプリケーショングループの名前になります。

      Application group name: gp1

      Group URI: coap://grp.example:5685/light?foo=bar&gp=gp1

      CoAP group request
         Header: GET (T=NON, Code=0.01, MID=0x7d41)
         Uri-Host: "grp.example"
         Uri-Path: "light"
         Uri-Query: "foo=bar"
         Uri-Query: "gp=gp1"
        

Figure 11: Example of Application Group Name in the URI Query (2/2)

図11: URIクエリにおけるアプリケーショングループ名の例 (2/2)

B.3. Group Naming Using the URI Authority Component

B.3. URIオーソリティコンポーネントを用いたグループ命名

Figure 12 provides an example where the URI authority component as a whole is used for encoding the name of the application group. Note that, although the port information (5685) is not carried as a CoAP option, it is still transported within the UDP message (in the UDP destination port field). Effectively, the application group name is transported in the UDP message as two parts.

図12は、URIオーソリティコンポーネント全体をアプリケーショングループ名のエンコードに使用する例を示しています。ポート情報 (5685) はCoAPオプションとして運ばれませんが、それでもUDPメッセージ内(UDP宛先ポートフィールド)で転送されることに注意してください。実質的に、アプリケーショングループ名は2つの部分に分かれてUDPメッセージ内で転送されます。

      Application group name: grp.example:5685

      Group URI: coap://grp.example:5685/light?foo=bar

      CoAP group request
         Header: GET (T=NON, Code=0.01, MID=0x7d41)
         Uri-Host: "grp.example"
         Uri-Path: "light"
         Uri-Query: "foo=bar"
        

Figure 12: Example of Application Group Name Defined by the URI Authority

図12: URIオーソリティで定義されるアプリケーショングループ名の例

Figure 13 provides an example where the URI host subcomponent of the URI authority component is used for encoding the name of the application group. Specifically, the leftmost label of the registered name is used.

図13は、URIオーソリティコンポーネントのURIホストサブコンポーネントをアプリケーショングループ名のエンコードに使用する例を示しています。具体的には、登録名の最左ラベルが使用されます。

      Application group name: grp42

      Group URI: coap://grp42.example:5685/light?foo=bar

      CoAP group request
         Header: GET (T=NON, Code=0.01, MID=0x7d41)
         Uri-Host: "grp42.example"
         Uri-Path: "light"
         Uri-Query: "foo=bar"
        

Figure 13: Example of Application Group Name Encoded in the URI Host

図13: URIホストにエンコードされたアプリケーショングループ名の例

Figure 14 provides an example where the URI port subcomponent of the URI authority component is used for naming application groups. It uses a UDP port from the dynamic port range. Multiple application groups could be defined this way, each represented by a number and associated port in the dynamic port range.

図14は、URIオーソリティコンポーネントのURIポートサブコンポーネントをアプリケーショングループの命名に使用する例を示しています。ここではダイナミックポート範囲のUDPポートを使用します。この方法で複数のアプリケーショングループを定義でき、それぞれがダイナミックポート範囲内の番号と対応するポートで表されます。

      Application group name: 55685

      Group URI: coap://grp.example:55685/light?foo=bar

      CoAP group request
         Header: GET(T=NON, Code=0.01, MID=0x7d41)
         Uri-Host: "grp.example"
         Uri-Path: "light"
         Uri-Query: "foo=bar"
        

Figure 14: Example of Application Group Name in the URI Port

図14: URIポートにおけるアプリケーショングループ名の例

Appendix C. Examples of Group Discovery from CoAP Servers

付録C. CoAPサーバからのグループディスカバリの例

This section provides examples for the different methods that a CoAP client can use to discover application groups and CoAP groups by interacting with CoAP servers, as defined in Section 2.2.3.2.

本セクションでは、セクション 2.2.3.2 で定義されているとおり、CoAPクライアントがCoAPサーバとやり取りすることでアプリケーショングループおよびCoAPグループをディスカバリするために使用できる、さまざまな方法の例を示します。

The examples build on the same assumptions considered in Section 2.2.3.2. In addition, a CoAP group is used and is identified by the URI authority grp.example:5685. In the examples, the group hostname grp.example resolves to a single IP address; hence, "grp.example:5685" identifies a single CoAP group.

これらの例は、セクション 2.2.3.2 で想定している前提と同じ前提に基づいています。加えて、CoAPグループを1つ使用し、そのCoAPグループはURIオーソリティ grp.example:5685 で識別されるものとします。例では、グループホスト名 grp.example は単一のIPアドレスに解決されます。したがって、"grp.example:5685" は単一のCoAPグループを識別します。

C.1. Application Groups Associated with a CoAP Group

C.1. CoAPグループに関連付けられたアプリケーショングループ

Figure 15 provides an example where a CoAP client discovers all the application groups associated with a specific CoAP group.

図15は、CoAPクライアントが、特定のCoAPグループに関連付けられたすべてのアプリケーショングループをディスカバリする例を示しています。

As a result, the client gains knowledge of the set of servers that are members of the specified CoAP group and member of any of the associated application groups and, for each of those servers, the names of the application groups where the server is a member and that are associated with the CoAP group.

その結果、クライアントは、指定されたCoAPグループのメンバであり、かつ関連付けられたいずれかのアプリケーショングループのメンバでもあるサーバの集合を把握します。さらに、それらの各サーバについて、そのサーバがメンバであり、かつそのCoAPグループに関連付けられているアプリケーショングループの名前も把握します。

Each of the servers, S1 and S2, is identified by the IP source address of the CoAP response. If the client wishes to discover resources that a particular server hosts within a particular application group, it may use a unicast discovery request(s) to this server, i.e., to its respective unicast IP address. Alternatively, the client may use the discovered group resource type (e.g., rt=g.light) to infer which resources are present below the group resource.

サーバS1およびS2のそれぞれは、CoAPレスポンスの送信元IPアドレスによって識別されます。クライアントが、特定のサーバが特定のアプリケーショングループ内でホストしているリソースをディスカバリしたい場合は、そのサーバに対して、すなわちそのサーバのユニキャストIPアドレス宛に、ユニキャストのディスカバリリクエストを使用してもよいです。あるいは、クライアントは、ディスカバリされたグループリソースタイプ (例: rt=g.light) を使用して、グループリソースの下にどのリソースが存在するかを推測してもよいです。

The example semantics "g.<GROUPTYPE>" is used for the values of the attribute "rt".

属性 "rt" の値には、例示のセマンティクス "g.<GROUPTYPE>" を使用します。

      // Request to all members of the CoAP group
      Req: GET coap://grp.example:5685/.well-known/core?rt=g.*

      // Response from server S1, as member of:
      //   - The CoAP group "grp.example:5685"
      //   - The application group "gp1"
      Res: 2.05 (Content)
      Content-Format: 40 (application/link-format)
      Payload:
      </gp/gp1>;rt=g.light

      // Response from server S2, as member of:
      // - The CoAP group "grp.example:5685"
      // - The application groups "gp1" and "gp2"
      Res: 2.05 (Content)
      Content-Format: 40 (application/link-format)
      Payload:
      </gp/gp1>;rt=g.light,
      </gp/gp2>;rt=g.temp
        

Figure 15: Discovery of Application Groups Associated with a CoAP Group

図15: CoAPグループに関連付けられたアプリケーショングループのディスカバリ

C.2. Members of a Given Application Group

C.2. 指定されたアプリケーショングループのメンバ

Figure 16 provides an example where a CoAP client discovers the CoAP servers that are members of a specific application group and the CoAP group associated with the application group.

図16は、CoAPクライアントが、特定のアプリケーショングループのメンバであるCoAPサーバと、そのアプリケーショングループに関連付けられたCoAPグループをディスカバリする例を示しています。

Note that, unlike in the example shown in Appendix C.1, now the servers need to respond with an absolute URI and not a relative URI. This is necessary because the responding CoAP endpoint serving the Link Format document (on port 5683) is a different CoAP endpoint from the one hosting the group resource "gp1" (on port 5685). Due to this situation, the responding server includes the full (absolute) URI in the Link Format response from which the client can conveniently gain knowledge of the CoAP group.

付録C.1 に示した例とは異なり、ここではサーバは相対URIではなく絶対URIで応答する必要があることに注意してください。これは、Link Format文書を提供する (ポート5683の) 応答側CoAPエンドポイントが、グループリソース "gp1" をホストする (ポート5685の) CoAPエンドポイントとは別のCoAPエンドポイントであるためです。この状況により、応答側サーバはLink Formatレスポンスに完全な (絶対) URIを含め、クライアントはそこからCoAPグループを容易に把握できます。

Also note that a server could equally well respond with the IPv6 multicast address literal within square brackets instead of the CoAP group name "grp.example". In that case, the client would still gain knowledge of the CoAP group, albeit in a different representation. If an address literal is returned, it identifies exactly one CoAP group. Instead, in the case that a hostname is returned (as in the example), it potentially identifies multiple CoAP groups.

また、サーバは、CoAPグループ名 "grp.example" の代わりに、角括弧で囲まれたIPv6マルチキャストアドレスリテラルで応答してもよいことにも注意してください。その場合でも、クライアントは表現こそ異なるもののCoAPグループを把握します。アドレスリテラルが返される場合、それはちょうど1つのCoAPグループを識別します。これに対して、(例のように) ホスト名が返される場合、それは複数のCoAPグループを識別する可能性があります。

      // Request to realm-local members of the application group "gp1"
      Req: GET coap://[ff03::fd]/.well-known/core?href=/gp/gp1

      // CoAP response from server S1, as member of:
      //   - The CoAP group "grp.example:5685"
      //   - The application group "gp1"
      Res: 2.05 (Content)
      Content-Format: 40 (application/link-format)
      Payload:
      <coap://grp.example:5685/gp/gp1>;rt=g.light

      // CoAP response from server S2, as member of:
      // - The CoAP group "grp.example:5685"
      // - The application group "gp1"
      Res: 2.05 (Content)
      Content-Format: 40 (application/link-format)
      Payload:
      <coap://grp.example:5685/gp/gp1>;rt=g.light
        

Figure 16: Discovery of Members of an Application Group, Together with the Associated CoAP Group

図16: アプリケーショングループのメンバと、関連付けられたCoAPグループのディスカバリ

C.3. Members of Any Application Group of a Given Type

C.3. 指定されたタイプの任意のアプリケーショングループのメンバ

Figure 17 provides an example where a CoAP client discovers the CoAP servers that are members of any application group of a specific type and the CoAP group(s) associated with those application groups. Note that, because a hostname "grp.example" is returned, this may potentially resolve to multiple IP multicast addresses, hence multiple CoAP groups.

図17は、CoAPクライアントが、特定のタイプの任意のアプリケーショングループのメンバであるCoAPサーバと、それらのアプリケーショングループに関連付けられたCoAPグループをディスカバリする例を示しています。ホスト名 "grp.example" が返されるため、これは複数のIPマルチキャストアドレスに、したがって複数のCoAPグループに解決される可能性があることに注意してください。

      // Request to realm-local members of application groups
      // with group type "g.temp"
      Req: GET coap://[ff03::fd]/.well-known/core?rt=g.temp

      // Response from server S1, as member of:
      //   - The CoAP group "grp.example:5685"
      //   - The application group "gp1" of type "g.temp"
      Res: 2.05 (Content)
      Content-Format: 40 (application/link-format)
      Payload:
      <coap://grp.example:5685/gp/gp1>;rt=g.temp

      // Response from server S2, as member of:
      //   - The CoAP group "grp.example:5685"
      //   - The application groups "gp1" and "gp2" of type "g.temp"
      Res: 2.05 (Content)
      Content-Format: 40 (application/link-format)
      Payload:
      <coap://grp.example:5685/gp/gp1>;rt=g.temp,
      <coap://grp.example:5685/gp/gp2>;rt=g.temp
        

Figure 17: Discovery of Members of Application Groups of a Specified Type and of the Associated CoAP Group(s)

図17: 指定されたタイプのアプリケーショングループのメンバと、関連付けられたCoAPグループのディスカバリ

C.4. Members of Any Application Group in the Network

C.4. ネットワーク内の任意のアプリケーショングループのメンバ

Figure 18 provides an example where a CoAP client discovers the CoAP servers that are members of any application group configured in the 6LoWPAN network of the client and the CoAP group(s) associated with each application group. In this example, the scope is realm-local to address all servers in the current 6LoWPAN network of the client. Also, the group hostname grp2.example resolves to a single IP address; hence, "grp2.example" identifies a single CoAP group.

図18は、CoAPクライアントが、そのクライアントの6LoWPANネットワークで構成されている任意のアプリケーショングループのメンバであるCoAPサーバと、各アプリケーショングループに関連付けられたCoAPグループをディスカバリする例を示しています。この例では、クライアントの現在の6LoWPANネットワーク内のすべてのサーバを宛先とするため、スコープはレルムローカルです。また、グループホスト名 grp2.example は単一のIPアドレスに解決されます。したがって、"grp2.example" は単一のCoAPグループを識別します。

The example semantics "g.<GROUPTYPE>" is used for the values of the attribute "rt".

属性 "rt" の値には、例示のセマンティクス "g.<GROUPTYPE>" を使用します。

      // Request to realm-local members of any application group
      Req: GET coap://[ff03::fd]/.well-known/core?rt=g.*

      // Response from server S1, as member of:
      //   - The CoAP groups "grp.example:5685" and "grp2.example"
      //   - The application groups "gp1" and "gp5"
      Res: 2.05 (Content)
      Content-Format: 40 (application/link-format)
      Payload:
      <coap://grp.example:5685/gp/gp1>;rt=g.light,
      <coap://grp2.example/gp/gp5>;rt=g.lock

      // Response from server S2, as member of:
      //   - The CoAP group "grp.example:5685"
      //   - The application groups "gp1" and "gp2"
      Res: 2.05 (Content)
      Content-Format: 40 (application/link-format)
      Payload:
      <coap://grp.example:5685/gp/gp1>;rt=g.light,
      <coap://grp.example:5685/gp/gp2>;rt=g.light

      // Response from server S3, as member of:
      //   - The CoAP group "grp2.example"
      //   - The application group "gp5"
      Res: 2.05 (Content)
      Content-Format: 40 (application/link-format)
      Payload:
      <coap://grp2.example/gp/gp5>;rt=g.lock
        

Figure 18: Discovery of the Resources and Members of Any Application Group and of the Associated CoAP Group(s)

図18: 任意のアプリケーショングループのリソースおよびメンバと、関連付けられたCoAPグループのディスカバリ

Alternatively, some applications may use the "rt" attribute on a parent resource to denote support for a particular REST API to access child resources.

あるいは、アプリケーションによっては、子リソースにアクセスするための特定のREST APIのサポートを示すために、親リソースの "rt" 属性を使用する場合があります。

For instance, Figure 19 provides a different example where a custom Link Format attribute "gpt" is used to denote the group type within the scope of the application/system. An alternative, shorter encoding (not shown in the figure) is to use only the value "1" for each "gpt" attribute, in order to denote that the resource is a group resource that represents an application group. In that case, information about the semantics/API of the group resource is disclosed only via the "rt" attribute as shown in the figure.

たとえば図19は、アプリケーション/システムのスコープ内でグループタイプを示すために、カスタムのLink Format属性 "gpt" を使用する別の例を示しています。別のより短いエンコーディング (図には示していません) として、各 "gpt" 属性の値に "1" だけを使用し、そのリソースがアプリケーショングループを表すグループリソースであることを示す方法があります。その場合、グループリソースのセマンティクス/APIに関する情報は、図に示すとおり "rt" 属性のみを介して開示されます。

      // Request to realm-local members of any application group
      Req: GET coap://[ff03::fd]/.well-known/core?gpt=*

      // Response from server S1, as member of:
      //   - The CoAP groups "grp.example:5685" and "grp2.example"
      //   - The application groups "gp1" and "gp5"
      Res: 2.05 (Content)
      Content-Format: 40 (application/link-format)
      Payload:
      <coap://grp.example:5685/gp/gp1>;rt=oic.d.light;gpt=light,
      <coap://grp2.example/gp/gp5>;rt=oic.d.smartlock;gpt=lock

      // Response from server S2, as member of:
      //   - The CoAP group "grp.example:5685"
      //   - The application groups "gp1" and "gp2"
      Res: 2.05 (Content)
      Content-Format: 40 (application/link-format)
      Payload:
      <coap://grp.example:5685/gp/gp1>;rt=oic.d.light;gpt=light,
      <coap://grp.example:5685/gp/gp2>;rt=oic.d.light;gpt=light

      // Response from server S3, as member of:
      //   - The CoAP group "grp2.example"
      //   - The application group "gp5"
      Res: 2.05 (Content)
      Content-Format: 40 (application/link-format)
      Payload:
      <coap://grp2.example/gp/gp5>;rt=oic.d.smartlock;gpt=lock
        

Figure 19: Example of Using a Custom 'gpt' Link Attribute to Denote Group Type

図19: グループタイプを示すためのカスタムの 'gpt' リンク属性の使用例

Appendix D. Examples of Message Exchanges

付録D. メッセージ交換の例

This section provides examples of different message exchanges when CoAP is used with group communication. The examples consider:

本セクションでは、CoAPをグループ通信で使用する場合のさまざまなメッセージ交換の例を示します。これらの例では、次を想定しています。

* A client with address ADDR_CLIENT and port number PORT_CLIENT.

* アドレスADDR_CLIENTおよびポート番号PORT_CLIENTを持つクライアント。

* A CoAP group associated with the IP multicast address ADDR_GRP and port number PORT_GRP.

* IPマルチキャストアドレスADDR_GRPおよびポート番号PORT_GRPに関連付けられたCoAPグループ。

* An application group "gp1" associated with the CoAP group above.

* 上記のCoAPグループに関連付けられたアプリケーショングループ "gp1"。

* Three servers, A, B, and C, all of which are members of the CoAP group above and of the application group "gp1". Each server X (with X equal to A, B, or C) listens to its own address ADDR_X and port number PORT_X and listens to the address ADDR_GRP and port number PORT_GRP. For each server, its PORT_X may be different from PORT_GRP or may be equal to it, in general.

* 3台のサーバA、B、Cは、いずれも上記のCoAPグループおよびアプリケーショングループ "gp1" のメンバです。各サーバX (XはA、B、またはC) は、自身のアドレスADDR_Xおよびポート番号PORT_Xで待ち受けるとともに、アドレスADDR_GRPおよびポート番号PORT_GRPでも待ち受けます。一般に、各サーバのPORT_XはPORT_GRPと異なっていてもよく、等しくてもよいです。

In Figure 20, the client sends a Non-confirmable GET request to the CoAP group, targeting the resource "temperature" in the application group "gp1".

図20では、クライアントは、アプリケーショングループ "gp1" 内のリソース "temperature" を対象として、CoAPグループにNon-confirmableのGETリクエストを送信します。

   Client              A  B  C
      |                |  |  |
      |  GET           |  |  |
      +-------+------->|  |  | Source: ADDR_CLIENT:PORT_CLIENT
      |        \       |  |  | Destination: ADDR_GRP:PORT_GRP
      |         +-------->|  | Header: GET (T=NON, Code=0.01, MID=0x7d41)
      |          \     |  |  | Token: 0x86
      |           +--------->| Uri-Path: "gp"
      |                |  |  | Uri-Path: "gp1"
      |                |  |  | Uri-Path: "temperature"
      |                |  |  |

      All servers reply with a 2.05 (Content) response, although the
      response from server B is lost.

      As the source port number of their response, servers A and B use the
      destination port number of the request, i.e., PORT_GRP.

      |                |  |  |
      |                |  |  |
      |<---------------+  |  | Source: ADDR_A:PORT_GRP
      |          2.05  |  |  | Destination: ADDR_CLIENT:PORT_CLIENT
      |                |  |  | Header: 2.05 (T=NON, Code=2.05, MID=0x60b1)
      |                |  |  | Token: 0x86
      |                |  |  | Payload: "22.3 C"
      |                |  |  |
      | Lost X <----------+  | Source: ADDR_B:PORT_GRP
      |          2.05  |  |  | Destination: ADDR_CLIENT:PORT_CLIENT
      |                |  |  | Header: 2.05 (T=NON, Code=2.05, MID=0x01a0)
      |                |  |  | Token: 0x86
      |                |  |  | Payload: "20.9 C"
      |                |  |  |

      As the source port number of its response, server C uses its own port
      number, PORT_C.

      |                |  |  |
      |                |  |  |
      |<---------------------+ Source: ADDR_C:PORT_C
      |          2.05  |  |  | Destination: ADDR_CLIENT:PORT_CLIENT
      |                |  |  | Header: 2.05 (T=NON, Code=2.05, MID=0x952a)
      |                |  |  | Token: 0x86
      |                |  |  | Payload: "21.0 C"
      |                |  |  |
        

Figure 20: Example of Non-Confirmable Group Request, Followed by Non-Confirmable Responses

図20: Non-confirmableグループリクエストと、それに続くNon-confirmableレスポンスの例

In Figure 21, the client sends a Non-confirmable GET request to the CoAP group, targeting and requesting to observe the resource "temperature" in the application group "gp1".

図21では、クライアントは、アプリケーショングループ "gp1" 内のリソース "temperature" を対象とし、そのオブザーブを要求して、CoAPグループにNon-confirmableのGETリクエストを送信します。

   Client              A  B  C
      |                |  |  |
      |  GET           |  |  |
      +-------+------->|  |  | Source: ADDR_CLIENT:PORT_CLIENT
      |        \       |  |  | Destination: ADDR_GRP:PORT_GRP
      |         +-------->|  | Header: GET (T=NON, Code=0.01, MID=0x7d41)
      |          \     |  |  | Token: 0x86
      |           +--------->| Observe: 0 (register)
      |                |  |  | Uri-Path: "gp"
      |                |  |  | Uri-Path: "gp1"
      |                |  |  | Uri-Path: "temperature"
      |                |  |  |

      All servers reply with a 2.05 (Content) notification response.

      As the source port number of their response, servers A and B use the
      destination port number of the request, i.e., PORT_GRP.

      |                |  |  |
      |                |  |  |
      |<---------------+  |  | Source: ADDR_A:PORT_GRP
      |          2.05  |  |  | Destination: ADDR_CLIENT:PORT_CLIENT
      |                |  |  | Header: 2.05 (T=NON, Code=2.05, MID=0x60b1)
      |                |  |  | Token: 0x86
      |                |  |  | Observe: 3
      |                |  |  | Payload: "22.3 C"
      |                |  |  |
      |<------------------+  | Source: ADDR_B:PORT_GRP
      |          2.05  |  |  | Destination: ADDR_CLIENT:PORT_CLIENT
      |                |  |  | Header: 2.05 (T=NON, Code=2.05, MID=0x01a0)
      |                |  |  | Token: 0x86
      |                |  |  | Observe: 13
      |                |  |  | Payload: "20.9 C"

      As the source port number of its response, server C uses its own port
      number PORT_C.

      |                |  |  |
      |                |  |  |
      |<---------------------+ Source: ADDR_C:PORT_C
      |          2.05  |  |  | Destination: ADDR_CLIENT:PORT_CLIENT
      |                |  |  | Header: 2.05 (T=NON, Code=2.05, MID=0x952a)
      |                |  |  | Token: 0x86
      |                |  |  | Observe: 23
      |                |  |  | Payload: "21.0 C"
      |                |  |  |

      Some time later, the temperature changes.

      All servers send a 2.05 (Content) notification response, with the
      new representation of the "temperature" resource as payload.

      |                |  |  |
      |                |  |  |
      |<---------------+  |  | Source: ADDR_A:PORT_GRP
      |          2.05  |  |  | Destination: ADDR_CLIENT:PORT_CLIENT
      |                |  |  | Header: 2.05 (T=NON, Code=2.05, MID=0x60b2)
      |                |  |  | Token: 0x86
      |                |  |  | Observe: 7
      |                |  |  | Payload: "32.3 C"
      |                |  |  |
      |<------------------+  | Source: ADDR_B:PORT_GRP
      |          2.05  |  |  | Destination: ADDR_CLIENT:PORT_CLIENT
      |                |  |  | Header: 2.05 (T=NON, Code=2.05, MID=0x01a1)
      |                |  |  | Token: 0x86
      |                |  |  | Observe: 18
      |                |  |  | Payload: "30.9 C"
      |                |  |  |
      |<---------------------+ Source: ADDR_C:PORT_C
      |          2.05  |  |  | Destination: ADDR_CLIENT:PORT_CLIENT
      |                |  |  | Header: 2.05 (T=NON, Code=2.05, MID=0x952b)
      |                |  |  | Token: 0x86
      |                |  |  | Observe: 29
      |                |  |  | Payload: "31.0 C"
      |                |  |  |
        

Figure 21: Example of Non-Confirmable Observe Group Request, Followed by Non-Confirmable Responses as Observe Notifications

図21: Non-confirmableのObserveグループリクエストと、それに続くObserve通知としてのNon-confirmableレスポンスの例

The next four figures incrementally show an example where the client requests the servers to perform a block-wise transfer.

次の4つの図は、クライアントがサーバにブロック単位転送の実行を要求する例を段階的に示しています。

In Figure 22, the client sends a Non-confirmable GET request to the CoAP group, targeting the resource "log" in the application group "gp1" and requesting a block-wise transfer. All servers reply with a Non-confirmable 2.05 (Content) response including the first block. As the source port number of its response, each server uses its own port number.

図22では、クライアントは、アプリケーショングループ "gp1" 内のリソース "log" を対象とし、ブロック単位転送を要求して、CoAPグループにNon-confirmableのGETリクエストを送信します。すべてのサーバは、最初のブロックを含むNon-confirmableの2.05 (Content) レスポンスで応答します。各サーバは、レスポンスの送信元ポート番号として、自身のポート番号を使用します。

   Client              A  B  C
      |                |  |  |
      |  GET           |  |  |
      +-------+------->|  |  | Source: ADDR_CLIENT:PORT_CLIENT
      |        \       |  |  | Destination: ADDR_GRP:PORT_GRP
      |         +-------->|  | Header: GET (T=NON, Code=0.01, MID=0x7d41)
      |          \     |  |  | Token: 0x86
      |           +--------->| Uri-Path: "gp"
      |                |  |  | Uri-Path: "gp1"
      |                |  |  | Uri-Path: "log"
      |                |  |  | Block2: 0/0/64
      |                |  |  |
      |                |  |  |
      |                |  |  |
      |<---------------+  |  | Source: ADDR_A:PORT_A
      |          2.05  |  |  | Destination: ADDR_CLIENT:PORT_CLIENT
      |                |  |  | Header: 2.05 (T=NON, Code=2.05, MID=0x60b1)
      |                |  |  | Token: 0x86
      |                |  |  | Block2: 0/1/64
      |                |  |  | Payload: 0x0a00 ...
      |                |  |  |
      |<------------------+  | Source: ADDR_B:PORT_B
      |          2.05  |  |  | Destination: ADDR_CLIENT:PORT_CLIENT
      |                |  |  | Header: 2.05 (T=NON, Code=2.05, MID=0x01a0)
      |                |  |  | Token: 0x86
      |                |  |  | Block2: 0/1/64
      |                |  |  | Payload: 0x0b00 ...
      |                |  |  |
      |<---------------------+ Source: ADDR_C:PORT_C
      |          2.05  |  |  | Destination: ADDR_CLIENT:PORT_CLIENT
      |                |  |  | Header: 2.05 (T=NON, Code=2.05, MID=0x952a)
      |                |  |  | Token: 0x86
      |                |  |  | Block2: 0/1/64
      |                |  |  | Payload: 0x0c00 ...
      |                |  |  |
        

Figure 22: Example of Non-Confirmable Group Request Starting a Block-Wise Transfer, Followed by Non-Confirmable Responses with the First Block

図22: ブロック単位転送を開始するNon-confirmableグループリクエストと、それに続く最初のブロックを含むNon-confirmableレスポンスの例

After obtaining the first block, the client requests the following blocks separately from each server, by means of unicast exchanges with Confirmable GET requests.

最初のブロックを取得した後、クライアントは、Confirmable GETリクエストによるユニキャスト交換を用いて、各サーバから後続のブロックを個別に要求します。

In Figure 23, the client requests and receives the following blocks from server A.

図23では、クライアントはサーバAから後続のブロックを要求し、受信します。

   Client              A  B  C
      |                |  |  |
      |  GET           |  |  |
      +--------------->|  |  | Source: ADDR_CLIENT:PORT_CLIENT
      |                |  |  | Destination: ADDR_A:PORT_A
      |                |  |  | Header: GET (T=CON, Code=0.01, MID=0x7d42)
      |                |  |  | Token: 0xa6
      |                |  |  | Uri-Path: "gp"
      |                |  |  | Uri-Path: "gp1"
      |                |  |  | Uri-Path: "log"
      |                |  |  | Block2: 1/0/64
      |                |  |  |
      |<---------------+  |  | Source: ADDR_A:PORT_A
      |          2.05  |  |  | Destination: ADDR_CLIENT:PORT_CLIENT
      |                |  |  | Header: 2.05 (T=ACK, Code=2.05, MID=0x7d42)
      |                |  |  | Token: 0xa6
      |                |  |  | Block2: 1/1/64
      |                |  |  | Payload: 0x0a01 ...
      |                |  |  |
      |  GET           |  |  |
      +--------------->|  |  | Source: ADDR_CLIENT:PORT_CLIENT
      |                |  |  | Destination: ADDR_A:PORT_A
      |                |  |  | Header: GET (T=CON, Code=0.01, MID=0x7d43)
      |                |  |  | Token: 0xa7
      |                |  |  | Uri-Path: "gp"
      |                |  |  | Uri-Path: "gp1"
      |                |  |  | Uri-Path: "log"
      |                |  |  | Block2: 2/0/64
      |                |  |  |
      |<---------------+  |  | Source: ADDR_A:PORT_A
      |          2.05  |  |  | Destination: ADDR_CLIENT:PORT_CLIENT
      |                |  |  | Header: 2.05 (T=ACK, Code=2.05, MID=0x7d43)
      |                |  |  | Token: 0xa7
      |                |  |  | Block2: 2/0/64
      |                |  |  | Payload: 0x0a02 ...
      |                |  |  |
        

Figure 23: Example of Unicast Exchanges with Server A to Retrieve the Following Blocks

図23: 後続のブロックを取得するためのサーバAとのユニキャスト交換の例

In Figure 24, the client requests and receives the following blocks from server B.

図24では、クライアントがサーバBから後続のブロックを要求し、受信します。

   Client              A  B  C
      |                |  |  |
      |  GET           |  |  |
      +------------------>|  | Source: ADDR_CLIENT:PORT_CLIENT
      |                |  |  | Destination: ADDR_B:PORT_B
      |                |  |  | Header: GET (T=CON, Code=0.01, MID=0x7d44)
      |                |  |  | Token: 0xb6
      |                |  |  | Uri-Path: "gp"
      |                |  |  | Uri-Path: "gp1"
      |                |  |  | Uri-Path: "log"
      |                |  |  | Block2: 1/0/64
      |                |  |  |
      |<------------------+  | Source: ADDR_B:PORT_B
      |          2.05  |  |  | Destination: ADDR_CLIENT:PORT_CLIENT
      |                |  |  | Header: 2.05 (T=ACK, Code=2.05, MID=0x7d44)
      |                |  |  | Token: 0xb6
      |                |  |  | Block2: 1/1/64
      |                |  |  | Payload: 0x0b01 ...
      |                |  |  |
      |  GET           |  |  |
      +------------------>|  | Source: ADDR_CLIENT:PORT_CLIENT
      |                |  |  | Destination: ADDR_B:PORT_B
      |                |  |  | Header: GET (T=CON, Code=0.01, MID=0x7d45)
      |                |  |  | Token: 0xb7
      |                |  |  | Uri-Path: "gp"
      |                |  |  | Uri-Path: "gp1"
      |                |  |  | Uri-Path: "log"
      |                |  |  | Block2: 2/0/64
      |                |  |  |
      |<------------------+  | Source: ADDR_B:PORT_B
      |          2.05  |  |  | Destination: ADDR_CLIENT:PORT_CLIENT
      |                |  |  | Header: 2.05 (T=ACK, Code=2.05, MID=0x7d45)
      |                |  |  | Token: 0xb7
      |                |  |  | Block2: 2/0/64
      |                |  |  | Payload: 0x0b02 ...
      |                |  |  |
        

Figure 24: Example of Unicast Exchanges with Server B to Retrieve the Following Blocks

図24: 後続のブロックを取得するための、サーバBとのユニキャスト交換の例

In Figure 25, the client requests and receives the following blocks from server C.

図25では、クライアントがサーバCから後続のブロックを要求し、受信します。

   Client              A  B  C
      |                |  |  |
      |  GET           |  |  |
      +--------------------->| Source: ADDR_CLIENT:PORT_CLIENT
      |                |  |  | Destination: ADDR_C:PORT_C
      |                |  |  | Header: GET (T=CON, Code=0.01, MID=0x7d46)
      |                |  |  | Token: 0xc6
      |                |  |  | Uri-Path: "gp"
      |                |  |  | Uri-Path: "gp1"
      |                |  |  | Uri-Path: "log"
      |                |  |  | Block2: 1/0/64
      |                |  |  |
      |<---------------------+ Source: ADDR_C:PORT_C
      |          2.05  |  |  | Destination: ADDR_CLIENT:PORT_CLIENT
      |                |  |  | Header: 2.05 (T=ACK, Code=2.05, MID=0x7d46)
      |                |  |  | Token: 0xc6
      |                |  |  | Block2: 1/1/64
      |                |  |  | Payload: 0x0c01 ...
      |                |  |  |
      |  GET           |  |  |
      +--------------------->| Source: ADDR_CLIENT:PORT_CLIENT
      |                |  |  | Destination: ADDR_C:PORT_C
      |                |  |  | Header: GET (T=CON, Code=0.01, MID=0x7d47)
      |                |  |  | Token: 0xc7
      |                |  |  | Uri-Path: "gp"
      |                |  |  | Uri-Path: "gp1"
      |                |  |  | Uri-Path: "log"
      |                |  |  | Block2: 2/0/64
      |                |  |  |
      |<---------------------+ Source: ADDR_C:PORT_C
      |          2.05  |  |  | Destination: ADDR_CLIENT:PORT_CLIENT
      |                |  |  | Header: 2.05 (T=ACK, Code=2.05, MID=0x7d47)
      |                |  |  | Token: 0xc7
      |                |  |  | Block2: 2/0/64
      |                |  |  | Payload: 0x0c02 ...
      |                |  |  |
        

Figure 25: Example of Unicast Exchanges with Server C to Retrieve the Following Blocks

図25: 後続のブロックを取得するための、サーバCとのユニキャスト交換の例

Appendix E. Issues and Limitations with Forward-Proxies

付録E. フォワードプロキシの問題と制限事項

Section 3.5.1 defines how a forward-proxy sends (e.g., multicasts) a CoAP group request to the group URI specified in the request from the client. After that, the proxy receives the responses and forwards all the individual (unicast) responses back to the client.

セクション3.5.1では、フォワードプロキシが、クライアントからのリクエストで指定されたグループURIに対してCoAPグループリクエストを送信(例:マルチキャスト)する方法を定義しています。その後、プロキシは応答を受信し、個々の(ユニキャスト)応答をすべてクライアントへ転送し返します。

However, there are certain issues and limitations with this approach:

しかし、この方式にはいくつかの問題と制限事項があります。

* The CoAP client component that has sent the unicast CoAP group request to the proxy may be expecting only one (unicast) response, as usual for a CoAP unicast request. Instead, it receives multiple (unicast) responses, potentially leading to fault conditions in the component or to discarding any received responses following the first one. This issue may occur even if the application calling the CoAP client component is aware that the forward-proxy is going to forward the CoAP group request to the group URI.

* プロキシへユニキャストのCoAPグループリクエストを送信したCoAPクライアントコンポーネントは、通常のCoAPユニキャストリクエストの場合と同様に、(ユニキャストの)応答が1つだけ返ってくると想定している可能性があります。ところが実際には複数の(ユニキャストの)応答を受信するため、そのコンポーネントで障害状態が発生したり、最初の応答以降に受信した応答が破棄されたりするおそれがあります。この問題は、CoAPクライアントコンポーネントを呼び出すアプリケーションが、フォワードプロキシがCoAPグループリクエストをグループURIへ転送することを認識している場合でも発生する可能性があります。

* Each individual CoAP response received by the client will appear to originate (based on its IP source address) from the CoAP proxy and not from the server that produced the response. This makes it impossible for the client to identify the server that produced each response, unless the server identity is contained as a part of the response payload or inside a CoAP option in the response.

* クライアントが受信する個々のCoAP応答は、(IP送信元アドレスに基づくと)その応答を生成したサーバではなく、CoAPプロキシから発信されたように見えます。このため、サーバのIDが応答ペイロードの一部、または応答内のCoAPオプションに含まれていない限り、クライアントは各応答を生成したサーバを識別できません。

* Unlike a CoAP client, the proxy is likely to lack "application context". In particular, the proxy is not expected to know how many members there are in the CoAP group (not even the order of magnitude), how many members of that group will actually respond, or the minimal amount/percentage of those that will respond.

* CoAPクライアントとは異なり、プロキシは「アプリケーションコンテキスト」を持たない可能性が高いです。特に、プロキシは、CoAPグループに何台のメンバーがいるか(桁数すら)、そのうち実際に何台が応答するか、あるいは応答するメンバーの最小数や最小割合を知っているとは想定されていません。

Therefore, while still capable of forwarding the group request to the CoAP group and the corresponding responses to the client, the proxy does not know and cannot reliably determine for how long to collect responses before it stops forwarding them to the client.

したがって、プロキシはグループリクエストをCoAPグループへ、またそれに対応する応答をクライアントへ転送することはできるものの、クライアントへの転送を打ち切るまでにどのくらいの時間応答を収集すべきかを知らず、確実に判断することもできません。

In principle, a CoAP client that is not using a proxy might face the same problems in collecting responses to a group request. However, unlike a CoAP proxy, the client itself would typically have application-specific rules or knowledge on how to handle this situation. For example, a CoAP client could monitor incoming responses and use this information to decide for how long to continue collecting responses

原理的には、プロキシを使用しないCoAPクライアントも、グループリクエストに対する応答の収集において同じ問題に直面する可能性があります。しかし、CoAPプロキシとは異なり、クライアント自身は通常、この状況を扱う方法についてアプリケーション固有のルールや知識を持っています。例えば、CoAPクライアントは受信する応答を監視し、その情報を使って応答の収集をどのくらいの時間続けるかを決定できます

An alternative solution is for the proxy to collect all the individual (unicast) responses to a CoAP group request and then send back only a single (aggregated) response to the client. However, this solution brings up new issues:

別の解決策として、プロキシがCoAPグループリクエストに対する個々の(ユニキャストの)応答をすべて収集し、その後、単一の(集約された)応答のみをクライアントへ返す方法があります。しかし、この解決策には新たな問題が生じます。

* Like for the approach discussed above, the proxy does not know for how long to collect responses before sending back the aggregated response to the client. Analogous considerations apply to this approach too, both on the client and proxy side.

* 上で述べた方式と同様に、プロキシは、集約した応答をクライアントへ返すまでにどのくらいの時間応答を収集すべきかを知りません。この方式にも、クライアント側とプロキシ側の双方で同様の考慮事項が当てはまります。

* There is no default format defined in CoAP for aggregation of multiple responses into a single response. Such a format could be standardized based on, for example, the multipart Content-Format [RFC8710].

* CoAPには、複数の応答を単一の応答に集約するためのデフォルトのフォーマットが定義されていません。そのようなフォーマットは、例えばマルチパートのContent-Format [RFC8710] に基づいて標準化できる可能性があります。

Finally, Section 3.5.1 refers to [RFC8075] for the operation of HTTP-to-CoAP proxies for multicast CoAP requests. This relies on the "application/http" media type to let the proxy return multiple CoAP responses -- each translated to an HTTP response -- back to the HTTP client. Of course, in this case, the HTTP client sending a group URI to the proxy needs to be aware that it is going to receive this format and needs to be able to decode it into the responses of multiple CoAP servers. Also, the IP source address of each CoAP response cannot be determined anymore from the "application/http" response. The HTTP client may still be able to identify the CoAP servers by other means, such as application-specific information in the response payload.

最後に、セクション3.5.1は、マルチキャストCoAPリクエストに対するHTTP-to-CoAPプロキシの動作について [RFC8075] を参照しています。これは、プロキシが複数のCoAP応答(それぞれがHTTP応答に変換されたもの)をHTTPクライアントへ返せるようにするため、"application/http" メディアタイプに依拠しています。もちろんこの場合、プロキシへグループURIを送信するHTTPクライアントは、このフォーマットを受信することを認識している必要があり、またそれを複数のCoAPサーバの応答へデコードできる必要があります。さらに、各CoAP応答のIP送信元アドレスは、"application/http" 応答からはもはや判別できません。HTTPクライアントは、応答ペイロード内のアプリケーション固有の情報など、他の手段によってCoAPサーバを識別できる場合もあります。

Appendix F. Issues and Limitations with Reverse-Proxies

付録F. リバースプロキシの問題と制限事項

Section 3.5.2 defines how a reverse-proxy sends a group request to servers in a CoAP group, over a one-to-many transport such as UDP/IP multicast. This results in certain issues and limitations:

セクション3.5.2では、リバースプロキシが、UDP/IPマルチキャストなどの1対多のトランスポートを介して、CoAPグループ内のサーバへグループリクエストを送信する方法を定義しています。これにより、いくつかの問題と制限事項が生じます。

* The three issues and limitations defined in Section 3.5.1 for a forward-proxy apply to a reverse-proxy as well.

* セクション3.5.1でフォワードプロキシについて定義した3つの問題と制限事項は、リバースプロキシにも当てはまります。

* A reverse-proxy may have a preconfigured time duration(s) that is used for collecting server responses and forwarding them back to the client. The duration(s) may be set as a global configuration or as a resource-specific configuration. If there is such preconfiguration, then it is not necessarily needed that the client's request explicitly indicates the time duration that the reverse-proxy has to use (e.g., like it is indicated when using the realization of proxy specified in [CoAP-GROUP-PROXY]). Note that a reverse-proxy is in an explicit relationship with the origin servers it stands in for. Thus, compared to a forward-proxy, it has a much better basis for determining and configuring such time durations.

* リバースプロキシは、サーバの応答を収集してクライアントへ転送し返すための時間を、事前に構成している場合があります。この時間は、グローバルな設定として、またはリソース固有の設定として指定できます。このような事前構成がある場合、リバースプロキシが使用すべき時間をクライアントのリクエストが明示的に示す必要は必ずしもありません(例:[CoAP-GROUP-PROXY] で規定されたプロキシの実現方式を使用する場合に示されるようなもの)。なお、リバースプロキシは、自身が代理を務めるオリジンサーバと明示的な関係にあります。したがって、フォワードプロキシと比べて、そのような時間を決定し構成するためのはるかに良い根拠を持っています。

* A client that is configured to access a reverse-proxy resource (i.e., one that triggers a CoAP group communication request) should be configured to also handle potentially multiple responses with the same Token value caused by a single request.

* リバースプロキシのリソース(すなわち、CoAPグループ通信リクエストを引き起こすもの)へアクセスするよう構成されたクライアントは、1つのリクエストによって生じる同一のトークン(Token)値を持つ複数の応答を処理できるようにも構成しておくべきです。

That is, the client needs to preserve the Token value used for the request also after the reception of the first response forwarded back by the proxy (see Section 3.1.6) and keep the request open to potential further responses with this Token. This requirement can be met by a combination of client implementation and proper proxied group communication configuration on the client.

つまり、クライアントは、プロキシが転送し返した最初の応答を受信した後も、そのリクエストに使用したトークン(Token)値を保持し(セクション3.1.6を参照)、このトークン(Token) を持つ後続の応答の可能性に備えてリクエストを開いたままにしておく必要があります。この要件は、クライアントの実装と、クライアント上での適切なプロキシ経由グループ通信の構成との組み合わせによって満たすことができます。

Acknowledgements

謝辞

The authors sincerely thank Claudio Allocchio, Christian Amsüss, Mike Bishop, Carsten Bormann, Mohamed Boucadair, Roman Danyliw, Roni Even, Gorry Fairhurst, Thomas Fossati, Brian Haberman, Rikard Höglund, Jaime Jiménez, Erik Kline, John Preuß Mattsson, Jim Schaad, Jon Shallow, Petr Špaček, Ketan Talaulikar, Sean Turner, Gunter Van de Velde, Éric Vyncke, and Magnus Westerlund for their comments and feedback.

著者らは、Claudio Allocchio、Christian Amsüss、Mike Bishop、Carsten Bormann、Mohamed Boucadair、Roman Danyliw、Roni Even、Gorry Fairhurst、Thomas Fossati、Brian Haberman、Rikard Höglund、Jaime Jiménez、Erik Kline、John Preuß Mattsson、Jim Schaad、Jon Shallow、Petr Špaček、Ketan Talaulikar、Sean Turner、Gunter Van de Velde、Éric Vyncke、Magnus Westerlundの各氏に、コメントとフィードバックを寄せていただいたことを心から感謝します。

The work on this document has been partly supported by the Sweden's Innovation Agency VINNOVA and the Celtic-Next projects CRITISEC and CYPRESS as well as by the H2020 projects SIFIS-Home (Grant agreement 952652) and ARCADIAN-IoT (Grant agreement 101020259).

本文書の作業は、スウェーデンのイノベーション庁VINNOVAとCeltic-NextプロジェクトCRITISECおよびCYPRESS、ならびにH2020プロジェクトSIFIS-Home (Grant agreement 952652) およびARCADIAN-IoT (Grant agreement 101020259) によって一部支援されました。

Authors' Addresses

著者の連絡先

   Esko Dijk
   IoTconsultancy.nl
   Utrecht
   Netherlands
   Email: esko.dijk@iotconsultancy.nl
        
   Marco Tiloca
   RISE AB
   Isafjordsgatan 22
   SE-164 40 Kista
   Sweden
   Email: marco.tiloca@ri.se