Professional Documents
Culture Documents
Design and Performance Analysis of 1D, 2D and 3D Prime Sequence Code Family For Optical CDMA Network
Design and Performance Analysis of 1D, 2D and 3D Prime Sequence Code Family For Optical CDMA Network
DOI 10.1007/s12596-016-0333-6
RESEARCH ARTICLE
Received: 7 September 2015 / Accepted: 22 April 2016 / Published online: 18 June 2016
# The Optical Society of India 2016
Abstract In this paper we investigate the family of prime system has a great potential to meet the global telecommuni-
codes 1D, 2D and 3D code for Optical CDMA communica- cation challenges.
tion system. Optical CDMA network works on the concept of Optical code division multiple access (OCDMA) takes ad-
assigning minimal interfering code sequence to each user that vantages of both; extreme wide bandwidth offered by optical
will intelligently route the traffic within the network. The 1D fiber and the flexibility of the CDMA to achieve reliable high
and 2D codes are compared with the proposed 3D codes based speed connectivity. In optical CDMA transport network, there
on prime sequence algorithm. The mathematically modeling is statistically allocation of network capacity such that you can
of the codes is explained in detail. The orthogonality among continue adding channels until the signal to noise ratio be-
codes is evaluated in terms of auto and cross correlation func- comes low enough that you start getting bit errors and the total
tion on MATLAB. It is seen that the correlation property of the data traffic stays below the channel capacity. No guard bands
proposed 3D code is matched closely with the 1D code and are used in OCDMA network because the stations simply
better then the 2D Code. The cardinality of 3D code is better transmit when they are ready [1, 2]. In optical CDMA, differ-
than the 1D code and almost comparable to the 2D code. The ent users whose signals may be overlapped both in time and
significance of introducing the dimension is explained in frequency share a common communication medium; multiple
terms of BER versus number of user for 1D and 2D codes. access is achieved by assigning unlike minimally interfering
code sequences to different users, which must subsequently be
detected in the presence of multiple access interference from
Keywords OCDMA . Prime codes . BER . Auto correlation .
other users.
Cross correlation
In an Optical CDMA system, each bit is divided up into n
time’s periods called chips. An optical signature sequence or
codeword is created, by sending a short optical pulse during
Introduction some chip interval but not for others. Each user on the O-
CDMA system has a unique signature sequence. The encoder
Optical transmission has acquired a special place in commu- of each transmitter represents each B1^ bit by sending the
nication technology over past 30 years. A fiber acts as a wave- signature sequence where as binary B0^ bit is represented by
guide to transmit information from one place to another and all zero sequence. Since each bit is represented by a pattern of
the information carrier is an optical wave. Since an optical lit and unlit chips, the bandwidth of the data stream is in-
wave can accommodate large amount of information, the creased. Optical CDMA is therefore a spread spectrum tech-
nique. The optical CDMA encoded data is then sent to the N x
N star coupler in a local area network or N x N coupler in an
* Rajesh Yadav access network and broadcast to all nodes [3–6]. Figure 1
raj_opyadav@yahoo.co.in shows the schematic diagram of the OCDMA communication
system [7]. The block diagram consists of optical encoder, star
1
Department of ECE, School of ICT, Gautam Buddha University, coupler and optical decoder in optical domain whereas data
Greater Noida, India source and data recovery circuit can be either in optical or
344 J Opt (December 2016) 45(4):343–356
OPTICAL
electrical domain. The performance of the data recovery cir- Prime codes
cuits can be improved by using delay locked loop as used in
wireless communication systems [8]. Wireless communication Optical code division multiple access (OCDMA) takes advan-
system based on spread spectrum signaling are categories into tages of both; extreme wide bandwidth offered by optical fiber
two – direct sequence spread spectrum and frequency hopping and the flexibility of the CDMA to achieve reliable high speed
become a most important technology for 3rd generation was connectivity. In optical CDMA transport network, there is
studied by researcher for improved performance [9, 10]. statistically allocation of network capacity such that you can
In this paper a family of codes called prime codes has been continue adding channels until the signal to noise ratio be-
discussed and an analysis is carried out to justify the signifi- comes low enough that you are start getting bit errors and
cance of introducing the dimension in optical codes for optical the total data traffic stays below the channel capacity. No
CDMA communication system. The construction of two di- guard bands are used in OCDMA network because the sta-
mensional and three dimensional codes are mostly based on tions simply transmit when they are ready. In optical CDMA,
the constructions of one dimensional code. Therefore it is different users whose signals may be overlapped both in time
important to discuss the coding theory, mathematical model- and frequency share a common communication medium; mul-
ing and simulation of one dimensional code. tiple access is achieved by assigning unlike minimally inter-
The contributions of the paper are as follows: fering code sequences to different users, which must subse-
quently be detected in the presence of multiple access inter-
& As large variety of codes families available like PC, OOC ference from other users
and Quadratic Congruence Codes family etc. This paper In order to implement efficient OCDMA communication
emphasis the prime code family for OCDMA communi- system, address code words with good orthogonal character-
cation systems and data networks. Specifically we try to istic are essential. OCDMA technique allows many users to
highlight the proposed 3D optical prime code. simultaneously access the same transmission channel by
& We have discussed the mathematical modeling and simu- assigning different optical codes to different users. The code
lation of the 1D, 2D and 3D prime codes in MATLAB. set should be chosen such that it has as many code words as
& The prime codes are examined for their autocorrelation possible with good enough auto- and cross-correlation so that
and cross correlation property that defines their feasibility perfect synchronization can be achieve and the multiple access
and authenticity. interference (MAI) from other codes can be suppressed effec-
tively while decoding the signals. Prime codes for OCDMA
The rest of the paper is organized as follows: Section II system consist sequence of ‘1’s and ‘0’ s in which the position
deals with the optical CDMA techniques which give an in- of ‘1’ in the sequence is governed by certain rule called Galois
sight of the optical codes for OCDMA network. Section III field. The possible several prime code variants for OCDMA
discusses the prime code family for OCDMA system and system proposed in many literatures are shown in Fig. 2
presents the mathematical modeling and simulation results [11–14].
of 1D, 2D and 3D optical prime codes. Addresses the com- The prime codes are still preferable due to easy and simple
parisons of the results of above mentioned codes. Section IV implementation of optical encoder/decoder tuneability. Also
concludes the current research along with the future direc- the prime codes enjoy the equal length subsequences in each
tions. The paper ends with the references and bibliography codeword. Thus the cost of encoding and decoding process
information. will be reduced. In order to reduce the cost and power of
J Opt (December 2016) 45(4):343–356 345
OCDMA networks, low weight codes which have symmetri- Where x and y are the elements over the Galois field GF
cally distributed pulses in each codeword should be (P) = {0, 1......, P - 1}. Table 1 shows the prime sequence Sx
constructed. constructed for P = 5.
Second, each prime sequence Sx is mapped into the binary
sequence according to the following rule:
Mathematical modelling of prime codes
1 if z ¼ sx;y þ y:P; f or y ¼ f0; 1; 2; …; P−1g
cx;z ¼ ð3Þ
Basic prime codes (1D) 0 elsewere
Table 2 Prime code sequence Cx over GF(P) interfering codeword’s. The probability of error can be calcu-
Prime sequence Sx Prime code sequence Cx 0 1 2 3 4 lated with respect to the number of users on a system [16],
with the use of the signal to noise ratio. From the autocorre-
S0 = (00000) 10000 10000 10000 10000 10000 lation and cross correlation analysis the signal to noise ratio
S1 = (01234) 10000 01000 00100 00010 00001 for these types of sequences is approximated by [15]:
S2 = (02413) 10000 00100 00001 01000 00010
P2
S3 = (03142) 10000 00010 00100 00001 01000 SN R≅ ð6Þ
S4 = (04321) 10000 00001 00010 00100 01000 0:29 ðK−1Þ
Fig. 3 (a) and (b) shows the two codeword’s C2 and C4 of the code set of 1D original prime code over GF (5) respectively, (c) Auto Correlation function
for optical code C2 and (d) Cross correlation function of C2 and C4 optical codes, for the transmission of following data bit stream 110111001
J Opt (December 2016) 45(4):343–356 347
the prime codes over GF(P) against the number of simulta- 1 if z ¼ sx;y þ y:ð2P−1Þ; f or y ¼ f0; 1; 2; …; P−1g
cx;z ¼
neous users K for different values of P. It is apparent from the 0 otherwise
figure, that the error probabilities improves as P increases ð8Þ
because of higher code weight (w = P) and longer length
(N = P2), resulting better correlation properties. The error A binary prime code sequence of length P (2P - 1) can be
probabilities get worse as K increases due to stronger mutual constructed as follows:
interference.
C x;z ¼ cx;0 ; cx;1 ; …cx;z ; …::cx;N −1 ; ð9Þ
of the code is P(2P - 1)), the code weight (w)or the complex transmission schedules produce higher throughput
number of one’s in the code is P, λa and λc are the than asynchronous access in which network access is ran-
auto and cross correlation value respectively. dom and collisions arise. These Synchronous code se-
The correlation property for any pair of extended prime quences are termed as modified prime codes (MPC).
code sequence Ci and Cj are as follows: Due to code synchronism, synchronous modified prime
codes have larger code cardinality and better code perfor-
P i ¼ j ; Auto − correlation
C i :C j ¼ ð10Þ mance then asynchronous codes. They have significantly
≤ 1 i ≠ j; Cross − correlation increased the number of possible subscriber and simulta-
neous users in OCDMA network. MPC is obtained by
Figure 5 shows the two codeword’s C3 and C6 of the
simply time shifting the binary code sequence P times in
code set of 1D extended prime code over GF (5) and of
time of the original prime code. In this way, P times new
the length 25 and weight 5, it also show the autocorrela-
code sequences could be generated, thus resulting in in-
tion function for optical code C3 and Cross correlation
creased cardinality (|C| = P2) of synchronous modified
function of C3 and C6 optical codes, for the transmission
prime codes [17, 18]. Figure 6 shows the modified prime
of following data bit stream 110111001 in on-off keying
codes has code sequences P times more than the basic
modulation. It is clear from the figure that the autocorre-
prime code over the same GF(P).
lation peaks are equal to 5 and the cross correlation func-
The generation of modified prime code begins with the
tion between any two distinct code sequences of the ex-
prime number P over the GF(P). A synchronized time shifted
tended prime code over a GF (5) is at most one, resulting
prime sequence Sx,k = (sx,k,0, sx,k,1,……., sx,k, y,…, sx,k,(p-1)) is
in a better performance than the basic prime codes.
generated.
However, the number of available code word is not en-
Where the element in this modified prime sequence is giv-
hanced for a given increase in code length [16].
en by
Prime code and extended prime code for OCDMA net- Where x, y and k all in Galois field GF (P) = {0, 1...... P - 1},
works are asynchronous in nature, so there is no need of B⊗^ denotes a modulo p multiplication and B⊕^ denotes a
scheduling and synchronization. The asynchronous systems modulo P addition.
have randomness in network access and allow limited Then, each prime sequence Sx,k is mapped into the binary
number of subscribers. Synchronous accessing with code sequence (0,1) according to the following rule:
J Opt (December 2016) 45(4):343–356 349
format are:
8 9
< P i ¼ j; Auto−correlation =
C i :C j ¼ ≤ P i ≠ j; i and j belongs to same group; Cross − correlation
: ;
≤2 i ≠ j; i and j belongs to differ group; Cross − correlation
ð13Þ
most two. In the modified versions of prime codes limita- probability of error:
tions of original prime codes has been overcome to certain 8 9
< ( 0 ) k ≤P =
extent by increasing the number of available code word
without increase in code length. Pb ¼ Q pffiffiffiffiffiffiffiffiffi
P
k ≥P ; ð14Þ
:
K−1
So in synchronous transmission of the modified prime code complexity, this approach adds security and coding flexibility.
each codeword has equal length code sequence and fixed code The 2D prime code is potentially used in the optical TDMA
weight. There is significant improvement in cardinality and and Optical CDMA multirate, multimedia network and cod-
have good correlation property. Since in synchronous modi- ing based passive optical network.
fied prime code there is complex transmission schedules the A 2D wavelength hopping/time spreading optical code is
security need to be improved for a given number of simulta- given by the parameter (M × N, W, λa, λc), where L × M is a
neous users. binary {0, 1} matrices [16]. In general M × N matrix repre-
So in synchronized modified prime codes (SMPC) a new sents a codeword which consists of M rows and N columns,
sets of code sequences based on time shifting has been while M corresponds to the number of available wavelength
introduced that has increased number of subscribers and si- and N denotes the number of time slots or code length. In a
multaneous users also has good auto-correlation and cross- network each subscriber is assigned a matrix as its own ad-
correlation property. There are some other codes that has been dress code sequence. The code length N depends on the data
introduced recently in the family of modified prime code like bit period T and each bit period is subdivided into a small unit
new modified prime codes (n-MPC), padded modified prime called chip or time slot to incorporate the binary ones and
codes (PMPC), group padded modified prime codes zeros of code sequence [16].
(GPMPC) and transposed modified prime codes (T-MPC). To construct the 2D PC/PC codes first consider the prime
These codes take advantage of low weight, improved cardi- number then obtain the prime sequence and prime codeword
nality and enhanced correlation property. The conclusion we as follows.
can draw from the above discussion is that codes cardinality is
to be maximized in such a way that the code length cannot be S x ¼ sx;0 ; sx;1 ; ……:; sx; y ; …; sx;ðP−1Þ
increased indefinitely to optimize their correlation function. x ¼ 0; 1…; P−1 and y ¼ 0; 1……:; P−1
Practical implementations must be considered in the code de- Where the element in this prime sequence is given by
sign process because there is a tradeoff between the network
performance and the throughput due to code length [19, 20]. sx; y ¼ fx; ygðmod PÞ
2D prime code Sx, ywhere x and y are the elements over the Galois field
GF (P) = {0, 1......, P - 1}. Then, each prime sequence Sx is
To design an optical CDMA communication system we have mapped into the binary sequence according to the follow-
to deal with the designing of spreading codes having good ing rule:
correlation properties for a given number of subscribers and
1 if z ¼ sx;y þ y:P; f or y ¼ f0; 1; 2; …; P−1g
simultaneous users supported. In 1D optical code the number cx;z ¼
0 elsewere
of users that can communicate with each other simultaneously
is small and the bit error rate of the system increases as the ð15Þ
number of subscriber in a network is increased. This is be- A binary prime code sequence of length P2 can be con-
cause the number of subscribers is proportional to the length
structed as follows:
of spreading codes. Thus the length of optical codes should be
large enough to increase the number of simultaneous users. A C x;z ¼ cx;0 ; cx;1 ; …cx;z ; …::cx;N −1 ; ð16Þ
effective way is to use 2D optical code, in which the optical
pulses within each code word are being sent at different wave- Where x ¼ 0; 1; … …; P−1; N ¼ P2
lengths or channels resulting in either wavelength hopping Let a prime number P = 5 then corresponding prime
and time spreading 2D optical code or space and time 2D sequence Sx,y and basic prime code obtained is shown in
optical code. Thus we try to introduce either wavelength or Table 5. Here the Sx,y for x = 0, 1, 2, 3, 4 and y = 0, 1, 2, 3,
space as another dimension in order to improve the cardinality 4 is employed as time spreading. Whereas Hx,y be another
and performance of the system. The most preferable 2D opti-
cal code is wavelength hopping/time spreading code. In com- Table 5 The prime sequence and prime code over GF(P)
parison to 1D OCDMA system, 2D OCDMA system not only
Prime sequence Sx,y for p = 5 Prime codes Cx
support more possible subscribers, simultaneously communi-
cating users and improved system performance but also sim- S0 0 0 0 0 0 10000 10000 10000 10000 10000
plify the network control and management, reducing process- S1 0 1 2 3 4 H1 01000 01000 01000 01000 01000
ing time and save cost of hardware implementation. Here we S2 0 2 4 1 3 H2 00100 00100 00100 00100 00100
discuss wavelength hopping and time spreading 2D optical S3 0 3 1 4 2 H3 00010 00010 00010 00010 00010
code based on prime code algorithm for optical CDMA sys- S4 0 4 3 2 1 H4 00001 00001 00001 00001 00001
tem. Although the use of optical codes increases system
352 J Opt (December 2016) 45(4):343–356
parameter employed to determine the wavelength hopping. wavelength hopping and time spreading 2D PC/PC codes
For x = 0, the wavelength hopping pattern is of no significance have good correlation property.
so there is no H0. For the given prime codes over GF(5), the The correlation properties for any pair of wavelength hop-
binary B1^ in each codeword is represented by a different ping and time spreading 2D PC/PC code sequence Ci and Cj
wavelength and the selection of particular wavelength is with discrete data stream format are as:
governed by the factor H x. Thus for any two different
8 9
codeword’s either they have diverse wavelength hopping or < P i ¼ j; Auto−correlation =
have diverse time spreading as shown in Table 6. The 2D C i :C j ¼ ≤ P i ≠ j; i and j belongs to same group; Cross − correlation
: ;
≤1 i ≠ j; i and j belongs to differ group; Cross − correlation
PC/PC code has code length N = P2. The number of available
wavelength and the code weight are M = P and w = P ð17Þ
respectively.
Figure 9 Present the visualization of wavelength hop- It can be seen from above correlation function that the
ping and time spreading 2D PC/PC codeword over peak auto correlation is P which happens when i = j. where
GF(5), having weight 5 with 5 wavelength and 25 time the cross correlation value is ‘P’ if i ≠ j, i and j belongs to
slots. Each black box depicts the chip position and trans- same group and it is ‘1’ if i ≠ j, i and j belongs to differ
mitting wavelength of an optical pulse in the codeword. A group. Figure 10 shows the three codeword’s C2, C4 and
matrix form representation of wavelength hopping and C11 of the code set of wavelength hopping and time spread-
time spreading 2D PC/PC codeword. ing 2D PC/PC over GF(5) of the length 25 and weight 5, it
From the Table 6 it is clear that any two codeword will have also show the autocorrelation function for optical code C2,
either different wavelength hopping or possess different time in phase cross correlation function of C2 and C4 optical
spreading. For example, the codeword’s S0H3 and S0H4 have codes and out of phase cross correlation function of C4
the same time spreading pattern but they possess different and C11 optical codes, for the transmission of following
wavelength hopping pattern. Whereas, the codeword’s S0H3 data bit stream 110111001. It is clear from the figure that
and S1H3 will have the same wavelength hopping pattern but the autocorrelation peaks are equal to 5. Whereas, in phase
their time spreading pattern are different. That’s why cross correlation function between any two distinct code
sequences of the same group and the out of phase cross
correlation function between any two distinct code se-
Table 6 The possible number of wavelength hopping and time quences of the different groups of the wavelength hopping
spreading 2D PC/PC codeword over GF(P) and time spreading 2D PC/PC over GF(5) is at most ‘5’
and ‘1’ respectively.
Sx,y Hx,y Sx. Hx 2D PC/PC Codes Cx,k
01234 In the design stage of OCDMA network it is necessary to
evaluate and analyze the code properties like correlation func-
0 1 S0H1 W00000 W10000 W20000 W30000 W40000 tion, bit error rate, cardinality and bandwidth efficiency are
2 S0H2 W00000 W20000 W40000 W10000 W30000 needed to be taken into account for code performance and
3 S0H3 W00000 W30000 W10000 W40000 W20000 scalability. We have already discussed the correlation property
4 S0H4 W00000 W10000 W20000 W30000 W10000 and code set cardinality of the 1D and 2D optical spreading
1 1 S1H1 W00000 0 W1000 00 W200 000 W30 0000 W4 codes. The bit error rate (BER) is the average possibility of
2 S1H2 W00000 0 W2000 00 W400 000 W10 0000 W3 error occurrence among different sequence codes. The BER of
3 S1H3 W00000 0 W3000 00 W100 000 W40 0000 W2 code set increases when the number of simultaneous sub-
4 S1H4 W00000 0 W1000 00 W200 000 W30 0000 W1 scribers grows.
2 1 S2H1 W00000 00 W100 0000 W2 0 W3000 000 W40 For sustainable optical communications system perfor-
2 S2H2 W00000 00 W200 0000 W4 0 W1000 0 W3000 mance, the BER value acceptable value is 10−9. The BER of
3 S2H3 W00000 00 W300 0000 W1 0 W4000 0 W2000 1D spreading codes can be determined on the basis of possi-
4 S2H4 W00000 00 W100 0000 W2 0 W3000 0 W1000 bility of binary data occurrence, the threshold decoding range
3 1 S3H1 W00000 W10000 W20000 W30000 W40000 and the hits possibility between ones in the code sequences. It
2 S3H2 W00000 W20000 W40000 W10000 W30000 is expressed as:
3 S3H3 W00000 W30000 W10000 W40000 W20000
1 X W =2 x W=2 2 f x S−1
4 S3H4 W00000 W10000 W20000 W30000 W10000 BER1D ¼ ð −1 Þ 1− ð18Þ
4 1 S4H1 W00000 0000 W1 000 W20 00 W300 0 W4000 2 x¼0 x W
2 S4H2 W00000 0000 W2 000 W40 00 W100 0 W3000
3 S4H3 W00000 0000 W3 000 W10 00 W400 0 W2000 Where W is the code weight depending on the number of
4 S4H4 W00000 0000 W1 000 W20 00 W300 0 W1000 ones, S is the total number of simultaneous subscribers, and
f = W2/4 L is the decoding distance between the first and last
J Opt (December 2016) 45(4):343–356 353
a
W4
Wavelength
W3
W2
W1
W0
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
Time
b
W4
W3
W2
W1
W0
t0 t1 t2 t3 t 4
Fig. 9 (a) Visualization of wavelength hopping and time spreading 2D PC/PC codeword over GF(5), (b) A matrix representation of 2D WH/TS code
successive ones in the sequence and L denotes the code length wavelength. It is expressed as:
maintained under the correlation constraint. However the value
of ‘f’ varies for different spreading codes families depending on 1 X S=2 S−1 x S−1−x
BER2D ¼ f f ð19Þ
the maximum decoding slot distance [15]. 2 x¼Th x
The BER of 2D optical spreading codes can be calculated
on the basis of the possibility of threshold decoding and the Where S is the total number of simultaneous subscribers, this
product of hits possibility f by non hits possibility 1-f [15]. the decoding threshold and f is the sum of the hit function to
The hits possibility corresponds to the possibility of different different groups depending on the code weight W, code length N,
code sequences occurring at the same time slot and cardinality C and the hopping factor ‘Ph’. To identify the system
-8
10 2D - BLUE 3D optical CDMA codes
P=7
w =8
-10 Ns = 49
10
The 3D space/wavelength/time code based on prime sequence
-12
10
algorithm is proposed. Space/Wavelength/Time 3-D code
families are represented as (S*W*T, w, λa, λc) where S, W
-14
10 and T represent the number of spatial channel, wavelength and
time domain used respectively. The ‘w’ signifies the weight of
-16
10
0 20 40 60 80 100 120 140 160 180 200 the code (the number of one’s in each code). The λa and λc is
Number of User the auto and cross correlation of the code respectively [21].
Fig. 11 Comparison of 1D and 2D optical spreading prime codes in For the construction of 3D optical code the idea comes from
terms of BER and cardinality for prime number p = 7 the multicarrier codes [22]. First consider prime number P over
a GF(P). For a prime number p construct a prime sequence.
performance with the increasing number of subscribers the BER Every codeword of the 3D prime code is represented in the
should be discussed with the cardinality. Figure 11 clearly depicts form of a matrix. A matrix is constructed by setting each ele-
the curve between the BER and cardinality for 1D and 2D optical ment according to the rule Sx,y = Wx.j⊕z.y.i, x.i⊕y.j is given as:
2 3
W 0; 0 W x⊕0; 0⊕y II III W xð p−1Þ⊕0; 0⊕yð p−1Þ
6 W 0⊕z:y; x⊕0 W x⊕z:y;x⊕y II III W xð p−1Þ⊕z:y; x⊕yð p−1Þ 7
6 7
6 I I I 7
6 7
6 ⋮ ⋮ ⋮ 7
S x;y ¼6
6 W 0⊕z:y:i; x:i⊕0 W x⊕z:y:i; x:i⊕y II III W xðp−1Þ⊕z:y:i; x:i⊕yðp−1Þ
7
7 ð20Þ
6 7
6 I I I 7
6 I I I 7
4 ⋮ ⋮ ⋮ 5
W 0⊕z:yðp−1Þ; x:ðp−1Þ⊕0 W x⊕z:yðp−1Þ; x:ðp−1Þ⊕y II III W xðp−1Þ⊕z:yðp−1Þ; xðp−1Þ⊕yðp−1Þ
Each element Wx.j⊕z.y.i, x.i⊕y.j represents one transmitting z = 2, then for the codeword S2, 0 where x = 2 and y = 0 the ele-
wavelength, out of P2 distinct wavelength in the ith wavelength ments are calculated according to the rule Sx, y = Wx.j⊕z.y.i, x.i⊕y.j.
group and jth time slot location in the Sx,y. where i and In Sx,y code matrix, each row represents one disjointed
j = [0, 1, ……, P-1], (x, y) ≠ (0, 0), z = {0, 1, …… P-1}/{A} wavelength and there are in total p distinct wavelengths per
and ⊕ denotes a modulo p addition. {A} is a set of the number row. The wavelength groups are indexed by i = {0, 1….., P-1},
that contains all integers calculated with 1/r2 (mod P) for the number of wavelength groups i can be reduced from P
r = {1, 2… P-1}/2. Then using this formula legitimate value without degrading the periodic cross correlation function.
of z that can be used to obtain Sx, y for various prime numbers Thus we can construct P2-1 prime codeword’s of length P4,
can be calculated. For example for P = 3 we have z = 2. weight P2 and having a iP2 distinct wavelengths where i ≤ P.
For prime number P = 3, the 3D prime code cardinality These iP2 different wavelengths can be partitioned into i
given by |C| = P2 – 1 will be 8. The corresponding code ma- groups with P2 distinct wavelengths per group. Each time slot
trices Sx,y, where x and y are both in GF(3) and (x, y) ≠ (0, 0) carries i pulses of i diverse wavelengths and one wavelength
will not exist. The following matrix will be as: per group is used. The optical codeword’s can then be trans-
2 3
W 0;0 W 0;1 W 0;2 mitted over i distinct channels having P2 diverse wavelength
S x; y ¼ 4 W 1;0 W 1;1 W 1;2 5 ð21Þ and j’s time slots thus acting as a 3D code. In this way the P2
W 2;0 W 2;1 W 2;2 distinct wavelengths in every group can be reused in all i spa-
tial channels, instead of requiring iP2 distinct wavelengths.
This matrix represents a codeword and each element is trans- The autocorrelation and cross-correlation of Space/wave-
mitted using single pulse per plane scheme. Using P = 3 we have length/time spread 3D optical code is considered. The
J Opt (December 2016) 45(4):343–356 355
correlation property for any pair of prime code sequence Ci T for the same data stream 110111001. As for efficient com-
and Cj with discrete data stream format are: munication using OCDMA system it is necessary to maximize
the autocorrelation peak and minimize the cross correlation
P i ¼ j ; Auto − correlation
C i :C j ¼ ð22Þ function in order to optimize the discrimination between the
≤2 i ≠ j; Cross − correlation
correct signal and interference. The out of phase auto correla-
It can be seen from above correlation function that the peak tion constraint will be zero as the pulses per plane are not
auto correlation is P which happens when i = j also, the cross greater than that of available wavelength. It is observed from
correlation value is ‘2’ occurs at each synchronized time T. the figure that the auto correlation and cross correlation of the
Figure 12 shows the two codeword’s S2, 0 and S1,2 of the 3D code has been P and 2 respectively.
code set of space/wavelength/time spread 3D code over GF Table 7 present the comparison of 1D, 2D and 3D optical
(3) of length 81 and weight 9, it also illustrate the auto corre- prime codewords over GF(3). The result shows that the 3D
lation property of 3D code sequence S2, 0 and the maximum codes have good cardinality of code in comparison to 1D and
peak value equals 3 at each synchronized time T when the 2D codes but have significant code lengths. As the code length
sequence follow the data stream 110111001. plays a significant role in raising the system performance in
Similarly, the cross correlation property of 3D code se- terms of correlation property, multiple access interference and
quence S2, 0 and S1,2 is equal to 2 at each synchronized time bit error rate. The introduction of the dimension in 3D code
Parameters codes Code length N Code weight w Cardinality |C| Auto correlation λa Cross correlation λc
Prime code (P = 3) 9 3 3 P 2
Extended Prime Code (P = 3) 15 3 3 p 1
Modified Prime Code (P = 3) 9 3 9 P
p m ≠ n; m and n share same group
2m ≠ n; m and n share different group
2D Prime Code PC/PC (P = 3) 9 3 6 P
p m ≠ n; m and n share same group
1 m ≠ n; m and n share different group
3D Prime Code (P = 3) 3 9 8 P 2
356 J Opt (December 2016) 45(4):343–356
has improved the performance in terms of security and Quality 3. J.A. Salehi, Code division multiple-access techniques in optical
fiber networks – part II: system performance analysis. IEEE
of Services etc. The limiting factor is its implementation and it
Trans. Commun 37(8), 834–842 (1989)
needs to control many parameters of fiber and devices. 4. J.A. Salehi, V.K. Wei, Optical orthogonal codes: design, analysis,
The orthogonality of the codes is examined on the basis of and applications. IEEE Trans. Inf. Theory 35(3), 595–604 (1989)
correlation property calculated on the MATLAB. It is evident 5. S.S. Matsunaga, On the performance of code division multiple ac-
cess optical fiber communications, Univ. Southern California,
from the table that the 3D code auto correlation and cross
(1989)
correlation is comparable to the 1D code however the number 6. I. Frigyes, CDMA in optics, IEEE Ninth Int. Symp Spread
of codewords generated for the given P is better. Spectrum Tech Appl., pp. 452–457, (2006)
The cross correlation of 3D code in comparison to the 2D 7. J.A. Salehi, Emerging optical code division multiple-access com-
munication system, IEEE Network, pp. 31–39, (1989)
code are good. In 2D code the cross correlation value is P
8. P.P. Sahu, S. Mahipal, Improvement of Jitter characteristics of a
when the codes belong to the same group and 1 as the codes 9.95328 Gb/s Data recovery DLL using SAW filter. J. Comput.
are from different groups. Whereas in the 3D code, the cross Electr. Eng. (Elsevier) 33(2), 127–132 (2007)
correlation among all the possible codes for a given value of P 9. P.P. Sahu, S. Mahipal, Multichannel frequency hopping
spread spectrum signaling using code M-ary frequency shift
should remain same that is 2. So we can say that the correla-
keying. J. Comput. Electr. Eng. (Elsevier) 34(4), 338–345
tion property of the 3D codes are better and support sufficient (2008)
cardinality. 10. P.P. Sahu, S. Mahipal, Multichannel direct sequence spread spec-
trum signaling using code phase shift keying. J. Comput. Electr.
Eng. (Elsevier) 35(1), 218–226 (2009)
11. M. Ravi Kumar, S.S. Pathak, N.B. Chakrabarti, Design and perfor-
mance analysis of code families for multi-dimensional optical
Conclusion
CDMA. IET Commune 3(8), 1311–1320 (2009)
12. R. Omrani, P.V. Kumar, Codes for optical CDMA, Springer, (2006)
We presented the detailed methodology on the design of prime 13. Z. Wei, H. Ghafouri-Shiraz, Codes for spectral-amplitude-
sequence algorithm based 1D, 2D and 3D code for optical coding optical CDMA systems. J. Lightwave Technol. 20(8),
1284–1291 (2002)
CDMA communication system. Today communication sys-
14. G.C. Yang, W.C. Kwong, Prime codes with applications to CDMA:
tems are facing major challenges from the security point of optical and wireless, Artech House, (2002)
view. It is observed that the introduction of dimension in the 15. H.G. Shiraz, M.M. Karbssian, Optical CDMA networks principal,
encoding scheme will improve the system performance in analysis and application, Wiley IEEE, © (2012)
terms of cardinality, orthogonality and security. The perfor- 16. H. Yin, D.J. Richardson, OCDMA access communication networks
theory and applications, Springer, © (2007)
mance result of the proposed 3D code for OCDMA network 17. A.S. Holmes, R.R. Syms, All optical CDMA using quasi prime
will have sufficient code set with good orthogonality and se- code. J. Lightwave Technol. 10, 279–286 (1992)
curity as compare to other orthogonal codes (1D and 2D 18. K. Fouli, M. Maier, OCDMA and optical coding: principles,
code). However the complexity of implementing the system application and challenges. IEEE Commune Magazine 45(8),
27–34 (2007)
hardware has been increased. 19. W.C. Kwong, P.R. Prucnal, P.A. Perrier, Synchronous, versus
Asynchronous CDMA for fiber-optic LANs using optical signal
processing, IEEE Global Telecommunications Conf, Dallas, TX,
USA, (1989)
20. J. Ji, F. Gong, Z. Zang, S. Yang, Analysis of the code parameters in
References Asynchronous coherent time spreading optical CDMA system,
SPIE Digital Library, (2008)
21. Ms. S. Jindal, Dr. N. Gupta, Performance evaluation of optical
1. J.P. Heritage, A.M. Weiner, Advances in spectral optical code- CDMA based 3D code with increasing bit rate in local area net-
division multiple-access communications. IEEE J. Sel. Topics work, IEEE Region 8 Sibircon (2008)
Quantum Electron 13(5), 1351–1369 (2007) 22. C.F. Hong, G.C. Yang, Multicarrier FH Codes for multicarrier FH –
2. A. Stok, E.H. Sargent, The role of optical CDMA in access net- CDMA wireless systems. IEEE Trans. Commun 48(10), 1626–
works. IEEE Commun. Magazine 40(9), 83–87 (2002) 1630 (2000)