CN107465704B - Data downloading method and device - Google Patents

Data downloading method and device Download PDF

Info

Publication number
CN107465704B
CN107465704B CN201610387425.1A CN201610387425A CN107465704B CN 107465704 B CN107465704 B CN 107465704B CN 201610387425 A CN201610387425 A CN 201610387425A CN 107465704 B CN107465704 B CN 107465704B
Authority
CN
China
Prior art keywords
data
service
conflict
resource
entry
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
CN201610387425.1A
Other languages
Chinese (zh)
Other versions
CN107465704A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201610387425.1A priority Critical patent/CN107465704B/en
Publication of CN107465704A publication Critical patent/CN107465704A/en
Application granted granted Critical
Publication of CN107465704B publication Critical patent/CN107465704B/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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes

Abstract

The embodiment of the invention provides a data downloading method and a device, wherein the method comprises the following steps: receiving a data downloading request, and receiving first data issued by a network manager according to the data downloading request; searching for conflicting data that conflicts with the first data from second data stored in the packet transport network PTN device; and issuing the conflict data and the first data, and eliminating the conflict data. The embodiment of the invention can quickly and successfully download the data transmitted by the network management under the condition of not interrupting the service.

Description

Data downloading method and device
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a data downloading method and apparatus.
Background
In engineering application of Packet Transport Network (PTN) devices, as many as tens of thousands of services and resources are configured on the devices, due to the fact that service data are numerous, the device running time is long, the device version is upgraded, the Network management offline modification configuration is changed, and the like, device data are abnormal or the Network management data and the device data are inconsistent inevitably, and thus, the data of the Network management and the device need to be synchronized.
The method for synchronizing the data of the network manager and the equipment downloads the data to the equipment through the network manager, so that the data of the network manager and the equipment are kept consistent, and the normal operation of the service on the equipment is maintained conveniently. However, for various reasons, there is often a conflict between data requested by the network manager to be issued and data stored in the device database during the downloading process, and the conflict scenario includes intra-object mutual exclusion, inter-object mutual exclusion, unremoved binding relationship, and the like. E.g., static tunnels, resource conflicts in traffic usage; protocol (IP, Internet Protocol) conflicts in the interconnection between networks between interfaces, etc., which may result in download failures. If the service is interrupted in the downloading process, the influence is very large, and the customer satisfaction is seriously influenced.
However, when a conflict occurs in the downloading process, the conflict configuration can only be manually modified item by item according to the error prompt, so that the efficiency is low, and the requirement of uninterrupted service downloading cannot be met.
Disclosure of Invention
The embodiment of the invention aims to provide a data downloading method and device, which can quickly and successfully download data sent by a network management under the condition of not interrupting service.
In order to achieve the above object, an embodiment of the present invention provides a data downloading method, including:
receiving a data downloading request, and receiving first data issued by a network manager according to the data downloading request;
searching for conflicting data that conflicts with the first data from second data stored in the packet transport network PTN device;
and issuing the conflict data and the first data, and eliminating the conflict data.
The step of finding out conflicting data that conflicts with the first data from second data stored in the packet transport network PTN device includes:
carrying out format conversion on the first data to obtain third data, wherein the format of the third data is a format which can be recognized by the PTN equipment;
if the mode of issuing the first data by the network manager is downloading, according to the first resource in the preset resource conflict rule, finding out a first service item configured with the first resource from a plurality of first service items included in the third data, and finding out a second service item configured with the first resource from a plurality of second service items included in the second data;
and finding out the conflict data from the second data according to the first service entry configured with the first resource and the second service entry configured with the first resource.
The step of finding the conflicting data from the second data according to the first service entry configured with the first resource and the second service entry configured with the first resource includes:
comparing a first service item configured with a first resource with a second service item configured with the first resource;
and if the first service name configured in the second service entry configured with the first resource is different from the second service name configured in the first service entry configured with the first resource, taking the second service entry configured with the first resource as conflict data.
Wherein, if the mode of the network manager issuing the first data is downloading, the method further comprises:
according to a third service name in a preset modification conflict rule, searching a first service entry configured with the third service name from a plurality of first service entries included in third data, and searching a second service entry configured with the third service name from a plurality of second service entries included in second data;
and searching the conflict data from the second data according to the first service entry configured with the third service name and the second service entry configured with the third service name.
The step of finding out the conflicting data from the second data according to the first service entry configured with the third service name and the second service entry configured with the third service name includes:
comparing the first service item configured with the third service name with the second service item configured with the third service name;
and if the second resource configured in the first service entry configured with the third service name is different from the third resource configured in the second service entry configured with the third service name, taking the second service entry configured with the third service name as conflict data.
Wherein, if the mode of the network manager issuing the first data is downloading, the method further comprises:
according to a preset service entry in a preset conflict deletion rule, searching a first service entry which is the same as the preset service entry from a plurality of first service entries included in the third data, and searching a second service entry which is the same as the preset service entry from a plurality of second service entries included in the second data;
comparing a first service item which is the same as the preset service item with a second service item which is the same as the preset service item to determine a first service item which is deleted by the network management in an off-line manner;
and searching out a second service item of the first service item which depends on offline deletion of the network management from the plurality of second service items, and taking the second service item of the first service item which depends on offline deletion of the network management as conflict data.
The step of issuing the conflict data and the first data and eliminating the conflict data comprises the following steps:
generating adjustment information for adjusting conflict data according to a preset data adjustment rule;
and issuing the conflict data and the third data to an information model in the PTN equipment in sequence, wherein the issued conflict data carries adjustment information, so that the information model adjusts the conflict data according to the adjustment information.
Wherein the data adjustment rule comprises a data modification rule or a data deletion rule.
An embodiment of the present invention further provides a data downloading apparatus, including:
the receiving module is used for receiving a data downloading request and receiving first data issued by a network manager according to the data downloading request;
the searching module is used for searching conflict data which conflict with the first data from the second data stored in the packet transport network PTN equipment;
and the issuing module is used for issuing the conflict data and the first data and eliminating the conflict data.
Wherein, the searching module comprises:
the conversion unit is used for carrying out format conversion on the first data to obtain third data, and the format of the third data is a format which can be identified by the PTN equipment;
the first searching unit is configured to, if the mode of issuing the first data by the network manager is downloading, search, according to the first resource in the preset resource conflict rule, a first service entry configured with the first resource from a plurality of first service entries included in the third data, and search, from a plurality of second service entries included in the second data, a second service entry configured with the first resource;
and the second searching unit is used for searching the conflict data from the second data according to the first service entry configured with the first resource and the second service entry configured with the first resource.
Wherein the second search unit includes:
the first searching subunit is used for comparing a first service item configured with a first resource with a second service item configured with the first resource;
and the second searching subunit is configured to, if the first service name configured in the second service entry configured with the first resource is different from the second service name configured in the first service entry configured with the first resource, use the second service entry configured with the first resource as the collision data.
Wherein, if the mode of the network manager issuing the first data is downloading, the device further comprises:
a first module, configured to find, according to a third service name in a preset modification conflict rule, a first service entry configured with the third service name from a plurality of first service entries included in third data, and find, from a plurality of second service entries included in second data, a second service entry configured with the third service name;
and the second module is used for searching the conflict data from the second data according to the first service entry configured with the third service name and the second service entry configured with the third service name.
Wherein the second module comprises:
the first unit is used for comparing a first service item configured with a third service name with a second service item configured with the third service name;
a second unit, configured to, if a second resource configured in the first service entry configured with the third service name is different from a third resource configured in the second service entry configured with the third service name, take the second service entry configured with the third service name as conflict data.
Wherein, if the mode of the network manager issuing the first data is downloading, the device further comprises:
a third module, configured to find, according to a preset service entry in a preset deletion conflict rule, a first service entry that is the same as the preset service entry from among a plurality of first service entries included in third data, and find, from among a plurality of second service entries included in second data, a second service entry that is the same as the preset service entry;
the fourth module is used for comparing the first service item which is the same as the preset service item with the second service item which is the same as the preset service item to determine the first service item which is deleted by the network manager in an off-line manner;
and the fifth module is used for searching the second service item of the first service item which depends on offline deletion of the network management from the plurality of second service items and taking the second service item of the first service item which depends on offline deletion of the network management as conflict data.
Wherein, the issuing module includes:
the generating unit is used for generating adjustment information for adjusting the conflict data according to a preset data adjustment rule;
and the issuing unit is used for issuing the conflict data and the third data to the information model in the PTN equipment in sequence, wherein the issued conflict data carries the adjustment information, so that the information model adjusts the conflict data according to the adjustment information.
Wherein the data adjustment rule comprises a data modification rule or a data deletion rule.
The scheme of the invention at least comprises the following beneficial effects:
in the embodiment of the invention, when first data sent by a network manager is received, conflict data which conflicts with the first data are found out from second data stored in a packet transmission network device, then the conflict data and the first data are sent, and the conflict data are eliminated, so that the problem that when conflicts occur in the downloading process, conflict configuration is manually modified item by item according to error prompts, efficiency is low, and the requirement of not interrupting service downloading cannot be met is solved, and the effect of quickly and successfully downloading the data sent by the network manager under the condition of not interrupting the service is achieved.
Drawings
FIG. 1 is a flowchart illustrating a data downloading method according to a first embodiment of the present invention;
FIG. 2 is a flowchart of step 102 of FIG. 1 according to a first embodiment of the present invention;
FIG. 3 is a flowchart of step 103 of FIG. 1 according to a first embodiment of the present invention;
fig. 4 is a schematic structural diagram of a data downloading device according to a second embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
First embodiment
As shown in fig. 1, a first embodiment of the present invention provides a data downloading method, including:
step 101, receiving a data downloading request, and receiving first data issued by a network manager according to the data downloading request.
The data downloading request is used for requesting to download the first data on the network management.
In the first embodiment of the present invention, when the second data stored in the Packet Transport Network (PTN) device is abnormal or the first data in the network manager is inconsistent with the second data stored in the PTN device, the adaptation module in the PTN device may download the first data from the network manager according to the received data download request, that is, receive the first data sent to it by the network manager.
Step 102, finding out the conflict data conflicting with the first data from the second data stored in the packet transfer network device.
The second data may be data configured and stored in PTN device data when a terminal or a network manager, such as a Command Line Interface (CLI), configures a service for the PTN device.
In the first embodiment of the present invention, if there is conflicting data that conflicts with the first data in the second data stored in the PTN device, the downloading of the first data may fail. Therefore, the conflict data needs to be first found out and processed, so that the first data can be successfully downloaded.
And 103, issuing the conflict data and the first data and eliminating the conflict data.
In the first embodiment of the present invention, when the adaptation module sends the first data and the burst data to the information model in the PTN device, the burst data is adjusted, that is, the burst data is eliminated, so that the second data does not have data that conflicts with the first data, thereby facilitating the successful downloading of the first data.
It can be seen that, in the first embodiment of the present invention, when receiving first data sent by a network manager, conflict data that conflicts with the first data is found from second data stored in a packet transport network device, and then the conflict data and the first data are sent, and the conflict data is eliminated, so that the problem that when a conflict occurs during a downloading process, a conflict configuration is manually modified item by item according to an error prompt, which is not only inefficient, but also fails to meet a requirement of uninterrupted service downloading is solved, and the effect of quickly and successfully downloading data sent by the network manager (i.e. the first data) without interrupting the service is achieved, and the user satisfaction is improved.
Optionally, in the first embodiment of the present invention, as shown in fig. 2, the step 102 includes the following steps:
step 201, performing format conversion on the first data to obtain third data.
The first data in the network management and the second data in the PTN device both have respective specific data formats, and the formats of the first data and the second data are likely to be different, so that format conversion needs to be performed on the first data sent by the network management, so that the format of the converted third data is a format that can be recognized by the PTN device. Of course, if the formats of the first data in the network manager and the second data in the PTN device are the same, format conversion is not required.
In the first embodiment of the present invention, the above-described format conversion process is described with a specific example. Assuming that the first data is called a Qx format packet, the second data is called an M-port packet, and an Object Identifier (OID) is used for modeling each M-port packet by the adaptation module, where each OID has its own attribute. Since the granularity of the two data models, the Qx format message and the M-port message, is not the same, and the granularity of the Qx format message is larger than that of the M-port message, when the Qx format message is converted, one Qx format message generally corresponds to a plurality of OIDs of the adaptation module.
Step 202, if the mode of the network manager issuing the first data is downloading, according to the first resource in the preset resource conflict rule, finding out the first service entry configured with the first resource from the plurality of first service entries included in the third data, and finding out the second service entry configured with the first resource from the plurality of second service entries included in the second data.
The first resource in the resource conflict rule may be an interface, an IP, a tag name, or the like.
The third data actually includes a plurality of first service entries, where each first service entry includes (i.e., is configured with) a service name, and some first service entries also have resources configured in addition to the service name; what is actually included in the similar second data is a plurality of second service entries, where each second service entry includes (i.e., is configured with) a service name, and some second service entries are configured with resources in addition to the service name.
In addition, the resource conflict rule mainly includes a mutual exclusion relationship of resources (e.g., interface, IP, tag name, etc.), for example, if the service 1 uses the interface 1, other services cannot use the interface 1. Specifically, the resource conflict rule is preset by a worker according to experience. Because the staff can analyze and summarize which resources used by the service are easy to conflict according to rich experience. In this way, the adaptation module may search from the plurality of first service entries and the plurality of second service entries according to the first resource in the resource conflict rule, and find the first service entry and the second service entry configured with the first resource in the resource conflict rule.
It should be noted that if the mode of reading the first data sent by the network manager is not downloading, but other, the subsequent steps in the first embodiment of the present invention will not be executed, and the specific execution flow is the same as the existing flow, so that redundant description is not repeated here.
Step 203, finding out the conflict data from the second data according to the first service entry configured with the first resource and the second service entry configured with the first resource.
The first resource in step 203 refers to the first resource in the resource conflict rule.
In the first embodiment of the present invention, the conflict data may be found from the second data by comparing the first service entry configured with the first resource with the second service entry configured with the first resource. Specifically, if the first service name configured in the second service entry configured with the first resource is different from the second service name configured in the first service entry configured with the first resource, the second service entry configured with the first resource is used as the conflict data.
In the first embodiment of the present invention, the above steps 202 and 203 are described by using a specific example. Assuming that a first resource in the resource conflict rule is interface 1, the first resource configured by service entry 1 is found out from a plurality of first service entries by using interface 1 as interface 1, and the first resource configured by service entry 2 is found out from a plurality of second service entries by using interface 1 as interface 1, and then the service entry 1 and the service entry 2 are compared, and if the service name configured in service entry 2 is different from the service name configured in service entry 1, the service entry 2 is used as conflict data.
In the first embodiment of the present invention, if the mode of issuing the first data by the network manager is downloading, the method further includes two other modes of finding out the conflict data conflicting with the first data from the second data stored in the PTN device.
Wherein, the first mode is as follows: first, according to a third service name in a preset modification conflict rule, a first service entry configured with the third service name is found from a plurality of first service entries included in third data, a second service entry configured with the third service name is found from a plurality of second service entries included in second data, and then, according to the first service entry configured with the third service name and the second service entry configured with the third service name, conflict data is found from the second data. Specifically, the conflict data can be found from the second data by comparing the first service entry configured with the third service name with the second service entry configured with the third service name. More specifically, if the comparison shows that the second resource (for example, interface, IP, tag name, etc.) configured in the first service entry configured with the third service name is different from the third resource (for example, interface, IP, tag name, etc.) configured in the second service entry configured with the third service name, the second service entry configured with the third service name is taken as the conflict data. The second resource and the third resource are resources of the same type, and are both interfaces, for example.
In the first embodiment of the present invention, the above first manner is described as a specific example. Assuming that the service name in the modified conflict rule is name 1, the name 1 is used to find out the service name of the service entry 3 from a plurality of first service entries as name 1, and at the same time, the name of the service entry 4 is found out from a plurality of second service entries as name 1, and then the service entry 3 and the service entry 4 are compared, and the interface configured in the service entry 4 is found to be interface 2, and the interface configured in the service entry 3 is interface 3, so that the service entry 4 is used as conflict data.
The second way is: the method comprises the steps of firstly, searching a first service item which is the same as a preset service item from a plurality of first service items included in third data according to the preset service item in a preset conflict deletion rule, searching a second service item which is the same as the preset service item from a plurality of second service items included in second data, then comparing the first service item which is the same as the preset service item with the second service item which is the same as the preset service item to determine the first service item deleted offline by a network manager, finally, searching a second service item of the first service item deleted offline by the network manager from the plurality of second service items, and taking the second service item of the first service item deleted offline by the network manager as conflict data.
In the first embodiment of the present invention, the above-described second mode is described as a specific example. Assume specifically that the delete conflict rule content is: if the network manager deletes the service entry 5, the service entry depending on the service entry 5 on the PTN device needs to be deleted, that is, the preset service entry in the conflict rule is deleted as the service entry 5, 4 first service entries identical to the service entry 5 are found from the plurality of first service entries, 5 second service entries identical to the service entry 5 are found from the plurality of second service entries, the 4 first service entries identical to the service entry 5 and the 5 second service entries are compared, which service entries 5 the network manager deletes offline, is determined, and the second service entries depending on the service entries 5 are used as conflict data.
It should be noted that, the conflict deletion rule and the conflict modification rule are similar to the resource conflict rule and are preset by the staff according to experience.
Alternatively, in the first embodiment of the present invention, as shown in fig. 3, the step 103 includes the following steps:
step 301, generating adjustment information for adjusting the conflict data according to a preset data adjustment rule.
In the first embodiment of the present invention, the data adjustment rule includes a data modification rule or a data deletion rule, and accordingly, the adjustment information is used to indicate that conflicting data is modified or deleted. The data modification rule is a limiting condition for modifying the conflict data in the second data on the PTN equipment and cannot be modified directly at will; similarly, the data deletion rule refers to a limiting condition for deleting the conflicting data in the second data on the PTN device, and the conflicting data cannot be deleted directly at will. For example, there is a dependency relationship between service 1 and service 2, and if service 1 needs to be modified or deleted, service 2 needs to be modified or deleted first. It should be noted that, the data adjustment rule and the resource conflict rule are all preset by the staff according to experience, and specifically, both can be edited and set through a Domain Specific Language (DSL) and stored in the PTN device.
And step 302, issuing the conflict data and the third data to the information model in the PTN equipment in sequence.
And the issued conflict data carries the adjustment information, so that the information model adjusts the conflict data according to the adjustment information. The third data is data obtained by converting the format of the first data. It should be noted that, only after the third data is successfully issued to the information model, the PTN device finishes downloading the data.
In the first embodiment of the present invention, due to the limitation of the information model implementation mechanism, when processing a packet of data, it cannot process the conflict data sent before to modify the second data in the PTN device database in real time, so that when sending the third data later, the conflict data in the PTN device database still exists, resulting in a download failure. Therefore, the collision data and the third data cannot be transmitted in the same packet, and the collision data and the third data need to be transmitted in packets. That is, step 302 specifically includes: and the sub-packets sequentially send the conflict data and the third data to an information model in the PTN equipment.
Specifically, the conflict data may be issued in the first packet, and the adjustment information may be carried at the same time, so that the information model adjusts the conflict data according to the adjustment information; and then, third data is transmitted in the second packet, so that the core data is not influenced and the downloading is successful. Certainly, after the third data is successfully sent to the information model, the information model feeds back a response message of successful downloading to the adaptation module, and the adaptation module feeds back a response message of successful downloading to the network manager after receiving the response message.
As a preferred example, in the first embodiment of the present invention, after the first packet issues the conflicting data to the information model, the third data may be sent in multiple packets, as long as the third data can be successfully issued to the information model, for example, if the third data is sent in two packets, the process of sequentially issuing the conflicting data and the third data to the information model is as follows: the first packet issues the collision data, the second packet issues a part of the third data, and the third packet issues the remaining part of the third data.
Second embodiment
As shown in fig. 4, a second embodiment of the present invention provides a data downloading apparatus, including:
the receiving module 401 is configured to receive a data downloading request, and receive first data sent by a network manager according to the data downloading request;
a searching module 402, configured to search, from second data stored in the packet transport network PTN device, collision data that collides with the first data;
and the issuing module 403 is configured to issue the conflict data and the first data, and eliminate the conflict data.
Wherein, the searching module 402 comprises:
the conversion unit is used for carrying out format conversion on the first data to obtain third data, and the format of the third data is a format which can be identified by the PTN equipment;
the first searching unit is configured to, if the mode of issuing the first data by the network manager is downloading, search, according to the first resource in the preset resource conflict rule, a first service entry configured with the first resource from a plurality of first service entries included in the third data, and search, from a plurality of second service entries included in the second data, a second service entry configured with the first resource;
and the second searching unit is used for searching the conflict data from the second data according to the first service entry configured with the first resource and the second service entry configured with the first resource.
Wherein the second search unit includes:
the first searching subunit is used for comparing a first service item configured with a first resource with a second service item configured with the first resource;
and the second searching subunit is configured to, if the first service name configured in the second service entry configured with the first resource is different from the second service name configured in the first service entry configured with the first resource, use the second service entry configured with the first resource as the collision data.
Wherein, if the mode of the network manager issuing the first data is downloading, the device further comprises:
a first module, configured to find, according to a third service name in a preset modification conflict rule, a first service entry configured with the third service name from a plurality of first service entries included in third data, and find, from a plurality of second service entries included in second data, a second service entry configured with the third service name;
and the second module is used for searching the conflict data from the second data according to the first service entry configured with the third service name and the second service entry configured with the third service name.
Wherein the second module comprises:
the first unit is used for comparing a first service item configured with a third service name with a second service item configured with the third service name;
a second unit, configured to, if a second resource configured in the first service entry configured with the third service name is different from a third resource configured in the second service entry configured with the third service name, take the second service entry configured with the third service name as conflict data.
Wherein, if the mode of the network manager issuing the first data is downloading, the device further comprises:
a third module, configured to find, according to a preset service entry in a preset deletion conflict rule, a first service entry that is the same as the preset service entry from among a plurality of first service entries included in third data, and find, from among a plurality of second service entries included in second data, a second service entry that is the same as the preset service entry;
the fourth module is used for comparing the first service item which is the same as the preset service item with the second service item which is the same as the preset service item to determine the first service item which is deleted by the network manager in an off-line manner;
and the fifth module is used for searching the second service item of the first service item which depends on offline deletion of the network management from the plurality of second service items and taking the second service item of the first service item which depends on offline deletion of the network management as conflict data.
The issuing module 403 includes:
the generating unit is used for generating adjustment information for adjusting the conflict data according to a preset data adjustment rule;
and the issuing unit is used for issuing the conflict data and the third data to the information model in the PTN equipment in sequence, wherein the issued conflict data carries the adjustment information, so that the information model adjusts the conflict data according to the adjustment information.
Wherein the data adjustment rule comprises a data modification rule or a data deletion rule.
In the second embodiment of the present invention, when receiving the first data sent by the network manager, the conflict data conflicting with the first data is found from the second data stored in the packet transport network device, and then the conflict data and the first data are sent, and the conflict data is eliminated, so that the problem that when a conflict occurs in the downloading process, the conflict configuration is manually modified item by item according to an error prompt, which is not only inefficient, but also cannot meet the requirement of uninterrupted service downloading is solved, and the effect of quickly and successfully downloading the data sent by the network manager underground is achieved without interrupting the service.
It should be noted that the data downloading device provided in the second embodiment of the present invention is a device applying the data downloading method, that is, all embodiments of the method are applicable to the device, and can achieve the same or similar beneficial effects.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (12)

1. A method for downloading data, comprising:
receiving a data downloading request, and receiving first data issued by a network manager according to the data downloading request;
carrying out format conversion on the first data to obtain third data, wherein the format of the third data is a format which can be recognized by PTN equipment;
if the mode of the network management issuing the first data is downloading, according to a first resource in a preset resource conflict rule, searching a first service item configured with the first resource from a plurality of first service items included in the third data, and searching a second service item configured with the first resource from a plurality of second service items included in the second data;
comparing a first service entry configured with the first resource with a second service entry configured with the first resource, and if a first service name configured in the second service entry configured with the first resource is different from a second service name configured in the first service entry configured with the first resource, taking the second service entry configured with the first resource as conflict data;
and issuing the conflict data and the first data, and eliminating the conflict data.
2. The method of claim 1, wherein if the way for the network manager to send the first data is downloading, the method further comprises:
according to a third service name in a preset modification conflict rule, searching a first service entry configured with the third service name from a plurality of first service entries included in the third data, and searching a second service entry configured with the third service name from a plurality of second service entries included in the second data;
and searching the conflict data from the second data according to the first service entry configured with the third service name and the second service entry configured with the third service name.
3. The method of claim 2, wherein the step of finding the conflicting data from the second data based on a first service entry configured with the third service name and a second service entry configured with the third service name comprises:
comparing the first service item configured with the third service name with the second service item configured with the third service name;
and if the second resource configured in the first service entry configured with the third service name is different from the third resource configured in the second service entry configured with the third service name, taking the second service entry configured with the third service name as the conflict data.
4. The method of claim 1, wherein if the way for the network manager to send the first data is downloading, the method further comprises:
according to a preset service entry in a preset deletion conflict rule, searching a first service entry which is the same as the preset service entry from a plurality of first service entries included in the third data, and searching a second service entry which is the same as the preset service entry from a plurality of second service entries included in the second data;
comparing a first service item which is the same as the preset service item with a second service item which is the same as the preset service item to determine a first service item which is deleted by the network manager in an off-line manner;
and searching out a second service item of the first service item which depends on offline deletion of the network management from the plurality of second service items, and taking the second service item of the first service item which depends on offline deletion of the network management as the conflict data.
5. The method of claim 1, wherein said step of issuing said conflicting data and said first data and eliminating said conflicting data comprises:
generating adjustment information for adjusting the conflict data according to a preset data adjustment rule;
and issuing the conflict data and the third data to an information model in the PTN equipment in sequence, wherein the issued conflict data carries the adjustment information, so that the information model adjusts the conflict data according to the adjustment information.
6. The method of claim 5, wherein the data adjustment rule comprises a data modification rule or a data deletion rule.
7. A data download apparatus, comprising:
the receiving module is used for receiving a data downloading request and receiving first data issued by a network manager according to the data downloading request;
the searching module is used for searching conflict data which conflict with the first data from second data stored in Packet Transport Network (PTN) equipment;
the issuing module is used for issuing the conflict data and the first data and eliminating the conflict data;
wherein the search module comprises:
the conversion unit is used for carrying out format conversion on the first data to obtain third data, and the format of the third data is a format which can be identified by the PTN equipment;
a first searching unit, configured to, if the mode of issuing the first data by the network manager is downloading, according to a first resource in a preset resource conflict rule, search, from a plurality of first service entries included in the third data, a first service entry configured with the first resource, and search, from a plurality of second service entries included in the second data, a second service entry configured with the first resource;
and a second searching unit, configured to compare a first service entry configured with the first resource with a second service entry configured with the first resource, and if a first service name configured in the second service entry configured with the first resource is different from a second service name configured in the first service entry configured with the first resource, use the second service entry configured with the first resource as the collision data.
8. The apparatus of claim 7, wherein if the way for the network manager to send the first data is downloading, the apparatus further comprises:
a first module, configured to find, according to a third service name in a preset modification conflict rule, a first service entry configured with the third service name from a plurality of first service entries included in the third data, and find, from a plurality of second service entries included in the second data, a second service entry configured with the third service name;
and a second module, configured to find the conflict data from the second data according to the first service entry configured with the third service name and the second service entry configured with the third service name.
9. The apparatus of claim 8, wherein the second module comprises:
a first unit, configured to compare a first service entry configured with the third service name with a second service entry configured with the third service name;
a second unit, configured to, if a second resource configured in a first service entry configured with the third service name is different from a third resource configured in a second service entry configured with the third service name, use the second service entry configured with the third service name as the conflict data.
10. The apparatus of claim 7, wherein if the way for the network manager to send the first data is downloading, the apparatus further comprises:
a third module, configured to find, according to a preset service entry in a preset deletion conflict rule, a first service entry that is the same as the preset service entry from among a plurality of first service entries included in the third data, and find, from among a plurality of second service entries included in the second data, a second service entry that is the same as the preset service entry;
a fourth module, configured to compare the first service entry that is the same as the preset service entry with the second service entry that is the same as the preset service entry, and determine a first service entry that is deleted offline by the network manager;
and the fifth module is used for searching the second service item of the first service item which depends on offline deletion of the network management from the plurality of second service items and taking the second service item of the first service item which depends on offline deletion of the network management as the conflict data.
11. The apparatus of claim 7, wherein the issuing module comprises:
the generating unit is used for generating adjustment information for adjusting the conflict data according to a preset data adjustment rule;
and the issuing unit is used for issuing the conflict data and the third data to an information model in the PTN equipment in sequence, wherein the issued conflict data carries the adjustment information, so that the information model adjusts the conflict data according to the adjustment information.
12. The apparatus of claim 11, wherein the data adjustment rule comprises a data modification rule or a data deletion rule.
CN201610387425.1A 2016-06-02 2016-06-02 Data downloading method and device Active CN107465704B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610387425.1A CN107465704B (en) 2016-06-02 2016-06-02 Data downloading method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610387425.1A CN107465704B (en) 2016-06-02 2016-06-02 Data downloading method and device

Publications (2)

Publication Number Publication Date
CN107465704A CN107465704A (en) 2017-12-12
CN107465704B true CN107465704B (en) 2021-07-20

Family

ID=60544773

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610387425.1A Active CN107465704B (en) 2016-06-02 2016-06-02 Data downloading method and device

Country Status (1)

Country Link
CN (1) CN107465704B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112187493A (en) * 2019-07-01 2021-01-05 烽火通信科技股份有限公司 Network management service data issuing method and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1905470A (en) * 2005-07-25 2007-01-31 中兴通讯股份有限公司 Upper and lower layer network managing data consistency processing method for telecommunication managing network
CN103188095A (en) * 2011-12-29 2013-07-03 中兴通讯股份有限公司 Method for processing looped network route in packet transport network, network management device and node equipment
CN103561107A (en) * 2013-11-13 2014-02-05 北京国双科技有限公司 Method and device for processing data downloading conflict

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9106569B2 (en) * 2009-03-29 2015-08-11 Ltn Global Communications, Inc. System and method that routes flows via multicast flow transport for groups

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1905470A (en) * 2005-07-25 2007-01-31 中兴通讯股份有限公司 Upper and lower layer network managing data consistency processing method for telecommunication managing network
CN103188095A (en) * 2011-12-29 2013-07-03 中兴通讯股份有限公司 Method for processing looped network route in packet transport network, network management device and node equipment
CN103561107A (en) * 2013-11-13 2014-02-05 北京国双科技有限公司 Method and device for processing data downloading conflict

Also Published As

Publication number Publication date
CN107465704A (en) 2017-12-12

Similar Documents

Publication Publication Date Title
US7181436B1 (en) Automatically generating replication topology information for use by a directory service
CN106936633B (en) Application installation package manufacturing method and server
KR20080068110A (en) A method for processing data synchronization and client terminal, server and data synchronization system thereof
WO2014063550A1 (en) Method and system for microblog resource sharing
CN106257868B (en) Configuration data pushing method and device
KR20150110766A (en) Application upgrade method and device
CN106412064A (en) Remote upgrade method of power utilization information acquisition terminal
CN104301395A (en) Method, electronic equipment and system for upgrading devices automatically
WO2014086123A1 (en) Search method and information search terminal
CN105812426A (en) Upgrade system and upgrade method for multi-business access platform
CN108833565A (en) A kind of method, apparatus of monitoring server, server and storage medium
CN102622550A (en) Safe online patch check system facing terminal computers
CN107465704B (en) Data downloading method and device
CN101340286B (en) Session connection initiating method and apparatus
CN106303577B (en) Download the method and device of Streaming Media
WO2024074091A1 (en) Sip dynamic load balancing method and system, and device and storage medium
CN108600004B (en) Video server configuration management method and system
CN106302605A (en) Real-time messages repeater system based on OpenFire server and implementation method
CN111061745A (en) Data synchronization system and method
WO2022121492A1 (en) File transmission method and apparatus, computer device, and storage medium
CN109462568B (en) Portal authentication method, system and Portal proxy server
CN112910697B (en) Fault processing method and device
CN111460034B (en) Bidirectional database synchronization method, synchronization unit and system
WO2016101424A1 (en) Method and apparatus for realizing terminal service information processing
CN100372311C (en) Radio searching method for terminal management in synchronous marking language

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