한국어

네트워킹

온누리070 플레이스토어 다운로드
    acrobits softphone
     온누리 070 카카오 프러스 친구추가온누리 070 카카오 프러스 친구추가친추
     카카오톡 채팅 상담 카카오톡 채팅 상담카톡
    
     라인상담
     라인으로 공유

     페북공유

   ◎위챗 : speedseoul


  
     PAYPAL
     
     PRICE
     

pixel.gif

    before pay call 0088 from app


https://tools.ietf.org/id/draft-holmberg-sipcore-sip-push-02.html


Push Notification with the Session Initiation Protocol (SIP) 
draft-holmberg-sipcore-sip-push-02

Abstract

This document describes how push notification mechanisms can be used to wake up suspended Session Initiation Protocol (SIP) User Agents (UAs), in order to be able to receive and generate SIP requests. The document defines new SIP URI parameters, that can be used in a SIP REGISTER request to provide push notification information from the SIP User Agent (UA) to the SIP entity (realized as a SIP proxy in this document) that will send a push request to the push server in order to trigger a push notification towards the SIP UA.

Status of This Memo

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 https://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 May 3, 2018.

Copyright Notice

Copyright (c) 2017 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 (https://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.


Table of Contents

1. Introduction

In order to save resources (e.g, battery life) some devices and operating systems require suspended Session Initiation Protocol (SIP) User Agents (UAs) [RFC3261] to be woken up using a push notification service. Typically each operating system uses a dedicated push notification service. For example, Apple iOS devices use the Apple Push Notification service (APNs).

Due to the restriction above, applications can not be woken up by non-push notification traffic. This means that a suspended SIP UA will not be able to receive an incoming SIP request (e.g., a SIP INVITE request).

This document describes how push notification mechanisms can be used to wake up suspended SIP UAs, in order to be able to receive and generate SIP requests. The document defines new SIP URI parameters, that can be used in a SIP REGISTER request to provide push notification information from the SIP UA to the SIP entity (realized as a SIP proxy in this document) that will send a push request to the push server in order to trigger a push notification towards the SIP UA.

When a SIP UA registers to a push service, it will receive a unique Push Resource ID (PRID) associated to that registration. The SIP UA will provide the PRID to the SIP network in a SIP REGISTER request. A SIP proxy (e.g., the SIP registrar) will store a mapping between the registered contact and the PRID.

When the SIP proxy receives a SIP request for a new session, or a stand-alone SIP request, addressed towards a SIP UA, the SIP proxy will send a push request to the push notification service used by the SIP UA, using the push resource ID associated with the registered contact of the SIP UA, in order to trigger a push notification towards the SIP UA. The SIP proxy will then forward the SIP request towards the SIP UA using normal SIP routing procedures. Once the SIP UA receives the push notification, it will be able to receive the SIP request (and generate a SIP request itself, if needed).

Different push notification mechanisms exist today. Some are based on there standardized mechanism defined in [RFC8030], while others are proprietary (e.g., the Apple Push Notification service). Figure 1 shows the generic push notification architecture supported by the mechanism in this document.

    +--------+           +--------------+       +-----------------+
    | SIP UA |           | Push Service |       |    SIP Proxy    |
    +--------+           +--------------+       +-----------------+
        |                      |                         |
        |      Subscribe       |                         |
        |--------------------->|                         |
        |                      |                         |
        |    Push Resource ID  |                         |
        |<---------------------|                         |
        |                      |                         |        
        |          SIP REGISTER (Push Resource ID)       |
        |===============================================>|
        |                      |                         |
        |                      |     Push Message        |
        |                      |   (Push Resource ID)    |
        |    Push Message      |<------------------------|
        |  (Push Resource ID)  |                         |
        |<---------------------|                         |
        |                      |                         |

        ------- Push Notification API

        ======= SIP 

    REGISTER sip:alice@example.com SIP/2.0
    Via: SIP/2.0/TCP alicemobile.example.com:5060;branch=z9hG4bKnashds7
    Max-Forwards: 70
    To: Alice <sip:alice@example.com>
    From: Alice <sip:alice@example.com>;tag=456248
    Call-ID: 843817637684230@998sdasdh09
    CSeq: 1826 REGISTER
    Contact: <sip:alice@alicemobile.example.com;
      pn-type=acme:acme-param;
      pn-prid="ZTY4ZDJlMzODE1NmUgKi0K">
    Expires: 7200
    Content-Length: 0

Figure 1: SIP Push Notification Architecture

2. Conventions

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 [RFC2119].

3. Push Resource ID (PRID)

When an entity registers with a Push Notification Server (PNS) is receives a unique Push Resource ID (PRID), which is a value associated with the registration.

The format of the PRID may vary depending on the PNS provider. The PRID may be part of a URI that can be used to retrieve the address and port of the PNS when sending push requests to the PNS. The PRID may also be a token value, in which case the address and port of the PNS needs to be provided using other means.

The details regarding discovery of the PNS, and the procedures for the push notification registration and maintenance are outside the scope of this document. The information needed to contact the PNS is typically pre-configured in the operating system (OS) of the device.

4. SIP User Agent (UA) Behavior

Once the SIP UA has registered with the PNS and received the PRID, and when the UA wants to receive push notifications triggered by the SIP proxy, the UA MUST send a SIP REGISTER using normal SIP registration procedures. The UA MUST add a pn-prid URI parameter and a pn-type URI parameter to the SIP Contact header field URI of the request. The pn-prid URI parameter contains the PRID value. The pn-type contains additional, PNS-specific, information.

As long as the UA wants the SIP proxy to continue sending push requests, the UA MUST include the pn-prid and pn-type URI parameters in every re-registration SIP REGISTER request sent towards the SIP proxy. Note that, in some cases, the PNS might update the PRID value, in which case the re-registration SIP REGISTER request will contain the new value.

If the UA at some point wants to stop the SIP proxy from sending push requests, the UA MUST send a SIP REGISTER request without the pn-prid and pn-type URI parameters.

If the UA expects to receive payload in the push notification, the UA MAY add a pn-enckey and a pn-encsec Contact header field URI parameter, in order to allow encryption of the data using the mechanism in [I-D.ietf-webpush-encryption]. The pn-enckey URI parameter contains the public key, and the pn-encsec URI parameter contains the authentication secret [I-D.ietf-webpush-encryption].

NOTE: End-to-end encryption of the payload between the SIP proxy and the SIP UA cannot be used if the push notification request payload contains information that needs to be accessible by the push notification server.

5. SIP Proxy Behavior

When the SIP proxy receives a SIP request for a new dialog (e.g., a SIP INVITE request) or a non-dialog SIP request (e.g., a SIP MESSAGE request) aimed for a SIP UA, if the Request-URI of the request contains a pn-prid URI parameter, the SIP proxy triggers a push request towards the push notification server associated with the PRID. After that, the SIP proxy forwards the SIP request towards the SIP UA using normal SIP procedures.

The SIP proxy MUST NOT transport the SIP request as push request payload, instead of forwarding the request using normal SIP procedures.

In some cases the push notification provider can be retrieved from the pn-prid URI parameter. In other cases the pn-type URI parameter is used to identity the push notification provider.

If the proxy is not able to contact the push notification provider, or even determine which push notification provider to contact, it SHOULD reject the SIP request.

The protocol and format used for the push request depends on the push notification provider, and the details for constructing and sending the messages are outside the scope of this specification.

6. Network Address Translator (NAT) Considerations

Whenever the UA receives a push notification, if the SIP UA is located behind a Network Address Translator (NAT), the UA might need to take actions in order to establish a binding in the NAT, in order for an incoming SIP request to reach the UA. [RFC5626] and [RFC6223] define such mechanisms. This document does not require usage of a specific mechanism.

7. Grammar

The section defines new SIP URI parameters, by extending the grammar for "uri-parameter" as defined in [RFC3261]. The ABNF is as follows:

  uri-parameter   =/ pn-prid / pn-type / pn-enccode / pn-enckey
  pn-prid         = "pn-prid" EQUAL pvalue
  pn-type         = "pn-type" EQUAL pns-provider COLON pns-param
  pn-enccode      = "pn-enccode" EQUAL pvalue
  pn-enckey       = "pn-enckey" EQUAL pvalue

  pns-provider    = pvalue ; Colon (":") characters MUST be escaped
  pns-param       = pvalue ; Colon (":") characters MUST be escaped

  ; pvalue as defined in RFC 3261
  ; EQUAL as defined in RFC 3261
  ; COLON as defined in RFC 3261
  
  The format and semantics of pns-param is specific to a given 
  pns-provider value.

8. PNS Registration Requirements

When a new value is registered to the PNS Sub-registry, a reference to a specification which describes the push notification service associated with the value is provided. That specification MUST contain the following information:

  • How the values for the pn-prid parameter is retrieved and set by the SIP UA.
  • The format of the pns-param part of the pns-type parameter, and how the value of the pns-param part is retrieved and set by the SIP UA.
  • Whether there are any restrictions regarding usage of payload encryption [I-D.ietf-webpush-encryption] with the associated push notification service.

9. pn-prid and pn-type URI parameters for Apple Push Notification service

When the Apple Push Notification service (APNs) is used, the value of the pn-type URI parameter pns-provider parameter part is "apns". The pns-param part contains the APNs App ID, which is encoded by two values, separated by a period (.): Team ID and Bundle ID. The Team ID is provided by Apple and is unique to a development team. The Bundle ID is unique to a development team, and is a string that will can match a single application or a group of applications.

Example: pn-type = apns:DEF123GHIJ.com.yourcompany.yourexampleapp

When the Apple Push Notification service (APNs) is used, pn-type URI parameter pns-prid parameter part contains the device token, which is a unique identifier assigned by Apple to a specific app on a specific device.

Example: pn-prid = 00fc13adff78512

For more information on the APNs App ID:

https://developer.apple.com/library/content/documentation/General/Conceptual/DevPedia-CocoaCore/AppID.html

For more information on the APNs device token:

https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/APNSOverview.html#//apple_ref/doc/uid/TP40008194-CH8-SW13

10. pn-prid and pn-type URI parameters for Google Firebase Cloud Messaging (FCM) push notification service

When Firebase Cloud Messaging (FCM) is used, the value of the pn-type URI parameter pns-provider parameter part is "fcm". The pns-param part contains the Sender ID.

When Firebase Cloud Messaging (FCM) is used, pn-type URI parameter pns-prid parameter part contains the Registration token, which generated by the FCM SDK for each client app instance.

For more information on the Sender ID and Registration token:

https://firebase.google.com/docs/cloud-messaging/concept-options

11. Security considerations

In addition to the information exchanged between a device and its PNS in order to establish a push notification subscription, the mechanism in this document does not require entities to provide any additional information to the PNS.

Push notification mechanisms provide different methods to ensure that malicious user cannot trigger push notifications to a device. Users of the mechanism in this document MUST take measures to prevent push notifications from being sent to a device from a malicious user.

In case entities do want to include payload in the push notifications, this document defines the means for using end-to-end payload encryption between the entity sending the push request and the entity receiving the associated push notification.

12. IANA considerations

This specification defines new SIP URI parameters that extend the registry created by [RFC3969]:

12.1. pn-prid

  Parameter Name: pn-prid

  Predefined Values:  No

  Reference:  RFC XXXX

12.2. pn-type

  Parameter Name: pn-type

  Predefined Values:  No

  Reference:  RFC XXXX

12.3. pn-enckey

  Parameter Name: pn-enckey

  Predefined Values:  No

  Reference:  RFC XXXX

12.4. pn-enccode

  Parameter Name: pn-enccode

  Predefined Values:  No

  Reference:  RFC XXXX

12.5. PNS Sub-registry Establishment

This section creates a new sub-registry, "PNS", under the sip-parameters registry: http://www.iana.org/assignments/sip-parameters.

The purpose of the sub-registry is to register SIP URI pn-type values.

   This sub-registry is defined as a table that contains the following
   three columns:

   Value:        The token under registration

   Description:  The name of the push notification service

   Document:     A reference to the document defining the registration

  This specification registers the following values:

  Value         Description                         Document
  -------       ----------------------------------  ----------

  apns          Apple Push Notification service     [RFC XXXX]
  fcm           Firebase Cloud Messaging            [RFC XXXX]
                 

13. References

13.1. Normative references

[RFC2119]Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, March 1997.
[RFC3261]Rosenberg, J.Schulzrinne, H.Camarillo, G.Johnston, A.Peterson, J.Sparks, R.Handley, M. and E. Schooler, "SIP: Session Initiation Protocol", RFC 3261, DOI 10.17487/RFC3261, June 2002.
[RFC3969]Camarillo, G., "The Internet Assigned Number Authority (IANA) Uniform Resource Identifier (URI) Parameter Registry for the Session Initiation Protocol (SIP)", BCP 99, RFC 3969, DOI 10.17487/RFC3969, December 2004.
[RFC8030]Thomson, M.Damaggio, E. and B. Raymor, "Generic Event Delivery Using HTTP Push", RFC 8030, DOI 10.17487/RFC8030, December 2016.

13.2. Informative references

[RFC5626]Jennings, C.Mahy, R. and F. Audet, "Managing Client-Initiated Connections in the Session Initiation Protocol (SIP)", RFC 5626, DOI 10.17487/RFC5626, October 2009.
[RFC6223]Holmberg, C., "Indication of Support for Keep-Alive", RFC 6223, DOI 10.17487/RFC6223, April 2011.
[I-D.ietf-webpush-encryption]Thomson, M., "Message Encryption for Web Push", Internet-Draft draft-ietf-webpush-encryption-09, September 2017.

Author's Address

Christer HolmbergEricssonHirsalantie 11Jorvas02420FinlandEMail: christer.holmberg@ericsson.com

조회 수 :
65471
등록일 :
2017.12.24
21:32:42 (*.160.88.18)
엮인글 :
http://webs.co.kr/index.php?document_srl=3312519&act=trackback&key=494
게시글 주소 :
http://webs.co.kr/index.php?document_srl=3312519
List of Articles
번호 제목 글쓴이 날짜 조회 수
42 Sense of Security VoIP Security Testing Training file admin 2019-06-01 13010
41 수신자 부담전화 admin 2018-04-16 15178
» Push Notification with the Session Initiation Protocol (SIP) admin 2017-12-24 65471
39 List of SIP request methods admin 2017-09-30 18630
38 IPAD MINI2 아이패드 미니2 LTE 4G 지원국가 리스트 admin 2015-09-26 16632
37 Remote Party ID SIP Privacy Headers P-Preferred-Identity Header admin 2015-05-15 20797
36 Voice over LTE - approaches, implementation, and test solutions admin 2014-11-02 24815
35 가상화 성능을 떨어뜨리는 다섯 가지 함정 클라우드 데이타센터 admin 2014-05-28 25260
34 데이터센터 가상화 admin 2014-05-28 23025
33 IP Multimedia Subsystem IMS file admin 2014-03-16 24565
32 통신회사/MVNO 통신사 목록/미국 admin 2013-12-21 192560
31 GSM 개요 개념 역사 기술규격 이동통신 표준 admin 2013-12-21 77889
30 프로그램별 포트 사용현황 file admin 2013-09-15 27215
29 SIP Status Codes admin 2013-08-14 28552
28 SS7_Tutorial 간단한 NO7 신호망 교환망 설명 file admin 2013-06-08 26498
27 Audios Video Image Codecs compression decompression admin 2013-05-25 28177
26 Telephone World 교환 통신시스템 정리 및 신호음 각종 톤 admin 2013-04-19 30979
25 H.323 연동의 문제점 2003년 admin 2013-03-22 24605
24 NHN 개발자 블로그 Hellow World admin 2013-03-09 26254
23 Detailed ISDN Cause Codes admin 2013-01-11 194356
22 DialingCode and CountryCode admin 2012-10-16 37256
21 Prepaid Roaming Using CAMEL (Roaming Implementation for Prepaid) Part 3 admin 2012-09-18 52542
20 SIP VOIP STUN TURN ICE SBC NAT 와 방화벽 admin 2012-08-22 34424
19 클라우드 컴퓨팅 시대가 다가오면서.. admin 2012-05-17 25253
18 IPTV의 핵심 기술. (전송 관련 기술 및 제품) admin 2012-05-11 34254
17 IPTV의 기본 개념 (VOD 와 IP multicating 그리고 인터넷 방송) admin 2012-05-11 82873
16 GSM GSMA RCS-e v1.1 admin 2012-05-07 86328
15 LTE 기술 개요 admin 2012-05-07 119730
14 이동통신 규격 LTE file admin 2012-05-07 33260
13 기간망 전자교환실 교환기와 내부랙 및 PCB admin 2012-04-04 27615