Design and Implementation of VoIP

Source: Internet
Author: User

Voice over IP is a technology used to transmit Voice traffic over an IP network, such as telephone and fax. It is mainly a software feature. However, this function must be implemented on the Cisco2600/3600 series routers, you must first install the voice Module VNMVoice Network Module). VNM can be equipped with two or four Voice interface cards (VIC). Each interface card corresponds to a specific signal type related to the voice interface.

1. Single-Host IP voice calls

1) Implement an IP address voice phone number on the 3600 router with two voice modules, as shown in ).



2) basic configuration

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) Configuration Overview

This experiment is implemented in the Cisco3600 Router without link transmission. Therefore, you do not need to optimize the configuration of Dial points and network interfaces. You only need to configure the dial points:

● To configure all connections between the source and target, enter the following command on 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

● To complete the end-to-end call between dial point 1 and dial point 4, enter the following command on 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. implement IP voice calls between Routers

1) Site A has A Cisco3600 router and site B has A Cisco2600 router, which are connected back and back through the DCE/DTE V.35 cable. A VIC-2FXS containing a NM-2V is installed in each router to provide a connection to two analog phones.

2) create and implement a dialing Scheme

3) Basic Configuration:

For basic configuration of Site A, see Figure 1. Basic configuration of site B ).



Configuration of site A router in Listing 1



Current configuration:

!

Version 12.0:

Service timestamps debug uptime // set the Debug trace log to display its time

Service timestamps log uptime // sets the time when the Log is viewed

No service password-encryption // The password is not encrypted

!

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 // enable echo Cancellation

!

Voice-port 3/0/1

!

!

Dial-peer voice 1 pots // defines the physical port from the dial peer to the voice

Destination-pattern 2222 // define the telephone number

Port 3/0/0 // define the phone number

!

Dial-peer voice 2 voip // defines the dial peer to speech

Destination-pattern 1111 // assign a telephone number to the dial-up peer

Req-qos controlled-load // when allocating bandwidth, RSVP ensures that data streams are prioritized even when bandwidth is congested or overloaded.

Codec g711ulaw // specifies the Speech Encoding rate of the dialing point-64000bps

Ip precedence 5 // IP priority, 5 as the key

No vad // disable Voice Activity Detection

Session target ipv4: 192.168.100.1 // define a Voip route, which is the IP address of the Peer end.

!

!

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 address

No ip directed-broadcast

No ip mroute-cache

No fair-queue

Clockrate 2000000

Ip rtp header-compression // configure the RTP header Compressors

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) Configuration Overview

Based on public functions, Site A is configured in four different parts. Part 1 is described in Listing 2, which enables time stamps for logs and Debugging commands and specifies a host name for the vro.

Listing 2 Part 1 of Site A's configuration

Version 12.0:

Service timestamps debug uptime // set the Debug trace log to display its time

Service timestamps log uptime // sets the time when the Log is viewed

No service password-encryption // The password is not encrypted

!

Hostname router_A

!

Enable password cisco

!

Username router_A password 0 cisco

!

Part 2 is described in Listing 4, which provides the essence of the voice connection, and the voice ports simply identify the devices they connect. Dial-Up peer 1 assigns the phone number to the physical voice port, and dial-up peer 2 defines the VoIP call to site B. Enable echo cancellation on the voice Port 3/0/0. Set the IP priority to 5 and the Resource Reservation Protocol RSVP to controlled-load to ensure that data streams are prioritized even when bandwidth is congested or overloaded. In addition, voice activity detection is disabled due to excessive bandwidth, and the dialing point is configured with a Speech Encoding rate of-64000bps.

Listing 4 configuration Part 1 of Site

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

!

Part 1 is described in listing 5, which configures the network port on the router. Connect the serial port 0/0 to the DCE V.35 cable and add the clockrate interface configuration command for the serial interface. Configure RSVP for voice to ensure specific QoS is obtained in the network. Set the number of RTP Header Compression connections to 25.

Listing 5 configuration Part 1 of Site

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

!

Part 1 is shown in Listing 6. After completing the configuration, it allocates a static route to the network 192.168.100.0 of Site B. In this simple environment, IP routing protocol is not required.

Listing 6 configuration Part 1 of Site

Ip classless

Ip route 192.168.100.0 255.255.255.0 192.168.100.1

No ip http server

!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.