CN106850537B - Method for realizing RSSP-I railway signal safety communication protocol - Google Patents

Method for realizing RSSP-I railway signal safety communication protocol Download PDF

Info

Publication number
CN106850537B
CN106850537B CN201611102652.1A CN201611102652A CN106850537B CN 106850537 B CN106850537 B CN 106850537B CN 201611102652 A CN201611102652 A CN 201611102652A CN 106850537 B CN106850537 B CN 106850537B
Authority
CN
China
Prior art keywords
data
class
rssp
function
original data
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
CN201611102652.1A
Other languages
Chinese (zh)
Other versions
CN106850537A (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.)
Henan Splendor Science and Technology Co Ltd
Original Assignee
Henan Splendor Science and 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 Henan Splendor Science and Technology Co Ltd filed Critical Henan Splendor Science and Technology Co Ltd
Priority to CN201611102652.1A priority Critical patent/CN106850537B/en
Publication of CN106850537A publication Critical patent/CN106850537A/en
Application granted granted Critical
Publication of CN106850537B publication Critical patent/CN106850537B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/16Implementing security features at a particular protocol layer

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Communication Control (AREA)

Abstract

The invention provides a method for realizing RSSP-I railway signal safety communication protocol, which utilizes object-oriented C + + programming language to encapsulate a protocol class HH _ RSSP _ I and a pure virtual class DataInterface which is responsible for data processing, wherein the HH _ RSSP _ I class is responsible for establishing and maintaining the safety communication protocol, and the DataInterface class is responsible for receiving and sending bottom layer data and processing service data. Pure imaginary functions SendData, receData and PushData in the DataInterface class need to be realized by a user in combination with the actual software and hardware environment of the user, after the realization, the object is transmitted into the HH _ RSSP _ I class through the Init (DataInterface pDI) in the HH _ RSSP _ I through an instantiation object, and the protocol class HH _ RSSP _ I and the DataInterface of the data processing class are linked and operated by the method. The implementation method has the advantages of good universality, high stability and clear structure.

Description

Method for realizing RSSP-I railway signal safety communication protocol
Technical Field
The invention relates to a method for realizing a secure communication protocol, in particular to a method for realizing a RSSP-I railway signal secure communication protocol.
Background
The train operation control system is an important component of a high-speed railway signal system. The CTCS-2 level train operation control system is a train-ground integrated train operation control system. Due to the fact that the running speed of the motor train unit train is high, requirements on data timeliness, data integrity, data packet sequence and data accuracy of communication between devices in the train control system are high. The RSSP-I railway signal safety communication protocol is designed aiming at the possible problems of train signal communication and can meet the communication control requirements.
In most railway train control systems, the implementation of the RSSP-I railway signal safety communication protocol is tightly combined with the railway train control systems, a unified interface does not exist, and when a communication mode (such as CAN communication is changed into RS422 communication) or a service data protocol is changed, the implementation method of the whole protocol is changed, so that the implementation of the safety protocol becomes complicated, and the repeated workload is large.
In order to solve the above problems, people are always seeking an ideal technical solution.
Disclosure of Invention
The invention aims to overcome the defects of the prior art, thereby providing a method for realizing the RSSP-I railway signal safety communication protocol, and solving the problems of complex safety protocol realization process and large repeated development amount.
In order to achieve the purpose, the invention adopts the technical scheme that: a method for realizing RSSP-I railway signal safety communication protocol comprises the following steps:
step 1, a data sending end and a data receiving end respectively package a protocol class HH _ RSSP _ I and a user interface class DataInterface, and a secure communication protocol initialization function Init, a link establishment and maintenance function DoReceWork, a reconnection request function SendSSE and a reestablishment link response function SendSSR are packaged in the HH _ RSSP _ I; a bottom layer is packaged in a DataInterface class to receive pure virtual function receData, send pure virtual function SendData and process pure virtual function PushData;
step 2, the HH _ RSSP _ I class of the data sending end calls a bottom layer to send a pure virtual function SendData to send original data;
step 3, the bottom layer of the data receiving end receives pure imaginary function receData to receive original data;
and 4, the data receiving end transmits the original data to an HH _ RSSP _ I class, the HH _ RSSP _ I class judges whether the original data is lost, complete, time-efficient and correct or not by analyzing check bits and time stamp marks in the original data, and if the original data is complete, time-efficient and correct, the business data in the original data is stripped and transmitted to a business data processing function in a DataInterface class for processing.
Based on the above, the specific steps of step 4 are:
step 4.1, defining a DataInterface object DataInterface DI by the DataInterface class of the data receiving end, calling an initialization function Init by the HH _ RSSP _ I class, and transmitting the DataInterface DI into the HH _ RSSP _ I class;
step 4.2, the data receiving end establishes and maintains the function DoReceWork function and establishes the safe protocol link with the data sending end through calling the link;
4.3, the data receiving end calls a bottom layer receiving pure imaginary function receData to receive the original data and judges the type of the original data, and if the type of the original data is the reconnection request response data SSR, the step 4.3 is executed in a circulating mode; if the type of the original data is the reconnect request data SSE, directly executing the step 4.4; if the type of the original data is the service processing data RSD, directly executing the step 4.5;
step 4.4, the data receiving end calls a reconstructed link response function SendSSR and a data transmitting end to reconstruct a link response, and the data transmitting end calls a bottom layer to transmit a pure virtual function SendData to retransmit the original data;
step 4.5, the data receiving end checks the original data, if correct, continue to judge whether the frame number of the original data is continuous, whether the sequence of the frame number is disordered, if the frame number is continuous and the sequence of the frame number is correct, call the pure virtual function pushData of the service data processing to process the incoming original data; if the check error or the frame number is discontinuous or the sequence of the frame number is disordered, the reconnect request function SendSSE is called to reestablish the link relation with the data sending end, and the data sending end sends the pure virtual function SendData to resend the original data by calling the bottom layer.
Based on the above, the SSE data and the SSR data include handshake information such as heartbeat, timestamp, and frame number required for reconstructing a secure communication protocol.
Compared with the prior art, the invention has outstanding substantive characteristics and remarkable progress, and particularly, the invention comprises two classes called by an upper layer and a lower layer, namely a protocol processing class HH-RSSP-I and a data processing class DataInterface, so that the universality of the realization of a secure communication protocol is realized; when the user realizes the safe communication protocol, the SendData function is realized only by combining with an actual communication mode (CAN or RS422 or other modes), and the ReceData function and the PushData function are realized by combining with an actual data protocol format, so that the method has the advantages of good universality, high stability and clear structure.
Drawings
FIG. 1 is a schematic flow chart of step 4 of the present invention.
Detailed Description
The technical solution of the present invention is further described in detail by the following embodiments.
A method for realizing RSSP-I railway signal safety communication protocol comprises the following steps:
step 1, a data sending end and a data receiving end respectively adopt an object-oriented C + + programming language to package two classes, namely an HH-RSSP-I class responsible for security protocol processing and a DataInterface class responsible for data processing; meanwhile, a secure communication protocol initialization function Init, a link establishment and maintenance function DoReceWork, a reconnection request function SendSSE and a reestablishment link response function SendSSR are encapsulated in the HH-RSSP-I class; the data interface class is encapsulated with a bottom layer receiving pure virtual function receData, a bottom layer sending pure virtual function SendData and a business data processing pure virtual function PushData;
step 2, the HH _ RSSP _ I class of the data sending end calls a bottom layer to send a pure virtual function SendData to send original data;
step 3, the bottom layer of the data receiving end receives pure imaginary function receData to receive original data;
and 4, the data receiving end transmits the original data to an HH _ RSSP _ I class, the HH _ RSSP _ I class judges whether the original data is lost, complete, time-efficient and correct or not by analyzing check bits and time stamp marks in the original data, and if the original data is complete, time-efficient and correct, the business data in the original data is stripped and transmitted to a business data processing function in a DataInterface class for processing.
When the method is adopted to realize the RSSP-I railway signal safety communication protocol, only three pure virtual functions in the DataInterface class need to be realized.
When the data sending end needs to send data, the data is transmitted to the DataInterface class through the HH _ RSSP _ I class and is sent out.
As shown in fig. 1, the specific steps of step 4 are:
step 4.1, defining a DataInterface object DataInterface DI by the DataInterface class of the data receiving end, calling an initialization function Init by the HH _ RSSP _ I class, and transmitting the DataInterface DI into the HH _ RSSP _ I class;
step 4.2, the data receiving end establishes and maintains the function DoReceWork function and establishes the safe protocol link with the data sending end through calling the link;
4.3, the data receiving end calls a bottom layer receiving pure imaginary function receData to receive the original data and judges the type of the original data, and if the type of the original data is the reconnection request response data SSR, the step 4.3 is executed in a circulating mode; if the type of the original data is the reconnect request data SSE, directly executing the step 4.4; if the type of the original data is the service processing data RSD, directly executing the step 4.5;
step 4.4, the data receiving end calls a reconstructed link response function SendSSR and a data transmitting end to reconstruct a link response, and the data transmitting end calls a bottom layer to transmit a pure virtual function SendData to retransmit the original data;
step 4.5, the data receiving end checks the original data, if correct, continue to judge whether the frame number of the original data is continuous, whether the sequence of the frame number is disordered, if the frame number is continuous and the sequence of the frame number is correct, call the pure virtual function pushData of the service data processing to process the incoming original data; if the check error or the frame number is discontinuous or the sequence of the frame number is disordered, the reconnect request function SendSSE is called to reestablish the link relation with the data sending end, and the data sending end sends the pure virtual function SendData to resend the original data by calling the bottom layer.
In the operation process of the system, if any end of the RSSP-I railway signal safety communication protocol finds that the original data packet has the conditions that the check error, the frame number is discontinuous, the sequence of the frame number is disordered and the like, and the data can not be ensured to be complete and correct, a SendSSE () function is immediately called to send the SSE data of a reconstruction protocol link request, after the SSE data is received by the other end of the RSSP-I railway signal safety communication protocol, SendSSR () function is immediately called to send and receive the SSR data of the reconstruction protocol link, and as the SSE data and the SSR data contain handshake information such as heartbeat, timestamp, frame number and the like required by the reconstruction safety communication protocol, the safety communication protocol can be re-linked after mutual exchange. The RSD is the type of effective service data frame sent by both ends of the protocol under the condition that the protocol is normally linked.
Finally, it should be noted that the above examples are only used to illustrate the technical solutions of the present invention and not to limit the same; although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art will understand that: modifications to the specific embodiments of the invention or equivalent substitutions for parts of the technical features may be made; without departing from the spirit of the present invention, it is intended to cover all aspects of the invention as defined by the appended claims.

Claims (2)

1. A method for realizing RSSP-I railway signal safety communication protocol is characterized by comprising the following steps:
step 1, a data sending end and a data receiving end respectively package a protocol class HH _ RSSP _ I and a user interface class DataInterface, and a secure communication protocol initialization function Init, a link establishment and maintenance function DoReceWork, a reconnection request function SendSSE and a reestablishment link response function SendSSR are packaged in the HH _ RSSP _ I; a bottom layer is packaged in a DataInterface class to receive pure virtual function receData, send pure virtual function SendData and process pure virtual function PushData;
step 2, the HH _ RSSP _ I class of the data sending end calls a bottom layer to send a pure virtual function SendData to send original data;
step 3, the bottom layer of the data receiving end receives pure imaginary function receData to receive original data;
step 4, the data receiving end transmits the original data to an HH _ RSSP _ I class, the HH _ RSSP _ I class judges whether the original data is lost, complete, time-efficient or correct by analyzing check bits and time stamp marks in the original data, if the original data is complete, time-efficient and correct, the service data in the original data is stripped and transmitted to a service data processing function in a DataInterface class for processing;
step 4.1, defining a DataInterface object DataInterface DI by the DataInterface class of the data receiving end, calling an initialization function Init by the HH _ RSSP _ I class, and transmitting the DataInterface DI into the HH _ RSSP _ I class;
step 4.2, the data receiving end establishes and maintains the function DoReceWork function and establishes the safe protocol link with the data sending end through calling the link;
4.3, the data receiving end calls a bottom layer receiving pure imaginary function receData to receive the original data and judges the type of the original data, and if the type of the original data is the reconnection request response data SSR, the step 4.3 is executed in a circulating mode; if the type of the original data is the reconnect request data SSE, directly executing the step 4.4; if the type of the original data is the service processing data RSD, directly executing the step 4.5;
step 4.4, the data receiving end calls a reconstructed link response function SendSSR and a data transmitting end to reconstruct a link response, and the data transmitting end calls a bottom layer to transmit a pure virtual function SendData to retransmit the original data;
step 4.5, the data receiving end checks the original data, if correct, continue to judge whether the frame number of the original data is continuous, whether the sequence of the frame number is disordered, if the frame number is continuous and the sequence of the frame number is correct, call the pure virtual function pushData of the service data processing to process the incoming original data; if the check error or the frame number is discontinuous or the sequence of the frame number is disordered, the reconnect request function SendSSE is called to reestablish the link relation with the data sending end, and the data sending end sends the pure virtual function SendData to resend the original data by calling the bottom layer.
2. The method of claim 1 for implementing a RSSP-I railway signal secure communication protocol, wherein: the SSE data and the SSR data comprise heartbeat, timestamp and frame sequence number handshake information required by a reestablishment secure communication protocol.
CN201611102652.1A 2016-12-05 2016-12-05 Method for realizing RSSP-I railway signal safety communication protocol Active CN106850537B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611102652.1A CN106850537B (en) 2016-12-05 2016-12-05 Method for realizing RSSP-I railway signal safety communication protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611102652.1A CN106850537B (en) 2016-12-05 2016-12-05 Method for realizing RSSP-I railway signal safety communication protocol

Publications (2)

Publication Number Publication Date
CN106850537A CN106850537A (en) 2017-06-13
CN106850537B true CN106850537B (en) 2020-02-18

Family

ID=59146322

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611102652.1A Active CN106850537B (en) 2016-12-05 2016-12-05 Method for realizing RSSP-I railway signal safety communication protocol

Country Status (1)

Country Link
CN (1) CN106850537B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108959159A (en) * 2018-07-04 2018-12-07 珠海迈科智能科技股份有限公司 A kind of exchange method of the micro projector based on Android

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7058933B2 (en) * 2002-09-11 2006-06-06 Sun Microsystems, Inc. Extending custom application development environment modules to a second application development environment
US7159224B2 (en) * 2002-04-09 2007-01-02 Sun Microsystems, Inc. Method, system, and articles of manufacture for providing a servlet container based web service endpoint
CN101554878A (en) * 2009-05-20 2009-10-14 北京交通大学 System for realizing remote monitoring of integrity of train and method
CN101621383A (en) * 2009-07-30 2010-01-06 光洋电子(无锡)有限公司 Server for realizing communication between PC and PLC
CN101945017A (en) * 2010-08-26 2011-01-12 北京交通大学 Testing platform for train-ground transmission protocol in train operation control system and construction method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7159224B2 (en) * 2002-04-09 2007-01-02 Sun Microsystems, Inc. Method, system, and articles of manufacture for providing a servlet container based web service endpoint
US7058933B2 (en) * 2002-09-11 2006-06-06 Sun Microsystems, Inc. Extending custom application development environment modules to a second application development environment
CN101554878A (en) * 2009-05-20 2009-10-14 北京交通大学 System for realizing remote monitoring of integrity of train and method
CN101621383A (en) * 2009-07-30 2010-01-06 光洋电子(无锡)有限公司 Server for realizing communication between PC and PLC
CN101945017A (en) * 2010-08-26 2011-01-12 北京交通大学 Testing platform for train-ground transmission protocol in train operation control system and construction method thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"高铁RSSP-II协议的实现与优化";张世鹏;《中国优秀硕士学位论文全文数据库 信息科技辑》;20140915;正文第4页-22页 *

Also Published As

Publication number Publication date
CN106850537A (en) 2017-06-13

Similar Documents

Publication Publication Date Title
CN106059848B (en) Electric power data acquisition transmission process system and method based on Big Dipper short message communication
US10868767B2 (en) Data transmission method and apparatus in optoelectronic hybrid network
CN102857505B (en) A kind of Internet of Things data bus middleware system
CN103618741A (en) TCP long connection communication system and method
CN110708338A (en) Internal and external network data interaction system and method based on three-layer network architecture
US11082882B2 (en) Method for transmitting quality of service state report by wireless node in wireless communication system and apparatus therefor
CN108011698B (en) RSSP-I secure communication method based on dual-system synchronization
CN102412990B (en) Remote sensing satellite raw data recording system with centralized management and real-time transmission functions
CN104317661A (en) Intersystem communication method and device of dual embedded systems
CN113364856B (en) Vehicle-mounted Ethernet system based on shared memory and heterogeneous processor
CN111866113A (en) Communication system and method based on RSSP railway signal safety communication protocol
CN103002049A (en) Network transmission system of large quantities of data
CN111917770B (en) Device communication method, device and storage medium
CN101567861A (en) Data synchronization method and application system between heterogeneous application systems
CN110287040A (en) A kind of realization system of remote call service frame
CN114157537A (en) System and method for realizing multi-source heterogeneous data access by general equipment gateway
CN107426299A (en) Realize shared power assist vehicle system server TCP length connection and high concurrent method
CN106850537B (en) Method for realizing RSSP-I railway signal safety communication protocol
CN105897665B (en) Method for realizing TCP transmission in satellite network environment and corresponding gateway
CN112422253B (en) Real-time co-frequency simultaneous full duplex reliable transmission method and device
CN102917212A (en) 3G (The 3rd Generation Telecommunication) wireless video monitoring implementation method and 3G wireless video monitoring system based on RTP (Real Time Protocol) and RTSP (Real Time Streaming Protocol)
CN103379130A (en) Network access system and method based on application layer data
CN116192863B (en) Micro-service flow processing method, DPU service grid deployment method and system
CN106302432A (en) A kind of communicator based on car networking and control method
CN102904764A (en) Data transmission device and transmission method thereof

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
GR01 Patent grant
GR01 Patent grant