CN112492056B - IP address use analysis method and device - Google Patents

IP address use analysis method and device Download PDF

Info

Publication number
CN112492056B
CN112492056B CN202011268678.XA CN202011268678A CN112492056B CN 112492056 B CN112492056 B CN 112492056B CN 202011268678 A CN202011268678 A CN 202011268678A CN 112492056 B CN112492056 B CN 112492056B
Authority
CN
China
Prior art keywords
address
domain
route
bgp
vpn
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
CN202011268678.XA
Other languages
Chinese (zh)
Other versions
CN112492056A (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 CN202011268678.XA priority Critical patent/CN112492056B/en
Publication of CN112492056A publication Critical patent/CN112492056A/en
Application granted granted Critical
Publication of CN112492056B publication Critical patent/CN112492056B/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/5007Internet protocol [IP] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/30Types of network names
    • H04L2101/33Types of network names containing protocol addresses or telephone numbers

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses an IP address use analysis method and device, wherein the method comprises the following steps: collecting the whole network route in the domain; if a certain IP address cannot be matched with the route in the domain, the IP address is considered as an address outside the domain; if a certain IP address is an intra-domain route, matching the IP address with the collected Bras address pool address, bras equipment or broadband access equipment address, BGP route, VPN route, non-BGP and VPN accessed special line service address, relay address and black hole route according to a configuration rule and a self-defined sequence; marking the matched address with an address classification IPYPE; for the special line service address accessed by BGP and VPN, the special line service address is further subdivided into IDC service type, purple fund service type or common special line service type. The method and the device can locate the specific use condition of each IP address and provide a comprehensive query function.

Description

IP address use analysis method and device
Technical Field
The invention relates to the field of client network fault positioning, in particular to an IP address use analysis method and device.
Background
The use of IP addresses as a public resource unique throughout the network must leave traces on the network devices. By collecting the configuration of the equipment in the whole network, the configured IP address in the whole network can be obtained and analyzed, and the specific service condition of the IP address can be obtained. The method has very important significance for positioning the network fault of the client and knowing the use condition of the IP address resource.
Disclosure of Invention
In view of the above situation, the present invention provides a method and a device for analyzing the use of an IP address, which extracts all data related to the IP address by collecting configuration and operation information of a whole network device, performs relevance analysis on the data according to a router network service configuration principle, effectively ignores or shields non-key point information, gradually locates the specific use condition of each IP address, and provides a comprehensive query function.
In order to achieve the purpose, the invention adopts the following technical scheme:
in an embodiment of the present invention, a method for analyzing an IP address usage is provided, where the method includes:
collecting the whole network routes in the domain, including all public network routes and VPN routes;
if a certain IP address cannot be matched with the intra-domain route, the IP address is regarded as an out-of-domain address;
if a certain IP address is an intra-domain route, matching the IP address with a collected Bras address pool address, a Bras device or broadband access device address, a BGP route, a VPN route, a non-BGP and VPN accessed private line service address, a relay address and a black hole route according to a configuration rule and a self-defined sequence;
marking the matched address with an address classification IPTPYE mark to obtain a corresponding IP address use type;
the collected BGP and VPN accessed special line service addresses are further subdivided into IDC service types, purple fund service types or common special line service types.
Further, the method also includes:
and dividing the IP address into the use types to provide a comprehensive query function.
Further, collecting the whole network route in the domain includes:
mechanical energy address acquisition for all protocol types, including: BGP protocol address, direct address, ISIS protocol address, OSPF protocol address, RIP protocol address, and Static protocol address.
Further, dividing the IP address into the use types provides a comprehensive query function, which comprises the following steps:
and rapidly classifying a large number of IP addresses by a mode of importing the IP addresses in batches, and acquiring relevant client service information and network connection information.
In an embodiment of the present invention, an IP address usage analysis apparatus is further provided, where the apparatus includes:
the intra-domain route acquisition module is used for acquiring the whole network routes in the domain, including all public network routes and VPN routes;
the outside-domain address confirmation module is used for considering that the certain IP address is an outside-domain address when the certain IP address cannot be matched with the inside-domain route;
the intra-domain address matching module is used for matching an IP address with a collected Bras address pool address, a Bras device or broadband access device address, a BGP route, a VPN route, a non-BGP and VPN accessed private line service address, a relay address and a black hole route according to a configuration rule and a self-defined sequence when the IP address is an intra-domain route; marking the matched address with an address classification IPYPE mark to obtain a corresponding IP address use type;
and the IP classification subdivision module is used for further subdividing the collected BGP and VPN accessed private line service addresses into IDC service types, purple fund service types or common private line service types.
Further, the apparatus further comprises:
and the comprehensive query module is used for providing a comprehensive query function for the IP address according to the use type.
Further, collecting the whole network route in the domain includes:
mechanical energy address acquisition for all protocol types, including: BGP protocol address, direct address, ISIS protocol address, OSPF protocol address, RIP protocol address, and Static protocol address.
Further, the comprehensive query module is specifically configured to:
and rapidly classifying a large number of IP addresses by a mode of importing the IP addresses in batches, and acquiring related client service information and network connection information.
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, and the processor implements the foregoing IP address usage analysis method when executing the computer program.
In an embodiment of the present invention, a computer-readable storage medium storing a computer program for executing the IP address usage analysis method is also presented.
Has the advantages that:
1. the invention acquires the IP configuration information of the mass equipment in a classified manner by acquiring the configuration files of the equipment or analyzing the configuration files of the equipment.
2. The invention provides a flexible and definable matching sequence, and filters and screens the classification of the IP addresses according to the network configuration rule to eliminate invalid acquisition information.
3. The invention realizes accurate positioning for the specific use of the IP address, and aims at IP addresses of different use types, so that corresponding important client service information and network connection information are associated and inquired.
4. The invention provides a query function of a uniform entrance for all IP addresses, can quickly classify a large number of IP addresses in a mode of introducing the IP addresses in batches, and obtains relevant client service information and network connection information.
Drawings
FIG. 1 is a flow chart of an IP address usage analysis method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an IP address usage analysis apparatus 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 below with reference to several exemplary embodiments, which should be understood to be presented only to enable those skilled in the art to better understand and implement the present invention, and not to limit the scope of the present 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, an IP address use analysis method and device are provided, all the IP address information which can be collected is collected through a login device, such as: the routing of public networks in the domains, the routing of VPNs in the domains, the routing of Bras addresses, bras equipment or broadband access equipment, BGP routing, VPN routing, IDCs (Internet data centers) which are not accessed by BGP and VPN, purple gold, common special line services, relays, black hole routing and the like are stored in a database. Because the address acquisition information of some address types has an inclusion relationship, the system performs address matching on the intra-domain route according to a flexible and definable priority order, accurately positions the address use type and provides a comprehensive query function.
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 flow chart illustrating an IP address usage analysis method according to an embodiment of the present invention. As shown in fig. 1, the method includes:
1. collecting the whole network routes in the domain, including all public network routes and VPN routes;
2. if a certain IP address cannot be matched with the route in the domain, the IP address is considered as an address outside the domain;
3. if a certain IP address is an intra-domain route, the IP address needs to be matched with a collected Bras address pool address (BIAS tracing system interface for inquiring broadband account information), a Bras device or broadband access device address, a BGP route, a VPN route, a non-BGP and VPN accessed private line service address, a relay address and a black hole route according to a configuration rule and a self-defined sequence;
4. marking the matched address with an address classification IPYPE mark to obtain a corresponding IP address use type;
5. the collected BGP and VPN accessed private line service addresses are further subdivided into IDC service types, purple fund service types or common private line service types.
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.
In order to explain the above IP address analysis method more clearly, the following description is made with reference to a specific embodiment, however, it should be noted that the embodiment is only for better explaining the present invention and is not to be construed as an undue limitation to the present invention.
The detailed implementation of the invention is as follows:
1. collecting intra-domain routes
Mechanical energy address acquisition for all protocol types, including: BGP protocol address, direct address, ISIS protocol address, OSPF protocol address, RIP protocol address, and Static protocol address
(1) BGP protocol addresses
Logging in the equipment, executing a command dis bgp routing-table | exception AS, and returning the result AS follows:
Figure BDA0002776929380000061
Figure BDA0002776929380000071
(2) Direct address
Logging in the equipment, executing a command display ip routing-table protocol direct, and returning the following results:
Figure BDA0002776929380000072
(3) ISIS protocol address
Logging in the equipment, executing a command display-table protocol isis, and returning the following results:
Figure BDA0002776929380000081
(4) OSPF protocol address
Logging in the equipment, executing a command display IP routing-table protocol ospf, returning a result format and filling local with as-path content matched with the IP address.
(5) RIP protocol address
Logging in the equipment, executing a command display IP routing-table protocol rip, returning a result format, and filling local with as-path content matched with the IP address.
6) Static protocol address
Logging in the equipment, executing a command display IP routing-table protocol static, returning a result format and filling local with as-path content matched with the IP address.
2. Collecting VPN routes
Figure BDA0002776929380000082
Figure BDA0002776929380000091
3. Collecting special line service address of VPN access
The router static router static is a keyword: locating to static addresses
address-family ipv4 unicast
10.191.254.0/24 GigabitEthernet 0/4/0/261.148.56.42
61.50.217.32/28 GigabitEthernet 0/2/1/561.148.57.134
61.50.247.0/25 GigabitEthernet 0/4/1/961.148.167.60
The vrf VIP vrf is a keyword for positioning the address of the strip vrf
address-family ipv4 unicast
125.35.7.64/27 GigabitEthernet0/5/1/8.261 61.148.56.226
“125.35.7.64/27 GigabitEthernet0/5/1/8.261 61.148.56.226”
For the obtained VPN address, the second field behind is the port corresponding to the address, and the third field is the next hop of the IP address.
(1) Locating router static in the configuration file, reading all the IP address fields contained in vrf below (not the routing address below vrf is not of interest), encountering "! "indicates that a single vrf contains complete reading of the IP address segment, and records all the address segments inside vrf in turn, and" Gigabit Ethernet 0/5/1/8.261.148.56.226 "behind vrf is vrf name.
(2) As above, the collected VPN address information: 125.35.7.64/27, matching vrf is: VIP, the corresponding port is: gigabitEthernet0/5/1/8.261, the next hop address is: 61.148.56.226.
4. purple gold special line service address collection
Figure BDA0002776929380000101
(1) Searching a key word ip route-static in the configuration file, searching a fifth field key word description behind the key word ip route-static, if no fifth field exists or the fifth field is not the description, not paying attention to the fifth field, and continuing to inquire the next ip route-static;
(2) If the fifth field is keyword description, taking the content of the sixth field, judging whether the sixth field has a zijin or jieruu character (no case distinction), if so, the first field (IP address) and the second field (mask) are the zijin and service address fields to be inquired, finishing the search, and inquiring the next IP route-static according to the first step and the second step until the same configuration file is inquired;
5. broadband access device address collection
Figure BDA0002776929380000102
The execution command returns the following result:
Figure BDA0002776929380000103
Figure BDA0002776929380000111
6. bras address pool address collection
Figure BDA0002776929380000112
The returned result format is as follows:
Figure BDA0002776929380000113
the results are returned as follows:
Figure BDA0002776929380000114
7. black hole route collection
Static state:
Figure BDA0002776929380000121
as above, all the content beginning with IP route-static is queried in the configuration file, the first field is followed by the IP address, the second field is the IP address mask, if the third field is 192.0.2.1, the IP address segment is black hole routing, the first field and the second field are converted into xxx, xxx/x format, and the third field is not 192.0.2.1, and the query is skipped to continue.
Figure BDA0002776929380000122
Reading all the peer addresses of the first column, such as 42.62.79.110,43.254.0.254,61.48.51.90;
and executing the following commands for each peer address acquired above:
display bgp routing-table peer 43.254.0.254 received-routes
the behavioral command line, "43.254.0.254" is the peer address (each peer address fetched above executes this command)
Taking the peer address 43.254.0.254 as an example, the result is as follows:
Figure BDA0002776929380000131
8. analyzing and comparing the collected address information
Intra-domain routing is all address information for the universe. And comparing various types of subsequently acquired address information with the intra-domain route according to a self-defined sequence, marking the matched address information, and acquiring corresponding IP address use classification.
The configuration rules are as follows in table 1:
TABLE 1
Figure BDA0002776929380000132
Configuration data:
insert into AddrTabCompCfg(TABLENAME,IPTYPE,ISCOMVRF,SEQ)
values('VpnUserAddrBJLT','V','1',1);
insert into AddrTabCompCfg(TABLENAME,IPTYPE,ISCOMVRF,SEQ)
values('BgpUserAddrBJLT','B','0',2);
insert into AddrTabCompCfg(TABLENAME,IPTYPE,ISCOMVRF,SEQ)
values('ZiJinUserAddrBJLT','Z','0',3);
insert into AddrTabCompCfg(TABLENAME,IPTYPE,ISCOMVRF,SEQ)
values('ConvergeAddrBJLT','C','0',4);
insert into AddrTabCompCfg(TABLENAME,IPTYPE,ISCOMVRF,SEQ)
values('BlackHoleAddrBJLT','H','0',5);
insert into AddrTabCompCfg(TABLENAME,IPTYPE,ISCOMVRF,SEQ)
values('BasDevAddrBJLT','D','0',6);
insert into AddrTabCompCfg(TABLENAME,IPTYPE,ISCOMVRF,SEQ)
values('BasAddrPoolBJLT','P','0',7);
the specific algorithm is as follows:
the first step is as follows: matching the intra-domain route with various addresses in the configuration table according to the sequence of AddrTabCompCfg.seq from small to large, and marking the type.
According to the sequence of seq, processing the records with the smallest seq value in the configuration rule table one by one
And finding out the acquisition data table corresponding to the ip classification according to the table name.
If ISCOMVRF =0, the network field in the acquisition data table is matched with the network field of the in-domain routing table InDomainRouAddr. And assigning the iptype to the iptype value in the InDomainRouAddr table of the address segments with completely equal network, namely marking the corresponding ip classification mark. If the matching can not be carried out, a record is added to the routing table in the domain, and the iptype is marked as the iptype of the current configuration table.
If ISCOMVRF =1, the network field & & vrf in the acquisition data table is matched with the network & & vrf field of the in-domain routing table InDomainRouAddr. Assigning the iptype to the iptype value in the InDomainRouAddr table according to the address fields with completely equal field values, namely, marking the corresponding ip classification mark. If the configuration table can not be completely matched, a record is added to the routing table in the domain, and the iptype is marked as the iptype of the current configuration table.
Note: the order of the configuration table seq is very important and needs to put more detailed IP classification in front of matching. The matching sequence is a VPN routing address, a BGP routing address, a non-BGP or VPN accessed purple gold private line service address, a relay address, a black hole routing address, a Bras equipment address and a Bras address pool address.
The second step is that: after the initial classification is completed, the service data needs to be supplemented to the existing classified address according to the needs. And performing secondary matching on the address of the unmatched type.
And if the iptype is a BGP (B) or VPN (V) routing address, comparing the network with the ipaddr of the service address table, and if the iptype is the IDC and the common private line is consistent, changing the iptype into the IDC (A) or the private line (L) according to the service type of the service address table. Matching the network with ZijinUserAddrBJLT table network, if the network is consistent with the ZijinUserAddrBJLT table network, the network is the Zijinprivate line service address accessed by VPN or BGP, and the iptype is changed into the Zijinprivate line (Z).
And comparing the address with the ipaddr of the service address table if the iptype is empty, and if the iptype is equal to the empty address, changing the iptype into IDC (A) or special line (L) according to the IDC and the common special line of the service address table. This part is the traffic address of the non-BGP and VPN accesses.
Comparing the address with ipaddr in the relay address table if the iptype is empty, if the address is equal to the ipaddr, the address is the relay address, and the iptype is marked as I
9. Providing comprehensive inquiry function by dividing IP address into use types
Fill in the IP address range (single IP address, or start address-end address, or IP/mask bit number if multiple, please separate with english comma), click query.
IDC private line address: conditional IP, private line number, device name, device IP, port description.
BGP access special line: conditional IP, private line number, device name, device IP, port description.
The out-of-domain addresses (addresses that cannot be matched in the InDomainRouAddr table) are shown in Table 2 below:
TABLE 2
IP address Address type AS-path
X.x.x.x Out-of-domain addresses 483765035
Black hole routing address (inpdomainrouaddr. Iptype = H) is as follows table 3:
TABLE 3
IP address Address type Intra-domain address types
Relay address (inpomain rouaddr. Iptype = I) is as follows table 4:
TABLE 4
IP address Address type Device name Equipment IP Port name Port description Intra-domain address types
Relay address
The Bras device/broadband access device address (inpdomainrouaddr. Iptype = D or X) is as follows table 5:
and when the input condition IP is in the InDomainRouAddr which is matched with the InDomainRouAddr table and is associated with InDomainRouAddr. Iptype = D/X, indicating that the condition IP is the BRAS/broadband access device address, and entering the display column.
TABLE 5
Figure BDA0002776929380000171
Bras address pool address (inpainrouaddr. Iptype = P)/broadband access device address pool address (inpainrouaddr. Iptype = K) is as follows table 6:
TABLE 6
Figure BDA0002776929380000172
The purple money & private line service address (inpdomainrouaddr. Iptype = Z) is as follows table 7:
TABLE 7
Figure BDA0002776929380000173
The general private line service address (inpdomainrouaddr. Iptype = L) is as follows:
TABLE 8
Figure BDA0002776929380000174
Figure BDA0002776929380000181
IDC private line address (inpainrouaddr. Iptype = a) is as follows table 9:
TABLE 9
Figure BDA0002776929380000182
Other addresses (addresses with iptype empty in the inpomain rouaddr table or (iptype = B/V and slservtype empty)) are as follows in table 10:
watch 10
Figure BDA0002776929380000183
Based on the same inventive concept, the invention also provides an IP address use analysis device. The implementation of the device can be referred to the implementation of the 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 an IP address usage analysis apparatus according to an embodiment of the present invention. As shown in fig. 2, the apparatus includes:
the intra-domain route acquisition module 101 is configured to acquire intra-domain full-network routes, including all public network routes and VPN routes;
mechanical energy address acquisition for all protocol types, including: BGP protocol address, direct address, ISIS protocol address, OSPF protocol address, RIP protocol address and Static protocol address;
the outside-domain address confirmation module 102 is configured to regard a certain IP address as an outside-domain address when the certain IP address cannot be matched with the inside-domain route;
the intra-domain address matching module 103 is configured to, when a certain IP address is an intra-domain route, match the IP address with a collected Bras address pool address, a Bras device or broadband access device address, a BGP route, a VPN route, a non-BGP and VPN-accessed private line service address, a relay address, and a black hole route according to a configuration rule and in a self-defined order; marking the matched address with an address classification IPTPYE mark to obtain a corresponding IP address use type;
and an IP classification and subdivision module 104, configured to further subdivide the collected BGP and VPN accessed private line service addresses into an IDC service type, a purple fund service type, or a general private line service type.
The comprehensive query module 105 is used for dividing the IP address into the use types to provide a comprehensive query function;
and rapidly classifying a large number of IP addresses by a mode of importing the IP addresses in batches, and acquiring related client service information and network connection information.
It should be noted that although several modules of the IP address usage analysis apparatus are mentioned in the above detailed description, such 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 apparatus 200, which includes a memory 210, a processor 220, and a computer program 230 stored on the memory 210 and operable on the processor 220, wherein the processor 220 implements the aforementioned IP address usage analysis method when executing the computer program 230.
Based on the foregoing inventive concept, the present invention also provides a computer-readable storage medium storing a computer program for executing the foregoing IP address usage analysis method.
The IP address use analysis method and device provided by the invention can acquire IP configuration information of mass equipment in a classified manner by acquiring equipment or analyzing equipment configuration files; providing a flexible and definable matching sequence, filtering and screening the classification of the IP addresses according to a network configuration rule, and eliminating invalid acquisition information; the specific use of the IP address is accurately positioned, and corresponding important client service information and network connection information are associated and inquired aiming at IP addresses of different use types with a definite object; the method provides a query function of a uniform entrance for all IP addresses, can quickly classify a large number of IP addresses in a mode of importing the IP addresses in batches, and obtains relevant client service information and network connection information.
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 cannot be combined to advantage. The invention is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.
The limitation of the protection scope of the present invention is understood by those skilled in the art, and various modifications or changes which can be made by those skilled in the art without inventive efforts based on the technical solution of the present invention are still within the protection scope of the present invention.

Claims (10)

1. An IP address use analysis method, comprising:
collecting the whole network routes in the domain, including all public network routes and VPN routes;
if a certain IP address cannot be matched with the route in the domain, the IP address is considered as an address outside the domain;
if a certain IP address is an intra-domain route, matching the IP address with a collected Bras address pool address, a Bras device or broadband access device address, a BGP route, a VPN route, a non-BGP and VPN accessed private line service address, a relay address and a black hole route according to a configuration rule and a self-defined sequence;
marking the matched address with an address classification IPYPE mark to obtain a corresponding IP address use type;
the collected BGP and VPN accessed private line service addresses are further subdivided into IDC service types, purple fund service types or common private line service types.
2. The IP address use analysis method according to claim 1, further comprising:
the IP address is divided into the use types to provide the comprehensive query function.
3. The method of claim 1, wherein collecting the network-wide routes within a domain comprises:
mechanical energy address acquisition for all protocol types, including: BGP protocol address, direct address, ISIS protocol address, OSPF protocol address, RIP protocol address, and Static protocol address.
4. The IP address use analysis method according to claim 2, wherein the providing of the integrated query function by dividing the IP address into the use types includes:
and rapidly classifying a large number of IP addresses by a mode of importing the IP addresses in batches, and acquiring related client service information and network connection information.
5. An IP address use analysis apparatus, comprising:
the intra-domain route acquisition module is used for acquiring the whole network routes in the domain, including all public network routes and VPN routes;
the outside-domain address confirmation module is used for considering an outside-domain address when a certain IP address cannot be matched with the inside-domain route;
the intra-domain address matching module is used for matching an IP address with a collected Bras address pool address, a Bras device or broadband access device address, a BGP route, a VPN route, a non-BGP and VPN accessed private line service address, a relay address and a black hole route according to a configuration rule and a self-defined sequence when the certain IP address is an intra-domain route; marking the matched address with an address classification IPYPE mark to obtain a corresponding IP address use type;
and the IP classification subdivision module is used for further subdividing the collected BGP and VPN accessed private line service addresses into IDC service types, purple fund service types or common private line service types.
6. The IP address use analysis device according to claim 5, further comprising:
and the comprehensive query module is used for dividing the IP address into the use types to provide a comprehensive query function.
7. The IP address usage analysis apparatus according to claim 5, wherein collecting the whole network routes within a domain comprises:
mechanical energy address acquisition for all protocol types, including: BGP protocol address, direct address, ISIS protocol address, OSPF protocol address, RIP protocol address, and Static protocol address.
8. The IP address usage analysis apparatus according to claim 6, wherein the comprehensive query module is specifically configured to:
and rapidly classifying a large number of IP addresses by a mode of importing the IP addresses in batches, and acquiring related client service information and network connection information.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method of any of claims 1-4 when executing the computer program.
10. 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-4.
CN202011268678.XA 2020-11-13 2020-11-13 IP address use analysis method and device Active CN112492056B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011268678.XA CN112492056B (en) 2020-11-13 2020-11-13 IP address use analysis method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011268678.XA CN112492056B (en) 2020-11-13 2020-11-13 IP address use analysis method and device

Publications (2)

Publication Number Publication Date
CN112492056A CN112492056A (en) 2021-03-12
CN112492056B true CN112492056B (en) 2022-12-06

Family

ID=74930169

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011268678.XA Active CN112492056B (en) 2020-11-13 2020-11-13 IP address use analysis method and device

Country Status (1)

Country Link
CN (1) CN112492056B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113726631B (en) * 2021-07-21 2023-03-28 中盈优创资讯科技有限公司 Static IP (Internet protocol) government-enterprise user resource business path auditing method and device
CN114039914B (en) * 2021-11-03 2023-08-08 中盈优创资讯科技有限公司 Method and device for analyzing survival IPv6 address and planning of metropolitan area network
CN115426295B (en) * 2022-03-03 2024-10-01 北京润通丰华科技有限公司 Automatic monitoring method for IDC (internet data center) network routing abnormality

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109274588A (en) * 2017-07-18 2019-01-25 中兴通讯股份有限公司 The processing method and processing device of IP packet

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3478218B2 (en) * 1999-12-27 2003-12-15 日本電気株式会社 Edge node exchanges and exchanges
CN101155196B (en) * 2006-09-27 2011-05-11 中国电信股份有限公司 Service-oriented IPv6 address specification and distribution method, terminal and system for implementing the same
CN101399774B (en) * 2008-10-24 2012-07-04 华为技术有限公司 Processing method and system for packet data
CN103036733B (en) * 2011-10-09 2016-07-06 上海市南电信服务中心有限公司 Unconventional network accesses monitoring system and the monitoring method of behavior
CN103297560B (en) * 2013-05-21 2018-09-07 江苏中科羿链通信技术有限公司 A kind of method and server of data flow classification
CN106452940A (en) * 2016-08-22 2017-02-22 中国联合网络通信有限公司重庆市分公司 Method and device for identifying Internet business flow ownership
CN106649476B (en) * 2016-09-29 2019-08-20 北京中联网盟科技有限公司 A kind of IP address information inquiry system
CN110213212B (en) * 2018-05-24 2021-07-16 腾讯科技(深圳)有限公司 Equipment classification method and device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109274588A (en) * 2017-07-18 2019-01-25 中兴通讯股份有限公司 The processing method and processing device of IP packet

Also Published As

Publication number Publication date
CN112492056A (en) 2021-03-12

Similar Documents

Publication Publication Date Title
CN112492056B (en) IP address use analysis method and device
CN108848204B (en) NAT service rapid processing method and device
CN110290117A (en) A kind of method and device of Match IP Address
Tozal et al. Tracenet: an internet topology data collector
CN111314107B (en) Automatic networking system and method based on internet service
US9270519B2 (en) Address translation device, address translation method, and computer product
CN108712712A (en) Wireless Fidelity WiFi network related information display methods and device
Endo et al. Whois based geolocation: A strategy to geolocate internet hosts
CN111953552B (en) Data flow classification method and message forwarding equipment
CN113746654B (en) IPv6 address management and flow analysis method and device
CN111865628B (en) Statistical system, method, server and storage medium for influencing user by home wide fault
US10313202B2 (en) Dynamically mapping network addresses
US20230041395A1 (en) Method and Device for Processing Routing Table Entries
CN111064817A (en) City-level IP positioning method based on node sorting
CN112119614A (en) Geographical positioning system and method
US9935916B2 (en) Dynamically mapping network addresses
CN114244763B (en) Dynamic network topology management method and system based on rule engine
CN112688884B (en) Encrypted flow custom application identification method, system, device and storage medium
CN112187640B (en) L3VPN service point-to-point route based query method and device
Luckie et al. Learning Regexes to Extract Network Names from Hostnames
Gilmore et al. Mapping the african internet
CN104079681A (en) Alias analysis method
CN113518034A (en) Method, device, equipment and storage medium for route detection
KR20050066807A (en) Apparatus and method for packet classification in router
CN116192722B (en) Network boundary identification method and system based on multi-source data fusion analysis

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: 200000 room 702-2, No. 4811 Cao'an Road, Jiading District, Shanghai

Patentee after: CHINA UNITECHS

Address before: Room 1004-4, 10 / F, 1112 Hanggui Road, Anting Town, Jiading District, Shanghai

Patentee before: CHINA UNITECHS