CN102355496B - Train-ground data communication method - Google Patents

Train-ground data communication method Download PDF

Info

Publication number
CN102355496B
CN102355496B CN201110298222.2A CN201110298222A CN102355496B CN 102355496 B CN102355496 B CN 102355496B CN 201110298222 A CN201110298222 A CN 201110298222A CN 102355496 B CN102355496 B CN 102355496B
Authority
CN
China
Prior art keywords
network
train
mounted client
data
network connection
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.)
Active
Application number
CN201110298222.2A
Other languages
Chinese (zh)
Other versions
CN102355496A (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.)
China Academy of Railway Sciences Corp Ltd CARS
Institute of Computing Technologies of CARS
Beijing Jingwei Information Technology Co Ltd
Original Assignee
Institute of Computing Technologies of CARS
Beijing Jingwei Information Technology Co 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 Institute of Computing Technologies of CARS, Beijing Jingwei Information Technology Co Ltd filed Critical Institute of Computing Technologies of CARS
Priority to CN201110298222.2A priority Critical patent/CN102355496B/en
Publication of CN102355496A publication Critical patent/CN102355496A/en
Application granted granted Critical
Publication of CN102355496B publication Critical patent/CN102355496B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The invention discloses a train-ground data communication method, relating to the technical field of computer network communication. The method comprises the following steps that: S1, network connection is sent by a train-mounted client end to a ground system, wherein the network connection comprises the identity of the train-mounted client end; and S2, the received network connection is registered into a network connection management queue through the ground system, and a time stamp is added; data to be transmitted back corresponding to the network connection of higher priority is obtained from a backward transmission queue according to the priority of the network connection in the network connection management queue and the state of a communication channel between the grounding system and the corresponding train-mounted client end, the data is transmitted back to the train-mounted client end corresponding to the network connection of higher priority, and the time stamp of the data to be transmitted back is added into the backward transmission queue. By adopting the method, a high-load and high-concurrency network system can be realized, and the purposes of low complexity, high data security, good timeliness and high accuracy can be achieved. Moreover, the method is stable and reliable.

Description

Train-ground data communication method
Technical field
The present invention relates to computer network communication technology field, relate in particular to a kind of train-ground data communication method.
Background technology
Current China Express Railway construction has entered fast-developing period, and it is many that motor train unit is started quantity, large with ground data center to center communications quantity, and network system is often in the face of the large concurrent problem of high capacity.Motor train unit is under high-speed moving state, and network service faces serious doppler shift effect, can have a strong impact on stability and the reliability of data communication, causes a large amount of packet losses, network to connect the problems such as abort, message transmission rate fluctuation be violent.Train, when high-speed cruising, needs ground system can supervise and control in real time, continuously the various faults of the speed of train, the diagnosis of grasp vehicle netbios, monitor each critical piece operational factor, guarantee operational efficiency and travel safety.At present, TCP/IP technology is as the basic technology means of network service, in data communication, adopt in a large number, but TCP/IP technology cannot guarantee stability and the availability of transfer of data between car ground, be embodied in: train-ground communication interrupts causing car ground two-way communication to complete smoothly at any time, on the one hand cannot be initiatively to train transmission information, cannot complete smoothly shaking hands for twice of TCP, on the other hand, the communication meeting of interrupting causes a large amount of invalid connections in service end, increased the difficulty of system service, therefore, need by adopting fault-toleranr technique, high capacity technology, data processing techniques etc. guarantee that the reliability of transfer of data improves data-handling efficiency.
Load balancing is the important technology of the large concurrent problem of solution high capacity commonly used, and mainly comprises following two kinds:
1, hardware the fourth layer technology
Hardware the fourth layer technology, be a kind of based on hardware by the technology of traffic data separation.The fourth layer is used the header information of both layer 3 and layer 4 information bag, according to identification services stream between application area, the traffic flow assignment of whole segment is processed to suitable application server.The fourth layer function similarly is empty IP, points to physical server.The agreement that the business of its transmission is obeyed is varied, has HTTP, FTP, NFS, Telnet or other agreements.These business, on physical server basis, need complicated carrying capacity balanced algorithm.The IP world, type of service is decided by terminal TCP or udp port address, between the application area in the fourth layer, by source and IP address of terminal, TCP and udp port, is jointly determined.This technical performance is higher, but fund input and later maintenance cost are higher, and has in actual use the inflexible drawback of implementation.
2, software the fourth layer technology
Corresponding with hardware the fourth layer machine is the software the fourth layer technology realizing based on osi model.This technology refers to proxy server accepts the connection request on internet, then request is transmitted to the server on internal network, and the result obtaining from server is returned to the client that request connects, now proxy server externally just shows as a server.Software the fourth layer technology is that the multiple servers that the connection request from internet is dynamically transmitted on internal network in the mode of reverse proxy is processed, thereby reaches the needs of bearing high capacity.Software the fourth layer technology is consistent with hardware the fourth layer machine principle, and required cost is low, and software realization mode is flexible, but performance is slightly poor.
Summary of the invention
(1) technical problem that will solve
The technical problem to be solved in the present invention is: provide a kind of and can realize the high concurrent network system of high capacity, implementation complexity is low, Information Security, promptness, accuracy are high, and stable, train-ground data communication method reliably.
(2) technical scheme
For addressing the above problem, the invention provides a kind of train-ground data communication method, the method comprising the steps of:
S1. vehicle-mounted client terrestrial system sends network connection, the identify label that described network comprises described vehicle-mounted client in connecting;
S2. ground system connects the network receiving to be registered to network connection management queue, and adds timestamp; Simultaneously, the state of the interface channel between the priority connecting according to network in described network connection management queue and ground system and corresponding vehicle-mounted client, from passback queue, obtain the network that priority is high and connect corresponding data to be returned, send it to the network that described priority is high and connect corresponding vehicle-mounted client, and add the timestamp that returns data in described passback queue.
Preferably, in step S2, if connecting, described network comprises network connecting request, the type of service of the packet that described ground system first connects according to described network, set up the interface channel that connects corresponding vehicle-mounted client with described network, again the network receiving is connected and is registered to network connection management queue, and add timestamp.
Preferably, in step S2, register described network connection and comprise step:
Packet during S2.11 connects described network is resolved, and according to the type of service of data that described packet comprises, the data that will return to corresponding vehicle-mounted client add described passback queue according to the identify label of described vehicle-mounted client;
S2.12 is according to described identify label, obtains lastly in described passback queue to described vehicle-mounted client, to return the timestamp of the data of business of the same race, if be greater than the first setting-up time with the time difference of current time, heartbeat data packets added to passback queue.
Preferably, described ground system periodically detects the validity with the interface channel of vehicle-mounted client.
Preferably, described ground system is according to the identify label of vehicle-mounted client, obtaining all-network corresponding with described vehicle-mounted client in described network connection management queue connects, if the time difference of the timestamp that current time is connected to the network is greater than the second setting-up time, remove described network and connect, close corresponding interface channel.
Preferably, in step S2, send described passback data and further comprise step:
If S2.21 interface channel is closed, select the network of a time priority to connect this step of continuation execution, otherwise, execution step S2.22;
Identify label during S2.22 connects according to described network is obtained described network and is connected corresponding passback data from described passback queue;
S2.23 compresses described passback data, and according to the protocol groups bag of making an appointment, obtains returning packet;
S2.24, via connecting corresponding interface channel with described network, connects corresponding vehicle-mounted client by described passback Packet Generation to described network.
Preferably, described the first setting-up time is one minute.
Preferably, described the second setting-up time is ten minutes.
Preferably, the car group number that described identify label is motor train unit.
(3) beneficial effect
Method of the present invention, based on asynchronous communication exchanged form, realizes the high concurrent network system of high capacity; Adopt the strategy of passive process information, obstruction and the delay of effectively having avoided train when communication is not smooth, ground system to be caused, effectively improved data transmission efficiency and ground system laod network concatenation ability; Based on HASH table technology and with the queue technology of timestamp, come supervising the network to connect and information to be sent, effectively improved the response speed of transfer of data, reduced the complexity of system development, guaranteed that ground system obtains fail safe, reliability, and can effectively improve system availability.
Accompanying drawing explanation
Fig. 1 is the train-ground data communication method flow chart according to one embodiment of the present invention.
Embodiment
The train-ground data communication method that the present invention proposes, by reference to the accompanying drawings and embodiment be described in detail as follows.
The data communication that present embodiment be take between motor train unit and Ministry of Railways's central server is example.The two take by Ministry of Railways's public safety platform is transmission channel, adopts method of the present invention, based on asynchronous communication exchanged form, realizes the high concurrent network of high capacity.As shown in Figure 1, the train-ground data communication method according to one embodiment of the present invention comprises step:
S1. vehicle-mounted client terrestrial system sends network connection, and the identify label that this network comprises vehicle-mounted client in connecting, is the car group number of motor train unit in present embodiment;
S2. the main thread of ground system receives network connection in real time, the network receiving is connected and is registered to network connection management queue, and add timestamp, the time of receiving that to record ground system this network connects; When main thread continues to receive network connection, (this priority is pressed timing definition to the priority being connected according to network in network connection management queue by another thread, for a plurality of connections of same car group, time from current time more close to priority higher) and ground system and corresponding vehicle-mounted client between the state of interface channel, from passback queue, obtain the network that priority is high and connect corresponding data to be returned, send it to the network that this priority is high and connect corresponding vehicle-mounted client, and add the timestamp that returns data in passback queue.
It should be noted that, if this motor train unit first with the communicating by letter of ground system, this network connects and comprises the connect network connecting request of passage of request, therefore, in step S2, ground system, first according to the type of service of the packet of this network connection, is set up the interface channel of the vehicle-mounted client of correspondence connected to the network, again the network receiving is connected and is registered to network connection management queue, and add timestamp.
Between vehicle-mounted client and ground system, a corresponding network connects an interface channel.
In the method for present embodiment, the registered network connection procedure of step S2 specifically comprises step:
Packet during S2.11 connects network is resolved, and according to the type of service of data that packet comprises, the data that will return to corresponding vehicle-mounted client add passback queue according to car group number;
S2.12 is according to car group number, obtain the last timestamp that returns the data of business of the same race to this vehicle-mounted client in passback queue, if be greater than one minute with the time difference of current time, heartbeat data packets is added to passback queue, wait for passback data and be together sent to this vehicle-mounted client.
Meanwhile, ground system is the validity of the interface channel of poll and vehicle-mounted client periodically all the time, connects the interface channel that positive closing is corresponding to remove the network exceeding the time limit.Detailed process is: according to car group number, obtaining all-network corresponding with vehicle-mounted client in network connection management queue connects, if the time difference of the timestamp that current time is connected to the network is greater than ten minutes, remove this network and connect, close corresponding interface channel.
In step S2, send described passback data and further comprise step:
If S2.21 interface channel is closed, select the network of a time priority to connect this step of continuation execution, otherwise, execution step S2.22;
Car group number during S2.22 connects according to network is obtained this network and is connected corresponding passback data from passback queue;
S2.23 compresses passback data, and according to the protocol groups bag of making an appointment, obtains returning packet;
S2.24 is via connecting corresponding interface channel with this network, by the extremely corresponding vehicle-mounted client of passback Packet Generation.
In the method for present embodiment, ground system adopts asynchronous system, and a large amount of networks that Jiang Yu motor train unit signal post needs connect the format management with Priority Queues, network is connected and data processing cutting, thereby effectively reduce the management difficulty that network connects.Meanwhile, each network is connected to establishing time stamp and record last call duration time, these networks of automatic regular polling connect, and the connection of exceeding the time limit is removed, and interface channel corresponding to positive closing, thereby effectively raise the load capacity of ground system service end.In addition, ground system adopts passive mode to communicate by letter with motor train unit, be that ground system need to send to the information of train with the form storage (returning the data structure of queue) of HASH chained list, take car group number as index, when ground system receives that the network of any train transmission connects, the priority connecting according to network returns to corresponding motor train unit by data to be sent from HASH chained list, thereby has avoided initiatively to train, initiating to connect, and has greatly improved the success rate that data send.Due to the reduction of software complexity, effectively shorten software development cycle; The software time degree of coupling lowers, and compares the train-ground communication scheme of synchronous communication, has significantly improved the load capacity of data transmission stability and ground system.
Above execution mode is only for the present invention is described, and limitation of the present invention not.Although the present invention is had been described in detail with reference to embodiment, those of ordinary skill in the art is to be understood that, technical scheme of the present invention is carried out to various combinations, revises or is equal to replacement, do not depart from the spirit and scope of technical solution of the present invention, it all should be encompassed in the middle of claim scope of the present invention.

Claims (9)

1. a train-ground data communication method, is characterized in that, the method comprising the steps of:
S1. vehicle-mounted client terrestrial system sends network connection, the identify label that described network comprises described vehicle-mounted client in connecting;
S2. ground system connects the network receiving to be registered to network connection management queue, and adds timestamp; Simultaneously, the state of the interface channel between the priority connecting according to network in described network connection management queue and ground system and corresponding vehicle-mounted client, from passback queue, obtain the network that priority is high and connect corresponding data to be returned, send it to the network that described priority is high and connect corresponding vehicle-mounted client, and add the timestamp that returns data in described passback queue; Wherein, the described network of described registration connects and comprises that step: S2.11 resolves the packet in described network connection, according to the type of service of data that described packet comprises, the data that will return to corresponding vehicle-mounted client add described passback queue according to the identify label of described vehicle-mounted client.
2. train-ground data communication method as claimed in claim 1, it is characterized in that, in step S2, if connecting, described network comprises network connecting request, the type of service of the packet that described ground system first connects according to described network, set up the interface channel that connects corresponding vehicle-mounted client with described network, then the network receiving is connected and is registered to network connection management queue, and add timestamp.
3. train-ground data communication method as claimed in claim 1, is characterized in that, in step S2, registers described network connection and also comprises step:
S2.12 is according to described identify label, obtains lastly in described passback queue to described vehicle-mounted client, to return the timestamp of the data of business of the same race, if be greater than the first setting-up time with the time difference of current time, heartbeat data packets added to passback queue.
4. train-ground data communication method as claimed in claim 3, is characterized in that, described ground system periodically detects the validity with the interface channel of vehicle-mounted client.
5. train-ground data communication method as claimed in claim 3, it is characterized in that, described ground system is according to the identify label of vehicle-mounted client, obtaining all-network corresponding with described vehicle-mounted client in described network connection management queue connects, if the time difference of the timestamp that current time is connected to the network is greater than the second setting-up time, remove described network and connect, and close corresponding interface channel.
6. train-ground data communication method as claimed in claim 5, is characterized in that, in step S2, sends described passback data and further comprises step:
If the interface channel that S2.21 is corresponding is closed, select the network connection of a time priority to continue to carry out this step, otherwise, execution step S2.22;
Identify label during S2.22 connects according to described network is obtained described network and is connected corresponding passback data from described passback queue;
S2.23 compresses described passback data, and according to the protocol groups bag of making an appointment, obtains returning packet;
S2.24, via connecting corresponding interface channel with described network, connects corresponding vehicle-mounted client by described passback Packet Generation to described network.
7. train-ground data communication method as claimed in claim 6, is characterized in that, described the first setting-up time is one minute.
8. train-ground data communication method as claimed in claim 6, is characterized in that, described the second setting-up time is ten minutes.
9. the train-ground data communication method as described in claim 1-8 any one, is characterized in that, the car group number that described identify label is motor train unit.
CN201110298222.2A 2011-09-27 2011-09-27 Train-ground data communication method Active CN102355496B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110298222.2A CN102355496B (en) 2011-09-27 2011-09-27 Train-ground data communication method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110298222.2A CN102355496B (en) 2011-09-27 2011-09-27 Train-ground data communication method

Publications (2)

Publication Number Publication Date
CN102355496A CN102355496A (en) 2012-02-15
CN102355496B true CN102355496B (en) 2014-08-20

Family

ID=45578990

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110298222.2A Active CN102355496B (en) 2011-09-27 2011-09-27 Train-ground data communication method

Country Status (1)

Country Link
CN (1) CN102355496B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103428287B (en) * 2013-08-09 2017-04-12 华为技术有限公司 Method and device for establishing connection
CN105933464B (en) * 2016-04-13 2019-05-31 北京思特奇信息技术股份有限公司 A kind of network communication method and system based on network connection pond
CN107390549A (en) * 2017-09-04 2017-11-24 中车青岛四方车辆研究所有限公司 CRH5 types car control logic analogue system and method
CN107864457B (en) * 2017-10-18 2021-06-01 上海复旦通讯股份有限公司 Method for multi-call management in railway communication network
CN109936601B (en) * 2017-12-18 2022-10-25 本无链科技(深圳)有限公司 Block chain duplex communication method based on WebSocket connection
CN109068293B (en) * 2018-07-05 2021-03-02 中国铁道科学研究院集团有限公司电子计算技术研究所 Automatic communication method for data between train and ground of WLAN (Wireless local area network) network motor train unit
CN109922459B (en) * 2019-01-18 2021-09-28 卡斯柯信号有限公司 Synchronous period control method capable of improving multi-vehicle communication efficiency
CN110532088B (en) * 2019-07-15 2022-09-23 金蝶汽车网络科技有限公司 Connection processing method and device, computer equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1247404C (en) * 2003-10-13 2006-03-29 北京交通大学 Wireless locomotive signal system preset polling optimized control method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101574975B (en) * 2009-06-03 2011-03-16 北京六捷科技有限公司 Vehicle monitoring system based on CTCS-3 level train control system and terminal thereof
CN102104547A (en) * 2011-02-24 2011-06-22 上海华为技术有限公司 Method, device and system for transmitting data messages in train control system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1247404C (en) * 2003-10-13 2006-03-29 北京交通大学 Wireless locomotive signal system preset polling optimized control method

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
无线CBTC系统车地通信方案研究;林海香等;《兰州交通大学学报》;20101231;第29卷(第6期);全文 *
林海香等.无线CBTC系统车地通信方案研究.《兰州交通大学学报》.2010,第29卷(第6期),全文.
穆潇,王化深,冯建周.基于无线通信的机车信号系统.《广东通信技术》.2006,第26卷(第1期),全文. *

Also Published As

Publication number Publication date
CN102355496A (en) 2012-02-15

Similar Documents

Publication Publication Date Title
CN102355496B (en) Train-ground data communication method
Song et al. Smart collaborative automation for receive buffer control in multipath industrial networks
EP2448206B1 (en) Method, system and device for transmitting video data
CN105357075B (en) Flow monitoring system and method based on software defined network
CN102638582B (en) Data communicating method and communication end
CN102790798B (en) Transparent proxy implementation, equipment and system in a kind of content distributing network
EP2627056B1 (en) Method, gateway, proxy and system for implementing mobile internet services
EP2498443B1 (en) Metadata capture for testing TCP connections
CN109905409A (en) Things-internet gateway real time bidirectional communication system based on Socket.IO
EP3629557B1 (en) System and method of delivering data that provides service differentiation and monetization in mobile data networks
WO2023216424A1 (en) Data link service processing system and method for networked encrypted transmission
CN109327386A (en) A kind of link aggregation method, device, equipment and readable storage medium storing program for executing
CN109302642A (en) Collecting method and device
CN105141660A (en) Stream media management method and system
CN108235379A (en) A kind of method and apparatus of data transmission
CN103379182A (en) Data transmission method and client sides
US8717925B2 (en) Testing TCP connection rate
US8526470B2 (en) Synchronized commands for network testing
CN110430551A (en) A kind of automobile data transfer method and system based on QUIC technology
CN103618661A (en) Data separation method and system
CN103297474B (en) A kind of batch processing subpackage method and system
CN112291076A (en) Packet loss positioning method, device and system and computer storage medium
CN109729016A (en) A kind of file transmitting method, equipment and computer readable storage medium
CN102387062A (en) Method for improving transmission rate of peer-to-peer (p2p) node in crossing network by dynamic bridging contact
CN107147722A (en) A kind of IB RTI methods based on RDMA communication mechanisms

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: BEIJING JINGWEI INFORMATION TECHNOLOGY CO., LTD.

Effective date: 20120426

C41 Transfer of patent application or patent right or utility model
C53 Correction of patent for invention or patent application
CB03 Change of inventor or designer information

Inventor after: Jia Zhikai

Inventor after: Wang Hui

Inventor after: Guo Yue

Inventor after: Lv He

Inventor after: Zhang Weijiao

Inventor after: Wang Zhi

Inventor after: Li Fan

Inventor after: Cheng Qingbo

Inventor after: Xie Bin

Inventor after: Li Jinbo

Inventor after: Guan Jiangqi

Inventor before: Zhu Jiansheng

Inventor before: Dan Xinghua

Inventor before: Yan Zhiyuan

Inventor before: Zhang Zhiqiang

Inventor before: Jia Chengqiang

Inventor before: Wang Jianxiong

COR Change of bibliographic data

Free format text: CORRECT: INVENTOR; FROM: ZHU JIANSHENG DAN XINGHUA YAN ZHIYUAN ZHANG ZHIQIANG JIA CHENGQIANG WANG JIANXIONG TO: JIA ZHIKAI LV HE ZHANG WEIJIAO WANG ZHI LI FAN CHENG QINGBO XIE BIN LI JINBO GUAN JIANGQI WANG HUI GUO YUE

TA01 Transfer of patent application right

Effective date of registration: 20120426

Address after: 100081 Beijing city Haidian District Daliushu Road No. 2

Applicant after: Electronic Computing Technology Institute, China Academy of Railway Sciences

Co-applicant after: Beijing Jingwei Information Technology Co., Ltd.

Address before: 100081 Beijing city Haidian District Daliushu Road No. 2

Applicant before: Electronic Computing Technology Institute, China Academy of Railway Sciences

C14 Grant of patent or utility model
GR01 Patent grant
ASS Succession or assignment of patent right

Owner name: BEIJING JINGWEI INFORMATION TECHNOLOGY CO., LTD. C

Free format text: FORMER OWNER: BEIJING JINGWEI INFORMATION TECHNOLOGY CO., LTD.

Effective date: 20150528

C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20150528

Address after: 100081 Beijing city Haidian District Daliushu Road No. 2

Patentee after: Electronic Computing Technology Institute, China Academy of Railway Sciences

Patentee after: Beijing Jingwei Information Technology Co., Ltd.

Patentee after: China Academy of Railway Sciences

Address before: 100081 Beijing city Haidian District Daliushu Road No. 2

Patentee before: Electronic Computing Technology Institute, China Academy of Railway Sciences

Patentee before: Beijing Jingwei Information Technology Co., Ltd.