Nothing Special   »   [go: up one dir, main page]

CN107231308B - Cross-site basic data intelligent learning and link pre-searching method - Google Patents

Cross-site basic data intelligent learning and link pre-searching method Download PDF

Info

Publication number
CN107231308B
CN107231308B CN201710421963.2A CN201710421963A CN107231308B CN 107231308 B CN107231308 B CN 107231308B CN 201710421963 A CN201710421963 A CN 201710421963A CN 107231308 B CN107231308 B CN 107231308B
Authority
CN
China
Prior art keywords
site
link
sites
central
information
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
CN201710421963.2A
Other languages
Chinese (zh)
Other versions
CN107231308A (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.)
Beijing Shenzhou Aerospace Software Technology Co.,Ltd.
Original Assignee
Beijing Shenzhou Aerospace Software Technology 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 Beijing Shenzhou Aerospace Software Technology Co ltd filed Critical Beijing Shenzhou Aerospace Software Technology Co ltd
Priority to CN201710421963.2A priority Critical patent/CN107231308B/en
Publication of CN107231308A publication Critical patent/CN107231308A/en
Application granted granted Critical
Publication of CN107231308B publication Critical patent/CN107231308B/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/02Topology update or discovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0246Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
    • H04L41/0273Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols using web services for network management, e.g. simple object access protocol [SOAP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • H04L45/08Learning-based routing, e.g. using neural networks or artificial intelligence

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Artificial Intelligence (AREA)
  • Evolutionary Computation (AREA)
  • Medical Informatics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention provides a cross-site basic data intelligent learning and link pre-searching and finding method, which realizes the site basic data intelligent learning based on a SOAP protocol, enables the basic data of all connected sites to be synchronous in real time, adopts a thread pool to send messages, reduces the expenditure of system resources, has concise pre-searching and finding link algorithm, high efficiency, asynchronous acquisition, improves the user experience, increases a fault-tolerant mechanism and ensures the stability of functions. The advantages of the invention are embodied in that: 1. the search link algorithm is simple and efficient, the thread pool is adopted, the cost of events and system resources spent by the system in creating and destroying threads is reduced, and a retry function is provided for the putting queue with search failure. The asynchronous link pre-acquisition method improves communication efficiency and improves user experience. 2. The intelligent learning saves a plurality of operations of users, and can synchronize data of all sites in real time, thereby avoiding errors in the coordination process caused by the fact that the users cannot synchronize in time in practical application.

Description

Cross-site basic data intelligent learning and link pre-searching method
Technical Field
The invention relates to the field of computers, in particular to a cross-site basic data intelligent learning and link pre-searching method.
Background
At present, with the rapid development of enterprise informatization, cross-site collaborative research and development are more and more common, and data interaction among multiple sites is inevitable. The existing cooperative site basic data synchronization is triggered manually by a user, so that the maintenance workload is large, and the timely synchronization of the data is difficult to ensure. The first method is to configure a route and store the route in a database in a page configuration mode, and when data is transmitted between sites, a link is acquired by searching the database. The second is to obtain in real time by sending a SOAP message, as shown in fig. 1, and assuming that a to D link is to be obtained, the following steps are performed:
1. firstly, the initiating system A judges whether to be directly communicated with the system D, if so, the initiating system A returns to the link D. If not, a routing message is sent to all systems that can communicate with A. As shown in fig. 1, a sends a message to both B and C looking for a link.
2. After B receives the message of A, firstly judging whether B is directly communicated with D or not, if so, returning to a link BD. If direct connection is not possible, a routing message is sent to all other systems in direct connection with B. But no more routing messages are sent back, i.e. B is no longer sent to a.
3. And all the non-initiating systems and the non-target systems repeat the step 2 after receiving the routing message. And finally, a plurality of lines can be acquired, and the shortest line is selected from the lines to be determined as the communication link.
In the above conventional implementation, there are mainly the following disadvantages:
for the synchronization of basic data of the cooperative sites, due to the cooperation in different places, a new user, an organization or a product is built in one site, and the synchronization of the other site cannot be performed at once, so that the problem of the cooperative process caused by the fact that the basic data cannot be synchronized in time often occurs. And the maintenance workload is large because the operation is only performed manually.
For obtaining a link, although the first implementation is relatively simple from the surface, configuration is required between every two systems in a complex network environment, and the configuration workload is relatively large. In addition, configuration needs to be increased under the condition of adding new sites, and the maintenance workload is large. Moreover, the manual configuration mode does not undergo real-time connection detection, and the link is not connected in the possible configuration situation.
The second method does not need manual maintenance, saves configuration workload, and as seen in fig. 1, link determination can be quickly implemented according to this method, but in practical application, the network is much more complex than that in fig. 1. In a complex network environment, the link determination method can traverse some irrelevant sites, which is similar to a calculation mode of Cartesian products, so that the efficiency is greatly reduced, and communication interruption is caused and the system function is influenced due to frequent occurrence of system timeout.
Disclosure of Invention
The invention aims to provide a cross-site basic data intelligent learning and link pre-searching method aiming at the defects in the prior art, the intelligent learning of the site basic data is realized on the basis of a SOAP protocol, the basic data of all connected sites are synchronized in real time, a thread pool is adopted to send messages, the expenditure of system resources is reduced, a pre-searching link searching algorithm is simple and efficient, asynchronous acquisition is realized, the user experience is improved, a fault-tolerant mechanism is added, and the stability of functions is ensured.
In order to achieve the purpose, the invention discloses the following technical scheme:
a cross-site basic data intelligent learning and link pre-searching method comprises the following steps:
s1 defines internal sites and central sites of the enterprise, wherein a plurality of internal sites are communicated with the central site, and only the internal sites communicated with the central site can communicate with external sites;
s2, all internal sites register to the center site of the enterprise based on SOAP protocol data transmission, after the registration is completed, each site and the center site initiate a bidirectional link search asynchronous request, and the target site returns to the link in JSON format; after the link is successfully acquired, the central site actively pushes information of the newly added site to other connected sites based on a SOAP protocol, and simultaneously pushes information of other sites to the newly added site; initiating a bidirectional link search asynchronous request between all the sites to complete link search;
s3, the two enterprise central sites register based on SOAP protocol transmission data, after the registration is completed, a two-way link between the two central sites is initiated to search asynchronous request, and the target site returns to the link in JSON format; after the link is successfully obtained, the two central sites actively push the data based on the SOAP protocol, each connecting site data to the other site, the central site saves all the information of the external sites and actively pushes the information to all the sites in the enterprise, and a bidirectional link search asynchronous request is initiated between the sites to complete the link search;
s4, in the process of processing the link request, for the directly connected station, returning the unique station information identifier as a link in a JSON data format; and for the indirectly connected link acquisition, sending an asynchronous request based on a SOAP protocol, putting the asynchronous request into a thread pool, firstly sending a link searching request to the enterprise central site, searching the central site of the enterprise central site according to the target system information by the enterprise central site, forwarding the link searching request, continuously forwarding the request by the central site of the target system until the target system is reached, and finally completing the link searching.
Further, for the station which is newly added to register with the central station subsequently, the central station pushes station information to all stations which are directly communicated, meanwhile, other station information is pushed to the station, the unique identifier of the station information of the other side is stored in the station adding monitor, and the identifier is used as a link.
Further, for the abandoned sites, the central site automatically notifies each connected site, each site completes deletion, and issues a delete site asynchronous event, and deletes the stored link data of the site in the listener.
Further, step S5 is to store the data returned successfully by the link lookup in the database, and to put the failure reason of the target system that failed in the link lookup on the page and put the page into a retry queue, where the system provides the retry interval time configuration.
The invention discloses a cross-site basic data intelligent learning and link pre-searching method, which has the following beneficial effects:
1. the search link algorithm is simple and efficient, the thread pool is adopted, the cost of events and system resources spent by the system in creating and destroying threads is reduced, and a retry function is provided for the putting queue with search failure. The asynchronous link pre-acquisition method improves communication efficiency and improves user experience.
2. The intelligent learning saves a plurality of operations of users, and can synchronize data of all sites in real time, thereby avoiding errors in the coordination process caused by the fact that the users cannot synchronize in time in practical application.
Drawings
Figure 1 is a schematic diagram of a prior art link acquisition approach,
figure 2 is a schematic diagram of the link acquisition mode of the present invention,
fig. 3 is a schematic diagram of the registration process between sites in the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms referred to in the present invention are to be interpreted:
site: a system application unit is called a 'site' and comprises an independent database and users thereof.
Registering: the method refers to a process of communicating one site to another site, and the communication is completed by inputting related parameters on a page.
The basic data refers to site information, user, organization, user and organization relation, product and other collaborative data.
Learning: in this context, data synchronization between sites is referred to, and data is communicated between sites due to the cross-site cooperative service requirement.
And link: refers to a multi-site coordinated channel.
A central site: a special site which does not participate in the business is used as an interactive channel between all internal sites and external enterprise sites of an enterprise, and cooperative business data among the sites are stored.
SOAP: the Simple Object Access Protocol is a Protocol specification for data exchange, which is lightweight, Simple, and chinese is translated into Simple Object Access Protocol.
In the current enterprise application environment, the central site exists for the security and confidentiality requirements on one hand, and on the other hand, the unified management of collaborative interactive data is facilitated. Only the internal stations, which communicate with the central station, can communicate with the external stations.
The core of the invention is to provide a cross-site basic data intelligent learning and link pre-searching and finding method, which realizes the site basic data intelligent learning based on the SOAP protocol, enables the basic data of each connected site to be synchronous in real time, adopts a thread pool to send messages, reduces the expenditure of system resources, has concise pre-searching and finding link algorithm, high efficiency, asynchronous acquisition, improves the user experience, increases a fault-tolerant mechanism and ensures the stability of functions.
The invention discloses a method for intelligently learning cross-site basic data and pre-searching links, which comprises the following steps:
s1 defines internal sites and central sites of the enterprise, wherein a plurality of internal sites are communicated with the central site, and only the internal sites communicated with the central site can communicate with external sites;
s2, all internal sites register to the center site of the enterprise based on SOAP protocol data transmission, after the registration is completed, each site and the center site initiate a bidirectional link search asynchronous request, and the target site returns to the link in JSON format; after the link is successfully acquired, the central site actively pushes information of the newly added site to other connected sites based on a SOAP protocol, and simultaneously pushes information of other sites to the newly added site; initiating a bidirectional link search asynchronous request between all the sites to complete link search;
s3, the two enterprise central sites register based on SOAP protocol transmission data, after the registration is completed, a two-way link between the two central sites is initiated to search asynchronous request, and the target site returns to the link in JSON format; after the link is successfully obtained, the two central sites actively push the data based on the SOAP protocol, each connecting site data to the other site, the central site saves all the information of the external sites and actively pushes the information to all the sites in the enterprise, and a bidirectional link search asynchronous request is initiated between the sites to complete the link search;
s4, in the process of processing the link request, for the directly connected station, returning the unique station information identifier as a link in a JSON data format; and for the indirectly connected link acquisition, sending an asynchronous request based on a SOAP protocol, putting the asynchronous request into a thread pool, firstly sending a link searching request to the enterprise central site, searching the central site of the enterprise central site according to the target system information by the enterprise central site, forwarding the link searching request, continuously forwarding the request by the central site of the target system until the target system is reached, and finally completing the link searching.
In an embodiment of the present invention, for a station newly added to register with a central station subsequently, the central station pushes station information to all stations directly connected, and simultaneously pushes other station information to the station, and a unique identifier of the other station information is stored in the station add listener, and the identifier is used as a link.
In an embodiment of the present invention, for a obsolete site, the central site automatically notifies each connected site that each site completes deletion, and issues a delete site asynchronous event, deleting the saved link data of the site in the listener.
In an embodiment of the present invention, the method further includes step S5, storing data returned by the link search success in the database, displaying the failure reason on the page of the target system that fails to search the link, and placing the page in a retry queue, where the system provides retry interval time configuration.
As shown in fig. 2, A, B, C represents three enterprises, a0, B0 and C0 are central sites of A, B, C enterprises, and the number of sites connected to each central site in the summary of the actual application scenario is greater than that in fig. 2. In fig. 2, a starting site at position a2 and a target site at position B3 are finally acquired through steps 1, 2 and 3, wherein the link is a 2-A0-B0-B3.
The invention adopts a simple algorithm to pre-search the link, performs asynchronously, improves the communication efficiency, and realizes real-time synchronization of the basic data of the cooperative station through an intelligent learning framework.
As shown in FIG. 3, the registration process from A0 to B0 is as follows: the A0 initiates registration to the B0, the B0 site stores the A0 site information, the publishing site adds asynchronous events, the B0 site feeds back the B0 site information to the A0 site, the A0 site stores the B0 site information, and the publishing site adds asynchronous events. The A0 asynchronous listener executes to store the link, initiates a request for learning site information to the B0, the B0 site processes the request for learning site information of the A0, feeds back information of other sites of the enterprise where the B0 is located to the A0, and the A0 site stores the information of other sites of the enterprise where the B0 is located and pushes the information of the newly added site to other sites of the enterprise where the A0 is located. The A1 is one of the other sites of the A enterprise, stores the information of other sites pushed by the A0, and publishes the information of the sites to add asynchronous events, and simultaneously stores the information of other sites pushed by the A0, and publishes the sites to add asynchronous events. The A1 site asynchronous monitor executes, a newly added site is used as a target site to sequentially initiate link request messages and is placed into a thread pool, meanwhile, a request is initiated to A0, A0 processes the request and forwards the request to B0, B0 processes the request and forwards the request to B2, B2 processes the link request message, a link is returned to B0, B0 merging information is returned to A0, A0 merging information is returned to A1, whether the whole request process has errors or not is judged, if not, the link is saved, if yes, the link is mistaken, and the link is placed into a retry queue.
The foregoing is only a preferred embodiment of the present invention and is not limiting thereof; it should be noted that, although the present invention has been described in detail with reference to the above embodiments, those skilled in the art will understand that the technical solutions described in the above embodiments can be modified, and some or all of the technical features can be equivalently replaced; and the modifications and the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (4)

1. A cross-site basic data intelligent learning and link pre-searching method is characterized by comprising the following steps:
s1 defines internal sites and central sites of the enterprise, wherein a plurality of internal sites are communicated with the central site, and only the internal sites communicated with the central site can communicate with external sites;
s2, all internal sites register to the center site of the enterprise based on SOAP protocol data transmission, after the registration is completed, each site and the center site initiate a bidirectional link search asynchronous request, and the target site returns to the link in JSON format; after the link is successfully acquired, the central site actively pushes information of the newly added site to other connected sites based on a SOAP protocol, and simultaneously pushes information of other sites to the newly added site; initiating a bidirectional link search asynchronous request between all the sites to complete link search;
s3, the two enterprise central sites register based on SOAP protocol transmission data, after the registration is completed, a two-way link between the two central sites is initiated to search asynchronous request, and the target site returns to the link in JSON format; after the link is successfully obtained, the two central sites actively push the data of each connecting site to the site of the other side based on a SOAP protocol, the central site stores the information of all the external sites and actively pushes the information to all the sites in the enterprise, and a bidirectional link search asynchronous request is initiated between the sites to complete the link search;
the initiating of the bidirectional link search asynchronous request among the sites comprises the following steps:
for the directly connected stations, the unique station information identifier is used as a link and returned in a JSON data format;
and for the indirectly connected link acquisition, sending an asynchronous request based on a SOAP protocol, putting the asynchronous request into a thread pool, firstly sending a link search request to the enterprise central site, searching the central site of the enterprise according to the target system information by the enterprise central site, forwarding the link search request, continuously forwarding the request by the central site of the target system until the target system is reached, and finally completing the link search.
2. The method as claimed in claim 1, wherein for a subsequently added site registered with the central site, the central site pushes site information to all directly connected sites, and simultaneously pushes other site information to the site, and a listener is added to the site to store a unique identifier of the site information of the other side, and the identifier is used as a link.
3. The method as claimed in claim 1, wherein for a obsolete site, the central site automatically notifies each connected site, and each site completes deletion, and issues a delete site asynchronous event, and deletes the stored link data of the site in the listener.
4. The method as claimed in claim 1, further comprising step S5, storing the data returned from successful link search in the database, displaying the failure reason on the page of the target system that failed in link search, and placing the failure reason in a retry queue, wherein the system provides retry interval time configuration.
CN201710421963.2A 2017-06-07 2017-06-07 Cross-site basic data intelligent learning and link pre-searching method Active CN107231308B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710421963.2A CN107231308B (en) 2017-06-07 2017-06-07 Cross-site basic data intelligent learning and link pre-searching method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710421963.2A CN107231308B (en) 2017-06-07 2017-06-07 Cross-site basic data intelligent learning and link pre-searching method

Publications (2)

Publication Number Publication Date
CN107231308A CN107231308A (en) 2017-10-03
CN107231308B true CN107231308B (en) 2020-07-31

Family

ID=59935460

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710421963.2A Active CN107231308B (en) 2017-06-07 2017-06-07 Cross-site basic data intelligent learning and link pre-searching method

Country Status (1)

Country Link
CN (1) CN107231308B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102118395A (en) * 2011-03-11 2011-07-06 北京神舟航天软件技术有限公司 Simple object access protocol (SOAP)-based reliable cross-domain data transmission component and method
CN103200089A (en) * 2013-04-15 2013-07-10 杭州华三通信技术有限公司 Method and device for message transmission in virtual private local area network service network
CN104221338A (en) * 2012-03-19 2014-12-17 日本电气株式会社 Control apparatus, communication system, node control method and program
CN105472024A (en) * 2015-12-28 2016-04-06 北京赛思信安技术股份有限公司 Cross-region data synchronizing method based on message pushing mode
CN106789637A (en) * 2015-11-24 2017-05-31 中国移动通信集团公司 A kind of path establishment method of cross-domain service intercommunication, controller and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080069107A1 (en) * 2006-09-15 2008-03-20 Siemens Aktiengesellschaft Scalable packet based network

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102118395A (en) * 2011-03-11 2011-07-06 北京神舟航天软件技术有限公司 Simple object access protocol (SOAP)-based reliable cross-domain data transmission component and method
CN104221338A (en) * 2012-03-19 2014-12-17 日本电气株式会社 Control apparatus, communication system, node control method and program
CN103200089A (en) * 2013-04-15 2013-07-10 杭州华三通信技术有限公司 Method and device for message transmission in virtual private local area network service network
CN106789637A (en) * 2015-11-24 2017-05-31 中国移动通信集团公司 A kind of path establishment method of cross-domain service intercommunication, controller and system
CN105472024A (en) * 2015-12-28 2016-04-06 北京赛思信安技术股份有限公司 Cross-region data synchronizing method based on message pushing mode

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
域间协作网络管理系统的业务流程建模与实现;杨雯;《中国优秀硕士学位论文全文数据库信息科技辑》;20150415;全文 *

Also Published As

Publication number Publication date
CN107231308A (en) 2017-10-03

Similar Documents

Publication Publication Date Title
CN107016087B (en) Hierarchical database high-availability system based on sentry's model
CN102880475B (en) Based on the real-time event disposal system of cloud computing and method in computer software
CN109597723A (en) Two-node cluster hot backup redundancy for subway comprehensive monitoring system realizes system and method
CN105630913A (en) Redis pipeline communication-based message passing method and system
CN103516802A (en) Method and device for achieving seamless transference of across heterogeneous virtual switch
CN103944698A (en) Hot standby method
CN103747091A (en) Distributed data synchronization system and method for embedded equipment
CN104811371A (en) Brand-new instant messaging system
CN102317913B (en) A kind of transaction recovery method and transaction recovery device
CN106407042A (en) Solution system and method for disaster recovery across Internet data centers (IDCs) based on open-source database
WO2016177231A1 (en) Dual-control-based active-backup switching method and device
CN104618127A (en) Master and standby storage node switching method and system
CN105306585A (en) Data synchronization method for plurality of data centers
CN104077181A (en) Status consistent maintaining method applicable to distributed task management system
CN105516292A (en) Hot standby method of cloud platform of intelligent substation
CN105721582A (en) Multi-node file backup system
CN110213359B (en) Internet of vehicles networking data pushing system and method based on D2D
CN104092746A (en) Operation and maintenance auditing system and network load balancing method used for system
CN103631652A (en) Method and system for achieving virtual machine migration
CN107870982A (en) Data processing method, system and computer-readable recording medium
CN105069152A (en) Data processing method and apparatus
CN108140035A (en) The database copy method and device of distributed system
CN103731465A (en) Distributed system and transaction treatment method thereof
CN108063832B (en) Cloud storage system and storage method thereof
CN108390919B (en) Message synchronization system and method for high-reliability dual-computer hot standby

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
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 100094 No. 28, Yongfeng Road, Beijing, Haidian District

Patentee after: Beijing Shenzhou Aerospace Software Technology Co.,Ltd.

Address before: 100094 No. 28, Yongfeng Road, Beijing, Haidian District

Patentee before: BEIJING SHENZHOU AEROSPACE SOFTWARE TECHNOLOGY Co.,Ltd.