0% found this document useful (0 votes)
0 views

Task2 CCN

The document presents a performance analysis of various voice codecs (G.711, G.723, G.729) in an interconnected network, focusing on throughput metrics under standard and custom configurations. It highlights the importance of optimizing codec parameters for improved data transmission efficiency, with custom codecs achieving significantly higher throughputs compared to standard ones. The study emphasizes the role of throughput in enhancing communication reliability and efficiency in real-time applications like VoIP.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
0 views

Task2 CCN

The document presents a performance analysis of various voice codecs (G.711, G.723, G.729) in an interconnected network, focusing on throughput metrics under standard and custom configurations. It highlights the importance of optimizing codec parameters for improved data transmission efficiency, with custom codecs achieving significantly higher throughputs compared to standard ones. The study emphasizes the role of throughput in enhancing communication reliability and efficiency in real-time applications like VoIP.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

Name: Kamisetty Sai Sravan Register Number: 22BEC0273

Task 2

Performance Analysis of Various Voice Codecs in an Interconnected Network

Assessment Rubrics

Category Marks
Aim & Theory 5
Manual Calculation,
Environment Creation & 25
Block Diagram
Results and Analysis (Bar
10
Chart etc.)
Inference 10
Total 50

Aim:
To create a Network Model for analysing the performance of voice Codec in terms of
Throughput for standard as well as custom configurations.

Tools Required:

NetSim v10

Theory:

• Voice Codec: Encodes voice signals into digital formats, ensuring efficient
compression and minimal quality loss during transmission.
• Throughput: Key metric representing the amount of data transmitted successfully
over a network in time.
• Standard Configurations: Factory-defined codec settings, used as benchmarks for
performance evaluation.
• Custom Configurations: User-defined settings to optimize codec performance for
specific network conditions.
• Simulation Environment: Utilize tools like NS3, MATLAB, or OPNET to replicate
network behaviors under controlled scenarios.
• Applications: Improve real-time communication systems like VoIP, video
conferencing, and streaming.
• Importance: Helps identify optimal configurations, enhancing communication
reliability and efficiency in diverse network conditions.

BECE401P/PP/Winter 2024-25 Page 1


Name: Kamisetty Sai Sravan Register Number: 22BEC0273

The study analyzes voice codec performance by modeling a network to measure


throughput. Standard configurations offer baseline settings, while custom
configurations explore optimized parameters. Throughput, representing data
transmission efficiency, is a key metric. By simulating real-world scenarios, the
model evaluates codec efficiency, aiding improvements for applications like VoIP
and streaming

Block Diagram:

Case 1: Voice Codec G.711 (PCM)

Base Band frequency fm = 4KHz

Bitrate = n x fs
fs = 2 x fm = 8 KHz
Bitrate (r) = 8 x 8KHz = 64kbps

Interarrival Time = Packet Length/Bit Rate

BECE401P/PP/Winter 2024-25 Page 2


Name: Kamisetty Sai Sravan Register Number: 22BEC0273

= (160 x 8)/ 64 kbps = 20,000 micro seconds

Packet Size = (Data Rate x Interarrival Time)/8

= (64 x 20)/8

= 160 bytes

Payload = (Packet Transmitted x Packet Size)

= 499 x 160

= 79840
𝑃𝑎𝑦𝑙𝑜𝑎𝑑 𝑅𝑒𝑐𝑒𝑖𝑣𝑒𝑑∗8
Throughput =
𝑆𝑖𝑚𝑢𝑙𝑎𝑡𝑖𝑜𝑛 𝑇𝑖𝑚𝑒

= 63.872 kbps
Application Sourc Packet Packet Payload Payload Throughput
Application Name Destination Id Delay(microsec)
Id e Id Transmitted Received Transmitted Received (Mbps)
1 APP1_VOICE 4 5 499 498 79840 79680 0.063744 67.86
2 APP2_VOICE 2 3 499 499 79840 79840 0.063872 85.94
3 APP3_VOICE 6 1 499 499 79840 79840 0.063872 104.02
Average 0.0638293 85.94

Average Throughput: 63.829 kbps

Case 2: Voice Codec G.723 (ADPCM)

Base Band frequency fm = 400 Hz

Bitrate = n x fs
fs = 2 x fm = 800 Hz
Bitrate (r) = 8 x 800 = 6.4 kbps

Interarrival Time = Packet Length/Bit Rate

= (24 x 8)/ 6.4 kbps = 30,000 micro seconds

Packet Size = (Data Rate x Interarrival Time)/8

= (6.4 x 30)/8

= 24 bytes

BECE401P/PP/Winter 2024-25 Page 3


Name: Kamisetty Sai Sravan Register Number: 22BEC0273

Payload = (Packet Transmitted x Packet Size)

= 333 x 24

= 7992
𝑃𝑎𝑦𝑙𝑜𝑎𝑑 𝑅𝑒𝑐𝑒𝑖𝑣𝑒𝑑∗8
Throughput =
𝑆𝑖𝑚𝑢𝑙𝑎𝑡𝑖𝑜𝑛 𝑇𝑖𝑚𝑒

= 6.394 kbps

Applicatio Application Source Destination Packet Packet Payload Payload


Throughput (Mbps) Delay(microsec)
n Id Name Id Id Transmitted Received Transmitted Received
1 APP1_VOICE 4 5 333 332 7992 7968 0.006374 46.1
2 APP2_VOICE 2 3 333 333 7992 7992 0.006394 53.3
3 APP3_VOICE 6 1 333 333 7992 7992 0.006394 60.5
Average 0.0063873 53.3

Average Throughput: 6.387 kbps

Case 3: Voice Codec G.729 (LPC)

Base Band frequency fm= 500 Hz

Bitrate=n x fs

fs=2 x fm = 1000 Hz
Bitrate (r)=8 x 1000 = 8 kbps

Interarrival Time = Packet Length/Bit Rate


= (20 x 8)/ 8 kbps = 20,000 micro seconds
Packet Size = (Data Rate x Interarrival Time)/8
= (8 x 20)/8
= 20 bytes
Payload = (Packet Transmitted x Packet Size)

= 499 x 20
= 9980
𝑃𝑎𝑦𝑙𝑜𝑎𝑑 𝑅𝑒𝑐𝑒𝑖𝑣𝑒𝑑∗8
Throughput =
𝑆𝑖𝑚𝑢𝑙𝑎𝑡𝑖𝑜𝑛 𝑇𝑖𝑚𝑒

= 7.984 kbps

BECE401P/PP/Winter 2024-25 Page 4


Name: Kamisetty Sai Sravan Register Number: 22BEC0273

Applicatio Source Destination Packet Packet Payload Payload Throughput Delay


Application Name
n Id Id Id Transmitted Received Transmitted Received (Mbps) (microsec)
1 APP1_VOICE 4 5 499 498 9980 9960 0.007968 45.46
2 APP2_VOICE 2 3 499 499 9980 9980 0.007984 52.34
3 APP3_VOICE 6 1 499 499 9980 9980 0.007984 59.22
Average 0.0079786 52.34

Average Throughput: 7.979 kbps

Comparison Table of Various Voice Codecs:

Parameters G.711 G.723 G.729


Throughput 0.063829 Mbps 0.006387 Mbps 0.007979 Mbps
Delay 85.94 µs 53.3 µs 52.34 µs
Packet Size 160 bytes 24 bytes 20 bytes
Interarrival Time 20,000 30,000 20,000

Bar Chart – Throughput:

BECE401P/PP/Winter 2024-25 Page 5


Name: Kamisetty Sai Sravan Register Number: 22BEC0273

Custom Codec

Case 1: Data Rate = 150 Kbps

Assume,

Interarrival Time = 5000 micro seconds

Packet Size = (Data Rate x Interarrival Time)/8 = 94 bytes

Applicati Applicati Destinatio Packet Packet Payload Payload


Source Throughp Delay
on on n Transmit Receive Trans Receive
Id ut (Mbps) (microsec)
Id Name Id ted d mitted d
APP1_VOI
1 CE 4 5 19999 19995 1879906 1879530 0.150362 33.68
APP2_VOI
2 CE 2 3 19999 19994 1879906 1879436 0.150355 33.68
APP3_VOI
3 CE 6 1 19999 19992 1879906 1879248 0.15034 33.68

Average 0.1503523 33.68

Average Throughput: 150.3523 kbps

Case 2: Data Rate = 250 Kbps


Assume,

Interarrival Time = 5000 micro seconds

Packet Size = (Data Rate x Interarrival Time)/8 = 156 bytes

Applicati Applicati Destinatio Packet Packet Payload Payload


Source Throughp Delay
on on n Transmit Receive Trans Receive
Id ut (Mbps) (microsec)
Id Name Id ted d mitted d
APP1_VOI
1 CE 4 5 19999 19987 3119844 3117972 0.249438 43.6
APP2_VOI
2 CE 2 3 19999 19995 3119844 3119220 0.249538 43.6
APP3_VOI
3 CE 6 1 19999 19991 3119844 3118596 0.249488 43.6

Average 0.249488 43.6

Average Throughput: 249.488 kbps


BECE401P/PP/Winter 2024-25 Page 6
Name: Kamisetty Sai Sravan Register Number: 22BEC0273

Comparison Table of Various Voice Codecs:

Parameters Custom1 Custom2


Throughput (kbps) 150.3523 249.488
Delay (µs) 33.68 43.6

Bar Chart - Throughput:

Inference

This study highlights the significance of throughput in analyzing voice codec


performance. Standard codecs, including G.711, G.723, and G.729, achieved throughputs
of 63.829 kbps, 6.387 kbps, and 7.979 kbps respectively. These values provide
benchmarks for real-time communication systems.

Custom codecs, configured for data rates of 150 kbps and 250 kbps, demonstrated
significantly higher throughputs of 150.3523 kbps and 249.488 kbps. These results
underline the adaptability of custom configurations, enabling efficient performance under
varying network conditions.

Overall, the study emphasizes the critical role of optimizing codec parameters to enhance
data transmission efficiency and ensure reliable, high-quality communication across
diverse scenarios.

BECE401P/PP/Winter 2024-25 Page 7

You might also like