Data aggregation and distribution method in metro line network command system

By designing a data aggregation and distribution method for the management network domain and the production network domain in the subway line network command system, and using a proxy server for data transmission, the security risks and risks of the production network domain facing multiple application requirements in the existing technology are solved. System failure problem has been solved, the expansion of system functions and the service requirements of multiple applications have been realized, and the stability and flexibility of the system have been improved.

CN118573697APending Publication Date: 2024-08-30卡斯柯信号(成都)有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410579860.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-11
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

The existing subway line network command system only deploys one production network domain, which leads to the risk of security risks and system failures when facing the needs of multiple application manufacturers, affecting the operation of the production network domain system.

Method used

Design a management network domain downstream of the production network domain, transmit signal data to the management network domain through data aggregation technology, and provide services to external application manufacturers through data distribution technology in the management network domain. Use a proxy server for data transmission to ensure network and data Safety.

Benefits of technology

On the basis of ensuring the safe and stable operation of the production network domain system, the system functions are expanded, providing efficient and convenient real-time monitoring functions, meeting the needs of multiple applications, and improving the flexibility and scalability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118573697A
    Figure CN118573697A
Patent Text Reader

Abstract

The invention discloses a data aggregation and distribution method in a subway network command system, which relates to the technical field of rail transit signal systems and comprises the following steps: S1, a production proxy server and a management proxy server respectively read respective configuration files and obtain respective software configuration parameters; s2, in a production network domain, a production proxy server is used as a client to establish network connection with a plurality of interface machines, receives signal data of the interface machines in real time, gathers the signal data of the interface machines, and sends all the signal data to a gatekeeper through data ferry; and S3, in the management network domain, the management proxy server serves as a server to establish network connection with a plurality of application terminals, receives all signal data from the gatekeeper, and then distributes the signal data to the plurality of application terminals in real time. A production proxy server is additionally arranged in a production network domain of the subway line network command system, and the system function is expanded on the basis of not influencing the production environment on the premise of ensuring the network security and the data security of the production network domain.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of rail transit signal systems, and more specifically to a method for realizing data aggregation and distribution in a production domain and a management domain in a subway line network command system. Background Art

[0002] The existing subway line network command system (COCC for short) is deployed and implemented in only one network domain, namely the production domain, in which the interface server, application server, workstation, large screen and other software of the subway line network command system are deployed to display and apply the subway line network command system.

[0003] If other application manufacturers need signal data from the subway network command system, they must obtain the data from the production domain and transmit it to the interface machine of other application manufacturers. As the number of manufacturers that need subway network signal data increases, the subway network command system faces the security issue of providing data to multiple application manufacturers. This will lead to hidden dangers or security issues that affect the operation of the production domain system, thereby increasing the probability of production domain system failure. Summary of the invention

[0004] In order to overcome the defects existing in the above-mentioned prior art, the present invention discloses a data aggregation and distribution method in a subway line network command system. The purpose of the present invention is to solve the problem that in the prior art, only one production domain is deployed and implemented, which has hidden dangers or safety issues that affect the operation of the production domain system and increases the probability of production domain system failure. The present invention designs and constructs a management domain downstream of the production domain. On the premise of ensuring the network security and data security of the production domain, and on the basis of not affecting the functions of the production domain system, the signal data of the subway line network command system is transferred to the management domain through data aggregation technology; in the management domain, signal data services are provided to various external application manufacturers through data distribution technology to meet the needs of extended applications.

[0005] In order to achieve the above objectives, the technical solution adopted by the present invention is: A data aggregation and distribution method in a subway line network command system includes a production network domain and a management network domain downstream of the production network domain, wherein the production network domain is provided with a production proxy server and a plurality of interface machines connected to the production network domain, and the management network domain is provided with a management proxy server and a plurality of application terminals connected to the management network domain, wherein the production proxy server and the management proxy server communicate with each other through a network gate, and the data aggregation and distribution method includes the following steps: 1. Read the configuration file Step S1, the production proxy server and the management proxy server read their respective configuration files to obtain their respective software configuration parameters; Preferably, in step S1, the software configuration parameters include: In the production domain, when the production proxy server acts as a client, the server address, port information and task name to be connected to; In the management domain, when the management proxy server is used as the server, provide the port number for data transmission, data length and task name, as well as the number of application terminals for data distribution and task configuration parameters.

[0006] 2. Production Domain Data Aggregation Step S2: In the production network domain, the production proxy server, as a client, establishes a network connection with multiple interface machines, and receives subway line network command signal data from the interface machines in real time. After aggregating the signal data from multiple interface machines, all signal data are sent to the network gate through data ferrying; Preferably, step S2 comprises the following steps: Step S21, in the production network domain, the production proxy server establishes network channels with multiple interface servers in the system in the role of a client, initializes role parameters, sets communication parameters, and establishes network connections; Step S22, the production proxy server software is started, and a service thread for communicating with multiple interface servers is created according to the configuration file, and a data aggregation thread for communicating with the network gate device is created, and a network connection is established; Step S23: The multiple interface servers send the network data to the production proxy server through the service thread. After the production proxy server processes the network data, it sends the network data to the network gate device through the data aggregation thread.

[0007] Preferably, step S22 includes the following steps: The production proxy server software is started, and according to the configuration file read in step S1, a service thread of the client role is created, and the number of service threads is equal to the number of interface servers. The service thread of the client role is created, including: initializing communication parameters, setting task names, creating message queues, and establishing network connections with fixed port numbers; The production proxy server creates a data aggregation thread for the server role, including initializing communication parameters, setting task names, establishing network connections, creating message queues, and providing data transmission at fixed port numbers; The production proxy server establishes an aggregation relationship between the business thread and the data aggregation thread message queue.

[0008] Preferably, step S23 includes the following steps: The business thread receives real-time data sent by the interface server; The business thread forwards real-time data to the data aggregation thread; The data aggregation thread forwards the data to the gatekeeper.

[0009] Preferably, in step S2, the signal data includes: information source network status message, device status overall message, device status change message, train information overall message, train information update message, train information addition message, train information deletion message, area information overall message and area information update message.

[0010] 3. Manage domain data distribution Step S3: In the management domain, the management proxy server as a server establishes a network connection with multiple application terminals, receives all signal data from the network gate, and then distributes the signal data to multiple application terminals in real time.

[0011] Preferably, step S3 comprises the following steps: Step S31, in the management domain, the management proxy server establishes network channels with each application end in the system in the role of the server, initializes role parameters, sets communication parameters, and establishes network connections; Step S32: the management proxy server software is started, and a data distribution thread for communicating with multiple application terminals is created according to the configuration file, and a data receiving thread for communicating with the network gate is created, and a network connection is established; Step S33, the network gate transfers all signal data to the management proxy server through the data receiving thread; Step S34: The management proxy server distributes all signal data to each application terminal through the data distribution thread.

[0012] Preferably, step S32 includes the following steps: The management proxy server software is started, and a data receiving thread of the client role is created according to the configuration file read in step S1, wherein the data receiving thread of the client role is created, including: initializing communication parameters, setting task names, creating message queues, and establishing network connections; The management proxy server creates the data distribution thread of the server role, including initializing communication parameters, setting task names, establishing network connections, creating message queues, and providing data transmission on fixed port numbers; The management proxy server establishes a distribution relationship between the data receiving thread and the data distributing thread message queue.

[0013] Preferably, step S33 and step S34 include the following steps: The data receiving thread receives the real-time data forwarded by the network gate; The data receiving thread forwards the real-time data to the data distribution thread; The data distribution thread forwards data to each application end.

[0014] Preferably, in step S3, the application end includes a real-time monitoring end of a subway line network command system and other application ends.

[0015] Preferably, the data aggregation and distribution method further includes: Step S4, the application sends a signal data request message to the management proxy server of the management domain, and the management proxy server then sends the signal data request message to the production proxy server of the production domain through the network switch. The production proxy server then forwards it to the corresponding interface machine according to the requested line number information to complete the signal data request.

[0016] Beneficial effects of the present invention: 1. In the present invention, a production proxy server is added to the production domain of the subway line network command system, and the system function is expanded on the premise of ensuring the network security and data security of the production domain without affecting the production environment.

[0017] 2. In the present invention, the proxy server is a common software and will not add any performance burden to the subway line network command system.

[0018] 3. In the present invention, the management network domain provides an efficient and convenient real-time monitoring function for the subway network to meet user needs.

[0019] 4. In the present invention, the management network domain can expand multiple application terminals, which not only expands the functions of the subway line network command system, but also meets the business of multiple application terminal systems.

[0020] 5. In the present invention, on the one hand, in order to ensure the safe, stable and reliable operation of the production domain system; on the other hand, in order to provide subway line network signal data services to other application manufacturers more efficiently and conveniently. Therefore, a management domain is designed and constructed downstream of the production domain. In order to solve the problem of how to more efficiently and conveniently transmit the subway line network signal data in the production domain to the management domain, the present invention proposes a method for implementing data aggregation and distribution, that is, to provide a proxy server to aggregate the signal data of all lines in the production domain, and then distribute it to various application manufacturers in the management domain, thereby meeting the application manufacturers' demand for subway line network signal data.

[0021] 6. The proxy server of the present invention should have both data aggregation and data distribution functions. In the production domain, the data aggregation function is enabled, and in the management domain, the data distribution function is enabled. Data is transferred between the production domain and the management domain through the network gate device. The proxy server identifies whether it is in the production domain or the management domain through the configuration flag and enables the corresponding function.

[0022] 7. Through the method of the present invention, it can not only meet the application needs of multiple application manufacturers for subway line network signal data, but also ensure that the production domain system is not disturbed, the system continues to operate safely and stably, and it can also flexibly expand the external data interface to provide subway line network signal data services to more manufacturers, thereby enhancing the vitality of the subway line network command system. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 This is a structural diagram of data aggregation and data distribution in the subway network command system of the present invention; Figure 2 This is a startup flow chart of the proxy server of the present invention deployed in a production network domain; Figure 3 This is a timing diagram of the proxy server interaction in the subway line network command system of the present invention. DETAILED DESCRIPTION

[0024] The concept, specific structure and technical effects of the present invention will be clearly and completely described below in conjunction with the embodiments and drawings to fully understand the purpose, characteristics and effects of the present invention.

[0025] Example 1 A data aggregation and distribution method in a subway line network command system, such as Figure 1 As shown, it includes a production network domain and a management network domain downstream of the production network domain, wherein the production network domain is provided with a production proxy server and several interface machines connected to the production network domain, and the management network domain is provided with a management proxy server and several application terminals connected to the management network domain, wherein the production proxy server and the management proxy server communicate with each other through a network gate, and the data aggregation and distribution method includes the following steps: Step S1, the production proxy server and the management proxy server read their respective configuration files to obtain their respective software configuration parameters; Step S2: In the production network domain, the production proxy server, as a client, establishes a network connection with multiple interface machines, and receives subway line network command signal data from the interface machines in real time. After aggregating the signal data from multiple interface machines, all signal data are sent to the network gate through data ferrying; Step S3: In the management domain, the management proxy server as a server establishes a network connection with multiple application terminals, receives all signal data from the network gate, and then distributes the signal data to multiple application terminals in real time.

[0026] Example 2 This embodiment further elaborates on step S1 based on embodiment 1. In step S1, the proxy server Proxy_Server reads the configuration file to obtain respective software configuration parameters, wherein the software configuration parameters include: when the Proxy_Server acts as a client, the server address, port information and task name to be connected to; when the Proxy_Server acts as a server, the port number, data length and task name for data transmission, as well as the number of application terminals for data distribution and task configuration parameters are provided.

[0027] Example 3 This embodiment further describes step S2 based on embodiment 2. Step S2 includes the following steps: Step S21, in the production network domain, the Proxy_Server establishes network channels with multiple interface servers in the system as a "client", initializes role parameters, sets communication parameters, and establishes network connections; Step S22, the Proxy_Server software is started, and a service thread for communicating with multiple interface servers is created according to the configuration file, and a data aggregation thread for communicating with the network gate device is created, and a network connection is established; Step S23: After establishing a connection with the interface server and receiving network data, process the network data and send it to the data aggregation thread.

[0028] In this embodiment, step S22 includes the following steps: Step S221, the Proxy_Server software starts, and creates a service thread of the "client" role according to the configuration file loaded in step S1. The number of service threads is equal to the number of interface servers, including initializing communication parameters, setting task names, creating message queues, and establishing network connections with fixed port numbers; Step S222, creating a data aggregation thread of the "server" role, including initializing communication parameters, setting task names, establishing network connections, creating message queues, and providing data transmission at fixed port numbers; Step S223: Establish an aggregation relationship between the business thread and the data aggregation thread message queue.

[0029] In this embodiment, step S23 includes the following steps: Step S231, the service thread receives real-time data sent by the interface server; Step S232: The business thread forwards the real-time data to the data aggregation thread; Step S233: The data aggregation thread forwards the data to the network gate.

[0030] Example 4 This embodiment further describes step S3 based on embodiment 3. Step S3 includes the following steps: Step S31, in the management domain, Proxy_Server establishes network channels with each application end in the system as a "server end", initializes role parameters, sets communication parameters, and establishes network connections; Step S32, the Proxy_Server software is started, and according to the configuration file, a data distribution thread for communicating with multiple application terminals is created, and a data receiving thread for communicating with the network gate is created, and a network connection is established; Step S33, the network gate transfers all signal data to the management domain; Step S34: In the management network domain, all signal data are distributed to each application terminal. The subway line network command system can also process data requests from the application terminal.

[0031] In this embodiment, step S32 includes the following steps: Step S321, the Proxy_Server software starts, and creates a data receiving thread of the "client" role according to the configuration file loaded in step S1, including initializing communication parameters, setting task names, creating message queues, and establishing network connections; Step S322, creating a data distribution thread of the "server" role, including initializing communication parameters, setting task names, establishing network connections, creating message queues, and providing data transmission at fixed port numbers; Step S323: Establish a distribution relationship between the data receiving thread and the data distribution thread message queue.

[0032] In this embodiment, step S33 and step S34 include the following steps: The data receiving thread receives the real-time data forwarded by the network gate; The data receiving thread forwards the real-time data to the data distribution thread; The data distribution thread forwards data to each application end.

[0033] In step S3, the application end includes a real-time monitoring end of a subway line network command system and other application ends.

[0034] Example 5 The present invention is a subway line network command system that expands system functions and provides signal data services for multiple application terminals under the premise of ensuring production network security, data security and stable system operation. Therefore, a proxy server is used in the system to achieve data aggregation and data distribution.

[0035] This technology realizes data aggregation in the production domain and data distribution in the management domain. In the management domain, it can not only realize real-time monitoring of the subway line network command system, but also distribute signal data to multiple application terminals.

[0036] like Figure 1 As shown in the figure, in the production network domain, the proxy server Proxy_Server, as a "client", establishes a network connection with multiple interface machines Cfep, receives the signal data of Cfep in real time, aggregates the signal data of multiple Cfeps, and then sends all the signal data to the network gate through data ferrying. The main implementation code is as follows: while(uTotalLen <uLen) { if(proxy_mode==1) / / Production domain: when data is aggregated, send it directly to the only server queue { int rc = NetIn_QueOut(pSendBuff,uSendLen, m_OccRealtimeQueue); } uTotalLen += uTmpLen + 2; } like Figure 1 As shown in the figure, in the management domain, the proxy server Proxy_Server acts as a "server" to receive all signal data from the network gate and distributes the data to multiple application terminals in real time, including the real-time monitoring of the subway line network command system and other application terminals. The main implementation code is as follows: void ExtClientTask::findServerQueueHandleByLineID(BYTE* pTemp,USHORTnLen) { MESSAGE_LOAD_DEVICE_STATUS_STRUCT_SH *pMsgHead2 = reinterpret_cast<MESSAGE_LOAD_DEVICE_STATUS_STRUCT_SH*> (pTemp); pMsgHead2->ntoh(); int line_id = pMsgHead2->line_id; pMsgHead2->hton(); / / Management domain: when distributing data, send it to each client queue for (int j=0; j<=extend_fep_numbers; j++) { for(int i=0;i <server_info_list.size();i++) { if ( line_id == (server_info_list[i].line-fep_line_interval*j) ) { HQUE que = server_info_list[i].queue; if(que!=-1) { int rc = NetIn_QueOut(pTemp,nLen, que); } break; } } } } The communication between the proxy server Proxy_Server and the interface machine Cfep is implemented by the ClinetTask thread. The process is referenced Figure 2 The specific process is as follows: 1. When the Proxy_Server software starts, it reads the configuration file and loads the software configuration parameters. It creates the data aggregation thread ServerTask and multiple ClientTask threads according to the configuration, establishes a network connection, and prepares the communication environment. 2. The ClientTask thread continuously reads the message queue in turn, reads the signal data of all lines, and sends it to the data aggregation thread. The signal data mainly includes: information source network status message, device status overall message, device status change message, train information overall message, train information update message, train information addition message, train information deletion message, area information overall message and area information update message. The main implementation code is as follows: int CNetCommBase::ProcessNetMsg() { / / Pan-training to read message queue data and perform aggregation processing do { iReVal = OsReadSocket(m_SocketId, RcvBuffer, RcvLen,&RcvLen, SOCKET_NOWAIT); if (iReVal == RET_SUCCESS) { AnalyseNetMsg(RcvBuffer, RcvLen); } }while(1); return iReVal; } 3. The data aggregation thread sends all signal data to the network gate, which then transfers the data to the management domain; 4. In the management domain, Proxy_Server not only distributes signal data to the real-time monitoring terminal of the subway line network command system, but also distributes data to other application terminals that have established connections. The process is referenced Figure 3 shown.

[0037] 5. The monitoring end or other application end of the subway line network command system can also send a signal data request message to the Proxy_Server of the management domain; 6. After receiving the signal data request message, the proxy server Proxy_Server in the production domain forwards it to the corresponding interface machine Cfep according to the requested line number information to complete the signal data request.

[0038] The above is a specific description of the implementation mode of the present invention, but the present invention is not limited to the described embodiments. Those skilled in the art may make various equivalent modifications or substitutions without violating the spirit of the present invention, and these equivalents or substitutions are all included in the scope defined by the claims of the present invention.

Claims

1. A data aggregation and distribution method in a subway network command system, characterized in that: The method comprises a production network domain and a management network domain downstream of the production network domain, wherein the production network domain is provided with a production proxy server and several interface machines connected to the production network domain, and the management network domain is provided with a management proxy server and several application terminals connected to the management network domain, wherein the production proxy server and the management proxy server communicate with each other through a network gate, and the data aggregation and distribution method comprises the following steps: Step S1, the production proxy server and the management proxy server read their respective configuration files to obtain their respective software configuration parameters; Step S2: In the production network domain, the production proxy server, as a client, establishes a network connection with multiple interface machines, and receives subway line network command signal data from the interface machines in real time. After aggregating the signal data from multiple interface machines, all signal data are sent to the network gate through data ferrying; Step S3: In the management domain, the management proxy server as a server establishes a network connection with multiple application terminals, receives all signal data from the network gate, and then distributes the signal data to multiple application terminals in real time.

2. The data aggregation and distribution method according to claim 1, characterized in that: In step S1, the software configuration parameters include: In the production domain, when the production proxy server acts as a client, the server address, port information and task name to be connected to; In the management domain, when the management proxy server is used as the server, provide the port number for data transmission, data length and task name, as well as the number of application terminals for data distribution and task configuration parameters.

3. The data aggregation and distribution method according to claim 1, characterized in that: Step S2 includes the following steps: Step S21, in the production network domain, the production proxy server establishes network channels with multiple interface servers in the system in the role of a client, initializes role parameters, sets communication parameters, and establishes network connections; Step S22, the production proxy server software is started, and a service thread for communicating with multiple interface servers is created according to the configuration file, and a data aggregation thread for communicating with the network gate device is created, and a network connection is established; Step S23: The multiple interface servers send the network data to the production proxy server through the service thread. After the production proxy server processes the network data, it sends the network data to the network gate device through the data aggregation thread.

4. The data aggregation and distribution method according to claim 3, characterized in that: Step S22 includes the following steps: The production proxy server software is started, and according to the configuration file read in step S1, a service thread of the client role is created, and the number of service threads is equal to the number of interface servers. The service thread of the client role is created, including: initializing communication parameters, setting task names, creating message queues, and establishing network connections with fixed port numbers; The production proxy server creates a data aggregation thread for the server role, including initializing communication parameters, setting task names, establishing network connections, creating message queues, and providing data transmission at fixed port numbers; The production proxy server establishes an aggregation relationship between the business thread and the data aggregation thread message queue.

5. The data aggregation and distribution method according to claim 3, characterized in that: Step S23 includes the following steps: The business thread receives real-time data sent by the interface server; The business thread forwards real-time data to the data aggregation thread; The data aggregation thread forwards the data to the gatekeeper.

6. The data aggregation and distribution method according to claim 1, characterized in that: In step S2, the signal data includes: information source network status message, device status overall message, device status change message, train information overall message, train information update message, train information addition message, train information deletion message, area information overall message and area information update message.

7. The data aggregation and distribution method according to claim 1, characterized in that: Step S3 includes the following steps: Step S31, in the management domain, the management proxy server establishes network channels with each application end in the system in the role of the server, initializes role parameters, sets communication parameters, and establishes network connections; Step S32: the management proxy server software is started, and a data distribution thread for communicating with multiple application terminals is created according to the configuration file, and a data receiving thread for communicating with the network gate is created, and a network connection is established; Step S33, the network gate transfers all signal data to the management proxy server through the data receiving thread; Step S34: The management proxy server distributes all signal data to each application terminal through the data distribution thread.

8. The data aggregation and distribution method according to claim 7, characterized in that: Step S32 includes the following steps: The management proxy server software is started, and a data receiving thread of the client role is created according to the configuration file read in step S1, wherein the data receiving thread of the client role is created, including: initializing communication parameters, setting task names, creating message queues, and establishing network connections; The management proxy server creates the data distribution thread of the server role, including initializing communication parameters, setting task names, establishing network connections, creating message queues, and providing data transmission on fixed port numbers; The management proxy server establishes a distribution relationship between the data receiving thread and the data distribution thread message queue; Step S33 and step S34 include the following steps: The data receiving thread receives the real-time data forwarded by the network gate; The data receiving thread forwards the real-time data to the data distribution thread; The data distribution thread forwards data to each application end.

9. The data aggregation and distribution method according to claim 1, characterized in that: In step S3, the application end includes a real-time monitoring end of a subway line network command system and other application ends.

10. The data aggregation and distribution method according to claim 1, characterized in that: The data aggregation and distribution method further includes: Step S4, the application sends a signal data request message to the management proxy server of the management domain, and the management proxy server then sends the signal data request message to the production proxy server of the production domain through the network switch. The production proxy server then forwards it to the corresponding interface machine according to the requested line number information to complete the signal data request.