CN102123110B - Data transmission method for gateway system, and gateway system - Google Patents

Data transmission method for gateway system, and gateway system Download PDF

Info

Publication number
CN102123110B
CN102123110B CN201010033627.9A CN201010033627A CN102123110B CN 102123110 B CN102123110 B CN 102123110B CN 201010033627 A CN201010033627 A CN 201010033627A CN 102123110 B CN102123110 B CN 102123110B
Authority
CN
China
Prior art keywords
data
gateway system
intranet
memory cell
level system
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
CN201010033627.9A
Other languages
Chinese (zh)
Other versions
CN102123110A (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 General Nuclear Power Corp
China Techenergy Co Ltd
Original Assignee
China General Nuclear Power Corp
China Techenergy 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 China General Nuclear Power Corp, China Techenergy Co Ltd filed Critical China General Nuclear Power Corp
Priority to CN201010033627.9A priority Critical patent/CN102123110B/en
Publication of CN102123110A publication Critical patent/CN102123110A/en
Application granted granted Critical
Publication of CN102123110B publication Critical patent/CN102123110B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses a data transmission method for a gateway system and the gateway system. The method comprises the steps of receiving data and transmitting data, wherein the step of receiving data receiving comprises the following substeps that: the gateway system processes and stores the data after receiving the data; the step of transmitting data comprises the following substeps of: taking the stored data, and then transmitting the data after processing the data again; and the process of receiving data and the process of transmitting data are performed simultaneously. By improving a communication protocol, when an error exists in the communication, the influence of an individual data transmission error on the transmission data in the whole period is reduced. A test interface is provided and tests the gateway system by a specific test tool. The data which are being transmitted in the gateway system are inquired and modified so as to realize the function of facilitating the test. The periodic operation time is reduced.

Description

A kind of data transmission method of gateway system and gateway system
Technical field
The present invention relates to a kind of means of communication and device, the data transmission method of especially a kind of gateway system and gateway system.
Background technology
In order to meet the requirement of " nuclear power station security level digital protection system " strict fail safe, between safe level system and non-security level system, must be connected by the gateway system with safe buffer action, referred to as safe level gateway system.Between safe level gateway system and non-security level system, be connected by Industrial Ethernet, be mainly used in carrying out data transaction, transmission between safe level system and non-security level system, prevent that the fault of non-security system or illegal operation are delivered to safe level internal system simultaneously.As shown in Figure 1, safe level system is connected with non-security level system.
The gateway system of nuclear power station security level digital protection system, at present domestic also in technological gap state.External safe level gateway system has:
1) the TELEPERM XS Gateway of the French Areva of German Siemens/ company
2) the MELTEC Gateway of MIT
3) the Common Q Gateway of US Westinghouse company
, there is the problem of the following aspects in these safe level gateway systems:
1, the communications strategy between existing safe level gateway system and safe level DCS system exists improper.For example:
TELEPERM XS gateway system with the process of safe level system communication in, if there is data transmission fault or loss of data, think that the data of this periodic transfer are incorrect, the quality position of all signals in packet is all set to false.
2,, in order to ensure the safe operation of nuclear power station security level digital protection system, need regularly system to be carried out to test maintaining.Existing safe level system does not provide the test function of intuitive and convenient.The gateway system of the MELTEC of for example MIT is to send test command by the non-security level system in outside to realize the test to safe level system.This test mode need to send instruction to safe level system by non-security level system, has increased to a certain extent the complexity of testing, has reduced efficiency.
3, safe level gateway system requires the time of each cycle of operation to fix and controlled, and existing safe level gateway system is relatively excessive cycle time.For example: the gateway system of the MELTEC of MIT from receive data to data forward cycle time be 500ms.
Application number a kind of multi-protocol data gateway based on IPv6 that has been 03127989.9 Patent Application Publication, be applicable to the communication network being formed by multiple mobile network, this gateway comprises: access service part, for the treatment of the protocol signaling of received different mobile networks, unified authentication and accounting be provided and control the switching between mobile network not of the same race, comprising the signaling processing module of a common signaling processing module and multiple corresponding different agreement signalings; Media gateway part, for receiving and process the protocol data from different mobile networks, and is converted to unified IPv6 protocol data output, comprises the data processing module of a common data processing module and multiple corresponding different agreement data; Access service part and media gateway system part are by Mp transmission command and data therebetween.The implementation method that also simultaneously discloses a kind of multi-protocol data gateway communication, adopts said method and gateway, can realize data communication and seamless switching between various mobile networks, and mobile network and other internetwork interconnection and interflow.Technique scheme can realize the conversion of different agreement, but does not effectively improve data transmission bauds.
Summary of the invention
The technical problem to be solved in the present invention is to overcome the deficiencies in the prior art, provides a kind of and reduces the communication cycle time, and have the gateway system of regular experiment test function and the data transmission method of gateway system.
For solving the problems of the technologies described above, the present invention adopts the basic conception of technical scheme to be:
A data transmission method for gateway system, is characterized in that: comprises and receives data and send data,
Reception data comprise: gateway system is processed data after receiving data, save data;
Transmission data comprise: take out the data of having preserved, data are processed to rear transmission;
The process that receives data is carried out with the process that sends data simultaneously.
The Data Transport Protocol that transmission data acquisition is used is not identical with the Data Transport Protocol that reception data acquisition is used.
Described gateway system is used for the transfer of data between safe level system and non-security level system,
When data are transmitted to non-security level system by safe level system, gateway system receives the data of safe level system, and data are carried out after algorithm process, stores data in the memory cell of gateway system; Meanwhile, take out data from memory cell, after data are processed, send data to non-security level system;
When data are transmitted to safe level system by non-security level system, gateway system receives the data of non-security level system, and data are carried out verification and after algorithm process, stored data in the memory cell of gateway system; Meanwhile, take out data from memory cell, after data are processed, send data to safe level system.
The packet of each transmission data is fixed as three, and each packet comprises at most the data of 1000 bytes.
Judge that according to the quality position of data in packet whether packet is correct, abandon incorrect packet.
Be connected with external test facility by described gateway system, regularly logarithm is reportedly input into row test.
There is a gateway system for said method, comprise CPU, memory cell, Intranet network interface card and outer net network interface card, it is characterized in that: CPU also comprises,
Intranet data processing module, in the time that data are transmitted to outer net by Intranet, receives the data of Intranet network interface card, after data are processed, stores data in memory cell; In the time that data are transmitted to Intranet by outer net, take out data from memory cell, after data are processed, send data to Intranet network interface card;
Outer net data processing module, in the time that data are transmitted to outer net by Intranet, takes out data from memory cell, after data are processed, sends data to outer net network interface card; In the time that data are transmitted to Intranet by outer net, receive the data of outer net network interface card, after data are processed, store data in memory cell.
Described gateway system comprises interface circuit, and described interface circuit is connected with external test arrangements, for regularly gateway system being tested.
Adopt after technique scheme, the present invention compared with prior art has following beneficial effect:
1, by improving communications protocol, in the time that communication makes a mistake, the impact of the mistake that reduces indivedual transfer of data on whole periodic transfer data.
2, provide test interface, by distinctive testing tool, gateway system is tested.Realize the data that gateway system inside is being transmitted and inquire about, revise, to reach the function of convenient test.
3, reduce the periodic duty time.
Below in conjunction with accompanying drawing, the specific embodiment of the present invention is described in further detail.
Brief description of the drawings
Fig. 1 is the connection diagram of safe level system and non-security level system;
Fig. 2 is gateway system structural representation of the present invention.
Embodiment
Embodiment mono-
Gateway system of the present invention is mainly used in carrying out data transaction, transmission between safe level system and non-security level system, prevents that the fault of non-security system or illegal operation are delivered to safe level internal system simultaneously.The data flow of transmitting between two systems is divided into two kinds, one is to non-security level system transmission data by safe level system, gateway system receives the data from safe level system, then pass through algorithm process, by data after treatment, according to certain host-host protocol, for example udp protocol sends to outside non-security level system.Another kind is to transmit data by non-security level system to safe level system, and gateway system receives the data from non-security level system, then passes through algorithm process, and data after treatment are sent to safe level system according to specific agreement.
Transfer of data comprises reception data and sends data, receives data and comprise: gateway system is processed data after receiving data, save data; Transmission data comprise: take out the data of having preserved, data are processed to rear transmission; The process that receives data is carried out with the process that sends data simultaneously.Functional independence between two processes, does not interact, and can reach the object that reduces the periodic duty time.
Receive after data, first save the data in a region of memory, then data are processed, data after treatment are kept in another region of memory, while sending data, take out treated data, data are combined into the packet that meets host-host protocol, then send.
The Data Transport Protocol that transmission data acquisition is used is not identical with the Data Transport Protocol that reception data acquisition is used.For example, while carrying out transfer of data with non-security level system, adopt udp protocol, while carrying out transfer of data with safe level system, adopt distinctive SN4 agreement.
When data are transmitted to non-security level system by safe level system, gateway system receives the data of safe level system, and data are carried out after algorithm process, stores data in the memory cell of gateway system; Meanwhile, take out data from memory cell, after data are processed, send data to non-security level system;
When data are transmitted to safe level system by non-security level system, gateway system receives the data of non-security level system, and data are carried out verification and after algorithm process, stored data in the memory cell of gateway system; Meanwhile, take out data from memory cell, after data are processed, send data to safe level system.
The packet of each transmission data can be fixed as three, and each packet can be the data that comprise at most 1000 bytes.
Judge that according to quality of data position whether packet is correct, abandon incorrect packet.In the data transmission procedure of one-period, if a packet occurs extremely, only in this packet, the quality position of data is set to false, and the data in other two packets are still normal.Reduce like this in data transmission procedure due to the impact extremely causing.
Gateway system can be connected with external test facility, and regularly logarithm is reportedly input into row test.For example, in the time that gateway system need to be tested, gateway system is connected with engineer station by RS-485 serial ports, engineer station's upper operation special-purpose software and gateway carry out communication.Tester can select to monitor the specification signal data in gateway system normal course of operation by software, can also send mandatory modification signal instruction and change to gateway system the signal data of appointment, check whereby whether operation result meets, thereby realize the function of test.
The present invention also provides a kind of gateway system, as shown in Figure 2, comprise CPU, memory cell, Intranet network interface card and outer net network interface card, CPU also comprises, intranet data processing module, in the time that data are transmitted to outer net by Intranet, receives the data of Intranet network interface card, after data are processed, store data in memory cell; In the time that data are transmitted to Intranet by outer net, take out data from memory cell, after data are processed, send data to Intranet network interface card; Outer net data processing module, in the time that data are transmitted to outer net by Intranet, takes out data from memory cell, after data are processed, sends data to outer net network interface card; In the time that data are transmitted to Intranet by outer net, receive the data of outer net network interface card, after data are processed, store data in memory cell.
Gateway system comprises interface circuit, for example RS-485 serial ports, and interface circuit is connected with external test arrangements, for regularly gateway system being tested.
Embodiment bis-
In order to realize the object that reduces the system cycle time, gateway system adopts the mode of multi-process to process.
When data flow from Intranet to outer net, Intranet process process receives SN4 packet from Intranet network interface card, after algorithm process, preserves into the assigned address in shared drive.Outer net process reads out data from shared drive, is combined into outer net packet, is sent to external system by Industrial Ethernet.
When data flow from outer net to Intranet, outer net process receives UDP message from outer net network interface card, after checking treatment, data is preserved into shared drive.Intranet process is taken out data from shared drive, after algorithm process, is combined into the SN4 packet that meets SN4 agreement, is sent to safe level system.
Receive after data, first save the data in a region of shared drive, then data are processed, data after treatment are kept in another region of shared drive, while sending data, take out treated data, data are combined into the packet that meets host-host protocol, then send.
Adopt the design of multi-process, the time of implementation in cycle of gateway system can be divided into two parts.
The Intranet process processing time
Response time: T=150ms;
The poorest response time: Tmax=2 × T=300ms;
The outer net process processing time
Response time: T=100ms;
The poorest response time: Tmax=2 × T=200ms;
, whole gateway system periodic response time T=150ms+100ms=250ms
MELTEC gateway system with respect to Mitsubishi saved for 50% time.
Adopt the design of two processes, each process only realizes single function, adopts the design of shared drive to carry out data communication between two processes again.Functional independence between two processes, does not interact, and can reach the object that reduces the periodic duty time.
Between gateway system and safe level protection system, communicate by proprietary SN4 communications protocol, the physical layer of SN4 agreement and data link layer are followed IEEE802.3 standard, have adopted three layers in osi model, respectively: ground floor, physical layer; The second layer, data link layer; Layer 7, application layer.Transmit leg and the recipient of SN4 network use asynchronous communication means.Transmit leg sends out one group of SN4 message totally three packets continuously.Each packet only sends once, and in whole process, recipient does not need to reply.The packet of each cycle communication is fixed as three, and form and the length of each packet are fixed, and each packet comprises at most the data of 1000 bytes, the maximum data of totally 3000 bytes that send of each cycle.
Adopt this SN4 agreement, in the data transmission procedure of one-period, if a packet occurs extremely, only in this packet, the quality position of data is set to false, and the data in other two packets are still normal.Reduce like this in data transmission procedure due to the impact extremely causing.
In the time that gateway system need to be tested, gateway system is connected with engineer station by RS-485 serial ports, engineer station's upper operation special-purpose software and gateway carry out communication.Tester can select to monitor the specification signal data in gateway system normal course of operation by software, can also send mandatory modification signal instruction and change to gateway system the signal data of appointment, check whereby whether operation result meets, thereby realize the function of test.
Gateway system is supported the transmission of seven kinds of data, and the structure of shared drive is also 4 parts according to the different designs of data length, totally 1000 data blocks, and number interval of every kind of block is fixed.Each Block data block can be stored 20 data, is numbered 0~19.Block shared drive is to exist with the form of shared drive in gateway running, for the data communication between two processes.
Simultaneously, in order to ensure fail safe and the data consistency design of shared drive, whole Block shared drive is adopted to the design that distributes mutual exclusion lock, mutual exclusion lock adopts (SuSE) Linux OS mutual exclusion lock mechanism, define a mutual exclusion variable, by locking and separating the operated exclusive reference of realizing shared drive mutual exclusion lock variable.

Claims (4)

1. a data transmission method for gateway system, is characterized in that: comprises and receives data and send data,
Reception data comprise: gateway system is processed data after receiving data, save data;
Transmission data comprise: take out the data of having preserved, data are processed to rear transmission again;
The process that receives data is carried out with the process that sends data simultaneously, and functional independence between two processes, does not interact;
The Data Transport Protocol that transmission data acquisition is used is not identical with the Data Transport Protocol that reception data acquisition is used; Described gateway system is for the transfer of data between safe level system and non-security level system, while carrying out transfer of data with non-security level system, adopt udp protocol, between described gateway system and safe level system, communicate by proprietary SN4 agreement, the physical layer of SN4 agreement and data link layer are followed IEEE802.3 standard, three layers in osi model are adopted, respectively: ground floor, physical layer; The second layer, data link layer; Layer 7, application layer, transmit leg and the recipient of SN4 network use asynchronous communication means, and transmit leg sends out one group of SN4 message totally three packets continuously, and each packet only sends once, and in whole process, recipient does not need to reply;
When data are transmitted to non-security level system by safe level system, gateway system receives the data of safe level system, and data are carried out after algorithm process, stores data in the memory cell of gateway system; Meanwhile, take out data from memory cell, after data are processed, send data to non-security level system;
When data are transmitted to safe level system by non-security level system, gateway system receives the data of non-security level system, and data are carried out verification and after algorithm process, stored data in the memory cell of gateway system; Meanwhile, take out data from memory cell, after data are processed, send data to safe level system;
The packet of each transmission data is fixed as three, and each packet comprises at most the data of 1000 bytes, judges that according to the quality position of data in packet whether packet is correct, abandons incorrect packet.
2. data transmission method according to claim 1, is characterized in that: be connected with external test facility by described gateway system, regularly logarithm is reportedly input into row test.
3. execute claims a gateway system for method described in 1, comprise CPU, memory cell, Intranet network interface card and outer net network interface card, it is characterized in that: CPU also comprises,
Intranet data processing module, in the time that data are transmitted to outer net by Intranet, receives the data of Intranet network interface card, after data are processed, stores data in memory cell; In the time that data are transmitted to Intranet by outer net, take out data from memory cell, after data are processed, send data to Intranet network interface card;
Outer net data processing module, in the time that data are transmitted to outer net by Intranet, takes out data from memory cell, after data are processed, sends data to outer net network interface card; In the time that data are transmitted to Intranet by outer net, receive the data of outer net network interface card, after data are processed, store data in memory cell;
Wherein, Intranet is safe level grid, and outer net is non-security level system network.
4. gateway system according to claim 3, is characterized in that: described gateway system comprises interface circuit, and described interface circuit is connected with external test arrangements, for regularly gateway system being tested.
CN201010033627.9A 2010-01-07 2010-01-07 Data transmission method for gateway system, and gateway system Active CN102123110B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010033627.9A CN102123110B (en) 2010-01-07 2010-01-07 Data transmission method for gateway system, and gateway system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010033627.9A CN102123110B (en) 2010-01-07 2010-01-07 Data transmission method for gateway system, and gateway system

Publications (2)

Publication Number Publication Date
CN102123110A CN102123110A (en) 2011-07-13
CN102123110B true CN102123110B (en) 2014-09-10

Family

ID=44251566

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010033627.9A Active CN102123110B (en) 2010-01-07 2010-01-07 Data transmission method for gateway system, and gateway system

Country Status (1)

Country Link
CN (1) CN102123110B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102760504B (en) * 2012-07-24 2015-11-25 中广核工程有限公司 The digital control system of the full brand-name computer group of nuclear power station and non-core level control system, method
CN104020758B (en) * 2014-05-28 2016-06-01 中广核核电运营有限公司 Gateway communication abnormality self-diagnosing method and system in Nuclear power plants dcs
CN104333546A (en) * 2014-10-24 2015-02-04 北京捷成世纪科技股份有限公司 Data transmission isolation method and data transmission isolation device based on SDI (serial digital interface) bus
CN104580461B (en) * 2015-01-07 2019-03-01 四川航天拓鑫玄武岩实业有限公司 A kind of communication means of more hosts and more slaves
CN108462679B (en) * 2017-02-21 2021-06-04 杭州海康威视数字技术股份有限公司 Data transmission method and device
CN106972969A (en) * 2017-03-31 2017-07-21 中国核动力研究设计院 The network isolating device and its method of a kind of nuclear power plant
CN107689914A (en) * 2017-08-28 2018-02-13 深圳通业科技股份有限公司 A kind of communication means for the Multifunctional gateway for supporting TRDP agreements
CN112565161A (en) * 2019-09-25 2021-03-26 北京桔智物联科技有限责任公司 Isolated communication equipment and method based on serial port

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1430373A (en) * 2002-12-09 2003-07-16 武汉柯创高新技术开发中心 Network isolating card
CN1549493A (en) * 2003-05-23 2004-11-24 联想(北京)有限公司 Network safety system of computer network and controlling method thereof

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1430373A (en) * 2002-12-09 2003-07-16 武汉柯创高新技术开发中心 Network isolating card
CN1549493A (en) * 2003-05-23 2004-11-24 联想(北京)有限公司 Network safety system of computer network and controlling method thereof

Also Published As

Publication number Publication date
CN102123110A (en) 2011-07-13

Similar Documents

Publication Publication Date Title
CN102123110B (en) Data transmission method for gateway system, and gateway system
CN105450489B (en) The preferential efficient field bus systems of HEBus and communication means for realizing most short message of output
CN102664719B (en) Distributed secure transmission method applied to distributed control system (DCS)
US11016463B2 (en) Control and data-transfer system, gateway module, I/O module, and method for process control
CN204089874U (en) A kind of switch supporting packet storage
CN102821050A (en) Processing method for applying rapid spanning tree protocol to monocyclic network topology
CN107484261A (en) One kind is based on 433MHz wireless self-networking methods
CN102970157A (en) Link failure processing method, intelligent resilient framework (IRF) member device and data communication device
CN110493775A (en) The communication means and system being adapted to by ATT and abnormality processing
CN102594643A (en) Method, device and system for controlling bus communication of controller area network
CN107567107A (en) A kind of method and device for transmitting data
CN101552725B (en) Recovery processing method, system and apparatus of aggregation sublink
CN104539587A (en) Thing access and group interaction method used for Internet of things
CN206470580U (en) safety programmable logic controller communication system
CN108155933A (en) A kind of method for realizing safety level DCS communication isolatings
CN106559230A (en) A kind of fault handling method, apparatus and system
CN101944986A (en) Double network hot standby method
CN108462537B (en) Method for realizing one-master multi-slave communication
CN102598593A (en) Addressing method and communication network with such an addressing method
CN100505574C (en) Master and slave converting method for communication link circuit
CN104753723B (en) The board resetting method, apparatus and equipment of a kind of baseband processing unit
CN109068328A (en) Secure network communication method, terminal and system
CN109194555A (en) A kind of improved moonlet data transmission subsystem bus scheduling system
CN115657646B (en) Test method and device of CAN controller
CN107911288B (en) Train communication network card and train control management system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent for invention or patent application
CB02 Change of applicant information

Address after: 100084 No. 1, Nongda South Road, No. 9, bright city, Silicon Valley, Beijing, Haidian District

Applicant after: Beijing Guangli Nuclear Power Co., Ltd.

Applicant after: China General Nuclear Power Corporation

Address before: 100084 No. 1, Nongda South Road, No. 9, bright city, Silicon Valley, Beijing, Haidian District

Applicant before: Beijing Guangli Nuclear Power Co., Ltd.

Applicant before: China Guangdong Nuclear Power Group Co., Ltd.

C14 Grant of patent or utility model
GR01 Patent grant