CN106331214A - Method and system for grouping IP addresses through combination of subnet masks - Google Patents

Method and system for grouping IP addresses through combination of subnet masks Download PDF

Info

Publication number
CN106331214A
CN106331214A CN201610759602.4A CN201610759602A CN106331214A CN 106331214 A CN106331214 A CN 106331214A CN 201610759602 A CN201610759602 A CN 201610759602A CN 106331214 A CN106331214 A CN 106331214A
Authority
CN
China
Prior art keywords
address
packet
addresses
subnet mask
new
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.)
Pending
Application number
CN201610759602.4A
Other languages
Chinese (zh)
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.)
CHENGDU COLASOFT Co Ltd
Original Assignee
CHENGDU COLASOFT 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 CHENGDU COLASOFT Co Ltd filed Critical CHENGDU COLASOFT Co Ltd
Priority to CN201610759602.4A priority Critical patent/CN106331214A/en
Publication of CN106331214A publication Critical patent/CN106331214A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/695Types of network addresses using masks or ranges of addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/14Network analysis or design

Landscapes

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

Abstract

The invention relates to a network analysis technology and discloses a method for grouping IP addresses through combination of subnet masks. Specifically, the method comprises the steps of S1, obtaining all IP addresses needing to be analyzed and the corresponding subnet masks in a set time period, respectively carrying out AND operation on four segments of the IP addresses and the four segments of the subnet masks, thereby obtaining network segment numbers corresponding to the IP addresses, wherein the network segment numbers are formed by combining AND operation results and abbreviations of the subnet masks; and S2, repeating network segment grouping of the step 1 when a new IP address is traversed, judging whether a new group is the same as an existing group or not, directly adding the new IP address to the group if the new group is the same as the existing group, otherwise, creating a new group. Through application of the method, the IP addresses can be grouped rapidly, so a user can check the data sending and receiving condition of the IP address in the same network segment, thereby analyzing the network data rapidly. The invention also discloses a system for grouping the IP addresses through combination of the subnet masks.

Description

IP address is carried out the method and system being grouped by a kind of combination subnet mask
Technical field
The present invention relates to network environment analytical technology, the invention discloses one and combine subnet mask and IP address is carried out point The method and system of group.All packets of current all IP addresses can be known intuitively by the method and system, can be quick Filter and concentrate and show the IP address belonging to certain packet in all IP addresses.
Background technology
When the network environment complicated for makees analysis of network, the quantity of IP address is the hugest, when checking During these IP address informations, will have no way of doing it.
The current mode checking IP address information is commonly certain IP of input, then looks up and navigates to this IP address and check Its information.But the most complicated network environment determines that the information only just looking at certain IP is not enough to describe the problem, past Toward same functionality PC(such as: server cluster, company Intranet etc.) IP be the most same adjacent network segment, so we When analyzing network data, at least need to check the details of certain network segment each IP interior, could relative analysis.
Summary of the invention
Do not carry out IP address for prior art being grouped the technical problem causing checking inconvenience, the invention discloses one Plant and combine the method and system that IP address is carried out being grouped by subnet mask.
Technical scheme is as follows:
The invention discloses a kind of method that IP address is carried out being grouped by combination subnet mask, it specifically includes below step: Step one, acquisition need all IP addresses and the subnet mask of correspondence thereof analyzed in setting the time period, by four sections of IP address Four sections with subnet mask are carried out and computing respectively, obtain the segment number that IP address is corresponding, and described segment number is by the knot with computing The combination of writing a Chinese character in simplified form of fruit and subnet mask is formed;Step 2, the network segment repeating step one after traversing new IP address divide Group, and judge that new packet is the most identical with the packet existed, it is then directly to add new IP address to this packet In, the most newly-built new packet.The C net of this IP address of such as 192.168.9.33 is grouped into 192.168.9.0/24, C class address Default subnet mask be (255.255.255.0).Step 2, repeat after traversing new IP address step one point Group, and judge that new packet is the most identical with the packet existed, it is then directly to add new IP address to this packet In, the most newly-built new packet.By said method by IP address fast grouping, it is simple to user checks the IP in the same network segment The data of address send and the situation of reception, thus quickly realize the analysis of network data.
Further, said method is also when user clicks on one of them network segment, by all IP addresses under this network segment Present to user check.It is easy to user quickly understand the data of all IP addresses under this packet and send and reception situation.
Further, said method also includes when user selects one of them IP address to check when, by this IP ground All IP addresses under the network segment that location is corresponding are presented to user and are checked.It is easy to all IP addresses that user quickly understands under this packet Data send and receive situation.
Further, said method also includes preserving the IP address list under same packet.So as subsequent user Need not the when of checking travel through the most all of IP address again.
The invention also discloses the system that IP address is carried out being grouped by a kind of combination subnet mask, it specifically includes IP address Acquiring unit, subnet mask acquiring unit and computing unit and network segment name assembled unit;Described IP address acquisition unit is used for obtaining Take all IP addresses needing to analyze in setting the time period;It is corresponding that described subnet mask acquiring unit is used for obtaining all IP addresses Subnet mask;Described with computing unit for by four sections of IP address respectively with subnet mask four sections carry out and computing, To segment number;Described network segment name assembled unit is used for obtaining segment number, and described segment number is by the result and subnet mask with computing Write a Chinese character in simplified form combination formed.By said system by IP address fast grouping, it is simple to user checks the IP address in the same network segment Data send and the situation of reception, thus quickly realize the analysis of network data.
Further, said system also includes being grouped updating block, and described packet updating block is for new when traversing IP address judge that new packet is the most identical with the packet existed, be then directly to add new IP address to this point In group, the most newly-built new packet.
By using above technical scheme, the invention have the benefit that and can know current all IP addresses intuitively All C nets.Can quickly filter and concentrate and show the IP address belonging to certain C net in all IP addresses, it is simple to quickly carry out The analysis of network environment.
Accompanying drawing explanation
Fig. 1 is the flow chart forming C net packet.
Fig. 2 is the flow chart filtering display C net.
Detailed description of the invention
Below in conjunction with Figure of description, describe the detailed description of the invention of the present invention in detail.
Below example is analyzed as a example by C class address, but the method for the present invention can expand to B class or A The analysis of class address.For A class address, the subnet mask of acquiescence is 255.0.0.0;Acquiescence for B class address Subnet mask is 255.255.0.0;For C class address, the subnet mask of acquiescence is 255.255.255.0.
The invention discloses a kind of method that IP address is carried out being grouped by combination subnet mask, it specifically includes following step Rapid: step one, acquisition need all IP addresses and the subnet mask of correspondence thereof analyzed in setting the time period, by the four of IP address Section with subnet mask four sections respectively are carried out and computing, obtain the packet number of IP address, plus subnet mask after packet number Numeral, and between numeral and packet, add the oblique line for segmentation, thus obtain the packet of IP address;Such as 192.168.9.33 the C net of this IP address is grouped into 192.168.9.0/24.IP address is 32, i.e. 255.255.255.255.24 is exactly 24 in fact, is equal to 255.255.255.0, i.e. 192.168.9.0/ 255.255.255.0 the default subnet mask that can be abbreviated as 192.168.9.0/24, C class address is (255.255.255.0). Step 2, after traversing new IP address, repeat the packet of step one, and judge new packet whether with existed Packet identical, be then directly new IP address to be added in this packet, the most newly-built new packet.Pass through said method By IP address fast grouping, it is simple to user checks that the data of the IP address in the same network segment send and reception situation, thus soon Speed realizes the analysis of network data.
Further, said method also includes when user clicks on one of them packet of IP address, by under this packet All IP addresses present to user and check.It is easy to user quickly understand the data of all IP addresses under this packet and send and connect Receipts situation.
Further, said method also includes when user selects one of them IP address to check when, by this IP ground All IP addresses under the packet that location is corresponding are presented to user and are checked.It is easy to all IP addresses that user quickly understands under this packet Data send and receive situation.
Further, said method also includes preserving the IP address list under same packet.So as subsequent user Need not the when of checking travel through the most all of IP address again.
The invention also discloses the system that IP address is carried out being grouped by a kind of combination subnet mask, it specifically includes IP address Acquiring unit, subnet mask acquiring unit and computing unit and packet name assembled unit;Described IP address acquisition unit is used for obtaining Take all IP addresses needing to analyze in setting the time period;It is corresponding that described subnet mask acquiring unit is used for obtaining all IP addresses Subnet mask;Described with computing unit for by four sections of IP address respectively with subnet mask four sections carry out and computing, Packet number to IP address;Described packet name assembled unit is used for the numeral after packet number plus subnet mask, and in numeral And add the oblique line for segmentation between Fen Zu, thus obtain the packet of IP address.By said system, IP address is quickly divided Group, it is simple to user checks that the data of the IP address in the same network segment send and reception situation, thus quickly realizes network data Analysis.
Further, said system also includes being grouped updating block, and described packet updating block is for new when traversing IP address judge that new packet is the most identical with the packet existed, be then directly to add new IP address to this point In group, the most newly-built new packet.
The present invention can do C net packet according to all of IP address, and quickly can examine according to the C net after packet Rope and information inspection.
" C net " in the present invention is: obtain IP ground by the default subnet mask (255.255.255.0) of C class address The location C network segment (takes the class c network mark of address), and the corresponding C net of this IP address of example: 192.168.9.33 is 192.168.9.0/ 24。
First the flow chart of formation C net packet as it is shown in figure 1, inquire about all IP information, and travels through all of IP address, root C net packet is formed according to IP address and subnet mask.In Fig. 1, with good grounds C class address default subnet mask obtains C net, obtains mode For the network segment that IP address is corresponding with generation with default subnet mask phase.
When C net packet is containing this C net, IP address is added this C net, and continues to travel through next IP address, otherwise exist C net is inserted in C net packet.
Filter the flow chart of display C net as in figure 2 it is shown, when user clicks on certain C net during C net is grouped, travel through institute Some IP addresses, and judge whether each IP address belongs to certain the C net in the C net packet that user clicks on, it is then to add Display list shows.
The operation principle of the present invention is: when forming C net packet, and each IP address has and can only a corresponding C net.Cross During filter, a C net then can corresponding one group of IP address.Each C net in C net packet, can find the IP ground of correspondence in IP address Location, and concentrate be shown, user-friendly.
The invention enables all C nets that can know current all IP addresses intuitively.Can quickly filter and concentrate exhibition Show the IP address belonging to certain C net in all IP addresses.
The present invention to realize process as follows: obtain all IP address informations needing section analysis time, obtain all successively The C net address of IP address, joins in C net packet, if this C net in Fen Zu, then need not add, otherwise, join C In net packet;When needs filter this C net, then travel through all IP addresses, the IP address meeting this C net is added display queue.
The present invention dynamically analyzes all C net packet of certain time period IP address, and supports quickly to examine from all IP addresses Rope is subordinate to the IP address of certain C net.
The coefficient gone out given in the above embodiments and parameter, be available to those skilled in the art and realize or use Invention, invention does not limit and only takes aforementioned disclosed numerical value, in the case of the thought without departing from invention, the technology of this area Above-described embodiment can be made various modifications or adjustment by personnel, thus the protection domain of invention is not by above-described embodiment institute Limit, and should be the maximum magnitude meeting the inventive features that claims are mentioned.

Claims (6)

1. combining the method that IP address is carried out being grouped by subnet mask, it specifically includes below step: step one, obtain Need all IP addresses and the subnet mask of correspondence thereof analyzed in setting the time period, four sections of IP address are covered with subnet respectively Four sections of code carry out and computing, obtain the segment number that IP address is corresponding, and described segment number is by the result and subnet mask with computing Write a Chinese character in simplified form combination formed;Step 2, after traversing new IP address, repeat the network segment packet of step one, and judge new It is grouped the most identical with the packet existed, is, then directly new IP address is added in this packet, the most newly-built new Packet.
Combine the method that IP address is carried out being grouped by subnet mask the most as claimed in claim 1, it is characterised in that described method Also include when user clicks on one of them network segment, user is presented in all IP addresses under this network segment and checks.
Combine the method that IP address is carried out being grouped by subnet mask the most as claimed in claim 1, it is characterised in that described method Also include when user selects one of them IP address to check when, by all IP addresses under the network segment corresponding for this IP address in Now check to user.
Combine the method that IP address is carried out being grouped by subnet mask the most as claimed in claim 1, it is characterised in that described method Also include preserving the IP address list under the same network segment.
5. one kind combines the system that IP address is carried out being grouped by subnet mask, it is characterised in that specifically include IP address acquisition list Unit, subnet mask acquiring unit and computing unit and network segment name assembled unit;Described IP address acquisition unit is used for obtaining setting The all IP addresses analyzed are needed in time period;Described subnet mask acquiring unit is for obtaining the subnet that all IP addresses are corresponding Mask;Described with computing unit for by four sections of IP address respectively with subnet mask four sections carry out and computing, obtain the network segment Number;Described network segment name assembled unit is used for obtaining segment number, described segment number by with the writing a Chinese character in simplified form of the result and subnet mask of computing Combination is formed.
Combine the system that IP address is carried out being grouped by subnet mask the most as claimed in claim 5, it is characterised in that described system Also include being grouped updating block, described packet updating block for judge when traversing new IP address new packet whether with The packet existed is identical, is, then directly add in this packet by new IP address, the most newly-built new packet.
CN201610759602.4A 2016-08-30 2016-08-30 Method and system for grouping IP addresses through combination of subnet masks Pending CN106331214A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610759602.4A CN106331214A (en) 2016-08-30 2016-08-30 Method and system for grouping IP addresses through combination of subnet masks

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610759602.4A CN106331214A (en) 2016-08-30 2016-08-30 Method and system for grouping IP addresses through combination of subnet masks

Publications (1)

Publication Number Publication Date
CN106331214A true CN106331214A (en) 2017-01-11

Family

ID=57788989

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610759602.4A Pending CN106331214A (en) 2016-08-30 2016-08-30 Method and system for grouping IP addresses through combination of subnet masks

Country Status (1)

Country Link
CN (1) CN106331214A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116321079A (en) * 2023-04-12 2023-06-23 深圳市英唐数码科技有限公司 Data transmission method, system and medium based on android WIFI book transfer software

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1719769A (en) * 2004-07-09 2006-01-11 杭州华为三康技术有限公司 Method for classifying received data pocket in network apparatus
CN101442480A (en) * 2007-11-20 2009-05-27 迈普(四川)通信技术有限公司 Network communication method based on STUN protocol
CN103379179A (en) * 2012-04-17 2013-10-30 中兴通讯股份有限公司 Method and system for planning network IP address
US20140280998A1 (en) * 2013-03-15 2014-09-18 Cisco Technology, Inc. Controlling distribution and routing from messaging protocol
CN105450453A (en) * 2015-12-03 2016-03-30 贵州电网公司信息通信分公司 Network topology construction method based on SNMP

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1719769A (en) * 2004-07-09 2006-01-11 杭州华为三康技术有限公司 Method for classifying received data pocket in network apparatus
CN101442480A (en) * 2007-11-20 2009-05-27 迈普(四川)通信技术有限公司 Network communication method based on STUN protocol
CN103379179A (en) * 2012-04-17 2013-10-30 中兴通讯股份有限公司 Method and system for planning network IP address
US20140280998A1 (en) * 2013-03-15 2014-09-18 Cisco Technology, Inc. Controlling distribution and routing from messaging protocol
CN105450453A (en) * 2015-12-03 2016-03-30 贵州电网公司信息通信分公司 Network topology construction method based on SNMP

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116321079A (en) * 2023-04-12 2023-06-23 深圳市英唐数码科技有限公司 Data transmission method, system and medium based on android WIFI book transfer software
CN116321079B (en) * 2023-04-12 2023-11-17 深圳市英唐数码科技有限公司 Data transmission method, system and medium based on android WIFI book transfer software

Similar Documents

Publication Publication Date Title
CN105578488B (en) Network data acquisition system and method
US10193908B2 (en) Data transfer for network interaction fraudulence detection
CN104283891B (en) By the method and apparatus of business function node access service chain network
Komisarek et al. Machine Learning Based Approach to Anomaly and Cyberattack Detection in Streamed Network Traffic Data.
CN109388791B (en) Dynamic diagram display method and device, computer equipment and storage medium
CN108650325A (en) A kind of industrial data acquisition method, relevant device and system
CN109639809A (en) A kind of method and device of service data request link monitoring
CN104965784A (en) Automatic test method and apparatus
KR102476126B1 (en) Network traffic preparation system for high-speed analysis
CN106104550A (en) Site information extraction element, system, site information extracting method and site information extraction procedure
CN111953552B (en) Data flow classification method and message forwarding equipment
CN105959290A (en) Detection method and device of attack message
CN104796282A (en) Evaluating system and evaluating method for deep packet inspection product
CN104202328B (en) A kind of method, configuration module and the subscription end of subscription GOOSE/SMV messages
US11863584B2 (en) Infection spread attack detection device, attack origin specification method, and program
CN106331214A (en) Method and system for grouping IP addresses through combination of subnet masks
CN108450033A (en) Cross-platform streamed data stream
CN100401676C (en) Method for content charging of data service
CN103970536B (en) Method and device for generating APP installation program
US20180052862A1 (en) Log collection system and log collection method
CN106257867A (en) A kind of business recognition method encrypting flow and device
CN105550250B (en) A kind of processing method and processing device of access log
CN103888481A (en) Method and system for filtering DHCP data package of local area network
CN105721398B (en) The method and device of data access
CN105512020B (en) Test method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170111

RJ01 Rejection of invention patent application after publication