- About this Journal ·
- Abstracting and Indexing ·
- Aims and Scope ·
- Article Processing Charges ·
- Author Guidelines ·
- Bibliographic Information ·
- Citations to this Journal ·
- Contact Information ·
- Editorial Board ·
- Editorial Workflow ·
- Free eTOC Alerts ·
- Publication Ethics ·
- Recently Accepted Articles ·
- Reviewers Acknowledgment ·
- Submit a Manuscript ·
- Subscription Information ·
- Table of Contents
Advances in Optical Technologies
Volume 2012 (2012), Article ID 398341, 7 pages
Cloud Computing for Rigorous Coupled-Wave Analysis
1Image Processing Systems Institute, Russian Academy of Sciences, Samara 443001, Russia
2S.P. Korolyov Samara State Aerospace University, Samara 443086, Russia
Received 11 April 2012; Accepted 7 June 2012
Academic Editor: Augusto Belendez
Copyright © 2012 N. L. Kazanskiy and P. G. Serafimovich. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
Design and analysis of complex nanophotonic and nanoelectronic structures require significant computing resources. Cloud computing infrastructure allows distributed parallel applications to achieve greater scalability and fault tolerance. The problems of effective use of high-performance computing systems for modeling and simulation of subwavelength diffraction gratings are considered. Rigorous coupled-wave analysis (RCWA) is adapted to cloud computing environment. In order to accomplish this, data flow of the RCWA is analyzed and CPU-intensive operations are converted to data-intensive operations. The generated data sets are structured in accordance with the requirements of MapReduce technology.
In recent years there has been a steady increase in the research and development activity in the nanoscale fabrication area. Optical methods are widely used to characterize nanoelectronic and optimize nanophotonic structures [1–4]. When the characteristic size of the nanostructure is comparable to the wavelength of the used light, the conventional scalar diffraction methods become inadequate. Therefore, rigorous Maxwell’s electromagnetic theory should be adopted to analyze such structures. With the advances of computer technology, many numerical techniques have been developed to rigorously solve the diffraction problem.
Rigorous-coupled wave analysis (RCWA) [5–10] has been frequently used to solve the problem of electromagnetic wave diffraction by periodic structures. Solving optimization and scatterometry problems may require millions of diffraction pattern evaluations for each possible combination of geometric structure and incident light parameters. Computational cost estimate shows that these problems would clearly call for supercomputing capacity.
Thus, current computational tasks of nanostructure analysis generate ever-higher demands on the methods used for parallel computing and data storage [11, 12]. The developed applications should work efficiently on multicore and multiprocessor systems. An implementation of MPI (message passing interface) is the traditional means of creating such applications . MPI provides a highly flexible ability to develop applications that address specific requirements of the algorithm structure and the used computing infrastructure. However, this ability makes it necessary for developers to implement some of the low-level services.
Compared with MPI, MapReduce programming paradigm for cloud computing  provides higher level of abstraction for the developer of parallel applications. On the one hand, MapReduce imposes certain restrictions on data format and the flexibility of the algorithm used. On the other hand, MapReduce offers a simple programming model, automatic parallelization and distribution, fault tolerance, I/O scheduling, and monitoring tools.
In the following we consider how RCWA can be implemented to utilize MapReduce technology. The RCWA relies heavily on the computation of eigenvalues of an intermediate matrix and the solution of a corresponding linear system. To reduce the compute time and enhance fault tolerance, we build a distributed, dynamically growing look-up table containing the precomputed eigenvalues and eigenvectors for the set of lamellar layers that approximate the analyzed nanostructure. The look-up table resides in a specialized distributed file system.
The paper is organized as follows. Section 2 describes the main features of MapReduce framework implementation for cloud computing. Section 3 outlines the algorithm and data flow of RCWA. Section 4 reports the adaptation of RCWA for MapReduce technology. Section 5 describes some performance tests for the suggested algorithm on the Hadoop cluster [14, 15]. Conclusions are given in the final section.
2. Main Features of MapReduce Technology
MapReduce is based on the old approach of splitting a task into subtasks, executing them in parallel, and merging the intermediate results to obtain the final one [16–18]. However, the MapReduce implementations of this scheme provide effective means for controlling resource utilization in large-scale distributed systems.
The processing of large data sets (more than hundreds of gigabytes) is a challenge for the traditional high performance computing (HPC) attitude. In comparison to CPU-intensive tasks, the data-intensive tasks require demanding rate of access to the used storage system. The bottleneck of HPC for these problems is the shared file system network bandwidth. Hence, a large number of computing nodes would remain idle and wait for the data. Because of this, the load balancing and data locality become important to efficiently handle.
MapReduce framework provides load balancing of computing nodes by organizing the “master-workers” architecture. The master node is responsible for the assignment of computing tasks to worker nodes every time a worker node becomes idle.
For a large data set it is crucial to ensure the closeness of data and computation to reduce data transfer between nodes. Thus, the input data should already be stored locally on the corresponding computing nodes. MapReduce achieves this by using a specialized distributed file system. This file system divides each file into blocks with size of about several tenths of megabytes and stores several copies of each block on different nodes. This data replication in the most cases allows the master node to assign computing tasks to a worker that stores corresponding input data.
The next problem of traditional HPC is the difficulty in handling partial failure of computing nodes. In large clusters of thousands of computing nodes it is necessary to permanently deal with crashes. In MapReduce, the master node pings every worker periodically to recognize possible failures of individual nodes. Thus, master detects a failed computing task and reschedules it to another worker which owns a replica of the input data block.
The two-stage processing scheme of MapReduce is depicted in Figure 1. The first and second stages correspond, respectively, to Map() and Reduce() functions. Both functions need to be implemented by the developer of distributed application. Key/value pairs form the required processing data structure. Every input key/value pair is processed by the Map() to produce a set of intermediate key/value pairs. The Reduce() takes all values associated with the same intermediate key as input and generates a set of final key/value pairs. Thus, it is sufficient to implement the two functions to obtain a usable-distributed application.
To reduce the network traffic between nodes MapReduce supports the use of auxiliary Combine() function which is similar to Reduce(). Combine() processes the output of the Map() on each node of the cluster separately to prepare the intermediate results to subsequent shuffling over a network to the Reduce() nodes.
The shuffling of the intermediate results is based on dividing up the set of intermediate keys and assigning intermediate key/value pairs to Reduce() nodes. The goal is to assign approximately the same number of keys to each Reduce() node.
3. Overview of RCWA
The general grating diffraction problem is illustrated in Figure 2. It is convenient to separate the space into three regions: two homogeneous semi-infinite regions above and below the grating, and an inhomogeneous region which includes the relative permittivity periodic modulation of the analyzed nanostructure. A linearly polarized plane electromagnetic wave of wavelength is obliquely incident at an arbitrary polar angle and at an azimuthal angle upon a two-dimensional, possibly multilevel or surface relief, dielectric or metal grating. The normalized electric-field vector that corresponds to this plane wave is a solution of Maxwell’s equations in an infinite homogeneous region . The variable is the angle between the polarization vector and the plane of incidence.
RCWA was formulated for both principal plane and conical incidence . The problem of the slow convergence of the solution when a conducting grating is illuminated with a transverse magnetic (TM) polarized wave has been subsequently resolved .
RCWA involves several steps. As shown in Figure 3(a), the grating is sliced into a set of two-dimensional layers and each layer is approximated by a rectangular slab. The periodic permittivity distribution in each slab of the grating region is expanded into the Fourier series.
The field in the grating region can be also expressed as Fourier expansion through application of the Floquet condition. Substituting these expansions into the Maxwell equations, we can derive a set of first-order coupled wave equations. Its homogeneous solution can be obtained by solving the eigenvalue and eigenvector of the matrix that corresponds to this set of wave equations. The size of the matrix is equal to for conical incidence, where is the number of positive-observed diffraction orders for each of the coordinates and . The electromagnetic field above and below the grating region can be expressed using linear superposition of plane waves in the direction of various orders of grating diffraction. In the final step, this representation is used as the boundary conditions to determine the specific solution of the diffraction efficiency.
Accuracy of RCWA is related to the number of diffraction orders that are included in the superposition. In general, the greater number of observed diffraction orders the higher accuracy. However, it is necessary to control the systematic computational error when a large number of observed diffraction orders is selected.
4. Mapping RCWA to the MapReduce Scheme
We consider the technique of using the RCWA for optical simulation or optimization of the nanostructures. As an example of such structure, we take a two-dimensional diffraction grating. The grating period consists of a truncated cone, and its central cross section is shown in Figure 3(a). The gray rectangle in Figure 3(a) shows the set of the possible (evaluated) geometric parameters. The slope of the truncated cone lies inside this rectangle. The parameter determines the number of vertically homogenous layers that approximate the slope in RCWA. We have the number of these layers fixed and equal to .
As mentioned in the preceding section, eigenvalues and eigenvectors of the corresponding matrix are calculated for each vertically homogeneous layer. The calculated eigenvalues and eigenvectors do not depend on the thickness of a homogeneous layer. Without saving the intermediate results, this time-consuming task would be repeated many times. The sawtooth step function in Figure 3(b) shows the dependence of number of eigenvalues and eigenvectors calculations without storing the intermediate information on sets of radius variation. The parameter in the Figure 3(b) is assumed to be equal to 7 and parameter is equal to 8. Note that the number of eigenvalues and eigenvectors calculations is equal to when the intermediate information is stored.
Such storage of the intermediate information converts the CPU-intensive problem into a data-intensive one. We estimate the amount of memory needed to store the calculated eigenproblem data.
The structure and number of input parameters for the task of optical modeling of nanostructures depends in particular on the simulation purposes and the geometry of the structure. Thus, we can distinguish two main groups of input parameters. The first group determines the illumination conditions of the simulation. The second group consists of the geometric parameters of the nanostructure and its variations.
We estimate the possible number of input parameters for the task of modeling the nanostructure as shown in Figure 3(a). We start with the group of geometrical parameters. Let the number of possible values of the truncated cone radius be . Suppose that a variation of the structure period is also allowed. The number of possible values of the structure period is equal to 10. Let us now consider the group of the illumination conditions parameters. Suppose that in our case this group contains two parameters. First, it is the meridional angle of incidence. Second, it is the azimuth angle of incidence. For each of these two parameters, we set the number of possible variations to 30. Thus, the number of eigenproblems to solve is equal to the product of the number of variations of the aforesaid four parameters, that is, ~106.
Having computed the parameters number, we now evaluate the size of the stored intermediate data. This value depends on the number of observed diffraction orders. Next we assume that the calculations are done with long-double precision (16 bytes).
Figure 4(a) shows the dependence of the size of the eigenvectors matrix on the number of observed diffraction orders. Figure 4(b) shows the total amount of the stored intermediate data for the different number of the observed diffraction orders and the parameters numbers. The figure shows that the amount of data may exceed 1 TB. Thus, our task can be classified as a data-intensive problem. To reduce the size of the stored intermediate data some compression procedure can be used. However, this in turn implies that there is a corresponding computational overhead.
We will now consider how RCWA can be mapped into MapReduce scheme. The structure of stored data for MapReduce technology is defined by a pair of “key/value”. Here the “key” consists of two sets. First, it is the set of geometric parameters that define one of the layers which is homogeneous in the vertical direction. Second, it is the set of parameters that defines the illumination conditions of the simulation. The following relation is an example of such “key”: where are the periods of two-dimensional structure, are the number of material sections on the period, are the size of material sections on the period, and are the index of refraction of these material sections. The last three parameters in the “key”——describe the lighting conditions. Notice that the thickness of the layer is absent in the above list.
The “value” contains the calculated eigenvalues and eigenvectors for one layer:
The look-up table resides in the distributed file system mentioned in Section 2. By combining with MapReduce, the distributed file system allows providing efficient load balancing, data locality, and faulting tolerance to the whole computing system.
Figure 5 shows the flowchart of RCWA method in terms of MapReduce technology. The Map() function receives as input the key that describes the analyzed nanostructure. This key consists of a set of keys that defines the layers of the structure, as well as the array that describes the thicknesses of these layers:
The Map() looks for the intermediate data in the look-up table with the given key . Thus, the outputs of the Map() function are pairs of . Each structure is associated with the list of the eigenproblem solutions for the array of layers. This list of the eigenproblem solutions may contain null values, in the case where the necessary information is not yet in the look-up table.
The pairs of are the input parameters of the Reduce(). This function calculates the missing intermediate data, stores them in the look-up table, then generates the system of linear equations and solves it.
In this paper, we assume that the output parameters of the Reduce() are the diffraction efficiency of observed diffraction orders. However, the same approach is valid for other output parameters, for example, electromagnetic field distribution in the socalled near field . Thus, in our case where are the diffraction efficiency of observed diffraction orders, respectively, for reflection and transmission.
5. The Results of Computational Experiments on Hadoop Cluster
Computational experiments are performed on a relatively small Hadoop cluster consisting of four nodes. Each node in the cluster contains a CPU Intel Xeon 2.13 GHz and 4 GB RAM.
Namenode-server is run on one node, and jobtracker-server is run on another node. The remaining two cluster nodes are used as working nodes. Two mappers and two reducers can be run simultaneously on each of the working nodes, which correspond to the parameters that are set by default. Other parameters of Hadoop cluster are also set by default.
The experiment measures the parallel read/write average throughput for the HDFS file system. The parallel read average throughput is equal to and the parallel write average throughput is equal to . It is not our goal in this work to enhance and values by optimizing the default parameters of Hadoop cluster. Therefore, the above values and are assumed to be fixed.
We will now assess the feasibility of the proposed scheme of RCWA implementation. The standard and the proposed algorithms are different only at the eigenvectors calculation step. We compare the time of eigenvectors calculation for the standard RCWA algorithm (without saving the intermediate results) with the time of eigenvectors calculation for the proposed algorithm (with saving the intermediate results). The main share of the RCWA computational time is contributed by the eigenvectors calculation. The eigenvectors are calculated for each layer of the modeled nanostructure.
Java programming language is the most appropriate for the implementation of a flexible application within the Hadoop package. Therefore, the algorithm for finding the eigenvectors of a complex general matrix was implemented with Java.
Figure 6 shows the dependence of the time (in seconds) of eigenvectors calculation on value for Java implementation and Intel MKL implementation. value denotes the number of the positive diffraction orders for one coordinate. Here we assume that value is the same for each coordinate.
The left -axis on the graph shown in the Figure 6, corresponds to the results of Java application. The right -axis of this graph shows the same results for Intel MKL implementation.
We define the following parameters: —upload file size (MB), which is processed by one mapper; —the “useful” share of the uploaded file, which is used by mapper to find the eigenvectors (normalized value); —the average number of uses of one matrix from the uploaded file; —the size of the matrix (MB), which contains the computed eigenvectors for one layer of the modeled nanostructure; —the time for computing the eigenvectors of the matrix for one layer of the structure (); —the total number of layers in structures that are processed by one mapper.
Then the condition for the feasibility of the proposed RCWA algorithm can be written as follows: the total computational time that one mapper spends () should be greater than the time spent on the following steps: (1) the reading from the HDFS file with size of , (2) the calculation of the unresolved eigenvectors, and (3) the writing of the calculated eigenvectors in HDFS.
The above-described condition can be represented as a linear dependence of the value on the overall usage ratio of the uploaded file : where
In Figure 7 the cross-hatched area shows where the relation (5) is satisfied. The slope of the curve in the Figure 7 ( value) defines the rate at which the overall usage ratio should increase when value increased.
Figure 8 shows the dependence of the curve slope value on value for (a) Java implementation and (b) Intel MKL implementation.
Note that the curve slope value is very small on the Figure 8(a). Thus, to stay within the feasibility requirements, there is no much importance struggling for increasing the overall usage ratio when using the relatively slow Java implementation. Such need appears for the more effective Intel MKL implementation (Figure 8(b)). In this case, the different approaches of metadata usage can be considered.
The paper discusses the computational problems arising in modeling and optimization of complex nanophotonic structures by Fourier modes method (RCWA). The cloud computing infrastructure usage is suggested to solve these problems. This approach allows to effectively exploit the potential of modern computational tools by improving the scalability of the computational problem and by enhancing the fault tolerance of the computer system. This opens up new possibilities in solving problems of diffraction nanophotonic [20–22], magneto-optics [23, 24], and plasmonics [25, 26].
This work is supported by the program of the RAS Presidium “Problems of a national environment for distribution of scientific information and computing based on the development of GRID technology and modern telecommunications networks”, grant of Russian Federation President for Support of Leading Scientific Schools NSh-4128.2012.9 and RFBR grants nos. 10-07-00553, 11-07-00153, 11-07-12051-ofi-m-2011, and 11-07-13164-ofi-m-2011-RGD, state contract with Ministry of Education and Science no. 07.514.11.4055 at 12.10.2011, program no. 5 of basic research for Nanotechnology and Information Technology Department of RAS “Basic problems of physics and technology of epitaxial nanostructures and related devices”.
- M. A. Golub, N. L. Kazanskii, I. N. Sisakyan, and V. A. Soifer, “Computational experiment with plane optical elements,” Optoelectronics, Instrumentation, and Data Processing, no. 1, pp. 78–89, 1988 (Russian).
- N. L. Kazanskiy, Mathematical Simulation of Optical Systems, Samara State Aerospace University (SSAU), Samara, Russia, 2005.
- N. L. Kazanskiy, P. G. Serafimovich, and S. N. Khonina, “Harnessing the guided-mode resonance to design nanooptical transmission spectral filters,” Optical Memory & Neural Networks (Information Optics), vol. 19, no. 4, pp. 318–324, 2010.
- D. L. Golovashkin and N. L. Kasanskiy, “Solving diffractive optics problems using graphics processing units,” Optical Memory & Neural Networks (Information Optics), vol. 20, no. 2, pp. 85–89, 2011.
- M. G. Moharam, D. A. Pommet, E. B. Grann, and T. K. Gaylord, “Stable implementation of the rigorous coupled-wave analysis for surface-relief gratings: enhanced transmittance matrix approach,” Journal of the Optical Society of America A, vol. 12, no. 5, pp. 1077–1086, 1995.
- E. N. Gystis and T. Gaylord, “Three-dimensional (vector) rigorous coupled-wave analysis of anisotropic grating diffraction,” Journal of the Optical Society of America A, vol. 7, no. 8, pp. 1399–1419, 1990.
- P. Lalanne and G. M. Morris, “Highly improved convergence of the coupled-wave method for TM polarization,” Journal of the Optical Society of America A, vol. 13, no. 4, pp. 779–784, 1996.
- L. Li, “Use of Fourier series in the analysis of discontinuous periodic structures,” Journal of the Optical Society of America A, vol. 13, no. 9, pp. 1870–1876, 1996.
- E. A. Bezus, L. L. Doskolovich, and N. L. Kazanskiy, “Evanescent-wave interferometric nanoscale photolithography using guided-mode resonant gratings,” Microelectronic Engineering, vol. 88, no. 2, pp. 170–174, 2011.
- E. A. Bezus, L. L. Doskolovich, and N. L. Kazanskiy, “Scattering suppression in plasmonic optics using a simple two-layer dielectric structure,” Applied Physics Letters, vol. 98, no. 22, Article ID 221108, 3 pages, 2011.
- M. Armbrust, A. Fox, R. Griffith et al., “A view of cloud computing,” Communications of the ACM, vol. 53, no. 4, pp. 50–58, 2010.
- S. G. Volotovskiy, N. L. Kazanskiy, P. G. Seraphimovich, and S. I. Kharitonov, “Distributed software for parallel calculation of diffractive optical elements on web-server and cluster,” in Proceedings of the IASTED International Conference on Automation, Control, and Information Technology (ACIT '02), pp. 69–73, ACTA Press, 2002.
- M. Snir, S. Otto, S. Huss-Lederman, D. Walker, and J. Dongarra, MPI-The Complete Reference. The MPI Core, vol. 1 of The MPI Core, The MIT Press, Cambridge, Mass, USA, 1998.
- J. Dean and S. Ghemawat, “MapReduce: a flexible data processing tool,” Communications of the ACM, vol. 53, no. 1, pp. 72–77, 2010.
- J. Venner, Pro Hadoop, Springer, 2009.
- V. V. Voevodin, “Mapping computational problems in computer architecture,” Computational Methods and Programming, vol. 1, no. 2, pp. 37–44, 2000 (Russian).
- S. B. Popov, “Modeling the task information structure in parallel image processing,” Computer Optics, vol. 34, no. 2, pp. 231–242, 2010 (Russian).
- V. A. Soifer, Ed., Computer Image Processing, Part I: Basic Concepts and Theory, VDM Verlag Dr. Mueller e.K., 2009.
- M. Born and E. Wolf, Principles of Optics, Pergamon Press, Oxford, UK, 1980.
- V. A. Soifer, “Nanophotonics and diffractive optics,” Computer Optics, vol. 32, no. 2, pp. 110–118, 2008 (Russian).
- V. A. Soifer, V. V. Kotlyar, and L. L. Doskolovich, “Diffractive optical elements in nanophotonic devices,” Computer Optics, vol. 33, no. 4, pp. 352–368, 2009 (Russian).
- N. L. Kazanskiy, P. G. Serafimovich, S. B. Popov, and S. N. Khonina, “Using guided-mode resonance to design nano-optical spectral transmission filters,” Computer Optics, vol. 34, no. 2, pp. 162–168, 2010 (Russian).
- V. I. Belotelov, L. L. Doskolovich, and A. K. Zvezdin, “Extraordinary magneto-optical effects and transmission through metal-dielectric plasmonic systems,” Physical Review Letters, vol. 98, no. 7, Article ID 077401, 4 pages, 2007.
- D. A. Bykov, L. L. Doskolovich, V. A. Soifer, and N. L. Kazanskiy, “Extraordinary magneto-optical effect of a change in the phase of diffraction orders in dielectric diffraction gratings,” Journal of Experimental and Theoretical Physics, vol. 111, no. 6, pp. 967–974, 2010 (Russian).
- E. A. Bezus, L. L. Doskolovich, N. L. Kazanskiy et al., “The design of the diffractive optical elements to focus surface plasmons,” Computer Optics, vol. 33, no. 2, pp. 185–192, 2009 (Russian).
- E. A. Bezus, L. L. Doskolovich, N. L. Kazanskiy, V. A. Soifer, and S. I. Kharitonov, “Design of diffractive lenses for focusing surface plasmons,” Journal of Optics, vol. 12, no. 1, Article ID 015001, 7 pages, 2010.