Multimedia Service Support and Session Management 鍾國麟

Similar documents
港專單一登入系統 (SSO) 讓本校的同學, 全日制及兼職老師只要一個登入帳戶, 便可同時使用由本校提供的網上系統及服務, 包括 Blackboard 網上學習平台, 港專電郵服務, 圖書館電子資料庫及其他教學行政系統.

SSL VPN User Manual (SSL VPN 連線使用手冊 )

桌上電腦及筆記本電腦安裝 Acrobat Reader 應用程式

一般來說, 安裝 Ubuntu 到 USB 上, 不外乎兩種方式 : 1) 將電腦上的硬碟排線先予以排除, 將 USB 隨身碟插入主機, 以一般光碟安裝方式, 將 Ubuntu 安裝到 USB

Figure 1 Microsoft Visio

Oxford isolution. 下載及安裝指南 Download and Installation Guide

PC Link Mode. Terminate PC Link? Esc. [GO]/[Esc] - - [GO]/[Esc] 轉接座未放滿. Make auto accord with socket mounted? [GO]/[Esc] Copy to SSD E0000

CLAD 考前準備 與 LabVIEW 小技巧

UAK1-C01 USB Interface Data Encryption Lock USB 資料加密鎖. Specifications for Approval

Ubiquitous Computing Using SIP B 朱文藝 B 周俊男 B 王雋伯

購票流程說明 How To purchase The Ticket?

EZCast Docking Station

虛擬機 - 惡意程式攻防的新戰場. 講師簡介王大寶, 小時候大家叫他王小寶, 長大後就稱王大寶, 目前隸屬一神祕單位. 雖然佯稱興趣在看書與聽音樂, 但是其實晚上都在打 Game. 長期於系統最底層打滾, 熟悉 ASM,C/C++,

Chapter 7. Digital Arithmetic and Arithmetic Circuits. Signed/Unsigned Binary Numbers

EZCast Wire User s Manual

EZCast Wire. User s Manual. Rev. 2.00

Preamble Ethernet packet Data FCS

外薦交換生線上申請系統操作說明 Instruction on Exchange Student Online Application System. [ 中文版 ] [English Version]

Java 程式設計基礎班 (7) 莊坤達台大電信所網路資料庫研究室. Java I/O. Class 7 1. Class 7 2

InTANK ir2771-s3 ir2772-s3. User Manual

Twin API Guide. How to use Twin

全面強化電路設計與模擬驗證. Addi Lin / Graser 2 / Sep / 2016

Java 程式設計基礎班 (7) 劉根豪台大電機所網路資料庫研究室. Java I/O. Class 7 1. Class 7

購票流程說明 How To purchase The Ticket?

Frame Relay 訊框中繼 FRSW S0/0 S0/1

Version Control with Subversion

Chapter 4 (Part IV) The Processor: Datapath and Control (Parallelism and ILP)

Software Architecture Case Study: Applying Layer in SyncFree

Chapter 7. Signed/Unsigned Binary Numbers. Digital Arithmetic and Arithmetic Circuits. Unsigned Binary Arithmetic. Basic Rules (Unsigned)

JAVA Programming Language Homework V: Overall Review

The notice regarding Participation Ways of our global distributor video conference on Feb. 5.

2009 OB Workshop: Structural Equation Modeling. Changya Hu, Ph.D. NCCU 2009/07/ /07/03

RENESAS BLE 實作課程 Jack Chen Victron Technology CO., LTD 2015 Renesas Electronics Corporation. All rights reserved.

The transformation relationship between defense enterprise architecture and C4ISR system architecture

Citrix CloudGateway. aggregate control. all apps and data to any device, anywhere

Quick Installation Guide for Connectivity Adapter Cable CA-42

微軟商務用 Skype 雲端視訊會議及與所需頻寬介紹

報告人 / 主持人 : 林寶樹 Colleges of Computer Science & ECE National Chiao Tung University

Simulation of SDN/OpenFlow Operations. EstiNet Technologies, Inc.

MP3 Codec Design 吳炳飛教授. Chaotic Systems & Signal Processing Lab, CSSP Lab. CSSP Lab:

Invitation to Computer Science 5 th Edition. Chapter 8 Information Security

What is a Better Program?

Lomographic Society Taiwan Institute of Creative Industry Design

無線寬頻的演進與數位匯流的大未來 台灣大哥大股份有限公司技術群阮得晉副總經理

香港中文大學學生會計算機科學系會 圖書清單

Lotusphere Comes to You 輕鬆打造 Web 2.0 入口網站 IBM Corporation

Oracle Database 11g Overview

InTANK ir2622 User Manual

Use of SCTP for Handoff and Path Selection Strategy in Wireless Network

黃河凱. Kaiser Huang 巨匠電腦北區 / 新竹認證中心認證講師國立新竹教育大學數位學習科技研究所在職生微軟原廠認證講師 MCT

步驟 1: 首頁以 facebook 或 google 帳號登入, 並點選節目 Step 1:Log in with your facebook/google account, then click the show banner.

Mid-term EXAM. 11/14/2009

InTANK ir2623-s3 User Manual

C B A B B C C C C A B B A B C D A D D A A B D C C D D A B D A D C D B D A C A B

SOHOTANK PD3500+ User Manual

EdConnect and EdDATA

Chapter 7 Pointers ( 指標 )

Protech RMA Request Form

4Affirma Analog Artist Design Flow

User s Manual. Rev. 1.04

多元化資料中心 的保護策略 技術顧問 陳力維

English G H. Package Contents. Hardware Requirements. Technical Specifications. Device Overview. MSI DS502 GAMING HEADSET User Guide

Registering ( 註冊新帳號 )

私有雲公有雲的聯合出擊 領先的運算, 儲存與網路虛擬化技術 靈活的計費模式與經濟性 支援廣大的商業應用場景 涵蓋各類型雲服務 類標準的企業資料中心架構 全球規模與快速部署. 聯合設計的解決方案可為客戶提供最佳的 VMware 和 AWS

Quick Installation Guide

ICP Enablon User Manual Factory ICP Enablon 用户手册 工厂 Version th Jul 2012 版本 年 7 月 16 日. Content 内容

SOHORAID ST8-TB3 User Manual

第九章結構化查詢語言 SQL - 資料定義語言 (DDL) 資料庫系統設計理論李紹綸著

Chapter 4. Channel Coding and Error Control

UNIX Basics + shell commands. Michael Tsai 2017/03/06

AVG Anti-Virus User Manual. Document revision ( )

BTC, EMPREX Wireless Keybaord +Mouse + USB dongle. 6309URF III Quick Installation Guide

場次 : C3. 公司名稱 : Radware. 主題 : ADC & Security for SDDC. 主講人 : Sam Lin ( 職稱 ) 總經理

SPI 功能使用方法 Application Note

C A R I T A S M E D I C A L C E N T R E 明愛醫院 Rev. (A) (B) (C) (D) D A T A A C C E S S R E Q U E S T ( D A R ) 查閱資料要求申請須知

Gigabyte and Giga-byte are trademarks of Giga-byte Technology Co., Ltd. Microsoft and Windows XP are trademarks of Microsoft Corporation.

游家德 Jade Freeman 群智信息 / 敦群數位資深架構顧問

Digital imaging & free fall of immersed sphere with wall effects

A n d r o i d Ta b l e t P C

Scale of Fees (Applicable from 18 June 2017) Data Access Request consists of (i) Data Enquiry Request and (ii) Copy of Personal Medical Records

WriteAhead 遨遊雲端暨 行動學習應 用 研討會 雲端時代的資訊教育與語 言學習 介紹互動式寫作環境 張俊盛 清華 大學資訊 工程系及研究所 2015 年 4 月 21 日 ( 二 ) 上午 10:00 ~ 12:30 台北市 立 大同 高中 行政 大學 5 樓階梯教室

描述性資料採礦 Descriptive Data Mining

Personal Mobility Management for SIP-based VoIP Services

微軟新一代私有雲服務. 利用 Windows Azure Pack 協助企業建構現代化的 IT 服務架構, 提升競爭力降低維運成本. Jason Chou Architect. Nov 7, 2013

現代化資料中心必備資料隨處保護機制 首席技術顧問藍基能 GLOBAL SPONSORS

用於網頁版權保護的資訊隱藏方法. A Steganographic Method for Copyright Protection of Web Pages

David M. Kroenke and David J. Auer Database Processing Fundamentals, Design, and Implementation

MH-3621-U3 Clone Dual SATA HDD Docking System

Johnson Lai. Technical Consultant E: Copyright Fortinet Inc. All rights reserved.

Allegro SPB V16 Advance

Increase Productivity and Quality by New Layout Flow

如何查看 Cache Engine 缓存中有哪些网站 /URL

Channel Python API Overview

Previous on Computer Networks Class 18. ICMP: Internet Control Message Protocol IP Protocol Actually a IP packet

研華公司 H 營運成果與財務報告

DVS-8501E/DVS-8501E-H 單路 H.264 數位影像編碼器

Additional Information

打造新世代企業資料中心 Windows Server 2016 重裝登場. 馮立偉 Hybrid Cloud Lead Microsoft Taiwan

VMware vsphere. 零壹科技 Josh.wang VMware Inc. All rights reserved

Transcription:

Multimedia Service Support and Session Management 鍾國麟 2003-9-31 1 1

Agenda Introduction What is Session? Definition Functions Why need Session Management 2G,Internet,3G SIP Basic Operation User Location Characteristics SIP in Use SIP in 3G 2 2

Introduction 3G network support multimedia applications and Virtual Home Environment. 讓不同的多媒體傳輸 不同的應用程式可以使用一種溝通協定 找到人比找到裝置更重要 ( 如 ICQ,MSN) 3 未來的 3G 網路能支援更多源化的多媒體軟體 應用, 並且有 VHE 的概念, 無論是漫遊到那種網路或是更換何種裝置, 都能有相同的服務 (Profile,preferences,data 會跟人移動 )( 就像在家一樣 ) VHE 的例子, 比如使用遠傳的手機, 按 222 可以聽簡訊, 可是今天手機可能漫遊到中華電信, 甚至到美國去了, 你撥了 222, 還是可以聽到簡訊 不會因為換了基地台而改變服務 3

What is session Multimedia communication A video-telephony call Message(IMS, MMS) Internet Browser web page 任何影像 聲音 文字建立的連線 A session is a series of meaningful communications between two or more end points. 4 4

Functions of session management protocols Session-layer(signalling) protocols are used for creating,modifying,monitoring, and terminating sessions with one or more participants. 建立連線時需要做到那些事? Voice/Video codec Sampling rate Data compression Error coding IP/TCP/UDP 5 一個 session 信令控制協定, 在建立 session 時會做到下列這些. 5

The key functions Locating the parties to be involved in the session Negotiating the characteristics of the session Modifying the session Closing the session Session management Control plane -> SIP Data plane -> RTP/RTCP 6 一個良好的 session management 協定, 除了能找到對方建立 終止一個 session, 並且能依當時的裝置 頻寬 QoS 去改變 / 選擇 / 提供多媒體 使用的資源 6

Session management within 2G Circuit-switched telephony network 提供語音功能資料的 encoding 方式 data rate 已事先定義好 PSTN 64kbit/s and 2G 14kbit/s Session management and QoS are tightly integrated with in the application and network. 2.5G GPRS Users set up a PDP context and connect to their ISP. Web,email No real time multimedia 7 即使人們常常在使用多媒體, 但 session 的管理仍然未被重視, 在 2g 的網路中, 因為頻寬 規格都已定義好,QoS 也事先定義好, 幾乎不需要 session management 7

Session management within the Internet Mail / Web 使用 DNS 找到對方位置 使用 TCP 傳遞資料 使用 MIME type 描述資料格式 (Web) But no negotiation of session. User cannot choose a gif over a jpeg 8 Session location : 使用 dns 8

Session Management for Future Application 選擇權在 user 手上一種溝通協定可以被不同應用程式重複利用 找到人比找到裝置更重要 ( 如 ICQ,MSN) 9 3G NETWORK 希望未來的 session management 可以操縱在 user 手上, 或是裝置上, 同時希望不同的應用程式都可以使用相同的協定 例始 : 我用 pda 來講電話的時候, 希望可以有 video 功能, 但是換成小營幕講話的時候,video 就不需要了 在技術上 session management 在 3g 中還需要處理連接 pstn 或是 ip 等異質網路的問題, 當然也包含其他服務 9

About Session Initiation Protocol SIP is an application-layer control protocol that can establish, modify and terminate multimedia sessions or Internet telephony calls. Proposed standard from the IETF : RFC2543, RFC3261 SIP usually uses Session Description Protocol (SDP) for media description. (SDP:RFC2327) Text-based Encoding Based on a client-server architecture. Request/Response transaction model Transport Independence TCP,UDP 10 10

通訊 ( 控制信號, 語音資料 ) 台語, 國語 英語, 台語 台語 11 11

SIP Basic Call Flow User Agent Client (Caller) Server (Callee) User Agent INVITE 100: Trying 180: Ringing 200: OK ACK RTP BYE 12 200: OK 12

INVITE 內容 SIP INVITE sip:bob@ccu.edu.tw SIP/2.0 From:sip:alice@office.tw To:sip:oocat@ccu.edu.tw Call-ID: 1234567@office.tw Cseq: 1 INVITE Subject: happy new year Contact: alice lin <sip:alice@office.tw> Content-type: application/sdp Content-Length: 160 SDP 13 V=0 O=clive 4534593492 3284729843 IN IP4 ccu.edu.tw s=session SDP C= IN IP4 140.123.113.60 M=audio 9160 RTP/AVP 0 A=rtpmap:0 PCMU/8000 13

Caller 發出 INVITE Request 給 Callee 端 ( 建立 session) INVITE 訊息包含 SDP 媒體描述語言. Callee 如果接受此 INVITE, 會回應 200:0K 訊息, 包含 Callee 端的 SDP. 如果 Callee 端不支援 Caller 要求的媒體功能 ( 如無法使用 video 或是 audio 的 codec 不支援 ), 但是有其他功能可以使用 ( 其他的 codec, 簡訊等 ), 會回覆在 OK 訊息內 14 14

Client (Caller) Server (Callee) User Agent Client INVITE SDP: 國語 200: OK SDP: 國語 ACK User Agent Server RTP 15 15

Client (Caller) Server (Callee) INVITE SDP: 國語,Video 200: OK SDP: 台語, 日語, 電子白版 CANCAL INVITE SDP: 台語 16 16

Request Methods (Main message types) INVITE The user is begin invited to participate in a session.( 建立 session) ACK The client has received a final response to an INVITE. OPTIONS The server is begin queried as to its capabilities.( 查詢能力 ) BYE The user wishes to release the call. CANCEL It cancels a pending request (not completed request). REGISTER It conveys the user s location information to a SIP server.( 註冊 ) 17 17

SIP Response Code Classes CLASS Description 1xx Provisional response : Informational 2xx Success:Request has completed successfully 3xx Redirection:Request should be tried at another location 4xx Client-Error:Bad request.. 5xx 6xx Server-Error Global-Failure: busy. 18 18

SIP and User Location Proxy Servers. Location Servers. Registration Servers. Redirect Servers. SIP Universal Resource Locators (URL) SIP URI : user@host Example: sip:alice@ccu.edu.tw Sip: 23939889@pizza.tw 19 SIP 使用 SIP URI 來 identify 使用者, 因此需要一個 location database 來存放 ip 對 sip url 的資料 以發 register server 讓 user agent 一開機時就能註冊, 同使打電話時, 需要一個 proxy server 幫 user agent 轉換 sip 訊息 查詢 dns 等工作 而 redirect 則是當對方移動時可以通知 user agent 或是 proxy 其最新的位置. 19

SIP Architecture request response non-sip protocol SIP Redirect Server Query Location Server Resp SIP Proxy SIP Proxy SIP Proxy RTP SIP User Agent (Caller) 20 SIP User Agent (Callee) 20

SIP Registration Oocat@ccu.edu.tw SIP Registrar (domain: ccu.edu.tw) Location Server 1 Register 4 200 OK 2 Update(non-SIP) 3 Response(non-SIP) 21 REGISTER sip:oocat@ccu.edu.tw SIP/2.0 From:sip:oocat@ccu.edu.tw To:sip:oocat@ccu.edu.tw Contact:<sip:140.123.1.100> Expires:3600 RFC 沒規範 SIP Register server 到 location server 之間的訊息如何傳遞 21

Location database UserB Home REGISTER sip:userb@domainname.com SIP Registrar UserB Office 22 使用者到不同環境, 或是使用不同的裝置, 都可以用相同的 sip url 註冊 22

Location database UserB Home INVITE sip:userb@domainname.com User A INVITE sip:userb@domainname.com SIP Proxy UserB Office 23 這樣其他人打電話進來, 經過 proxy 像 location server 查詢對方真正的位置, 就可以找到對方了 23

SIP Redirect mode SIP Caller SIP Redirect Server Location Server SIP Callee INVITE sip:callee@office.com 302 Moved Temporarily Contact: Callee@home.com Callee 的現在位址 ACK INVITE sip:callee@home.com SIP/2.0 200 OK 24. SIP Redirect 通常是要呼叫的人已經離開這個 proxy 網域, 會回一個 302 的訊息給打電話的人, 並且告訢他 callee 正確的位置 當然也可能是 proxy 會負責幫忙 forward sip message 到 callee 那, 端看系統如何設計 24

SIP Mobility Support: Roaming Users Personal mobility Service mobility 25 Sip 也支援 mobility 25

Roaming Users Logging into different IP networks away from home Basic Steps: 1. Get an IP address Use DHCP 2. Register with local proxy For firewall transversal for UDP (Option) 3. Register with home Registrar For calls routing 26 當一個 UA 到了一個新的區域, 會由當地的 DHCP 取得新的 IP, 並且像 HOME register server 註冊現在的位置, 當然也可以這個 register message 會經過當地的 proxy 轉送, 因此當地的 proxy 會做一些防火牆的工作 26

SIP Mobility Remote registration MN 166.1.2.3 Move 166.4.5.6 台大 中正 (home) From:me@CCU.EDU Contact:166.1.2.3 From:me@CCU.EDU Contact:166.4.5.6 INVITE From:me@CCU.EDU Contact:me@ntu INVITE INVITE 27 假設一個 MN 漫遊到台大, 得到一個 163.1.2.3 的 IP, REGISTER MESSAGE 會經由台大的 PROXY.. 在回到中正的 proxy 中正的 proxy 只要知道 MN 現在在台大 就可以了 如果 MN 一直在台大內移動, 換了 IP 還是在台大的 Proxy 服務範圍內, 則 REGISTER 訊息不會回傳到 Home. 當有 INVITE 訊息 CALL IN 時, 中正的 PROXY 只要負責轉送給台大 PROXY 台大 proxy 會負責找到 MN 27

Midcall mobility MEDIA Re INVITE(SDP: 新的 IP 位址 ) OK ACK MEDIA 28 這是在講電話當中,MN 換了位置, 會發一個 RE-INVITE 訊息給對方, 告之對方換 IP 了 但是中斷的問題?? 28

Personal mobility 人除了會移動之外, 還會因為所處環境的不同選擇不同的工具進行通訊 Switch between PDA, cell phone, PC, Ethernet phone,.. Several generic address, one person, many terminals. 29 應用 : 手機玩 game 現到一半, 剛好你走到 office, 可以換到桌上型電腦繼續玩 29

Personal mobility Tel:+1-123-456@com.com Tel:+1-654-321@mobile.com Men@sip.com.com Men@wireless.com Men@sip.com2.com sip.com.com sip.com2.com Men@pdanet.com Men@com.com 30 在不同時候, 選擇使用不用工具, 甚至一個工具也可能有二個以上的電話號碼. 30

Service Mobility What services? 電話簿 好友名單以及 Preference 語音信箱 MMS. 娛樂 購物 金融服務. 只要是你在平常會使用到的服務都有可能 有些服務只有當你出門在外到處移動才會需要 如 : 導航 以及還沒有人想到的服務! 31 換到 pda 打電話, 好友名單 電話簿是否可以跟著轉移? 31

Characteristics of SIP Simplicity Generic Session Description SDP Modularity and extensibility Programmability Integration with other IP component technologies Scalability and robustness 32 簡單, 通用的媒體描述語言 SDP 等 32

SIP in Use Connecting IP and Telephony SIP 與 PSTN 電話連線 Voice packets <-> PCM 64kbit/s stream SIP messages <-> SS7 messages E.164 number ( 電話號碼 ) 33 33

34 34

SIP Supported Services 所有訊息經過 SIP Proxy 都可以控制 Third-party call control Time-dependent routing Person-dependent routing Media-dependent routing Calling-name delivery Finding a party Call sip:chess@bt.com Other? 35 35

36 36

SIP in 3G network Internet Multimedia core network subsystem 37 37

(SIP Proxy) (SIP Proxy) (SIP Proxy) MGC 38 (IP Multimedia Core Network) CSCF 看做 SIP Proxy, 只是在 3g 網路中, 更細分功能 38

CSCF: call state control function P-CSCF: Proxy CSCF 服務於漫遊區 (Visited domain) 接受, 傳送 SIP UA 的訊息依據 SIP URI 尋找相關網域, 並將呼叫 / 註冊訊息傳遞至該網域 I-CSCF 負責與 UE 之間的安全連線,QoS, SIP message compression/decompression Emergency call to local S-CSCF ( 如 119) MN 可由 DHCP 找到 P-CSCF, 爾後所有 SIP 訊息都由 P-CSCF 轉發給 S-CSCF 39 39

I-CSCF: Interrogating-CSCF 為 home domain 的入口, 通常也是 Firewall 為每個 SIP 訊息找到相對應 S-CSCF 根據查尋 HSS 中的用户屬性來確定是由那個 S-CSCF 為該用戶服務, 可能有多個 S-CSCF 來分擔負載 在 P-CSCF 和 S-CSCF 之間傳遞 SIP 訊息還可以提供 P-CSCF/S- CSCF 之間的安全驗證功能 40 40

S-CSCF: Serving-CSCF 具有 SIP Registrar 和 SIP Proxy 功能接受用戶註冊, 進行 URI 分析, 路由 SIP Message, 儲存狀態與 Application server 溝通, 觸發相關業務接收本地與漫游用戶註冊保存由 HSS(HLR) 下載的臨時用戶資料尋找下一個 I-CSCF ( 如果被呼叫端在另一個網域 ) HSS : Home Subscriber Server 用戶身份 號碼 位址 Profile(service,information ) 41 41

MN(User Agent) 註冊 ( 經由 Proxy CSCF) Proxy-CSCF 找到相關的 Home Domain, 並傳送註冊訊息給 Interrogating-CSCF I-CSCF 由 HSS(Home Subscriber Server) 中選擇 Serving-CSCF 服務 MN 42 42

43 43

Call model in roaming case 44 44

45 45

SIP with ENUM PSTN to SIP phone 1. ENUM Query ENUM DNS SCP SSP 2. NAPTR RR 3. DNS Query DNS 4. A RR 5. Invite 6. Invite 7. 320, Move.. Softswitch SIP proxy 8. Ack STP 9. Invite Redirect PSTN Media Gateway SIP proxy 10. Invite CALL : 23939889 46 Sip:pizza@1.2.3.4 46

References SIP: Session Initiation Protocol,IETF RFC 3261 3GPP Release 5, TS 24.228 Session Initiation Protocol in 3G,Tuomo Sipila, Nokia Research Center,Helsinki,Finland SIP in 3G Networks,Paulius Meskauskas,Internet Protocols for Mobile Computing Department of Computer Science University of Helsinki ENUM:http://www.enum.org.tw/ SIP_Phone 軟體下載 http://www.iptel.org/info/products/sipphones.php 47 47