CN109683926B - Network component updating method, device, equipment and computer readable storage medium - Google Patents

Network component updating method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN109683926B
CN109683926B CN201811049655.2A CN201811049655A CN109683926B CN 109683926 B CN109683926 B CN 109683926B CN 201811049655 A CN201811049655 A CN 201811049655A CN 109683926 B CN109683926 B CN 109683926B
Authority
CN
China
Prior art keywords
network component
access
customized
component
preset
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
CN201811049655.2A
Other languages
Chinese (zh)
Other versions
CN109683926A (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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201811049655.2A priority Critical patent/CN109683926B/en
Publication of CN109683926A publication Critical patent/CN109683926A/en
Application granted granted Critical
Publication of CN109683926B publication Critical patent/CN109683926B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Abstract

The invention discloses a network component updating method, a device, equipment and a computer readable storage medium, wherein the method comprises the following steps: when the customized network component is received, controlling the customized network component to operate, and counting the operation error rate of the customized network component in the preset time; judging whether the operation error rate is smaller than a preset value or not, if so, comparing the customized network component with a preset base plate, and determining difference data between the customized network component and the preset base plate; and adding the difference data into a preset base plate to form a new base plate, and finishing the updating of the network component. According to the scheme, when the operation error rate of the customized network component is smaller than the preset value, the difference data between the customized operation component and the preset base plate is added to the preset base plate, the network component is updated, frequent upgrade of the preset component is avoided, the version sending frequency of the network component is reduced, and transmission of new service data is achieved while safe and stable transmission of original service data is ensured.

Description

Network component updating method, device, equipment and computer readable storage medium
Technical Field
The present invention relates to the field of network communication technologies, and in particular, to a method, an apparatus, a device, and a computer-readable storage medium for updating a network component.
Background
At present, the financial institutions involve a plurality of partners, such as each cooperative bank, each loan company, each branch company in the institution and the like; in order to realize the communication of different partners, different communication mechanisms are set, such as private line communication for a cooperative bank, intranet communication for the inside, and the like; this different communication mechanism is implemented by the network component, i.e. the communication transmission of the service data between the partner and the financial institution is implemented by the network component.
With the development of business, the business data transmitted between the partner and the financial institution has an updating condition and has different transmission requirements; the network components need to be updated correspondingly, so that the business data with different transmission requirements can be transmitted between the financial institution and the partner thereof. However, the randomness of the service data update of the partner and the financial institution is relatively high, and if the network component is updated once the service data is updated, the update frequency of the network component is too fast, and the phenomenon of unstable operation is easily caused, so that the original transmission processing capability of the network component on the service data is influenced.
Disclosure of Invention
The invention mainly aims to provide a network component updating method, a network component updating device and a computer readable storage medium, and aims to solve the problem that in the prior art, a financial institution and a partner update network components quickly due to service data update, so that the original transmission processing capacity of the network components on the service data is influenced.
In order to achieve the above object, the present invention provides a network component updating method, including the steps of:
when a customized network component is received, controlling the customized network component to operate, and counting the operation error rate of the customized network component in preset time;
judging whether the operation error rate is smaller than a preset value, if so, comparing the customized network component with a preset base plate, and determining the difference data between the customized network component and the preset base plate;
and adding the difference data into the preset base plate to form a new preset base plate, and finishing the updating of the network component.
Preferably, the step of controlling the operation of the customized network component and counting the operation error rate of the customized network component within a preset time includes:
when a first access request of business data corresponding to the customized network component is received, accessing the business data to a central application component in the customized network component based on an agent component in the customized network component;
reading first access information of the first access request, and determining an access mode of the service data according to an access identifier carried in the service data corresponding to the central application component;
and according to the consistency of the first access information and the access mode, counting the operation error rate of the customized network component in the preset time.
Preferably, the step of counting an operation error rate of the customized network component within a preset time according to the consistency between the first access information and the access mode includes:
counting the operation times of performing access operation on the service data within a preset time, and judging whether the first access information is consistent with the access mode in each operation time;
if the first access information is inconsistent with the access mode, judging an access error, and counting the error frequency of the access error;
and determining the operation error rate of the customized network component according to the error times and the operation times.
Preferably, the step of counting the number of operations of performing access operation on the service data within a preset time includes:
counting the request times of receiving the access request within a preset time, and determining the effective request times and the ineffective request times in the request times;
setting the effective request times as the operation times, and executing a step of judging whether the access information is consistent with the access mode in each operation time so as to count error times in each operation time;
the step of determining the operation error rate of the customized network component according to the error times and the operation times comprises the following steps:
and determining the operation error rate of the customized network component according to the error times, the invalid request times and the request times.
Preferably, the step of adding the difference data to the preset template to form a new preset template, and completing the updating of the network component includes:
determining agent difference data and application difference data respectively corresponding to an agent component in the network component and a central application component in the network component according to the type identifier in the difference data;
calling a preset code to respectively generate an agent adding frame and an application adding frame in the agent component of the preset base and the central application component of the preset base, transmitting the agent difference data to the agent adding frame, and transmitting the application difference data to the application adding frame to form a new preset base and update the network component.
Preferably, the step when the customized network component is received is preceded by:
when a second access request for service data is received, reading second access information of the second access request, and determining an access network component corresponding to the second access request according to the second access information;
judging whether the function identifier of the access network component is matched with the second access information or not, and if the function identifier of the access network component is matched with the second access information, accessing the service data to a central application component of the access network component based on an agent component in the access network component;
and if the function identifier of the access network component is not matched with the second access information, outputting the second access information to a network component operation and maintenance party so that the network component operation and maintenance party can develop a customized network component on the basis of a preset original version according to the second access information.
Preferably, after the step of determining whether the operation error rate is smaller than a preset value, the method further includes:
if the operation error rate is larger than or equal to a preset value, capturing error log information of each operation error of the customized network component;
and generating prompt information of each error log information and outputting the prompt information to a network component operation and maintenance party so that the network component operation and maintenance party can optimize the customized network component according to the prompt information.
In addition, to achieve the above object, the present invention further provides a network component updating apparatus, including:
the control module is used for controlling the operation of the customized network component when the customized network component is received, and counting the operation error rate of the customized network component in the preset time;
the comparison module is used for judging whether the operation error rate is smaller than a preset value or not, if the operation error rate is smaller than the preset value, the customized network component is compared with a preset base plate, and difference data between the customized network component and the preset base plate is determined;
and the adding module is used for adding the difference data into the preset base plate to form a new preset base plate and finish the updating of the network component.
In addition, to achieve the above object, the present invention further provides a network component updating apparatus, including: a memory, a processor, a communication bus, and a network component update program stored on the memory;
the communication bus is used for realizing connection communication between the processor and the memory;
the processor is configured to execute the network component update program to implement the steps of:
when a customized network component is received, controlling the customized network component to operate, and counting the operation error rate of the customized network component in a preset time;
judging whether the operation error rate is smaller than a preset value or not, if so, comparing the customized network component with a preset base plate, and determining difference data between the customized network component and the preset base plate;
and adding the difference data into the preset base plate to form a new preset base plate, and finishing the updating of the network component.
Further, to achieve the above object, the present invention also provides a computer-readable storage medium storing one or more programs, the one or more programs being executable by one or more processors for:
when a customized network component is received, controlling the customized network component to operate, and counting the operation error rate of the customized network component in a preset time;
judging whether the operation error rate is smaller than a preset value, if so, comparing the customized network component with a preset base plate, and determining the difference data between the customized network component and the preset base plate;
and adding the difference data into the preset base plate to form a new preset base plate, and finishing the updating of the network component.
In the network component updating method of the embodiment, the received customized network component is controlled to operate, and the operation error rate in the preset time is counted; when the operation error rate is less than the preset value, the customized network component can stably realize the transmission of the service data between the financial institution and the partner thereof, and the customized network component is compared with the preset base plate to determine the difference data between the customized network component and the preset base plate; the preset base version is a network component version used for stably transmitting original service data, and the customized network component is a network component version set for the transmission requirement of new service data; the difference data between the two is data which can be used for realizing the transmission requirement of the new service data, and the difference data is added into the preset base plate to form a new preset base plate; the method avoids directly updating the preset base plate for transmitting the original service data aiming at the new service data, reduces the version release frequency of the network component, ensures the stable transmission of the original service data and simultaneously realizes the transmission of the new service data.
Drawings
FIG. 1 is a schematic flow chart diagram of a first embodiment of a network component update method of the present invention;
FIG. 2 is a schematic flow chart diagram of a second embodiment of a network component update method of the present invention;
FIG. 3 is a functional block diagram of a first embodiment of a network component update apparatus of the present invention;
fig. 4 is a schematic device structure diagram of a hardware operating environment related to the method according to the embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The invention provides a network component updating method.
Referring to fig. 1, fig. 1 is a flowchart illustrating a network component updating method according to a first embodiment of the present invention. In this embodiment, the network component updating method includes:
step S10, when receiving a customized network component, controlling the customized network component to operate, and counting the operation error rate of the customized network component in the preset time;
the network component updating method is applied to the control center of the financial institution server, and is suitable for updating the network component for service data transmission between the financial institution and the partner thereof through the control center; the financial institution partners may include cooperating banks, lending companies, branch companies within the financial institution, and the like. The financial institution divides a network area between the financial institution and a partner into an intranet area and an extranet area, wherein the intranet area is an area aiming at internal communication of the institution, the extranet area is an area aiming at external partner communication, and service data transmission is realized between the partner and the financial institution through the extranet area and the intranet area. Considering that the service data is directly accessed from the extranet area to the intranet area, a greater risk may be caused, and thus an edge network area is provided between the extranet area and the intranet area, and the service data in the extranet area is accessed to the intranet area through the edge network area. Meanwhile, a central network area is arranged in the intranet area, and the service data of the extranet area is firstly accessed to the central network area through the edge network area and then transmitted to the intranet area through the processing of the central network area. Specifically, in order to implement access and processing of service data, a proxy component is deployed in an edge network area to implement transmission of the service data between a partner and a central network area; meanwhile, a central application component is deployed in the central network area to process the service data; the agent component and the central application component are used together as a network component of the financial institution. Because of numerous financial institution-docked partners, proxy components can be arranged in the network edge area of each partner, and the same proxy component can be arranged for the partners with the same service type; one partner is made to correspond to one proxy component, or a plurality of partners are made to correspond to one proxy component, so that the central application component among the plurality of network components is the same, while the proxy components are different. And communication connection is established between the central application component and each agent component so as to realize communication transmission between the financial institution and each partner, and the business data of different partners are accessed to the central network area.
Due to the fact that the business data of the partner and the financial institution are updated, transmission requirements change, and therefore updating operation needs to be conducted on network components for achieving transmission. Specifically, a developer develops a specific network component, namely a customized network component, on the basis of a preset original version aiming at updated service data; the preset original version is the most basic version in the network component developed by the developer, and other subsequent versions are updated, upgraded and the like on the basic version. Uploading the developed customized network component to a server, and controlling the operation of the customized network component by a control center when the customized network component is received, so that new service data are accessed to a central application component through an agent component in the customized network component; and counting the operation error rate of the customized network component in the operation process, wherein the operation error rate is the probability of transmission abnormity and transmission error in the service data transmission process, and the operation stability of the customized network component is reflected by the counted operation error rate. The operation stability of the customized network component is reflected within a certain time range, so that the preset time is preset, and the time length of the preset time is determined by multiple times of experimental statistics; when the customized network component is determined to be stable in operation within a certain time length range through multiple experiments, the customized network component is stable in subsequent operation; the time length range can be set as preset time, and the operation error rate in the preset time is counted so as to judge the stability of the customized network component according to the operation error rate.
Step S20, judging whether the operation error rate is smaller than a preset value, if so, comparing the customized network component with a preset base plate, and determining difference data between the customized network component and the preset base plate;
further, in order to judge whether the customized network component is stable, a preset value with a proper value is set in advance through experiments; and comparing the counted operation error rate with a preset value, and judging the size relation between the operation error rate and the preset value. When the operation error rate is greater than or equal to the preset value, the error rate of the customized network component in the preset time is high, the operation is unstable, and optimization is needed. Understandably, in order to represent the operation condition of the customized network component, a log file generation mechanism is arranged; namely, in the process of transmitting the service data, no matter the transmission is correct or wrong, the customized network component generates a log file, and adds different identifiers to the information of the correct transmission and the wrong transmission for distinguishing. When the operation error rate is judged to be greater than or equal to the preset value and the error rate is higher, the log file is called, and the error log information of each operation error of the customized network component in the preset time is read from the log file; sorting the captured error log information of each time according to error types, and classifying transmission errors caused by the same reason into one class; and generating prompt information by using the classified and sorted error log information, and transmitting the prompt information to a network component operation and maintenance party, so that the network component operation and maintenance party can analyze the reason of higher error rate of the customized network component according to the prompt information, and further optimize the customized network component until the operation error rate of the customized network component in preset time is less than a preset value.
When the operation error rate is smaller than the preset value, the error rate of the customized network component in the preset time is lower, the operation is stable, and the customized network component and the preset base plate can be combined. The preset base version is a network component version used for stably transmitting original service data before new service data appear, and the preset base version is basically generated on the basis of the preset original version. Because the preset basic and customized network components are respectively used for realizing the transmission of the newly appeared service data and the transmission of the original service data, differences necessarily exist between the two components; wherein the difference data existing in the preset base plate but not in the customized network component is substantially used for realizing the transmission of the original service data; the difference data existing in the customized network component and not existing in the preset base plate is essentially used for realizing the transmission of the newly appeared service data. In order to realize the transmission of new service data while transmitting original service data, comparing a customized network component with a preset base plate and determining difference data between the customized network component and the preset base plate; therefore, the difference data does not exist in the preset base plate and the customized network component at the same time, and if the difference data is added into the preset base plate or the customized network component, the original service data can be transmitted, and meanwhile, the new service data can be transmitted.
And S30, adding the difference data into the preset base plate to form a new preset base plate, and finishing the updating of the network component.
Furthermore, because the difference data does not exist in the preset base plate and the customized network component at the same time, the transmission of the original service data and the transmission of the new service data can be realized by adding the difference data into the preset base plate or the customized network component; however, it is considered that the original data in the preset template is more, and the original data in the customized network component is less, i.e. the difference data existing in the preset template but not in the customized network component is more, and the difference data existing in the customized network component but not in the preset template is less. In order to avoid adding more data volume and ensure the stability of the original service data transmission; adding the difference data into a preset base plate to form a new preset base plate; the preset template is a template currently used for transmitting service data and is a template from which the difference data comes, and the new preset template is a template formed by adding the difference data to the currently used preset template. Because part of the data in the difference data exists in the preset base version, in the adding process, adding operation is not performed on the existing part of the data, and only the difference data existing in the customized network component but not in the preset base version is added. And transmitting the new service data while transmitting the original service data through the formed new preset basis to finish the updating of the network component.
In the network component updating method of the embodiment, the received customized network component is controlled to operate, and the operation error rate in the preset time is counted; when the operation error rate is less than the preset value, the customized network component can stably realize the transmission of the service data between the financial institution and the partner thereof, and the customized network component is compared with the preset base plate to determine the difference data between the customized network component and the preset base plate; the preset base version is a network component version used for stably transmitting original service data, and the customized network component is a network component version set for the transmission requirement of new service data; the difference data between the two is data which can be used for realizing the transmission requirement of the new service data, and the difference data is added into the preset base plate to form a new preset base plate; the method avoids directly updating the preset base plate for transmitting the original service data aiming at the new service data, reduces the version release frequency of the network component, ensures the stable transmission of the original service data and simultaneously realizes the transmission of the new service data.
Further, in another embodiment of the method for updating a network component of the present invention, the step of controlling the operation of the customized network component and counting an operation error rate of the customized network component within a preset time includes:
step S11, when a first access request of business data corresponding to the customized network component is received, the business data is accessed to a central application component in the customized network component based on an agent component in the customized network component;
understandably, the customized network component transmits the newly appeared service data with different transmission requirements, namely, the newly appeared service data can not be transmitted through the preset base plate; to distinguish this traffic data, a customized identifier is added to this traffic data. When a partner has a transmission requirement of service data, sending a first access request of the service data; when a first access request of the service data is received, judging whether the first access request carries a customized identifier; if the service data carries the customized identifier, it can be determined that the service data needs to be transmitted through the customized network component, and the service data needing to be accessed is the service data corresponding to the customized network component. Thereby accessing the business data corresponding to the customized network component to the central application component in the customized network component based on the agent component in the customized network component. Specifically, the first access request carries first access information, where the first access information includes identity information of a partner, an access mode required by the partner, and the like; the access mode represents the line type of service data transmission, such as private line access, public network access, STP proxy, MSTP proxy and the like, and when the data transmitted by the partner has higher confidentiality, the access mode can be set as private line access; and adding the set access mode and the self identity information thereof as first access information into the first access request to represent the access requirement of the partner on the service data. In the access process, according to the access requirement of the partner represented in the first access information, the service data of the partner is accessed to the central application component according to the access requirement, and the service data of the partner is transmitted to the financial institution through the customized network component.
Step S12, reading first access information of the first access request, and determining an access mode of the service data according to an access identifier carried in the service data corresponding to the central application component;
further, after the service data is accessed to the central application component in the customized network component, it needs to be determined whether the actual access mode of the service data is consistent with the access mode required in the first access information. Specifically, after business data corresponding to the customized network component is accessed to the central application component, in order to represent the line type of business data transmission, i.e. the access mode, an access identifier is allocated to the corresponding business data accessed to the central application component; such as assigning an access identifier F1 to traffic data accessed to the central application component via the private line, assigning an access identifier F2 to traffic data accessed to the central application component via the STP proxy, etc. The first access information comprises an access mode required by a partner, so that the first access information of the access mode required by the representation in the first access request and an access identifier carried in the corresponding service data accessed to the central application component are read; and determining the actual access mode of the representation service data accessed to the central application component according to the carried access identifier, and judging whether the actual access mode is consistent with the required access mode according to the first access information and the access mode.
And S13, counting the operation error rate of the customized network component within the preset time according to the consistency of the first access information and the access mode.
Understandably, when the actual access mode of the service data corresponding to the customized network component is consistent with the required access mode in the first access information, the access mode of the service data meets the access requirement of a partner, and the customized network component can normally operate to realize the transmission of the service data; and when the access modes of the service data and the customized network component are not consistent, the access mode of the service data does not meet the access requirement of the partner, the customized network component is abnormal, and the access to the service data is wrong. Therefore, in the preset time, according to the first access information representing the required access mode and the consistency of the actual access mode, the operation error rate of the customized network component is counted, and the error probability of the customized network component in the preset time is determined. Specifically, the step of counting the operation error rate of the customized network component within the preset time according to the consistency of the first access information and the access mode includes:
step S131, counting the operation times of performing access operation on the service data within a preset time, and judging whether the first access information is consistent with the access mode in each operation time;
the operation error rate of this embodiment is determined by the total number of operations of performing access operation on the service data corresponding to the customized network component and the number of errors of the access error occurring in the operation process of the customized network component. Counting the operation times of access operation on the service data corresponding to the customized network component within a preset time; when the agent component in the customized network component performs one access operation on the service data, the operation times are accumulated to determine the total operation times of the access operation within the preset time. And meanwhile, judging whether the first access information and the access mode of each time in all the access operations are consistent, namely whether the actual access mode of each time is consistent with the required access mode, according to the first access information carried in the first access request of each access operation and the determined access mode of each service data, so as to determine the error times of access errors in the total times of the operations.
Step S132, if the first access information is inconsistent with the access mode, judging an access error, and counting the error times of the access error;
further, when it is judged that the first access information and the access mode are inconsistent in all the access operations, namely the actual access mode at this time is inconsistent with the required access mode, it is judged that the access is wrong at this time; and counting the error times of the access errors in all the access operations. In addition, the access error is not limited to the access mode, and can be specifically set according to requirements, for example, the access time is set, when the actual access time exceeds the set access time, the access error is determined, and the error is also taken as the error frequency to be accumulated and counted.
And step S133, determining the operation error rate of the customized network component according to the error times and the operation times.
After the operation times of the access operation within the preset time and the error times of errors in the access process are determined, the operation error rate of the customized network component can be determined according to the error times and the operation times. Specifically, the operation error rate of the customized network component in the operation process can be determined by using the ratio of the error times and the operation times; the larger the ratio result is, the higher the operation error rate is, and the more unstable the operation of the customized network component is; otherwise, the operation is stable.
Further, in another embodiment of the method for updating a network component of the present invention, the step of counting the number of operations of performing an access operation on the service data within a preset time includes:
step q1, counting the request times of receiving the access request within a preset time, and determining the effective request times and the ineffective request times in the request times;
the customized network component is considered to be in the process of accessing the business data corresponding to the customized network component, and the situation that the business data corresponding to the customized network component does not belong to the access of the customized network component can occur. Therefore, before receiving an access request for service data and performing an access operation on the service data, it is necessary to determine whether the received service data is accessed by the customized network component. Specifically, because the service data accessed by the customized network component is allocated with the customized identifier, when an access request for the service data is received, whether the access request carries the customized identifier is judged; if the customized identifier is carried, the service data can be determined to be accessed by the customized network component; and when the customized identifier is not carried, the service data is determined not to be accessed by the customized network component. Access requests accessed by the customized network component are treated as valid requests and access requests not accessed by the customized network component are treated as invalid requests. Counting the received access requests within a preset time; when receiving an access request, accumulating the request times; the number of requests is the total number of requests for accessing the service data in the preset time. Meanwhile, according to whether each access request carries a customized identifier, determining valid requests and invalid requests in all the access requests; when the customized identifier is carried, the request is an effective request, and the times of the effective request are accumulated; when the customized identifier is not carried, the request is an invalid request, and the invalid request times are accumulated; to determine the total number of valid requests and the total number of invalid requests received within a preset time.
Step q2, setting the effective request times as the operation times, and executing the step of judging whether the access information is consistent with the access mode in each operation time so as to count the error times in each operation time;
understandably, because the customized network component only performs access operation on the service data of the access request corresponding to the effective request, the number of times of the effective request determines the number of times of the access operation performed by the customized network component. Setting the effective request times as the operation times of the customized network component for performing access operation on the service data, and judging whether the first access information and the access mode of each time are consistent in all the operation times, namely whether the actual access mode and the required access mode of each time are consistent; if the operation times are inconsistent, the access error is judged, and all inconsistent operation times are determined as the error times of the access error in the total operation times.
The step of determining the operation error rate of the customized network component according to the error times and the operation times comprises the following steps:
and determining the operation error rate of the customized network component according to the error times, the invalid request times and the request times.
Furthermore, the service data corresponding to the invalid request in the first access request does not carry the customized identifier and is not transmitted by the customized network component; the customized network component causes the chaos of other service data transmission, the customized network component needs to be optimized in the same way, the invalid request is taken as an operation error for statistics, and the operation error rate is determined; the customized network component is more accurately optimized according to the operation error rate, and the transmission of the new service data is better realized while the original service data is transmitted. Therefore, the operation error rate of the customized network component is determined according to the counted invalid request times which do not carry the customized identifier, the error times of the inconsistency of the first access information and the access mode and all the received request times within the preset time. Specifically, the number of invalid requests and the number of errors are added, and then the ratio of the result obtained by adding to the number of requests is made, so that the operation error rate of the customized network component in the operation process can be determined; the larger the ratio result is, the higher the operation error rate is, and the more unstable the operation of the customized network component is; otherwise, the operation is stable.
Further, in another embodiment of the method for updating a network component of the present invention, the step of adding the difference data to the preset template to form a new preset template, and the step of completing the updating of the network component includes:
step S31, determining agent difference data and application difference data respectively corresponding to the agent component in the network component and the central application component in the network component according to the type identifier in the difference data;
understandably, since the network components include the agent component and the central application component, the customized network components set for the emerging business data include the customized agent component and the customized central application component, respectively. When comparing the customized network component with a preset base plate and determining difference data between the customized network component and the preset base plate; substantially comparing the agent component in the customized network component with the agent component in the preset base plate, and comparing the central application component in the customized network component with the central application component in the preset base plate; the agent difference data and the application difference data are respectively determined and the type identifiers are respectively added to the agent difference data and the application difference data for distinguishing. Adding the difference data to the preset base plate to form a new base plate; it is essential that the agent difference data and the application difference data are added to the agent component and the central application component of the preset base version, respectively. And reading the type identifier in the difference data, and determining the proxy difference data corresponding to the proxy component of the network component and the application difference data corresponding to the central application component of the network component according to the type identifier so as to generate a new base version according to the proxy difference data and the application difference data.
Step S32, calling a preset code to respectively generate a proxy adding frame and an application adding frame in the proxy component of the preset base and the central application component of the preset base, transmitting the proxy difference data to the proxy adding frame, and transmitting the application difference data to the application adding frame to form a new preset base and update the network component.
Further, since the preset base version and the customized network component are both codes developed by developers on the basis of the preset original version, the difference data of the two are also codes correspondingly. When the difference data is added into the preset base plate, if the difference data and the preset base plate are not logically connected but simply overlapped, the added functions of the difference data and the preset base plate may not be realized, and the realization of the original function of the preset base plate may be influenced. Therefore, in order to add the difference data to the preset base plate, the present embodiment is provided with a preset code, and the preset code is a preset code for adding a code for realizing the logical connection between the preset base plate and the difference data to the preset base plate. When an adding operation is required, calling the preset code to respectively generate a proxy adding frame and an application adding frame in a proxy component and a central application component of a currently used preset base version; the agent adding framework and the application adding framework are respectively logic connection codes applied to the agent component and logic connection codes applied to the central application component. And respectively transmitting the agent difference data and the application difference data determined by the type identifiers to an agent adding frame and an application adding frame to realize the logical connection of the preset base version and the difference data. If the difference data is used for realizing the transmission mode A of the new service data, detecting whether the transmission mode A exists in the preset base plate through code logic, and if not, jumping to the part of the difference data; due to the fact that the A transmission mode does not exist in the preset base plate and the A transmission mode exists in the differential data, the requirement of the A transmission mode of new service data is met by jumping to the differential data part necessarily through logic connection. Taking the current preset base plate added with the differential data as a new preset base plate, and then carrying out service data transmission on the basis of the new preset base plate; the frequent upgrade of the preset base plate for the new service data is avoided, the original service data is transmitted, meanwhile, the new service data is further transmitted, and the network component for service data transmission is updated.
Further, referring to fig. 2, a third embodiment of the network component updating method of the present invention is proposed based on the first or second embodiment of the network component updating method of the present invention, wherein in the third embodiment, the step when the customized network component is received comprises:
step S40, when receiving a second access request for service data, reading second access information of the second access request, and determining an access network component corresponding to the second access request according to the second access information;
understandably, before the developers develop the customized network components for the new business data, the business data are transmitted through the existing network components. Specifically, when a second access request for service data is received, second access information carried in the second access request is read, and the second access information includes an identifier representing a network component to be accessed and an access mode, so as to identify which proxy component passes through, in which access mode, and which central application component is accessed. Therefore, according to the identifier in the second access information, the access mode and the network component corresponding to the service data can be determined, and the corresponding network component is used as an access network component to be distinguished from other network components.
Step S50, judging whether the function identifier of the access network component is matched with the second access information, if so, accessing the service data to a central application component of the access network component based on an agent component in the access network component;
further, although the central application components in different network components are the same, the agent components are different, and the access modes of different agent components are different, so that it is necessary to determine whether the access network component corresponding to the second access request has the required access mode. Specifically, in the process of developing the network component, a developer allocates different function identifiers to different network components to characterize differences in access modes of the proxy components in the network components. Reading the function identifier of the access network component corresponding to the second access request, and judging whether the access mode represented by the function identifier is matched with the access mode required in the second access information; wherein the matching is that the function identifier is completely consistent with the identification representing the access mode in the second access information. And when the function identifier is judged to be matched with the second access information, the access network component required by the second access information comprises the required access mode, so that the service data is accessed to the central application component in the network component according to the required access mode by the agent component in the access network component.
Step S60, if the function identifier of the access network component is not matched with the second access information, the second access information is output to a network component operation and maintenance party, so that the network component operation and maintenance party can develop a customized network component on the basis of a preset original version according to the second access information.
And if the function identifier of the access network component is not completely consistent with the identifier representing the access mode in the second access information, judging that the function identifier is not matched with the second access information, and the access network component required in the second access information cannot access the service data required to be accessed to the central application component. In order to meet the access requirements, the access network component needs to be optimized; for convenience of optimization, second access information representing the required access mode is output to the network component operation and maintenance party; and the network component operation and maintenance party can conveniently develop the customized network component on the basis of the preset original edition according to the second access information so as to realize the transmission requirement of the service data through the customized network component. Because the original version is preset as the most basic version, the operation of the preset base version cannot be influenced by the customized network component developed on the basis of the original version; and when the customized network component operates stably, the customized network component is added into the preset base plate to form a new preset base plate, so that the stable transmission of new service data is realized while the normal transmission of the original service data is ensured.
In addition, referring to fig. 3, the present invention provides a network component updating apparatus, in a first embodiment of the network component updating apparatus of the present invention, the network component updating apparatus includes:
the control module 10 is configured to control the operation of the customized network component when receiving the customized network component, and count an operation error rate of the customized network component within a preset time;
a comparing module 20, configured to determine whether the operation error rate is smaller than a preset value, and if the operation error rate is smaller than the preset value, compare the customized network component with a preset template to determine difference data between the customized network component and the preset template;
and an adding module 30, configured to add the difference data to the preset template to form a new preset template, and complete updating of the network component.
The network component updating device of the embodiment controls the operation of the received customized network component through the control module 10, and counts the operation error rate in the preset time; when the operation error rate is less than the preset value, which indicates that the customized network component can stably realize the transmission of the service data between the financial institution and the partner thereof, the comparison module 20 compares the customized network component with the preset base plate to determine the difference data between the customized network component and the preset base plate; the preset base version is a network component version used for stably transmitting original service data, and the customized network component is a network component version set for the transmission requirement of new service data; the difference data between the two is data which can be used for realizing the transmission requirement of the new service data, and the adding module 30 adds the difference data into the preset base plate to form a new preset base plate; the method avoids directly updating the preset base plate for transmitting the original service data aiming at the new service data, reduces the version release frequency of the network component, ensures the stable transmission of the original service data and simultaneously realizes the transmission of the new service data.
Further, in another embodiment of the apparatus for updating a network component of the present invention, the control module includes:
the receiving unit is used for accessing the business data to a central application component in the customized network component based on an agent component in the customized network component when a first access request of the business data corresponding to the customized network component is received;
a reading unit, configured to read first access information of the first access request, and determine an access manner of the service data according to an access identifier carried in the service data corresponding to the central application component;
and the statistical unit is used for counting the operation error rate of the customized network component in the preset time according to the consistency of the first access information and the access mode.
Further, in another embodiment of the apparatus for updating a network component of the present invention, the statistical unit is further configured to:
counting the operation times of performing access operation on the service data within a preset time, and judging whether the first access information is consistent with the access mode in each operation time;
if the first access information is inconsistent with the access mode, judging an access error, and counting the error frequency of the access error;
and determining the operation error rate of the customized network component according to the error times and the operation times.
Further, in another embodiment of the apparatus for updating a network component of the present invention, the statistical unit is further configured to:
counting the request times of receiving the access request within a preset time, and determining the effective request times and the ineffective request times in the request times;
setting the effective request times as the operation times, and executing a step of judging whether the access information is consistent with the access mode in each operation time so as to count error times in each operation time;
the step of determining the operation error rate of the customized network component according to the error times and the operation times comprises the following steps:
and determining the operation error rate of the customized network component according to the error times, the invalid request times and the request times.
Further, in another embodiment of the apparatus for updating a network component of the present invention, the adding module includes:
a determining unit, configured to determine, according to the type identifier in the difference data, proxy difference data and application difference data that correspond to a proxy component in the network component and a central application component in the network component, respectively;
and the calling unit is used for calling a preset code to respectively generate an agent adding frame and an application adding frame in the agent component of the preset base version and the central application component of the preset base version, transmitting the agent difference data to the agent adding frame, and transmitting the application difference data to the application adding frame to form a new preset base version and update the network component.
Further, in another embodiment of the network component updating apparatus of the present invention, the network component updating apparatus further includes:
the reading module is used for reading second access information of a second access request when the second access request for service data is received, and determining an access network component corresponding to the second access request according to the second access information;
the access module is used for judging whether the function identifier of the access network component is matched with the second access information or not, and if the function identifier of the access network component is matched with the second access information, the service data is accessed to a central application component of the access network component based on an agent component in the access network component;
and the output module is used for outputting the second access information to a network component operation and maintenance party if the function identifier of the access network component is not matched with the second access information, so that the network component operation and maintenance party can develop the customized network component on the basis of a preset original version according to the second access information.
Further, in another embodiment of the apparatus for updating a network component of the present invention, the comparing module is further configured to:
if the operation error rate is larger than or equal to a preset value, capturing error log information of each operation error of the customized network component;
and generating prompt information of each error log information and outputting the prompt information to a network component operation and maintenance party so that the network component operation and maintenance party can optimize the customized network component according to the prompt information.
Each virtual function module of the network component updating apparatus is stored in the memory 1005 of the network component updating device shown in fig. 4, and when the processor 1001 executes the network component updating program, the function of each module in the embodiment shown in fig. 3 is implemented.
Referring to fig. 4, fig. 4 is a schematic device structure diagram of a hardware operating environment related to the method according to the embodiment of the present invention.
The network component updating device in the embodiment of the present invention may be a Personal Computer (PC), or may be a terminal device such as a smart phone, a tablet computer, an electronic book reader, or a portable computer.
As shown in fig. 4, the network component updating apparatus may include: a processor 1001, such as a CPU (Central Processing Unit), a memory 1005, and a communication bus 1002. The communication bus 1002 is used to realize connection and communication between the processor 1001 and the memory 1005. The memory 1005 may be a Random Access Memory (RAM) or a non-volatile memory (disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Optionally, the network component updating apparatus may further include a user interface, a network interface, a camera, an RF (Radio Frequency) circuit, a sensor, an audio circuit, a WiFi (Wireless broadband) module, and the like. The user interface may comprise a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface may also comprise a standard wired interface, a wireless interface. The network interface may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface).
Those skilled in the art will appreciate that the network component update apparatus configuration shown in fig. 4 does not constitute a limitation of the network component update apparatus and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 4, a memory 1005, which is a kind of computer-readable storage medium, may include therein an operating system, a network communication module, and a network component update program. The operating system is a program that manages and controls the network component update device hardware and software resources, supporting the operation of the network component update program as well as other software and/or programs. The network communication module is used to implement communication between the components within the memory 1005 and with other hardware and software in the network component update apparatus.
In the network component updating apparatus shown in fig. 4, the processor 1001 is configured to execute the network component updating program stored in the memory 1005, and implement the steps in each embodiment of the network component updating method described above.
The present invention provides a computer readable storage medium storing one or more programs, which are also executable by one or more processors for implementing the steps in the embodiments of the network component updating method described above.
It should also be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a computer-readable storage medium (such as ROM/RAM, magnetic disk, optical disk) as described above, and includes several instructions for enabling a terminal device (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention, and all modifications and equivalents of the present invention, which are made by the contents of the present specification and the accompanying drawings, or directly/indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (9)

1. A network component update method, characterized in that the network component update method comprises the steps of:
when a customized network component is received, controlling the customized network component to operate, and counting the operation error rate of the customized network component in a preset time;
judging whether the operation error rate is smaller than a preset value or not, if so, comparing the customized network component with a preset base plate, and determining difference data between the customized network component and the preset base plate;
adding the difference data into the preset base plate to form a new preset base plate, and completing the updating of the network component;
the step of controlling the operation of the customized network component and counting the operation error rate of the customized network component in the preset time comprises the following steps:
when a first access request of business data corresponding to the customized network component is received, accessing the business data to a central application component in the customized network component based on an agent component in the customized network component;
reading first access information of the first access request, and determining an access mode of the service data according to an access identifier carried in the service data corresponding to the central application component;
and according to the consistency of the first access information and the access mode, counting the operation error rate of the customized network component in the preset time.
2. The method for updating network components according to claim 1, wherein the step of counting the operation error rate of the customized network component within a preset time according to the consistency between the first access information and the access mode comprises:
counting the operation times of performing access operation on the service data within a preset time, and judging whether the first access information is consistent with the access mode in each operation time;
if the first access information is inconsistent with the access mode, judging an access error, and counting the error frequency of the access error;
and determining the operation error rate of the customized network component according to the error times and the operation times.
3. The method for updating network components according to claim 2, wherein the step of counting the number of operations for performing the access operation on the service data within a preset time comprises:
counting the request times of receiving the access request within a preset time, and determining the effective request times and the ineffective request times in the request times;
setting the effective request times as operation times, and executing a step of judging whether the access information is consistent with the access mode in each operation time so as to count error times in each operation time;
the step of determining the operation error rate of the customized network component according to the error times and the operation times comprises the following steps:
and determining the operation error rate of the customized network component according to the error times, the invalid request times and the request times.
4. A network component update method according to any of claims 1-3, wherein the step of adding the difference data to the pre-defined base to form a new pre-defined base, and the step of completing the update of the network component comprises:
determining agent difference data and application difference data respectively corresponding to an agent component in the network component and a central application component in the network component according to the type identifier in the difference data;
calling a preset code to respectively generate an agent adding frame and an application adding frame in the agent component of the preset base and the central application component of the preset base, transmitting the agent difference data to the agent adding frame, and transmitting the application difference data to the application adding frame to form a new preset base and update the network component.
5. The network component updating method of any of claims 1-3, wherein the step when the customized network component is received is preceded by:
when a second access request for service data is received, reading second access information of the second access request, and determining an access network component corresponding to the second access request according to the second access information;
judging whether the function identifier of the access network component is matched with the second access information or not, and if the function identifier of the access network component is matched with the second access information, accessing the service data to a central application component of the access network component based on an agent component in the access network component;
and if the function identifier of the access network component is not matched with the second access information, outputting the second access information to a network component operation and maintenance party so that the network component operation and maintenance party can develop a customized network component on the basis of a preset original version according to the second access information.
6. The network component updating method of any of claims 1-3, wherein the step of determining whether the operational error rate is less than a preset value further comprises:
if the operation error rate is larger than or equal to a preset value, capturing error log information of each operation error of the customized network component;
and generating prompt information of each error log information and outputting the prompt information to a network component operation and maintenance party so that the network component operation and maintenance party can optimize the customized network component according to the prompt information.
7. A network component update apparatus, the network component update apparatus comprising:
the control module is used for controlling the operation of the customized network component when the customized network component is received, and counting the operation error rate of the customized network component in the preset time;
the comparison module is used for judging whether the operation error rate is smaller than a preset value or not, if the operation error rate is smaller than the preset value, the customized network component is compared with a preset base plate, and difference data between the customized network component and the preset base plate are determined;
the adding module is used for adding the difference data into the preset base plate to form a new preset base plate and finish the updating of the network component;
the control module includes: the receiving unit is used for accessing the business data to a central application component in the customized network component based on an agent component in the customized network component when a first access request of the business data corresponding to the customized network component is received;
a reading unit, configured to read first access information of the first access request, and determine an access manner of the service data according to an access identifier carried in the service data corresponding to the central application component;
and the statistical unit is used for counting the operation error rate of the customized network component in the preset time according to the consistency of the first access information and the access mode.
8. A network component updating apparatus, characterized in that the network component updating apparatus comprises: a memory, a processor, a communication bus, and a network component update program stored on the memory;
the communication bus is used for realizing connection communication between the processor and the memory;
the processor is configured to execute the network component update program to implement the steps of the network component update method according to any of claims 1-6.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a network component update program which, when executed by a processor, implements the steps of the network component update method of any one of claims 1-6.
CN201811049655.2A 2018-09-07 2018-09-07 Network component updating method, device, equipment and computer readable storage medium Active CN109683926B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811049655.2A CN109683926B (en) 2018-09-07 2018-09-07 Network component updating method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811049655.2A CN109683926B (en) 2018-09-07 2018-09-07 Network component updating method, device, equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109683926A CN109683926A (en) 2019-04-26
CN109683926B true CN109683926B (en) 2023-04-11

Family

ID=66184492

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811049655.2A Active CN109683926B (en) 2018-09-07 2018-09-07 Network component updating method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109683926B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101547214A (en) * 2008-03-25 2009-09-30 联想(北京)有限公司 Method and network side equipment for pushing inside data of enterprise
CN102843352A (en) * 2012-05-15 2012-12-26 广东电网公司茂名供电局 Cross-physical isolation data transparent transmission system and method between intranet and extranet
CN107329735A (en) * 2017-05-19 2017-11-07 北京北信源软件股份有限公司 A kind of intranet patch update method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101547214A (en) * 2008-03-25 2009-09-30 联想(北京)有限公司 Method and network side equipment for pushing inside data of enterprise
CN102843352A (en) * 2012-05-15 2012-12-26 广东电网公司茂名供电局 Cross-physical isolation data transparent transmission system and method between intranet and extranet
CN107329735A (en) * 2017-05-19 2017-11-07 北京北信源软件股份有限公司 A kind of intranet patch update method and device

Also Published As

Publication number Publication date
CN109683926A (en) 2019-04-26

Similar Documents

Publication Publication Date Title
CN107908485B (en) Interface parameter transmission method, device, equipment and computer readable storage medium
CN110597531B (en) Distributed module upgrading method and device and storage medium
CN108335237B (en) Scheme setting method, terminal and computer readable storage medium
CN112653618A (en) Gateway registration method and device of micro-service application API endpoint
CN110222107B (en) Data transmission method and related equipment
CN109491733B (en) Interface display method based on visualization and related equipment
CN110457049A (en) Realize method, apparatus, electronic equipment and the storage medium of plug-in unit automation
CN109657485B (en) Authority processing method and device, terminal equipment and storage medium
CN114139161A (en) Method, device, electronic equipment and medium for batch vulnerability detection
CN113986256A (en) Method and device for issuing application program, electronic equipment and storage medium
CN109683926B (en) Network component updating method, device, equipment and computer readable storage medium
CN110852649A (en) Resource management method, terminal, device and readable storage medium
CN107679871B (en) List management method, device, system and computer readable storage medium
US9870217B2 (en) Toolkit event configuration of applets on a card computing device with installation parameters
CN109299948A (en) A kind of red packet sending method, device, wearable device and storage medium
CN110286907B (en) Display method and device of public button assembly
CN114064712A (en) Data access method and device, electronic equipment and computer readable storage medium
CN109933990B (en) Multi-mode matching-based security vulnerability discovery method and device and electronic equipment
KR101582420B1 (en) Method and apparatus for checking integrity of processing module
CN111722994A (en) Task request response method and device
CN110874305A (en) User operation recording method and device and server
CN112650763A (en) Configuration method of product quota, related equipment and storage medium
CN115004667A (en) Information pushing method and device, electronic equipment and computer readable medium
US10291498B1 (en) Mobile communication device diagnostic client and error remediation sharing
CN110928754A (en) Operation and maintenance auditing method, device, equipment and medium

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