CN108270876A - The implementation method of proxy server in a kind of signal system - Google Patents

The implementation method of proxy server in a kind of signal system Download PDF

Info

Publication number
CN108270876A
CN108270876A CN201810287011.0A CN201810287011A CN108270876A CN 108270876 A CN108270876 A CN 108270876A CN 201810287011 A CN201810287011 A CN 201810287011A CN 108270876 A CN108270876 A CN 108270876A
Authority
CN
China
Prior art keywords
message
terminal
application server
proxy server
train number
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810287011.0A
Other languages
Chinese (zh)
Other versions
CN108270876B (en
Inventor
魏宁
钱江
周公建
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Casco Signal Ltd
Original Assignee
Casco Signal Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Casco Signal Ltd filed Critical Casco Signal Ltd
Priority to CN201810287011.0A priority Critical patent/CN108270876B/en
Publication of CN108270876A publication Critical patent/CN108270876A/en
Application granted granted Critical
Publication of CN108270876B publication Critical patent/CN108270876B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/562Brokering proxy services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • H04L67/5682Policies or rules for updating, deleting or replacing the stored data

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Computer And Data Communications (AREA)
  • Train Traffic Observation, Control, And Security (AREA)

Abstract

The present invention relates to a kind of implementation methods of proxy server in signal system, include the following steps:Step S1, configuration file is read;Step S2, the network event being connect with application server is registered into message queue;Step S3, the management thread of connectable terminal is created according to configuration file;Step S4, after connection generation network event is established with application server, the network event is responded, current whole station field display data is sent a request for application server;Step S5, using unique positioning method preservation train number window object is indexed, yard device status data is preserved using hierarchical approaches;Step S6, when thering is terminal to establish connection with proxy server and sending request, its request message is handled, completes the forwarding of yard display data.Compared with prior art, the present invention under the pressure condition for not increasing application server, increases the terminal number that can check all fronts yard interface on the basis of existing system is not influenced.

Description

The implementation method of proxy server in a kind of signal system
Technical field
The present invention relates to a kind of railway signal system, more particularly, to a kind of realization side of proxy server in signal system Method.
Background technology
For having opened the subway line of operation for many years, the signal system used is substantially more stable, ungreat In the case of change, user will not generally agree to upgrade entire signal system.But with the opening of extended line, run train number Increase etc., and have new demand and occur.For example, needs can more check the terminal at all fronts yard interface.But In general, the terminal number that the application server in ATS systems can connect is conditional.For some early versions ATS systems, application server connectable terminal number can not meet the needs of system extension only less than 20.
Invention content
It is an object of the present invention to overcome the above-mentioned drawbacks of the prior art and provide generations in a kind of signal system The implementation method of server is managed, on the basis of existing system is not influenced, under the pressure condition for not increasing application server, is increased It can check the terminal number at all fronts yard interfaces.
The purpose of the present invention can be achieved through the following technical solutions:
The implementation method of proxy server, includes the following steps in a kind of signal system:
Step S1, configuration file is read, obtains system configuration parameter;
Step S2, connection is established with the application server in the role and system of " terminal ", and is registered into message queue The network event being connect with application server;
Step S3, started with the role of " application server ", the management thread of connectable terminal is created according to configuration file;
Step S4, after connection generation network event is established with application server, the network event is responded, is taken to application Business device sends a request for current whole station field display data;
Step S5, using unique positioning method preservation train number window object is indexed, yard equipment shape is preserved using hierarchical approaches State data;
Step S6, when thering is terminal to establish connection with proxy server and sending request, its request message is handled, completes station The forwarding of field display data.
Preferably, the system configuration parameter includes:GPC number being connect with proxy server, the configuration ginseng of each GPC Number, proxy server connect the node name used and message queue title with application server.
Preferably, the logic of the management thread in the step S3 is:Proxy server and application are created according to configuration The bottom communication of server creates simultaneously registration message queue, registered network event;Recycle reading process message queue content.
Preferably, the step S4 is specially:
Step S41, logging request message is sent to application server;
Step S42, it after the login success message for receiving application server return, sends train number window entirety request message and sets Standby state entirety request message;
Step S43, train number window entirety message and the message of equipment state entirety are received, train number window uses the unique positioning of index Mode preserves, and equipment state entirety is preserved using hierarchical approaches, is managed convenient for searching;
Step S44, the update of train number window and equipment state update message are received, updates internal storage data.
Preferably, the logging request message includes username and password.
Preferably, the step S6 is specially:
Step S61, when proxy server starts, that is, start the management to most attachable all terminals;
Step S62, receive terminal and establish the logging request message after connection, for the user name in logging request message and Password is judged, is judged by returning to login success message, otherwise returns to login failure message;
Step S63, the train number window entirety request message of terminal is received, all train number window data group packets in memory are sent To corresponding terminal;
Step S64, the equipment state entirety request message of terminal is received, the device status data of preservation will be classified in memory Group packet is sent to corresponding terminal;
Step S65, train number window is updated and equipment state update message is transmitted to the institute that is connect with proxy server in time There is terminal.
Compared with prior art, the present invention has the following advantages:
1) of the invention, for application server, proxy server is a common terminal, is increased in systems Proxy server does not increase any performance burden to application server completely;
2) of the invention, the terminal number that proxy server can connect is up to 50, has greatly expanded the appearance of system Amount;
3) of the invention, proxy server has carried out data buffer storage, terminal and proxy server to train number window and equipment state When establishing connection, station yard data is directly obtained from proxy server, alleviates the load of network flow and application server;
4) it is of the invention, while proxy server is according to train number window and the data cached update message of equipment state update, Update message is transmitted to the terminal of its all connection, the timely refreshing at the yard interface of guarantee in time.
Description of the drawings
Fig. 1 is proxy server Booting sequence figure;
Fig. 2 interacts sequence diagram for proxy server with application server;
Fig. 3 is proxy server and the interaction sequence diagram of terminal.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is the part of the embodiment rather than whole embodiments of the present invention.Based on this hair Embodiment in bright, the every other reality that those of ordinary skill in the art are obtained under the premise of creative work is not made Example is applied, should all belong to the scope of protection of the invention.
With reference to figure 1-3, illustrate technical scheme of the present invention.Referring initially to Fig. 1, the system for introducing the present invention starts processed Journey includes the following steps:
Step 100, configuration file is read, obtains system configuration parameter, including GPC number being connect with proxy server, And the configuration parameter of each GPC, proxy server connect the node name used, message queue title etc. with application server;
Step 101, it creates and starts commCATS threads, which is:According to configuration create proxy server with The bottom communication of application server creates simultaneously registration message queue, registered network event;It recycles in reading process message queue Hold.It is main to realize that code is as follows:
Communication between proxy server and application server is realized that process is specific with reference to figure 2. by commCATS threads Process is as follows:
1. change with application server connection status, communication management layer can send one into the message queue of commCATS CONNECTION_RESET message;
After 2. the commCATS threads of proxy server read the message, judge if establishing connection, then first first Application service sends logging request, and offers text progress respective handling by letter according to logging back on, and logins successfully, is then sent out to application server Send the request message of loading equipemtn state entirety and train number window entirety;If disconnecting, then the slow of proxy server is emptied It deposits;It is main to realize that code is as follows:
3. train number window entirety message is received, every train number window update message of circular treatment, according to message renewal agency service The caching of device;Train number window uses vehicle group number to be preserved as unique positioning method is indexed.Because the message only software initialization/ It is received when reinitializing, so for the message, the processing of each train number window is add processes, it is only necessary to be looked in memory To a clear position, which is added.
4. receiving the message of equipment state entirety, every equipment state update message of circular treatment updates generation according to message Manage the caching of server;Equipment state entirety is preserved using hierarchical approaches, so according to every message, is determined first according to rtuId Position cluster, when navigating to specific equipment further according to iconHandle, updates its status.
5. receiving train number window update message, indexed and positioned according to vehicle group number, after finding corresponding train number window object, according to MsgType is deleted or update train number window object.
6. receiving equipment state update message, cluster is positioned according to rtuId first, is navigated to further according to iconHandle During specific equipment, its status is updated.
Communication process between proxy server and terminal is as follows with reference to 3. detailed process of figure:
1. receiving the logging request message of terminal, username and password is verified, is verified, then by the terminal IfLogin is set as true, sends and logs in letter in reply to terminal, and the terminal is added in update list;
2. receiving the train number window entirety request message of terminal, train number window group packets all in caching are sent to the terminal;
3. receiving the equipment state entirety request message of terminal, equipment state group packet all in caching is sent to the end End;
4. when some train number window or equipment state have update, message will be updated in time and is sent to owning in update list Terminal, so that each terminal timely updates interface display;
5. when proxy server and application server disconnect, the dead message of dispatching station is to all ends in update list End, notifies its remover equipment state to show;Proxy server caches are emptied simultaneously, delete all train number window objects, simultaneously It sends train number window and deletes message to all terminals in update list, reach interface ash when terminal is disconnected with application server and show Effect.
The above description is merely a specific embodiment, but protection scope of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can readily occur in various equivalent modifications or replace It changes, these modifications or substitutions should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be with right It is required that protection domain subject to.

Claims (6)

1. the implementation method of proxy server in a kind of signal system, which is characterized in that include the following steps:
Step S1, configuration file is read, obtains system configuration parameter;
Step S2, connection is established with the application server in the role and system of " terminal ", and registers and answer into message queue The network event connected with server;
Step S3, started with the role of " application server ", the management thread of connectable terminal is created according to configuration file;
Step S4, after connection generation network event is established with application server, the network event is responded, to application server Send a request for current whole station field display data;
Step S5, using unique positioning method preservation train number window object is indexed, yard equipment state number is preserved using hierarchical approaches According to;
Step S6, when having terminal to establish connection with proxy server and sending request, its request message is handled, yard is completed and shows The forwarding of registration evidence.
2. according to the method described in claim 1, it is characterized in that, the system configuration parameter includes:With proxy server GPC number of connection, the configuration parameter of each GPC, proxy server connect the node name used and message with application server Queued name.
3. according to the method described in claim 1, it is characterized in that, the logic of the management thread in the step S3 is:Root The bottom communication of proxy server and application server is created according to configuration, creates simultaneously registration message queue, registered network event;It follows Ring reading process message queue content.
4. according to the method described in claim 1, it is characterized in that, the step S4 is specially:
Step S41, logging request message is sent to application server;
Step S42, after the login success message for receiving application server return, train number window entirety request message and equipment shape are sent State entirety request message;
Step S43, train number window entirety message and the message of equipment state entirety are received, train number window uses the unique positioning method of index It preserves, equipment state entirety is preserved using hierarchical approaches, is managed convenient for searching;
Step S44, the update of train number window and equipment state update message are received, updates internal storage data.
5. according to the method described in claim 4, it is characterized in that, the logging request message includes username and password.
6. according to the method described in claim 1, it is characterized in that, the step S6 is specially:
Step S61, when proxy server starts, that is, start the management to most attachable all terminals;
Step S62, it receives terminal and establishes the logging request message after connection, for the username and password in logging request message Judged, judged by returning to login success message, otherwise return to login failure message;
Step S63, the train number window entirety request message of terminal is received, all train number window data group packets in memory are sent to pair The terminal answered;
Step S64, the equipment state entirety request message of terminal is received, the device status data group packet of preservation will be classified in memory It is sent to corresponding terminal;
Step S65, train number window is updated and equipment state update message is transmitted to all ends for being connect with proxy server in time End.
CN201810287011.0A 2018-03-30 2018-03-30 Method for realizing proxy server in signal system Active CN108270876B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810287011.0A CN108270876B (en) 2018-03-30 2018-03-30 Method for realizing proxy server in signal system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810287011.0A CN108270876B (en) 2018-03-30 2018-03-30 Method for realizing proxy server in signal system

Publications (2)

Publication Number Publication Date
CN108270876A true CN108270876A (en) 2018-07-10
CN108270876B CN108270876B (en) 2021-03-09

Family

ID=62777477

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810287011.0A Active CN108270876B (en) 2018-03-30 2018-03-30 Method for realizing proxy server in signal system

Country Status (1)

Country Link
CN (1) CN108270876B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109495546A (en) * 2018-10-26 2019-03-19 北京车和家信息技术有限公司 Data processing method, system and server
CN111708586A (en) * 2020-06-22 2020-09-25 平安养老保险股份有限公司 Application starting configuration item loading method and device, computer equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1722663A (en) * 2004-07-13 2006-01-18 联想(北京)有限公司 A proxy server system and method for realizing proxy communication thereof
CN104484735A (en) * 2014-11-20 2015-04-01 上海富欣智能交通控制有限公司 Rail transportation comprehensive maintenance management information publishing system
US20160014660A1 (en) * 2014-07-10 2016-01-14 Pascal Bar Transient mobile application capture in a restricted area
CN105553694A (en) * 2015-12-08 2016-05-04 北京交控科技股份有限公司 Track traffic train-ground maintenance information communication system and method
CN105991568A (en) * 2015-02-09 2016-10-05 苏州精易会信息技术有限公司 Proxy realizing device
CN106934016A (en) * 2017-03-10 2017-07-07 深圳交控科技有限公司 The method for monitoring operation states and system of a kind of track traffic

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1722663A (en) * 2004-07-13 2006-01-18 联想(北京)有限公司 A proxy server system and method for realizing proxy communication thereof
US20160014660A1 (en) * 2014-07-10 2016-01-14 Pascal Bar Transient mobile application capture in a restricted area
CN104484735A (en) * 2014-11-20 2015-04-01 上海富欣智能交通控制有限公司 Rail transportation comprehensive maintenance management information publishing system
CN105991568A (en) * 2015-02-09 2016-10-05 苏州精易会信息技术有限公司 Proxy realizing device
CN105553694A (en) * 2015-12-08 2016-05-04 北京交控科技股份有限公司 Track traffic train-ground maintenance information communication system and method
CN106934016A (en) * 2017-03-10 2017-07-07 深圳交控科技有限公司 The method for monitoring operation states and system of a kind of track traffic

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
孔令发等: ""CBTC综合维护管理系统中基于Web的实时通信方法"", 《科技资讯》 *
王圣根等: ""发布与订阅机制在铁路信号集中监测系统中的应用"", 《中国铁路》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109495546A (en) * 2018-10-26 2019-03-19 北京车和家信息技术有限公司 Data processing method, system and server
CN109495546B (en) * 2018-10-26 2021-11-23 北京车和家信息技术有限公司 Data processing method, system and server
CN111708586A (en) * 2020-06-22 2020-09-25 平安养老保险股份有限公司 Application starting configuration item loading method and device, computer equipment and storage medium
CN111708586B (en) * 2020-06-22 2023-06-20 平安养老保险股份有限公司 Application starting configuration item loading method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN108270876B (en) 2021-03-09

Similar Documents

Publication Publication Date Title
US9794365B2 (en) Re-establishing push notification channels via user identifiers
US7693999B2 (en) System and method for session reestablishment between client terminal and server
US20070043820A1 (en) System and method for obtaining remote instant messages
CN102137033A (en) IM (instant messaging) system based on address book and instant messaging method
CN101136943B (en) System and method for implementing extended Diameter protocol application
CN103780679A (en) Long time delay remote invocation method based on HTTP protocol
CN103647701B (en) The control method and device of instantaneous communication system message forwarding
CN111489256A (en) Cross-chain processing method, equipment and system for multi-chain block chain system
EP2252093A2 (en) Method for enabling mobility of client devices in large scale unified networks
WO2021056793A1 (en) Power transmission line distributed fault diagnosis system and method
CN104811371A (en) Brand-new instant messaging system
CN102769582A (en) Logical server, instant messaging system and instant messaging method
CN112788074A (en) Data transmitting method, processing method, receiving method and equipment and storage medium
CN103209247A (en) Information display method and system, terminal and server
EP2640045A1 (en) Method and System for Transferring Mobile Device Contact Information
CN106331155A (en) Method for preventing repeated login of user and server
CN104468805A (en) Message routing device and method
CN108270876A (en) The implementation method of proxy server in a kind of signal system
CN103490983A (en) Enterprise mail system and mail migration executing method thereof
CN102123161B (en) Distributed mobility management method and distributed mobility management system
CN109525633B (en) Block chain network, message sending method and message receiving method based on block chain network
CN102255897A (en) IM (Instant Message) system and instant communication method based on WAP (Wireless Application Protocol) technology
CN105721274B (en) The fusion method and device of one kind of multiple instant messagings
KR20210089113A (en) A method, an apparatus, an electronic device and a storage medium for communicating between private networks
CN103152249A (en) Method and system for realizing mail receiving and sending and instant communication functions at clients

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1254245

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant