联通培训-H323原理.ppt_第1页
联通培训-H323原理.ppt_第2页
联通培训-H323原理.ppt_第3页
联通培训-H323原理.ppt_第4页
联通培训-H323原理.ppt_第5页
免费预览已结束,剩余77页可下载查看

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

h.323原理,教学目标,理解h323的概念 掌握h323的组成及其特点 掌握主要的呼叫控制信令,教学内容,什么是h323? h323的组成及特点 h323区域 h323协议集,what is h.323?,international standard for conferencing over packet-based networks interoperability standard for network-, isdn-, and telephony-based conferencing systems single standard for network, video, and telephony products to interoperate,h.323,technology for the transmission of real-time audio, video, and data communications over packet-based networks specifies the components, protocols, and procedures providing multimedia communication over packet-based networks h.323 can be applied in a variety of mechanisms audio only (ip telephony) audio and video (videotelephony) audio and data audio, video, and data can also be applied to multipoint-multimedia communications,h.323 standard,itu recommendation v1 approved in 1996, v2 in january 1998 defines multimedia applications over packet based networks leverages existing standards wide market acceptance facilitates interoperability between vendors cisco voip solutions are h.323 compliant,6,0573_01f9_c2, 1998, cisco systems, inc.,h323标准是h32x家族的一部分,家族中其他的协议定义了基于不同网络的多媒体通信服务 基于scn的h324 基于isdn的h320 基于b-isdn的h321和h310 基于能提供qos的lan的h322,h.324 terminal,h.323 gatekeeper,packet network,h.323 terminal,h.323 gateway,h.323 mcu,scope of h.323,pstn,isdn,v.70 terminal,speech terminal,h.320 terminal,speech terminal,h.323 components,v,gk,h323终端,主要是ip电话和pc机,而非普通的电话,pc包括: 一个网络接口 音视频编解码器 h323软件 必须支持g.711 和h.261 必须支持h245、h225、ras、rtp/rtcp,终端:参考结构,video i/o equipment,audio i/o equipment,video codec h.261,h.263,audio codec g.711,g.723.1,receive path delay,user data app. t.120,system control user interface,system control,h.245 control,call control h.225.0,ras control h.225.0,h.225.0 layer,lan interface,h323网关,转换协议 转换信息格式 传递信息,h323关守,地址转换 控制许可 带宽控制和管理 区域管理 其他可选的功能 -呼叫控制信令 -呼叫授权 -呼叫管理,mcu-多点控制单元,提供3个或多点间的会议服务 mcu管理各点间的会议资源和协商 包括两个功能部件: mc(多点控制器)进行会议控制以决定信息流的流向 mp(多点处理器)负责组合、交换和处理信息流,mcu,本地服务:mcu:参考模型,mc,ref: h.323v2,mcu应用案例,h.323 层次结构图,h.323 zones,h.323 gatekeeper b,gatekeeper zone b,local pstn,h.323 gatekeeper a,gatekeeper zone a,h.323 client,local pstn,h.323 gw,qos wan,local pstn,local pstn,h323 zone,由关守管理的所有终端、网关、mcu的集合 一个区域至少包括一个终端 一个区域只有一个关守,h.235,h.323 protocol stack,tcp,udp,ip,rtcp,ras,audio or video control,h.225 (q.931),call control data,t.120,h.245,payload,header,g.7xx,h.26x,rtp,audio video,h323定义的协议,audio codecs video codecs h.225 call control (isdn q.931) h.245 system control real-time protocol (rtp) for media streams registration, admission, status (ras) messages for gatekeeper to endpoint communications,audio codec,发起端音频codec对模拟话音进行编码,转换成数字信号在网络里传输;接收端对数字信号进行解编码,把它还原成模拟的语音信号。 -采样 -量化 -编码 -压缩 所有h323终端必须支持语音codec itu-t建议使用g711,video codec,发起端视频codec把从摄象机获取的图象进行编码,转换成数字信号在网络里进行传输;在接收端,视频codec把数字信号进行解码,把它输出到视频显示器上 h323定义视频codec作为可选项 提供视频通信的终端必须支持视频codec itu-t建议使用h261,h.225 call control (isdn q.931),setup incoming call call proceeding alerting phone is ringing connect media cut through (used for billing) release/release complete tear down call,capabilities exchange codec negotiation - transmitter/receiver capabilities mode request - request specific transmission format master/slave determination open logical channel/ack create new audio/video/t.120 stream commands and indications frame flow control, camera control, etc.,h.245 system control,rtp/rtcprfcs 1889/1890,end-to-end network transport function sequence numbering time stamping delivery monitoring payload type identification - voice, video, compression type rtcp (real-time control protocol) provides feedback on the quality of the distribution,example: call signaling between two endpoints,media (udp) cisco implementation note: udp ports 16384 thru 16384 + (4 x the number of channels on the device),rtp stream,rtcp stream,h.323 endpoint a,h.245 (tcp dynamic port),open logical channel,h.225 (tcp port 1720),setup,alerting / connect,open logical channel acknowledge,capabilities exchange / msd,rtp stream,h.323 endpoint b,v,v,h.323v1 (5/96) - 7 or 8 round trips h.323v2 (2/98) - 2 round trips,assumes endpoints(clients) know each others ip addresses,grq/gcf/grj (discovery) unicast - multicast find a gatekeeper rrq/rcf/rrj (registration) endpoint alias/ip address binding endpoint authentication arq/acf/arj (admission) destination address resolution initial bandwidth request call routing call authorization,ras messages,drq/dcf/drj (disconnect) get rid of call state lrq/lcf/lrj (location) stateless name - ip address resolution inter gatekeeper communication irq/irr (information request) ping during active calls resource information for gateways brq/bcf/brj (bandwidth) ask for more/less bandwidth during call urq/ucf/urj (unregistration) get rid of registration state,ras messages (cont.),ras message exchange,gatekeeper a,gatekeeper b,rrq / rcf,arq,rrq / rcf,arq / acf,lrq,ip network,phone a,phone b,gateway a,gateway b,h.225 (q.931) setup,h.225 (q.931) connect,h.245,rtp,acf,lcf,v,v,gatekeeper discovery,h.323 endpoints/gws attempt to discover a gk (their zone) via ras unicast discovery gk will explicitly reply with a gcf, or grj gk - gw relationship is deterministic multicast discovery gk will explicitly reply with a gcf, or remain silent gk can be configured as to which subnets to respond to if gw requests an explicit gk name, only that one will respond deterministic if not, the first gk to respond will become the gws gk non-deterministic if a gk is not available, the gw will periodically attempt to rediscover if gw discovers gk has gone off-line, it will stop accepting new calls, attempt to rediscover a gk. active calls are not affected.,seq number h.225 protocol identifier rasaddess endpointtype gatekeeperid .,selected message fields,registration message sequence,h.323 client learns of gk via static configuration or dynamic discovery registration with an h.323 id, or an e.164 address h323 id: e.164 address: 4085551212 every e.164 address can be registered only once registration expires after keepalive (30 seconds) unregister messages (urq / ucf) to de-register from gk every gw can register with only one gk only one gk per zone multiple zones, or logical gks, per physical machine,seq number h.225 protocol identifier callsignaladdress rasaddress terminaltype terminalalias gatekeeperid timetolive keepalive endpointid .,selected message fields,intra-zone call set-up,gk1,1) terminal a dials the phone number 408-667-1111 for terminal b 2) gwa sends gk1 an arq, asking permission to call terminal b 3) gk1 does a look-up and finds terminal b registered; returns an acf with the ip address of gwb 4) gwa sends a q.931 call-setup to gwb with terminal bs phone number 5) gwb sends gk1 an arq, asking permission to answer gwas call 6) gk1 returns an acf with the ip address of gwa 7) gwb sets up a pots call to terminal b at 408-667-1111 8) when terminal b answers, gwb sends q.931 connect to gwa,terminal a 415-557-1111,inter-zone call set-up,1) terminal a dials the phone number 408-667-1111 for terminal b 2) gwa sends gk1 an arq, asking permission to call terminal b 3) gk1 does a look-up and does not find terminal b registered; gk1 does a prefix look-up and finds a match with gk2; gk1 sends an lrq to gk2 4) gk2 does a look-up and finds terminal b registered; returns an lcf with the ip address of gwb 5) gk1 returns an acf with the ip address of gwb 6) gwa sends a q.931 call-setup to gwb with terminal bs phone number 7) gwb sends gk2 an arq, asking permission to answer gwas call 8) gk2 returns an acf with the ip address of gwa 9) gwb sets up a pots call to terminal b at 408-667-1111 10) when terminal b answers, gwb sends q.931 connect to gwa,inter-zone call set-up: directory gatekeeper,1) terminal a dials the phone number 408-667-1111 for terminal b 2) gwa sends gk1 an arq, asking permission to call terminal b 3) gk1 does a look-up and does not find terminal b registered; gk1 does a prefix look-up and finds a wildcard match with dir-gk; gk1 sends lrq to dir-gk 4) dir-gk does a prefix look-up and finds gk2; forwards the lrq to gk2 5-11) same as steps 4-10 in previous scenario,call disconnect,terminals a and b are in active conversation. 1) terminal b hangs up 2) gwb sends drq to gk2, disconnecting the call between terminals a and b. a dcf is received some time later. 3) gwb sends a q.931 release complete to gwa 4) gwa sends drq to gk1, disconnecting the call between terminals a and b. a dcf is received some time later. 5) gwa signals a call disconnect to the voice network (the mechanism differs depending on the trunk used on gwa. if it is a phone set (fxs), then there is no mechanism to signal the disconnect.,real-time transport protocol (rtp),works with udp to provide transport-protocol functionality provides end-to-end delivery services of real-time audio and video rtp provides payload-type identification, sequence numbering, timestamping, and delivery monitoring udp provides multiplexing and checksum services can be used with other transport protocols,h.323 proxy,conceals identities of endpoints gw a never knows the ip address of gw b proxy relays all call signaling and media streams ability to provide a ras interface to non-ras clients.,gk a - direct,gk b - proxied,lrq/lcf,arq/acf,h.225 / h.245 / rtp,gw a,gw b,proxies,proxies are used for: security (hiding the identity of the true end-point) quality of service application specific routing (asr) security proxy inside the firewall proxy in co-edge mode proxy outside the firewall proxies and network address translation (nat) 12.0(3)t does not support a single proxy per call dual proxy or direct the destination gk makes the decision to assign a proxy or not use “zone access” command to instruct gk to assign proxy determination to use proxy made by the terminating gk the originating gk will assign a proxy if the terminating gk is using a proxy,inter-zone call set-up with proxies,1) terminal a dials terminal b 2) gwa sends arq to gk1 3) gk1 sends lrq to gk2 4) gk2 returns proxy-bs address, hiding gwbs identity 5) gk1 knows to get to proxy-b, it must go through proxy-a, so gk1 returns proxy-as address to gwa 6) gwa calls proxy-a 7) proxy-a consults gk1 to find the true destination, gk1 tells it to call proxy-b 8) proxy-a calls proxy-b 9) proxy-b consults gk2 for the true destination, which is gwb; gk2 gives gwbs address to proxy-b 10) proxy-b completes the call to gwb from here the call proceeds as before.,limitations and guidelines,zone prefixes per directory gk: 10,000 for dedicated dir-gk 2,000 for any gk managing local zones lrq hops max hop-count of 5 cisco-specific feature; lrqs from non-cisco gear and pre-12.0(3)t cisco gear will not be forwarded active registrations terminals are low-maintenance, but gws are high target of 100 gws per gk (keep call traffic in mind) local zones per gk: 100 remote zones per gk: 100 for h.323 id destinations less impacting for e.164 destinations tech prefixes: 50 per gk,components of quality,dsps codecs,carrier-class voice quality,end-to-end networking qos service elements,dsps codecs,qos wan,gateway latency coding quality,network latency jitter control,cisco as5300,silence suppression / vad,essential components 22%,pauses 56%,repetitive 22%,over half of the typical voice call is silence! vad removes silence from data stream. comfort noise during silent periods.,rtp header compression,20ms8kb/s yields 20 byte payload ip header 20; udp header 8; rtp header 12 2x payload! header compression 40bytes to 2-4 much of the time hop-by-hop slow links,overhead,version,ihl,type of service,total length,identification,flags,fragment offset,header checksum,protocol,time to live,source address,destination address,padding,options,source port,destination port,checksum,length,pt,m,cc,x,p,v=2,sequence number,timestamp,synchronization source (ssrc) identifier,h323应用案例, voip,case-1 :不经过关守的配置,网关配置(无关守),基本配置 router#conf terminal router(config)#hostname bj-gw 定义主机名 接口配置 bj-gw#conf terminal bj-gw(config)#int fastethernet0/0 bj-gw(config-if)#ip addr bj-gw(config-if)#no shut,拨号对等体的配置 本地(local)对等体配置 bj-gw(config)#dial-peer voice 10 pots bj-gw(config)#destination-pattern 010114 bj-gw(config)#port 1/0/0 网络端的对等体配置 bj-gw(config)#dial-peer voice 20 voip bj-gw(config)#destination-pattern 021114 bj-gw(config)#session tartget ipv4:,case-2:经过一个关守的配置,网关配置(有关守),基本配置 router#conf terminal router(config)#hostname bj-gw 定义主机名 接口配置 bj-gw#conf terminal bj-gw(config)#int fastethernet0/0 bj-gw(config-if)#ip addr bj-gw(config-if)#no shut bj-gw(config-if)#h323-gateway voip interface (与voip相连接口) bj-gw(config-if)#h323-gateway voip id gk-bj ipaddr 1719 ( 指向关守的ip地址) bj-gw(config-if)# h323-gateway voip h323-id beijing-gw (本网关的别名) bj-gw(config-if)# h323-gateway voip tech-prefix 1# (注明身份类型),关守配置,配置本地和远端的区域名 gk(config)#gatekeeper #zone local gk-bj #zone local #zone remote 配置区域前缀(区号) #zone prefix gk-bj 010* #zoen prefix gk-sh 021* #zone prefix,关守配置(续),配置缺省的技术前缀及其它 gw-type-prefix 1# default-technology arq reject-unknown-prefix lrq reject-unknown-prefix no shut,case study,gw-bj1 1#,gw-bj2 2#,gw-bj3 3#,gw-sh1 1#,gw-sh2 2#,gw-sh3 3#,gk-bj,gk-sh,beijing: zone local gk-bj zone remote gk-sh zone prefix gk-bj 010* zone prefix gk-sh 021* gw-type-prefix 5# hopoff gk-hktel gw-type-prefix 1# default-technology arq reject-unknown-prefix lrq reject-unknown-prefix lrq forward-queries,shanghai: zone local gk-sh zone remote gk-bj zone prefix gk-bj 010* zone prefix gk-sh 021* gw-type-prefix 5# hopoff gk-hktel gw-type-prefix 1# default-technology arq reject-unknown-prefix lrq reject-unknown-prefix lrq forward-queries,scene 1: 2#02112345678,从北京网关发起呼叫,落地网关:,gw-sh2,scene 2: 02112345678,scene 3: 5#0085212345678,scene 4: 02912345678,gw-sh1,gw-bj1?,interface ethernet0/0 h323-gateway voip tech-prefix 1#,dial-peer voice 101 voip destination-pattern 021t tech-prefix 2# session target ras,interface ethernet0/0 h323-gateway voip tech-prefix 2#,interface ethernet0/0 h323-gateway voip tech-prefix 3#,dial-peer voice 102 voip destination-pattern 021t session target ras,dial-peer voice 103 voip destination-pattern 00852t tech-prefix 3# session target ras,dial-peer voice 104 voip destination-pattern 029t session target ras,h323应用案例,coip,scenario 0: point to point a/v/d with no gatekeeper,呼叫流程,endpoint a calls endpoint b*: endpoint a sends setup to endpoint b endpoint b sends call proceeding to endpoint a (optional). endpoint b sends alerting to endpoint a endpoint b sends connect to endpoint a. endpoints terminate call endpoint a sends release complete to endpoint b.,scenario 1: point to point a/v/d call within single zone,h.323 ep,“a-2”,h.323 gk,“a”,single zone,h.323 ep,“a-1”,呼叫流程,endpoints perform discovery/registration using alias. endpoint a1 calls endpoint a2 endpoint a1- sends arq to gatekeeper with alias. endpoint a1 receives acf with ip address and contacts endpoint a2 or gk. endpoint a2 sends arq to gatekeeper and receives acf. gatekeeper has call active.,endpoints terminate call both endpoints send drq to gatekeeper. both endpoints receive dcf. gatekeeper has call cleared.,scenario 2: point to point a/v/d call between multiple zones,h.323 ep,“a-2”,h.323 gk,“a”,zone “a”,h.323 gk,“b”,h.323 ep,“b-2”,zone “b”,h.323 ep,“a-1”,h.323 ep,“b-1”,inter-zone calls,呼叫流程,endpoints perform discovery/registration using alias endpoint a1 calls endpoint b1 endpoint a1 sends arq to gatekeeper a gatekeeper a issues lrq (uni/multicast) to gatekeeper b gatekeeper a returns acf gatekeeper a has call active endpoint b1 performs arq/acf sequence, returns connect gatekeeper b has call active,endpoints terminate call both endpoints send drq to gatekeeper. both endpoints receive dcf. gatekeepers have calls cleared.,scenario 3: multi-point a/v/d call between multiple zones,inter-zone calls,h.323 mcu,h.323 ep,“a-1”,h.323 gk,“a”,h.323 ep,“a-2”,zone “a”,h.323 gk,“b”,h.323 ep,“b-2”,zone “b”,h.323 ep,“b-1”,呼叫流程,endpoints perform discovery/registration using alias. mcu registers (rrq) h323-id for conference alias at gatekeeper, gets rcf the mcu will establish a g.711 & h.261 cif centralized conference.,endpoint a1 calls mcu endpoint a1 sends arq to gatekeeper with conference alias. endpoint a1 receives acf with ip address and contacts mcu. mcu sends arq to gatekeeper and receives acf the mcu sends multipointconference indication to a1. a1 shall wait for communicationmode command. the mcu will send communicationmode command with the conference mode.,mcu and endpoint a1 open audio, video and data channels according to communicationmode command. endpoint a2 calls mcu (to join conference) endpoint a2 sends arq to gatekeeper with conference alias. endpoint a2 receives acf with ip address and contacts mcu. mcu sends arq to gatekeeper and receives acf,the mcu sends multipointconference indication to a2. a2 shall wait for communicationmode command. the mcu will send communicationmode command with the conference mode. mcu and endpoint a2open audio, video and data channels according to communicationmode command.,endpoint a3 calls mcu (to join conference) endpoint a3 sends arq to gatekeeper with conference alias. endpoint a3 receives acf with ip address and contacts mcu. mcu sends arq to gatekeeper and receives acf,the mcu sends a new multipointconference indication to a3 with a change in the conference common mode (qcif instead of cif). a3 shall wait for communicationmode command. the mcu will send communicationmode command with the new conference mode to a1, a2 and a3. mcu and endpoint a3 open audio, video and data channels according to communicationmode command.,mcu and endpoint a3 open audio, video and data channels according to communicationmode command. mcu terminates conference mcu sends endsessi

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论