CN110677513B - Method and system for collecting binding domain and domain lower address pool of metropolitan area network private line user - Google Patents

Method and system for collecting binding domain and domain lower address pool of metropolitan area network private line user Download PDF

Info

Publication number
CN110677513B
CN110677513B CN201910952505.0A CN201910952505A CN110677513B CN 110677513 B CN110677513 B CN 110677513B CN 201910952505 A CN201910952505 A CN 201910952505A CN 110677513 B CN110677513 B CN 110677513B
Authority
CN
China
Prior art keywords
information
address
domain
address pool
list
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
CN201910952505.0A
Other languages
Chinese (zh)
Other versions
CN110677513A (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.)
Unihub China Information Technology Co Ltd
Original Assignee
Unihub China Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Unihub China Information Technology Co Ltd filed Critical Unihub China Information Technology Co Ltd
Priority to CN201910952505.0A priority Critical patent/CN110677513B/en
Publication of CN110677513A publication Critical patent/CN110677513A/en
Application granted granted Critical
Publication of CN110677513B publication Critical patent/CN110677513B/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
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5061Pools of addresses

Abstract

The invention provides a method and a system for collecting a binding domain and an address pool under the domain of a metropolitan area network private line user, wherein the method comprises the following steps: acquiring global data configuration of metropolitan area network equipment; filtering out information containing special line user keywords; reading the configuration file line by line, and capturing key information by using the key words; storing the single address in a first list according to the key information; storing the range address in a second list; merging the two lists and carrying out duplicate removal processing to obtain a third list; according to the third list, matching is carried out by utilizing the key information, and address pool information containing address pool keywords is read from the adjacent items of the matching information; and connecting the domain name and the address pool name by using the connector to obtain the binding domain and the address pool under the domain of the private line user. The method and the system can quickly and accurately collect the domain and address pool information bound by the private line user, save a large amount of working time, improve the working efficiency, save the labor cost and reduce the error rate.

Description

Method and system for collecting binding domain and domain lower address pool of metropolitan area network private line user
Technical Field
The invention relates to the technical field of metropolitan area networks, in particular to a method and a system for collecting binding domains and under-domain address pools of special line users of the metropolitan area networks.
Background
At present, in a metropolitan area network BRAS/SR/MSE device service migration or modification process, domain and address pool information corresponding to a private line user is generally collected manually, and the specific process is as follows:
manually collecting global configuration data of BRAS/SR/MSE equipment; then manually searching special line user information (static-user configuration) needing to be operated; furthermore, the domain related configuration (mainly the information of the address pool bound under the domain, but the bound address pool is many, and is useful to find out) is found through the information of the bound domain in the information; then, according to the gateway information bound by the private line user, the address pool information is searched; the corresponding address pool information under the domain is searched through the address pool name (one address pool can be only bound under one domain), so that the address pool information which can be operated under the domain is determined.
Generally, an address pool has about 250 addresses, if all the addresses are private line users, about 250 static-user configuration information exists, and generally, a BRAS/SR/MSE has thousands of users, so that the address pool may have dozens or hundreds, only depends on manual collection of information such as private line user domains, address pools and the like, and has long time, low efficiency and easy problem occurrence.
In view of the above, there is a need for a collection scheme for private line user domains and address pools that can overcome the problems of low efficiency and many errors in manual operations.
Disclosure of Invention
In order to solve the problems, the invention provides a method and a system for collecting a binding domain and an under-domain address pool of a metropolitan area network private line user. The domain and the related address pool bound in static-user configuration can be automatically searched out by combining the technical means of regular expression, list grouping (a function of Python) and the like through an effective logic algorithm through the powerful and fast processing capability of a computer, so that the domain and the address pool information bound by static-user can be quickly and accurately collected, the working efficiency is improved, and the labor cost and the error rate are reduced.
In an embodiment of the present invention, a method for collecting a binding domain and an address pool under the domain of a metropolitan area network private line user is provided, the method includes:
acquiring global data configuration of metropolitan area network equipment, and storing the global data configuration as a first text;
filtering information containing the keywords of the private line user according to the first text, and storing the information as a second text;
reading the first text line by line, and capturing first key information by using special line user keywords and domain name keywords;
storing information corresponding to a single address in a first list according to an address range in the first key information;
storing information corresponding to the range address in a second list according to the address range in the first key information;
merging the first list and the second list, and performing duplicate removal processing to obtain a third list;
capturing second key information by using gateway address keywords and domain name keywords according to the third list;
reading the second text line by line, matching by using the second key information, and reading address pool information containing address pool keywords in adjacent items of matching information;
and according to the address pool information, connecting the domain name and the address pool name by using a connector to obtain the binding domain and the under-domain address pool of the private line user, and storing the binding domain and the under-domain address pool into an address pool list and outputting the address pool list.
In an embodiment of the present invention, a system for collecting an address pool under a binding domain and a domain of a metro network private line user is further provided, where the system includes:
the data acquisition module is used for acquiring the global data configuration of the metropolitan area network equipment and storing the global data configuration as a first text;
the first text filtering module is used for filtering information containing special line user keywords according to the first text and storing the information as a second text;
the first key information capturing module is used for reading the first text line by line and capturing first key information by using special line user keywords and domain name keywords;
the single address information storage module is used for storing information corresponding to a single address in a first list according to the address range in the first key information;
the range address information storage module is used for storing information corresponding to a range address in a second list according to the address range in the first key information;
the merging module is used for merging the first list and the second list and performing duplicate removal processing to obtain a third list;
the second key information capturing module is used for capturing second key information by using gateway address keywords and domain name keywords according to the third list;
the address pool collecting module is used for reading the second text line by line, matching the second text by using the second key information, and reading address pool information containing address pool keywords in adjacent items of matching information;
and the address pool output module is used for connecting the domain name and the address pool name by using the connector according to the address pool information to obtain the binding domain and the address pool under the domain of the private line user, storing the binding domain and the address pool under the domain to an address pool list and outputting the binding domain and the address pool.
In an embodiment of the present invention, a computer device is further provided, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the method for collecting the binding domain and the address pool under the domain of the metro private line user when executing the computer program.
In an embodiment of the present invention, a computer-readable storage medium is further provided, where a computer program for executing the method for collecting the binding domain and the address pool under the domain of the metro network private line user is stored in the computer-readable storage medium.
The method and the system for collecting the binding domain and the address pool under the domain of the special line user of the metropolitan area network can quickly and accurately collect the information of the static-user binding domain and the address pool, can save a large amount of working time, improve the working efficiency, save the labor cost and reduce the error rate.
Drawings
Fig. 1 is a schematic flow chart of a method for collecting a binding domain and an address pool under the domain of a metro network private line user according to an embodiment of the present invention.
Fig. 2 is a schematic diagram of a system architecture for binding a domain and collecting an address pool under the domain of a metro network private line user according to an embodiment of the present invention.
Fig. 3 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The principles and spirit of the present invention will be described with reference to a number of exemplary embodiments. It is understood that these embodiments are given solely for the purpose of enabling those skilled in the art to better understand and to practice the invention, and are not intended to limit the scope of the invention in any way. 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.
As will be appreciated by one skilled in the art, embodiments of the present invention may be embodied as a system, apparatus, device, method, or computer program product. Accordingly, the present disclosure may be embodied in the form of: entirely hardware, entirely software (including firmware, resident software, micro-code, etc.), or a combination of hardware and software.
According to the embodiment of the invention, the method and the system for collecting the binding domain of the special line user of the metropolitan area network and the address pool under the domain are provided, which can help engineers automatically collect the domain and the address pool bound by some special line users (the users bound with static-user and different from common broadband users, which are collectively called special line users) in the process of migrating or transforming the special line service of the metropolitan area network equipment (a large number of static-user special line users exist in the metropolitan area network). For example, if ten thousand rows are configured, wherein the BRAS/SR/MSE data configuration of two thousand static-user dedicated line users is included, it only needs one minute at most to accurately collect the domain and address pool corresponding to each static-user information. The method and the system for collecting the binding domain and the address pool under the domain of the special line user of the metropolitan area network can quickly and accurately collect the information of the static-user binding domain and the address pool, can save a large amount of working time, improve the working efficiency, save the labor cost and reduce the error rate.
The principles and spirit of the present invention are explained in detail below with reference to several representative embodiments of the invention.
Fig. 1 is a flowchart of a method for collecting a binding domain and an address pool under the domain of a metro network private line user according to an embodiment of the present invention. As shown in fig. 1, the method includes:
step S101, obtaining the global data configuration of the metropolitan area network equipment, and storing the global data configuration as a first text S1. txt. The metropolitan area network device may include a BRAS (broadband remote access server), an SR (broadband remote access server), and/or an MSE (multi-service edge router), among others.
And S102, filtering information containing a special line user keyword static-user according to the first text S1.txt, and storing the information as a second text S2. txt.
Specifically, the filtered information may include a user keyword static-user, and a gateway address, interface information, VLAN (virtual local area network) information, and a domain name related thereto. Here, the correlation refers to information located in the same section or information in the vicinity.
Step S103, reading the first text S1.txt line by line, and capturing first key information by using a special line user keyword static-user and a domain name keyword domain-name.
The first key information may include private line user information, a gateway address, interface information, VLAN information, and a domain name; in general, the information may be consistent with the information filtered out in step S102.
Step S104, storing information corresponding to a single address in the first list1 according to the address range in the first key information.
After the information corresponding to the single address is read, further filtering can be carried out; for example, the information of a single address may be filtered by using a filtering keyword, and the filtered information is stored in the first list 1; wherein the first list1 is a data structure of Python. The keyword may be a part different among pieces of information, and the part is used as a filtering keyword to select information satisfying a condition and filter unnecessary information.
The Python is a cross-platform computer programming language, supports the heavy load operators, dynamic types, distinguishing lists, cutting lists and the like, and the function of the Python supports recursion, default parameter values and variable parameters.
Step S105, according to the address range in the first key information, storing information corresponding to the range address in the second list 2. The single address mentioned in step S104 is that the address range in the information is only one address (the start and end of the address range are the same); the range address mentioned in step S105 includes a plurality of addresses (the start and end of the address range are different), that is, the address range in the information is a non-single address.
Similar to the step S104, filtering may be performed after reading the information corresponding to the range address. Filtering the information of the range address by using the filtering keyword, and storing the filtered information into a second list 2; here the second list2 is also a data structure for Python.
Step S106, merging the first list1 and the second list2, and performing deduplication processing to obtain a third list 3. Further, the third list3 may be traversed in a loop, and the spaces are used for list grouping, so as to obtain a processed third list 3; where the list grouping is a function of Python.
Step S107, capturing second key information by using the gateway address keyword gateway and the domain name keyword domain-name according to the third list 3.
Specifically, when capturing the second key information, capturing a gateway address and a domain name by using a gateway address keyword gateway and a domain name keyword domain-name, performing item-by-item comparison and list grouping, storing the gateway address in a gateway address list gateway, and storing the domain name in a domain name list domain; and the second key information comprises a gateway address and a domain name. In addition, the VLAN information and the address information may be captured by using the VLAN key and the address key as a part of the second key information.
Step S108, reading the second text S2.txt line by line, matching by using the second key information, and reading address pool information containing an address pool key word ip pool in the adjacent items of the matching information. The adjacent items here may be information of the same segment or the same line in the text.
In the reading process, the information of the gateway address and the domain name in the second key information can be used for matching. In addition, the VLAN information and the address information captured in step S107 may be used to perform a matching process.
Step S109, according to the address pool information, utilizing a connector "|" to connect the domain name and the address pool name to obtain the binding domain and the address pool under the domain of the private line user, storing the binding domain and the address pool in an address pool list, and outputting the binding domain and the address pool; the address pool list poollist is a data structure for Python.
According to the address pool list poollist, output can be performed and specific operation can be performed. For example, outputting corresponding address pool information in an address pool list poollst, and performing processing of binding a VPN (virtual private network) or locking an address pool on the address pool information; and according to the domain information in the domain name list dolist, deleting the corresponding address or binding the VPN to the address pool information.
It should be noted that although the operations of the method of the present invention have been described in the above embodiments and the accompanying drawings in a particular order, this does not require or imply that these operations must be performed in this particular order, or that all of the operations shown must be performed, to achieve the desired results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions.
For a clearer explanation of the above binding domain of the metro private line user and the method for collecting the address pool under the domain, a specific embodiment is described below, however, it should be noted that this embodiment is only for better explaining the present invention, and should not be construed as an undue limitation to the present invention.
Taking the migration and modification of a special line user of a certain metropolitan area network as an example, the corresponding domain and address pool of the special line user need to be collected, and the specific process is as follows:
step S1, collecting the global data configuration of the metropolitan area network equipment, and storing the configuration as S1.txt, wherein the file information is as follows:
sysname MAN.NE40E
#
info-center source default channel 0log state off
info-center source default channel 4log level informational
info-center loghost source LoopBack0
info-center logbuffer size 1024
#
domain wangguan
ip-pool dlshebaoju-1
trust upstream SN-QOS-1
user-priority downstream 0
domain onu_nms
ip-pool dlonu_nms
ip-pool dlonu_nms-2
ip-pool dlonu_nms-7
trust upstream SN-QOS-1
ip pool dlonu_nms-7bas local
gateway 1.1.1.1 255.255.255.0
section 0 1.1.1.2 1.1.1.254
exposed-ip-address 1.1.1.21.1.1.254 (addresses 2 to 254 are all special line users)
#
ip pool dlshebaoju-1bas local
vpn-instance dlshebaoju
gateway 10.50.1.1 255.255.255.0
section 0 10.50.1.2 10.50.1.254
excluded-ip-address 10.50.1.2 10.50.1.254
static-user 1.1.1.21.1.1.100 gateway 1.1.1.1interface gigabit Ethernet3/0/0.4vlan 3709domain-name uni _ nms detect (static-user private line user configuration)
static-user 1.1.1.101 1.1.1.101gateway 1.1.1.1interface GigabitEthernet3/0/0.5vlan 3709domain-name onu_nms detect
static-user 10.50.1.2 10.50.1.2gateway 10.50.1.1interface GigabitEthernet3/0/0.5vlan 3709domain-name wangguan detect
Step S2, filtering out the configuration containing static-user information and storing the configuration in S2.txt, wherein the file information is as follows:
sysname MAN.NE40E
#
info-center source default channel 0log state off
info-center source default channel 4log level informational
info-center loghost source LoopBack0
info-center logbuffer size 1024
#
domain wangguan
ip-pool dlshebaoju-1
trust upstream SN-QOS-1
user-priority downstream 0
domain onu_nms
ip-pool dlonu_nms
ip-pool dlonu_nms-2
ip-pool dlonu_nms-7
trust upstream SN-QOS-1
ip pool dlonu_nms-7bas local
gateway 1.1.1.1 255.255.255.0
section 0 1.1.1.2 1.1.1.254
exposed-ip-address 1.1.1.21.1.1.254 (addresses 2 to 254 are all special line users)
#
ip pool dlshebaoju-1bas local
vpn-instance dlshebaoju
gateway 10.50.1.1 255.255.255.0
section 0 10.50.1.2 10.50.1.254
excluded-ip-address 10.50.1.2 10.50.1.254
Step S3, reading S1.txt file information line by line, and capturing information to be used by using keywords (such as static-user and domain-name), where the completed data is:
static-user 1.1.1.2 1.1.1.100gateway 1.1.1.1interface GigabitEthernet3/0/0.4vlan 3709domain-name onu_nms detect
static-user 1.1.1.101 1.1.1.101gateway 1.1.1.1interface GigabitEthernet3/0/0.5vlan 3709domain-name onu_nms detect
static-user 10.50.1.2 10.50.1.2gateway 10.50.1.1interface GigabitEthernet3/0/0.5vlan 3709domain-name wangguan detect
in step S4, according to the information collected in step S3, if the address is stored in the list1, the data is as follows:
static-user 1.1.1.101 1.1.1.101gateway 1.1.1.1interface GigabitEthernet3/0/0.5vlan 3709domain-name onu_nms detect
static-user 10.50.1.2 10.50.1.2gateway 10.50.1.1interface GigabitEthernet3/0/0.5vlan 3709domain-name wangguan detect
the data may be further filtered (e.g., by selecting both different portions as filtering keys), assuming that only the following information is satisfied:
static-user 1.1.1.101 1.1.1.101gateway 1.1.1.1interface GigabitEthernet3/0/0.5vlan 3709domain-name onu_nms detect)
in step S5, according to the information collected in step S3, if the range address is stored in the list2, the data is as follows:
static-user 1.1.1.2 1.1.1.100gateway 1.1.1.1interface GigabitEthernet3/0/0.4vlan 3709domain-name onu_nms detect
similarly, the filtering may be performed in the same manner as in step S4.
Step S6, merging list1 and list2, storing the merged list in list3 after duplication removal, circularly traversing the list3 list, and performing rank division by using spaces, wherein the completed information is as follows:
static-user 1.1.1.101 1.1.1.101gateway 1.1.1.1interface GigabitEthernet3/0/0.5vlan 3709domain-name onu_nms detect
static-user 1.1.1.2 1.1.1.100gateway 1.1.1.1interface GigabitEthernet3/0/0.4vlan 3709domain-name onu_nms detect
step S7, using the keywords to search, comparing each item after column division item by item; for example, the latter item 1.1.1.1 using the keyword "gateway" is the gateway address, stored in the gateway list; the keyword "domain-name" is used, and the next item onu _ nms is domain information and is stored in a domain list; similarly, the VLAN information and the address information can be acquired and correspondingly stored; the information collected is as follows:
domain onu_nms
ip-pool dlonus-nms-7 (this pool is bound in static-user)
Step S8, address pool information is acquired. Reading and matching the S2.txt line by line through the gateway information obtained in the step S7, wherein the reading configuration includes the keyword "gateway" and the information of the gateway information such as 1.1.1.1, the row neighbor item includes the address pool name information if the keyword "ip pool", and the field and the corresponding address pool are connected and stored in the list pool by using "|" as a connector according to the field information in the step S7. The information after completion is as follows:
onu_nms|dlonu_nms-7
step S9, outputting the collected private line user-related information, for example:
outputting domain information in a domain name list (dolist), and matching with specific operations such as manually deleting a corresponding address pool, binding VPN and the like, wherein the specific operations include:
aaa
domain onu_nms
undo ip-pool dlonu _ nms-7 (manually add una delete pool of addresses)
Outputting corresponding address pool information in the address pool list poollist, and performing corresponding operation configuration, such as operation configuration of binding the VPN instance, operation of locking the address pool, and the like, on the address pool information existing in step S3 or step S4 in a manual manner.
ip pool dlonu_nms-7bas local
Lock (Manual addition locking address pool configuration)
Based on the same invention concept, the invention also provides a system for collecting the binding domain and the under-domain address pool of the metro network private line user. The implementation of the system can be referred to the implementation of the above method, and repeated details are not repeated. The term "module," as used below, may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 2 is a schematic diagram of a system architecture for binding a domain and collecting an address pool under the domain of a metro network private line user according to an embodiment of the present invention. As shown in fig. 2, the system includes:
the data obtaining module 210 is configured to obtain a metropolitan area network device global data configuration, and store the obtained global data configuration as a first text.
The first text filtering module 220 is configured to filter information including the keyword of the private line user according to the first text, and store the information as a second text;
specifically, according to the first text, information including a special line user keyword static-user, a gateway address, interface information, VLAN information, and a domain name related thereto may be filtered, and the remaining information may be stored as a second text.
A first key information capturing module 230, configured to read the first text line by line, and capture first key information by using a private line user keyword and a domain name keyword;
when the first text is captured, the first text can be read line by line, and first key information is captured by using a special line user keyword static-user and a domain name keyword domain-name, wherein the first key information comprises special line user information, a gateway address, interface information, VLAN information and a domain name.
A single address information storage module 240, configured to store information corresponding to a single address in a first list according to an address range in the first key information;
the module can extract information with a single address range according to the first key information, filter the information with the single address by using a filtering keyword, and store the filtered information into a first list; wherein the first list is a data structure of Python.
A range address information storage module 250, configured to store, according to an address range in the first key information, information corresponding to a range address in a second list;
the module can extract information corresponding to the range address according to the first key information, filter the information of the range address by using the filtering key words and store the filtered information into a second list; wherein the second list is a data structure of Python.
A merging module 260, configured to merge the first list and the second list, and perform deduplication processing to obtain a third list; further, the third list can be traversed circularly, and the blanks are used for grouping the lists to obtain a processed third list; where the list grouping is a function of Python.
A second key information capturing module 270, configured to capture second key information by using a gateway address key and a domain name key according to the third list;
during capturing, capturing gateway addresses, domain names and VLAN information by using gateway address keywords gateway, domain name keywords domain-name and VLAN keywords according to the third list, comparing item by item and grouping the lists, storing the gateway addresses in a gateway address list, and storing the domain names in a domain name list; the second key information comprises a gateway address, a domain name and VLAN information.
The address pool collecting module 280 is configured to read the second text line by line, perform matching by using the second key information, and read address pool information including address pool keywords in adjacent items of matching information;
specifically, the second text can be read line by line, and in the reading process, the gateway address and the domain name information in the second key information are used for matching; in the adjacent item of the matching information, the address pool information containing the address pool keyword ip pool is read.
An address pool output module 290, configured to connect the domain name and the address pool name by using a connector according to the address pool information, obtain a bound domain and an address pool under the bound domain of the private line subscriber, store the bound domain and the address pool in an address pool list, and output the bound domain and the address pool;
specifically, according to the address pool information, the domain name and the address pool name may be connected by using a connector and stored in an address pool list; wherein the address pool list is a data structure of Python;
outputting corresponding address pool information in an address pool list, and binding VPN or locking an address pool to the address pool information;
and according to the domain information in the domain name list, deleting the corresponding address or binding the VPN to the address pool information.
It should be noted that although in the above detailed description several modules of the metro network private line users are mentioned binding domains and collecting systems of address pools under the domains, this division is merely exemplary and not mandatory. Indeed, the features and functionality of two or more of the modules described above may be embodied in one module according to embodiments of the invention. Conversely, the features and functions of one module described above may be further divided into embodiments by a plurality of modules.
Based on the aforementioned inventive concept, as shown in fig. 3, the present invention further provides a computer device 300, which includes a memory 310, a processor 320, and a computer program 330 stored in the memory 310 and operable on the processor 320, wherein the processor 320 executes the computer program 330 to implement the aforementioned method for collecting the binding domain and the address pool under the domain of the metro network private line user.
Based on the above inventive concept, the present invention further provides a computer readable storage medium storing a computer program for executing the above method for collecting the binding domain and the address pool under the domain of the metro network private line user.
The method and the system for collecting the binding domain and the address pool under the domain of the special line user of the metropolitan area network can quickly and accurately collect the information of the static-user binding domain and the address pool, can save a large amount of working time, improve the working efficiency, save the labor cost and reduce the error rate.
While the spirit and principles of the invention have been described with reference to several particular embodiments, it is to be understood that the invention is not limited to the disclosed embodiments, nor is the division of aspects, which is for convenience only as the features in such aspects may not be combined to benefit. The invention is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.

Claims (13)

1. A method for collecting binding domain and address pool under domain of special line user of metropolitan area network includes:
acquiring global data configuration of metropolitan area network equipment, and storing the global data configuration as a first text;
filtering information containing the keywords of the private line user according to the first text, and storing the information as a second text;
reading the first text line by line, and capturing first key information by using special line user keywords and domain name keywords;
storing information corresponding to a single address in a first list according to an address range in the first key information;
storing information corresponding to the range address in a second list according to the address range in the first key information;
merging the first list and the second list, and performing duplicate removal processing to obtain a third list;
capturing second key information by using gateway address keywords and domain name keywords according to the third list;
reading the second text line by line, matching by using the second key information, and reading address pool information containing address pool keywords in adjacent items of matching information; wherein, the adjacent items are information of the same segment or the same line in the text;
and according to the address pool information, connecting the domain name and the address pool name by using a connector to obtain the binding domain and the under-domain address pool of the private line user, and storing the binding domain and the under-domain address pool into an address pool list and outputting the address pool list.
2. The method for collecting the binding domain and the address pool under the domain of the metro network private line user according to claim 1, wherein the filtering out the information containing the keyword of the private line user according to the first text and storing as the second text comprises:
and filtering information including a special line user keyword static-user, a gateway address, interface information, VLAN information and a domain name related to the special line user keyword static-user according to the first text, and storing the rest information as a second text.
3. The method for collecting the binding domain and the under-domain address pool of the metro network private line user according to claim 1, wherein the reading the first text line by line, and capturing the first key information by using the private line user keyword and the domain name keyword comprises:
and reading the first text line by line, and capturing first key information by using a special line user keyword static-user and a domain name keyword domain-name, wherein the first key information comprises special line user information, a gateway address, interface information, VLAN information and a domain name.
4. The method for collecting the binding domain and the address pool under the domain of the metro network private line user according to claim 1, wherein the step of storing the information corresponding to the single address in the first list according to the address range in the first key information comprises:
extracting information with a single address range according to the first key information;
filtering the information of the single address by using the filtering keyword, and storing the filtered information into a first list 1; wherein the first list1 is a data structure of Python.
5. The method for collecting the binding domain and the address pool under the domain of the metro network private line user according to claim 4, wherein the storing the information corresponding to the range address in the second list according to the address range in the first key information comprises:
extracting information corresponding to the range address according to the first key information;
filtering the information of the range address by using the filtering keyword, and storing the filtered information into a second list 2; wherein the second list2 is a data structure of Python.
6. The method according to claim 5, wherein the merging the first list and the second list and performing deduplication processing to obtain a third list comprises:
merging the first list1 and the second list2, and storing the merged list in a third list3 after deduplication processing;
circularly traversing the third list3, and performing list grouping by using spaces to obtain a processed third list 3; where the list grouping is a function of Python.
7. The method for collecting the binding domain and the under-domain address pool of the metro network private line user according to claim 6, wherein capturing the second key information by using the gateway address key and the domain name key according to the third list comprises:
according to the third list3, capturing gateway addresses, domain names and VLAN information by using gateway address keywords gateway, domain name keywords domain-name and VLAN keywords, comparing item by item and grouping lists, storing the gateway addresses in the gateway address list gateway, and storing the domain names in the domain name list domain; the second key information comprises a gateway address, a domain name and VLAN information.
8. The method according to claim 7, wherein reading the second text line by line, matching the second text line by line using the second key information, and reading the address pool information containing address pool keywords in the neighborhood of the matching information, comprises:
reading the second text line by line, and matching by using the gateway address and the domain name information in the second key information in the reading process;
in the adjacent item of the matching information, the address pool information containing the address pool keyword ip pool is read.
9. The method according to claim 8, wherein the method for collecting the bound domain and the address pool under the domain of the metro network private line user comprises the steps of obtaining the bound domain and the address pool under the domain of the private line user by connecting the domain name and the address pool name by using a connector according to the address pool information, storing the bound domain and the address pool under the domain into an address pool list and outputting the address pool, and further comprising:
according to the address pool information, connecting the domain name with the address pool name by using a connector, and storing the domain name and the address pool name into an address pool list poollst; wherein, the address pool list poollist is a data structure of Python;
outputting corresponding address pool information in an address pool list poollist, and binding VPN or locking an address pool to the address pool information;
and according to the domain information in the domain name list dolist, deleting the corresponding address or binding the VPN to the address pool information.
10. The method as claimed in claim 1, wherein the first and second texts are txt format files.
11. A system for collecting binding domain and address pool under domain of special line user of metropolitan area network is characterized in that the system comprises:
the data acquisition module is used for acquiring the global data configuration of the metropolitan area network equipment and storing the global data configuration as a first text;
the first text filtering module is used for filtering information containing special line user keywords according to the first text and storing the information as a second text;
the first key information capturing module is used for reading the first text line by line and capturing first key information by using special line user keywords and domain name keywords;
the single address information storage module is used for storing information corresponding to a single address in a first list according to the address range in the first key information;
the range address information storage module is used for storing information corresponding to a range address in a second list according to the address range in the first key information;
the merging module is used for merging the first list and the second list and performing duplicate removal processing to obtain a third list;
the second key information capturing module is used for capturing second key information by using gateway address keywords and domain name keywords according to the third list;
the address pool collecting module is used for reading the second text line by line, matching the second text by using the second key information, and reading address pool information containing address pool keywords in adjacent items of matching information; wherein, the adjacent items are information of the same segment or the same line in the text;
and the address pool output module is used for connecting the domain name and the address pool name by using the connector according to the address pool information to obtain the binding domain and the address pool under the domain of the private line user, storing the binding domain and the address pool under the domain to an address pool list and outputting the binding domain and the address pool.
12. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any one of claims 1 to 10 when executing the computer program.
13. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program for executing the method of any one of claims 1 to 10.
CN201910952505.0A 2019-10-09 2019-10-09 Method and system for collecting binding domain and domain lower address pool of metropolitan area network private line user Active CN110677513B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910952505.0A CN110677513B (en) 2019-10-09 2019-10-09 Method and system for collecting binding domain and domain lower address pool of metropolitan area network private line user

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910952505.0A CN110677513B (en) 2019-10-09 2019-10-09 Method and system for collecting binding domain and domain lower address pool of metropolitan area network private line user

Publications (2)

Publication Number Publication Date
CN110677513A CN110677513A (en) 2020-01-10
CN110677513B true CN110677513B (en) 2022-03-08

Family

ID=69080977

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910952505.0A Active CN110677513B (en) 2019-10-09 2019-10-09 Method and system for collecting binding domain and domain lower address pool of metropolitan area network private line user

Country Status (1)

Country Link
CN (1) CN110677513B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111901160B (en) * 2020-07-15 2022-09-16 中盈优创资讯科技有限公司 Method and device for combing network equipment garbage strategy configuration
CN111901451A (en) * 2020-07-17 2020-11-06 中盈优创资讯科技有限公司 Method and device for combing reference relationship between private line user domain and address pool

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013107138A1 (en) * 2012-01-18 2013-07-25 华为技术有限公司 Method and apparatus for wifi terminal to access different service domains
CN104320353A (en) * 2014-11-19 2015-01-28 中国联合网络通信集团有限公司 User address managing method and device
CN106331197A (en) * 2015-06-29 2017-01-11 中兴通讯股份有限公司 Method for managing Internet protocol host, broadband access server and management server

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013107138A1 (en) * 2012-01-18 2013-07-25 华为技术有限公司 Method and apparatus for wifi terminal to access different service domains
CN104320353A (en) * 2014-11-19 2015-01-28 中国联合网络通信集团有限公司 User address managing method and device
CN106331197A (en) * 2015-06-29 2017-01-11 中兴通讯股份有限公司 Method for managing Internet protocol host, broadband access server and management server

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
宽带城域网地址问题的若干考虑;熊晶晶;《中兴通讯技术 2002年》;20020430(第2期);全文 *

Also Published As

Publication number Publication date
CN110677513A (en) 2020-01-10

Similar Documents

Publication Publication Date Title
CN110677513B (en) Method and system for collecting binding domain and domain lower address pool of metropolitan area network private line user
CN103237094B (en) A kind of method and device identifying user
CN112565095B (en) Automatic discovery and analysis method and device for internet special line
CN104268216A (en) Data cleaning system based on internet information
EP3251298A1 (en) Data extraction
US20160359688A1 (en) System and method for network management automation
CN111901451A (en) Method and device for combing reference relationship between private line user domain and address pool
CN113364801A (en) Management method, system, terminal device and storage medium of network firewall policy
JP2016054517A (en) Method and apparatus for analysis of streaming net-flow data
CN109561163B (en) Method and device for generating uniform resource locator rewriting rule
CN108197187B (en) Query statement optimization method and device, storage medium and computer equipment
Ferreira et al. Amortized-delay algorithm for listing chordless cycles in undirected graphs
CN112492056A (en) IP address use analysis method and device
JP5445696B2 (en) Reference support device, reference support method, and reference support program
CN107590233B (en) File management method and device
CN112953740B (en) Method and device for monitoring route information
CN116760681A (en) Fault node association discovery method based on frequent item analysis
CN111901159B (en) Method and device for replacing equipment configuration ports in batches
CN114124905A (en) Method and device for judging static address pool address occupation condition statistics
JP5871698B2 (en) Information storage and retrieval device
CN113194108B (en) Attack tool selection method, device, equipment and computer readable storage medium
CN106600250B (en) User identification method and device from block chain decentralized to centralized
KR100503148B1 (en) System for processing web documents based style and content information and method thereof
CN104991963A (en) File processing method and file processing apparatus
CN110704414A (en) Log data cleaning method and device, electronic equipment and storage 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
CP02 Change in the address of a patent holder
CP02 Change in the address of a patent holder

Address after: Room 702-2, No. 4811, Cao'an Highway, Jiading District, Shanghai

Patentee after: CHINA UNITECHS

Address before: 100872 5th floor, Renmin culture building, 59 Zhongguancun Street, Haidian District, Beijing

Patentee before: CHINA UNITECHS