CN116132509A - Railway safety computer platform communication method, device, equipment and medium - Google Patents

Railway safety computer platform communication method, device, equipment and medium Download PDF

Info

Publication number
CN116132509A
CN116132509A CN202310173810.6A CN202310173810A CN116132509A CN 116132509 A CN116132509 A CN 116132509A CN 202310173810 A CN202310173810 A CN 202310173810A CN 116132509 A CN116132509 A CN 116132509A
Authority
CN
China
Prior art keywords
communication address
communication
train
connection request
train client
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.)
Pending
Application number
CN202310173810.6A
Other languages
Chinese (zh)
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.)
CRSC Research and Design Institute Group Co Ltd
China Railway Signal and Communication Corp Ltd CRSC
Original Assignee
CRSC Research and Design Institute Group Co Ltd
China Railway Signal and Communication Corp Ltd CRSC
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 CRSC Research and Design Institute Group Co Ltd, China Railway Signal and Communication Corp Ltd CRSC filed Critical CRSC Research and Design Institute Group Co Ltd
Priority to CN202310173810.6A priority Critical patent/CN116132509A/en
Publication of CN116132509A publication Critical patent/CN116132509A/en
Pending legal-status Critical Current

Links

Images

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/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/163In-band adaptation of TCP data exchange; In-band control procedures
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention relates to the field of rail communication, and discloses a railway safety computer platform communication method, device, equipment and medium. The method comprises the following steps: the configuration of the communication address of the local terminal is completed; acquiring a Transmission Control Protocol (TCP) connection request sent by a train client based on a local communication address, and acquiring an opposite communication address corresponding to the train client according to the TCP connection request; when it is detected that there is an unoccupied task process, a communication link is established with the train client based on the peer communication address. According to the technical scheme, the communication address of the train client is dynamically acquired in the TCP connection establishment process, so that the pre-configuration of the communication address of the train client can be avoided, the configuration space can be saved, and the configuration work of the platform can be optimized; secondly, when the communication address of the train client is changed, the communication connection can be reestablished without stopping the machine to modify the configuration information, and the usability of the platform can be improved.

Description

Railway safety computer platform communication method, device, equipment and medium
Technical Field
The present invention relates to the field of rail communication, and in particular, to a method, an apparatus, a device, and a medium for communication with a railway security computer platform.
Background
In a railway safety computer platform, data communication with train clients is performed based on a transmission control protocol (Transmission Control Protocol, TCP), and reliable and full duplex data stream transmission can be realized.
Currently, in the existing communication method of the railway safety computer platform, a large number of communication addresses of train clients are commonly configured in a server in advance, and meanwhile, the communication addresses of the server need to be configured in the train clients in advance, so that a communication link between the server and the train clients is established based on the communication addresses which are configured in advance. However, in the railway safety computer platform, the number of the servers and the train clients can reach hundreds to thousands, and the mode of pre-configuring communication addresses is adopted, so that the workload is high and errors are easy to occur; secondly, if the communication address of a certain link changes, the system must be stopped, and after the configuration is modified, the device is re-operated to load the modified configuration, so that the use experience of the platform is seriously affected, and even a security accident may be caused.
Disclosure of Invention
The invention provides a railway safety computer platform communication method, a device, equipment and a medium, which can avoid the pre-configuration of the communication address of a train client, save the configuration space and optimize the configuration work of the platform; secondly, when the communication address of the train client is changed, the communication connection can be reestablished without stopping the machine to modify the configuration information, and the usability of the platform can be improved.
According to an aspect of the present invention, there is provided a railway safety computer platform communication method applied to a railway safety computer platform, comprising:
the configuration of the communication address of the local terminal is completed;
acquiring a Transmission Control Protocol (TCP) connection request sent by a train client based on the local communication address, and acquiring an opposite communication address corresponding to the train client according to the TCP connection request;
when it is detected that there is an unoccupied task process, a communication link is established with the train client based on the peer communication address.
According to another aspect of the present invention there is provided a railway security computer platform communications device for use with a railway security computer platform comprising:
the local communication address configuration module is used for completing the configuration of the local communication address;
the opposite-end communication address acquisition module is used for acquiring a Transmission Control Protocol (TCP) connection request sent by the train client based on the local-end communication address and acquiring an opposite-end communication address corresponding to the train client according to the TCP connection request;
and the communication link establishment module is used for establishing a communication link with the train client based on the opposite-end communication address when the unoccupied task process is detected.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the railway safety computer platform communication method according to any one of the embodiments of the present invention.
According to another aspect of the present invention there is provided a computer readable storage medium storing computer instructions for causing a processor to execute a railway safety computer platform communication method according to any one of the embodiments of the present invention.
According to the technical scheme, the configuration of the communication address of the local terminal is completed; then, based on the communication address of the home terminal, acquiring a Transmission Control Protocol (TCP) connection request sent by the train client, and acquiring the communication address of the opposite terminal corresponding to the train client according to the TCP connection request; finally, when the unoccupied task process is detected, a communication link between the opposite terminal communication address and the train client terminal is established, and the communication address of the train client terminal is dynamically acquired in the process of establishing the TCP connection, so that the pre-configuration of the communication address of the train client terminal can be avoided, the configuration space can be saved, and the configuration work of the platform can be optimized; secondly, when the communication address of the train client is changed, the communication connection can be reestablished without stopping the machine to modify the configuration information, and the usability of the platform can be improved.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1A is a flow chart of a method of communication for a railway security computer platform according to a first embodiment of the present invention;
FIG. 1B is a flow chart of another method of railroad safety computer platform communications provided in accordance with a first embodiment of the present invention;
fig. 2 is a schematic structural diagram of a communication device of a railway safety computer platform according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of an electronic device implementing a railway security computer platform communication method according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," "target," and the like in the description and claims of the present invention and in the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
Fig. 1A is a flowchart of a method for implementing a railway safety computer platform communication based on TCP according to an embodiment of the present invention, where the method may be implemented by a railway safety computer platform communication device, and the railway safety computer platform communication device may be implemented in hardware and/or software, and the railway safety computer platform communication device may be configured in an electronic device, typically, a server or a computer device in a railway safety computer platform. As shown in fig. 1A, the method includes:
s110, completing the configuration of the communication address of the local terminal.
In this embodiment, the railway security computer platform may be composed of a plurality of servers or computer devices, and may provide various application services to the user through data communication with an external train client. Wherein the data communication may be based on a transmission control protocol (Transmission Control Protocol, TCP).
The communication address may include, among other things, an internet protocol (Internet Protocol, IP) address and a port number. In this embodiment, the server may automatically configure the IP address and the port number according to the IP address and the port number input by the user, so as to complete configuration of the local communication address; meanwhile, the train client may pre-configure the IP address and port number of the present method, and the IP address and port number of the corresponding server. Thus, the train client can send a connection request or application data to the server through the port corresponding to the preset port number according to the IP address and port number of the preset server.
S120, acquiring a Transmission Control Protocol (TCP) connection request sent by the train client based on the local communication address, and acquiring an opposite communication address corresponding to the train client according to the TCP connection request.
In a specific example, when the train client needs to send application data to the server, a communication link with the server needs to be established first; wherein the communication link may be established based on the TCP protocol. Specifically, the train client may send a TCP connection request to the server according to a pre-configured communication address of the corresponding server, so as to establish a communication link with the server.
The TCP connection request may include a TCP header and a TCP data portion, and the TCP header may include a source IP address and a source port number (an IP address and a port number of the train client), and a destination IP address and a destination port number (an IP address and a port number of the server), among others.
And then, the server can receive the TCP connection request sent by the train client and can analyze the content of the TCP connection request to acquire the communication address corresponding to the train client, namely the IP address and the port number corresponding to the train client.
And S130, when the unoccupied task process is detected, establishing a communication link with the train client based on the opposite-end communication address.
In this embodiment, the server may preset a certain number of task processes, and each task process may be used to establish a communication link between the server and the train client. Specifically, after receiving a TCP connection request sent by the train client, the server may directly detect whether an unoccupied task process exists currently, that is, determine whether an idle task process exists, without performing any authentication operation on the TCP connection request; if it is determined that there is an unoccupied task process, a communication link with the train client can be established directly. The server and train client may then mutually send application data based on the communication link.
And secondly, if the fact that the unoccupied task process does not exist is detected, the TCP connection request can be added to a preset cache queue, and all TCP connection requests in the preset cache queue are sequentially processed according to the first-in first-out sequence.
In addition, the train client may automatically transmit a link establishment detection request after a certain period of time after transmitting the TCP connection request to detect whether the communication link with the server is successfully established. If the communication link is successfully established, the server may feed back corresponding acknowledgement information, such as ACK information, after receiving the link establishment detection request. If the train client side successfully receives the confirmation information fed back by the server, the train client side indicates that the communication link is successfully established, and can continue to send subsequent application data.
It should be noted that the technical solution of this embodiment may also be applied to railway security computer platform communication based on the user datagram protocol (User Datagram Protocol, UDP).
According to the technical scheme, the configuration of the communication address of the local terminal is completed; then, based on the communication address of the home terminal, acquiring a Transmission Control Protocol (TCP) connection request sent by the train client, and acquiring the communication address of the opposite terminal corresponding to the train client according to the TCP connection request; finally, when the unoccupied task process is detected, a communication link between the opposite terminal communication address and the train client terminal is established, and the communication address of the train client terminal is dynamically acquired in the process of establishing the TCP connection, so that the pre-configuration of the communication address of the train client terminal can be avoided, the configuration space can be saved, and the configuration work of the platform can be optimized; secondly, when the communication address of the train client is changed, the communication connection can be reestablished without stopping the machine to modify the configuration information, and the usability of the platform can be improved.
In an optional implementation manner of this embodiment, after obtaining the peer end communication address corresponding to the train client according to the TCP connection request, the method may further include:
and generating a TCP connection request response corresponding to the TCP connection request, and sending the TCP connection request response to the train client according to the opposite terminal communication address.
In this embodiment, after the server performs content parsing on the TCP connection request to obtain the opposite-end communication address, the server may directly generate a TCP connection request response corresponding to the TCP connection request according to its IP address and port number, to indicate that the TCP connection request has been successfully received, and may send the TCP connection request response to the train client according to the opposite-end communication address.
Correspondingly, after receiving the TCP connection request response sent by the server, the train client can analyze the content of the TCP connection request response to acquire an actual IP address and a port number corresponding to the server; then, the train client can judge whether the actual IP address and the port number are consistent with the IP address and the port number of the pre-configured server; if a match is determined, a communication link may be established with the server.
In another optional implementation manner of this embodiment, after establishing a communication link with the train client based on the peer communication address, the method may further include:
storing the opposite terminal communication address corresponding to the train client terminal into a local database;
and if the communication link is detected to be disconnected, deleting the opposite-end communication address corresponding to the train client from the local database.
In this embodiment, after a TCP communication link between a server and a train client is successfully established, the server may temporarily store an IP address and a port corresponding to the train client, and monitor the TCP communication link in real time; secondly, the created socketfd corresponding to the train client can be stored in the corresponding structural body parameters. Once the server detects that the TCP communication link is broken, the server may delete the peer communication address temporarily stored in the local database. And simultaneously, the task process corresponding to the communication link can be restored to an idle state.
Wherein detecting the disconnection of the communication link may include:
and sending a heartbeat instruction to the train client at each preset interval time, and determining that the communication link is disconnected if feedback confirmation information sent by the train client is not received.
The preset time length may be a preset time length. In this embodiment, after establishing a communication link with a train client, the server may periodically send a heartbeat instruction or a link detection message to the train client. If the communication link maintains the connection state, the train client can receive the heartbeat instruction or the link detection message sent by the server, generate a corresponding feedback confirmation message and send the feedback confirmation message to the server. If the server receives the feedback confirmation message sent by the train client, the server can determine that the communication link is kept in a connection state; if the corresponding feedback confirmation message is not received, the communication link can be determined to be disconnected.
In another optional implementation manner of this embodiment, acquiring, based on the home communication address, a TCP connection request sent by the train client may include:
configuring routing parameters and gateway parameters according to the local communication address;
and starting a TCP monitoring port, and acquiring a TCP connection request sent by the train client based on the local communication address, the routing parameter and the gateway parameter through the TCP monitoring port.
The TCP monitoring port can be a pre-designated server port and is only responsible for monitoring and acquiring TCP connection requests sent by all clients; when the TCP connection request is successfully monitored, the TCP monitoring port can forward the TCP connection request to a preset processing port for subsequent processing.
In a specific example, the server may configure corresponding routing parameters (e.g., routing table) and gateway parameters according to the configured home IP address and port number; it can be appreciated that when the server configures the route, the train client transmits the data information to the server, and the data information needs to be forwarded by one or more routes according to the route parameters. The server may then open a pre-set TCP listening port to listen for TCP connection requests from each train client.
In another optional implementation of this embodiment, when detecting that there is an unoccupied task process, establishing a communication link with the train client based on the peer communication address may include:
when the unoccupied task process is detected to exist, if the preset communication address matched with the opposite-end communication address exists in the local database, the communication link with the train client-side is established based on the opposite-end communication address through the unoccupied task process.
In another case, the server may also be preconfigured with the communication address of the train client (e.g., in the form of a communication address whitelist), at which point the server will only allow access by the preconfigured train client. Specifically, after detecting that the unoccupied task process exists, the server can further check whether a preset communication address matched with the current opposite-end communication address exists in the local database; if the preset communication address matched with the communication address of the opposite end is successfully detected, a communication link with the train client end can be established. If the preset communication address matched with the opposite terminal communication address is not detected, the subsequent request information or application data of the opposite terminal communication address can be directly refused.
Optionally, the server and the train client may also pre-agree on the data format of the Options field in the TCP header of the TCP connection request, for example, the field length, the inclusion data item, etc. Then, after the server receives a TCP connection request sent by a certain train client, the server may first perform content analysis on the TCP connection request, and check whether the data format of the Options field conforms to a predetermined data format, if so, determine that the TCP connection request passes the verification successfully, and the server may establish a communication link with the train client.
In one specific implementation of this embodiment, the flow of the railway security computer platform communication method may be as shown in fig. 1B. Firstly, a server configures the IP address and the port number of the method, adds a gateway and a route according to the configured IP address and port number, and opens a monitoring port. Meanwhile, the train client side pre-configures the IP addresses and port numbers of the train client side and the server side, and adds a gateway and a route according to the configured IP addresses and port numbers. The train client then generates a TCP connection request and sends the request to the server.
After receiving the TCP connection request sent by the train client, the server may perform content parsing on the TCP connection request to obtain an IP address and a port number corresponding to the train client, and generate a TCP connection request response to be fed back to the train client. And then, the server searches whether unoccupied task processes exist, if so, records task indexes occupied by the train client, and establishes communication links with the train client. And secondly, after receiving the TCP connection request response fed back by the server, the train client can acquire the actual IP address and port corresponding to the server according to the TCP connection request response, check whether the actual IP address and port are consistent with the pre-configured IP address and port, if so, establish a communication link (for example, three-way handshake established by TCP connection) with the server, and send application data based on the communication link.
Example two
Fig. 2 is a schematic structural diagram of a communication device for a railway safety computer platform according to a second embodiment of the present invention. As shown in fig. 2, the apparatus is applied to a railway safety computer platform, and may include: the communication address configuration module 210 of the home terminal, the communication address acquisition module 220 of the opposite terminal and the communication link establishment module 230; wherein,,
the local communication address configuration module 210 is configured to complete configuration of a local communication address;
the opposite-end communication address obtaining module 220 is configured to obtain a transmission control protocol TCP connection request sent by a train client based on the local-end communication address, and obtain an opposite-end communication address corresponding to the train client according to the TCP connection request;
a communication link establishment module 230 for establishing a communication link with the train client based on the peer communication address when it is detected that there is an unoccupied task process.
According to the technical scheme, the configuration of the communication address of the local terminal is completed; then, based on the communication address of the home terminal, acquiring a Transmission Control Protocol (TCP) connection request sent by the train client, and acquiring the communication address of the opposite terminal corresponding to the train client according to the TCP connection request; finally, when the unoccupied task process is detected, a communication link between the opposite terminal communication address and the train client terminal is established, and the communication address of the train client terminal is dynamically acquired in the process of establishing the TCP connection, so that the pre-configuration of the communication address of the train client terminal can be avoided, the configuration space can be saved, and the configuration work of the platform can be optimized; secondly, when the communication address of the train client is changed, the communication connection can be reestablished without stopping the machine to modify the configuration information, and the usability of the platform can be improved.
Optionally, the railway safety computer platform communication device further comprises:
and the TCP connection request response generation module is used for generating a TCP connection request response corresponding to the TCP connection request and sending the TCP connection request response to the train client according to the opposite terminal communication address.
Optionally, the railway safety computer platform communication device further comprises:
the address storage module is used for storing the opposite-end communication address corresponding to the train client into a local database;
and the address deleting module is used for deleting the opposite-end communication address corresponding to the train client from the local database if the communication link is detected to be disconnected.
Optionally, the address deleting module is specifically configured to send a heartbeat instruction to the train client for a preset time length at each interval, and if feedback confirmation information sent by the train client is not received, determine that the communication link is disconnected.
Optionally, the opposite-end communication address obtaining module 220 is specifically configured to configure a routing parameter and a gateway parameter according to the local-end communication address;
and starting a TCP monitoring port, and acquiring a TCP connection request sent by the train client based on the local communication address, the routing parameter and the gateway parameter through the TCP monitoring port.
Optionally, the communication link establishment module 230 is specifically configured to, when detecting that an unoccupied task process exists, establish, by the unoccupied task process, a communication link with the train client based on the peer communication address if it is detected that a preset communication address matching the peer communication address exists in the local database.
Optionally, the communication address includes an internet protocol address and a port number.
The railway safety computer platform communication device provided by the embodiment of the invention can execute the railway safety computer platform communication method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example III
Fig. 3 shows a schematic diagram of an electronic device 30 that may be used to implement an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 3, the electronic device 30 includes at least one processor 31, and a memory, such as a Read Only Memory (ROM) 32, a Random Access Memory (RAM) 33, etc., communicatively connected to the at least one processor 31, wherein the memory stores a computer program executable by the at least one processor, and the processor 31 can perform various suitable actions and processes according to the computer program stored in the Read Only Memory (ROM) 32 or the computer program loaded from the storage unit 38 into the Random Access Memory (RAM) 33. In the RAM 33, various programs and data required for the operation of the electronic device 30 may also be stored. The processor 31, the ROM 32 and the RAM 33 are connected to each other via a bus 34. An input/output (I/O) interface 35 is also connected to bus 34.
Various components in electronic device 30 are connected to I/O interface 35, including: an input unit 36 such as a keyboard, a mouse, etc.; an output unit 37 such as various types of displays, speakers, and the like; a storage unit 38 such as a magnetic disk, an optical disk, or the like; and a communication unit 39 such as a network card, modem, wireless communication transceiver, etc. The communication unit 39 allows the electronic device 30 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 31 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 31 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 31 performs the various methods and processes described above, such as the railway security computer platform communications method.
In some embodiments, the railway safety computer platform communication method may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as the storage unit 38. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 30 via the ROM 32 and/or the communication unit 39. When the computer program is loaded into RAM 33 and executed by processor 31, one or more of the steps of the railway safety computer platform communication method described above may be performed. Alternatively, in other embodiments, the processor 31 may be configured to perform the railway security computer platform communication method in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (10)

1. A method of communicating with a railway security computer platform, the method being applied to the railway security computer platform and comprising:
the configuration of the communication address of the local terminal is completed;
acquiring a Transmission Control Protocol (TCP) connection request sent by a train client based on the local communication address, and acquiring an opposite communication address corresponding to the train client according to the TCP connection request;
when it is detected that there is an unoccupied task process, a communication link is established with the train client based on the peer communication address.
2. The method according to claim 1, further comprising, after acquiring the peer communication address corresponding to the train client according to the TCP connection request:
and generating a TCP connection request response corresponding to the TCP connection request, and sending the TCP connection request response to the train client according to the opposite terminal communication address.
3. The method of claim 1, further comprising, after establishing a communication link with the train client based on the peer communication address:
storing the opposite terminal communication address corresponding to the train client terminal into a local database;
and if the communication link is detected to be disconnected, deleting the opposite-end communication address corresponding to the train client from the local database.
4. A method according to claim 3, wherein detecting the disconnection of the communication link comprises:
and sending a heartbeat instruction to the train client at each preset interval time, and determining that the communication link is disconnected if feedback confirmation information sent by the train client is not received.
5. The method of claim 1, wherein obtaining a transmission control protocol, TCP, connection request sent by a train client based on the home communication address comprises:
configuring routing parameters and gateway parameters according to the local communication address;
and starting a TCP monitoring port, and acquiring a TCP connection request sent by the train client based on the local communication address, the routing parameter and the gateway parameter through the TCP monitoring port.
6. The method of claim 1, wherein establishing a communication link with the train client based on the peer communication address when the presence of an unoccupied task process is detected, comprises:
when the unoccupied task process is detected to exist, if the preset communication address matched with the opposite-end communication address exists in the local database, the communication link with the train client-side is established based on the opposite-end communication address through the unoccupied task process.
7. The method according to any of claims 1-6, wherein the communication address comprises an internet protocol address and a port number.
8. A railway security computer platform communication device, characterized by being applied to a railway security computer platform, comprising:
the local communication address configuration module is used for completing the configuration of the local communication address;
the opposite-end communication address acquisition module is used for acquiring a Transmission Control Protocol (TCP) connection request sent by the train client based on the local-end communication address and acquiring an opposite-end communication address corresponding to the train client according to the TCP connection request;
and the communication link establishment module is used for establishing a communication link with the train client based on the opposite-end communication address when the unoccupied task process is detected.
9. An electronic device, the electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the railway safety computer platform communication method of any one of claims 1-7.
10. A computer readable storage medium storing computer instructions for causing a processor to perform the railway safety computer platform communication method of any one of claims 1-7.
CN202310173810.6A 2023-02-28 2023-02-28 Railway safety computer platform communication method, device, equipment and medium Pending CN116132509A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310173810.6A CN116132509A (en) 2023-02-28 2023-02-28 Railway safety computer platform communication method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310173810.6A CN116132509A (en) 2023-02-28 2023-02-28 Railway safety computer platform communication method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN116132509A true CN116132509A (en) 2023-05-16

Family

ID=86306334

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310173810.6A Pending CN116132509A (en) 2023-02-28 2023-02-28 Railway safety computer platform communication method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN116132509A (en)

Similar Documents

Publication Publication Date Title
CN107645529B (en) Heartbeat packet sending method and device
CN113726607B (en) Network detection method and device, electronic equipment and storage medium
CN113067769B (en) Router restarting method, device, equipment and storage medium
CN110166322B (en) Detection method and related device for metering automation terminal
CN115190087B (en) Data transmission method, device, equipment and medium based on two-layer intermediate equipment
CN116132509A (en) Railway safety computer platform communication method, device, equipment and medium
CN115658218B (en) Method, device, equipment and storage medium for accessing edge equipment to cloud
CN116192534A (en) Train control data communication transmission method, device, equipment and storage medium
CN114338477B (en) Communication link monitoring method, device, equipment and storage medium
CN115695861A (en) Stream media data management system, method, equipment and medium
CN112953794B (en) Network detection method, device, equipment and storage medium of router
CN113420275B (en) Data connection processing method, related device and computer program product
CN113079055B (en) AGV operation data dynamic acquisition method and device
CN210274135U (en) Remote connection system
CN115865734B (en) Fault detection method, data generation method, device, equipment and medium
CN116760741B (en) Data state monitoring method, device, equipment and medium
CN116319420A (en) Network detection method, device, electronic equipment, storage medium and program product
CN113783769B (en) Method and device for transmitting message in automatic driving and relay equipment
CN111641664A (en) Crawler equipment service request method, device and system
CN115865734A (en) Fault detection method, data generation method, device, equipment and medium
CN114928581B (en) CAN message forwarding method, device, equipment and storage medium based on AUTOSAR architecture
US20230319664A1 (en) Systems and methods of fail-safe packet transmission using long range wide area networks
CN118018533A (en) Streaming media data transmission method, device, equipment and medium
CN115567431A (en) Network stability testing method and device, tested equipment and storage medium
CN117527726A (en) Bidirectional path communication control system, method, electronic equipment and storage medium

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