VoIP – Per Call Bandwidth
| Codec Information | Bandwidth Calculations | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Codec & Bit Rate (Kbps) | Codec Sample Size (Bytes) | Codec Sample Interval (ms) | Mean Opinion Score (MOS) | Voice Payload Size (Bytes) | Voice Payload Size (ms) | Packets Per Second (PPS) | Bandwidth MP or FRF.12 (Kbps) | Bandwidth w/cRTP MP or FRF.12 (Kbps) | Bandwidth Ethernet (Kbps) |
| G.711 (64 Kbps) | 80 Bytes | 10 ms | 4.1 | 160 Bytes | 20 ms | 50 | 82.8 Kbps | 67.6 Kbps | 87.2 Kbps |
| G.729 (8 Kbps) | 10 Bytes | 10 ms | 3.92 | 20 Bytes | 20 ms | 50 | 26.8 Kbps | 11.6 Kbps | 31.2 Kbps |
| G.723.1 (6.3 Kbps) | 24 Bytes | 30 ms | 3.9 | 24 Bytes | 30 ms | 33.3 | 18.9 Kbps | 8.8 Kbps | 21.9 Kbps |
| G.723.1 (5.3 Kbps) | 20 Bytes | 30 ms | 3.8 | 20 Bytes | 30 ms | 33.3 | 17.9 Kbps | 7.7 Kbps | 20.8 Kbps |
| G.726 (32 Kbps) | 20 Bytes | 5 ms | 3.85 | 80 Bytes | 20 ms | 50 | 50.8 Kbps | 35.6 Kbps | 55.2 Kbps |
| G.726 (24 Kbps) | 15 Bytes | 5 ms | 20 ms | 50 | 42.8 Kbps | 27.6 Kbps | 47.2 Kbps | ||
| G.728 (16 Kbps) | 10 Bytes | 5 ms | 3.61 | 60 Bytes | 30 ms | 33.3 | 28.5 Kbps | 18.4 Kbps | 31.5 Kbps |
| G722_64k (64 Kbps) | 80 Bytes | 10 ms | 4.13 | 160 Bytes | 20 ms | 50 | 82.8 Kbps | 67.6 Kbps | 87.2 Kbps |
| ilbc_mode_20 (15.2Kbps) | 38 Bytes | 20 ms | NA | 38 Bytes | 20 ms | 50 | 34.0 Kbps | 18.8 Kbps | 38.4 Kbps |
| ilbc_mode_30 (13.33Kbps) | 50 Bytes | 30 ms | NA | 50 Bytes | 30 ms | 33.3 | 25.867 Kbps | 15.73 Kbps | 28.8 Kbps |
- 40 bytes for IP (20 bytes) / User Datagram Protocol (UDP) (8 bytes) / Real-Time Transport Protocol (RTP) (12 bytes) headers.
- Compressed Real-Time Protocol (cRTP) reduces the IP/UDP/RTP headers to 2 or 4 bytes (cRTP is not available over Ethernet).
- 6 bytes for Multilink Point-to-Point Protocol (MP) or Frame Relay Forum (FRF).12 Layer 2 (L2) header.
- 1 byte for the end-of-frame flag on MP and Frame Relay frames.
- 18 bytes for Ethernet L2 headers, which include 4 bytes of Frame Check Sequence (FCS) or Cyclic Redundancy Check (CRC).
Bandwidth Calculation Formulas
- Total packet size = (L2 header: MP or FRF.12 or Ethernet) + (IP/UDP/RTP header) + (voice payload size)
- PPS = (codec bit rate) / (voice payload size)
- Bandwidth = total packet size * PPS
kaynak : ciscı
nokia router üzerinde lag ve lacp ile yedekli devre
nokia router üzerinde lag – lacp aktif olarak yedekli bir devre kurabilmek için öncelikle port konfigürasyonunu yapmamız gerekmedir. burada dikkat edilmesi gereken nokta autonegotiate enable olamayacağıdır. ya disable yada limited olarak ayarlamamız gerekmektedir.
*A:cicek>config>port# /configure port 7/1/10
*A:cicek>config>port# description "ana-yol"
*A:cicek>config>port# ethernet
*A:cicek>config>port>ethernet# mode access
*A:cicek>config>port>ethernet# encap-type dot1q
*A:cicek>config>port>ethernet# autonegotiate limited
*A:cicek>config>port>ethernet# exit
*A:cicek>config>port# no shutdown
*A:cicek>config>port# info
----------------------------------------------
description "ana-yol"
ethernet
mode access
encap-type dot1q
autonegotiate limited
exit
no shutdown
----------------------------------------------
aynı şekilde kullanılacak 2. portunda konfigürasyonu yapılır.
*A:cicek>config>port# /configure port 7/1/11
*A:cicek>config>port# description "yedek-yol"
*A:cicek>config>port# ethernet
*A:cicek>config>port>ethernet# mode access
*A:cicek>config>port>ethernet# encap-type dot1q
*A:cicek>config>port>ethernet# autonegotiate limited
*A:cicek>config>port>ethernet# exit
*A:cicek>config>port# no shutdown
*A:cicek>config>port# info
----------------------------------------------
description "yedek-yol"
ethernet
mode access
encap-type dot1q
autonegotiate limited
exit
no shutdown
----------------------------------------------
port tanımlarını yaptıktan sonra sıra lag tanımlarını yapmaya geldi. bir id vererek lag ımı oluşturuyoruz. kullanılan routera göre lag sayıları değişmektedir. alcatel sr cihazlardaki kullanılabilecek lag / lacp sayıları yazıda bu sayılara erişebilirsiniz. bu örneğimizde lag altına eklediğimiz iki portun aktif – pasif olarak çalışmasını sağlayacağız. bunu portlara atadığımız öncelik ile sağlıyoruz.
lacp aktif etmek için lacp active dememiz ve bir key belirlememiz gerekmektedir. bu key id müşteri uç cihazında da kullanılmalıdır.
*A:cicek>config>port# /configure lag 10
*A:cicek>config>lag# description "yedekli-hat"
*A:cicek>config>lag# mode access
*A:cicek>config>lag# encap-type dot1q
*A:cicek>config>lag# port 7/1/10 priority 1000
*A:cicek>config>lag# port 7/1/11 sub-group 2
*A:cicek>config>lag# dynamic-cost
*A:cicek>config>lag# lacp active administrative-key 100
*A:cicek>config>lag# selection-criteria highest-weight
*A:cicek>config>lag# info
----------------------------------------------
description "yedekli-hat"
mode access
encap-type dot1q
port 7/1/10 priority 1000
port 7/1/11 sub-group 2
dynamic-cost
lacp active administrative-key 100
selection-criteria highest-weight
no shutdown
----------------------------------------------
sıra geldi servisimiz oluşturmaya. bu örnekte bir ies servise tanımlayarak sap olarak oluşturduğumuz lag ı ekliyoruz.
*A:cicek# configure service customer 100 create
*A:cicek>config>service>cust$ exit
*A:cicek# /configure service ies 100 customer 100 create
*A:cicek>config>service>ies$ interface "yedekli-devre" create
*A:cicek>config>service>ies>if$ sap lag-10:10 create
*A:cicek>config>service>ies>if>sap$ exit
*A:cicek>config>service>ies>if$ no shutdown
*A:cicek>config>service>ies>if$ exit
*A:cicek>config>service>ies$ no shutdown
*A:cicek>config>service>ies$ info
----------------------------------------------
interface "yedekli-devre" create
sap lag-10:10 create
exit
exit
no shutdown
----------------------------------------------
en temel haliyle 1. routerımızda yapacağımız işlem bu kadar. müşteri tarafında gerekli tanımları yaparak yedekli bir hattımız olacak. burada öncelik verilen porta ve lacp key e dikkat etmemiz zorunluluğudur.
oluşturduğumuz lagı kontrol edelim.
*A:cicek>config>service>ies$ show lag 10 detail =============================================================================== LAG Details =============================================================================== Description : yedekli-hat ------------------------------------------------------------------------------- Details ------------------------------------------------------------------------------- Lag-id : 10 Mode : access Adm : up Opr : down Thres. Exceeded Cnt : 0 Port Threshold : 0 Thres. Last Cleared : 05/05/2017 02:31:52 Threshold Action : down Dynamic Cost : true Encap Type : dot1q Configured Address : 0c:a4:02:d2:6e:a5 Lag-IfIndex : 1342177290 Hardware Address : 0c:a4:02:d2:6e:a5 Adapt Qos (access) : distribute Hold-time Down : 0.0 sec Port Type : standard Per-Link-Hash : disabled Include-Egr-Hash-Cfg: disabled Forced : - Per FP Ing Queuing : disabled Per FP Egr Queuing : disabled Per FP SAP Instance : disabled LACP : enabled Mode : active LACP Transmit Intvl : fast LACP xmit stdby : enabled Selection Criteria : highest-weight Slave-to-partner : disabled MUX control : coupled Subgrp hold time : 0.0 sec Remaining time : 0.0 sec Subgrp selected : 1 Subgrp candidate : - Subgrp count : 2 System Id : 0c:a4:02:d2:6d:5b System Priority : 32768 Admin Key : 100 Oper Key : 100 Prtr System Id : Prtr System Priority : 32768 Prtr Oper Key : 0 Standby Signaling : lacp Port weight speed : 0 gbps Number/Weight Up : 0 Weight Threshold : 0 Threshold Action : down ------------------------------------------------------------------------------- Port-id Adm Act/Stdby Opr Primary Sub-group Forced Prio ------------------------------------------------------------------------------- 7/1/10 up active down yes 1 - 1000 7/1/11 up standby down 2 - 32768