CN103051488B - A communication system is the real time monitoring of a terminal for detecting transmission - Google Patents

A communication system is the real time monitoring of a terminal for detecting transmission Download PDF

Info

Publication number
CN103051488B
CN103051488B CN201110313152.3A CN201110313152A CN103051488B CN 103051488 B CN103051488 B CN 103051488B CN 201110313152 A CN201110313152 A CN 201110313152A CN 103051488 B CN103051488 B CN 103051488B
Authority
CN
China
Prior art keywords
layer
tcp
communication system
terminal
communication
Prior art date
Application number
CN201110313152.3A
Other languages
Chinese (zh)
Other versions
CN103051488A (en
Inventor
孙新秋
Original Assignee
上海欣影电力科技发展有限公司
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 上海欣影电力科技发展有限公司 filed Critical 上海欣影电力科技发展有限公司
Priority to CN201110313152.3A priority Critical patent/CN103051488B/en
Publication of CN103051488A publication Critical patent/CN103051488A/en
Application granted granted Critical
Publication of CN103051488B publication Critical patent/CN103051488B/en

Links

Abstract

本发明涉及一种用于输电监测终端实时在线状态检测的通信系统,该通信系统基于TCP/IP协议栈,包括传输层、应用层、网络层和链路层,所述的通信系统在TCP/IP协议栈的传输层与应用层之间增加一适配层,用于对数据包进行组包和解包,传输层可采用TCP协议进行通信。 The present invention relates to a power transmission system to monitor a communication terminal for the real time detection, the communication system is based on TCP / IP protocol stack includes a transport layer, application layer, network layer and link layer of the communication system in the TCP / increasing the transport protocol stack between the IP layer and application layer an adaptation layer for data packets pack and unpacking, transport layer may be TCP protocol. 与现有技术相比,本发明采用TCP方式通信,状态检测可靠,可采用原有的UDP方式通信,与现有设备兼容性好。 Compared with the prior art, the present invention uses TCP communication state detection reliable, the original UDP communicate employed, good compatibility with existing equipment.

Description

一种用于输电监测终端实时在线状态检测的通信系统 A communication system is the real time monitoring of a terminal for detecting transmission

技术领域 FIELD

[0001] 本发明涉及一种通信系统,尤其是涉及一种用于输电监测终端实时在线状态检测的通信系统。 [0001] The present invention relates to a communication system, particularly to a communication system, the real time detection terminal for monitoring the transmission.

背景技术 Background technique

[0002] 在目前输电监测终端的通信方案中,监测终端与主站系统的通信主要采用UDP方式通信。 [0002] In the present embodiment the transmission monitoring communication terminal, the communication terminal with the master monitor system is mainly the use of UDP communication. 监测终端在自动苏醒或被外部事件触发苏醒后,需要周期性地向主站系统发送心跳报文以便主站认为监测终端处于在线状态,如果连续多个(一般是三个心跳周期)监测终端没有向主站上传任何数据或心跳报文,主站便将监测终端标记为离线状态。 After the monitoring terminal or external event trigger automatic wake wake up, to the need to periodically send a heartbeat message master system for monitoring the master station that the terminal is online, if a plurality of successive (usually three heartbeat period) is not monitoring terminal any data upload or heartbeat message to the master station, the master station monitors put terminal marked offline.

[0003] 这种方案的优点是监测数据构成简单,一个UDP报文就是一个或一组监测数据,因此提取数据非常方便,但缺点也很明显: Advantages [0003] This solution is simple configuration monitoring data, a packet is a UDP or a group monitoring data, data extraction is very convenient, but the disadvantage is also obvious:

[0004] 1)监测终端在线状态不可靠,存在终端“假在线”状态。 [0004] 1) monitoring the state of the terminal line is unreliable, the terminal is present "fake online" state.

[0005] 由于主站需要连续N个心跳周期没有收到监测终端的数据或心跳报文,才将监测终端标记为离线状态。 [0005] Since the primary station requires N successive heartbeat period monitoring terminal does not receive data or heartbeat message, it will monitor the flag terminal is offline. 那么,在监测终端发送完最后一条数据报文(或心跳报文)后,转入休眠状态(如图1中的Trs点,表示T_real_sleep),则从此刻开始至主站将监测终端标记为“休眠”的时刻点(如图1中的Ts点,表示T_sle印),存在至少N-1个心跳周期的“假在线”时间T,大约2.4个心跳周期。 Then, after sending the last data packet (or heartbeat message) monitoring terminal, go to sleep (Trs point in FIG. 1, showing T_real_sleep), from this moment to the master station will monitor terminal labeled " sleep "point in time (Ts point in Figure 1 represents T_sle printed), at least the N-1 heart cycle" false line "time T, the heartbeat period of approximately 2.4. 因此,监测终端在线状态不准确的缺陷(存在假在线状态)是先天性的。 Thus, monitoring the state of the terminal is not accurate defect line (line of false state) is congenital.

[0006] 2)大数据量传输时,应用层通信协议复杂。 When the [0006] 2) large amount of data transfer, the application layer communication protocol complexity.

[0007] 比较典型的使用实例是远程图像数据的上传,在南方电网公司《南方电网输电线路灾害预警系统通信规约》、国家电网公司《输电线路状态监测装置通用技术规范》附录C《应用层数据传输规约》都占用了不少篇幅用于描述如何请求上传图片、如何发送图片数据、如何标记图片结束以及如何发送补包内容等,另有超时、补包等状态管理,比较复杂。 [0007] The typical examples of the use upload remote image data, in the south grid company "Southern Transmission Line Disaster Warning System communication protocol", SGCC "transmission line device for monitoring general technical specifications" Appendix C "application layer data transmission protocol "occupies a lot of space for describing how to request upload pictures, how to send picture data, how to mark the end of the picture, and how to send up the package contents, and another timeout, make up bag and other state management more complex.

发明内容 SUMMARY

[0008] 本发明的目的就是为了克服上述现有技术存在的缺陷而提供一种用于输电监测终端实时在线状态检测的通信系统,该通信系统采用TCP方式通信,状态检测可靠,可采用原有的UDP方式通信,与现有设备兼容性好。 [0008] The object of the present invention is to solve the problems of the prior art described above and to provide a power transmission terminal monitoring the real time communication system for the detection of the communication system uses TCP communication state detection reliable, the original may be employed UDP mode of communication, good compatibility with existing equipment.

[0009] 本发明的目的可以通过以下技术方案来实现: [0009] The object of the present invention can be achieved by the following technical solution:

[0010] 一种用于输电监测终端实时在线状态检测的通信系统,该通信系统基于TCP/IP协议栈,包括传输层、应用层、网络层和链路层,其特征在于,所述的通信系统在TCP/IP协议栈的传输层与应用层之间增加一适配层,用于对数据包进行组包和解包,传输层可采用TCP协议进行通信。 [0010] A power transmission terminal monitoring the real time communication system for the detection of the communication system based on TCP / IP protocol stack includes a transport layer, application layer, the network layer and link layer, wherein said communication the system increases between TCP / IP protocol stack of a transport layer and application layer adaptation layer for data packets pack and unpacking, transport layer may be TCP protocol.

[0011] 传输层采用TCP协议进行通信时,其报文边界通过IETF RFC1055文件确定;传输层采用UDP协议进行通信时,所述的适配层对于原监测系统通信协议不起作用,使其与现有设备有很好的兼容性。 When [0011] using TCP transport layer protocol for communication, which is determined by the packet boundaries IETF RFC1055 document; when the transport layer protocol for communication using UDP, the adaptation layer protocol for the original monitoring system does not work, and it existing equipment has good compatibility.

[0012] 与现有技术相比,本发明具有以下优点: [0012] Compared with the prior art, the present invention has the following advantages:

[0013] 1)由于采用面向连接的TCP协议通信,不存在“假在线”时间; [0013] 1) Since the connection-oriented TCP communication protocol, there is no "false line" time;

[0014] 2)如果监测终端需长时间连续在线(不休眠),采用UDP方式会不断产生数据流量,而采用本发明提供的方式,不需要产生任何附加流量就可以让监测终端连续在线,因此可以节约监测系统的运营成本。 [0014] 2) If the terminal needs to monitor the long-term continuous line (no sleep), the use of UDP traffic will continue to produce, and the use of the present invention provides, does not require any additional flow monitoring terminal can make a continuous line, thus monitoring systems can save operating costs.

[0015] 3)本发明只需要对现有监测系统软件进行少量修改,对不需要改变监测系统的任何硬件设施。 [0015] 3) The present invention requires only minor modifications to the existing monitoring system software, without changing any hardware monitoring system.

[0016] 4)在需要使用UDP方式通信时,适配层对原监测系统通信协议不起作用,使其与现有设备有很好的兼容性。 [0016] 4) when required for use UDP communication mode, adaptation layer protocol on the original monitoring system does not work, it has good compatibility with existing equipment.

附图说明 BRIEF DESCRIPTION

[0017] 图1为现有通信系统中假在线状态示意图; [0017] FIG. 1 is a conventional communication system online schematic prosthesis;

[0018] 图2为现有通信系统中TCP/IP协议栈的结构示意图; [0018] FIG 2 is a conventional communication system, TCP / IP protocol stack structure diagram;

[0019] 图3为本发明通信协议栈的结构示意图。 Schematic configuration [0019] FIG. 3 of the present invention, a communication protocol stack.

具体实施方式 Detailed ways

[0020] 下面结合附图和具体实施例对本发明进行详细说明。 Drawings and specific embodiments of the present invention will be described in detail [0020] below in conjunction.

[0021] 实施例 [0021] Example

[0022] 如图3所示,一种用于输电监测终端实时在线状态检测的通信系统,该通信系统基于TCP/IP协议栈,包括应用层1、传输层2、网络层3、链路层4以及区别于现有技术(如图2所示)的适配层5,该适配层设在TCP/IP协议栈的传输层2与应用层1之间。 [0022] As shown a transmission terminal monitoring the real time communication system for the detection of the communication system based on TCP / IP protocol stack, including an application layer, transport layer 2, network layer 3, a link layer 3 4 and is different from the prior art (FIG. 2) adaptation layer 5, the adaptation layer is provided between the TCP / IP protocol stack is the application layer and the transport layer 2 1. 在通信时,传输层2采用UDP协议进行通信,其报文边界通过IETFRFC1055文件确定,由于TCP协议具有面向连接的通信协议,可以有效解决现有技术中采用UDP通信时存在“假在线”问题。 When communication using UDP transport layer 2 protocol to communicate, which is determined by the packet boundaries IETFRFC1055 file, since a communication protocol TCP connection-oriented protocol, can effectively solve the problems "false line" prior art problems when using UDP communication. 当传输层需要采用UDP协议进行通信时,所述的适配层对于原监测系统通信协议不起作用,使其与现有设备有很好的兼容性。 When the transport layer is UDP protocol need to communicate, the adaptation layer protocol for the original monitoring system does not work, it has good compatibility with existing equipment.

[0023] 如果监测终端需长时间连续在线(不休眠),采用UDP方式会不断产生数据流量,而采用本发明提供通信系统,不需要产生任何附加流量就可以让监测终端连续在线,因此可以节约监测系统的运营成本,而且本发明对现有监测系统软件进行少量修改,对不需要改变监测系统的任何硬件设施即可实施。 [0023] If the terminal needs to monitor successive time-line (no sleep), will continue to produce the use of UDP traffic, the present invention provides a communication system, does not require any additional flow monitoring terminal can make a continuous line, so you can save monitoring system operating costs, but the present invention to make slight modifications to the existing monitoring system software, without changing any hardware monitoring system can be implemented.

Claims (1)

1.一种用于输电监测终端实时在线状态检测的通信系统,该通信系统基于TCP/IP协议栈,包括依次配置的应用层、传输层、网络层和链路层,其特征在于,所述的通信系统在TCP/IP协议栈的传输层与应用层之间增加一适配层,用于对数据包进行组包和解包,传输层采用TCP协议进行通信;传输层采用TCP协议进行通信时,其报文边界通过IETF RFC1055文件确定,传输层采用UDP协议进行通信时,所述的适配层对于原监测系统通信协议不起作用。 A power transmission terminal monitoring the real time communication system for the detection of the communication system based on TCP / IP protocol stack includes an application layer, transport layer, network layer and link layer are sequentially disposed, wherein said when using TCP transport layer protocol for communication; communication system increases between TCP / IP protocol stack of a transport layer and application layer adaptation layer for data packets pack and unpack, the transport layer protocol to communicate using TCP which packet boundaries file is determined by IETF RFC1055, when UDP transport layer protocol to communicate using said adaptation layer protocol for the original monitoring system ineffective.
CN201110313152.3A 2011-10-16 2011-10-16 A communication system is the real time monitoring of a terminal for detecting transmission CN103051488B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110313152.3A CN103051488B (en) 2011-10-16 2011-10-16 A communication system is the real time monitoring of a terminal for detecting transmission

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110313152.3A CN103051488B (en) 2011-10-16 2011-10-16 A communication system is the real time monitoring of a terminal for detecting transmission

Publications (2)

Publication Number Publication Date
CN103051488A CN103051488A (en) 2013-04-17
CN103051488B true CN103051488B (en) 2016-04-13

Family

ID=48063993

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110313152.3A CN103051488B (en) 2011-10-16 2011-10-16 A communication system is the real time monitoring of a terminal for detecting transmission

Country Status (1)

Country Link
CN (1) CN103051488B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106647628B (en) * 2016-12-26 2019-01-04 华中科技大学 G code executes the real-time collecting method of status data in a kind of NC Machining Process

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101371555A (en) * 2005-12-29 2009-02-18 艾利森电话股份有限公司 Method and device for generating and sending signaling messages
CN101645799A (en) * 2009-08-12 2010-02-10 保定市三川电气有限责任公司 Sending method, receiving method and equipment of digital communication
CN101958835A (en) * 2010-09-28 2011-01-26 深圳中兴力维技术有限公司 Data transmission method and logic network adapter

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101513095A (en) * 2006-06-09 2009-08-19 泰克莱克公司 Methods, systems, and computer program products for managing congestion in a multi-layer telecommunications signaling network protocol stack

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101371555A (en) * 2005-12-29 2009-02-18 艾利森电话股份有限公司 Method and device for generating and sending signaling messages
CN101645799A (en) * 2009-08-12 2010-02-10 保定市三川电气有限责任公司 Sending method, receiving method and equipment of digital communication
CN101958835A (en) * 2010-09-28 2011-01-26 深圳中兴力维技术有限公司 Data transmission method and logic network adapter

Also Published As

Publication number Publication date
CN103051488A (en) 2013-04-17

Similar Documents

Publication Publication Date Title
US20120188928A1 (en) Method for maintaining connection between terminal and network server, terminal and network server
WO2014101501A1 (en) Nat implementation system, method, and openflow switch
CN103081560A (en) Method and system for repackaging wireless data
EP2267983A3 (en) Systems and methods for providing link management in a multi-core system
CN1863074A (en) System and method for implementing OAM function of ethernet and multi-protocol tag exchange network
WO2006128147A3 (en) Systems and methods for a fault tolerant voice-over-internet protocol (voip) architecture
CN104252136B (en) Intelligent home control system and method
CA2629703A1 (en) Configuration of ip telephony and other systems
US8234510B2 (en) System and method for energy savings through emulation of wake on LAN in energy efficient ethernet
WO2012125980A8 (en) Scalable communication system
CN101216800A (en) LINUX log controller and method
CN103064374A (en) Household energy consumption monitoring system based on internet of things technology
WO2010120303A3 (en) Managing shared content in virtual collaboration systems
CN103685241A (en) Adaptive heartbeat method and adaptive heartbeat system for maintaining long connection of TCP (transmission control protocol)
CN102685237B (en) Method for requesting session maintaining and dispatching in cluster environment
CN101247270A (en) System and method for implementing bidirectional forwarding detection
CN1848756A (en) Method for managing fault of Ethernet and multi-protocol tag exchange network interconnection
CN101882369B (en) Remote real-time monitoring system for electric power system client side meter
WO2010013469A1 (en) Tcp transmission control device and tcp transmission control method
CN101764809A (en) Satellite test data collection framework system
CN101316271B (en) Method for implementing information backup, fire wall and network system
CN103729806B (en) One kind of alarm system to minimize substation gateway graphical its implementation method
CN101714991B (en) Method for realizing heartbeat mechanism
CN102084634B (en) Optimized selection of transmission protocol respecting thresholds
CN102710484A (en) Ring redundant real-time Ethernet communication method

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
C14 Grant of patent or utility model