CN110324397A - Intelligent substation station level application service interface access method based on Dynamic link library - Google Patents

Intelligent substation station level application service interface access method based on Dynamic link library Download PDF

Info

Publication number
CN110324397A
CN110324397A CN201910219831.0A CN201910219831A CN110324397A CN 110324397 A CN110324397 A CN 110324397A CN 201910219831 A CN201910219831 A CN 201910219831A CN 110324397 A CN110324397 A CN 110324397A
Authority
CN
China
Prior art keywords
service
application service
access
request
agency
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.)
Granted
Application number
CN201910219831.0A
Other languages
Chinese (zh)
Other versions
CN110324397B (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.)
State Grid Shandong Electric Power Co Ltd
Zibo Power Supply Co of State Grid Shandong Electric Power Co Ltd
Original Assignee
State Grid Shandong Electric Power Co Ltd
Zibo Power Supply Co of State Grid Shandong Electric Power 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 State Grid Shandong Electric Power Co Ltd, Zibo Power Supply Co of State Grid Shandong Electric Power Co Ltd filed Critical State Grid Shandong Electric Power Co Ltd
Priority to CN201910219831.0A priority Critical patent/CN110324397B/en
Publication of CN110324397A publication Critical patent/CN110324397A/en
Application granted granted Critical
Publication of CN110324397B publication Critical patent/CN110324397B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/143Termination or inactivation of sessions, e.g. event-controlled end of session
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a kind of intelligent substation station level application service interface access method based on Dynamic link library, intelligent substation station level applied function module externally provides access interface in the form that application service is acted on behalf of, service access person uses the method and application service session of Dynamic link library, i.e. service access person access service when, dynamic creation network connection, the network connection is destroyed after access.The method that the present invention describes is based on Dynamic link library mechanism, realize the dynamic creation and destruction of network session between service access person and application service, on the basis of not influencing service access efficiency, greatly reduce network flow, the load level of Node station is reduced simultaneously, to the stability and maintainability of enhancing system, have important practical significance.

Description

Intelligent substation station level application service interface access method based on Dynamic link library
Technical field
The invention belongs to intelligent substation station level technical fields, become more particularly, to a kind of intelligence based on Dynamic link library Power station station level application service interface access method.
Background technique
Intelligent substation station level applied function module provides function access interface, intelligent substation station in the form of services The applied function module for controlling layer is more, and each applied function module can provide multiple service access interfaces, with service access person Expansion to application function requirements for access, the service access interface that the application of intelligent substation station level provides can increase therewith, such as What meets different service access persons to the processing speed in the case of the request of different services and reply high concurrent, becomes especially It is important.
What is currently generallyd use is the method for " long connection ", i.e., after service access connection is established, by sending and replying Test frame maintains linkage availability.With the increase of application service interface increased and service visitor, required network connects Connect it is also more and more, and these network connection when there is no business demand, still need to regularly send network test frame, this is greatly The load of network flow and Node station is aggravated.How on the basis of not influencing service access efficiency, unnecessary net is reduced The spending of network flow, the load for reducing Node station, the operation level for improving system, have important practical significance.
It is the explanation of some proper nouns used herein arrived below:
Dynamic link library: for the network connection of application service access creation, destroying at the end of application service access, Validity without long term maintenance link.
Service access person mark: service access person carries out the unique identification of a service access, during service access It carries always, and in the forwarding of service access result, according to this mark person that accurately identifies service access.
Task pool: the task block memory headroom opened up in advance is the memory source in thread data sharing.Due to task pool There is provided the caching mechanism to task, it is possible to reduce continually create and recycle the overhead that task object example generates, task Recycling function can reuse memory source, save memory source consumption.
Summary of the invention
The technical problems to be solved by the invention are just to provide a kind of intelligent substation station level based on Dynamic link library and answer With service interface access method, this method is visited in intelligent substation station level system according to the service that service access person sends Ask request, dynamic establishes the network connection with application service, and the connection is destroyed after service access, greatly reduces net Network flow reduces the load of Node station, improves the operation level of system simultaneously.
In order to solve the above technical problems, the technical solution adopted in the present invention is as follows:
A kind of intelligent substation station level application service interface access method based on Dynamic link library, comprising the following steps:
S1, service access person send service request order to application service and act on behalf of;
S2, application service agency receive and parse through the service request order, are forwarded to corresponding application service on demand;
S3, application service response dynamics connection request handle service request order, and service processing result are replied to and is answered Use service broker;
S4, application service agency receive the service request result of application service reply, the person that is forwarded to service access, destroy and are The network connection of this time service access creation;
S5, service access person receive service access request as a result, judging next flag of frame, to carry out subsequent processing or behaviour Make.
Preferably, step S2 specifically includes the following steps:
S2-1, application service agency's pretreatment thread receive and parse through the service request order, generate task block and clothes are added Business request task queue;
S2-2, application service proxy requests task processing thread take out task block from request task queue, according to service Type queries service list and the location information for obtaining application service;
The location information of S2-3, application service agency according to application service, establishes net as client and the application service Network Dynamic link library;
After S2-4, successful connection, the service request order in task block is sent to application service by application service agency.
Preferably, step S3 specifically includes the following steps:
S3-1, application service monitor designated port, and the connection request of response application service broker, agency builds with application service Vertical network dynamic connection;
S3-2, application service receive service request order, carry out business processing, processing result is replied to application service Agency.
Preferably, step S4 specifically includes the following steps:
S4-1, application service agency receive the service request handling of application service reply as a result, creation result task block adds Enter service request result task queue;
S4-2, application service proxy requests result task processing thread take out service request result from queue, and according to Service access person mark, is forwarded to corresponding service access person;
S4-3, application service act on behalf of next flag of frame in judging result task block, determine whether this service access is tied Beam is broken as the network connection of this service access creation if terminating.
Beneficial effects of the present invention:
The present invention is proposed a kind of based on Dynamic link library mechanism based on intelligent substation station level application service access Application service access method greatly reduce network flow while not influencing service access efficiency, while reducing section The load level of point machine has important practical significance to the stability and maintainability of enhancing system.
Detailed description of the invention
Fig. 1 is the principle of the present invention schematic diagram;
Fig. 2 is the interaction diagrams of application service access.
Specific embodiment
With reference to the accompanying drawing, embodiments of the present invention are illustrated.As shown in Figure 1, being the principle of the present invention schematic diagram. Service access person establishes long connect when accessing intelligent substation station level application service interface between application service agency first Connect, according to service access person send service access request, application service agency be forwarded on demand corresponding application service and with Dynamic link library is established between application service, and network dynamic connection is destroyed at the end of service access.
As shown in Fig. 2, for the interaction diagrams of application service access.A kind of intelligent substation station control based on Dynamic link library Layer application service interface access method, comprising the following steps:
S1, service access person send service request order to application service and act on behalf of.
The described application service agency is service access portal, is message terminal, the access request of service access person and The response results of application service are forwarded by application service agency.
The major function of application service agency is to carry out the forwarding of service access request and service response result, therefore, such as What, which designs one clog-free, that forward efficiency is high application service agency, is very important.It is same to meet multiple service access persons When accessing a certain application service interface, access efficiency is unaffected, and application service agency is main to consider following three in design A technical point: when 1. application services agency docks multiple service access persons as client, multiple specification examples and service are established Visitor carries out communication interaction, and each specification example is driven by an individual thread;2. service request and service response Forwarding is by the way of task queue.Service request order and service access result establish different task queues, and by difference Thread carry out driving processing.3. when multiple service access persons simultaneously access to a certain application service interface, using clothes It establishes multiple Dynamic link libraries between business agency and the application service to interact, the quantity of Dynamic link library and the number of service access person Amount is consistent, and each Dynamic link library is driven by different threads respectively.
S2, application service agency receive and parse through the service request order, are forwarded to corresponding application service on demand.Specifically The following steps are included:
S2-1, application service agency's pretreatment thread receive and parse through the service request order, generate task block and clothes are added Business request task queue;
S2-2, application service proxy requests task processing thread take out task block from request task queue, according to service Type queries service list and the location information for obtaining application service;
The location information of S2-3, application service agency according to application service, establishes net as client and the application service Network Dynamic link library;
After S2-4, successful connection, the service request order in task block is sent to application service by application service agency.
The location information of the application service mainly includes the IP address and the clothes of host where the application service The monitored port numbers of business, application service agency initiate network connection to the application service and ask according to the location information got It asks.
S3, application service response dynamics connection request handle service request order, and service processing result are replied to and is answered Use service broker.Specifically includes the following steps:
S3-1, application service monitor designated port, and the connection request of response application service broker, agency builds with application service Vertical network dynamic connection;
S3-2, application service receive service request order, carry out business processing, processing result is replied to application service Agency.
The monitoring designated port, for what is set up when application service starting, the listening port flexibly configurable, And it is consistent with the location information that application service agency gets, by monitoring the port numbers, application service response application services generation The connection request that haircut is sent obtains the application request that the connection is sent in the connection valid period, and service request result is replied It is acted on behalf of to application service, if not having valid data frame in certain time, the network connection is actively destroyed in application service.
S4, application service agency receive the service request result of application service reply, the person that is forwarded to service access, destroy and are The network connection of this time service access creation.Specifically includes the following steps:
S4-1, application service agency receive the service request handling of application service reply as a result, creation result task block adds Enter service request result task queue;
S4-2, application service proxy requests result task processing thread take out service request result from queue, and according to Service access person mark, is forwarded to corresponding service access person;
S4-3, application service act on behalf of next flag of frame in judging result task block, determine whether this service access is tied Beam is broken as the network connection of this service access creation if terminating.
The service access person mark, is unique identification of a service access person during service access, is taking It is carried always in business request forwarding and result Recovery Process, service access result is forwarded to by application service agency according to this mark Corresponding service access person;When application service request results are longer, framing is taken to send mechanism, application service is acted on behalf of according to next Whether frame identification decision request result is sent completely, and disconnecting after the completion of last frame forwarding is this between application service Access the network connection of creation.
S5, service access person receive service access request as a result, equally judging next flag of frame, to carry out subsequent processing Or operation.If next flag of frame is true, service access person will continue to receive service access request result;If next flag of frame is False, service access person can disconnect the connection acted on behalf of with application service according to self-demand or continue to access next application Service interface.
Service request result described in service request described in step S2 and step S4 is distinguished using task pool mechanism Task queue memory headroom is opened up in management in advance, from application task block in task pool and need to be added in task queue when creating task Wait in line to execute;After the completion of execution, task block is given back to task pool, is recycled.
In the access of application in substations functional interface, it is mostly " one-time consumption " that serviceization interface, which calls, that is, accesses and do not have There is persistence or frequent.This access mechanism provides application foundation for dynamic network connection, and service access person is as client End, it is not necessary to send test frame periodically to keep link, application service replys test acknowledgement frame without to service access person.

Claims (10)

1. the intelligent substation station level application service interface access method based on Dynamic link library, which is characterized in that service access Person establishes long connection when accessing intelligent substation station level application service interface between application service agency first, according to The service access request of service access person transmission, application service agency are forwarded to corresponding application service on demand and take with application Dynamic link library is established between business, and network dynamic connection is destroyed at the end of service access.
2. the intelligent substation station level application service interface access method according to claim 1 based on Dynamic link library, Characterized by comprising the following steps:
S1, service access person send service request order to application service and act on behalf of;
S2, application service agency receive and parse through the service request order, are forwarded to corresponding application service on demand;
S3, application service response dynamics connection request handle service request order, and service processing result are replied to using clothes Business agency;
S4, application service agency receive the service request result of application service reply, and the person that is forwarded to service access destroys as this The network connection of service access creation;
S5, service access person receive service access request as a result, judging next flag of frame, to carry out subsequent processing or operation.
3. the intelligent substation station level application service interface access method according to claim 2 based on Dynamic link library, It is characterized in that, the agency of application service described in step S1 is service access portal, is message terminal, the visit of service access person Ask that the response results of request and application service are forwarded by application service agency.
4. the intelligent substation station level application service interface access method according to claim 2 based on Dynamic link library, It is characterized in that, step S2 specifically includes the following steps:
S2-1, application service agency's pretreatment thread receive and parse through the service request order, generate task block addition service and ask Ask task queue;
S2-2, application service proxy requests task processing thread take out task block from request task queue, according to service type Query service list and the location information for obtaining application service;
It is dynamic to establish network as client and the application service for the location information of S2-3, application service agency according to application service State connection;
After S2-4, successful connection, the service request order in task block is sent to application service by application service agency.
5. the intelligent substation station level application service interface access method according to claim 4 based on Dynamic link library, It is characterized in that, the location information of the application service, IP address and the service including host where the application service The port numbers monitored.
6. the intelligent substation station level application service interface access method according to claim 2 based on Dynamic link library, It is characterized in that, step S3 specifically includes the following steps:
S3-1, application service monitor designated port, and the connection request of response application service broker, agency establishes net with application service Network Dynamic link library;
S3-2, application service receive service request order, carry out business processing, processing result is replied to application service generation Reason.
7. the intelligent substation station level application service interface access method according to claim 6 based on Dynamic link library, It is characterized in that, the monitoring designated port, for what is set up when application service starting, which can flexibly match It sets, and consistent with the location information that application service agency gets, by monitoring the port numbers, application service response application service The connection request sent is acted on behalf of, and service request result is returned back into application service agency.
8. the intelligent substation station level application service interface access method according to claim 2 based on Dynamic link library, It is characterized in that, step S4 specifically includes the following steps:
S4-1, application service agency receive the service request handling of application service reply as a result, clothes are added in creation result task block Business request results task queue;
S4-2, application service proxy requests result task processing thread take out service request result from queue, and according to service Visitor's mark, is forwarded to corresponding service access person;
S4-3, application service act on behalf of next flag of frame in judging result task block, determine whether this service access terminates, if Terminate the network connection for being then broken as the creation of this service access.
9. the intelligent substation station level application service interface access method according to claim 8 based on Dynamic link library, It is characterized in that, the service access person identifies, it is unique identification of a service access person during service access, It is carried always in service request forwarding and result Recovery Process, application service agency forwards service access result according to this mark To corresponding service access person;When application service request results are longer, framing is taken to send mechanism, application service agency is under Whether one frame identification decision request result is sent completely, and disconnects between application service thus after the completion of last frame forwarding The network connection of secondary access creation.
10. the intelligent substation station level application service interface access method according to claim 9 based on Dynamic link library, It is characterized in that, service request result described in service request described in step S2 and step S4, using task pool mechanism It manages respectively, opens up task queue memory headroom in advance, need to apply for task block from task pool when creating task and task team is added Wait in line to execute in column;After the completion of execution, task block is given back to task pool, is recycled.
CN201910219831.0A 2019-03-21 2019-03-21 Intelligent substation station control layer application service interface access method based on dynamic connection Active CN110324397B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910219831.0A CN110324397B (en) 2019-03-21 2019-03-21 Intelligent substation station control layer application service interface access method based on dynamic connection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910219831.0A CN110324397B (en) 2019-03-21 2019-03-21 Intelligent substation station control layer application service interface access method based on dynamic connection

Publications (2)

Publication Number Publication Date
CN110324397A true CN110324397A (en) 2019-10-11
CN110324397B CN110324397B (en) 2021-09-21

Family

ID=68113035

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910219831.0A Active CN110324397B (en) 2019-03-21 2019-03-21 Intelligent substation station control layer application service interface access method based on dynamic connection

Country Status (1)

Country Link
CN (1) CN110324397B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112988370A (en) * 2019-12-13 2021-06-18 南京品尼科自动化有限公司 Intelligent communication management machine

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5701451A (en) * 1995-06-07 1997-12-23 International Business Machines Corporation Method for fulfilling requests of a web browser
CN1358386A (en) * 1999-06-30 2002-07-10 国际商业机器公司 Dynamic connection to multiple origin servers in transcoding proxy
CN102427480A (en) * 2011-12-31 2012-04-25 北京新媒传信科技有限公司 Application access method in a plurality of application service platform systems
CN103533063A (en) * 2013-10-18 2014-01-22 北京华胜天成科技股份有限公司 Method and device capable of realizing dynamic expansion of WEB (World Wide Web) application resource
CN104580223A (en) * 2015-01-13 2015-04-29 国电南瑞科技股份有限公司 SOA-based real-time communication method between dispatching center and transformer substations
CN105516308A (en) * 2015-12-09 2016-04-20 国网福建省电力有限公司 Wide-area service-oriented data interaction system and method based on service management center
CN106301947A (en) * 2016-08-31 2017-01-04 广州唯品会信息科技有限公司 Business information processing system and method
US20170187723A1 (en) * 2013-02-01 2017-06-29 Vidder, Inc. Securing Communication over a Network Using Dynamically Assigned Proxy Servers
CN106972954A (en) * 2017-03-06 2017-07-21 国电南瑞科技股份有限公司 A kind of design method of automation of transformation substations equipment wide area O&M framework
CN107071013A (en) * 2017-03-30 2017-08-18 国网福建省电力有限公司 A kind of the service response method and service system of intelligent substation access regulation and control main website
CN107426339A (en) * 2017-09-04 2017-12-01 珠海迈越信息技术有限公司 A kind of cut-in method, the apparatus and system of data interface channel
CN108650286A (en) * 2018-03-09 2018-10-12 华洋通信科技股份有限公司 A kind of implementation method of the server system based on Socket and WebSocket mixed modes

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5701451A (en) * 1995-06-07 1997-12-23 International Business Machines Corporation Method for fulfilling requests of a web browser
CN1358386A (en) * 1999-06-30 2002-07-10 国际商业机器公司 Dynamic connection to multiple origin servers in transcoding proxy
CN102427480A (en) * 2011-12-31 2012-04-25 北京新媒传信科技有限公司 Application access method in a plurality of application service platform systems
US20170187723A1 (en) * 2013-02-01 2017-06-29 Vidder, Inc. Securing Communication over a Network Using Dynamically Assigned Proxy Servers
CN103533063A (en) * 2013-10-18 2014-01-22 北京华胜天成科技股份有限公司 Method and device capable of realizing dynamic expansion of WEB (World Wide Web) application resource
CN104580223A (en) * 2015-01-13 2015-04-29 国电南瑞科技股份有限公司 SOA-based real-time communication method between dispatching center and transformer substations
CN105516308A (en) * 2015-12-09 2016-04-20 国网福建省电力有限公司 Wide-area service-oriented data interaction system and method based on service management center
CN106301947A (en) * 2016-08-31 2017-01-04 广州唯品会信息科技有限公司 Business information processing system and method
CN106972954A (en) * 2017-03-06 2017-07-21 国电南瑞科技股份有限公司 A kind of design method of automation of transformation substations equipment wide area O&M framework
CN107071013A (en) * 2017-03-30 2017-08-18 国网福建省电力有限公司 A kind of the service response method and service system of intelligent substation access regulation and control main website
CN107426339A (en) * 2017-09-04 2017-12-01 珠海迈越信息技术有限公司 A kind of cut-in method, the apparatus and system of data interface channel
CN108650286A (en) * 2018-03-09 2018-10-12 华洋通信科技股份有限公司 A kind of implementation method of the server system based on Socket and WebSocket mixed modes

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
葛亮等: "智能变电站数据中心及其应用服务", 《电力系统自动化》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112988370A (en) * 2019-12-13 2021-06-18 南京品尼科自动化有限公司 Intelligent communication management machine

Also Published As

Publication number Publication date
CN110324397B (en) 2021-09-21

Similar Documents

Publication Publication Date Title
CN111245925B (en) Communication method and system for modern distributed micro-service architecture
CN100437671C (en) Long-distance authorizing system and method
US8032780B2 (en) Virtualization based high availability cluster system and method for managing failure in virtualization based high availability cluster system
CN108833464B (en) Binding type multi-domain Internet of things cooperation system and method, smart city and smart home
CN102891877B (en) Realize the Online Processing System and method of terminal applies
CN104243481B (en) A kind of method and system of power information acquisition advance data processing
CN108063813B (en) Method and system for parallelizing password service network in cluster environment
CN109756474B (en) Service cross-region calling method and device for power dispatching automation system
CN105007304B (en) The exchange of corporate information technology system data based on SOA framework and integration system
CN112698925B (en) Container mixed operation processing method of server cluster
CN107147690A (en) A kind of electrical power system wide-area method for message transmission
CN106210052A (en) A kind of wide area electrical power services management method
CN101771724B (en) Heterogeneous distributed information integration method, device and system
CN111970362A (en) Vehicle networking gateway clustering method and system based on LVS
CN110324397A (en) Intelligent substation station level application service interface access method based on Dynamic link library
CN110008267B (en) Data processing system and method
CN104243719A (en) Heartbeat period determining method, system and device for long connection in mobile communication network
CN100484014C (en) Distributed cluster service management system and service management method in intelligent network
CN111422078B (en) Electric vehicle charging data allocation monitoring method based on block chain
KR20010082938A (en) Method for operating maintenance using remote process call in IMT-2000 system
CN101018122B (en) Mode matching processing method and system
CN115865886B (en) HTTP-based cross-network data interaction method and device
CN115118475A (en) Method, device, equipment and medium for dispatching cryptographic equipment cluster
CN115296866A (en) Access method and device for edge node
CN114793244A (en) Resource processing method, device, equipment and medium for block chain

Legal Events

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