CoRE Working Group | M.B. Becker, Ed. |
Internet-Draft | K.K. Kuladinithi |
Intended status: Informational | T.P. Pötsch |
Expires: April 26, 2012 | ComNets, TZI, University Bremen |
October 24, 2011 |
Transport of CoAP over SMS and GPRS
draft-becker-core-coap-sms-gprs-00
The Short Message Service (SMS) of mobile cellular networks is frequently used in Machine-To-Machine (M2M) communications, such as for telematic devices. The service offers small packet sizes and high delays just as other typical low-power and lossy networks (LLNs), i.e. 6LoWPANs. The design of the Constrained Application Protocol (CoAP), that took the limitations of LLNs into account, is thus also applicable to telematic M2M devices. The adaption of CoAP to the SMS transport mechanism is described in this document.
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet- Drafts is at http://datatracker.ietf.org/drafts/current/.
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."
This Internet-Draft will expire on April 26, 2012.
Copyright (c) 2011 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 (http://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Simplified BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Simplified BSD License.
This specification details the usage of the Constrained Application Protocol on the Short Message Service of mobile cellular networks.
CoAP-REQ +------+ (SMS) +------+ | A | -------> | B | |(cell)| <------- |(cell)| +------+ CoAP-RES +------+ (SMS)
CoAP-REQ +------+ (SMS) +------+ | A | -------> | B | |(cell)| <------- |(cell)| +------+ CoAP-RES +------+ (GPRS)
CIMD UCP/EMI CoAP-REQ +------+ SMPP +-------+ (SMS) +------+ | A | --------> | SMS-C | -------> | B | | (IP) | <-------- | | <------- |(cell)| +------+ +-------+ CoAP-RES +------+ (SMS)
CIMD UCP/EMI CoAP-REQ +------+ SMPP +-------+ (SMS) +------+ | A | --------> | SMS-C | -------> | B | | (IP) | | | |(cell)| +------+ +-------+ +------+ ^ | | +-------+ | | | GGSN | | +-------------- | | <-----------+ +-------+ CoAP-RES (GPRS)
CIMD HTTP-REQ UCP/EMI CoAP-REQ +------+ (CoAP-DATA) +-----------+ SMPP +-----+ (SMS) +------+ | A | ----------> |SMS Service| ------> |SMS-C| -------> | B | | (IP) | <---------- |Provider | <------ | | <------- |(cell)| +------+ HTTP-RES +-----------+ +-----+ CoAP-RES +------+ (CoAP-DATA) (SMS)
Figure 1 to Figure 5 show various applicable usage scenarios of CoAP in M2M communications. Two mobile cellular terminals communicate by exchanging CoAP Request and Response embedded into SMS PDUs (depicted in Figure 1). Figure 2). [cimd]), Universal Computer Protocol/External Machine Interface (UCP/EMI [ucp]), Short Message Peer-to-Peer (SMPP [smpp]) ) to submit an SMS for delivery, which contains the CoAP Request (depicted in Figure 3). Figure 4). Figure 5). Figure 1, Figure 3 and Figure 5), i.e.\ only SMS transport.
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 RFC 2119 [RFC2119].
The content of SMS can be coded in 7, 8 or 16 bit characters [3gpp_ts23.038]. The advantages and disadvantages are:
The currently safest solution is to use 7 bit encoded SMS including Base64 encoded CoAP payload.
Using 7 bit encoding 160 characters are allowed in 1 SMS, while using 8 bit encoding 140 characters are allowed. [3gpp_ts23.038]
Possible options for larger CoAP messages are:
Uri-Host and Uri-Port options MUST NOT be included in the CoAP header. End-points receiving CoAP messages over SMS with such options MUST behave as specified in [I-D.ietf-core-coap].
Open question: Is the introduction of a new CoAP option Reply-To-Uri-Host necessary, if the server should use the GPRS transport for the Response? This relates to Figure 2 and Figure 4.
Number | C/E | Name | Format | Length | Default |
---|---|---|---|---|---|
17 | Critical | Reply-To-Uri-Host | string | 1-270 B | (none) |
19 | Critical | Reply-To-Uri-Port | uint | 0-2 B | (none) |
The RESPONSE_TIMEOUT variable SHOULD be configured for a higher duration than specified in [I-D.ietf-core-coap], i.e. 10 s.
Multicast MUST not be used with the SMS transport.
TBD (Proxying into an IPv6/v4 network (e.g. a 6LoWPAN network) possible?)
Open question: Make use of RFC5724 SMS URI scheme?
This document is based on research for the research project 'The Intelligent Container' which is supported by the Federal Ministry of Education and Research, Germany, under reference number 01IA10001.
This memo includes no request to IANA.
This presents no security considerations beyond those in section 10 of the base CoAP specification [I-D.ietf-core-coap].
[RFC2119] | Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, March 1997. |
[RFC4648] | Josefsson, S., "The Base16, Base32, and Base64 Data Encodings", RFC 4648, October 2006. |
[I-D.ietf-core-coap] | Shelby, Z, Hartke, K, Bormann, C and B Frank, "Constrained Application Protocol (CoAP)", Internet-Draft draft-ietf-core-coap-08, October 2011. |
[I-D.ietf-core-block] | Bormann, C and Z Shelby, "Blockwise transfers in CoAP", Internet-Draft draft-ietf-core-block-04, July 2011. |
[3gpp_ts23.038] | ETSI 3GPP, "Technical Specification: Alphabets and language-specific information (3GPP TS 23.038 version 10.0.0 Release 10)", 2011. |