Professional Documents
Culture Documents
1 Funded
Book Details
Authors: G. Keiser
Title: Optical Fiber Communication
Publisher: Tata McGrawHill
Edition: 4th Edition, 8th Reprint
Year: 2010
Place: New Delhi
ISBN: 0-07-064810-7
Scilab numbering policy used in this document and the relation to the
above book.
Exa Example (Solved example)
Fig Code for Figure(Scilab code that is used for plotting the respective figure
of the above book )
For example, Exa 4.56 means solve example 4.56 of the above book.
Contents
List of Scilab Codes
1 First chapter
2 Second chapter
3 Third chapter
11
4 Fourth chapter
16
5 Fifth chapter
22
6 Sixth chapter
26
7 Seventh chapter
31
8 Eight chapter
35
9 Ninth chapter
40
10 Tenth chapter
46
11 Eleventh chapter
54
12 Twelve chapter
59
13 Thirteen chapter
64
14 Fourteen chapter
68
1.1
1.2
1.4
1.5
1.6
1.7
Exa 2.1
Exa 2.2
Exa 2.3
Exa
Exa
Exa
Exa
Exa
Exa
Exa
Exa
Exa
Exa
Exa
Exa
Exa
Exa
2.4
2.5
3.1
3.2
3.3
3.4
3.5
3.6
3.7
3.8
4.1
4.3
4.4
4.5
2
3
3
4
5
5
7
7
8
8
9
11
11
12
12
13
14
14
15
16
16
17
17
Exa 4.6
Exa 4.7
Exa 4.8
Exa 4.9
Exa 5.1
Exa 5.2
Exa 5.3
Exa 5.4
Exa 5.5
Exa 5.6
Exa
Exa
Exa
Exa
Exa
Exa
6.1
6.2
6.3
6.4
6.5
6.6
Exa 6.7
Exa 7.1
Exa 7.2
Exa 7.3
Exa 7.4
Exa
Exa
Exa
Exa
Exa
Exa
Exa
Exa
8.1
8.2
8.3
8.4
8.5
8.6
8.7
8.8
18
19
19
20
22
22
23
24
24
25
26
26
27
27
28
29
30
31
31
33
34
35
35
36
36
37
37
38
39
Exa 8.9
Exa
Exa
Exa
Exa
Exa
Exa
Exa
Exa
Exa
Exa
9.1
9.2
10.1
10.2
10.3
10.5
10.6
10.7
10.8
10.9
Exa 10.10
Exa 10.11
Exa 10.12
Exa
Exa
Exa
Exa
Exa
Exa
Exa
Exa
Exa
Exa
11.1
11.2
11.3
11.6
11.7
11.8
11.9
11.10
12.1
12.2
Exa 12.3
Exa 12.4
Exa 12.5
Exa 12.6
Percent overhead to the information stream Using ReedSolomon code for error correction . . . . . . . . . . . .
Program to find Relative Intensity Noise (RIN) . . . .
Program to Find limiting conditions for pin-photodiode
Finding the center wavelength . . . . . . . . . . . . .
Finding mean frequency spacing . . . . . . . . . . . .
Program to find coupling ratio, Excess loss, Insertion
loss, Return loss of 2x2 Fiber coupler . . . . . . . . . .
Finding output powers at output port of 2x2 coupler
Program to find waveguide length . . . . . . . . . . .
Program to find Excess loss, Splitting loss and total loss
Program to Waveguide Length difference . . . . . . .
Fiber Bragg Grating: Peak Reflectivity, Coupling coefficient, full-bandwidth . . . . . . . . . . . . . . . . . .
Phased-Array-Based-Devices: Channel spacing in terms
of wavelength and path-length difference . . . . . . . .
Phased-Array-Based Devices: Length difference between
adjacent array waveguides . . . . . . . . . . . . . . . .
Maximum number of channels that can be placed in
the tuning range . . . . . . . . . . . . . . . . . . . . .
Program to calculate Photon density . . . . . . . . .
Pumping rate and zero-signal gain . . . . . . . . . . .
Maximum input power and maximum output power .
Optical Signal-to-noise ratio (OSNR) . . . . . . . . .
Pump power of EDFA . . . . . . . . . . . . . . . . .
OSNR for different ASE noise level . . . . . . . . . .
Noise penalty factor . . . . . . . . . . . . . . . . . . .
Upper bound on input optical signal power . . . . . .
Effective length of fiber . . . . . . . . . . . . . . . . .
Calculation of Stimulated Brillouin Scattering (SBS)
threshold power . . . . . . . . . . . . . . . . . . . . .
Four-wave mixing-calculation of power generated due
to the interaction of signals at different frequencies . .
Full-width Half-Maximum (FWHM) soliton pulse normalized time . . . . . . . . . . . . . . . . . . . . . . .
Calculation of normalized distance parameter for dispersion shifted fiber . . . . . . . . . . . . . . . . . . .
Program to calculate soliton peak power . . . . . . .
6
39
40
40
46
46
47
48
48
49
49
50
51
52
53
54
54
55
56
56
57
57
58
59
59
60
61
61
62
Exa 12.7
FWHM soliton pulse width and fraction of bit slot occupied by a soliton . . . . . . . . . . . . . . . . . . . .
Exa 13.1 Calculation of power budget for optical link . . . . . .
Exa 13.2 Calculation of Number stations for given loss . . . . .
Exa 13.3 Calculation of worst case Dynamic Range . . . . . . .
Exa 13.4
Calculation of power margin between transmitter and
receiver for Star architectures . . . . . . . . . . . . . .
Exa 13.5
Determination of maximum length of multimode fiber
link . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Fig 14.10 Performance Measurement and Monitoring for sce . .
62
64
65
66
66
67
68
Chapter 1
First chapter
Scilab code Exa 1.1 Program to calculate time period and phase shift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// C a p t i o n : Program t o c a l c u l a t e t i m e p e r i o d and p h a s e
shift
// Example1 . 1
// Page 8
clear ;
clc ;
close ;
f1 = 10^5; // f 1 = 100KHz
f2 = 10^9; // f 2 = 1GHz
T1 = 1/ f1 ;
T2 = 1/ f2 ;
phi = (1/4) *360;
phi_rad = phi /57.3;
disp ( T1 , Time p e r i o d o f s i n e wave w i t h f r e q u e n c y =
100 KHZ )
disp ( T2 , Time p e r i o d o f s i n e wave w i t h f r e q u e n c y = 1
GHZ )
disp ( phi , p h a s e s h i f t i n d e g r e e s ) ;
disp ( phi_rad , p h a s e s h i f t i n r a d i a n s ) ;
// R e s u l t
// Time p e r i o d o f s i n e wave w i t h f r e q u e n c y = 100 KHZ
//
0.00001
// Time p e r i o d o f s i n e wave w i t h f r e q u e n c y = 1GHZ
2
21
22
23
24
25
//
1 . 0 0 0D09
// p h a s e s h i f t i n d e g r e e s
//
90.
// p h a s e s h i f t i n r a d i a n s
//
1.5706806
Scilab code Exa 1.2 Example 1.2
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
// C a p t i o n : Program t o c a l c u l a t e t i m e p e r i o d and p h a s e
shift
// Example1 . 1
// Page 8
clear ;
clc ;
close ;
f1 = 10^5; // f 1 = 100KHz
f2 = 10^9; // f 2 = 1GHz
T1 = 1/ f1 ;
T2 = 1/ f2 ;
phi = (1/4) *360;
phi_rad = phi /57.3;
disp ( T1 , Time p e r i o d o f s i n e wave w i t h f r e q u e n c y =
100 KHZ )
disp ( T2 , Time p e r i o d o f s i n e wave w i t h f r e q u e n c y = 1
GHZ )
disp ( phi , p h a s e s h i f t i n d e g r e e s ) ;
disp ( phi_rad , p h a s e s h i f t i n r a d i a n s ) ;
// R e s u l t
// Time p e r i o d o f s i n e wave w i t h f r e q u e n c y = 100 KHZ
//
0.00001
// Time p e r i o d o f s i n e wave w i t h f r e q u e n c y = 1GHZ
//
1 . 0 0 0D09
// p h a s e s h i f t i n d e g r e e s
//
90.
// p h a s e s h i f t i n r a d i a n s
//
1.5706806
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
2
3
4
5
6
7
8
9
10
11
12
13
14
15
2
3
4
5
6
7
8
9
10
11
12
13
14
Chapter 2
Second chapter
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
Angle o f i n c i d e n c e
I n t e r f l e c t i o n r e f l e c t i o n angle
incidence in degrees )
r e f l e c t i o n angle : c r i t i c a l
42.509773
7 n1 = 1.48; // c o r e r e f r a c t i v e i n d e x
8 n2 = 1.46; // c l a d d i n g i n d e x
9 phic = asin ( n2 / n1 ) *57.3;
10 NA = sqrt ( n1 ^2 - n2 ^2) ;
11 phi0 = asin ( NA ) *57.3;
12 disp ( phic , C r i t i c a l a n l g e )
13 disp ( NA , n u m e r i c a l a p e r t u r e )
14 disp ( phi0 , a c c e p t a n c e a n g e l i n a i r )
15 // R e s u l t
16 // C r i t i c a l a n l g e
17 //
80.575927
18 // n u m e r i c a l a p e r t u r e
19 //
0.2424871
20 // a c c e p t a n c e a n g e l i n a i r
21 //
14.034412
2
3
4
5
6
7
8
9
10
11
12
13
14
15
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
2
3
4
5
6
7
8
9
10
11
12
13
// E n t e r t h e w a v e l e n g t h o f O p t i c a l S i g n a l 1 3 0 0 e 09
// Beat Length 8 e 02
// The f i b e r b i r e f r i e n g e n c e u s i n g f o r m u l a 1
78.539816
17 // The f i b e r b i r e f r i e n g e n c e u s i n g f o r m u l a 2
0.0000162
14
15
16
10
Chapter 3
Third chapter
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
3 // p a g e 91
4 clear ;
5 close ;
6 clc ;
7 Pin = 200 e -06; // power l a u n c h e d i n t o t h e f i b e r
8 alpha = 0.4; // a t t e n u a t i o n i n dB p e r KM
9 z = 30;
// o p t i c a l f i b e r l e n g t h 30 KM
10 Pin_dBm = 10* log10 ( Pin /1 e -03) ;
11 Pout_dBm = 10* log10 ( Pin /1 e -03) - alpha * z ;
12 Pout = 10^( Pout_dBm /10)
13 disp ( Pin_dBm , Pin dBm )
14 disp ( Pout_dBm , Pout dBm )
15 disp ( Pout *1 e -03 , Output power i n w a t t s )
16 // R e s u l t
17 // Pin dBm =
6.9897
18.9897
18 // Pout dBm =
19 // Output power i n w a t t s = 0 . 0 0 0 0 1 2 6
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Example 3 . 4
// p a g e 99
clear ;
clc ;
alpha = 2; // g r a d e d i n d e x p r o f i l e
n2 = 1.5; // c l a d d i n g
Lamda = 1.3 e -06; // w a v e l e n g t h
R = 0.01; // bend r a d i u s o f c u r v a t u r e
a = 25 e -06; // c o r e r a d i u s
delta = 0.01; // c o r e c l a d d i n g i n d e x p r o f i l e
k = 4.83 e06 ; // p r o p a g a t i o n c o n s t a n t
disp (k , k = )
part1 = (2* a / R ) + floor ((3/(2* n2 * k * R ) ) ^(2/3) ) ;
part2 = ( alpha +2) /(2* alpha * delta ) ;
Neff_Ninf = 1 - part1 * part2 ;
disp ( number o f modes d e c r e a s e d by )
disp ( P e r c e n t
i n g r a d e d i n d e x f i b e r , Neff_Ninf *100)
//RESULTS
// number o f modes d e c r e a s e d by 50 P e r c e n t
i n graded
i n d e x f i b e r
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
2
3
4
5
6
7
8
9
10
11
12
0.00011
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Chapter 4
Fourth chapter
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
16
2
3
4
5
6
7
8
9
10
11
12
13
14
2
3
4
5
6
7
8
9
10
11
12
13
14
3 // p a g e 1 4 9
4 clear ;
5 clc ;
6 tuo_r = 30 e -09; // r a d i a t i v e r e c o m b i n a t i o n i n s e c o n d s
7 tuo_nr =100 e -09; // nonr a d i a t i v e r e c o m b i n a t i o n i n
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
seconds
Etta_internal = 1/(1+( tuo_r / tuo_nr ) ) ; // i n t e r n a l
quantum e f f i c i e n c y
h = 6.6256 e -34; // Plank s c o n s t a n t
C = 3 e08 ; // v e l o c i t y i n m/ s e c
q = 1.602 e -19; // e l e c t r o n c h a r g e i n c o u l o m b s
I = 40 e -03; // d r i v e c u r r e n t i n Amps
Lamda = 1310 e -09; // peak w a v e l e n g t h o f InGaAsP LED
Pinternal = ( Etta_internal *(( h * C ) / q ) ) *( I / Lamda ) ; //
i n t e r n a l power l e v e l
disp ( Pinternal , THE INTERNAL POWER GENRATED WITH IN
LED SOURCE IN WATTS I S ) ;
disp ( Etta_internal , The i n t e r n a l Quantum e f f i c i e n c y
f o r t h e g i v e n r a d i a t i v e and nonr a d i a t i v e
r e c o m b i n a t i o n time i s );
disp ( Etta_internal *100 , I n t e r n a l Quantum E f f i c i e n c y
i n P e r c e n t a g e );
//RESULT
//THE INTERNAL POWER GENRATED WITH IN LED SOURCE IN
WATTS I S
// 0 . 0 2 9 1 4 2 7
// The i n t e r n a l Quantum e f f i c i e n c y f o r t h e g i v e n
r a d i a t i v e and nonr a d i a t i v e r e c o m b i n a t i o n t i m e i s
0.7692308
// I n t e r n a l Quantum E f f i c i e n c y i n P e r c e n t a g e
// 7 6 . 9 2 3 0 7 7
5 close ;
6 clc ;
7 n = 3.5; // r e f r a c t i v e i n d e x o f an LED
8 Etta_External = 1/( n *( n +1) ^2) ;
9 disp ( Etta_External *100 , E x t e r n a l E f f i c i e n c y
percentage )
10 // R e s u l t
11 // E x t e r n a l E f f i c i e n c y i n p e r c e n t a g e
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
in
1.4109347
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
2
3
4
5
6
7
8
9
10
11
clc ;
Lamda = 850 e -9 // E m i s s i o n w a v e l e n g t h o f LASER d i o d e
n = 3.7 // r e f r a c t i v e i n d e x o f LASER d i o d e
L = 500 e -6 // l e n g t h o f LASER d i o d e
C = 3 e08 // v e l o c i t y o f L i g h t i n f r e e s p a c e
delta_frequency = C /((2* L ) * n ) ;
delta_Lamda = ( Lamda ^2) /((2* L ) * n ) ;
Half_power = 2e -09; // h a l f power p o i n t 3 n a n o m e t e r
sigma = sqrt ( -( Half_power ^2) /(2* log (0.5) ) ) ;
disp ( delta_frequency , E n t e r t h e f r e q u e n c y s p a c i n g i n
Hertz );
disp ( delta_Lamda , E n t e r t h e w a e l e n g t h s p a c i n g i n
metres );
disp ( sigma , s p e c t r a l w i d t h o f t h e g a i n ) ;
//RESULT
// E n t e r t h e f r e q u e n c y s p a c i n g i n H e r t z
//
8 . 1 0 8D+10
// E n t e r t h e w a e l e n g t h s p a c i n g i n m e t r e s
// 1 . 9 5 3D10
// s p e c t r a l w i d t h o f t h e g a i n
//
1 . 6 9 9D09
12
13
14
15
16
disp (m , number o f h a l f w a v e l e n g t h s s p a n n i n g t h e
r e g i o n between m i r r o r s u r f a c e s )
disp ( delta_Lambda , s p a c i n g b e t w e e n l a s i n g modes i s )
// R e s u l t
// number o f h a l f w a v e l e n g t h s s p a n n i n g t h e r e g i o n
between m i r r o r s u r f a c e s
2866.6667
// s p a c i n g b e t w e e n l a s i n g modes i s
3 . 1 4 0D10
21
Chapter 5
Fifth chapter
2
3
4
5
6
7
8
9
10
11
12
13
14
5 close ;
6 clc ;
7 rs = 35 e -06; // t h e s o u r c e r a d i u s i n m e t e r
8 a = 25 e -06; // t h e
c o r e r a d i i o f s t e p i n d e x
9
10
11
12
13
14
15
16
17
18
19
20
21
2
3
4
5
6
7
8
9
10
11
12
fiber
meter
NA = 0.20; // t h e n u m e r i c a l a p e r t u r e v a l u e
Bo = 150 e04 ; // r a d i a n c e i n W/ s q u a r e m e t e r . s r
Ps = (( %pi ^2) *( rs ^2) ) * Bo ; // power e m i t t e d by t h e
source
if ( rs <= a ) then
PLED_step = Ps *( NA ^2) ;
elseif ( rs > a ) then
PLED_step = ((( a / rs ) ^2) * Ps ) *( NA ^2) ;
end
disp ( Ps , O p t i c a l power e m i t t e d by LED l i g h t s o u r c e
Ps = )
disp ( PLED_step , O p t i c a l Power c o u p l e d i n t o s t e p
i n d e x f i b e r i n Watts PLED step = ) ;
//RESULT
// O p t i c a l power e m i t t e d by LED l i g h t s o u r c e Ps =
0.0181354
// O p t i c a l Power c o u p l e d i n t o s t e p i n d e x f i b e r i n
Watts PLED step =
0.0003701
13
2
3
4
5
6
7
8
9
10
11
12
13
2
3
4
5
6
7
8
9
10
11
12
13
14
// Power l o s s i n dB L = 0 . 8 3 1 0 3 2 2
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
25
Chapter 6
Sixth chapter
2
3
4
5
6
7
8
9
10
11
12
13
2
3
4
5
6
7
8
9
10
11
12
13
14
close ;
Ip_q = 5.4*(10^6) ; // e l e c t r o n h o l e p a i r s g e n e r a t e d
Pin_hv = 6*(10^6) ; // number o f i n c i d e n t p h o t o n s
etta = Ip_q / Pin_hv ;
disp ( etta , Quantum e f f i c i e n c y = )
disp ( etta *100 , Quantum e f f i c i e n c y i n p e r c e n t a g e = )
// R e s u l t
// Quantum e f f i c i e n c y = 0 . 9
// Quantum e f f i c i e n c y i n p e r c e n t a g e = 9 0 .
11
12
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10
27
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
R = )
Eg = 0.73; // e n e r g y gap i n e l e c t r o n v o l t s
LambdaC = 1.24/ Eg ; // cut o f f w a v e l e n g t h i n m e t e r s
disp ( LambdaC , cut o f f w a v e l e n g t h i n m e t e r s = )
// R e s u l t
// R e s p o n s i v i t y o f p h o t o d i o d e a t 1 3 3 0nm i n A/W R =
0.9418868
// cut o f f w a v e l e n g t h i n m e t e r s = 1 . 6 9 8 6 3 0 1
21
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
// Primary p h o t o c u r r e n t i s m u l t i p l i e d by a f a c t o r o f
M = 43.
// R e s u l t
// p r i m a r y p h o t o c u r r e n t i n uA IP = 0 . 2 8 9 0 8 6 8
// means q u a r e s h o t n o i s e c u r r e n t f o r a p i n
p h o t o d i o d e i n nA I s h o t = 1 . 3 6 0 2 0 4 2
33 // means q u a r e d a r k c u r r e n t i n nA IDB = 0 . 1 6
34 // means q u a r e t h e r m a l n o i s e c u r r e n t f o r t h e r e c e i v e r
i n nA IT = 1 7 . 6 7 5 7 4 6
30
31
32
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
30
Chapter 7
Seventh chapter
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
3 // Page 258
4 clear ;
5 clc ;
6 close ;
7 Q = 6;
8 Pe = (1/2) *(1 - erf ( Q / sqrt (2) ) ) ;
9 S_N_dB = 10* log10 (2* Q ) ;
10 disp ( Pe , P r o b a b i l i t y o f e r r o r Pe (Q) = )
11 disp ( S_N_dB , S i g n a l to n o i s e r a t i o i n dB S/N = )
12 // R e s u l t
13 // P r o b a b i l i t y o f e r r o r Pe (Q) = 9 . 8 6 6D10
14 // S i g n a l to n o i s e r a t i o i n dB S/N = 1 0 . 7 9 1 8 1 2
32
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
41
42
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//
9 . 8 6 6D10
// P r o b a b i l i t y o f e r r o r a t Q =7
//
1 . 2 8 0D12
// P r o b a b i l i t y o f e r r o r a t Q =8
//
6 . 1 0 6D16
34
Chapter 8
Eight chapter
2
3
4
5
6
7
8
9
10
11
12
13
14
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
2
3
4
5
6
7
8
9
10
11
12
13
14
Ps = 3; // l a s e r o u t p u t i n dBm
APD_sen = -32; //APD s e n s i t i v i t y i n dBm
Allowed_Loss = Ps - APD_sen ; // i n dB
lsc = 1; // s o u r c e c o n n e c t o r l o s s i n dB
ljc = 2*4; // two ( jumper+c o n n e c t o r l o s s ) i n dB
alpha = 0.3; // a t t e n u a t i o n i n dB/Km
L = 60; // c a b l e l e n g t h i n Km
cable_att = alpha *60; // c a b l e a t t e n u a t i o n i n dB
lrc = 1; // r e c e i v e r c o n n e c t o r l o s s i n dB
system_margin = Allowed_Loss - lsc - ljc - cable_att - lrc ;
disp ( system_margin , The
F i n a l Margin i n dB = )
// R e s u l t
// The
F i n a l Margin i n dB = 7 .
3 // p a g e 2 9 2
4 clear ;
5 clc ;
6 close ;
7 t_tx = 25 e -12; // t r a n s m i s s i o n r i s e t i m e i n s e c
8 t_GVD = 12 e -12; //GVD r i s e t i m e i n s e c
9 t_rx = 0.14 e -09; // r e c e i v e r r i s e t i m e i n s e c
10 tsys = sqrt ( t_tx ^2+ t_GVD ^2+ t_rx ^2)
11 disp ( tsys *1 e09 , l i n k r i s e t i m e i n nano s e c o n d s
tsys
=)
12 // R e s u l t
13 // l i n k r i s e t i m e i n nano s e c o n d s t s y s = 0 . 1 4 2 7 2 0 0
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6 close ;
7 x = poly (0 , x ) ;
8 G = x ^7+0+ x ^5+0+0+ x ^2+ x +1;
9 C = coeff ( G ) ;
10 disp ( C ( $ : -1:1) , C o e f f i c i e n t s
of generator polynomial
C =)
11 // R e s u l t
12 // C o e f f i c i e n t s o f g e n e r a t o r p o l y n o m i a l C = 1 .
1.
0.
0.
1.
1.
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
0.
38
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
12
13
14
15
39
Chapter 9
Ninth chapter
2
3
4
5
6
7
8
9
10
11
12
13
14
41
42
43
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
// p a g e 323
clear ;
clc ;
close ;
T =300; // room t e m p e r a t u r e i n k e l v i n
kB = 1.38054 e -23; // Boltzmann s c o n s t a n t i n J o u l e s / k
m =0.25; // m o d u a l t i o n i n d e x
RIN_dB = -143; // R e l a t i v e i n t e n s i t y i n dB/Hz
RIN = 10^( RIN_dB /10) ;
Pc = (10^(0/10) ) *1 e -3; // power c o u p l e d t o o p t i c a l
f i b e r i n dBm
R = 0.6; // R e s p o n s i v i t y A/w
Be = 10 e06 ; // bandwidth 10MHz
ID = 10 e -09; // d a r k c u r r e n t 10nA
Req = 750; // e q u i v a l e n t r e s i s t a n c e 750 ohm
Ft = 10^(3/10) ; // i n 3 dB
M = 1; // M u l t i p l i c a t i o n f a c t o r f o r p i n p h o t o d i o d e
R = 0.6; // r e s p o n s i v i t y i n A/m
q = 1.602 e -19; // c h a r g e i n c o u l o m b s
p = 0: -1: -20;
P = (10^( p /10) ) *1 e -3;
C_N_1 = 0.5*(( m * R * P ) ^2) /(4* kB * T * Be * Ft / Req ) ;
C_N_3 = 0.5* m ^2/( RIN * Be ) ;
C_N_2 = 0.5* m ^2* R * P /(2* q * Be ) ;
figure
plot (p ,10* log10 ( C_N_1 ) , r )
xlabel ( R e c e i v e d O p t i c a l Power (dBm) )
ylabel ( C a r r i e r to n o i s e r a t i o ( dB ) )
title ( C a r r i e r to n o i s e r a t i o 1 ( P r e a m p l i f i e r
receiver noise ) )
figure
plot (p ,10* log10 ( C_N_2 ) , m )
xlabel ( R e c e i v e d O p t i c a l Power (dBm) )
ylabel ( C a r r i e r to n o i s e r a t i o ( dB ) )
title ( C a r r i e r to n o i s e r a t i o 2 ( Quantum n o i s e ) )
figure
plot (p ,10* log10 ( C_N_3 ) * ones (1 , length ( p ) ) )
xlabel ( R e c e i v e d O p t i c a l Power (dBm) )
44
39
40
ylabel ( C a r r i e r to n o i s e r a t i o ( dB ) )
title ( C a r r i e r to n o i s e r a t i o 3 ( R e f l e c t i o n n o i s e ) )
45
Chapter 10
Tenth chapter
2
3
4
5
6
7
8
9
10
11
12
13
2
3
4
5
6
7 C = 3 e08 ; // f r e e s p a c e v e l o c i t y
8 delta_Lambda = 0.8 e -09; // s p e c t r a l band i n m e t e r
9 Lambda = 1550 e -09; // w a v e l e n g t h i n m e t e r
10 delta_v = C * delta_Lambda / Lambda ^2;
11 disp ( ceil ( delta_v *1 e -09) , Mean F r e q u e n c y s p a c i n g i n
GHz = )
12 // R e s u l t
13 // Mean F r e q u e n c y s p a c i n g i n GHz = 1 0 0 .
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
//
0.5799195
// I n s e r t i o n l o s s ( p o r t 0 t o p o r t 1 ) i n dB
//
3.4678749
// I n s e r t i o n l o s s ( p o r t 0 t o p o r t 2 ) i n dB
//
3.7161107
// Retunr l o s s i n dB
//
45.016894
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
2
3
4
5
6
7
8
16
17
18
19
20
21
22
2
3
4
5
2
3
4
5
6
7
8
9
10
11
12
13
14
15
49
6 clc ;
7 delta_Lambda = 0.08 e -09; // w a v e l e n g t h s p a c i n g i n
17
18
19
20
21
nano m e t e r s
Lambda = 1550 e -09; // w a v e l e n g t h i n m e t e r s
neff = 1.5; // e f f e c t i v e r e f r a c t i v e i n d e x i n t h e
waveguide
C =3 e08 ; // f r e e s p a c e v e l o c i t y
delta_v1 = 10 e09 ; // f r e q u e n c y s p a c i n g 1
delta_v2 = 130 e09 ; // f r e q u e n c y s p a c i n g 2
delta_L1 = C /(2* neff * delta_v1 ) ;
delta_L2 = C /(2* neff * delta_v2 ) ;
disp ( delta_L1 *1 e03 , w a v e g u i d e l e n g t h d i f f e r e n c e i n
m i l l i meters )
disp ( delta_L2 *1 e03 , w a v e g u i d e l e n g t h d i f f e r e n c e i n
m i l l i meters )
// R e s u l t
// w a v e g u i d e l e n g t h d i f f e r e n c e i n m i l l i m e t e r s
//
10.
// w a v e g u i d e l e n g t h d i f f e r e n c e i n m i l l i m e t e r s
//
0.7692308
2
3
4
5
6
7
8
9
10
11
12
13
14
8
9
10
11
12
13
14
15
16
50
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
2
3
4
5
6
7
8
9
10
)
)
11 x = 5e -06 ; // c e n t e r to c e n t e r
s p a c i n g between the
input waveguides
12 d = 5e -06 ; // c e n t e r to c e n t e r
s p a c i n g between the
output waveguides
13 m =1;
14 Lf = 10 e -03; // d i s t a n c e b e t w e e n t r a n s m i t t e r and
15
16
17
18
19
20
21
2
3
4
5
6
7
8
9
10
11
12
13
14
object
delta_L = m * Lambda_c / nc ;
delta_Lambda = ( x / Lf ) *( ns * d / m ) *( nc / ng ) ;
disp ( delta_L *1 e06 , Waveguide l e n g t h d i f f e r e n c e i n um
=)
disp ( delta_Lambda *1 e09 , Channel s p a c i n g i n t e r m s o f
w a v e l e n g t h i n nm= )
// R e s u l t
// Waveguide l e n g t h d i f f e r e n c e i n um = 1 . 0 6 8 9 6 5 5
// Channel s p a c i n g i n t e r m s o f w a v e l e n g t h i n nm =
3.5756803
52
2
3
4
5
6
7
8
9
10
11
12
13
14
15
53
Chapter 11
Eleventh chapter
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
54
23
2
3
4
5
6
7
8
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
55
2
3
4
5
6
7
8
9
10
11
2
3
4
Ps in =)
Ps_out = Ps_in +( Lambda_p / Lambda_s ) * Pp_in ;
disp ( Ps_out *1 e03 , The maximum o u t p u t power i n mW i s
Ps out = )
disp (10* log10 ( Ps_out *1 e03 ) , The maximum o u t p u t power
i n dBm i s P s o u t = )
// R e s u l t
// The maximum i n p u t power i n uW i s P s i n = 1 9 1 . 5 9 3 3 5
// The maximum o u t p u t power i n mW i s P s o u t =
19.159335
// The maximum o u t p u t power i n dBm i s P s o u t =
12.823804
5 clc ;
6 close ;
7 Lambda_p = 980 e -09; //pump w a v e l e n g t h i n m e t e r s
8 Lambda_s = 1540 e -09; // s i g n a l w a v e l e n g t h i n m e t e r s
9 Ps_out = 10 e -03; // o u t p u t s i g n a l power
10 Ps_in = 1e -03; // i n p u t s i g n a l power
11 Pp_in = ( Lambda_s / Lambda_p ) *( Ps_out - Ps_in )
12 disp ( Pp_in *1 e03 , Pump power i n m i l l i w a t t s P p i n = )
13 // R e s u l t
14 //Pump power i n m i l l i w a t t s P p i n = 1 4 . 1 4 2 8 5 7
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
2
3
4
5
6
7
8 for i = 1: length ( G )
9
Fpath ( i ) = (1/ G ( i ) ) *(( G ( i ) -1) / log ( G ( i ) ) ) ^2;
10
disp (10* log10 ( Fpath ( i ) ) , N o i s e p e n a l t y f a c t o r
in
dB Fpath = ) ;
11
disp ( G ( i ) , f o r a g a i n o f G = ) ;
12 end
13 // R e s u l t
14 // N o i s e p e n a l t y f a c t o r i n dB Fpath = 1 3 . 2 0 4 5 7 1
15 // f o r a g a i n o f G = 1 0 0 0 .
16 // N o i s e p e n a l t y f a c t o r i n dB Fpath = 6 . 6 4 7 7 9 0 2
17 // f o r a g a i n o f G = 1 0 0 .
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
58
Chapter 12
Twelve chapter
Scilab code Exa 12.1
1 // C a p t i o n : E f f e c t i v e l e n g t h o f f i b e r
2 // Example12 . 1
3 // p a g e 432
4 clear ;
5 clc ;
6 close ;
7 L = 75; // a m p l i f i e r s p c a i n g i n k i l o m e t e r
8 alpha = 4.61 e -02; // f i b e r a t t e n u a t i o n p e r Km
9 Leff = (1 - exp ( - alpha * L ) ) / alpha ;
10 disp ( Leff , E f f e c t i v e l e n g t h o f f i b e r i n k i l o m e t e r s
Leff =)
11 // R e s u l t
12 // E f f e c t i v e l e n g t h o f f i b e r i n k i l o m e t e r s L e f f =
21.008494
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
delta_VB = 20 e06 ; // B r i l l o u i n l i n e w i d t h i n Hz
Aeff = 55 e -12; // e f f e c t i v e c r o s s s e c t i o n a l a r e a o f
t h e p r o p a g a t i n g wave i n s q u a r e m e t e r
Leff = 20 e03 ; // e f f e c t i v e l e n g t h
b = 2; // p o l a r i z a t i o n f a c t o r
gB = 4e -11; // B r i l l o u s g a i n c o e f f i c i e n t m/W
delta_Vsource = 40 e06 ; // o p t i c a l s o u r c e l i n e w i d t h i n
Hz
Pth = 21*( Aeff * b /( gB * Leff ) ) *(1+( delta_Vsource /
delta_VB ) ) ;
disp ( Pth *1 e03 , SBS t h r e s h o l d power i n m i l l i w a t t s
Pth= )
// R e s u l t
// SBS t h r e s h o l d power i n m i l l i w a t t s Pth= 8 . 6 6 2 5
18 n = 1.48; // r e f r a c t i v e i n d e x
19 k = ((32*( %pi ^3) * chi1111 ) /(( n ^2) * Lambda * C ) ) *( Leff /
20
21
22
23
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
Aeff ) ; // n o n l i n e a r i n t e r a c t i o n c o n s t a n t
P112 = etta *( D ^2) *( k ^2) *( P ^3) * exp ( - alpha * L ) ;
disp ( P112 *1 e03 , Power g e n e r a t e d due t o i n t e r a c t i o n
o f s i g n a l s a t d i f f e r e n t f r e q . i n m i l l i w a t t s P112
=)
// R e s u l t
// Power g e n e r a t e d due t o i n t e r a c t i o n o f s i g n a l s a t
d i f f e r e n t f r e q . i n m i l l i w a t t s P112= // 5 . 7 9 8D08
2
3
4
5
6
7
8
9
10
11
12
13
14
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
LI = omega * Ldisp ;
disp ( LI , i n t e r a c t i o n d i s t a n c e i n m e t e r LI= )
// Example12 . 7 . b
D = 0.5 e -06; // d i s p e r i s o n o f f i b e r i n p s /nm . km
C = 3 e08 ; // f r e e s p a c e v e l o c i t y
S0 = 8; // n o r m a l i z e d s e p a r a t i o n o f n e i g h n o r i n g
solitons
B = 10 e09 ; // d a t a r a t e 10 Gb/ s e c
Lambda = 1550 e -9; // w a v e l e n g t h i n m e t e r s
Beta2 = ( Lambda /(2* %pi ) ) ;
LT = ( C * exp ( S0 ) ) /(16* D * B ^2*( Beta2 ^2) *( S0 ^2) ) ;
disp ( LT *1 e03 , T o t a l t r a n s m i s s i o n d i s t a n c e i n Km LT =
)
// Example12 . 7 . c
Ts = 0.881/( S0 * B ) ;
disp ( Ts *1 e12 , FWHM s o l i t o n p u l s e w i d t h i n p i c o
s e c o n d s Ts = )
// Example12 . 7 . d
Ts_TB = 0.881/ S0 ;
disp ( Ts_TB *100 , F r a c t i o n o f t h e b i t s l o t o c c u p i e d by
a s o l i t o n i n p e r c e n t a g e Ts TB= )
// R e s u l t
// i n t e r a c t i o n d i s t a n c e i n m e t e r LI = 4 . 6 8 2D+08
// T o t a l t r a n s m i s s i o n d i s t a n c e i n Km LT = 2 . 8 7 0D+11
//FWHM s o l i t o n p u l s e w i d t h i n p i c o s e c o n d s Ts =
11.0125
// F r a c t i o n o f t h e b i t s l o t o c c u p i e d by a s o l i t o n i n
p e r c e n t a g e Ts TB = 1 1 . 0 1 2 5
63
Chapter 13
Thirteen chapter
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
64
// power b u d g e t i n dB f o r o p t i c a l l i n k when N = 5 , 1 0
and 50 s t a t i o n s r e s p e c t i v e l y =
22 //
36.
54.
198.
21
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
65
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
2
3
4
5
6
7
8
9
10
11
12
13
14
67
Chapter 14
Fourteen chapter
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// f d B e l e c t r i c a l = 0 . 1 3 3
69