[go: up one dir, main page]

CN106131003B - Service primitive description-based method for identifying service between main station and sub station - Google Patents

Service primitive description-based method for identifying service between main station and sub station Download PDF

Info

Publication number
CN106131003B
CN106131003B CN201610514982.5A CN201610514982A CN106131003B CN 106131003 B CN106131003 B CN 106131003B CN 201610514982 A CN201610514982 A CN 201610514982A CN 106131003 B CN106131003 B CN 106131003B
Authority
CN
China
Prior art keywords
service
primitive
data unit
description information
request data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610514982.5A
Other languages
Chinese (zh)
Other versions
CN106131003A (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 Electric Power Research Institute Co Ltd CEPRI
State Grid Jibei Electric Power Co Ltd
State Grid Corp of China SGCC
Original Assignee
China Electric Power Research Institute Co Ltd CEPRI
State Grid Jibei Electric Power Co Ltd
State Grid Corp of China SGCC
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 Electric Power Research Institute Co Ltd CEPRI, State Grid Jibei Electric Power Co Ltd, State Grid Corp of China SGCC filed Critical China Electric Power Research Institute Co Ltd CEPRI
Priority to CN201610514982.5A priority Critical patent/CN106131003B/en
Publication of CN106131003A publication Critical patent/CN106131003A/en
Application granted granted Critical
Publication of CN106131003B publication Critical patent/CN106131003B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • 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/22Parsing or analysis of headers

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Multimedia (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Telephonic Communication Services (AREA)

Abstract

本发明提出一种基于服务原语描述的主子站间服务辨识方法,包括:为服务原语添加描述信息;服务访问双方通过服务原语中的描述信息识别服务交互数据内容;其中,所述服务交互数据包括服务请求数据单元和服务响应数据单元。通过增加服务原语中的描述信息识别交互数据的方法,提高了主子站间数据服务的自描述能力,数据交互双方可动态访问并交互数据而不需预先约定,极大地增强了子站服务扩展能力。

Figure 201610514982

The present invention proposes a service identification method between master and substations based on service primitive description, which includes: adding description information to the service primitive; service access two parties identify service interaction data content through the description information in the service primitive; wherein, the service The interaction data includes service request data units and service response data units. By adding the description information in the service primitive to identify the interactive data, the self-describing ability of the data service between the main and sub-stations is improved, and both parties of the data interaction can dynamically access and exchange data without pre-settlement, which greatly enhances the service expansion of the sub-stations. ability.

Figure 201610514982

Description

Service primitive description-based method for identifying service between main station and sub station
Technical Field
The invention belongs to the technical field of power dispatching automation, and particularly relates to a method for identifying service between a master station and a slave station based on service primitive description.
Background
The construction of the ultra-high voltage power grid enables the national power grid to become the power grid with the highest voltage level, the largest transmission capacity, the most advanced technical level and the most complex operation characteristics in the world, the existing form of the national power grid is fundamentally changed, and the structure, the power supply structure, the operation characteristics, the balance pattern and the external environment of the power grid are deeply changed. Various kinds of power grid data have become the data core of the work of each business department in the aspects of power transformation, power generation and scheduling, and are also the basis of system operation, and the information amount still keeps a remarkable increasing trend. In addition, the application types and business departments supported by each system in the field of electric network automation are gradually expanded, the system data service applications are gradually increased, and the calculation and analysis functions gradually and comprehensively go on line, so that a large number of data service functions exist among the systems, and the conventional service-oriented system architecture lacks the self-description capability of service information and has poor capability of expanding newly-added or changed services. Therefore, the data service access mode between the dispatch control center and the data service sub-station faces a significant challenge.
Disclosure of Invention
In order to meet the above requirements, the present invention provides a method for identifying services between a master station and a slave station based on service primitive description, so as to implement automatic identification of data services between the master station and the slave station of a scheduling system, and have a dynamic analysis capability for access data.
The purpose of the invention is realized by adopting the following technical scheme:
a method for identifying service between a master station and a slave station based on service primitive description comprises the following steps:
(1) adding description information for the service primitive;
(2) the service access parties identify the service interaction data content through the description information in the service primitive; the service interaction data comprises a service request data unit and a service response data unit.
Preferably, in the step (1), description information is added to the service primitive, that is, parameters of the service primitive are described on the basis of a standard service primitive, and the service primitive carrying the description information is forwarded to the service requester through the front-end server;
after receiving the service primitive carrying the description information, the service requester writes the service primitive carrying the description information into a service request data unit header, writes the service request data into a service request data unit body one by one according to the sequence of input parameters in the service primitive, and sends the service request data unit to a front-end server; the description information comprises input parameters, output parameters and parameter type identifications.
Further, the service primitive carrying the description information is issued by a service provider or obtained by a service requester by using a service query mechanism preset by both service access parties.
Preferably, the step (2) of identifying the service interaction data content comprises: the front-end server acquires the service name of the service primitive and forwards the service name and the service request data unit to a corresponding service provider; and after receiving the service request data unit, the service provider analyzes the service request data unit.
Further, parsing the service request data unit includes: and the service provider reads the service primitives according to the sequence of the input parameters in the service primitives, writes the response data into the service response data unit one by one according to the sequence of the output parameters in the service primitives, and returns the service response data unit to the service requester through the front-end server.
Further, the data unit structure of the service response data unit is the same as the structure of the service request data unit;
and after receiving the service response data unit, the service requester identifies the unit according to the sequence of the output parameters in the service primitive to acquire a response result.
Compared with the closest prior art, the invention has the following beneficial effects:
the method is characterized in that on the basis of standard service primitives, input, output and parameter type identifiers in the description primitives are added, service access information is identified by expanding the service primitives of the description information, service data is exchanged by using an access data body with the description information of the service primitives, and finally, the service access data is forwarded to a service provider by a front end of the service provider for analysis processing. The self-identification of the data service information and the dynamic analysis capability of the access data between the main stations and the sub stations are achieved; therefore, the self-description capability of the data service between the main station and the sub-station is improved, so that both data interaction parties can dynamically access and interact data without presetting the data format of the exchange, and the service expansion capability of the sub-stations is greatly enhanced.
Drawings
FIG. 1 is a general flowchart of a method for identifying services between a master station and a slave station according to the present invention;
FIG. 2 is a flow diagram of a method for identifying service interaction data content provided in an embodiment of the present invention;
FIG. 3 is a diagram illustrating a structure of a service request data unit provided in an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a service response data unit provided in an embodiment of the present invention.
The specific implementation mode is as follows:
the application of the service-oriented architecture between the power systems provides support for information data interaction in a service mode, but the conventional service-oriented architecture requires that two interaction parties need to know service definition information in advance or make a prearrangement, and along with the continuous expansion of the application requirements of future services, the data service functions of substations are continuously increased, and the service predefinition and access complexity is higher and higher. The invention relates to a method for identifying service between a main station and a sub station based on service primitive description, which identifies service access data by adding description information in service primitives, adds service primitive description content at the head of the service access data to enable the service provider front end to identify the requested service, and finally forwards the service access data to the service provider by the service provider front end for analysis processing. The method of the invention improves the self-description capability of the data service between the main station and the sub-station, and both sides of the data interaction can dynamically access and carry out the data interaction without the prior agreement, thereby greatly enhancing the service expansion capability of the sub-station. As shown in fig. 1, the method comprises the steps of:
(1) adding description information for the service primitive;
service Primitive (GSSP): the interface between the user and the protocol entity is actually a piece of program code, but it is not divisible. The communication between the service user and the service provider can be realized by means of service primitives, which are used for the service provider and the service user, in contrast to the protocol, which is used for the communication between the service users. The concept of the universal safety service primitive is oriented to callers of different protocol layers.
In the same open system, when (N +1) entity requests service to N entity, information interaction is needed between service user and service provider, and the interacted information is called as service primitive; the service primitive is composed of two parts, a service action and a primitive type.
There are only 4 types of service primitives, including:
requesting (Request) a user entity to Request the service to do a work source (N +1) entity- > source (N) entity;
indicating (Indication) that the user entity is informed of some event occurrence destination (N) entity- > destination (N +1) entity;
the responding (Response) user entity represents the responding destination (N +1) entity- > destination (N) entity for an event;
confirm (Confirm) that the user entity received a reply source (N) entity- > source (N +1) entity to its request.
The switching sequence of service primitives is called service authentication mode, and different authentication modes require different primitive types, but all the primitive types are in the above 4 types.
In the step (1), description information is added for the Service primitive, namely, the parameters of the Service primitive are described on the basis of the standard Service primitive Service A primitive Service B primitive, and the Service primitive carrying the description information is forwarded to a Service requester through a front-end server;
after receiving the service primitive carrying the description information, the service requester writes the service primitive carrying the description information into a service request data unit header, writes the service request data into a service request data unit body one by one according to the sequence of input parameters in the service primitive, and sends the service request data unit to a front-end server; the description information comprises input parameters, output parameters and parameter type identifications.
The service primitive carrying the description information is issued by a service provider or acquired by a service requester by adopting a service query mechanism preset by both service access parties.
As shown in fig. 2, (2) both sides of service access identify the service interaction data content through the description information in the service primitive; as shown in fig. 3 and 4, the service interaction data includes a service request data unit and a service response data unit.
The step (2) of identifying the service interaction data content comprises: the front-end server acquires the service name of the service primitive and forwards the service name and the service request data unit to a corresponding service provider A or a service provider B; and after receiving the service request data unit, the service provider analyzes the service request data unit.
Parsing the service request data unit includes: and the service provider reads the service primitives according to the sequence of the input parameters in the service primitives, writes the response data into the service response data unit one by one according to the sequence of the output parameters in the service primitives, and returns the service response data unit to the service requester through the front-end server.
The data unit structure of the service response data unit is the same as the structure of the service request data unit;
and after receiving the service response data unit, the service requester identifies the unit according to the sequence of the output parameters in the service primitive to acquire a response result.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting the same, and although the present invention is described in detail with reference to the above embodiments, those of ordinary skill in the art should understand that: modifications and equivalents may be made to the embodiments of the invention without departing from the spirit and scope of the invention, which is to be covered by the claims.

Claims (1)

1.一种基于服务原语描述的主子站间服务辨识方法,其特征在于,所述方法包括下述步骤:1. a service identification method between main and sub-stations described based on service primitive, is characterized in that, described method comprises the following steps: (1)为服务原语添加描述信息;(1) Add description information to the service primitive; 服务原语(GSSP):用户和协议实体间的接口,是一段程序代码,具有不可分割 性;通过服务原语实现服务用户和服务提供者间的交流,与协议不同的是,服务原语用于 服务提供者与服务用户,而协议是用于服务用户之间的通信;通用安全服务原语的概念,面向不同协议层次的调用者;Service Primitive (GSSP): The interface between the user and the protocol entity is a piece of program code, which is inseparable; the communication between the service user and the service provider is realized through the service primitive. It is for service providers and service users, and the protocol is used for communication between service users; the concept of general security service primitives is oriented to callers of different protocol levels; 在同一开放系统中,(N+1)实体向N实体请求服务时,服务用户和服务提供者之间需 要进行信息交互,交互的信息称为服务原语;所述服务原语由服务动作和原语类型两部分组成;In the same open system, when the (N+1) entity requests services from the N entity, the service user and the service provider need to exchange information, and the exchanged information is called service primitives; the service primitives are composed of service actions and service providers. The primitive type consists of two parts; 服务原语的交换时序称为服务证实方式,不同的证实方式需要的原语类型有区别;The exchange sequence of service primitives is called service verification mode, and different verification methods require different types of primitives; (2)服务访问双方通过服务原语中的描述信息识别服务交互数据内容;其中,所述服务交互数据包括服务请求数据单元和服务响应数据单元; (2) Both service access parties identify the service interaction data content through the description information in the service primitive; wherein, the service interaction data includes a service request data unit and a service response data unit; 所述步骤(1)中,为服务原语添加描述信息,即在标准服务原语的基础上对服务原语的参数进行描述,并通过前端服务器将携带描述信息的服务原语转发至服务请求者;In the step (1), description information is added to the service primitive, that is, the parameters of the service primitive are described on the basis of the standard service primitive, and the service primitive carrying the description information is forwarded to the service request through the front-end server. By; 所述服务请求者接收携带描述信息的服务原语后,先将携带描述信息的服务原语写入服务请求数据单元头,再按照服务原语中输入参数的顺序将服务请求数据逐一写入服务请求数据单元体,并将服务请求数据单元发送至前端服务器;其中,所述描述信息,包括输入参数、输出参数和参数类型标识;After receiving the service primitive carrying the description information, the service requester first writes the service primitive carrying the description information into the service request data unit header, and then writes the service request data into the service one by one according to the order of input parameters in the service primitive. requesting the data unit body, and sending the service request data unit to the front-end server; wherein, the description information includes input parameters, output parameters and parameter type identifiers; 所述携带描述信息的服务原语通过服务提供者发布或者由服务请求者采用服务访问双方预先设定的服务查询机制获取;The service primitive carrying the description information is published by the service provider or obtained by the service requester using a service query mechanism preset by both parties of the service access; 所述步骤(2)识别服务交互数据内容包括:前端服务器获取服务原语的服务名称,并将该服务名称以及服务请求数据单元一同转发给相应的服务提供者;服务提供者接收服务请求数据单元后,对该服务请求数据单元进行解析;The step (2) identifying the content of the service interaction data includes: the front-end server obtains the service name of the service primitive, and forwards the service name and the service request data unit to the corresponding service provider together; the service provider receives the service request data unit. After that, parse the service request data unit; 对所述服务请求数据单元进行解析包括:服务提供者根据服务原语中输入参数顺序读取,并按照服务原语中输出参数的顺序将响应数据逐一写入服务响应数据单元,并通过前端服务器将该服务响应数据单元返回至服务请求者;The parsing of the service request data unit includes: the service provider reads in the order of the input parameters in the service primitive, and writes the response data into the service response data unit one by one according to the order of the output parameters in the service primitive, and passes the front-end server. return the service response data unit to the service requester; 所述服务响应数据单元的数据单元结构与服务请求数据单元结构相同;The data unit structure of the service response data unit is the same as the service request data unit structure; 服务请求者接收到服务响应数据单元后,按照服务原语中输出参数的顺序对该单元进行识别,获取响应结果。After receiving the service response data unit, the service requester identifies the unit according to the order of output parameters in the service primitive, and obtains the response result.
CN201610514982.5A 2016-06-30 2016-06-30 Service primitive description-based method for identifying service between main station and sub station Active CN106131003B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610514982.5A CN106131003B (en) 2016-06-30 2016-06-30 Service primitive description-based method for identifying service between main station and sub station

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610514982.5A CN106131003B (en) 2016-06-30 2016-06-30 Service primitive description-based method for identifying service between main station and sub station

Publications (2)

Publication Number Publication Date
CN106131003A CN106131003A (en) 2016-11-16
CN106131003B true CN106131003B (en) 2021-04-30

Family

ID=57468268

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610514982.5A Active CN106131003B (en) 2016-06-30 2016-06-30 Service primitive description-based method for identifying service between main station and sub station

Country Status (1)

Country Link
CN (1) CN106131003B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05233268A (en) * 1992-02-21 1993-09-10 Koudo Tsushin Syst Kenkyusho:Kk Execution system for suitability test
CA2404956A1 (en) * 2001-02-01 2002-08-08 Samsung Electronics Co., Ltd. Method for providing packet call service in radio telecommunication system
CN101120571A (en) * 2004-12-29 2008-02-06 诺基亚公司 Optimized method and system for wireless TCP connections
CN102118448A (en) * 2011-03-17 2011-07-06 中兴通讯股份有限公司 Method, system and terminal for realizing cloud computing
CN102571717A (en) * 2010-12-17 2012-07-11 中国移动通信集团福建有限公司 M2M (Machine-2-Machine) terminal communication method and system based on primitive
CN105429781A (en) * 2015-11-02 2016-03-23 华东交通大学 A Design Method of Network Communication Based on IEC61850/MMS

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05233268A (en) * 1992-02-21 1993-09-10 Koudo Tsushin Syst Kenkyusho:Kk Execution system for suitability test
CA2404956A1 (en) * 2001-02-01 2002-08-08 Samsung Electronics Co., Ltd. Method for providing packet call service in radio telecommunication system
CN101120571A (en) * 2004-12-29 2008-02-06 诺基亚公司 Optimized method and system for wireless TCP connections
CN102571717A (en) * 2010-12-17 2012-07-11 中国移动通信集团福建有限公司 M2M (Machine-2-Machine) terminal communication method and system based on primitive
CN102118448A (en) * 2011-03-17 2011-07-06 中兴通讯股份有限公司 Method, system and terminal for realizing cloud computing
CN105429781A (en) * 2015-11-02 2016-03-23 华东交通大学 A Design Method of Network Communication Based on IEC61850/MMS

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
SDL_MSC描述的通用安全服务原语;段海新;《计算机研究与发展》;20020731;第39卷(第7期);全文 *
一种基于服务空间的服务提供模型;阳王东;《小型微型计算机系统》;20081130(第11期);第2004-2011页 *
协议描述和验证的基本方法;罗军舟;《东南大学学报》;19960930;第26卷(第5期);全文 *
基于Zigbee协议的无线网络软硬件研究与设计;胡鹏飞;《中国优秀硕士学位论文全文数据库(电子期刊)信息科技辑》;20130115(第01期);第I140-125页 *
胡鹏飞.基于Zigbee协议的无线网络软硬件研究与设计.《中国优秀硕士学位论文全文数据库(电子期刊)信息科技辑》.2013,(第01期),第I140-125页. *

Also Published As

Publication number Publication date
CN106131003A (en) 2016-11-16

Similar Documents

Publication Publication Date Title
US11411897B2 (en) Communication method and communication apparatus for message queue telemetry transport
CN103001838B (en) The generation of sensor device mark and using method, system and relevant device
CN101686173A (en) Method, system and apparatus of service negotiation
US10148739B2 (en) M2M data querying and invoking methods, querying and invoking devices, and system
CN110808948A (en) Remote procedure call method, device and system
CN104426956B (en) A kind of SOT state of termination method for subscribing, apparatus and system
CN110290185A (en) An Agent-based IoT device integration system and its application method
CN112104679B (en) Method, apparatus, device and medium for processing hypertext transfer protocol request
CN114499834A (en) Internet of Things quantum key distribution method, system, electronic device and storage medium
CN112134915A (en) A general network processing system with application layer protocol decoupling
CN111093160B (en) A calling method, device and system
KR101867576B1 (en) The Agent System and method for LoRaWAN Network Server and oneM2M Platform
CN103235813A (en) Ufida financial core system and activity based costing system data synchronization method
CN118646705A (en) Multi-tenant-based data routing method and device
CN102594886A (en) Method and device for direct communication between browsers, and communication system
KR20180031852A (en) Adapter for message queuing telemetry transport protocol interworking and data exchange system employing the same
CN105024856A (en) Converged communication method and device for multi-network management system
CN106162313A (en) A kind of multi-screen interaction method and system
CN113129162A (en) Information interaction method and device for intelligent energy service platform
JP2014026480A (en) Output comparison method for plural information systems
CN106131003B (en) Service primitive description-based method for identifying service between main station and sub station
CN103731337B (en) Transfer method, system and the device and agent client of text chat session
CN115086425B (en) Message transmission method, device, program product, medium and electronic equipment
CN103533001A (en) Communication method and communication system based on HTTP multi-proxy, and intermediate proxy server
CN205051729U (en) System for new individual secret information sharing

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant