Technical documentation
发布日期:2022-05-18 浏览次数:3053 来源:WOLF-LAB(沃尔夫)实验室
CCIE语音/协作学习技术文档-VOIP实验配置
欢迎关注WOLFLAB(沃尔夫)网络实验室
PSTN:公共电话交换网络
传统电话网的特点:
1、电路交换
2、费用高
3、通话质量好
4、安全性高
TDM telephony--时分复用电话技术
VOIP:
语音电话的特点:
1、包交换(统计复用)
2、通话质量(QOS)
3、安全
4、扩展性好
---------------------------------------------------------------------------
TDM上的接口类型:
1、analog 模拟
2、digital 数字
路由器上的几种模拟接口:
FXS--接模拟电话,用作PSTN/PBX端,可用于FXS-FXO的连接,可以提供电压。
FXO--接局端,用作终端设备,可用于FXS-FXO的连接
E&M--接PBX设备,可再外接多个模拟电话机,用作中继线,主要是PBX之间或设备之间的互连
模拟中继线路一次只能传输一路语音
路由器上的数字接口:
E1--欧洲标准,32个信道,30个语音信道,2个控制信道,用来传信令
T1--北美标准,24个信道,23个语音信道,1个控制信道
数字中继线路可同时传输多路语音
模拟中继线路易受干扰,不适合于长距离的传输,数字中继线路抗干扰能力强,可用于长距离传输。
PBX--程控电话交换机,作模拟电话的集中管理
信令--用于建立、维护、拆除一条信道
信令的几种标准H323
1、H225,TCP连接
MGCP
SCCP cisco开发的私有信令SIP 现在的主流应用
两个专业术语
off-hook 摘机
on-hook 挂机
每一路电话信道是64K
A/D模数转换的四步
1、采样
2、量化
3、编码
4、压缩
采样:
耐奎斯特原理:以最高频率的两倍速率进行采样
量化:
分线性量化和对数量化
编码压缩的标准:
G.711,PCM,8K采样,8bit编码,64K/S的传输量
G.719,CS-ACELP
G.719A,CS-ACELP 目前主流技术
DSP--(数字信号处理器)语音模块,在模数转换过程中起到处理作用,是路由器中的一个单独的模块,需要额外定,现在的模块名是PVDM,分为8路、12路、16路、32路、64路
DSP的三个作用:
1、在不同制式之间转换
2、A/D或D/A转换
3、集成多路
VAD--活动语音检测
语音流的封装
IP+UDP+RTP+payload
RTP用来解决UDP的无序性
CRTP用来压缩语音包的包头,将IP+UDP+RTP压缩成2-4个字节,未压缩之前是40字节,如果保留UDP中的校验和就压缩为4字节,如果不保留就压缩为2字节。
语音IP包的封装是20S封装一次,每S封装50个包。每个包的负载是160字节,加上RTP+UDP+IP头共40字节。得到每个IP包200字节,200*50=80Kbps,也就是说,一路IP语音包的传输需要80K的带宽。
CAC--呼叫准入控制,在以太网中,控制你只能传输几路语音,因为QOS只能控制语音占用的带宽,不能控制传输几路语音。
CM(call manager)--集中管理IP电话
SRST--远端呼叫再生
R3640#show voice port summary 查看语音接口
R3640#show diag 查看每一个插槽所插模块的情况
R3640(config)#dial-peer voice 1 pots
R3640(config-dial-peer)#destination-pattern 1001
R3640(config-dial-peer)#port 1/0/0
R3640(config)#dial-peer voice 2 pots
R3640(config-dial-peer)#destination-pattern 1002
R3640(config-dial-peer)#port 1/0/1
R3640#csim start 1001 隐藏命令,用于测试配置是否正确
实验二:
R1(config)#dial-peer voice 1 pots
R1(config-dial-peer)#destination-pattern 1001
R1(config-dial-peer)#port 1/0/0
R1(config)#dial-peer voice 12 pots
R1(config-dial-peer)#destination-pattern 2...
R1(config-dial-peer)#port 1/1/0
R1(config-dial-peer)#no digit-strip 不吃号
R2(config)#dial-peer voice 2 pots
R2(config-dial-peer)#destination-pattern 2002
R2(config-dial-peer)#port 1/0/0
R2(config)#dial-peer voice 12 pots
R2(config-dial-peer)#destination-pattern 1...
R2(config-dial-peer)#port 1/0/1
R2(config-dial-peer)#no digit-strip 不吃号
吃号--表示所定义的号码要精确匹配
不吃号--表示只要前面几位匹配就行,不要求精确匹配
实验三:
R1(config)#dial-peer voice 1 pots
R1(config-dial-peer)#destination-pattern 1001
R1(config-dial-peer)#port 1/0/0
R1(config)#dial-peer voice 12 voip
R1(config-dial-peer)#destination-pattern 2...
R1(config-dial-peer)#session target ipv4:12.1.1.2
R2(config)#dial-peer voice 2 pots
R2(config-dial-peer)#destination-pattern 2002
R2(config-dial-peer)#port 1/0/0
R2(config)#dial-peer voice 12 voip
R2(config-dial-peer)#destination-pattern 1...
R2(config-dial-peer)#session target ipv4:12.1.1.1
实验四--配置voice VLAN:
SW1(config)#vlan 10
SW1(config-vlan)#name DATA
SW1(config)#vlan 200
SW1(config-vlan)#name VOICE
SW1(config)#int f0/1
SW1(config-if)#switchport mode access
SW1(config-if)#switchport access vlan 10
SW1(config-if)#switchport voice vlan 200
SW1(config-if)#mls qos trust cos
注:交换机周期性的发送出CDP信息,中间就包含了voice vlan 信息,这样IP phone收到后就会根据相应的信息打上tag。所以voice vlan一定要开CDP。
实验五:
telephony-service
max-ephones 10
max-dn 20
ip source-address 192.168.100.1 port 2000
create cnf-files version-stamp Jan 01 2002 00:00:00
max-conferences 4 gain -6
配置出一台callmanager,可以分配号码。
------------------------------------------------------------
实验五:IP电话打模拟电话
R3配置:
先设定一个DHCP,为IP电话自动分配IP地址,也可以手动为电话设定。
ip dhcp pool WOLF
network 100.1.1.0 255.255.255.0
default-router 100.1.1.1
option 150 ip 100.1.1.1
设定电话号码
ephone-dn 1
number 1001
ephone-dn 2
number 1002
手动分配一个电话号码给IPphone
ephone 1
mac-address 0006.5327.E40F
button 1:1
第一个1代表IPphone上的第一个line,第二个1代表分配第一个号码给电话
自动分配电话号码给IPphone
telephony-service
max-ephones 10 设定最多允许的电话数
max-dn 10 设定最多允许的电话号码数
ip source-address 100.1.1.1 port 2000
auto assign 2 to 3
max-conferences 8 gain -6
transfer-system full-consult
create cnf-files version-stamp Jan 01 2002 00:00:00
红色代表自动产生的部分
写去外部的路由
dial-peer voice 1 voip
destination-pattern 2...
session target ipv4:13.1.1.1
查看IP与电话的映射:
R3#show ephone registered
ephone-1 Mac:0006.5327.E40F TCP socket:[1] activeLine:0 REGISTERED in SCCP ver 5 and Server in ver 5
mediaActive:0 offhook:0 ringing:0 reset:0 reset_sent:0 paging 0 debug:0 caps:7
IP:100.1.1.2 52136 Telecaster 7960 keepalive 38 max_line 6
button 1: dn 1 number 1001 CH1 IDLE
ephone-2 Mac:000B.46BD.E3B3 TCP socket:[2] activeLine:0 REGISTERED in SCCP ver 9 and Server in ver 5
mediaActive:0 offhook:0 ringing:0 reset:0 reset_sent:0 paging 0 debug:0 caps:8
IP:100.1.1.3 49373 Telecaster 7960 keepalive 31 max_line 6
button 1: dn 2 number 1002 CH1 IDLE
---------------------------------------------------------------------------
R1上配置:
dial-peer voice 2 pots
destination-pattern 2001
port 1/0/0
!
dial-peer voice 13 voip
destination-pattern 1...
session target ipv4:13.1.1.3
CCIE语音/协作学习技术文档-VOIP实验配置
提供给大家作为技术参考
上一篇:WOLFLAB一方老师带你解读虚拟云网络《VMware NSX-T卷2》-1
下一篇:暂无