VoIP語(yǔ)音電話(huà)的設計與實(shí)現
2002/11/27
Voice over IP是在IP網(wǎng)絡(luò )上傳輸語(yǔ)音流量(例如,電話(huà)和傳真)的技術(shù),主要是一種軟件特性,但是,要在Cisco2600/3600系列路由器上實(shí)現這個(gè)功能,必須首先安裝語(yǔ)音模塊VNM(Voice
Network Module),VNM可以裝兩個(gè)或四個(gè)語(yǔ)音接口卡(VIC),每個(gè)接口卡都對應于與語(yǔ)音接口相關(guān)的特定信號類(lèi)型。
1. 單機實(shí)現IP語(yǔ)音電話(huà)
(1)在裝有兩個(gè)語(yǔ)音模塊的3600路由器上實(shí)現IP語(yǔ)音電話(huà)(如下圖所示)。
(2)基本配置 
dial-peer voice 1 pots
destination-pattern 111
port 3/0/0
!
dial-peer voice 2 voip
destination-pattern 222
session target ipv4:192.16.12.1
!
dial-peer voice 4 pots
destination-pattern 222
port 3/1/0
!
dial-peer voice 3 voip
destination-pattern 111
session target ipv4:192.16.12.2
!
!
(3)配置概述
本實(shí)驗是在Cisco3600 Router內部實(shí)現的,沒(méi)有經(jīng)過(guò)鏈路傳輸,所以不需要優(yōu)化撥號點(diǎn)和網(wǎng)絡(luò )接口的配置,只需配置撥號點(diǎn):
● 要配置源和目標之間的所有連接,在voice port 3/0/0上輸入下面命令:
dial-peer voice 1 pots
destination-pattern 111
port 3/0/0
!
dial-peer voice 2 voip
destination-pattern 222
session target ipv4:192.16.12.1
● 要完成在撥號點(diǎn)1和撥號點(diǎn)4之間的端對端呼叫,在voice port3/1/0上輸入下面命令:
dial-peer voice 4 pots
destination-pattern 222
port 3/1/0
!
dial-peer voice 3 voip
destination-pattern 111
session target ipv4:192.16.12.2
2. 路由器間實(shí)現IP語(yǔ)音電話(huà)
(1) 站點(diǎn)A有一個(gè)Cisco3600路由器,站點(diǎn)B有一個(gè)Cisco2600路由器,它們通過(guò)DCE/DTE V.35電纜背對背地連接起來(lái)。在每個(gè)路由器中安裝了一個(gè)含有一個(gè)VIC-2FXS的NM-2V,提
供兩個(gè)模擬電話(huà)的連接。
(2)創(chuàng )建并實(shí)現撥號方案
(3)基本配置:
站點(diǎn)A的基本配置見(jiàn)清單1(站點(diǎn)B的基本配置略)。
清單1 站點(diǎn)A RouterA的配置
Current configuration:
! 
version 12.0
service timestamps debug uptime //設定Debug跟蹤日志顯示其時(shí)間
service timestamps log uptime //設定看Log時(shí)顯示其時(shí)間
no service password-encryption //口令不加密
!
hostname router_A
!
enable password cisco
!
username router_A password 0 cisco
!
!
!
!
ip subnet-zero
no ip domain-lookup
!
!
!
!
voice-port 3/0/0
echo-cancel coverage 16 //啟動(dòng)回聲消除功能
!
voice-port 3/0/1
!
!
dial-peer voice 1 pots //定義撥號對等體到語(yǔ)音物理端口
destination-pattern 2222 //定義電話(huà)號碼
port 3/0/0 //定義電話(huà)號碼
!
dial-peer voice 2 voip //定義撥號對等體到語(yǔ)音
destination-pattern 1111 //為撥號對等體分配電話(huà)號碼
req-qos controlled-load //在分配帶寬時(shí),RSVP確保即使帶寬發(fā)生擁塞與過(guò)載時(shí),數據流也能得到優(yōu)先處理。
codec g711ulaw //撥號點(diǎn)的語(yǔ)音編碼速率—64000bps
ip precedence 5 //IP優(yōu)先級,5為關(guān)鍵
no vad //禁用語(yǔ)音活動(dòng)檢測
session target ipv4:192.168.100.1 //定義Voip路由,為對端的IP地址
!
!
interface Ethernet0/0
no ip address
no ip directed-broadcast
shutdown
!
interface Serial0/0
ip address 192.168.100.2 255.255.255.0 // S0/0的IP地址
no ip directed-broadcast
no ip mroute-cache
no fair-queue
clockrate 2000000
ip rtp header-compression //配置RTP頭壓縮器
ip rtp compression-connections 25
ip rsvp bandwidth 1000 320
!
interface Ethernet0/1
no ip address
no ip directed-broadcast
shutdown
!
ip classless
ip route 192.168.100.0 255.255.255.0 192.168.100.1
no ip http server
!
line con 0
transport input none
line aux 0
line vty 0 4
login
!
end
(4)配置概述
根據公共的功能,站點(diǎn)A的配置分為4個(gè)不同的部分。第1部分在清單2中描述,它為日志和調試命令啟用時(shí)間標記,為路由器指定一個(gè)主機名稱(chēng)。
清單2 站點(diǎn)A的配置的第1部分
version 12.0
service timestamps debug uptime //設定Debug跟蹤日志顯示其時(shí)間
service timestamps log uptime //設定看Log時(shí)顯示其時(shí)間
no service password-encryption //口令不加密
!
hostname router_A
!
enable password cisco
!
username router_A password 0 cisco
!
第2部分在清單4中描述,它提供語(yǔ)音連接的實(shí)質(zhì)內容,語(yǔ)音端口簡(jiǎn)單地標識它們連接到的設備。撥號對等體1把電話(huà)號碼分配給物理語(yǔ)音端口,撥號對等體2定義VoIP呼叫到站點(diǎn)B。在語(yǔ)音端口3/0/0上啟動(dòng)回聲消除功能。IP優(yōu)先級設置為5,設置資源預留協(xié)議RSVP為controlled-load,確保即使帶寬發(fā)生擁塞與過(guò)載時(shí),數據流也能得到優(yōu)先處理。而且因為多余的帶寬,語(yǔ)音活動(dòng)檢測被禁止了,并為撥號點(diǎn)配置了語(yǔ)音編碼速率—64000bps。
清單4 站點(diǎn)A的配置的第2部分
voice-port 3/0/0
echo-cancel coverage 16
!
voice-port 3/0/1
!
!
dial-peer voice 1 pots
destination-pattern 2222
port 3/0/0
!
dial-peer voice 2 voip
destination-pattern 1111
req-qos controlled-load
codec g711ulaw
ip precedence 5
no vad
session target ipv4:192.168.100.1
!
第3部分在清單5中描述,它配置路由器上的網(wǎng)絡(luò )端口。串口0/0連接到DCE V.35電纜,為串行接口增加clockrate接口配置命令。為語(yǔ)音配置RSVP保證在網(wǎng)絡(luò )中獲取特定的QoS。配置RTP頭壓縮連接的數量為25。
清單5 站點(diǎn)A的配置的第5部分
interface Ethernet0/0
no ip address
no ip directed-broadcast
shutdown
!
interface Serial0/0
ip address 192.168.100.2 255.255.255.0
no ip directed-broadcast
no ip mroute-cache
no fair-queue
clockrate 2000000
ip rtp header-compression
ip rtp compression-connections 25
ip rsvp bandwidth 1000 320
!
第4部分如清單6所示,完成整個(gè)配置,它分配一條靜態(tài)路由到站點(diǎn)B的網(wǎng)絡(luò )(192.168.100.0),在這個(gè)簡(jiǎn)單環(huán)境中,不要求IP路由協(xié)議。
清單6 站點(diǎn)A的配置的第4部分
ip classless
ip route 192.168.100.0 255.255.255.0 192.168.100.1
no ip http server
!
計算機世界網(wǎng)(www.ccw.com.cn)
相關(guān)鏈接:
亚洲精品网站在线观看不卡无广告,国产a不卡片精品免费观看,欧美亚洲一区二区三区在线,国产一区二区三区日韩
江西省|
来凤县|
镇原县|
陇西县|
乃东县|
尚义县|
百色市|
梅河口市|
噶尔县|
平邑县|
鄂尔多斯市|
板桥市|
丰城市|
台江县|
恭城|
逊克县|
拜泉县|
连南|
安宁市|
无为县|
五大连池市|
松溪县|
无极县|
西青区|
西充县|
哈尔滨市|
米脂县|
娄底市|
灌云县|
河池市|
张家口市|
三亚市|
石柱|
肇东市|
弋阳县|
昆明市|
班玛县|
绥化市|
仙居县|
云阳县|
体育|
http://444
http://444
http://444
http://444
http://444
http://444