summaryrefslogtreecommitdiff
path: root/3446/CH17/EX17.2/Ex17_2.sce
blob: 9556588108657374abdc5165e1b451b8e25d67d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// Exa 17.2 
// To calculate voice and data traffic per cell.

clc;
clear all;

usage=150; //subscriber usage per month in mins
days=24;//Days in a month
BHrs=6;//Busy hours per day
BW=4.8;  //in MHz
RFch=200;  //in kHz
Psubscribers=50000;//present subscriber count
growth=0.05;//subscriber growth per year
rollover=4;//network roll over period
NPCS=5;//Number of packet calls per session 
NPP=25;//Number of packets within a packet call 
Tr=120;//Reading time between packet calls(sec)
NBP=480*8;//Packet size(in bits)
Tint=0.01;//Time interval between two packets(sec)
Ttot=3000;//Total packet service holding time
BH_PS=0.15;//Busy hour packet sessions per subscriber
Penetration=0.25;
datarate=48;  //in kbps
PTT=10;//Packet transmission time(sec)
BTS=40;//NO of BTS sites

//solution
Bitstx_duringPTT=NPCS*NPP*NBP/1000;   
PST=PTT+Tr*(NPCS-1)+Tint*(NPP-1);
PT_duringBH=BH_PS*Ttot/PST;
Bits_persub_persec=Bitstx_duringPTT*PT_duringBH/(60*60);
VoiceErlangs=usage/(days*BHrs*60);
Initial_subscribers=round(Psubscribers*(1+growth)^rollover);
Data_subscribers=Initial_subscribers*Penetration;
Totalvoice=Initial_subscribers*VoiceErlangs;
Voicetraffic_perBTS=Totalvoice/BTS;
printf('Voice Traffic per Cell(sector) is %.2f Erlangs \n ',Voicetraffic_perBTS/3);
Totaldata=Data_subscribers*Bits_persub_persec;
Datathroughput_perBTS=Totaldata/BTS;
printf("Data throughput per Cell(sector) is %.2f kbps \n ',Datathroughput_perBTS/3);