CN113315707A - Method for label routing of multi-site cascade mode data transmission middleware - Google Patents

Method for label routing of multi-site cascade mode data transmission middleware Download PDF

Info

Publication number
CN113315707A
CN113315707A CN202110578386.4A CN202110578386A CN113315707A CN 113315707 A CN113315707 A CN 113315707A CN 202110578386 A CN202110578386 A CN 202110578386A CN 113315707 A CN113315707 A CN 113315707A
Authority
CN
China
Prior art keywords
data transmission
label
transmission middleware
power plant
side 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.)
Granted
Application number
CN202110578386.4A
Other languages
Chinese (zh)
Other versions
CN113315707B (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.)
Xian Thermal Power Research Institute Co Ltd
Original Assignee
Xian Thermal Power Research Institute 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 Xian Thermal Power Research Institute Co Ltd filed Critical Xian Thermal Power Research Institute Co Ltd
Priority to CN202110578386.4A priority Critical patent/CN113315707B/en
Publication of CN113315707A publication Critical patent/CN113315707A/en
Application granted granted Critical
Publication of CN113315707B publication Critical patent/CN113315707B/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
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering

Landscapes

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

Abstract

The invention discloses a method for label routing of a multi-site cascade mode data transmission middleware, which comprises the following steps: the company side data transmission middleware reads label masks of all power plant side data transmission middleware cascaded with the company side data transmission middleware, analyzes labels of third party application requests, matches the power plant side data transmission middleware corresponding to the labels according to the label masks, and distributes the labels of the third party application requests to the corresponding power plant side data transmission middleware; and the power plant side data transmission middleware searches the database instance name corresponding to the request tag in a tag table according to the third party application request tag name, so that the database instance corresponding to the request tag is found, and the request tag is distributed to the corresponding database instance. The invention realizes the label routing of the data transmission middleware in the multi-site cascade mode, can well solve the problem that the prefix of the database instance name is increased when the data transmission middleware is cascaded, and is particularly suitable for the application scene of data aggregation in secondary units of power plants and companies.

Description

Method for label routing of multi-site cascade mode data transmission middleware
Technical Field
The invention belongs to the technical field of data acquisition, and particularly relates to a label routing method for a multi-site cascade mode data transmission middleware.
Background
The acquisition of real-time operation data of power generation enterprise equipment is the basis for realizing informatization and repeatedly mining the value of power generation data. With the further refinement of the management of power generation enterprises, the real-time operation data of the power plant equipment needs to be acquired and accessed at the level of the power generation enterprise group companies. The method is generally implemented by adopting a multi-station cascade mode of a data acquisition middleware to realize the access of third-party application at a company side to the data of the power plant. In the traditional data acquisition middleware, each time cascade connection is carried out, a database instance name prefix is added to a tag name, so that the tag name is too long, and the tag name does not accord with the uniform rule of tag coding, so that difficulties are caused in upper layer data configuration, sharing and deep analysis application.
Disclosure of Invention
In order to solve the problems, the invention provides a label routing method for a multi-site cascade mode data transmission middleware, solves the problem that the prefix of a database instance name is increased when the data transmission middleware is cascaded, and is particularly suitable for an application scene of performing data aggregation in a power plant and a company secondary unit.
The invention is realized by adopting the following technical scheme:
a method for label routing of multi-site cascade mode data transmission middleware comprises the following steps:
step S1: the method comprises the steps that a company side data transmission middleware reads label masks of all power plant side data transmission middleware cascaded with the company side data transmission middleware;
step S2: the company side data transmission middleware analyzes the label of the third party application request, and matches the power plant side data transmission middleware corresponding to the label according to the label mask code;
step S3: the company side data transmission middleware distributes the label of the third party application request to the corresponding power plant side data transmission middleware;
step S4: the power plant side data transmission middleware searches a database instance name corresponding to the requested label in a label table according to the label name requested by the third party application, so that the database instance corresponding to the label is found;
step S5: and the power plant side data transmission middleware distributes the request label to a corresponding database instance.
The label naming of the third-party application request needs to be standardized, and the power plant name pinyin abbreviation is used as a label prefix at the forefront end of the label to distinguish the power plant from which the label comes; the label mask of the power plant side data transmission middleware is configured into a 'power plant name pinyin abbreviation' format.
The power plant side data transmission middleware searches a database instance name corresponding to a requested tag in a tag table according to the tag name requested by a third party application, so that a database instance corresponding to the tag is found, wherein the tag table comprises a data tag name, data tag description, a database instance name, a data type and a tag type.
In order to realize label routing from the company side to the power plant side data transmission middleware, the company side data transmission middleware needs to configure the following cascade connection parameters: and the IP address, the port number, the user name and the password of the downwardly cascaded power plant side data transmission middleware server are not required to be configured with any cascading parameters.
When the label mask of the data transmission middleware is changed at the power plant side, the data transmission middleware at the power plant side only needs to be restarted, the data transmission middleware at the company side automatically acquires new label mask configuration through background service, and configuration change of the data transmission middleware at the company side is not needed.
The invention has at least the following beneficial technical effects:
1. according to the method, the consistency of the company side mark signature and the power plant side mark signature is realized through a label mask routing mode, and the prefix of the database instance name does not need to be superposed, so that an upper-layer application system can access the power plant side mark;
2. the company side data transmission middleware does not need to configure the label table again, and only needs to configure the connection parameters of the cascaded power plant side data transmission middleware, so that the configuration of the company side data transmission middleware is simplified;
3. when the label mask of the data transmission middleware is changed at the power plant side, the company side can automatically acquire new label mask configuration only by restarting the data transmission middleware at the power plant side without configuring and changing the data transmission middleware at the company side, so that the field implementation steps are simplified.
Drawings
FIG. 1 is a schematic basic flow diagram of an embodiment of the present invention;
fig. 2 is a schematic diagram of a multi-site cascading mode.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to specific embodiments and the accompanying drawings. The invention is capable of other and different embodiments and of being practiced or of being carried out in various ways, and its several details are capable of modification in various respects, all without departing from the spirit and scope of the present invention. It is to be noted that the features in the following embodiments and examples may be combined with each other without conflict.
Fig. 1 is a schematic basic flow chart of an embodiment of the present invention, and a method for label routing in a data transmission middleware in a multi-site cascading mode shown in fig. 1 includes the following steps:
step S1: the method comprises the steps that a company side data transmission middleware reads label masks of all power plant side data transmission middleware cascaded with the company side data transmission middleware;
when the label mask of the data transmission middleware is changed at the power plant side, the data transmission middleware at the power plant side only needs to be restarted, the data transmission middleware at the company side automatically acquires new label mask configuration through background service, and configuration change of the data transmission middleware at the company side is not needed.
Before implementation, database label naming needs to be standardized, and the power plant name pinyin abbreviation is used as a label prefix at the forefront end of the label to distinguish power plants from data sources. In this embodiment, for example, four power plants and a company are cascaded, and it is assumed that the four power plants and their power plant names are abbreviated by pinyin: the pinyin of the power plant 1 is abbreviated as AB, the pinyin of the power plant 2 is abbreviated as CD, the pinyin of the power plant 3 is abbreviated as EF, and the pinyin of the power plant 4 is abbreviated as GH. When the database label names are normalized, label prefixes "AB", "CD", "EF", "GH" are respectively added before the labels of the four power plants.
The label mask of the configured power plant side data transmission middleware is in a format of 'pinyin abbreviation for name of power plant', as shown in fig. 2, the label mask of the power plant 1 is configured to be 'AB', the label mask of the power plant 2 is configured to be 'CD', the label mask of the power plant 3 is configured to be 'EF', and the label mask of the power plant 4 is configured to be 'GH'.
As shown in fig. 2, the company-side data transmission middleware automatically reads the tag mask of the plant-side data transmission middleware: the tag mask of power plant 1 is configured as "AB", the tag mask of power plant 2 is configured as "CD", the tag mask of power plant 3 is configured as "EF", and the tag mask of power plant 4 is configured as "GH".
Step S2: the company side data transmission middleware analyzes the label of the third party application request, and matches the power plant side data transmission middleware corresponding to the label according to the label mask code;
as shown in fig. 2, the company-side data transmission middleware receives a request from a third-party application, and the request tag is: AB.AI001, CD.AI001, EF.AI001, GH.AI001, the label prefix of the request label is analyzed by the company side data transmission middleware, and the power plants to which the request label belongs are respectively found according to label masks: ai001 at power plant 1, cd ai001 at power plant 2, ef ai001 at power plant 3, gh ai001 at power plant 4.
Step S3: the company side data transmission middleware distributes the label of the third party application request to the corresponding power plant side data transmission middleware;
in order to realize label routing from the company side to the power plant side data transmission middleware, the company side data transmission middleware needs to configure the following cascade connection parameters: and the IP address, the port number, the user name and the password of the downwardly cascaded power plant side data transmission middleware server are not required to be configured with any cascading parameters.
Step S4: the power plant side data transmission middleware searches a database instance name corresponding to the requested label in a label table according to the label name requested by the third party application, so that the database instance corresponding to the label is found;
the power plant side data transmission middleware searches a database instance name corresponding to a requested label in a label table according to the label name requested by a third party application, so that the database instance corresponding to the label is found, wherein the label table comprises parameters: middleware data tags, database instance names, data tag descriptions, data types, and tag types. Table 1 is a tag table of the data transmission middleware of the power plant 1, taking tag AI001 as an example. The "tag type" is a parameter of the data transmission middleware, and is used to distinguish the type of the tag, and includes: DDC tags, definition tags, pre-processing tags, curve tags, and calculation tags.
TABLE 1
Figure BDA0003085125620000051
Taking the power plant 1 as an example, the power plant side data transmission middleware searches data corresponding to the label AB.AI001 in the label table, and according to the table 1, finds a database instance name corresponding to the label AB.AI001 as "Rython" and a database instance name corresponding to the label AB.AI001 as "Rython".
Step S5: the power plant side data transmission middleware distributes the request label to the corresponding database instance, and the label AB.AI001 is distributed to the database instance named 'Rython'.

Claims (5)

1. A method for label routing of a multi-site cascade mode data transmission middleware is characterized by comprising the following steps:
step S1: the method comprises the steps that a company side data transmission middleware reads label masks of all power plant side data transmission middleware cascaded with the company side data transmission middleware;
step S2: the company side data transmission middleware analyzes the label of the third party application request, and matches the power plant side data transmission middleware corresponding to the label according to the label mask code;
step S3: the company side data transmission middleware distributes the label of the third party application request to the corresponding power plant side data transmission middleware;
step S4: the power plant side data transmission middleware searches a database instance name corresponding to the requested label in a label table according to the label name requested by the third party application, so that the database instance corresponding to the label is found;
step S5: and the power plant side data transmission middleware distributes the request label to a corresponding database instance.
2. The method of claim 1, wherein the label routing is performed in a multi-site cascade mode data transmission middleware: the label naming of the third-party application request needs to be standardized, and the power plant name pinyin abbreviation is used as a label prefix at the forefront end of the label to distinguish the power plant from which the label comes; the label mask of the power plant side data transmission middleware is configured into a 'power plant name pinyin abbreviation' format.
3. The method of claim 1, wherein the label routing is performed in a multi-site cascade mode data transmission middleware: the power plant side data transmission middleware searches a database instance name corresponding to a requested tag in a tag table according to the tag name requested by a third party application, so that a database instance corresponding to the tag is found, wherein the tag table comprises a data tag name, data tag description, a database instance name, a data type and a tag type.
4. The method for label routing of multi-site cascading mode data transmission middleware of claim 1, wherein in order to implement label routing of company-side to power plant-side data transmission middleware, the company-side data transmission middleware needs to configure the following cascading connection parameters: and the IP address, the port number, the user name and the password of the downwardly cascaded power plant side data transmission middleware server are not required to be configured with any cascading parameters.
5. The method for label routing of the multi-site cascade mode data transmission middleware of claim 1, wherein when a power plant side changes a label mask of the data transmission middleware, the power plant side data transmission middleware is only required to be restarted, and the company side data transmission middleware automatically obtains a new label mask configuration through a background service without performing configuration change on the company side data transmission middleware.
CN202110578386.4A 2021-05-26 2021-05-26 Method for label routing of multi-site cascade mode data transmission middleware Active CN113315707B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110578386.4A CN113315707B (en) 2021-05-26 2021-05-26 Method for label routing of multi-site cascade mode data transmission middleware

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110578386.4A CN113315707B (en) 2021-05-26 2021-05-26 Method for label routing of multi-site cascade mode data transmission middleware

Publications (2)

Publication Number Publication Date
CN113315707A true CN113315707A (en) 2021-08-27
CN113315707B CN113315707B (en) 2022-11-18

Family

ID=77375054

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110578386.4A Active CN113315707B (en) 2021-05-26 2021-05-26 Method for label routing of multi-site cascade mode data transmission middleware

Country Status (1)

Country Link
CN (1) CN113315707B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103020078A (en) * 2011-09-24 2013-04-03 国家电网公司 Distributed real-time database data hierarchical indexing method
CN103026667A (en) * 2011-07-28 2013-04-03 华为技术有限公司 Tag allocating method, device and system
CN105631376A (en) * 2015-12-29 2016-06-01 中国科学院信息工程研究所 RFID middleware and RFID data transmission realization method
CN105681547A (en) * 2015-12-31 2016-06-15 努比亚技术有限公司 Middleware instance management device and method
CN106060125A (en) * 2016-05-24 2016-10-26 南京国电南自美卓控制***有限公司 Distributed real-time data transmission method based on data tags
CN106599043A (en) * 2016-11-09 2017-04-26 中国科学院计算技术研究所 Middleware used for multilevel database and multilevel database system
CN107818127A (en) * 2017-09-09 2018-03-20 国网浙江省电力公司 A kind of querying method and system for multi-source data
CN108846457A (en) * 2018-06-26 2018-11-20 南通森雅商务服务有限公司 Middleware and data interactive method based on database
US20200259928A1 (en) * 2019-02-13 2020-08-13 Red Hat, Inc. Automatic version routing among multiple instances of an application
US20200404059A1 (en) * 2019-06-19 2020-12-24 Servicenow, Inc. Discovery and storage of resource tags

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103026667A (en) * 2011-07-28 2013-04-03 华为技术有限公司 Tag allocating method, device and system
CN103020078A (en) * 2011-09-24 2013-04-03 国家电网公司 Distributed real-time database data hierarchical indexing method
CN105631376A (en) * 2015-12-29 2016-06-01 中国科学院信息工程研究所 RFID middleware and RFID data transmission realization method
CN105681547A (en) * 2015-12-31 2016-06-15 努比亚技术有限公司 Middleware instance management device and method
CN106060125A (en) * 2016-05-24 2016-10-26 南京国电南自美卓控制***有限公司 Distributed real-time data transmission method based on data tags
CN106599043A (en) * 2016-11-09 2017-04-26 中国科学院计算技术研究所 Middleware used for multilevel database and multilevel database system
CN107818127A (en) * 2017-09-09 2018-03-20 国网浙江省电力公司 A kind of querying method and system for multi-source data
CN108846457A (en) * 2018-06-26 2018-11-20 南通森雅商务服务有限公司 Middleware and data interactive method based on database
US20200259928A1 (en) * 2019-02-13 2020-08-13 Red Hat, Inc. Automatic version routing among multiple instances of an application
US20200404059A1 (en) * 2019-06-19 2020-12-24 Servicenow, Inc. Discovery and storage of resource tags

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
顾云丽等: "基于前缀路由策略的无线传感器网络任播路由协议", 《计算机科学》 *

Also Published As

Publication number Publication date
CN113315707B (en) 2022-11-18

Similar Documents

Publication Publication Date Title
CN106021594B (en) The mapping treatment method and its system of database table and XML message
CN102982141B (en) A kind of method and device realizing distributed data base agency
US20070078997A1 (en) Efficient endpoint matching using a header-to-bit conversion table
CN106572165A (en) Distributed global unique ID application method
CN107273540A (en) Distributed search and index updating method, system, server and computer equipment
CN107562743B (en) Data storage method and device, and data search request processing method and device
CN105681285A (en) Method for obtaining information of heterogeneous industrial signal source
CN104504030B (en) A kind of indexing means towards power dispatching automation magnanimity message
CN103761102A (en) Unified data service platform and implementation method thereof
CN101110858A (en) Telecommunication report generation system and method thereof
CN113254457B (en) Account checking method, account checking system and computer readable storage medium
CN112860954A (en) Real-time computing method and real-time computing system
CN113315707B (en) Method for label routing of multi-site cascade mode data transmission middleware
CN1852145A (en) System and method for identifying authority using relative inquire
CN116628285B (en) Block chain transaction data query method and device
US20200364268A1 (en) Management of graphs using secondary index vertices
US20130282651A1 (en) Method for building and maintaining trusted supplier records
US11947490B2 (en) Index generation and use with indeterminate ingestion patterns
CN115525659A (en) Data query method and device, electronic equipment and storage medium
CN112328369B (en) Method for processing minimization of access rules among multiple virtual machines
CN114860806A (en) Data query method and device of block chain, computer equipment and storage medium
CN114048219A (en) Graph database updating method and device
CN107169044A (en) A kind of city talent resource integrated management method
CN107395645A (en) For fire wall system and method and be stored with the medium of corresponding program
CN115935101A (en) Data processing method about MQTT-Topic

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