Professional Documents
Culture Documents
201310132112
PRACTICAL-1
AIM: Calculate the number of links required for a fully connected network using point to
point connection links without centralized exchange.
PROGRAM:
clc;
n=input('No of Entities = ');
y=(n*(n-1)/2);
str1=sprintf(' No. of Links required = %d ',y);
disp(str1);
for i=1:1000
x(i)=i;
y(i)=((i*(i-1))/2);
end
plot(x,y);
xlabel('No of Entities');
ylabel('Required Point to Point Links');
title('Entities vs. Point to Point Links for Fully Connected Network');
OUTPUT:
No of Entities = 50
OBSERVATION TABLE:
Graph 3: Graph 4:
Graph 5: Graph 6:
C
O
N
C
L
U
S
I
O
N
:
Graph 7: Graph 8:
Graph 9:
PROGRAM:
clc;
t=0:0.0001:0.019
f=50
A=squarewave(2*3.14*f*t);
B=squarewave(2*3.14*f*t,33);
C=squarewave(2*3.14*f*t,33)+1;
D=(squarewave(2*3.14*f*t,33)+1)/2;
E1=ones(1,2500)
E2=zeros(1,50)
E =[E1 E2]
for i=1:3
y(i)=input('Enter the digit = ')
end
plot(AZ)
xlabel('Time');
ylabel('Magnitude');
title('Pulse Waveforms of Dialed Digits');
OUTPUT:
OBSERVATION TABLE:
Digit1 Digit2 Digit3 Screen shot of Pulse waveform
3 1 4
Digit1 Digit2 Digit3 Screen shot of Pulse waveform
6 2 7
9 5 3
5 7 1
Digit1 Digit2 Digit3 Screen shot of Pulse waveform
3 6 9
CONCLUSION:
The program effectively generated pulse dialing waveforms for rotary dial telephones based on
user-inputted digits. The waveforms accurately represented the pulse signals for dialing specific
numbers. The observed waveforms matched expected patterns, demonstrating successful
waveform generation.
Enrollment No.201310132112
PRACTICAL-3
PROGRAM:
clc;
t=0:0.01:10
f=input ('Frequency = ');
A1=sin (2*3.14*f*t)
Dial_Tone=repmat(A1,1,13)
subplot(511) plot(Dial_Tone)
title('Dial Tone');
t1=0:0.01:10
A1=sin(2*3.14*f*t1)
B1=zeros(1,500)
C1=zeros(1,5000)
Ringing_Tone=[A1 B1 A1 C1 A1 B1 A1 ]
subplot(512)
plot(Ringing_Tone)
title('Ringing Tone');
x=input('x = ');
t2=0:0.01:((10*x)/0.4)
A2=sin(2*3.14*f*t2)
S2=length(A2)
B2=zeros(1,S2)
Busy_Tone=[ A2 B2 A2 B2 A2]
subplot(513)
plot(Busy_Tone)
title('Busy Tone');
OUTPUT:
Frequency = 0.4
x = 0.75
y = 2.5
OBSERVATION TABLE:
Tone
Frequency Separation Screen shot of signaling tones waveforms
(KHz) (Second)
x y
Graph 1: Graph 2:
Graph 3:
Graph 4: Graph 5:
Graph 6:
Graph 7: Graph 8:
Graph 9:
CONCLUSION:
We effectively generated signaling tones waveforms using MATLAB, illustrating their essential
role in telecommunications. The waveforms depicted dial tone, ringing tone, busy tone, call in
progress tone, and number unobtainable tone, showcasing diverse applications in automatic
exchanges. The observed frequency-tone separation combinations and corresponding graphical
representations elucidate the versatility of signaling tones for efficient communication systems.
Enrollment No.201310132112
PRACTICAL-4
PROGRAM:
clc;
t= 0:0.04:8
f1=697
a1=sin(2*3.14*f1*t)
f2=770
a2=sin(2*3.14*f2*t)
f3=852
a3=sin(2*3.14*f3*t)
f4=941
a4=sin(2*3.14*f4*t)
f5=1209
a5=sin(2*3.14*f5*t)
f6=1336
a6=sin(2*3.14*f6*t)
f7=1477
a7=sin(2*3.14*f7*t)
one=a1+a5;
subplot(3,3,1);
plot(t,one,'LineWidth',1.5);
title('one');
two=a1+a6;
subplot(3,3,2);
plot(t,two,'LineWidth',1.5);
title('two');
three=a1+a7;
subplot(3,3,3);
plot(t,three,'LineWidth',1.5);
title('three');
four=a2+a5;
subplot(3,3,4);
plot(t,four,'LineWidth',1.5);
title('four');
five=a2+a6;
subplot(3,3,5);
plot(t,five,'LineWidth',1.5);
title('five');
six=a2+a7;
subplot(3,3,6);
plot(t,six,'LineWidth',1.5);
title('six');
seven=a3+a5;
subplot(3,3,7);
plot(t,seven,'LineWidth',1.5);
title('seven');
eight=a3+a6;
subplot(3,3,8);
plot(t,eight,'LineWidth',1.5);
title('eight');
nine=a3+a7;
subplot(3,3,9);
plot(t,nine,'LineWidth',1.5);
title('nine');
OUTPUT:
OBSERVATION TABLE:
Graph-1: Graph-2:
Graph-3: Graph-4:
CONCLUSION:
We successfully generated touch dial telephone waveforms by combining various frequencies. The
resulting waveforms depicted recognizable tones corresponding to digits on a telephone keypad.
The observed frequencies and their graphical representations highlight the distinct waveforms
associated with each digit, showcasing the fundamental principle behind touch-tone dialing in
telecommunications.
Enrollment No. 201310132112
PRACTICAL-5
AIM: Analyze the number of calls for each hour in a day using histogram.
PROGRAM:
clc;
N=input ('Enter the no. of hours of consideration for Traffic Engineering = '); for i=1:N
y(i)=input(' Enter the no. of calls in particular hour ='); end
bar(y)
xlabel('Hours');
ylabel('Number of calls');
title('Busy hour calling');
OUTPUT:
CONCLUSION:
We analyzed the distribution of calls for each hour in a day using histograms. The data provided
insights into the variation of call volumes throughout different hours, aiding in traffic engineering
assessments. Histograms visually represented call counts, enabling a clear understanding of hourly
call patterns and aiding decision-making for optimizing telecommunication resources.
Enrollment No.201310132112
PRACTICAL-6
AIM: Find the availability and unavailability of single processor and dual processor
systems.
PROGRAM:
clc;
y1=input ('Enter the mean time between failure (MTBF) in hours = ')
y2=input ('Enter the mean time to repair (MTTR) in hours = ')
y3 = ((y1) / (y1+y2))
disp('Availability of single processor system =');
disp(y3)
y5 = (2*(y2).^2) / (y1.^2)
disp('Unavailability of dual processor system
='); disp(y5)
y6 = 1-y5
disp('Availability of dual processor system
='); disp(y6)
for i=1:1000
y2(i)=i;
y3(i)= ((y1) / (y1+ y2(i)));
y6(i)= 1 - (2*(y2(i)).^2) /
(y1.^2) end
subplot(211)
plot(y2, y3);
xlabel('Mean Time to Repair (MTTR)');
ylabel('Availability of Single Processor System');
title('MTTR vs. Availability of Single Processor System');
subplot(212)
plot(y2, y6);
xlabel('Mean Time to Repair (MTTR)');
ylabel('Availability of Dual Processor System');
title('MTTR vs. Availability of Dual Processor System');
OUTPUT:
GRAPH:
OBSERVATION TABLE:
Graph-1: Graph-2:
Graph-3: Graph-4:
Graph-5: Graph-6:
CONCLUSION:
Single processor systems have high availability and low unavailability, making them
reliable. Dual processor systems offer even higher availability and almost negligible
unavailability, ensuring operational continuity. Increased mean time to repair (MTTR)
results in decreased system availability for both single and dual processor systems.
Dual processor systems are preferable for critical applications due to their superior
availability and resilience to failure, minimizing downtime. Efficient MTBF and MTTR
optimization are essential for designing robust and reliable systems.
Enrollment No. 201310132112
PRACTICAL-7
AIM: Calculate the number of trunks supported on time multiplexed space switch.
Estimate the cost of a switch.
PROGRAM:
clc;
M=input ('Enter number of multiplexed channels = ');
Tm=input ('Enter control memory access time in ns = ');
Tt=input ('Enter bus switching and sample transfer time in ns = ');
Ts = Tm + Tt;
disp('Total switching time in ns = ');
disp(Ts)
N = (125)*(10^3)/(M*Ts);
disp('Number of trunks supported on time multiplexed space switch = ');
disp(N)
C = (2*N) + (M*N);
disp('Cost of a time multiplexed space switch = ');
disp(C)
OUTPUT:
Case 1 :
Case 2 :
Case 3 :
Tm = 500 ns, Tt = 250 ns
CONCLUSION:
The study highlights the crucial impact of control memory access time (Tm), bus
switching time (Tt), and the number of multiplexed channels (M) on time-multiplexed
space switch performance and cost. Increased switching and access times reduce supported
trunks (N), raising overall costs. Optimization is vital to balance trunks (N) and
multiplexed channels (M) for an efficient and cost-effective design.