原文

[要約] RFC 5547は、SIPセッションの枠組みの中で、特定のファイルを安全かつ確実に転送するための「SDPオファー/アンサー」を用いた交渉メカニズムを定義しています。ファイル名、サイズ、MIMEタイプ、およびハッシュ値を事前にやり取りし、受信側がダウンロードの可否を判断したり、データの整合性を検証したりするための標準的なシグナリング手法を提供します。

Network Working Group                                   M. Garcia-Martin
Request for Comments: 5547                                      Ericsson
Category: Standards Track                                     M. Isomaki
                                                                   Nokia
                                                            G. Camarillo
                                                               S. Loreto
                                                                Ericsson
                                                              P. Kyzivat
                                                           Cisco Systems
                                                                May 2009
        

A Session Description Protocol (SDP) Offer/Answer Mechanism to Enable File Transfer

ファイル転送を実現するセッション記述プロトコル(SDP)のオファー/アンサーメカニズム

Status of This Memo

本文書の状態

This document specifies an Internet standards track protocol for the Internet community, and requests discussion and suggestions for improvements. Please refer to the current edition of the "Internet Official Protocol Standards" (STD 1) for the standardization state and status of this protocol. Distribution of this memo is unlimited.

本書は、インターネットコミュニティ向けのインターネット標準化過程プロトコルを規定し、改善に向けた議論と提案を求めるものです。本プロトコルの標準化段階と状態については、「Internet Official Protocol Standards」(STD 1)の最新版を参照してください。本メモは無制限に配布できます。

Copyright Notice

著作権表示

Copyright (c) 2009 IETF Trust and the persons identified as the document authors. All rights reserved.

Copyright (c) 2009 IETF Trust and the persons identified as the document authors. All rights reserved.

This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents in effect on the date of publication of this document (http://trustee.ietf.org/license-info). Please review these documents carefully, as they describe your rights and restrictions with respect to this document.

本書にはBCP 78および、本書の公開日に有効なIETF文書に関するIETF Trustの法的規定(http://trustee.ietf.org/license-info)が適用されます。これらの文書には、本書に関する権利と制約が記載されていますので、よく確認してください。

Abstract

概要

This document provides a mechanism to negotiate the transfer of one or more files between two endpoints by using the Session Description Protocol (SDP) offer/answer model specified in RFC 3264. SDP is extended to describe the attributes of the files to be transferred. The offerer can describe either the files it wants to send or the files it would like to receive. The answerer can either accept or reject the offer separately for each individual file. The transfer of one or more files is initiated after a successful negotiation. The Message Session Relay Protocol (MSRP) is defined as the default mechanism to actually carry the files between the endpoints. The conventions on how to use MSRP for file transfer are also provided in this document.

本書は、RFC 3264で規定されたセッション記述プロトコル(SDP)のオファー/アンサーモデルを使い、2つのエンドポイント間で1つ以上のファイル転送をネゴシエーションする仕組みを定めます。転送するファイルの属性を記述できるようSDPを拡張します。オファー側は、送信したいファイルまたは受信したいファイルを記述できます。アンサー側は、各ファイルのオファーを個別に受け入れるか拒否できます。ネゴシエーションが成功すると、1つ以上のファイルの転送が始まります。エンドポイント間でファイルを実際に転送する既定の方式として、Message Session Relay Protocol(MSRP)を定めます。本書では、ファイル転送でMSRPを使うための規則も示します。

Table of Contents

目次

   1. Introduction ....................................................3
   1. はじめに ........................................................3
   2. Terminology .....................................................4
   2. 用語 ............................................................4
   3. Definitions .....................................................4
   3. 定義 ............................................................4
   4. Overview of Operation ...........................................5
   4. 操作の概要 ......................................................5
   5. File Selector ...................................................6
   5. ファイルセレクター ..............................................6
   6. Extensions to SDP ...............................................7
   6. SDPへの拡張 .....................................................7
   7. File Disposition Types .........................................13
   7. ファイル処分タイプ .............................................13
   8. Protocol Operation .............................................13
   8. プロトコル操作 .................................................13
      8.1. The 'file-transfer-id' Attribute ..........................14
      8.1. `file-transfer-id`属性 ....................................14
      8.2. Offerer's Behavior ........................................17
      8.2. オファーの行動 ............................................17
           8.2.1. The Offerer Is a File Sender .......................17
           8.2.1. Offererがファイル送信者である場合 ..................17
           8.2.2. The Offerer Is a File Receiver .....................18
           8.2.2. Offererがファイル受信者である場合 ..................18
           8.2.3. SDP Offer for Several Files ........................18
           8.2.3. いくつかのファイルのSDPオファー ....................18
      8.3. Answerer's Behavior .......................................19
      8.3. 応答者の行動 ..............................................19
           8.3.1. The Answerer Is a File Receiver ....................19
           8.3.1. Answererがファイル受信者である場合 .................19
           8.3.2. The Answerer Is a File Sender ......................20
           8.3.2. Answererがファイル送信者である場合 .................20
      8.4. Aborting an Ongoing File Transfer Operation ...............22
      8.4. 進行中のファイル転送操作の中止 ............................22
      8.5. Indicating File Transfer Offer/Answer Capability ..........25
      8.5. ファイル転送オファー/回答機能を示す .......................25
      8.6. Reusage of Existing "m=" Lines in SDP .....................26
      8.6. sdpの既存の「m =」行の再利用 ..............................26
      8.7. MSRP Usage ................................................26
      8.7. MSRP使用法 ................................................26
      8.8. Considerations about the 'file-icon' Attribute ............28
      8.8. `file-icon`属性に関する考慮事項 ...........................28
   9. Examples .......................................................28
   9. 例 .............................................................28
      9.1. Offerer Sends a File to the Answerer ......................28
      9.1. OffererによるAnswererへのファイル送信 .....................28
      9.2. Offerer Requests a File from the Answerer and
           Second File Transfer ......................................33
      9.2. offererは、nessererからファイルを要求し、2番目のファイル転送 ..33
      9.3. Example of a Capability Indication ........................40
      9.3. 機能表示の例 ..............................................40
   10. Security Considerations .......................................41
   10. セキュリティに関する考慮事項 ..................................41
   11. IANA Considerations ...........................................42
   11. IANAの考慮事項 ................................................42
      11.1. Registration of New SDP Attributes .......................42
      11.1. 新しいSDP属性の登録 ......................................42
           11.1.1. Registration of the file-selector Attribute .......43
           11.1.1. ファイルセレクター属性の登録 ......................43
           11.1.2. Registration of the file-transfer-id Attribute ....43
           11.1.2. `file-transfer-id`属性の登録 ......................43
           11.1.3. Registration of the file-disposition Attribute ....43
           11.1.3. `file-disposition`属性の登録 ......................43
           11.1.4. Registration of the file-date Attribute ...........44
           11.1.4. `file-date`属性の登録 .............................44
           11.1.5. Registration of the file-icon Attribute ...........44
           11.1.5. `file-icon`属性の登録 .............................44
           11.1.6. Registration of the file-range Attribute ..........45
           11.1.6. `file-range`属性の登録 ............................45
   12. Acknowledgments ...............................................45
   12. 謝辞 ..........................................................45
   13. References ....................................................45
   13. 参考文献 ......................................................45
      13.1. Normative References .....................................45
      13.1. 引用文献 .................................................45
      13.2. Informative References ...................................46
      13.2. 参考引用 .................................................46
   Appendix A.  Alternatives Considered ..............................48
   Appendix A.  考慮される代替案 .....................................48
1. Introduction
1. はじめに

The Session Description Protocol (SDP) offer/answer [RFC3264] provides a mechanism for two endpoints to arrive at a common view of a multimedia session between them. These sessions often contain real-time media streams such as voice and video, but are not limited to that. Basically, any media component type can be supported, as long as there is a specification how to negotiate it within the SDP offer/answer exchange.

セッション記述プロトコル(SDP)のオファー/アンサー [RFC3264] は、2つのエンドポイントがマルチメディアセッションについて共通の合意に至る仕組みを提供します。こうしたセッションには音声や映像などのリアルタイムメディアストリームが含まれることが多いものの、それらに限定されません。SDPのオファー/アンサー交換でネゴシエーションする方法が仕様化されていれば、基本的にどのようなメディアコンポーネント種別もサポートできます。

The Message Session Relay Protocol (MSRP) [RFC4975] is a protocol for transmitting instant messages (IMs) in the context of a session. The protocol specification describes the usage of SDP for establishing an MSRP session. In addition to plain text messages, MSRP is able to carry arbitrary (binary) Multipurpose Internet Mail Extensions (MIME) [RFC2045] compliant content, such as images or video clips.

Message Session Relay Protocol(MSRP)[RFC4975] は、セッション内でインスタントメッセージ(IM)を送信するプロトコルです。同仕様では、MSRPセッションの確立にSDPを使う方法を説明しています。プレーンテキストのメッセージに加えて、MSRPは画像や動画など、任意のバイナリ形式のMultipurpose Internet Mail Extensions(MIME)[RFC2045]準拠コンテンツを運べます。

There are many cases where the endpoints involved in a multimedia session would like to exchange files within the context of that session. With MSRP, it is possible to embed files as MIME objects inside the stream of instant messages. MSRP also has other features that are useful for file transfer. Message chunking enables the sharing of the same transport connection between the transfer of a large file and interactive IM exchange without blocking the IM. MSRP relays [RFC4976] provide a mechanism for Network Address Translator (NAT) traversal. Finally, Secure MIME (S/MIME) [RFC3851] can be used for ensuring the integrity and confidentiality of the transferred content.

マルチメディアセッションのエンドポイント同士が、セッション内でファイルを交換したい状況は数多くあります。MSRPでは、インスタントメッセージのストリームにファイルをMIMEオブジェクトとして埋め込めます。また、ファイル転送に役立つ機能もあります。メッセージのチャンク化により、大きなファイルを転送しながら同じトランスポート接続でIMをやり取りしても、IMがブロックされません。MSRPリレー [RFC4976] は、ネットワークアドレス変換(NAT)越えの仕組みを提供します。さらに、Secure MIME(S/MIME)[RFC3851]を使って、転送内容の完全性と機密性を確保できます。

However, the baseline MSRP does not readily meet all the requirements for file transfer services within multimedia sessions. There are four main missing features:

ただし、MSRPの基本仕様だけでは、マルチメディアセッション内のファイル転送サービスに必要な要件を容易には満たせません。主に次の4つの機能が不足しています。

o The recipient must be able to distinguish "file transfer" from "file attached to IM", allowing the recipient to treat the cases differently.

o 受信者が「ファイル転送」と「IMに添付されたファイル」を区別し、それぞれを異なる方法で扱える必要があります。

o It must be possible for the sender to send the request for a file transfer. It must be possible for the recipient to accept or decline it, using the meta information in the request. The actual transfer must take place only after acceptance by the recipient.

o 送信者がファイル転送要求を送れる必要があります。受信者は要求内のメタ情報を使って、要求を承諾または拒否できる必要があります。実際の転送は、受信者が承諾した後に限って行う必要があります。

o It must be possible for the sender to pass some meta information on the file before the actual transfer. This must be able to include at least content type, size, hash, and name of the file, as well as a short (human readable) description.

o 送信者は実際の転送前に、ファイルに関するメタ情報を渡せる必要があります。メタ情報には、少なくともコンテンツタイプ、サイズ、ハッシュ、ファイル名、および短い(人が読める)説明を含められる必要があります。

o It must be possible for the recipient to request a file from the sender, providing meta information about the file. The sender must be able to decide whether to send a file matching the request.

o 受信者はファイルに関するメタ情報を提示して、送信者にファイルを要求できる必要があります。送信者は、要求に一致するファイルを送るかどうかを判断できる必要があります。

The rest of this document is organized as follows. Section 3 defines a few terms used in this document. Section 4 provides the overview of operation. Section 5 introduces the concept of the file selector. The detailed syntax and semantics of the new SDP attributes and conventions on how the existing ones are used are defined in Section 6. Section 7 discusses the file disposition types. Section 8 describes the protocol operation involving SDP and MSRP. Finally, some examples are given in Section 9.

本書の構成は次のとおりです。3節では本書で使う用語を定義します。4節では動作の概要を示し、5節ではファイルセレクターの概念を説明します。6節では新しいSDP属性の詳細な構文と意味、および既存の属性の使用規則を定めます。7節ではファイル処理種別を、8節ではSDPとMSRPを使うプロトコル動作を説明します。最後に9節で例を示します。

2. Terminology
2. 用語

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14, RFC 2119 [RFC2119].

本書におけるキーワード「MUST」、「MUST NOT」、「REQUIRED」、「SHALL」、「SHALL NOT」、「SHOULD」、「SHOULD NOT」、「RECOMMENDED」、「MAY」、「OPTIONAL」は、BCP 14およびRFC 2119 [RFC2119] に記載された意味で解釈してください。

3. Definitions
3. 定義

For the purpose of this document, the following definitions specified in RFC 3264 [RFC3264] apply:

本書では、RFC 3264 [RFC3264] で定義されている次の用語を使います。

o Answer

o Answer(アンサー)

o Answerer

o Answerer(アンサー側)

o Offer

o Offer(オファー)

o Offerer

o Offerer(オファー側)

Additionally, we define the following terms:

さらに、次の用語を定義します。

File sender: The endpoint that is willing to send a file to the file receiver.

ファイル送信側: ファイル受信側へファイルを送る意思のあるエンドポイントです。

File receiver: The endpoint that is willing to receive a file from the file sender.

ファイル受信側: ファイル送信側からファイルを受け取る意思のあるエンドポイントです。

File selector: A tuple of file attributes that the SDP offerer includes in the SDP in order to select a file at the SDP answerer. This is described in more detail in Section 5.

ファイルセレクター: SDPオファー側がSDPに含め、SDPアンサー側でファイルを選択するためのファイル属性の組です。詳細は5節で説明します。

Push operation: A file transfer operation where the SDP offerer takes the role of the file sender and the SDP answerer takes the role of the file receiver.

プッシュ操作: SDPオファー側がファイル送信側、SDPアンサー側がファイル受信側となるファイル転送操作です。

Pull operation: A file transfer operation where the SDP offerer takes the role of the file receiver and the SDP answerer takes the role of the file sender.

プル操作: SDPオファー側がファイル受信側、SDPアンサー側がファイル送信側となるファイル転送操作です。

4. Overview of Operation
4. 操作の概要

An SDP offerer creates an SDP body that contains the description of one or more files that the offerer wants to send or receive. The offerer sends the SDP offer to the remote endpoint. The SDP answerer can accept or reject the transfer of each of those files separately.

SDPオファー側は、自分が送信または受信したい1つ以上のファイルの記述を含むSDP本文を作成し、リモートエンドポイントへオファーを送ります。SDPアンサー側は、各ファイルの転送を個別に受け入れるか拒否できます。

The actual file transfer is carried out using the Message Session Relay Protocol (MSRP) [RFC4975]. Each SDP "m=" line describes an MSRP media stream used to transfer a single file at a time. That is, the transfer of multiple simultaneous files requires multiple "m=" lines and corresponding MSRP media streams. It should be noted that multiple MSRP media streams can share a single transport layer connection, so this mechanism will not lead to excessive use of transport resources.

実際のファイル転送にはMessage Session Relay Protocol(MSRP)[RFC4975]を使います。SDPの各「m=」行は、1回に1つのファイルを転送するMSRPメディアストリームを記述します。そのため複数ファイルを同時に転送するには、複数の「m=」行と対応するMSRPメディアストリームが必要です。複数のMSRPメディアストリームで1つのトランスポート層接続を共有できるため、この方式がトランスポート資源を過剰に消費することはありません。

Each "m=" line for an MSRP media stream is accompanied with a few attributes describing the file to be transferred. If the file sender generates the SDP offer, the attributes describe a local file to be sent (push), and the file receiver can use this information to either accept or reject the transfer. However, if the SDP offer is generated by the file receiver, the attributes are intended to characterize a particular file that the file receiver is willing to get (pull) from the file sender. It is possible that the file sender does not have a matching file or does not want to send the file, in which case the offer is rejected.

MSRPメディアストリームの各「m=」行には、転送対象ファイルを記述する属性が付随します。ファイル送信側がSDPオファーを作る場合、属性は送信するローカルファイルを記述し(プッシュ)、ファイル受信側はその情報を使って転送を受け入れるか拒否できます。一方、ファイル受信側がSDPオファーを作る場合、属性は送信側から取得したい特定のファイルを記述します(プル)。送信側に該当するファイルがない場合や、送信する意思がない場合は、オファーが拒否されます。

The attributes describing each file are provided in SDP by a set of new SDP attributes, most of which have been directly borrowed from MIME. This way, user agents can decide whether or not to accept a given file transfer based on the file's name, size, description, hash, icon (e.g., if the file is a picture), etc.

各ファイルの属性は、新しいSDP属性群としてSDPに記述します。その多くはMIMEから直接取り入れています。これにより、ユーザーエージェントはファイル名、サイズ、説明、ハッシュ、アイコン(画像ファイルの場合など)に基づいて、ファイル転送を受け入れるかどうかを判断できます。

SDP direction attributes (e.g., 'sendonly', 'recvonly') are used to indicate the direction of the transfer, i.e., whether the SDP offerer is willing to send or receive the file. Assuming that the answerer accepts the file transfer, the actual transfer of the files takes place with ordinary MSRP. Note that the 'sendonly' and 'recvonly' attributes refer to the direction of MSRP SEND requests and do not preclude other protocol elements (such as 200 responses, REPORT requests, etc.).

転送方向、つまりSDPオファー側がファイルを送信するのか受信するのかを示すため、SDPの方向属性(例: `sendonly`、`recvonly`)を使います。アンサー側が転送を受け入れた場合、実際のファイル転送は通常のMSRPによって行います。`sendonly`と`recvonly`はMSRP SEND要求の方向を示す属性であり、200応答やREPORT要求など、他のプロトコル要素を禁止するものではありません。

In principle the file transfer can work even with an endpoint supporting only regular MSRP without understanding the extensions defined herein, in a particular case where that endpoint is both the SDP answerer and the file receiver. The regular MSRP endpoint answers the offer as it would answer any ordinary MSRP offer without paying attention to the extension attributes. In such a scenario, the user experience would, however, be reduced, since the recipient would not know (by any protocol means) the reason for the session and would not be able to accept/reject it based on the file attributes.

原則として、相手のエンドポイントが本書の拡張を理解せず通常のMSRPだけをサポートしていても、SDPアンサー側とファイル受信側の両方を担う場合には、ファイル転送が機能することがあります。通常のMSRPエンドポイントは拡張属性を無視し、通常のMSRPオファーと同じように応答します。ただし、受信者はプロトコル上の情報からセッションの目的を知ることができず、ファイル属性に基づいて受諾・拒否することもできないため、使い勝手は低下します。

5. File Selector
5. ファイルセレクター

When the file receiver generates the SDP offer, this SDP offer needs to unambiguously identify the requested file at the file sender. For this purpose, we introduce the notion of a file selector, which is a tuple composed of one or more of the following individual selectors: the name, size, type, and hash of the file. The file selector can include any number of selectors, so all four of them do not always need to be present.

ファイル受信側がSDPオファーを作成する場合、そのオファーは送信側で要求対象のファイルを曖昧さなく特定できる必要があります。このため、ファイル名、サイズ、種類、ハッシュの各セレクターを1つ以上組み合わせる「ファイルセレクター」を導入します。4種類すべてを含める必要はなく、必要な数のセレクターを指定できます。

The purpose of the file selector is to provide enough information about the file to the remote entity, so that both the local and the remote entity can refer to the same file. The file selector is encoded in a 'file-selector' media attribute in SDP. The formal syntax of the 'file-selector' media attribute is described in Figure 1.

ファイルセレクターは、ローカル側とリモート側の双方が同じファイルを特定できるだけの情報をリモート側に伝えます。SDPでは`file-selector`メディア属性として記述します。この属性の正式な構文を図1に示します。

The file selection process is applied to all the available files at the host. The process selects those files that match each of the selectors present in the 'file-selector' attribute. The result can be zero, one, or more files, depending on the presence of the mentioned selectors in the SDP and depending on the available files in a host. The file transfer mechanism specified in this document requires that a file selector eventually results at most in a single file to be chosen. Typically, if the hash selector is known, it is enough to produce a file selector that points to exactly zero or one file. However, a file selector that selects a unique file is not always known by the offerer. Sometimes only the name, size, or type of file is known, so the file selector may result in selecting more than one file, which is an undesired case. The opposite is also true: if the file selector contains a hash selector and a name selector, there is a risk that the remote host has renamed the file, in which case, although a file whose computed hash equals the hash selector exists, the file name does not match that of the name selector. Thus, in this case, the file selection process will result in the selection of zero files.

ファイル選択処理では、ホスト上で利用可能な全ファイルを調べ、`file-selector`属性に含まれるすべてのセレクターに一致するファイルを選びます。結果は、SDPに指定されたセレクターとホスト上のファイルに応じて、0個、1個、または複数個になります。本書のファイル転送方式では、最終的に選択されるファイルが最大1個である必要があります。通常、ハッシュが分かっていれば、0個または1個だけを特定するセレクターを作れます。しかし、オファー側が一意に特定する情報を常に把握しているとは限りません。名前、サイズ、種類のいずれかしか分からず、複数のファイルが選ばれることもありますが、これは望ましくありません。逆に、ハッシュと名前の両方を指定しても、リモートホストでファイル名が変更されている可能性があります。その場合、ハッシュが一致するファイルが存在しても名前が一致せず、選択結果は0個になります。

This specification uses the Secure Hash Algorithm 1, SHA-1 [RFC3174]. If future needs require adding support for different hashing algorithms, they will be specified as extensions to this document.

本仕様ではSecure Hash Algorithm 1(SHA-1)[RFC3174]を使います。今後、別のハッシュアルゴリズムが必要になった場合は、本書の拡張としてサポートを規定します。

Implementations according to this specification MUST implement the 'file-selector' attribute and MAY implement any of the other attributes specified in this specification. SDP offers and answers for file transfer MUST contain a 'file-selector' media attribute that selects the file to be transferred and MAY contain any of the other attributes specified in this specification.

この仕様に準拠する実装は、`file-selector`属性を実装しなければなりません (MUST)。本仕様で定める他の属性は実装してもかまいません (MAY)。ファイル転送のSDPオファーとアンサーには、転送対象のファイルを選択する`file-selector`メディア属性を含めなければなりません (MUST)。本仕様で定める他の属性も含めてかまいません (MAY)。

The 'file-selector' media attribute is also useful when learning the support of the file transfer offer/answer capability that this document specifies. This is further explained in Section 8.5.

`file-selector`メディア属性は、本書が規定するファイル転送オファー/アンサー機能への対応状況を確認する際にも役立ちます。詳細は8.5節で説明します。

6. Extensions to SDP
6. SDPへの拡張

We define a number of new SDP [RFC4566] attributes that provide the required information to describe the transfer of a file with MSRP. These are all media-level-only attributes in SDP. The following is the formal ABNF syntax [RFC5234] of these new attributes. It is built above the SDP [RFC4566] grammar, RFC 2045 [RFC2045], RFC 2183 [RFC2183], RFC 2392 [RFC2392], and RFC 5322 [RFC5322].

MSRPによるファイルの転送を記述するために必要な情報を提供する多くの新しいSDP [RFC4566]属性を定義します。これらはすべて、SDPのメディアレベルのみの属性です。以下は、これらの新しい属性の正式なABNF構文[RFC5234]です。SDP [RFC4566]文法、RFC 2045 [RFC2045]、RFC 2183 [RFC2183]、RFC 2392 [RFC2392]、およびRFC 5322 [RFC5322]の上に構築されています。

   attribute           =/ file-selector-attr / file-disp-attr /
                          file-tr-id-attr / file-date-attr /
                          file-icon-attr / file-range-attr
                          ; attribute is defined in RFC 4566
        
   file-selector-attr   = "file-selector" [":" selector *(SP selector)]
   selector             = filename-selector / filesize-selector /
                          filetype-selector / hash-selector
        
   filename-selector    = "name:"  DQUOTE filename-string DQUOTE
                                       ; DQUOTE defined in RFC 5234
   filename-string      = 1*(filename-char/percent-encoded)
   filename-char        = %x01-09/%x0B-0C/%x0E-21/%x23-24/%x26-FF
                                 ; any byte except NUL, CR, LF,
                                 ; double quotes, or percent
   percent-encoded      = "%" HEXDIG HEXDIG
                                 ; HEXDIG defined in RFC 5234
        
   filesize-selector    = "size:" filesize-value
      filesize-value       = integer        ;integer defined in RFC 4566
        
   filetype-selector    = "type:" type "/" subtype *(";" ft-parameter)
   ft-parameter         = attribute "=" DQUOTE value-string DQUOTE
                                      ; attribute is defined in RFC 2045
                        ; free insertion of linear-white-space is not
                        ; permitted in this context.
                        ; note: value-string has to be re-encoded
                        ; when translating between this and a
                        ; Content-Type header.
   value-string         = filename-string
        
   hash-selector        = "hash:" hash-algorithm ":" hash-value
   hash-algorithm       = token     ; see IANA Hash Function
                                    ; Textual Names registry
                                    ; only "sha-1" currently supported
   hash-value           = 2HEXDIG *(":" 2HEXDIG)
                                ; Each byte in upper-case hex, separated
                                ; by colons.
                                ; HEXDIG defined in RFC 5234
        
   file-tr-id-attr      = "file-transfer-id:" file-tr-id-value
   file-tr-id-value     = token
        
   file-disp-attr       = "file-disposition:" file-disp-value
   file-disp-value      = token
        
   file-date-attr       = "file-date:"  date-param *(SP date-param)
        
   date-param           = c-date-param / m-date-param / r-date-param
   c-date-param         = "creation:" DQUOTE date-time DQUOTE
   m-date-param         = "modification:" DQUOTE date-time DQUOTE
   r-date-param         = "read:" DQUOTE date-time DQUOTE
                             ; date-time is defined in RFC 5322
                             ; numeric timezones (+HHMM or -HHMM)
                             ; must be used
                             ; DQUOTE defined in RFC 5234 files.
        
   file-icon-attr       = "file-icon:" file-icon-value
   file-icon-value      = cid-url        ; cid-url defined in RFC 2392
        
   file-range-attr      = "file-range:" start-offset "-" stop-offset
   start-offset         = integer        ; integer defined in RFC 4566
   stop-offset          = integer / "*"
        

Figure 1: Syntax of the SDP extension

図1:SDP拡張の構文

When used for capability query (see Section 8.5), the 'file-selector' attribute MUST NOT contain any selector, because its presence merely indicates compliance to this specification.

機能クエリ(8.5節を参照)で使う場合、`file-selector`属性にはセレクターを含めてはなりません (MUST NOT)。この属性の存在は、本仕様への準拠を示すだけです。

When used in an SDP offer or answer, the 'file-selector' attribute MUST contain at least one selector. Selectors characterize the file to be transferred. There are four selectors in this attribute: 'name', 'size', 'type', and 'hash'.

SDPオファーまたはアンサーで使う場合、`file-selector`属性には少なくとも1つのセレクターを含めなければなりません (MUST)。セレクターは転送するファイルを特徴付けます。この属性には`name`、`size`、`type`、`hash`の4つのセレクターがあります。

The 'name' selector in the 'file-selector' attribute contains the filename of the content enclosed in double quotes. The filename is encoded in UTF-8 [RFC3629]. Its value SHOULD be the same as the 'filename' parameter of the Content-Disposition header field [RFC2183] that would be signaled by the actual file transfer. If a file name contains double quotes or any other character that the syntax does not allow in the 'name' selector, they MUST be percent-encoded. The 'name' selector MUST NOT contain characters that can be interpreted as directory structure by the local operating system. If such characters are present in the file name, they MUST be percent-encoded.

`file-selector`属性の`name`セレクターには、二重引用符で囲んだコンテンツのファイル名を指定します。ファイル名はUTF-8 [RFC3629]でエンコードします。その値は、実際のファイル転送で通知されるContent-Dispositionヘッダーフィールド [RFC2183] の`filename`パラメーターと一致させるべきです (SHOULD)。ファイル名に二重引用符など、`name`セレクターの構文で許可されない文字がある場合は、パーセントエンコードしなければなりません (MUST)。`name`セレクターには、ローカルOSがディレクトリ構造として解釈できる文字を含めてはなりません (MUST NOT)。そのような文字がファイル名に含まれる場合は、パーセントエンコードしなければなりません (MUST)。

Note that the 'name' selector might still contain characters that, although not meaningful for the local operating system, might still be meaningful to the remote operating system (e.g., '\', '/', ':'). Therefore, implementations are responsible for sanitizing the input received from the remote endpoint before doing a local operation in the local file system, such as the creation of a local file. Among other things, implementations can percent-encode characters that are meaningful to the local operating system before doing file system local calls.

「名前」セレクターには、ローカルオペレーティングシステムにとって意味がないものの、リモートオペレーティングシステム(「\ '、'/'、': 'など)にとって意味のある文字がまだ含まれている可能性があることに注意してください。したがって、実装は、ローカルファイルの作成など、ローカルファイルシステムでローカル操作を行う前に、リモートエンドポイントから受信した入力を消毒する責任があります。とりわけ、実装は、ファイルシステムのローカルコールを実行する前に、ローカルオペレーティングシステムにとって意味のあるエンコード文字をパーセントすることができます。

The 'size' selector in the 'file-selector' attribute indicates the size of the file in octets. The value of this attribute SHOULD be the same as the 'size' parameter of the Content-Disposition header field [RFC2183] that would be signaled by the actual file transfer. Note that the 'size' selector merely includes the file size, and does not include any potential overhead added by a wrapper, such as message/cpim [RFC3862].

`file-selector`属性の`size`セレクターは、ファイルサイズをオクテット単位で示します。この値は、実際のファイル転送で通知されるContent-Dispositionヘッダーフィールド [RFC2183] の`size`パラメーターと一致させるべきです (SHOULD)。`size`セレクターに含めるのはファイルサイズだけです。message/cpim [RFC3862]などのラッパーによる付加的なオーバーヘッドは含めません。

The 'type' selector in the 'file-selector' attribute contains the MIME media and submedia types of the content. In general, anything that can be expressed in a Content-Type header field (see RFC 2045 [RFC2045]) can also be expressed with the 'type' selectors. Possible MIME Media Type values are the ones listed in the IANA registry for MIME Media Types [IANA]. Zero or more parameters can follow. When translating parameters from a Content-Type header and a 'type' selector, the parameter has to be re-encoded prior to its accommodation as a parameter of the 'type' selector (see the ABNF syntax of 'ft-parameter').

`file-selector`属性の`type`セレクターには、コンテンツのMIMEメディアタイプとサブタイプを指定します。一般に、Content-Typeヘッダーフィールド(RFC 2045 [RFC2045]を参照)で表現できる情報は、`type`セレクターでも表現できます。指定可能なMIMEメディアタイプは、MIME Media TypesのIANAレジストリ [IANA] に列挙されています。これに0個以上のパラメーターを続けられます。Content-Typeヘッダーと`type`セレクターの間でパラメーターを変換する場合は、`type`セレクターのパラメーターとして格納する前に再エンコードしてください(`ft-parameter`のABNF構文を参照)。

The 'hash' selector in the 'file-selector' attribute provides a hash computation of the file to be transferred. This is commonly used by file transfer protocols. For example, FLUTE [FLUTE-REV] uses hashes (called message digests) to verify the contents of the transfer. The purpose of the 'hash' selector is two-fold: On one side, in pull operations, it allows the file receiver to identify a remote file by its hash rather than by its file name, providing that the file receiver has learned the hash of the remote file by some out-of-band mechanism. On the other side, in either push or pull operations, it allows the file receiver to verify the contents of the received file, or even avoid unnecessary transmission of an existing file.

`file-selector`属性の`hash`セレクターは、転送対象ファイルのハッシュ値を指定します。ハッシュ値はファイル転送プロトコルで一般的に使われます。たとえばFLUTE [FLUTE-REV]は、転送内容の検証にハッシュ(メッセージダイジェスト)を使います。`hash`セレクターには2つの目的があります。プル操作では、ファイル受信側が別経路でリモートファイルのハッシュを知っていれば、名前ではなくハッシュでファイルを特定できます。プッシュ操作とプル操作のどちらでも、受信したファイルの内容を検証したり、すでにあるファイルの不要な再転送を避けたりできます。

The address space of the SHA-1 algorithm is big enough to avoid any collision in hash computations in between two endpoints. When transferring files, the actual file transfer protocol should provide reliable transmission of data, so verifications of received files should always succeed. However, if endpoints need to protect the integrity of a file, they should use some other mechanism than the 'hash' selector specified in this memo.

SHA-1アルゴリズムのアドレス空間は、2つのエンドポイントの間のハッシュ計算の衝突を回避するのに十分な大きさです。ファイルを転送する場合、実際のファイル転送プロトコルはデータの信頼できる送信を提供する必要があるため、受信ファイルの検証は常に成功する必要があります。ただし、エンドポイントがファイルの整合性を保護する必要がある場合、このメモで指定された「ハッシュ」セレクター以外のメカニズムを使用する必要があります。

The 'hash' selector includes the hash algorithm and its value. Possible hash algorithms are those defined in the IANA registry of Hash Function Textual Names [IANA]. Implementations according to this specification MUST add a 160-bit string resulting from the computation of US Secure Hash Algorithm 1 (SHA1) [RFC3174] if the 'hash' selector is present. If need arises, extensions can be drafted to support several hashing algorithms. Therefore, implementations according to this specification MUST be prepared to receive SDP containing more than a single 'hash' selector in the 'file-selector' attribute.

`hash`セレクターにはハッシュアルゴリズムとその値を含めます。使用可能なアルゴリズムは、Hash Function Textual NamesのIANAレジストリ [IANA] に定義されています。本仕様に準拠する実装は、`hash`セレクターを含める場合、US Secure Hash Algorithm 1(SHA1)[RFC3174]の計算結果である160ビット文字列を追加しなければなりません (MUST)。必要に応じて複数のハッシュアルゴリズムをサポートする拡張を策定できます。そのため本仕様に準拠する実装は、`file-selector`属性に複数の`hash`セレクターを含むSDPを受信できなければなりません (MUST)。

The value of the 'hash' selector is the byte string resulting from applying the hash algorithm to the content of the whole file, even when the file transfer is limited to a number of octets (i.e., the 'file-range' attribute is indicated).

`hash`セレクターの値は、転送するオクテット数が制限されている場合(つまり`file-range`属性が指定されている場合)でも、ファイル全体の内容にハッシュアルゴリズムを適用して得られるバイト列です。

The 'file-transfer-id' attribute provides a randomly chosen globally unique identification to the actual file transfer. It is used to distinguish a new file transfer request from a repetition of the SDP (or the fraction of the SDP that deals with the file description). This attribute is described in much greater detail in Section 8.1.

`file-transfer-id`属性は、実際のファイル転送に割り当てる、ランダムに選んだグローバル一意の識別子です。新しいファイル転送要求と、SDP(またはファイル記述部分)の再送を区別するために使います。詳細は8.1節で説明します。

The 'file-disposition' attribute provides a suggestion to the other endpoint about the intended disposition of the file. Section 7 provides further discussion of the possible values. The value of this attribute SHOULD be the same as the disposition type parameter of the Content-Disposition header field [RFC2183] that would be signaled by the actual file transfer protocol.

`file-disposition`属性は、ファイルの意図する処理方法について相手側に提案します。指定できる値については7節で説明します。この値は、実際のファイル転送プロトコルが通知するContent-Dispositionヘッダーフィールド [RFC2183] のdisposition-typeパラメーターと一致させるべきです (SHOULD)。

The 'file-date' attribute indicates the dates on which the file was created, modified, or last read. This attribute MAY contain a combination of the 'creation', 'modification', and 'read' parameters, but MUST NOT contain more than one of each type .

`file-date`属性は、ファイルの作成日、変更日、または最終読み取り日を示します。この属性には`creation`、`modification`、`read`パラメーターを組み合わせて含めてもかまいません (MAY)。ただし、各種類のパラメーターを複数含めてはなりません (MUST NOT)。

The 'creation' parameter indicates the date on which the file was created. The value MUST be a quoted string that contains a representation of the creation date of the file in RFC 5322 [RFC5322] 'date-time' format. Numeric timezones (+HHMM or -HHMM) MUST be used. The value of this parameter SHOULD be the same as the 'creation-date' parameter of the Content-Disposition header field [RFC2183] that would be signaled by the actual file transfer protocol.

`creation`パラメーターはファイルの作成日を示します。値は、RFC 5322 [RFC5322] の`date-time`形式で作成日を表す、引用符付き文字列でなければなりません (MUST)。数値タイムゾーン(+HHMMまたは-HHMM)を使わなければなりません (MUST)。この値は、実際のファイル転送プロトコルで通知されるContent-Dispositionヘッダーフィールド [RFC2183] の`creation-date`パラメーターと一致させるべきです (SHOULD)。

The 'modification' parameter indicates the date on which the file was last modified. The value MUST be a quoted string that contains a representation of the last modification date to the file in RFC 5322 [RFC5322] 'date-time' format. Numeric timezones (+HHMM or -HHMM) MUST be used. The value of this parameter SHOULD be the same as the 'modification-date' parameter of the Content-Disposition header field [RFC2183] that would be signaled by the actual file transfer protocol.

`modification`パラメーターはファイルの最終変更日を示します。値は、RFC 5322 [RFC5322] の`date-time`形式で最終変更日を表す、引用符付き文字列でなければなりません (MUST)。数値タイムゾーン(+HHMMまたは-HHMM)を使わなければなりません (MUST)。この値は、実際のファイル転送プロトコルで通知されるContent-Dispositionヘッダーフィールド [RFC2183] の`modification-date`パラメーターと一致させるべきです (SHOULD)。

The 'read' parameter indicates the date on which the file was last read. The value MUST be a quoted string that contains a representation of the last date the file was read in RFC 5322 [RFC5322] 'date-time' format. Numeric timezones (+HHMM or -HHMM) MUST be used. The value of this parameter SHOULD be the same as the 'read-date' parameter of the Content-Disposition header field [RFC2183] that would be signaled by the actual file transfer protocol.

`read`パラメーターはファイルの最終読み取り日を示します。値は、RFC 5322 [RFC5322] の`date-time`形式で最終読み取り日を表す、引用符付き文字列でなければなりません (MUST)。数値タイムゾーン(+HHMMまたは-HHMM)を使わなければなりません (MUST)。この値は、実際のファイル転送プロトコルで通知されるContent-Dispositionヘッダーフィールド [RFC2183] の`read-date`パラメーターと一致させるべきです (SHOULD)。

The 'file-icon' attribute can be useful with certain file types such as images. It allows the file sender to include a pointer to a body that includes a small preview icon representing the contents of the file to be transferred, which the file receiver can use to determine whether it wants to receive such file. The 'file-icon' attribute contains a Content-ID URL, which is specified in RFC 2392 [RFC2392]. Section 8.8 contains further considerations about the 'file-icon' attribute.

`file-icon`属性は、画像などのファイルで役立つ場合があります。ファイル送信側は、転送対象の内容を表す小さなプレビューアイコンを含むボディへの参照を指定できます。ファイル受信側は、そのファイルを受け取るか判断するために使えます。`file-icon`属性には、RFC 2392 [RFC2392] で規定されたContent-ID URLを含めます。詳細は8.8節を参照してください。

The 'file-range' attribute provides a mechanism to signal a chunk of a file rather than the complete file. This enables use cases where a file transfer can be interrupted and resumed, even perhaps changing one of the endpoints. The 'file-range' attribute contains the "start offset" and "stop offset" of the file, separated by a dash "-". The "start offset" value refers to the octet position of the file where the file transfer should start. The first octet of a file is denoted by the ordinal number "1". The "stop offset" value refers to the octet position of the file where the file transfer should stop, inclusive of this octet. The "stop offset" value MAY contain a "*" if the total size of the file is not known in advance. The absence of this attribute indicates a complete file, i.e., as if the 'file-range' attribute would have been present with a value "1-*". The 'file-range' attribute must not be confused with the Byte-Range header in MSRP. The former indicates the portion of a file that the application would read and pass onto the MSRP stack for transportation. From the point of view of MSRP, the portion of the file is viewed as a whole message. The latter indicates the number of bytes of that message that are carried in a chunk and the total size of the message. Therefore, MSRP starts counting the delivered message at octet number 1, independently of the position of that octet in the file.

`file-range`属性を使うと、ファイル全体ではなく一部分を転送できます。転送を中断して再開する場合や、途中でエンドポイントを切り替える場合に利用できます。`file-range`属性は、ファイル内の「開始オフセット」と「終了オフセット」をハイフン(-)で区切って指定します。開始オフセットは転送を始める位置を示します。ファイルの最初のオクテットの番号は1です。終了オフセットは転送を終える位置を示し、その位置のオクテットも範囲に含みます。ファイル全体のサイズが事前に分からない場合、終了オフセットには「*」を指定してもかまいません (MAY)。この属性を省略するとファイル全体を意味します。これは値を「1-*」とする`file-range`属性を指定した場合と同じです。`file-range`属性を、MSRPのByte-Rangeヘッダーと混同しないでください。前者は、アプリケーションがファイルから読み出してMSRPスタックに渡す範囲です。MSRPから見ると、その範囲は1つの完全なメッセージです。後者は、メッセージの全体サイズと、各チャンクに含まれるメッセージのバイト範囲を示します。そのためMSRPは、ファイル内の位置にかかわらず、配送するメッセージのバイト番号を1から数えます。

The following is an example of an SDP body that contains the extensions defined in this memo:

以下は、このメモで定義されている拡張機能を含むSDP本体の例です。

   v=0
   o=alice 2890844526 2890844526 IN IP4 host.atlanta.example.com
   s=
   c=IN IP4 host.atlanta.example.com
   t=0 0
   m=message 7654 TCP/MSRP *
   i=This is my latest picture
   a=sendonly
   a=accept-types:message/cpim
   a=accept-wrapped-types:*
   a=path:msrp://atlanta.example.com:7654/jshA7we;tcp
   a=file-selector:name:"My cool picture.jpg" type:image/jpeg
     size:32349 hash:sha-1:
     72:24:5F:E8:65:3D:DA:F3:71:36:2F:86:D4:71:91:3E:E4:A2:CE:2E
   a=file-transfer-id:vBnG916bdberum2fFEABR1FR3ExZMUrd
   a=file-disposition:attachment
   a=file-date:creation:"Mon, 15 May 2006 15:01:31 +0300"
   a=file-icon:cid:id2@alicepc.example.com
   a=file-range:1-32349
        

Figure 2: Example of SDP describing a file transfer

図2:ファイル転送を説明するSDPの例

NOTE: The 'file-selector' attribute in the above figure is split in three lines for formatting purposes. Real implementations will encode it in a single line.

注: 上図では整形の都合上、`file-selector`属性を3行に分けています。実際の実装では1行でエンコードします。

7. File Disposition Types
7. ファイル処分タイプ

The SDP offer/answer for file transfer allows the file sender to indicate a preferred disposition of the file to be transferred in a new 'file-disposition' attribute. In principle, any value listed in the IANA registry for Mail Content Disposition Values [IANA] is acceptable; however, most of them may not be applicable.

ファイル転送のSDPオファー/アンサーでは、新しい`file-disposition`属性を使い、転送するファイルの望ましい処理方法を送信側から示せます。原則として、Mail Content Disposition ValuesのIANAレジストリ [IANA] にある任意の値を指定できますが、その多くは適用できない場合があります。

There are two content dispositions of interest for file transfer operations. On one hand, the file sender may just want the file to be rendered immediately in the file receiver's device. On the other hand, the file sender may just want to indicate to the file receiver that the file should not be rendered at the reception of the file. The recipient's user agent may want to interact with the user regarding the file disposition or it may save the file until the user takes an action. In any case, the exact actions are implementation dependent.

ファイル転送操作には、関心のある2つのコンテンツ処分があります。一方では、ファイル送信者は、ファイルレシーバーのデバイスでファイルをすぐにレンダリングすることを望む場合があります。一方、ファイル送信者は、ファイルの受信時にファイルをレンダリングしてはならないことをファイルレシーバーに示すだけです。受信者のユーザーエージェントは、ファイルの処分に関してユーザーと対話することをお勧めします。または、ユーザーがアクションを実行するまでファイルを保存する場合があります。いずれにせよ、正確なアクションは実装依存です。

To indicate that a file should be automatically rendered, this memo uses the existing 'render' value of the Content Disposition type in the new 'file-disposition' attribute in SDP. To indicate that a file should not be automatically rendered, this memo uses the existing 'attachment' value of the Content-Disposition type in the new 'file-disposition' attribute in SDP. The default value is 'render', i.e., the absence of a 'file-disposition' attribute in the SDP has the same semantics as 'render'.

ファイルを自動的に表示することを示すため、本メモではSDPの新しい`file-disposition`属性に、Content-Disposition型の既存値`render`を使います。自動表示しないことを示すには、同じ属性に既存値`attachment`を使います。既定値は`render`です。つまり、SDPで`file-disposition`属性を省略した場合も`render`と同じ意味になります。

The disposition value 'attachment' is specified in RFC 2183 [RFC2183] with the following definition:

気質値「添付ファイル」は、次の定義を伴うRFC 2183 [RFC2183]で指定されています。

"Body parts can be designated 'attachment' to indicate that they are separate from the main body of the mail message, and that their display should not be automatic, but contingent upon some further action of the user."

「ボディの部分は、「添付ファイル」を指定して、メールメッセージの本体とは別のものであり、ディスプレイは自動ではなく、ユーザーのさらなるアクションを条件とすることを示すことができます。」

In the case of this specification, the 'attachment' disposition type is used to indicate that the display of the file should not be automatic, but contingent upon some further action of the user.

この仕様の場合、「アタッチメント」処分タイプは、ファイルの表示が自動ではなく、ユーザーのさらなるアクションを条件とすることを示すために使用されます。

8. Protocol Operation
8. プロトコル操作

This section discusses how to use the parameters defined in Section 6 in the context of an offer/answer [RFC3264] exchange. Additionally, this section also discusses the behavior of the endpoints using MSRP.

このセクションでは、オファー/回答[RFC3264] Exchangeのコンテキストでセクション6で定義されたパラメーターを使用する方法について説明します。さらに、このセクションでは、MSRPを使用してエンドポイントの動作についても説明します。

A file transfer session is initiated by the offerer sending an SDP offer to the answerer. The answerer either accepts or rejects the file transfer session and sends an SDP answer to the offerer.

ファイル転送セッションは、提供者が回答者にSDPオファーを送信することによって開始されます。Answererは、ファイル転送セッションを受け入れるか拒否し、SDPの回答を提供者に送信します。

We can differentiate two use cases, depending on whether the offerer is the file sender or file receiver:

オファーがファイル送信者またはファイルレシーバーであるかどうかに応じて、2つのユースケースを区別できます。

1. The offerer is the file sender, i.e., the offerer wants to transmit a file to the answerer. Consequently, the answerer is the file receiver. In this case, the SDP offer contains a 'sendonly' attribute, and accordingly the SDP answer contains a 'recvonly' attribute.

1. オファーはファイル送信者です。つまり、オファーはファイルを回答者に送信したいと考えています。したがって、回答者はファイルレシーバーです。この場合、SDPオファーには「Sendonly」属性が含まれているため、SDPの回答には「Recvonly」属性が含まれます。

2. The offerer is the file receiver, i.e., the offerer wants to fetch a file from the answerer. Consequently, the answerer is the file sender. In this case, the SDP offer contains a session or media 'recvonly' attribute, and accordingly the SDP answer contains a session or media 'sendonly' attribute.

2. オファーはファイルレシーバーです。つまり、オファーは回答者からファイルを取得したいと考えています。その結果、回答者はファイル送信者です。この場合、SDPオファーにはセッションまたはメディアの「Recvonly」属性が含まれているため、SDP回答にはセッションまたはメディアの「Sendonly」属性が含まれています。

8.1. The 'file-transfer-id' Attribute
8.1. `file-transfer-id`属性

This specification creates an extension to the SDP offer/answer model [RFC3264], and because of that, it is assumed that the existing SDP behavior is kept intact. The SDP behavior requires, for example, that SDP is sent again to the remote party in situations where the media description or perhaps other SDP parameters have not changed with respect to a previous offer/answer exchange. Let's consider the SIP Session Timer (RFC 4028) [RFC4028], which uses re-INVITE requests to refresh sessions. RFC 4028 recommends to send unmodified SDP in a re-INVITE to refresh the session. Should this re-INVITE contain SDP describing a file transfer operation and occur while the file transfer was still going on, there would be no means to detect whether the SDP creator wanted to abort the current file transfer operation and initiate a new one or the SDP file description was included in the SDP due to other reasons (e.g., session timer refresh).

この仕様は、SDPオファー/回答モデル[RFC3264]の拡張機能を作成し、そのため、既存のSDP動作はそのままに保たれると想定されています。たとえば、SDPの動作には、以前のオファー/回答交換に関して、メディアの説明またはおそらく他のSDPパラメーターが変更されていない状況で、SDPがリモートパーティに再び送信されることが必要です。SIPセッションタイマー(RFC 4028)[RFC4028]を考えてみましょう。RFC 4028は、セッションを更新するために、変更されていないSDPを再インバイトで送信することをお勧めします。この再導電がファイル転送操作を記述し、ファイル転送がまだ進行中に発生している場合、SDP作成者が現在のファイル転送操作を中止し、新しいものまたはSDPを開始したいかどうかを検出する手段はありません。ファイルの説明は、他の理由(セッションタイマーの更新など)のためにSDPに含まれていました。

A similar scenario occurs when two endpoints have successfully agreed on a file transfer, which is currently taking place when one of the endpoints wants to add additional media streams to the existing session. In this case, the endpoint sends a re-INVITE request that contains the SDP. The SDP needs to maintain the media descriptions for the current ongoing file transfer and add the new media descriptions. The problem is that the other endpoint is not able to determine whether or not a new file transfer is requested.

同様のシナリオは、2つのエンドポイントがファイル転送に正常に合意したときに発生します。これは、エンドポイントの1つが既存のセッションに追加のメディアストリームを追加したい場合に現在行われています。この場合、エンドポイントはSDPを含む再視点リクエストを送信します。SDPは、現在進行中のファイル転送のメディアの説明を維持し、新しいメディアの説明を追加する必要があります。問題は、他のエンドポイントが新しいファイル転送が要求されるかどうかを判断できないことです。

In other cases, a file transfer was successfully completed. Then, if an endpoint resends the SDP offer with the media stream for the file transfer, then the other endpoint wouldn't be able to determine whether or not a new file transfer should start.

それ以外の場合、ファイル転送が正常に完了しました。次に、エンドポイントがファイル転送のメディアストリームを使用してSDPオファーを再送信した場合、もう1つのエンドポイントは、新しいファイル転送が開始されるかどうかを判断できません。

To address these scenarios, this specification defines the 'file-transfer-id' attribute, which contains a globally unique random identifier allocated to the file transfer operation. The file transfer identifier helps both endpoints to determine whether the SDP offer is requesting a new file transfer or it is a repetition of the SDP. A new file transfer is one that, in case of acceptance, will provoke the actual transfer of a file. This is typically the case of new offer/answer exchanges, or in cases where an endpoint wants to abort the existing file transfer and restart the file transfer once more. On the other hand, the repetition of the SDP does not lead to any actual file to be transferred, potentially because the file transfer is still going on or because it has already finished. This is the case of repeated offer/answer exchanges, which can be due to a number of reasons (session timer, addition/removal of other media types in the SDP, update in SDP due to changes in other session parameters, etc.).

これらの状況に対処するため、本仕様ではファイル転送に割り当てるグローバル一意のランダム識別子を格納する`file-transfer-id`属性を定義します。この識別子によって、両エンドポイントはSDPオファーが新しいファイル転送を要求しているのか、SDPを再送しているだけなのかを判別できます。新しいファイル転送とは、受け入れられた場合に実際のファイル転送を開始するものです。通常は、新たなオファー/アンサー交換や、既存の転送を中止して再開する場合が該当します。一方、SDPの再送では実際の転送は始まりません。転送中または転送完了後に、セッションタイマー、SDP内の他のメディア種別の追加・削除、他のセッションパラメーターの変更などを理由に、オファー/アンサーを再交換する場合が該当します。

Implementations according to this specification MUST include a 'file-transfer-id' attribute in SDP offers and answers. The SDP offerer MUST select a file transfer identifier according to the syntax and add it to the 'file-transfer-id' attribute. The SDP answerer MUST copy the value of the 'file-transfer-id' attribute in the SDP answer.

本仕様に準拠する実装は、SDPオファーとアンサーに`file-transfer-id`属性を含めなければなりません (MUST)。SDPオファー側は、構文に従って識別子を選び、`file-transfer-id`属性に設定しなければなりません (MUST)。SDPアンサー側は、受け取った属性値をSDPアンサーにコピーしなければなりません (MUST)。

The file transfer identifier MUST be unique within the current session (never used before in this session), and it is RECOMMENDED to be unique across different sessions. It is RECOMMENDED to select a relatively big random identifier (e.g., 32 characters) to avoid duplications. The SDP answerer MUST keep track of the proposed file transfer identifiers in each session and copy the value of the received file transfer identifier in the SDP answer.

ファイル転送識別子は、現在のセッション内で未使用の一意な値でなければなりません (MUST)。セッション間でも一意にすることが推奨されます (RECOMMENDED)。重複を避けるため、比較的大きなランダム識別子(例: 32文字)を選ぶことが推奨されます (RECOMMENDED)。SDPアンサー側は、各セッションで提示されたファイル転送識別子を記録し、受け取った識別子と同じ値をSDPアンサーにコピーしなければなりません (MUST)。

If a file transfer is suspended and resumed at a later time, the resumption is considered a new file transfer (even when the file to be transferred is the same); therefore, the SDP offerer MUST choose a new file transfer identifier.

後でファイル転送が停止され、再開された場合、再開は新しいファイル転送と見なされます(転送されるファイルが同じ場合でも)。したがって、SDPオファーは新しいファイル転送識別子を選択しなければなりません (MUST)。

If an endpoint sets the port number to zero in the media description of a file transfer, for example, because it wants to reject the file transfer operation, then the SDP answer MUST mirror the value of the 'file-transfer-id' attribute included in the SDP offer. This effectively means that setting a media stream to zero has higher precedence than any value that the 'file-transfer-id' attribute can take.

たとえばファイル転送操作を拒否したいという理由で、エンドポイントがファイル転送のメディア記述でポート番号をゼロに設定した場合、SDPアンサーは、SDPオファーに含まれていた「file-transfer-id」属性の値をそのまま反映しなければなりません (MUST)。これは実質的に、メディアストリームをゼロに設定することが、「file-transfer-id」属性が取りうるどの値よりも優先されることを意味します。

As a side effect, the 'file-transfer-id' attribute can be used for aborting and restarting again an ongoing file transfer. Assume that two endpoints agree on a file transfer and the actual transfer of the file is taking place. At some point in time in the middle of the file transfer, one endpoint sends a new SDP offer, equal to the initial one except for the value of the 'file-transfer-id' attribute, which is a new globally unique random value. This indicates that the offerer wants to abort the existing transfer and start a new one, according to the SDP parameters. The SDP answerer SHOULD abort the ongoing file transfer, according to the procedures of the file transfer protocol (e.g., MSRP), and start sending file once more from the initial requested octet. Section 8.4 further discusses aborting a file transfer.

副次的な用途として、`file-transfer-id`属性を使い、進行中のファイル転送を中止して再開できます。2つのエンドポイントが転送に合意し、実際にファイルを送っているとします。転送の途中で一方が、最初のSDPオファーから`file-transfer-id`属性だけを新しいグローバル一意のランダム値に変更したSDPオファーを送ります。これは、SDPパラメーターに従って既存の転送を中止し、新しい転送を開始したいことを示します。SDPアンサー側は、ファイル転送プロトコル(例: MSRP)の手順に従って進行中の転送を中止し、要求された最初のオクテットから再送を始めるべきです (SHOULD)。中止の詳細は8.4節で説明します。

If an endpoint creates an SDP offer where the 'file-transfer-id' attribute value does not change with respect to a previously sent one, but the file selector changes so that a new file is selected, then this is considered an error, and the SDP answerer MUST abort the file transfer operation (e.g., by setting the port number to zero in the SDP answer). Note that endpoints MAY change the 'file-selector' attribute as long as the selected file does not change (e.g., by adding a hash selector); however, it is RECOMMENDED that endpoints do not change the value of the 'file-selector' attribute if it is requested to transfer the same file described in a previous SDP offer/answer exchange.

エンドポイントが、以前に送信したものと同じ`file-transfer-id`値を含むSDPオファーを作成しながら、`file-selector`を変更して別のファイルを選択した場合、これはエラーです。SDPアンサー側はファイル転送処理を中止しなければなりません (MUST)(例: SDPアンサーのポート番号を0に設定します)。選択ファイルが変わらない限り、エンドポイントは`file-selector`属性を変更してもかまいません (MAY)(例: ハッシュセレクターを追加します)。ただし、以前のSDPオファー/アンサー交換で指定した同じファイルの転送を要求する場合、`file-selector`属性の値は変更しないことが推奨されます (RECOMMENDED)。

Figure 3 summarizes the relation of the 'file-transfer-id' attribute with the file selector in subsequent SDP exchanges.

図3に、後続のSDP交換における`file-transfer-id`属性とファイルセレクターの関係を示します。

                      \                |             |               |
                       \ file selector |  different  |     same      |
     'file-transfer-id' \              |    file     |     file      |
     ==================================+=============+===============+
                                       |  new file   |   new file    |
      changed                          |  transfer   |   transfer    |
                                       |  operation  |   operation   |
     ----------------------------------+-------------+---------------+
                                       |             | existing file |
      unchanged                        |   error     |   transfer    |
                                       |             |   operation   |
     ----------------------------------+-------------+---------------+
        

Figure 3: Relation of the 'file-transfer-id' attribute with the selector of the file in a subsequent SDP exchange

図3: 後続のSDP交換における`file-transfer-id`属性とファイルセレクターの関係

In another scenario, an endpoint that has successfully transferred a file wants to send an SDP due to other reasons than the transfer of a file. The SDP offerer creates an SDP file description that maintains the media description line corresponding to the file transfer. The SDP offerer MUST then set the port number to zero and MUST keep the same value of the 'file-transfer-id' attribute that the initial file transfer got.

別の状況として、ファイル転送が正常に完了したエンドポイントが、ファイル転送以外の理由でSDPを送信する場合があります。SDPオファー側は、ファイル転送に対応するメディア記述行を維持したファイル記述を作成します。そのうえで、SDPオファー側はポート番号を0に設定しなければなりません (MUST)。また、最初のファイル転送で使った`file-transfer-id`属性の値を維持しなければなりません (MUST)。

8.2. Offerer's Behavior
8.2. オファーの行動

An offerer who wishes to send or receive one or more files to or from an answerer MUST build an SDP [RFC4566] description of a session containing one "m=" line per file. When MSRP is used as the transfer mechanism, each "m=" line also describes a single MSRP session, according to the MSRP [RFC4975] procedures. Any "m=" lines that may have already been present in a previous SDP exchange are normally kept unmodified; the new "m=" lines are added afterwards (Section 8.6 describes cases when "m=" lines are reused). All the media line attributes specified and required by MSRP [RFC4975] (e.g., "a=path", "a=accept-types", etc.) MUST be included as well.

アンサー側との間で1つ以上のファイルを送受信するオファー側は、ファイルごとに1つの「m=」行を含むセッションのSDP記述 [RFC4566] を作成しなければなりません (MUST)。MSRPを転送方式に使う場合、MSRP [RFC4975] の手順に従い、各「m=」行は1つのMSRPセッションも記述します。以前のSDP交換に含まれていた「m=」行は通常そのまま維持し、新しい行を後ろに追加します(「m=」行を再利用する場合は8.6節を参照)。MSRP [RFC4975] が規定・要求するすべてのメディア行属性(例: `a=path`、`a=accept-types`)も含めなければなりません (MUST)。

8.2.1. The Offerer Is a File Sender
8.2.1. Offererがファイル送信者である場合

In a push operation, the file sender creates an SDP offer describing the file to be sent. The file sender MUST add a 'file-selector' attribute media line containing at least one of the 'type', 'size', or 'hash' selectors in indicating the type, size, or hash of the file, respectively. If the file sender wishes to start a new file transfer, the file sender MUST add a 'file-transfer-id' attribute containing a new globally unique random identifier value. Additionally, the file sender MUST add a session or media 'sendonly' attribute to the SDP offer. Then the file sender sends the SDP offer to the file receiver.

プッシュ操作では、ファイル送信側が送信対象を記述するSDPオファーを作成します。ファイル送信側は、ファイルの種類、サイズ、ハッシュをそれぞれ示す`type`、`size`、`hash`のいずれかを含む`file-selector`メディア属性行を追加しなければなりません (MUST)。新しい転送を始める場合は、新しいグローバル一意のランダム識別子を含む`file-transfer-id`属性を追加しなければなりません (MUST)。さらに、SDPオファーにセッションまたはメディアの`sendonly`属性を追加しなければなりません (MUST)。その後、ファイル受信側へSDPオファーを送ります。

Not all the selectors in the 'file-selector' attribute might be known when the file sender creates the SDP offer, for example, because the host is still processing the file.

SDPオファーを作成する時点では、ホストがまだファイルを処理中であるなどの理由により、`file-selector`属性のすべてのセレクターが分かっているとは限りません。

The 'hash' selector in the 'file-selector' attribute contains valuable information for the file receiver to identify whether the file is already available and need not be transmitted.

`file-selector`属性の`hash`セレクターは、ファイル受信側がファイルをすでに持っており転送不要かどうかを判断するための有用な情報です。

The file sender MAY also add a 'name' selector in the 'file-selector' attribute, and 'file-icon', 'file-disposition', and 'file-date' attributes further describing the file to be transferred. The 'file-disposition' attribute provides a presentation suggestion (for example: the file sender would like the file receiver to render the file or not). The three date attributes provide the answerer with an indication of the age of the file. The file sender MAY also add a 'file-range' attribute indicating the start and stop offsets of the file.

ファイル送信側は、`file-selector`属性に`name`セレクターを、また転送するファイルを詳しく説明する`file-icon`、`file-disposition`、`file-date`属性を追加してもかまいません (MAY)。`file-disposition`は、ファイルを表示するかどうかなど、受信側に処理方法を提案します。3つの日付属性は、ファイルの新しさをアンサー側に伝えます。ファイル送信側は、ファイルの開始・終了オフセットを示す`file-range`属性も追加してもかまいません (MAY)。

When the file sender receives the SDP answer, if the port number of the answer for a file request is non-zero, the file sender starts the transfer of the file according to the negotiated parameters in SDP.

ファイル送信者がSDPの回答を受信すると、ファイル要求の回答のポート番号がゼロ以外の場合、ファイル送信者はSDPのネゴシエートパラメーターに従ってファイルの転送を開始します。

8.2.2. The Offerer Is a File Receiver
8.2.2. Offererがファイル受信者である場合

In a pull operation, the file receiver creates the SDP offer and sends it to the file sender. The file receiver MUST include a 'file-selector' attribute and MUST include, at least, one of the selectors defined for such attribute (i.e., 'name', 'type', 'size', or 'hash'). In many cases, if the hash of the file is known, that is enough to identify the file; therefore, the offerer can include only a 'hash' selector. However, particularly in cases where the hash of the file is unknown, the file name, size, and type can provide a description of the file to be fetched. If the file receiver wishes to start a new file transfer, it MUST add a 'file-transfer-id' attribute containing a new globally unique random value. The file receiver MAY also add a 'file-range' attribute indicating the start and stop offsets of the file. There is no need for the file receiver to include further file attributes in the SDP offer; thus, it is RECOMMENDED that SDP offerers do not include any other file attribute defined by this specification (other than the mandatory ones). Additionally, the file receiver MUST add a session or media 'recvonly' attribute in the SDP offer. Then, the file receiver sends the SDP offer to the file sender.

プル操作では、ファイル受信側がSDPオファーを作成してファイル送信側へ送ります。ファイル受信側は`file-selector`属性を含めなければなりません (MUST)。また、少なくとも1つのセレクター(`name`、`type`、`size`、`hash`のいずれか)を指定しなければなりません (MUST)。ハッシュが分かればファイルを識別できる場合が多いため、オファー側は`hash`セレクターだけを含めることもできます。ハッシュが分からない場合は、ファイル名、サイズ、種類で取得対象を記述できます。新しい転送を開始する場合、ファイル受信側は新しいグローバル一意のランダム値を含む`file-transfer-id`属性を追加しなければなりません (MUST)。ファイルの開始・終了オフセットを示す`file-range`属性を追加してもかまいません (MAY)。オファーに他のファイル属性を含める必要はありません。したがって、必須属性を除き、本仕様で定義する他のファイル属性はSDPオファーに含めないことが推奨されます (RECOMMENDED)。さらに、ファイル受信側はSDPオファーにセッションまたはメディアの`recvonly`属性を追加しなければなりません (MUST)。その後、SDPオファーをファイル送信側へ送ります。

When the file receiver receives the SDP answer, if the port number of the answer for a file request is non-zero, then the file receiver should receive the file using the protocol indicated in the "m=" line. If the SDP answer contains a supported hashing algorithm in the 'hash' selectors of the 'file-selector' attribute, then the file receiver SHOULD compute the hash of the file after its reception and check it against the hash received in the answer. In case the computed hash does not match the one contained in the SDP answer, the file receiver SHOULD consider that the file transfer failed and SHOULD inform the user. Similarly, the file receiver SHOULD also verify that the other selectors declared in the SDP match the file properties, otherwise, the file receiver SHOULD consider that the file transfer failed and SHOULD inform the user.

ファイル要求に対するSDPアンサーのポート番号が0以外なら、ファイル受信側は「m=」行で示されたプロトコルを使ってファイルを受信します。`file-selector`属性の`hash`セレクターに対応可能なハッシュアルゴリズムが指定されている場合、受信側はファイル受信後にハッシュを計算し、アンサーで受け取った値と照合すべきです (SHOULD)。計算値がアンサー内の値と一致しない場合、転送失敗と判断すべきです (SHOULD)。その場合はユーザーに通知すべきです (SHOULD)。同様に、SDPに記載された他のセレクターもファイルの属性と照合すべきです (SHOULD)。一致しない場合は転送失敗と判断し (SHOULD)、ユーザーに通知すべきです (SHOULD)。

8.2.3. SDP Offer for Several Files
8.2.3. いくつかのファイルのSDPオファー

An offerer that wishes to send or receive more than one file generates an "m=" line per file along with the file attributes described in this specification. This way, the answerer can reject individual files by setting the port number of their associated "m=" lines to zero, as per regular SDP [RFC4566] procedures. Similarly, the answerer can accept each individual file separately by setting the port number of their associated "m=" lines to non-zero value. Each file has its own file transfer identifier, which uniquely identifies each file transfer.

複数のファイルを送信または受信したいオファーは、この仕様で説明されているファイル属性とともに、ファイルごとの「m =」行を生成します。このようにして、回答者は、通常のSDP [RFC4566]手順に従って、関連する「M =」行のポート番号をゼロに設定することにより、個々のファイルを拒否できます。同様に、応答者は、関連する「m =」行のポート番号を非ゼロ値に設定することにより、個々のファイルを個別に受け入れることができます。各ファイルには独自のファイル転送識別子があり、各ファイル転送を一意に識別します。

Using an "m=" line per file implies that different files are transferred using different MSRP sessions. However, all those MSRP sessions can be set up to run over a single TCP connection, as described in Section 8.1 of RFC 4975 [RFC4975]. The same TCP connection can also be reused for sequential file transfers.

ファイルごとの「m =」行を使用すると、異なるMSRPセッションを使用して異なるファイルが転送されることが意味されます。ただし、RFC 4975 [RFC4975]のセクション8.1で説明されているように、これらのMSRPセッションはすべて、単一のTCP接続を実行するように設定できます。同じTCP接続を、シーケンシャルファイル転送に再利用することもできます。

8.3. Answerer's Behavior
8.3. 応答者の行動

If the answerer wishes to reject a file offered by the offerer, it sets the port number of the "m=" line associated with the file to zero, as per regular SDP [RFC4566] procedures. The rejected answer MUST contained a 'file-selector' and 'file-transfer-id' attributes whose values mirror the corresponding values of the SDP offer.

アンサー側がオファーされたファイルを拒否する場合、通常のSDP [RFC4566] の手順に従って、ファイルに対応する「m=」行のポート番号を0に設定します。拒否するアンサーには、オファー内の値と同じ`file-selector`属性と`file-transfer-id`属性を含めなければなりません (MUST)。

If the answerer decides to accept the file, it proceeds as per regular MSRP [RFC4975] and SDP [RFC4566] procedures.

回答者がファイルを受け入れることを決定した場合、通常のMSRP [RFC4975]およびSDP [RFC4566]手順に従って進行します。

8.3.1. The Answerer Is a File Receiver
8.3.1. Answererがファイル受信者である場合

In a push operation, the SDP answerer is the file receiver. When the file receiver gets the SDP offer, it first examines the port number. If the port number is set to zero, the file transfer operation is closed, and no more data is expected over the media stream. Then, if the port number is different than zero, the file receiver inspects the 'file-transfer-id' attribute. If the value of the 'file-transfer-id' attribute has been previously used, then the existing session remains without changes; perhaps the file transfer is still in progress, or perhaps it has concluded, but there are no changes with respect to the current status. In any case, independently of the port number, the SDP answerer creates a regular SDP answer and sends it to the offerer.

プッシュ操作では、SDPアンサー側がファイル受信側です。SDPオファーを受け取ると、まずポート番号を確認します。ポート番号が0ならファイル転送は終了しており、そのメディアストリームで追加データは届きません。ポート番号が0以外なら、次に`file-transfer-id`属性を調べます。その値がすでに使われている場合、既存セッションの状態は変わりません。転送中の場合もあれば、すでに完了している場合もあります。いずれの場合も、ポート番号にかかわらずSDPアンサー側は通常のSDPアンサーを作成し、オファー側へ送信します。

If the port number is different than zero and the SDP offer contains a new 'file-transfer-id' attribute, then it is signaling a request for a new file transfer. The SDP answerer extracts the attributes and parameters that describe the file and typically requests permission from the user to accept or reject the reception of the file. If the file transfer operation is accepted, the file receiver MUST create an SDP answer according to the procedures specified in RFC 3264 [RFC3264]. If the offer contains 'name', 'type', or 'size' selectors in the 'file-selector' attribute, the answerer MUST copy them into the answer. The file receiver copies the value of the 'file-transfer-id' attribute to the SDP answer. Then the file receiver MUST add a session or media 'recvonly' attribute according to the procedures specified in RFC 3264 [RFC3264]. The file receiver MUST NOT include 'file-icon', 'file-disposition', or 'file-date' attributes in the SDP answer.

ポート番号が0以外で、SDPオファーに未使用の`file-transfer-id`属性が含まれている場合は、新しいファイル転送要求です。SDPアンサー側はファイルを説明する属性とパラメーターを取り出し、通常は受信を承諾するか拒否するか、ユーザーに確認します。転送を受け入れる場合、ファイル受信側はRFC 3264 [RFC3264] の手順に従ってSDPアンサーを作成しなければなりません (MUST)。オファーの`file-selector`属性に`name`、`type`、`size`のいずれかが含まれていれば、それらをアンサーにコピーしなければなりません (MUST)。`file-transfer-id`属性の値もSDPアンサーにコピーします。その後、RFC 3264 [RFC3264] の手順に従い、セッションまたはメディアの`recvonly`属性を追加しなければなりません (MUST)。SDPアンサーに`file-icon`、`file-disposition`、`file-date`属性を含めてはなりません (MUST NOT)。

The file receiver can use the hash to find out if a local file with the same hash is already available, in which case, this could imply the reception of a duplicated file. It is up to the answerer to determine whether or not the file transfer is accepted in case of a duplicated file.

ファイルレシーバーはハッシュを使用して、同じハッシュを持つローカルファイルがすでに利用可能かどうかを調べることができます。その場合、これは重複したファイルの受信を意味する可能性があります。ファイルが重複したファイルの場合に受け入れられるかどうかを判断するのは、回答者次第です。

If the SDP offer contains a 'file-range' attribute and the file receiver accepts to receive the range of octets declared in there, the file receiver MUST include a 'file-range' attribute in the SDP answer with the same range of values. If the file receiver does not accept the reception of that range of octets, it SHOULD reject the transfer of the file.

SDPオファーに`file-range`属性があり、ファイル受信側が指定されたオクテット範囲を受け入れる場合、同じ範囲を持つ`file-range`属性をSDPアンサーに含めなければなりません (MUST)。その範囲を受け入れない場合、ファイル転送を拒否すべきです (SHOULD)。

When the file transfer operation is complete, the file receiver computes the hash of the file and SHOULD verify that it matches the hash declared in the SDP. If they do not match, the file receiver SHOULD consider that the file transfer failed and SHOULD inform the user. Similarly, the file receiver SHOULD also verify that the other selectors declared in the SDP match the file properties; otherwise, the file receiver SHOULD consider that the file transfer failed and SHOULD inform the user.

ファイル転送の完了後、ファイル受信側はファイルのハッシュを計算し、SDPに記載されたハッシュと一致するか確認すべきです (SHOULD)。一致しない場合は転送失敗と判断し (SHOULD)、ユーザーに通知すべきです (SHOULD)。同様に、SDPの他のセレクターもファイルの属性と照合すべきです (SHOULD)。一致しない場合は転送失敗と判断し (SHOULD)、ユーザーに通知すべきです (SHOULD)。

8.3.2. The Answerer Is a File Sender
8.3.2. Answererがファイル送信者である場合

In a pull operation the answerer is the file sender. In this case, the SDP answerer MUST first inspect the value of the 'file-transfer-id' attribute. If it has not been previously used throughout the session, then acceptance of the file MUST provoke the transfer of the file over the negotiated protocol. However, if the value has been previously used by another file transfer operation within the session, then the file sender MUST NOT alert the user and MUST NOT start a new transfer of the file. No matter whether or not an actual file transfer is initiated, the file sender MUST create a proper SDP answer that contains the 'file-transfer-id' attribute with the same value received in the SDP offer, and then it MUST continue processing the SDP answer.

プル操作では、アンサー側がファイル送信側です。SDPアンサー側は、まず`file-transfer-id`属性の値を確認しなければなりません (MUST)。その値が当該セッションで未使用なら、ファイルを受け入れることで、ネゴシエーション済みのプロトコルによる転送を開始しなければなりません (MUST)。一方、その値がセッション内の別のファイル転送で使われていた場合、ファイル送信側はユーザーに通知してはなりません (MUST NOT)。また、新たなファイル転送を開始してはなりません (MUST NOT)。実際に転送を開始するかどうかにかかわらず、ファイル送信側はSDPオファーで受け取った値と同じ`file-transfer-id`属性を含む適切なSDPアンサーを作成しなければなりません (MUST)。その後、SDPアンサーの処理を続けなければなりません (MUST)。

The file sender MUST always create an SDP answer according to the SDP offer/answer procedures specified in RFC 3264 [RFC3264]. The file sender inspects the file selector of the received SDP offer, which is encoded in the 'file-selector' media attribute line. Then the file sender applies the file selector, which implies selecting those files that match one by one with the 'name', 'type', 'size', and 'hash' selectors of the 'file-selector' attribute line (if they are present). The file selector identifies zero or more candidate files to be sent. If the file selector is unable to identify any file, then the answerer MUST reject the MSRP stream for file transfer by setting the port number to zero, and then the answerer SHOULD also reject the SDP as per procedures in RFC 3264 [RFC3264], if this is the only stream described in the SDP offer.

ファイル送信側は、RFC 3264 [RFC3264] のSDPオファー/アンサー手順に従って、必ずSDPアンサーを作成しなければなりません (MUST)。受信したSDPオファーの`file-selector`メディア属性行を調べ、指定されたセレクターがあれば`name`、`type`、`size`、`hash`のすべてに一致するファイルを選びます。セレクターは送信候補のファイルを0個以上特定します。候補が1つもない場合、アンサー側はポート番号を0にしてファイル転送用MSRPストリームを拒否しなければなりません (MUST)。SDPオファーに記述されたストリームがそれだけなら、RFC 3264 [RFC3264] の手順に従ってSDP全体も拒否すべきです (SHOULD)。

If the file selector points to a single file and the file sender decides to accept the file transfer, the file sender MUST create an SDP answer that contains a 'sendonly' attribute, according to the procedures described in RFC 3264 [RFC3264]. The file sender SHOULD add a 'hash' selector in the answer with the locally computed SHA-1 hash over the complete file. If a hash value computed by the file sender differs from that specified by the file receiver, the file sender can either send the file without that hash value or reject the request by setting the port in the media stream to zero. The file sender MAY also include a 'type' selector in the 'file-selector' attribute line of the SDP answer. The answerer MAY also include 'file-icon' and 'file-disposition' attributes to further describe the file. Although the answerer MAY also include a 'name' and 'size' selectors in the 'file-selector' attribute, and a 'file-date' attribute, it is RECOMMENDED not to include them in the SDP answer if the actual file transfer protocol (e.g., MSRP [RFC4975]) can accommodate a Content-Disposition header field [RFC2183] with the equivalent parameters.

ファイルセレクターが単一ファイルを指し、ファイル送信側が転送を受け入れる場合、RFC 3264 [RFC3264] の手順に従い、`sendonly`属性を含むSDPアンサーを作成しなければなりません (MUST)。ファイル送信側は、ファイル全体からローカルで計算したSHA-1ハッシュを含む`hash`セレクターをアンサーに追加すべきです (SHOULD)。計算したハッシュが受信側の指定値と異なる場合、ハッシュ値を付けずにファイルを送信するか、メディアストリームのポートを0にして要求を拒否できます。SDPアンサーの`file-selector`属性に`type`セレクターを含めてもかまいません (MAY)。アンサー側はファイルの説明を補うため`file-icon`属性や`file-disposition`属性を含めてもかまいません (MAY)。さらに、`file-selector`属性に`name`や`size`セレクターを、また`file-date`属性を含めてもかまいません (MAY)。ただし、MSRP [RFC4975] など実際のファイル転送プロトコルで同等のパラメーターを含むContent-Dispositionヘッダーフィールド [RFC2183] を利用できる場合、これらをSDPアンサーに含めないことが推奨されます (RECOMMENDED)。

The whole idea of adding file descriptors to SDP is to provide a mechanism where a file transfer can be accepted prior to its start. Adding any SDP attributes that are otherwise signaled later in the file transfer protocol would just duplicate the information, but will not provide any information to the offerer to accept or reject the file transfer (note that the offerer is requesting a file).

SDPにファイル記述子を追加するという考えは、ファイル転送が開始前に受け入れるメカニズムを提供することです。ファイル転送プロトコルで後で通知されるSDP属性を追加すると、情報が複製されますが、提供者にファイル転送を受け入れるか拒否する情報を提供しません(提供者がファイルを要求していることに注意してください)。

Last, if the file selector points to multiple candidate files, the answerer MAY use some local policy, e.g., consulting the user, to choose one of them to be defined in the SDP answer. If that choice cannot be done, the answerer SHOULD reject the MSRP media stream for file transfer (by setting the port number to zero).

最後に、ファイルセレクターが複数の候補ファイルを指している場合、回答者はローカルポリシーを使用して、たとえばユーザーに相談して、SDP回答で定義するそれらのいずれかを選択する場合があります (MAY)。その選択を行うことができない場合、回答者はファイル転送のためにMSRPメディアストリームを拒否すべきです (SHOULD)(ポート番号をゼロに設定することにより)。

If the need arises, future specifications can provide a suitable mechanism that allows to either select multiple files or, e.g., resolve ambiguities by returning a list of files that match the file selector.

必要性が発生した場合、将来の仕様は、複数のファイルを選択するか、たとえばファイルセレクターに一致するファイルのリストを返すことにより、あいまいさを解決できる適切なメカニズムを提供できます。

If the SDP offer contains a 'file-range' attribute and the file sender accepts to send the range of octets declared in there, the file sender MUST include a 'file-range' attribute in the SDP answer with the same range of values. If the file sender does not accept sending that range of octets, it SHOULD reject the transfer of the file.

SDPオファーに`file-range`属性があり、ファイル送信側が指定のオクテット範囲を送る場合、同じ値の範囲を持つ`file-range`属性をSDPアンサーに含めなければなりません (MUST)。その範囲を送信できない場合、ファイル転送を拒否すべきです (SHOULD)。

8.4. Aborting an Ongoing File Transfer Operation
8.4. 進行中のファイル転送操作の中止

Either the file sender or the file receiver can abort an ongoing file transfer at any time. Unless otherwise noted, the entity that aborts an ongoing file transfer operation MUST follow the procedures at the media level (e.g., MSRP) and at the signaling level (SDP offer/ answer), as described below.

ファイル送信者またはファイルレシーバーのいずれかが、いつでも継続的なファイル転送を中止できます。特に明記しない限り、進行中のファイル転送操作を中止するエンティティは、以下で説明するように、メディアレベル(MSRPなど)およびシグナリングレベル(SDPオファー/回答)での手順に従わなければなりません (MUST)。

Assume the scenario depicted in Figure 4 where a file sender wishes to abort an ongoing file transfer without initiating an alternative file transfer. Assume that an ongoing MSRP SEND request is being transmitted. The file sender aborts the MSRP message by including the '#' character in the continuation field of the end-line of a SEND request, according to the MSRP procedures (see Section 7.1 of RFC 4975 [RFC4975]). Since a file is transmitted as one MSRP message, aborting the MSRP message effectively aborts the file transfer. The file receiver acknowledges the MSRP SEND request with a 200 response. Then the file sender SHOULD close the MSRP session by creating a new SDP offer that sets the port number to zero in the related "m=" line that describes the file transfer (see Section 8.2 of RFC 3264 [RFC3264]). This SDP offer MUST conform with the requirements of Section 8.2.1. The 'file-transfer-id' attribute MUST be the same attribute that identifies the ongoing transfer. Then the file sender sends this SDP offer to the file receiver.

図4のように、別の転送を始めずに進行中のファイル転送を中止する場合を考えます。MSRP SEND要求を送信中に、MSRP手順(RFC 4975 [RFC4975] の7.1節を参照)に従い、SEND要求の終端行の継続フィールドに「#」を含めてMSRPメッセージを中止します。ファイルは1つのMSRPメッセージとして送られるため、メッセージの中止によってファイル転送も中止されます。ファイル受信側は200応答でMSRP SEND要求に応答します。次にファイル送信側は、ファイル転送を記述する「m=」行のポート番号を0にした新しいSDPオファーを作成し、MSRPセッションを閉じるべきです (SHOULD)(RFC 3264 [RFC3264] の8.2節を参照)。このSDPオファーは8.2.1節の要件に従わなければなりません (MUST)。`file-transfer-id`属性には、進行中の転送を識別しているものと同じ値を設定しなければなりません (MUST)。その後、SDPオファーをファイル受信側へ送ります。

Rather than close the MSRP session by setting the port number to zero in the related "m=" line, the file sender could also tear down the whole session, e.g., by sending a SIP BYE request.

関連する「m=」行でポート番号をゼロに設定してMSRPセッションを閉じる代わりに、ファイル送信者はSIP BYEリクエストを送信するなどしてセッション全体を切断(終了)することもできます。

Note that it is the responsibility of the file sender to tear down the MSRP session. Implementations should be prepared for misbehaviors and implement measures to avoid hang states. For example, upon expiration of a timer the file receiver can close the aborted MSRP session by using regular MSRP procedures.

MSRPセッションを切断することはファイル送信者の責任であることに注意してください。実装は不正な振る舞いに備え、ハング状態を回避するための対策を実装すべきです。例えば、タイマーが満了した時点で、ファイル受信者は通常のMSRP手順を用いて中断されたMSRPセッションを閉じることができます。

A file receiver that receives the above SDP offer creates an SDP answer according to the procedures of the SDP offer/answer (RFC 3264 [RFC3264]). This SDP answer MUST conform with the requirements of Section 8.3.1. Then the file receiver sends this SDP answer to the file sender.

上記のSDPオファーを受信するファイルレシーバーは、SDPオファー/回答の手順に従ってSDP回答を作成します(RFC 3264 [RFC3264])。このSDP回答は、セクション8.3.1の要件に準拠しなければなりません (MUST)。次に、ファイルレシーバーがこのSDP回答をファイル送信者に送信します。

                        File sender            File receiver
                            |                        |
                            |\                       |
                            | \                      |
                            |  \                     |
                            |   \                    |
                            |    \                   |
                            |     \                  |
                     abort->|      \  MSRP SEND (#)  |
                            |       +--------------->|
                            | MSRP 200               |
                            |<-----------------------|
                            | re-INVITE (SDP offer)  |
                            |----------------------->|
                            | SIP 200 OK (SDP answer)|
                            |<-----------------------|
                            | SIP ACK                |
                            |----------------------->|
                            |                        |
        

Figure 4: File sender aborts an ongoing file transfer

図4:ファイル送信者は進行中のファイル転送を中止します

When the file receiver wants to abort the file transfer, there are two possible scenarios, depending on the value of the Failure-Report header in the ongoing MSRP SEND request. Assume now the scenario depicted in Figure 5 where the MSRP SEND request includes a Failure-Report header set to a value different than "no". When the file receiver wishes to abort the ongoing file transfer, the file receiver generates an MSRP 413 response to the current MSRP SEND request (see Section 10.5 of RFC 4975 [RFC4975]). Then the file receiver MUST close the MSRP session by generating a new SDP offer that sets the port number to zero in the related "m=" line that describes the file transfer (see Section 8.2 of RFC 3264 [RFC3264]). This SDP offer MUST conform with the requirements expressed in Section 8.2.2. The 'file-transfer-id' attribute MUST be the same attribute that identifies the ongoing transfer. Then the file receiver sends this SDP offer to the file sender.

ファイル受信側が転送を中止する場合、進行中のMSRP SEND要求のFailure-Reportヘッダーの値に応じて2つの状況があります。まず図5のように、Failure-Reportの値が「no」以外の場合を考えます。転送中止時、ファイル受信側は現在のMSRP SEND要求に対する413応答を生成します(RFC 4975 [RFC4975] の10.5節を参照)。次に、ファイル転送を記述する「m=」行のポート番号を0にした新しいSDPオファーを作成してMSRPセッションを閉じなければなりません (MUST)(RFC 3264 [RFC3264] の8.2節を参照)。このオファーは8.2.2節の要件に従わなければなりません (MUST)。`file-transfer-id`属性には進行中の転送と同じ値を設定しなければなりません (MUST)。その後、SDPオファーをファイル送信側へ送ります。

                     File sender            File receiver
                         |                        |
                         |\                       |
                         | \  MSRP SEND           |
                         |  \ Failure-Report: yes |
                         |   \                    |
                         |    \                   |
                         |     \                  |
                         |      \                 |
                         |       \                |
                         |        \               |
                         | MSRP 413               |<-abort
                         |<-----------------------|
                         |          \   (#)       |
                         |           +----------->|
                         | re-INVITE (SDP offer)  |
                         |<-----------------------|
                         | SIP 200 OK (SDP answer)|
                         |----------------------->|
                         | SIP ACK                |
                         |<-----------------------|
                         |                        |
        

Figure 5: File receiver aborts an ongoing file transfer. Failure-Report set to a value different than "no" in MSRP

図5:ファイルレシーバーは、進行中のファイル転送を中止します。MSRPの「いいえ」とは異なる値に障害レポートが設定されています

In another scenario, depicted in Figure 6, an ongoing file transfer is taking place, where the MSRP SEND request contains a Failure-Report header set to the value "no". When the file receiver wants to abort the ongoing transfer, it MUST close the MSRP session by generating a new SDP offer that sets the port number to zero in the related "m=" line that describes the file transfer (see Section 8.2 of RFC 3264 [RFC3264]). This SDP offer MUST conform with the requirements expressed in Section 8.2.2. The 'file-transfer-id' attribute MUST be the same attribute that identifies the ongoing transfer. Then the file receiver sends this SDP offer to the file sender.

図6の別の状況では、MSRP SEND要求のFailure-Reportヘッダーが「no」に設定された状態でファイル転送が進行しています。ファイル受信側が転送を中止する場合、ファイル転送を記述する「m=」行のポート番号を0にした新しいSDPオファーを作成してMSRPセッションを閉じなければなりません (MUST)(RFC 3264 [RFC3264] の8.2節を参照)。このオファーは8.2.2節の要件に従わなければなりません (MUST)。`file-transfer-id`属性には進行中の転送と同じ値を設定しなければなりません (MUST)。その後、SDPオファーをファイル送信側へ送ります。

                     File sender            File receiver
                         |                        |
                         |\                       |
                         | \  MSRP SEND           |
                         |  \ Failure-Report: no  |
                         |   \                    |
                         |    \                   |
                         |     \                  |
                         |      \                 |
                         |       \                |
                         |        \               |
                         | re-INVITE (SDP offer)  |<-abort
                         |<-----------------------|
                         |          \   (#)       |
                         |           +----------->|
                         | MSRP 200               |
                         |<-----------------------|
                         | SIP 200 OK (SDP answer)|
                         |----------------------->|
                         | SIP ACK                |
                         |<-----------------------|
                         |                        |
        

Figure 6: File receiver aborts an ongoing file transfer. Failure-Report set to "no" in MSRP

図6:ファイルレシーバーは、進行中のファイル転送を中止します。MSRPで「いいえ」に設定された故障レポート

A file sender that receives an SDP offer setting the port number to zero in the related "m=" line for file transfer, first, if an ongoing MSRP SEND request is being transmitted, aborts the MSRP message by including the '#' character in the continuation field of the end-line of a SEND request, according to the MSRP procedures (see Section 7.1 of RFC 4975 [RFC4975]). Since a file is transmitted as one MSRP message, aborting the MSRP message effectively aborts the file transfer. Then the file sender creates an SDP answer according to the procedures of the SDP offer/answer (RFC 3264 [RFC3264]). This SDP answer MUST conform with the requirements of Section 8.3.2. Then the file sender sends this SDP answer to the file receiver.

SDPオファーを受信したファイル送信者は、最初にファイル転送の関連する「M =」行でポート番号をゼロに設定します。MSRP手順に従って、送信要求のエンドラインの継続フィールド(RFC 4975 [RFC4975]のセクション7.1を参照)。ファイルは1つのMSRPメッセージとして送信されるため、MSRPメッセージを中止すると、ファイル転送が効果的に中止されます。次に、ファイル送信者は、SDPオファー/回答の手順に従ってSDP回答を作成します(RFC 3264 [RFC3264])。このSDP回答は、セクション8.3.2の要件に準拠しなければなりません (MUST)。次に、ファイル送信者がこのSDP回答をファイルレシーバーに送信します。

8.5. Indicating File Transfer Offer/Answer Capability
8.5. ファイル転送オファー/回答機能を示す

The SDP offer/answer model [RFC3264] provides provisions for indicating a capability to another endpoint (see Section 9 of RFC 3264 [RFC3264]). The mechanism assumes a high-level protocol, such as SIP [RFC3261], that provides a capability query (such as a SIP OPTIONS request). RFC 3264 [RFC3264] indicates how to build the SDP that is included in the response to such capability query. As such, RFC 3264 indicates that an endpoint builds an SDP body that contains an "m=" line containing the media type (message, for MSRP). An endpoint that implements the procedures specified in this document SHOULD also add a 'file-selector' media attribute for the "m=message" line. The 'file-selector' media attribute MUST be empty, i.e., it MUST NOT contain any selector. The endpoint MUST NOT add any of the other file attributes defined in this specification.

SDPオファー/アンサーモデル [RFC3264] には、別のエンドポイントへ機能を通知する仕組みがあります(RFC 3264 [RFC3264] の9節を参照)。この仕組みは、SIP [RFC3261] のOPTIONS要求のような機能照会を提供する上位プロトコルを前提とします。RFC 3264 [RFC3264] は、その照会への応答に含めるSDPの作成方法を示しています。具体的には、MSRPの場合、メディア種別を示す「m=message」行を含むSDP本文を作成します。本書の手順を実装するエンドポイントは、この行に`file-selector`メディア属性を追加すべきです (SHOULD)。この属性は空にしなければなりません (MUST)。つまり、セレクターを含めてはなりません (MUST NOT)。本仕様で定義する他のファイル属性を追加してはなりません (MUST NOT)。

8.6. Reusage of Existing "m=" Lines in SDP
8.6. sdpの既存の「m =」行の再利用

The SDP offer/answer model [RFC3264] provides rules that allow SDP offerers and answerers to modify an existing media line, i.e., reuse an existing media line with different attributes. The same is also possible when SDP signals a file transfer operation according to the rules of this memo. Therefore, the procedures defined in RFC 3264 [RFC3264], in particular those defined in Section 8.3, MUST apply for file transfer operations. An endpoint that wants to reuse an existing "m=" line to start the file transfer of another file creates a different 'file-selector' attribute and selects a new globally unique random value of the 'file-transfer-id' attribute.

SDPのオファー/アンサーモデル[RFC3264]は、SDPのオファー側とアンサー側が既存のメディア行を変更する、つまり既存のメディア行を異なる属性で再利用することを可能にする規則を提供しています。このメモの規則に従ってSDPがファイル転送操作をシグナリングする場合も、同じことが可能です。したがって、RFC 3264 [RFC3264]で定義されている手順、特にセクション8.3で定義されている手順は、ファイル転送操作にも適用されなければなりません (MUST)。既存の「m=」行を再利用して別のファイルのファイル転送を開始したいエンドポイントは、異なる「file-selector」属性を作成し、「file-transfer-id」属性について新しいグローバルに一意なランダム値を選択します。

If the file offerer resends an SDP offer with a port different than zero, then the 'file-transfer-id' attribute determines whether a new file transfer will start or whether the file transfer does not need to start. If the SDP answerer accepts the SDP, then file transfer starts from the indicated octet (if a 'file-range' attribute is present).

ファイル送信側がポート番号を0以外にしたSDPオファーを再送した場合、`file-transfer-id`属性によって新しい転送を始めるかどうかが決まります。SDPアンサー側がオファーを受け入れると、`file-range`属性がある場合は指定されたオクテットから転送が始まります。

8.7. MSRP Usage
8.7. MSRP使用法

The file transfer service specified in this document uses "m=" lines in SDP to describe the unidirectional transfer of a file. Consequently, each MSRP session established following the procedures in Section 8.2 and Section 8.3 is only used to transfer a single file. So, senders MUST only use the dedicated MSRP session to send the file described in the SDP offer or answer. That is, senders MUST NOT send additional files over the same MSRP session.

このドキュメントで指定されたファイル転送サービスは、SDPの「M =」行を使用して、ファイルの単方向転送を記述します。その結果、セクション8.2およびセクション8.3の手順に従って確立された各MSRPセッションは、単一のファイルの転送にのみ使用されます。したがって、送信者は、専用のMSRPセッションのみを使用して、SDPオファーまたは回答に記載されているファイルを送信しなければなりません (MUST)。つまり、送信者は同じMSRPセッションで追加のファイルを送信してはなりません (MUST NOT)。

File transfer may be accomplished using a new multimedia session established for the purpose. Alternatively, a file transfer may be conducted within an existing multimedia session, without regard for the media in use within that session. Of particular note, file transfer may be done within a multimedia session containing an MSRP session used for regular instant messaging. If file transfer is initiated within an existing multimedia session, the SDP offerer MUST NOT reuse an existing "m=" line that is still being used by MSRP (either regular MSRP for instant messaging or an ongoing file transfer). Rather, it MUST add an additional "m=" line or else reuse an "m=" line that is no longer being used.

ファイル転送は、目的のために確立された新しいマルチメディアセッションを使用して達成できます。あるいは、そのセッション内で使用されているメディアに関係なく、既存のマルチメディアセッション内でファイル転送を実施することもできます。特に、ファイル転送は、通常のインスタントメッセージングに使用されるMSRPセッションを含むマルチメディアセッション内で行うことができます。既存のマルチメディアセッション内でファイル転送が開始された場合、SDPオファーは、MSRPによってまだ使用されている既存の「M =」行を再利用してはなりません (MUST NOT)(通常のMSRPのいずれか、または進行中のファイル転送)。むしろ、追加の「m =」行を追加するか、使用されなくなった「m =」行を再利用しなければなりません (MUST)。

Additionally, implementations according to this specification MUST include a single file in a single MSRP message. Notice that the MSRP specification defines "MSRP message" as a complete unit of MIME or text content, which can be split and delivered in more than one MSRP request; each of these portions of the complete message is called a "chunk". So, it is still valid to send a file in several chunks, but from the MSRP point of view, all the chunks together form an MSRP message: the Common Presence and Instant Messaging (CPIM) message that wraps the file. When chunking is used, it should be noticed that MSRP does not require to wait for a 200-class response for a chunk before sending the following one. Therefore, it is valid to send pipelined MSRP SEND requests containing chunks of the same MSRP message (the file). Section 9.1 contains an example of a file transfer using pipelined MSRP requests.

さらに、この仕様に従う実装は、単一のMSRPメッセージに単一のファイルを含めなければなりません (MUST)。MSRP仕様では「MSRPメッセージ」をMIMEまたはテキストコンテンツの完全な単位として定義しており、それを分割して複数のMSRPリクエストで配送できることに注意してください。完全なメッセージのこれらの各部分は「チャンク」と呼ばれます。したがって、ファイルを複数のチャンクで送信することは依然として有効ですが、MSRPの観点からは、すべてのチャンクが合わさって1つのMSRPメッセージ、つまりファイルを包むCommon Presence and Instant Messaging(CPIM)メッセージを構成します。チャンクを使用する場合、MSRPでは、次のチャンクを送信する前に前のチャンクに対する200番台の応答を待つ必要はないことに注意すべきです。したがって、同じMSRPメッセージ(ファイル)のチャンクを含むMSRP SENDリクエストをパイプライン化して送信することは有効です。セクション9.1には、パイプライン化したMSRPリクエストを使用したファイル転送の例が含まれています。

The MSRP specification [RFC4975] defines a 'max-size' SDP attribute. This attribute specifies the maximum number of octets of an MSRP message that the creator of the SDP is willing to receive (notice once more the definition of "MSRP message"). File receivers MAY add a 'max-size' attribute to the MSRP "m=" line that specifies the file, indicating the maximum number of octets of an MSRP message. File senders MUST NOT exceed the 'max-size' limit for any message sent in the resulting session.

MSRP仕様[RFC4975]は、「Max-Size」SDP属性を定義します。この属性は、SDPの作成者が受信することをいとわないMSRPメッセージの最大オクテットの数を指定します(「MSRPメッセージ」の定義にもう一度通知)。ファイルレシーバーは、ファイルを指定するMSRP "m ="行に「max-size」属性を追加する場合があり (MAY)、MSRPメッセージのオクテットの最大数を示します。ファイル送信者は、結果のセッションで送信されたメッセージの「最大サイズ」の制限を超えてはなりません (MUST NOT)。

In the absence of a 'file-range' attribute in the SDP, the MSRP file transfer MUST start with the first octet of the file and end with the last octet (i.e., the whole file is transferred). If a 'file-range' attribute is present in SDP, the file sender application MUST extract the indicated range of octets from the file (start and stop offset octets, both inclusive). Then the file sender application MAY wrap those octets in an appropriate wrapper. MSRP mandates implementations to implement the message/cpim wrapper [RFC3862]. Usage of a wrapper is negotiated in the SDP (see Section 8.6 in RFC 4975 [RFC4975]). Last, the file sender application delivers the content (e.g., the message/cpim body) to MSRP for transportation. MSRP will consider the delivered content as a whole message, and will start numbering bytes with the number 1.

SDPに`file-range`属性がない場合、MSRPによるファイル転送はファイルの先頭オクテットから始まり、末尾のオクテットで終わらなければなりません (MUST)。つまり、ファイル全体を転送します。`file-range`属性がある場合、ファイル送信側アプリケーションは指定範囲のオクテット(開始位置と終了位置の両方を含む)をファイルから取り出さなければなりません (MUST)。そのオクテット列を適切なラッパーで包んでもかまいません (MAY)。MSRP実装はmessage/cpimラッパー [RFC3862] をサポートする必要があります。ラッパーの使用はSDPでネゴシエーションします(RFC 4975 [RFC4975] の8.6節を参照)。最後に、ファイル送信側アプリケーションは内容(例: message/cpim本文)を転送用にMSRPへ渡します。MSRPは渡された内容全体を1つのメッセージとして扱い、そのバイト番号を1から始めます。

Note that the default content disposition of MSRP bodies is 'render'. When MSRP is used to transfer files, the MSRP Content-Disposition header can also take the value 'attachment' as indicated in Section 7.

MSRPボディのデフォルトコンテンツ処分は「レンダリング」であることに注意してください。MSRPを使用してファイルを転送する場合、MSRPコンテンツ閉フォポジションヘッダーは、セクション7に示されているように、値「添付ファイル」を取得することもできます。

Once the file transfer is completed, the file sender SHOULD close the MSRP session and MUST behave according to the MSRP [RFC4975] procedures with respect to closing MSRP sessions. Note that MSRP session management is not related to TCP connection management. As a matter of fact, MSRP allows multiple MSRP sessions to share the same TCP connection.

ファイル転送の完了後、ファイル送信側はMSRPセッションを閉じるべきです (SHOULD)。また、MSRPセッションの終了についてはMSRP [RFC4975] の手順に従わなければなりません (MUST)。MSRPセッション管理とTCP接続管理は別のものです。実際、MSRPでは複数のMSRPセッションが同じTCP接続を共有できます。

8.8. Considerations about the 'file-icon' Attribute
8.8. `file-icon`属性に関する考慮事項

This specification allows a file sender to include a small preview of an image file: an icon. A 'file-icon' attribute contains a Content-ID (CID) URL [RFC2392] pointing to an additional body that contains the actual icon. Since the icon is sent as a separate body along the SDP body, the file sender MUST wrap the SDP body and the icon bodies in a MIME multipart/related body. Therefore, implementations according to this specification MUST implement the multipart/related MIME type [RFC2387]. When creating a multipart/ related MIME wrapper, the SDP body MUST be the root body, which according to RFC 2387 [RFC2387] is identified as the first body in the multipart/related MIME wrapper or explicitly identified by the 'start' parameter. According to RFC 2387 [RFC2387], the 'type' parameter MUST be present and point to the root body, i.e., the SDP body.

本仕様では、ファイル送信側が画像ファイルの小さなプレビュー(アイコン)を含められます。`file-icon`属性には、実際のアイコンを含む追加ボディを指すContent-ID(CID)URL [RFC2392] を指定します。アイコンはSDPボディと別のボディとして送信するため、ファイル送信側はSDPボディとアイコンのボディをMIME multipart/relatedボディにまとめなければなりません (MUST)。したがって、本仕様に準拠する実装はmultipart/related MIMEタイプ [RFC2387] を実装しなければなりません (MUST)。multipart/related MIMEラッパーを作成するときは、SDPボディをルートボディにしなければなりません (MUST)。RFC 2387 [RFC2387] では、ルートボディはラッパー内の先頭ボディ、または`start`パラメーターで明示されたボディとして識別されます。同RFCに従い、`type`パラメーターを含め、ルートボディ、つまりSDPボディを示さなければなりません (MUST)。

Assume that an endpoint behaving according to this specification tries to send a file to a remote endpoint that neither implements this specification nor implements multipart MIME bodies. The file sender sends an SDP offer that contains a multipart/related MIME body that includes an SDP body part and an icon body part. The file receiver, not supporting multipart MIME types, will reject the SDP offer via a higher protocol mechanism (e.g., SIP). In this case, it is RECOMMENDED that the file sender removes the icon body part, creates a single SDP body (i.e., without multipart MIME), and resends the SDP offer. This provides some backwards compatibility with file receives that do not implement this specification and increases the chances of getting the SDP accepted at the file receiver.

本仕様にもmultipart MIMEボディにも対応していない相手に、本仕様準拠のエンドポイントがファイルを送る場合を考えます。送信側は、SDPボディとアイコンボディを含むmultipart/related MIMEボディを含めたSDPオファーを送ります。multipart MIMEに対応しない受信側は、上位プロトコル(例: SIP)を通じてそのオファーを拒否します。この場合、送信側はアイコンボディを取り除き、multipart MIMEを使わない単一のSDPボディを作成して、オファーを再送することが推奨されます (RECOMMENDED)。これにより、本仕様に対応していないファイル受信側との後方互換性が得られ、SDPオファーが受け入れられる可能性も高まります。

Since the icon is sent as part of the signaling, it is RECOMMENDED to keep the size of icons restricted to the minimum number of octets that provide significance.

アイコンはシグナリングの一部として送るため、意味を伝えるのに必要な最小限のオクテット数にアイコンのサイズを抑えることが推奨されます (RECOMMENDED)。

9. Examples
9. 例
9.1. Offerer Sends a File to the Answerer
9.1. OffererによるAnswererへのファイル送信

This section shows an example flow for a file transfer scenario. The example assumes that SIP [RFC3261] is used to transport the SDP offer/answer exchange, although the SIP details are briefly shown for the sake of brevity.

このセクションは、ファイル転送シナリオのフローの例を示しています。この例は、SIP [RFC3261]を使用してSDPオファー/回答の交換を輸送することを前提としていますが、SIPの詳細は簡潔にするために一時的に表示されます。

Alice, the SDP offerer, wishes to send an image file to Bob (the answerer). Alice's User Agent Client (UAC) creates a unidirectional SDP offer that contains the description of the file that she wants to send to Bob's User Agent Server (UAS). The description also includes an icon representing the contents of the file to be transferred. The sequence flow is shown in Figure 7.

SDPオファーのアリスは、Bob(The Answerer)に画像ファイルを送信したいと考えています。Aliceのユーザーエージェントクライアント(UAC)は、Bobのユーザーエージェントサーバー(UAS)に送信したいファイルの説明を含む単方向SDPオファーを作成します。説明には、転送されるファイルの内容を表すアイコンも含まれています。シーケンスの流れを図7に示します。

                   Alice's UAC                 Bob's UAS
                         |                        |
                         |(1) (SIP) INVITE        |
                         |----------------------->|
                         |(2) (SIP) 200 OK        |
                         |<-----------------------|
                         |(3) (SIP) ACK           |
                         |----------------------->|
                         |                        |
                         |(4) (MSRP) SEND (chunk) |
                         |----------------------->|
                         |(5) (MSRP) SEND (chunk) |
                         |----------------------->|
                         |(6) (MSRP) 200 OK       |
                         |<-----------------------|
                         |(7) (MSRP) 200 OK       |
                         |<-----------------------|
                         |                        |
                         |(8) (SIP) BYE           |
                         |----------------------->|
                         |(9) (SIP) 200 OK        |
                         |<-----------------------|
                         |                        |
                         |                        |
        

Figure 7: Flow diagram of an offerer sending a file to an answerer

図7:応募者が応答者に送信するフロー図

F1: Alice constructs an SDP description of the file to be sent and attaches it to a SIP INVITE request addressed to Bob.

F1:アリスは、送信されるファイルのSDP説明を構築し、ボブに宛てられたSIP INVITEリクエストに添付します。

   INVITE sip:bob@example.com SIP/2.0
   To: Bob <sip:bob@example.com>
   From: Alice <sip:alice@example.com>;tag=1928301774
   Call-ID: a84b4c76e66710
   CSeq: 1 INVITE
   Max-Forwards: 70
   Date: Sun, 21 May 2006 13:02:03 GMT
   Contact: <sip:alice@alicepc.example.com>
   Content-Type: multipart/related; type="application/sdp";
                 boundary="boundary71"
   Content-Length: [length]
        
   --boundary71
   Content-Type: application/sdp
   Content-Length: [length of SDP]
        
   v=0
   o=alice 2890844526 2890844526 IN IP4 alicepc.example.com
   s=
   c=IN IP4 alicepc.example.com
   t=0 0
   m=message 7654 TCP/MSRP *
   i=This is my latest picture
   a=sendonly
   a=accept-types:message/cpim
   a=accept-wrapped-types:*
   a=path:msrp://alicepc.example.com:7654/jshA7we;tcp
   a=file-selector:name:"My cool picture.jpg" type:image/jpeg
     size:4092 hash:sha-1:
     72:24:5F:E8:65:3D:DA:F3:71:36:2F:86:D4:71:91:3E:E4:A2:CE:2E
   a=file-transfer-id:Q6LMoGymJdh0IKIgD6wD0jkcfgva4xvE
   a=file-disposition:render
   a=file-date:creation:"Mon, 15 May 2006 15:01:31 +0300"
   a=file-icon:cid:id2@alicepc.example.com
        
   --boundary71
   Content-Type: image/jpeg
   Content-Transfer-Encoding: binary
   Content-ID: <id2@alicepc.example.com>
   Content-Length: [length of image]
   Content-Disposition: icon
        

[...small preview icon of the file...]

[...ファイルの小さなプレビューアイコン...]

--boundary71--

-boundary71--

Figure 8: INVITE request containing an SDP offer for file transfer

図8:ファイル転送のためのSDPオファーを含むリクエストをINVITEする

NOTE: The Content-Type header field and the 'file-selector' attribute in the above figure are split in several lines for formatting purposes. Real implementations will encode it in a single line.

注: 上図では整形の都合上、Content-Typeヘッダーフィールドと`file-selector`属性を複数行に分けています。実際の実装では1行でエンコードします。

From now on we omit the SIP details for the sake of brevity.

これからは、簡潔にするためにSIPの詳細を省略します。

F2: Bob receives the INVITE request, inspects the SDP offer and extracts the icon body, checks the creation date and file size, and decides to accept the file transfer. So Bob creates the following SDP answer:

F2:ボブはINVITEリクエストを受け取り、SDPのオファーを検査し、アイコン本体を抽出し、作成日とファイルサイズをチェックし、ファイル転送を受け入れることを決定します。したがって、ボブは次のSDP回答を作成します。

   v=0
   o=bob 2890844656 2890844656 IN IP4 bobpc.example.com
   s=
   c=IN IP4 bobpc.example.com
   t=0 0
   m=message 8888 TCP/MSRP *
   a=recvonly
   a=accept-types:message/cpim
   a=accept-wrapped-types:*
   a=path:msrp://bobpc.example.com:8888/9di4ea;tcp
   a=file-selector:name:"My cool picture.jpg" type:image/jpeg
     size:4092 hash:sha-1:
     72:24:5F:E8:65:3D:DA:F3:71:36:2F:86:D4:71:91:3E:E4:A2:CE:2E
   a=file-transfer-id:Q6LMoGymJdh0IKIgD6wD0jkcfgva4xvE
        

Figure 9: SDP answer accepting the SDP offer for file transfer

図9:SDP回答ファイル転送のためのSDPオファーを受け入れる

NOTE: The 'file-selector' attribute in the above figure is split in three lines for formatting purposes. Real implementations will encode it in a single line.

注: 上図では整形の都合上、`file-selector`属性を3行に分けています。実際の実装では1行でエンコードします。

F4: Alice opens a TCP connection to Bob and creates an MSRP SEND request. This SEND request contains the first chunk of the file.

F4:AliceはBOBへのTCP接続を開き、MSRP送信リクエストを作成します。この送信要求には、ファイルの最初のチャンクが含まれています。

   MSRP d93kswow SEND
   To-Path: msrp://bobpc.example.com:8888/9di4ea;tcp
   From-Path: msrp://alicepc.example.com:7654/iau39;tcp
   Message-ID: 12339sdqwer
   Byte-Range: 1-2048/4385
   Content-Type: message/cpim
        
   To: Bob <sip:bob@example.com>
   From: Alice <sip:alice@example.com>
   DateTime: 2006-05-15T15:02:31-03:00
   Content-Disposition: render; filename="My cool picture.jpg";
                      creation-date="Mon, 15 May 2006 15:01:31 +0300";
                      size=4092
   Content-Type: image/jpeg
        
   ... first set of bytes of the JPEG image ...
   -------d93kswow+
        

Figure 10: MSRP SEND request containing the first chunk of actual file

図10:実際のファイルの最初のチャンクを含むMSRP送信リクエスト

F5: Alice sends the second and last chunk. Note that MSRP allows to send pipelined chunks, so there is no need to wait for the 200 (OK) response from the previous chunk.

F5:アリスは2番目と最後のチャンクを送ります。MSRPはパイプラインのチャンクを送信できるため、以前のチャンクから200(OK)の応答を待つ必要はないことに注意してください。

   MSRP op2nc9a SEND
   To-Path: msrp://bobpc.example.com:8888/9di4ea;tcp
   From-Path: msrp://alicepc.example.com:7654/iau39;tcp
   Message-ID: 12339sdqwer
   Byte-Range: 2049-4385/4385
   Content-Type: message/cpim
        
   ... second set of bytes of the JPEG image ...
   -------op2nc9a$
        

Figure 11: MSRP SEND request containing the second chunk of actual file

図11:実際のファイルの2番目のチャンクを含むMSRP送信リクエスト

F6: Bob acknowledges the reception of the first chunk.

F6:ボブは、最初のチャンクの受容を認めています。

   MSRP d93kswow 200 OK
   To-Path: msrp://alicepc.example.com:7654/iau39;tcp
   From-Path: msrp://bobpc.example.com:8888/9di4ea;tcp
   Byte-Range: 1-2048/4385
   -------d93kswow$
        

Figure 12: MSRP 200 OK response

図12:MSRP 200 OK応答

F7: Bob acknowledges the reception of the second chunk.

F7:ボブは2番目のチャンクの受容を認めています。

   MSRP op2nc9a 200 OK
   To-Path: msrp://alicepc.example.com:7654/iau39;tcp
   From-Path: msrp://bobpc.example.com:8888/9di4ea;tcp
   Byte-Range: 2049-4385/4385
   -------op2nc9a$
        

Figure 13: MSRP 200 OK response

図13:MSRP 200 OK応答

F8: Alice terminates the SIP session by sending a SIP BYE request.

F8:Aliceは、SIP Byeリクエストを送信してSIPセッションを終了します。

F9: Bob acknowledges the reception of the BYE request and sends a 200 (OK) response.

F9:ボブは、Byeリクエストの受信を認め、200(OK)応答を送信します。

9.2. Offerer Requests a File from the Answerer and Second File Transfer
9.2. offererは、nessererからファイルを要求し、2番目のファイル転送

In this example, Alice, the SDP offerer, first wishes to fetch a file from Bob, the SDP answerer. Alice knows that Bob has a specific file she wants to download. She has learned the hash of the file by some out-of-band mechanism. The hash selector is enough to produce a file selector that points to the specific file. So, Alice creates an SDP offer that contains the file descriptor. Bob accepts the file transfer and sends the file to Alice. When Alice has completely received Bob's file, she intends to send a new image file to Bob. Therefore, Alice reuses the existing SDP media line with different attributes and updates the description of the new file she wants to send to Bob's User Agent Server (UAS). In particular, Alice creates a new file transfer identifier since this is a new file transfer operation. Figure 14 shows the sequence flow.

この例では、SDPオファーであるアリスは、最初にSDP回答者のボブからファイルを取得したいと考えています。アリスは、ボブがダウンロードしたい特定のファイルを持っていることを知っています。彼女は、いくつかの帯域外のメカニズムによってファイルのハッシュを学びました。ハッシュセレクターは、特定のファイルを指すファイルセレクターを生成するのに十分です。そのため、アリスはファイル記述子を含むSDPオファーを作成します。ボブはファイルの転送を受け入れ、ファイルをアリスに送信します。アリスがボブのファイルを完全に受け取ったとき、彼女は新しい画像ファイルをボブに送信するつもりです。したがって、Aliceは、既存のSDPメディアラインをさまざまな属性で再利用し、Bobのユーザーエージェントサーバー(UAS)に送信したい新しいファイルの説明を更新します。特に、Aliceは新しいファイル転送操作であるため、新しいファイル転送識別子を作成します。図14は、シーケンスフローを示しています。

                   Alice's UAC                 Bob's UAS
                         |                        |
                         |(1) (SIP) INVITE        |
                         |----------------------->|
                         |(2) (SIP) 200 OK        |
                         |<-----------------------|
                         |(3) (SIP) ACK           |
                         |----------------------->|
                         |                        |
                         |(4) (MSRP) SEND (file)  |
                         |<-----------------------|
                         |(5) (MSRP) 200 OK       |
                         |----------------------->|
                         |                        |
                         |(6) (SIP) INVITE        |
                         |----------------------->|
                         |(7) (SIP) 200 OK        |
                         |<-----------------------|
                         |(8) (SIP) ACK           |
                         |----------------------->|
                         |                        |
                         |(9) (MSRP) SEND (file)  |
                         |----------------------->|
                         |(10) (MSRP) 200 OK      |
                         |<-----------------------|
                         |                        |
                         |(11) (SIP) BYE          |
                         |<-----------------------|
                         |(12) (SIP) 200 OK       |
                         |----------------------->|
                         |                        |
                         |                        |
        

Figure 14: Flow diagram of an offerer requesting a file from the answerer and then sending a file to the answer

図14:応募者のフロー図は、応答者からファイルをリクエストしてから回答にファイルを送信する

F1: Alice constructs an SDP description of the file she wants to receive and attaches the SDP offer to a SIP INVITE request addressed to Bob.

F1:Aliceは、受信したいファイルのSDP説明を作成し、BOBに宛てられたSIP INVITEリクエストにSDPオファーを添付します。

   INVITE sip:bob@example.com SIP/2.0
   To: Bob <sip:bob@example.com>
   From: Alice <sip:alice@example.com>;tag=1928301774
   Call-ID: a84b4c76e66710
   CSeq: 1 INVITE
   Max-Forwards: 70
   Date: Sun, 21 May 2006 13:02:03 GMT
   Contact: <sip:alice@alicepc.example.com>
   Content-Type: application/sdp
   Content-Length: [length of SDP]
        
   v=0
   o=alice 2890844526 2890844526 IN IP4 alicepc.example.com
   s=
   c=IN IP4 alicepc.example.com
   t=0 0
   m=message 7654 TCP/MSRP *
   a=recvonly
   a=accept-types:message/cpim
   a=accept-wrapped-types:*
   a=path:msrp://alicepc.example.com:7654/jshA7we;tcp
   a=file-selector:hash:sha-1:
     72:24:5F:E8:65:3D:DA:F3:71:36:2F:86:D4:71:91:3E:E4:A2:CE:2E
   a=file-transfer-id:aCQYuBRVoUPGVsFZkCK98vzcX2FXDIk2
        

Figure 15: INVITE request containing an SDP offer for file transfer

図15:ファイル転送のためのSDPオファーを含むリクエストをINVITEする

NOTE: The 'file-selector' attribute in the above figure is split in two lines for formatting purposes. Real implementations will encode it in a single line.

注: 上図では整形の都合上、`file-selector`属性を2行に分けています。実際の実装では1行でエンコードします。

From now on we omit the SIP details for the sake of brevity.

これからは、簡潔にするためにSIPの詳細を省略します。

   F2: Bob receives the INVITE request, inspects the SDP offer, computes
   the file descriptor, and finds a local file whose hash equals the one
   indicated in the SDP.  Bob accepts the file transfer and creates an
   SDP answer as follows:
   v=0
   o=bob 2890844656 2890855439 IN IP4 bobpc.example.com
   s=
   c=IN IP4 bobpc.example.com
   t=0 0
   m=message 8888 TCP/MSRP *
   a=sendonly
   a=accept-types:message/cpim
   a=accept-wrapped-types:*
   a=path:msrp://bobpc.example.com:8888/9di4ea;tcp
   a=file-selector:type:image/jpeg hash:sha-1:
     72:24:5F:E8:65:3D:DA:F3:71:36:2F:86:D4:71:91:3E:E4:A2:CE:2E
   a=file-transfer-id:aCQYuBRVoUPGVsFZkCK98vzcX2FXDIk2
        

Figure 16: SDP answer accepting the SDP offer for file transfer

図16:SDP回答ファイル転送のためのSDPオファーを受け入れる

NOTE: The 'file-selector' attribute in the above figure is split in two lines for formatting purposes. Real implementations will encode it in a single line.

注: 上図では整形の都合上、`file-selector`属性を2行に分けています。実際の実装では1行でエンコードします。

F4: Alice opens a TCP connection to Bob. Bob then creates an MSRP SEND request that contains the file.

F4:アリスはボブへのTCP接続を開きます。その後、ボブはファイルを含むMSRP送信要求を作成します。

   MSRP d93kswow SEND
   To-Path: msrp://alicepc.example.com:7654/jshA7we;tcp
   From-Path: msrp://bobpc.example.com:8888/9di4ea;tcp
   Message-ID: 12339sdqwer
   Byte-Range: 1-2027/2027
   Content-Type: message/cpim
        
   To: Bob <sip:bob@example.com>
   From: Alice <sip:alice@example.com>
   DateTime: 2006-05-15T15:02:31-03:00
   Content-Disposition: render; filename="My cool photo.jpg";
                  creation-date="Mon, 15 May 2006 15:01:31 +0300";
                  modification-date="Mon, 15 May 2006 16:04:53 +0300";
                  read-date="Mon, 16 May 2006 09:12:27 +0300";
                  size=1931
   Content-Type: image/jpeg
        
   ...binary JPEG image...
   -------d93kswow$
        

Figure 17: MSRP SEND request containing the actual file

図17:MSRPは実際のファイルを含むリクエストを送信します

F5: Alice acknowledges the reception of the SEND request.

F5:アリスは、送信要求の受信を認めています。

   MSRP d93kswow 200 OK
   To-Path: msrp://bobpc.example.com:8888/9di4ea;tcp
   From-Path: msrp://alicepc.example.com:7654/jshA7we;tcp
   Byte-Range: 1-2027/2027
   -------d93kswow$
        

Figure 18: MSRP 200 OK response

図18:MSRP 200 OK応答

F6: Alice reuses the existing SDP media line inserting the description of the file to be sent and attaches it to a SIP re-INVITE request addressed to Bob. Alice reuses the TCP port number for the MSRP stream, but changes the MSRP session and the 'file-transfer-id' value according to this specification.

F6: Aliceは送信するファイルの記述を既存のSDPメディア行に追加して再利用し、Bob宛てのSIP re-INVITE要求に添付します。MSRPストリームのTCPポート番号は再利用しますが、本仕様に従ってMSRPセッションと`file-transfer-id`の値を変更します。

   INVITE sip:bob@example.com SIP/2.0
   To: Bob <sip:bob@example.com>;tag=1928323431
   From: Alice <sip:alice@example.com>;tag=1928301774
   Call-ID: a84b4c76e66710
   CSeq: 2 INVITE
   Max-Forwards: 70
   Date: Sun, 21 May 2006 13:02:33 GMT
   Contact: <sip:alice@alicepc.example.com>
   Content-Type: multipart/related; type="application/sdp";
                 boundary="boundary71"
   Content-Length: [length of multipart]
        
   --boundary71
   Content-Type: application/sdp
   Content-Length: [length of SDP]
        
   v=0
   o=alice 2890844526 2890844527 IN IP4 alicepc.example.com
   s=
   c=IN IP4 alicepc.example.com
   t=0 0
   m=message 7654 TCP/MSRP *
   i=This is my latest picture
   a=sendonly
   a=accept-types:message/cpim
   a=accept-wrapped-types:*
   a=path:msrp://alicepc.example.com:7654/iau39;tcp
   a=file-selector:name:"sunset.jpg" type:image/jpeg
     size:4096 hash:sha-1:
     58:23:1F:E8:65:3B:BC:F3:71:36:2F:86:D4:71:91:3E:E4:B1:DF:2F
   a=file-transfer-id:ZVE8MfI9mhAdZ8GyiNMzNN5dpqgzQlCO
   a=file-disposition:render
   a=file-date:creation:"Sun, 21 May 2006 13:02:15 +0300"
   a=file-icon:cid:id3@alicepc.example.com
        
   --boundary71
   Content-Type: image/jpeg
   Content-Transfer-Encoding: binary
   Content-ID: <id3@alicepc.example.com>
   Content-Length: [length of image]
   Content-Disposition: icon
        

[..small preview icon...]

[..Small Previewアイコン...]

--boundary71--

-boundary71--

Figure 19: Reuse of the SDP in a second file transfer

図19:2番目のファイル転送でのSDPの再利用

NOTE: The Content-Type header field and the 'file-selector' attribute in the above figure are split in several lines for formatting purposes. Real implementations will encode it in a single line.

注: 上図では整形の都合上、Content-Typeヘッダーフィールドと`file-selector`属性を複数行に分けています。実際の実装では1行でエンコードします。

F7: Bob receives the re-INVITE request, inspects the SDP offer and extracts the icon body, checks the creation date and the file size, and decides to accept the file transfer. So Bob creates an SDP answer where he reuses the same TCP port number, but changes his MSRP session, according to the procedures of this specification.

F7:Bobは、再インバイトリクエストを受け取り、SDPのオファーを検査し、アイコン本体を抽出し、作成日とファイルサイズをチェックし、ファイル転送を受け入れることを決定します。そのため、ボブはSDP回答を作成し、同じTCPポート番号を再利用しますが、この仕様の手順に従ってMSRPセッションを変更します。

   v=0
   o=bob 2890844656 2890855440 IN IP4 bobpc.example.com
   s=
   c=IN IP4 bobpc.example.com
   t=0 0
   m=message 8888 TCP/MSRP *
   a=recvonly
   a=accept-types:message/cpim
   a=accept-wrapped-types:*
   a=path:msrp://bobpc.example.com:8888/eh10dsk;tcp
   a=file-selector:name:"sunset.jpg" type:image/jpeg
     size:4096 hash:sha-1:
     58:23:1F:E8:65:3B:BC:F3:71:36:2F:86:D4:71:91:3E:E4:B1:DF:2F
   a=file-transfer-id:ZVE8MfI9mhAdZ8GyiNMzNN5dpqgzQlCO
   a=file-disposition:render
        

Figure 20: SDP answer accepting the SDP offer for file transfer

図20:SDP回答ファイル転送のSDPオファーを受け入れる

NOTE: The 'file-selector' attribute in the above figure is split in three lines for formatting purposes. Real implementations will encode it in a single line.

注: 上図では整形の都合上、`file-selector`属性を3行に分けています。実際の実装では1行でエンコードします。

F9: If a TCP connection towards Bob is already open, Alice reuses that TCP connection to send an MSRP SEND request that contains the file.

F9:ボブへのTCP接続がすでに開いている場合、アリスはそのTCP接続を再利用して、ファイルを含むMSRP送信要求を送信します。

   MSRP d95ksxox SEND
   To-Path: msrp://bobpc.example.com:8888/eh10dsk;tcp
   From-Path: msrp://alicepc.example.com:7654/iau39;tcp
   Message-ID: 13449sdqwer
   Byte-Range: 1-2027/2027
   Content-Type: message/cpim
        
   To: Bob <sip:bob@example.com>
   From: Alice <sip:alice@example.com>
   DateTime: 2006-05-21T13:02:15-03:00
   Content-Disposition: render; filename="Sunset.jpg";
                      creation-date="Sun, 21 May 2006 13:02:15 -0300";
                      size=1931
   Content-Type: image/jpeg
        
   ...binary JPEG image...
   -------d95ksxox+
        

Figure 21: MSRP SEND request containing the actual file

図21:実際のファイルを含むMSRP送信リクエスト

F10: Bob acknowledges the reception of the SEND request.

F10:ボブは、送信要求の受信を認めています。

   MSRP d95ksxox 200 OK
   To-Path: msrp://alicepc.example.com:7654/iau39;tcp
   From-Path: msrp://bobpc.example.com:8888/eh10dsk;tcp
   Byte-Range: 1-2027/2027
   -------d95ksxox$
        

Figure 22: MSRP 200 OK response

図22:MSRP 200 OK応答

F11: Then Bob terminates the SIP session by sending a SIP BYE request.

F11:その後、ボブはSIP Byeリクエストを送信してSIPセッションを終了します。

F12: Alice acknowledges the reception of the BYE request and sends a 200 (OK) response.

F12:アリスは、さようならリクエストの受信を認め、200(OK)応答を送信します。

9.3. Example of a Capability Indication
9.3. 機能表示の例

Alice sends an OPTIONS request to Bob (this request does not contain SDP). Bob answers with a 200 (OK) response that contain the SDP shown in Figure 24. The SDP indicates support for CPIM messages that can contain other MIME types. The maximum MSRP message size that the endpoint can receive is 20000 octets. The presence of the 'file-selector' attribute indicates support for the file transfer offer/ answer mechanism.

AliceはBobにOPTIONS要求を送ります(この要求にSDPは含まれません)。Bobは図24に示すSDPを含む200(OK)応答を返します。このSDPは、他のMIMEタイプを含められるCPIMメッセージへの対応を示します。エンドポイントが受信できるMSRPメッセージの最大サイズは20000オクテットです。`file-selector`属性があれば、ファイル転送オファー/アンサーメカニズムに対応していることを示します。

                   Alice's UAC                 Bob's UAS
                         |                        |
                         |(1) (SIP) OPTIONS       |
                         |----------------------->|
                         |(2) (SIP) 200 OK        |
                         |          with SDP      |
                         |<-----------------------|
                         |                        |
                         |                        |
        

Figure 23: Flow diagram of a capability request

図23:機能リクエストのフロー図

   v=0
   o=bob 2890844656 2890855439 IN IP4 bobpc.example.com
   s=-
   c=IN IP4 bobpc.example.com
   t=0 0
   m=message 0 TCP/MSRP *
   a=accept-types:message/cpim
   a=accept-wrapped-types:*
   a=max-size:20000
   a=file-selector
        

Figure 24: SDP of the 200 (OK) response to an OPTIONS request

図24:オプションリクエストに対する200(OK)応答のSDP

10. Security Considerations
10. セキュリティに関する考慮事項

The SDP attributes defined in this specification identify a file to be transferred between two endpoints. An endpoint can offer to send the file to the other endpoint or request to receive the file from the other endpoint. In the former case, an attacker modifying those SDP attributes could cheat the receiver making it think that the file to be transferred was a different one. In the latter case, the attacker could make the sender send a different file than the one requested by the receiver. Consequently, it is RECOMMENDED that integrity protection be applied to the SDP session descriptions carrying the attributes specified in this specification. Additionally, it is RECOMMENDED that senders verify the properties of the file against the selectors that describe it.

本仕様で定義するSDP属性は、2つのエンドポイント間で転送するファイルを特定します。エンドポイントは相手にファイルを送信するか、相手からファイルを受信するよう要求できます。前者では、攻撃者がSDP属性を改変すると、転送対象が別のファイルだと受信側に誤認させるおそれがあります。後者では、受信側が要求したものとは異なるファイルを送信側に送らせるおそれがあります。そのため、本仕様の属性を含むSDPセッション記述に完全性保護を適用することが推奨されます (RECOMMENDED)。また、送信側がファイルの属性を記述するセレクターと実ファイルの属性を照合することも推奨されます (RECOMMENDED)。

The descriptions of the files being transferred between endpoints may reveal information the endpoints may consider confidential. Therefore, it is RECOMMENDED that SDP session descriptions carrying the attributes specified in this specification are encrypted.

エンドポイント間で転送するファイルの説明から、エンドポイントが機密と考える情報が漏れる可能性があります。そのため、本仕様の属性を含むSDPセッション記述を暗号化することが推奨されます (RECOMMENDED)。

TLS and S/MIME are the natural choices to provide offer/answer exchanges with integrity protection and confidentiality.

TLSとS/MIMEは、整合性の保護と機密性を備えたオファー/回答の交換を提供するための自然な選択です。

When an SDP offer contains the description of a file to be sent or received, the SDP answerer MUST first authenticate the SDP offerer and then it MUST authorize the file transfer operation, typically according to a local policy. Typically, these functions are integrated in the high-level protocol that carries SDP (e.g., SIP), and in the file transfer protocol (e.g., MSRP). If SIP [RFC3261] and MSRP [RFC4975] are used, the standard mechanisms for user authentication and authorization are sufficient.

SDPオファーに送信または受信されるファイルの説明が含まれている場合、SDP回答者は最初にSDP提供者を認証しなければならず (MUST)、次にファイル転送操作を承認しなければなりません (MUST)。通常、ローカルポリシーに従って。通常、これらの関数は、SDP(SIPなど)を運ぶ高レベルのプロトコルとファイル転送プロトコル(MSRPなど)に統合されます。SIP [RFC3261]およびMSRP [RFC4975]が使用されている場合、ユーザー認証と承認の標準メカニズムで十分です。

It is possible that a malicious or misbehaving implementation tries to exhaust the resources of the remote endpoint, e.g., the internal memory or the file system, by sending very large files. To protect from this attack, an SDP answer SHOULD first verify the identity of the SDP offerer, and perhaps only accept file transfers from trusted sources. Mechanisms to verify the identity of the file sender depend on the high-level protocol that carries the SDP, for example, SIP [RFC3261] and MSRP [RFC4975].

非常に大きなファイルを送信することにより、悪意のあるまたは誤動作の実装が、リモートエンドポイント、たとえば内部メモリやファイルシステムのリソースを使い果たしようとする可能性があります。この攻撃から保護するために、SDPの回答は最初にSDP提供者のIDを検証し、おそらく信頼できるソースからのファイル転送のみを受け入れるべきです (SHOULD)。ファイル送信者のIDを検証するメカニズムは、SIP [RFC3261]およびMSRP [RFC4975]など、SDPを運ぶ高レベルのプロトコルに依存します。

It is also RECOMMENDED that implementations take measures to avoid attacks on resource exhaustion, for example, by limiting the size of received files, verifying that there is enough space in the file system to store the file prior to its reception, or limiting the number of simultaneous file transfers.

また、実装ではリソース枯渇攻撃を防ぐ措置を講じることが推奨されます (RECOMMENDED)。たとえば、受信ファイルのサイズを制限する、受信前にファイルシステムに十分な空き容量があることを確認する、同時に転送するファイル数を制限する、といった方法があります。

File receivers MUST also sanitize all input, such as the local file name, prior to making calls to the local file system to store a file. This is to prevent the existence of meaningful characters to the local operating system that could damage it.

ファイル受信者は、ファイルを保存するためにローカルファイルシステムに電話をかける前に、ローカルファイル名などのすべての入力を消毒しなければなりません (MUST)。これは、それを損傷する可能性のあるローカルオペレーティングシステムに意味のあるキャラクターの存在を防ぐためです。

Once a file has been transferred, the file receiver must take care of it. Typically, file transfer is a commonly used mechanism for transmitting computer virus, spyware, and other types of malware. File receivers should apply all possible security technologies (e.g., anti-virus, anti-spyware) to mitigate the risk of damage at their host.

ファイルが転送されたら、ファイルレシーバーがそれを処理する必要があります。通常、ファイル転送は、コンピューターウイルス、スパイウェア、およびその他のタイプのマルウェアを送信するために一般的に使用されるメカニズムです。ファイルレシーバーは、すべての可能なセキュリティテクノロジー(例:ウイルス対策、スパイウェア)を適用して、ホストでの損害のリスクを軽減する必要があります。

11. IANA Considerations
11. IANAの考慮事項

IANA has registered a number of SDP attributes according to the following.

IANAは、以下に従って多くのSDP属性を登録しています。

11.1. Registration of New SDP Attributes
11.1. 新しいSDP属性の登録

IANA has registered a number of media-level-only attributes in the Session Description Protocol Parameters registry [IANA]. The registration data, according to RFC 4566 [RFC4566], follows.

IANAは、セッション説明プロトコルパラメータレジストリ[IANA]に多くのメディアレベルのみの属性を登録しています。RFC 4566 [RFC4566]によると、登録データが続きます。

11.1.1. Registration of the file-selector Attribute
11.1.1. ファイルセレクター属性の登録
   Contact:  Miguel Garcia <miguel.a.garcia@ericsson.com>
        

Phone: +34 91 339 1000

電話:34 91 339 1000

Attribute name: file-selector

属性名: `file-selector`

Long-form attribute name: File Selector

長形式属性名: File Selector

Type of attribute: media level only This attribute is subject to the charset attribute

属性種別: メディアレベルのみ。charset属性の対象です。

Description: This attribute unambiguously identifies a file by indicating a combination of the 4-tuple composed of the name, size, type, and hash of the file.

説明: ファイル名、サイズ、種類、ハッシュで構成される4要素の組み合わせにより、ファイルを一意に識別します。

Specification: RFC 5547

仕様: RFC 5547

11.1.2. Registration of the file-transfer-id Attribute
11.1.2. `file-transfer-id`属性の登録
   Contact:  Miguel Garcia <miguel.a.garcia@ericsson.com>
        

Phone: +34 91 339 1000

Phone: +34 91 339 1000

Attribute name: file-transfer-id

属性名: `file-transfer-id`

Long-form attribute name: File Transfer Identifier

長形式属性名: File Transfer Identifier

Type of attribute: media level only This attribute is subject to the charset attribute

属性種別: メディアレベルのみ。charset属性の対象です。

Description: This attribute contains a unique identifier of the file transfer operation within the session.

説明: セッション内のファイル転送処理を一意に識別する値を格納します。

Specification: RFC 5547

仕様: RFC 5547

11.1.3. Registration of the file-disposition Attribute
11.1.3. `file-disposition`属性の登録
   Contact:  Miguel Garcia <miguel.a.garcia@ericsson.com>
        

Phone: +34 91 339 1000

Phone: +34 91 339 1000

Attribute name: file-disposition

属性名: `file-disposition`

Long-form attribute name: File Disposition

長形式属性名: File Disposition

Type of attribute: media level only

属性種別: メディアレベルのみ

This attribute is not subject to the charset attribute

charset属性の対象ではありません。

Description: This attribute provides a suggestion to the other endpoint about the intended disposition of the file.

説明: ファイルの処理方法について相手のエンドポイントに提案します。

Specification: RFC 5547

仕様: RFC 5547

11.1.4. Registration of the file-date Attribute
11.1.4. `file-date`属性の登録
   Contact:  Miguel Garcia <miguel.a.garcia@ericsson.com>
        

Phone: +34 91 339 1000

Phone: +34 91 339 1000

Attribute name: file-date

属性名: `file-date`

Long-form attribute name:

長形式属性名:

Type of attribute: media level only This attribute is not subject to the charset attribute

属性種別: メディアレベルのみ。charset属性の対象ではありません。

Description: This attribute indicates the dates on which the file was created, modified, or last read.

説明: ファイルの作成日、変更日、または最終読み取り日を示します。

Specification: RFC 5547

仕様: RFC 5547

11.1.5. Registration of the file-icon Attribute
11.1.5. `file-icon`属性の登録
   Contact:  Miguel Garcia <miguel.a.garcia@ericsson.com>
        

Phone: +34 91 339 1000

Phone: +34 91 339 1000

Attribute name: file-icon

属性名: `file-icon`

Long-form attribute name: File Icon

長形式属性名: File Icon

Type of attribute: media level only This attribute is not subject to the charset attribute

属性種別: メディアレベルのみ。charset属性の対象ではありません。

Description: For image files, this attribute contains a pointer to a body that includes a small preview icon representing the contents of the file to be transferred.

説明: 画像ファイルの場合、転送するファイルの内容を表す小さなプレビューアイコンを含むボディへの参照を指定します。

Specification: RFC 5547

仕様: RFC 5547

11.1.6. Registration of the file-range Attribute
11.1.6. `file-range`属性の登録
   Contact:  Miguel Garcia <miguel.a.garcia@ericsson.com>
        

Phone: +34 91 339 1000

Phone: +34 91 339 1000

Attribute name: file-range

属性名: `file-range`

Long-form attribute name: File Range

長形式属性名: File Range

Type of attribute: media level only This attribute is not subject to the charset attribute

属性種別: メディアレベルのみ。charset属性の対象ではありません。

Description: This attribute contains the range of transferred octets of the file.

説明: 転送対象となるファイル内のオクテット範囲を示します。

Specification: RFC 5547

仕様: RFC 5547

12. Acknowledgments
12. 謝辞

The authors would like to thank Mats Stille, Nancy Greene, Adamu Haruna, and Arto Leppisaari for discussing initial concepts described in this memo. Thanks to Pekka Kuure for reviewing initial versions of this document and providing helpful comments. Joerg Ott, Jiwey Wang, Amitkumar Goel, Sudha Vs, Dan Wing, Juuso Lehtinen, Remi Denis-Courmont, Colin Perkins, Sudhakar An, Peter Saint-Andre, Jonathan Rosenberg, Eric Rescorla, Vikram Chhibber, Ben Campbell, Richard Barnes, and Chris Newman discussed and provided comments and improvements to this document.

著者は、本メモで述べた初期概念について議論してくださったMats Stille, Nancy Greene, Adamu Haruna, Arto Leppisaariに感謝します。本書の初期版をレビューし、有益なコメントをくださったPekka Kuureにも感謝します。また、Joerg Ott, Jiwey Wang, Amitkumar Goel, Sudha Vs, Dan Wing, Juuso Lehtinen, Remi Denis-Courmont, Colin Perkins, Sudhakar An, Peter Saint-Andre, Jonathan Rosenberg, Eric Rescorla, Vikram Chhibber, Ben Campbell, Richard Barnes, Chris Newmanから、本書に関する議論、コメント、改善案をいただきました。

13. References
13. 参考文献
13.1. Normative References
13.1. 引用文献

[RFC2119] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, March 1997.

[RFC2119] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, March 1997.

[RFC2045] Freed, N. and N. Borenstein, "Multipurpose Internet Mail Extensions (MIME) Part One: Format of Internet Message Bodies", RFC 2045, November 1996.

[RFC2045] Freed, N. and N. Borenstein, "Multipurpose Internet Mail Extensions (MIME) Part One: Format of Internet Message Bodies", RFC 2045, November 1996.

[RFC2183] Troost, R., Dorner, S., and K. Moore, "Communicating Presentation Information in Internet Messages: The Content-Disposition Header Field", RFC 2183, August 1997.

[RFC2183] Troost, R., Dorner, S., and K. Moore, "Communicating Presentation Information in Internet Messages: The Content-Disposition Header Field", RFC 2183, August 1997.

[RFC2387] Levinson, E., "The MIME Multipart/Related Content-type", RFC 2387, August 1998.

[RFC2387] Levinson, E., "The MIME Multipart/Related Content-type", RFC 2387, August 1998.

[RFC2392] Levinson, E., "Content-ID and Message-ID Uniform Resource Locators", RFC 2392, August 1998.

[RFC2392] Levinson, E., "Content-ID and Message-ID Uniform Resource Locators", RFC 2392, August 1998.

[RFC3174] Eastlake, D. and P. Jones, "US Secure Hash Algorithm 1 (SHA1)", RFC 3174, September 2001.

[RFC3174] Eastlake, D. and P. Jones, "US Secure Hash Algorithm 1 (SHA1)", RFC 3174, September 2001.

[RFC3264] Rosenberg, J. and H. Schulzrinne, "An Offer/Answer Model with Session Description Protocol (SDP)", RFC 3264, June 2002.

[RFC3264] Rosenberg, J. and H. Schulzrinne, "An Offer/Answer Model with Session Description Protocol (SDP)", RFC 3264, June 2002.

[RFC3629] Yergeau, F., "UTF-8, a transformation format of ISO 10646", STD 63, RFC 3629, November 2003.

[RFC3629] Yergeau, F., "UTF-8, a transformation format of ISO 10646", STD 63, RFC 3629, November 2003.

[RFC3851] Ramsdell, B., "Secure/Multipurpose Internet Mail Extensions (S/MIME) Version 3.1 Message Specification", RFC 3851, July 2004.

[RFC3851] Ramsdell, B., "Secure/Multipurpose Internet Mail Extensions (S/MIME) Version 3.1 Message Specification", RFC 3851, July 2004.

[RFC3862] Klyne, G. and D. Atkins, "Common Presence and Instant Messaging (CPIM): Message Format", RFC 3862, August 2004.

[RFC3862] Klyne, G. and D. Atkins, "Common Presence and Instant Messaging (CPIM): Message Format", RFC 3862, August 2004.

[RFC4566] Handley, M., Jacobson, V., and C. Perkins, "SDP: Session Description Protocol", RFC 4566, July 2006.

[RFC4566] Handley, M., Jacobson, V., and C. Perkins, "SDP: Session Description Protocol", RFC 4566, July 2006.

[RFC4975] Campbell, B., Mahy, R., and C. Jennings, "The Message Session Relay Protocol (MSRP)", RFC 4975, September 2007.

[RFC4975] Campbell, B., Mahy, R., and C. Jennings, "The Message Session Relay Protocol (MSRP)", RFC 4975, September 2007.

[RFC5234] Crocker, D. and P. Overell, "Augmented BNF for Syntax Specifications: ABNF", STD 68, RFC 5234, January 2008.

[RFC5234] Crocker, D. and P. Overell, "Augmented BNF for Syntax Specifications: ABNF", STD 68, RFC 5234, January 2008.

[RFC5322] Resnick, P., Ed., "Internet Message Format", RFC 5322, October 2008.

[RFC5322] Resnick, P., Ed., "Internet Message Format", RFC 5322, October 2008.

13.2. Informative References
13.2. 参考引用

[RFC3261] Rosenberg, J., Schulzrinne, H., Camarillo, G., Johnston, A., Peterson, J., Sparks, R., Handley, M., and E. Schooler, "SIP: Session Initiation Protocol", RFC 3261, June 2002.

[RFC3261] Rosenberg, J., Schulzrinne, H., Camarillo, G., Johnston, A., Peterson, J., Sparks, R., Handley, M., and E. Schooler, "SIP: Session Initiation Protocol", RFC 3261, June 2002.

[RFC4028] Donovan, S. and J. Rosenberg, "Session Timers in the Session Initiation Protocol (SIP)", RFC 4028, April 2005.

[RFC4028] Donovan, S. and J. Rosenberg, "Session Timers in the Session Initiation Protocol (SIP)", RFC 4028, April 2005.

[RFC4483] Burger, E., "A Mechanism for Content Indirection in Session Initiation Protocol (SIP) Messages", RFC 4483, May 2006.

[RFC4483] Burger, E., "A Mechanism for Content Indirection in Session Initiation Protocol (SIP) Messages", RFC 4483, May 2006.

[RFC4976] Jennings, C., Mahy, R., and A. Roach, "Relay Extensions for the Message Sessions Relay Protocol (MSRP)", RFC 4976, September 2007.

[RFC4976] Jennings, C., Mahy, R., and A. Roach, "Relay Extensions for the Message Sessions Relay Protocol (MSRP)", RFC 4976, September 2007.

[IANA] IANA, "Internet Assigned Numbers Authority", <http://www.iana.org>.

[IANA] IANA, "Internet Assigned Numbers Authority", <http://www.iana.org>.

[FLUTE-REV] Luby, M., Lehtonen, R., Roca, V., and T. Paila, "FLUTE - File Delivery over Unidirectional Transport", Work in Progress, September 2008.

[FLUTE-REV] Luby, M., Lehtonen, R., Roca, V., and T. Paila, "FLUTE - File Delivery over Unidirectional Transport", Work in Progress, September 2008.

Appendix A. Alternatives Considered
付録A. 考慮される代替案

The requirements are related to the description and negotiation of the session, not to the actual file transfer mechanism. Thus, it is natural that in order to meet them it is enough to define attribute extensions and usage conventions to SDP, while MSRP itself needs no extensions and can be used as it is. This is effectively the approach taken in this specification. Another goal has been to specify the SDP extensions in such a way that a regular MSRP endpoint that does not support them could still in some cases act as an endpoint in a file transfer session, albeit with a somewhat reduced functionality.

要件は、実際のファイル転送メカニズムではなく、セッションの説明と交渉に関連しています。したがって、それらを満たすためには、属性拡張機能と使用規則をSDPに定義するのに十分であり、MSRP自体は拡張機能を必要とせず、そのまま使用できるのは自然なことです。これは、事実上、この仕様で取られたアプローチです。もう1つの目標は、SDP拡張機能を指定することです。これらをサポートしていない通常のMSRPエンドポイントが、機能がやや縮小されているにもかかわらず、ファイル転送セッションのエンドポイントとして機能する可能性があります。

In some ways, the aim of this specification is similar to the aim of content indirection mechanism in the Session Initiation Protocol (SIP) [RFC4483]. Both mechanisms allow a user agent to decide whether or not to download a file based on information about the file. However, there are some differences. With content indirection, it is not possible for the other endpoint to explicitly accept or reject the file transfer. Also, it is not possible for an endpoint to request a file from another endpoint. Furthermore, content indirection is not tied to the context of a media session, which is sometimes a desirable property. Finally, content indirection typically requires some server infrastructure, which may not always be available. It is possible to use content indirection directly between the endpoints too, but in that case there is no definition for how it works for endpoints behind NATs. The level of requirements in implementations decides which solution meets the requirements.

いくつかの点で、この仕様の目的は、セッション開始プロトコル(SIP)[RFC4483]のコンテンツ間接メカニズムの目的と類似しています。両方のメカニズムにより、ユーザーエージェントは、ファイルに関する情報に基づいてファイルをダウンロードするかどうかを決定できます。ただし、いくつかの違いがあります。コンテンツの間接では、他のエンドポイントがファイル転送を明示的に受け入れるか拒否することはできません。また、エンドポイントが別のエンドポイントからファイルを要求することはできません。さらに、コンテンツの間接は、メディアセッションのコンテキストと結びついていません。これは、望ましいプロパティである場合があります。最後に、コンテンツの間接的には通常、いくつかのサーバーインフラストラクチャが必要であり、常に利用できるとは限りません。エンドポイント間でコンテンツの間接を直接使用することも可能ですが、その場合、NATの背後にあるエンドポイントでどのように機能するかについての定義はありません。実装の要件のレベルは、どのソリューションが要件を満たすかを決定します。

Based on the argumentation above, this document defines the SDP attribute extensions and usage conventions needed for meeting the requirements on file transfer services with the SDP offer/answer model, using MSRP as the transfer protocol within the session.

上記の議論に基づいて、このドキュメントでは、SDP属性拡張機能と、SDPオファー/回答モデルでファイル転送サービスの要件を満たすために必要な使用規則を定義し、MSRPをセッション内の転送プロトコルとして使用します。

In principle, it is possible to use the SDP extensions defined here and replace MSRP with any other similar protocol that can carry MIME objects. This kind of specification can be written as a separate document if the need arises. Essentially, such a protocol should be able to be negotiated on an SDP offer/answer exchange (RFC 3264 [RFC3264]), be able to describe the file to be transferred in SDP offer/answer exchange, be able to carry MIME objects between two endpoints, and use a reliable transport protocol (e.g., TCP).

原則として、ここで定義されているSDP拡張機能を使用して、MSRPをMIMEオブジェクトを運ぶことができる他の同様のプロトコルに置き換えることができます。この種の仕様は、必要に応じて別のドキュメントとして記述できます。基本的に、このようなプロトコルは、SDPオファー/回答交換(RFC 3264 [RFC3264])で交渉できるはずです。SDPオファー/回答交換で転送されるファイルを説明できます。エンドポイント、および信頼できる輸送プロトコル(TCPなど)を使用します。

This specification defines a set of SDP attributes that describe a file to be transferred between two endpoints. The information needed to describe a file could be potentially encoded in a few different ways. The MMUSIC working group considered a few alternative approaches before deciding to use the encoding described in Section 6. In particular, the working group looked at the MIME 'external-body' type and the use of a single SDP attribute or parameter.

本仕様は、2つのエンドポイント間で転送するファイルを記述するSDP属性群を定義します。ファイル記述に必要な情報は、いくつかの方法でエンコードできます。MMUSICワーキンググループは6節の方式を採用する前に、複数の代替案を検討しました。特に、MIMEの`external-body`型や、単一のSDP属性またはパラメーターを使う方法を検討しました。

A MIME 'external-body' could potentially be used to describe the file to be transferred. In fact, many of the SDP parameters this specification defines are also supported by 'external-body' body parts. The MMUSIC working group decided not to use 'external-body' body parts because a number of existing offer/answer implementations do not support multipart bodies.

転送対象ファイルの記述には、MIMEの`external-body`を使う方法も考えられます。実際、本仕様で定義するSDPパラメーターの多くは、`external-body`ボディパートでもサポートされています。しかし、既存のオファー/アンサー実装の多くがmultipartボディに対応していないため、MMUSICワーキンググループは`external-body`ボディパートを採用しませんでした。

The information carried in the SDP attributes defined in Section 6 could potentially be encoded in a single SDP attribute. The MMUSIC working group decided not to follow this approach because it is expected that implementations support only a subset of the parameters defined in Section 6. Those implementations will be able to use regular SDP rules in order to ignore non-supported SDP parameters. If all the information was encoded in a single SDP attribute, those rules, which relate to backwards compatibility, would need to be redefined specifically for that parameter.

セクション6で定義されているSDP属性に含まれる情報は、単一のSDP属性でエンコードされる可能性があります。MMUSICワーキンググループは、実装がセクション6で定義されたパラメーターのサブセットのみをサポートすることが予想されるため、このアプローチに従わないことを決定しました。これらの実装は、サポートされていないSDPパラメーターを無視するために通常のSDPルールを使用できます。すべての情報が単一のSDP属性でエンコードされた場合、後方互換性に関連するこれらのルールは、そのパラメーターに特に再定義する必要があります。

Authors' Addresses

著者のアドレス

Miguel A. Garcia-Martin Ericsson Calle Via de los Poblados 13 Madrid, ES 28033 Spain

Miguel A. Garcia-Martin Ericsson Calle Via de los Poblados 13 Madrid, ES 28033 Spain

   EMail: miguel.a.garcia@ericsson.com
        

Markus Isomaki Nokia Keilalahdentie 2-4 Espoo 02150 Finland

Markus Isomaki Nokia Keilalahdentie 2-4 Espoo 02150 Finland

   EMail: markus.isomaki@nokia.com
        

Gonzalo Camarillo Ericsson Hirsalantie 11 Jorvas 02420 Finland

Gonzalo Camarillo Ericsson Hirsalantie 11 Jorvas 02420 Finland

   EMail: Gonzalo.Camarillo@ericsson.com
        

Salvatore Loreto Ericsson Hirsalantie 11 Jorvas 02420 Finland

Salvatore Loreto Ericsson Hirsalantie 11 Jorvas 02420 Finland

   EMail: Salvatore.Loreto@ericsson.com
        

Paul H. Kyzivat Cisco Systems 1414 Massachusetts Avenue Boxborough, MA 01719 USA

Paul H. Kyzivat Cisco Systems 1414 Massachusetts Avenue Boxborough, MA 01719 USA

   EMail: pkyzivat@cisco.com