#### Abstract

This study proposes novel three-dimensional (3D) matrices of wavelength/time/spatial code for code-division multiple-access (OCDMA) networks, with a double balanced detection mechanism. We construct 3D carrier-hopping prime/modified prime (CHP/MP) codes by extending a two-dimensional (2D) CHP code integrated with a one-dimensional (1D) MP code. The corresponding coder/decoder pairs were based on fiber Bragg gratings (FBGs) and tunable optical delay lines integrated with splitters/combiners. System performance was enhanced by the low cross correlation properties of the 3D code designed to avoid the beat noise phenomenon. The CHP/MP code cardinality increased significantly compared to the CHP code under the same bit error rate (BER). The results indicate that the 3D code method can enhance system performance because both the beating terms and multiple-access interference (MAI) were reduced by the double balanced detection mechanism. Additionally, the optical component can also be relaxed for high transmission scenery.

#### 1. Introduction

Optical code-division multiple-access (OCDMA) systems are considered suitable for local-area networks because they allow multiple users to access the network asynchronously and simultaneously with high transmission security [1, 2] especially when the code dimensional becomes large. Several methods have been proposed to achieve passive OCDMA. Most types of OCDMA systems use optical delay lines and optical orthogonal codes for time domain coding [1]. However, some OCDMA systems employ spectral coding through diffraction gratings, confocal lenses, and phase/amplitude masks [3]. Under these OCDMA schemes, optical systems require coherent and ultrashort pulses to produce transform-limited pulses, increasing the cost and complexity of the system.

In earlier OCDMA systems, one-dimensional (1D) codes such as optical orthogonal codes (OOCs) [1] were used. However, the code length must be sufficient to support additional users because of the unipolar characteristic of optical signals. The disadvantage of 1D coding systems is that the code length increases rapidly when the number of active users increases. To overcome the limitations of 1D codes, multidimensional coding methods, using two-dimensional (2D) codes and three-dimensional (3D) codes, were proposed [4–7].

These researches present new 3D matrices and an associated decoding scheme for a wavelength/time/spatial OCDMA system. We constructed 3D carrier-hopping prime/modified prime (CHP/MP) codes by extending a 2D CHP code integrated with a 1D MP code. In the 3D code matrices, a CHP code is used for wavelength/time coding and a MP code is used for spatial coding. System performance was enhanced by the low cross correlation properties of the 3D code designed to avoid the beat noise phenomenon. At the receiver, multiuser interference can also be suppressed efficiently using the double balanced detection scheme. In general, the proposed 3D security performance is better than 2D and 1D OCDMA networks. The research group of Shake [8] suggested that there are three issues for enhancing the network security to protect the network from attack by unauthorized users. In the first, the approach involved increasing the code complexity, for example, more dimensions or more complexity code sets, while the second involved reducing the subscriber’s transceiver power. A third issue is for each transmitter to change its code pattern on a frequent basis. One of the advantages in our proposed 3D OCDMA network can enhance security when the network is under attack from the eavesdroppers. The remainder of this paper is organized as follows. Section 2 provides an overview of the 3D code construction and its properties. Section 3 provides an illustration of the system configuration. Section 4 evaluates the system performance and discusses the dominated noise effects. Finally, Section 5 presents some brief conclusions.

#### 2. Code Construction and Code Properties

The wavelength/time/spatial 3D code can be constructed following the steps outlined below. In this study, we first constructed CHP code used for the 2D wavelength/time code. Then, we used the MP code to spatially code the 3D code matrices. Finally, we combined the CHP codes with MP codes to generate 3D code matrices labeled 3D CHP/MP codes in this study.

The code construction process is as follows.

*Step 1. *With a positive integer and two prime numbers and , the , code matrices can be expressed as where and . The element is an element of and can be expressed usingwhere denotes modulo- multiplication. For example, if we set , the CHP code has nine matrices. Table 1 shows this type of CHP code family.

*Step 2. *The construction of a modified prime code begins with the Galois field of a prime number . A modified prime sequence is constructed with elements of over an odd prime using the following expression:where and .

Therefore, we can generate different sequences by changing parameters and . These sequences form a code family.

To construct the modified prime code each modified prime sequence is mapped into a binary modified prime code sequence of length according towhere , , and .

*Step 3. *Generate code matrices using the following mathematical expression:where , , and . is an element of . When element , the optical pulse of wavelength exists at time chip in spatial channel .

Then, we define the 3D code using a mathematical expression.

*Definition 1. *A 3D code is a collection of binary matrices , each at hamming weight , satisfying the following constraints.*Autocorrelation.* For all 3D codewords , *Cross Correlation.* For all 3D codewords , where and are the elements of matrices and , respectively, and a nonnegative integer represents cross correlation.

The proposed code properties can be divided into three types: (1) two distinct codes with the same wavelength/time coding scheme; that is, both codes have the same CHP code codeword but different spatial coding schemes. In other words, they have the same modified prime code codeword; (2) two distinct codes with different wavelength/time coding schemes but the same spatial coding schemes; (3) two distinct codes with different wavelength/time coding schemes and different spatial coding schemes. The cross correlation and autocorrelation properties of 3D CHP/MP codes are shown in Table 2. The values in Table 2 show that the worst cross correlation condition would be obtained by comparing Case 1 with Case 2. However, these results have been omitted from this paper; interested readers can find them in [8].

#### 3. System Configuration of 3D OCDMA Network

Figure 1 shows a block diagram of the proposed 3D OCDMA network. The coding scheme uses matrices, where is the number of available wavelengths, is the number of time slots, and is the number of spatial channels. The network comprises transmitters, receivers, and star couplers. Each user is assigned a single wavelength/time/spatial matrix codeword.

The 3D OCDMA system encoder is shown in Figure 2. An electrooptical modulator (EOM) is realized when the information bits for the user using on-off shift-keying scheme and the broadband laser source (BLS). The resulting optical signals are encoded with the specific code matrix in two steps: wavelength/time coding, that is, block , and spatial encoding. The wavelength/time encoding structure is implemented by a group of FBGs and tunable optical delay lines. The FBG center wavelength and delay time are determined by the CHP code. The spatial encoding process is realized through connections between the splitter and the star couplers, which are determined by the chip value of MP code. The main function of switch controllers is to connect or unconnect to the couplers according to the MP code patterns in spatial domain of 3D OCDMA codes.

The 3D OCDMA system decoder is shown in Figure 3. The proposed double balanced detector can be divided into two branches, and each branch contains one wavelength/time balance detector. The connection between the two branches and the star couplers agrees with the user’s desired spatial codeword and complement, respectively. After passing through combiners, the signal is received by the same wavelength/time decoding process. The attenuators and shown in Figure 3 are used to eliminate multiuser interference in the frequency and spatial domains, respectively [9]. Because of the effects of various noises in the PDs, the decision variable is a random variable, and a decision device is used to determine whether the transmitted signal is logical “1” or logical “0.”

#### 4. Performance Analysis of 3D OCDMA Network

To analyze the error probability of the 3D OCDMA system in this study, we ignore the thermal and shot noises in the photodetection process and only consider the interference from other users. The exact probability of error per bit is defined aswhere is the current at the output of the double balanced detector, is the data bit of the th user, and is defined as the threshold. The second term of (8) is zero for [2], where is the total number of simultaneous users in the system, and the first term of (8) can be written aswhere is the interference signal and is the probability density function for the interference signal . For mathematical convenience, we assume that all chips are synchronized. Under this assumption, (9) can be expressed aswhere is the cross correlation probability (we explain how to calculate in the next paragraph).

To analyze the performance of 3D OCDMA system with CHP/MP codes, we must calculate the probability . With this property, we can obtain a weight of 1 for the synchronous cross correlation between two distinct codewords during the detection process. Because the 2D CHP code has one pulse per row, we calculate [8]. For the 3D CHP/MP code, the cross correlation probability can be expressed aswhere is the number of MP codes used for spatial coding.

The first term of (11) is the probability that two distinct CHP/MP codes have different spatial coding schemes, and the second term is the probability of both codes having the same spatial coding scheme. We replace of (11) with to substitute (10) and let .

Figure 4 shows the variation of BER according to the number of simultaneous users. The CHP/MP code cardinality increased significantly compared to the CHP code under the same BER, as shown in Figure 4. The results in Figure 4 indicate that system performance can be enhanced using the 3D code method because the beating terms and multiple-access interference (MAI) were both reduced by the double balanced detection mechanism. Additionally, the optical component can be relaxed for high transmission scenery.

#### 5. Conclusion

This study proposed a new 3D CHP/MP code with a double balanced detector for OCDMA networks. Although synchronization between fiber channels must be considered during the decoding process, the advantage of cardinality is increased significantly compared to that of traditional OCDMA networks. The codes construction is based on prime codes’ family; the 3D codes generation is straightforward. Additionally, beat noise and multiuser interference are suppressed efficiently by the double balanced detection mechanism proposed in this study. A comparison of designed 3D method and traditional 2D CHP coding scheme shows 3D system with spatial coding domain can support almost more than two hundred simultaneous users at the same bit error rate scenario. According to the reason, the new 3D design could be useful for the development of future OCDMA networks.

#### Conflict of Interests

The authors declare that there is no conflict of interests regarding the publication of this paper.

#### Acknowledgment

This study was partially supported by the National Science Council under Grant no. 102-2622-E-150-016-CC3.