Optical Fiber Communication

Click here to load reader

  • date post

    24-Oct-2014
  • Category

    Documents

  • view

    120
  • download

    8

Embed Size (px)

Transcript of Optical Fiber Communication

Scilab Code for Optical Fiber Communication by Gerd Keiser 1Created by Prof. R. Senthilkumar Institute of Road and Transport Technology rsenthil signalprocess@in.com Cross-Checked by Prof. Saravanan Vijayakumaran, IIT Bombay sarva@ee.iitb.ac.in 11 January 2011

by a grant from the National Mission on Education through ICT, http://spoken-tutorial.org/NMEICT-Intro. This Text Book Companion and Scilab codes written in it can be downloaded from the website www.scilab.in

1 Funded

Book DetailsAuthors: G. Keiser Title: Optical Fiber Communication Publisher: Tata McGrawHill Edition: 4th Edition, 8th Reprint Year: 2010 Place: New Delhi ISBN: 0-07-064810-7

1

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 gure of the above book ) For example, Exa 4.56 means solve example 4.56 of the above book.

2

ContentsList of Scilab Codes 1 First chapter 2 Second chapter 3 Third chapter 4 Fourth chapter 5 Fifth chapter 6 Sixth chapter 7 Seventh chapter 8 Eight chapter 9 Ninth chapter 10 Tenth chapter 11 Eleventh chapter 12 Twelve chapter 13 Thirteen chapter 14 Fourteen chapter 4 2 7 11 16 22 26 31 35 40 46 54 59 64 68

3

List of Scilab CodesExa Exa Exa Exa Exa Exa 1.1 1.2 1.4 1.5 1.6 1.7 Program to calculate time period and phase shift . . . Example 1.2 . . . . . . . . . . . . . . . . . . . . . . . Shannon Channel Capacity formula . . . . . . . . . . Capacity of a channel using Shannons formula . . . . Program to calculate attenuation loss of power . . . . Power gain calculation for a signal travelling from one point to another point . . . . . . . . . . . . . . . . . . Critical Angle of incidence . . . . . . . . . . . . . . . Finding Critical angle, numerical aperture, acceptance angle . . . . . . . . . . . . . . . . . . . . . . . . . . . Program to Calculate NORMALIZED FREQUENCY V and Numerical Aperture . . . . . . . . . . . . . . . Power ow in the core and cladding of step index ber Program to calculate Fiber Birefringence Betaf . . . Program to Find Attenuation in dB/km . . . . . . . To calculate input and output power in dBm . . . . . Rayleigh scattering loss . . . . . . . . . . . . . . . . . Program to calculate percent in decrease of number of modes . . . . . . . . . . . . . . . . . . . . . . . . . . . Calculation of pulse broadening . . . . . . . . . . . . Calculation of bandwidth distance . . . . . . . . . . . Program to Find out the Material Dispersion . . . . . Program to Find out Waveguide Dispersion . . . . . . Program to nd intrinsic carrier concentration . . . . Finding Enegy gap and Wavelength . . . . . . . . . . Finding Enegy gap and Wavelength . . . . . . . . . . To nd out the Internal Quantum Eciency and Internal Power level of LED source . . . . . . . . . . . . . . 4 2 3 3 4 5 5 7 7 8 8 9 11 11 12 12 13 14 14 15 16 16 17 17

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

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

External Quantum Eciency in percentage . . . . . . Program to nd Lasing Threshold gain . . . . . . . . Program TO Calculate Frequency Spacing and Wavelength Spacing . . . . . . . . . . . . . . . . . . . . . . Calculation of number of half-wavelengths and wavelength spacing between lasing modes . . . . . . . . . . Calculation of Lateral power distribution coecient . Program to Calculate Optical Power Emitted from the Light source and Optical power coupled to step-index ber . . . . . . . . . . . . . . . . . . . . . . . . . . . . Fresnel reection, power coupled and power loss . . . Power coupled between two graded index bers . . . . Loss between single mode bers due to Lateral misalignment . . . . . . . . . . . . . . . . . . . . . . . . . Loss between single mode bers due to angular misalignment . . . . . . . . . . . . . . . . . . . . . . . . . Cut-o wavelength of photodiode . . . . . . . . . . . Calculation of Quantum eciency . . . . . . . . . . . Calculation of photocurrent . . . . . . . . . . . . . . Calculation of Responsivity of photodiode . . . . . . To nd primary photocurrent and multiplication factor Mean-square shot noise current, Mean-square dark current and Mean-Square thermal noise current . . . . . . Circuit bandwidth of a photodiode . . . . . . . . . . To nd optimum decision threshold . . . . . . . . . . To nd out signal-to-noise ratio and probability of error for given Q . . . . . . . . . . . . . . . . . . . . . . . Plotting Bit Error Rate versus Q factor . . . . . . . . To nd the energy of the photon incident on photodiode and Minimum incident optical power . . . . . . . . . . Program to calculate the Total Optical Power loss . . Program to calculate the system margin . . . . . . . Program to calculate link rise time . . . . . . . . . . Program to calculate link rise time . . . . . . . . . . Calculation of Number of bits aected by a burst error Program to nd coecients of generator polynomial . Program to nd CRC(Cyclic Redundancy Check) . . Program to percentage of burst error detected by CRC 5

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 nd Relative Intensity Noise (RIN) . . . . Program to Find limiting conditions for pin-photodiode Finding the center wavelength . . . . . . . . . . . . . Finding mean frequency spacing . . . . . . . . . . . . Program to nd coupling ratio, Excess loss, Insertion loss, Return loss of 2x2 Fiber coupler . . . . . . . . . . Finding output powers at output port of 2x2 coupler Program to nd waveguide length . . . . . . . . . . . Program to nd Excess loss, Splitting loss and total loss Program to Waveguide Length dierence . . . . . . . Fiber Bragg Grating: Peak Reectivity, Coupling coefcient, full-bandwidth . . . . . . . . . . . . . . . . . . Phased-Array-Based-Devices: Channel spacing in terms of wavelength and path-length dierence . . . . . . . . Phased-Array-Based Devices: Length dierence 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 dierent ASE noise level . . . . . . . . . . Noise penalty factor . . . . . . . . . . . . . . . . . . . Upper bound on input optical signal power . . . . . . Eective length of ber . . . . . . . . . . . . . . . . . Calculation of Stimulated Brillouin Scattering (SBS) threshold power . . . . . . . . . . . . . . . . . . . . . Four-wave mixing-calculation of power generated due to the interaction of signals at dierent frequencies . . Full-width Half-Maximum (FWHM) soliton pulse normalized time . . . . . . . . . . . . . . . . . . . . . . . Calculation of normalized distance parameter for dispersion shifted ber . . . . . . . . . . . . . . . . . . . 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 ber link . . . . . . . . . . . . . . . . . . . . . . . . . . . . Fig 14.10 Performance Measurement and Monitoring for sce . .

62 64 65 66 66 67 68

1

Chapter 1 First chapterScilab code Exa 1.1 Program to calculate time period and phase shift1 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 ; ph