CN106790748A - It is a kind of based on the C sections of immediate addressing dispatching method of IP - Google Patents
It is a kind of based on the C sections of immediate addressing dispatching method of IP Download PDFInfo
- Publication number
- CN106790748A CN106790748A CN201611148361.6A CN201611148361A CN106790748A CN 106790748 A CN106790748 A CN 106790748A CN 201611148361 A CN201611148361 A CN 201611148361A CN 106790748 A CN106790748 A CN 106790748A
- Authority
- CN
- China
- Prior art keywords
- sections
- information
- region
- regional
- operator
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5007—Internet protocol [IP] addresses
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The present invention relates to a kind of based on the C sections of immediate addressing dispatching method of IP, comprise the following steps:S1 is arranged and classified according to ip sections of C sections of corresponding region, operator;S2 is described by 2 one of byte short shaping numbers, is defined as regional information;S3 is by ip sections of C sections of corresponding information Store in internal memory;S4 draws the region of memory that above- mentioned information is stored quickly through A*256*256+B*256+C, so as to obtain the information of operator and region, wherein, A represents that A sections of IP, B represent that B sections of IP, C represent C sections of IP;In S5 regional informations, subtracted each other by the regional information of IP and existing server, the smaller distance that represents of numerical value is nearer, and then judges the information of IP positions.The present invention can be quickly found out the corresponding regional information of IP and operator's informaiton, and subtracted each other by the corresponding regional informations of IP and quickly draw the distance between two IP, so as to realize that immediate addressing is dispatched.
Description
Technical field
The present invention relates to technical field of the computer network, and in particular to a kind of based on the C sections of immediate addressing dispatching method of IP.
Background technology
The traditional scheduling system based on ip, it is necessary to find region, the operator's informaiton of correlation according to ip, then base area
Domain, operator's informaiton carry out the scheduling of system.
Such as ip sections:1.2.3.0-1.2.16.0 certain region, certain operator are belonged to, then when needing to look for an ip correspondence
Information when, it is necessary to from known information, judge that whether ip matches corresponding letter within the scope of this, finally one by one
One ip is corresponding very repeatedly can just match information as a result, it is desirable to search for breath, returning result, therefore inquiry.
The content of the invention
The purpose of the present invention is directed to deficiency of the prior art, there is provided a kind of based on the C sections of immediate addressing dispatching party of IP
Method, is greatly improved the search efficiency of ip corresponding informances.
To achieve the above object, the invention discloses following technical scheme:
It is a kind of based on the C sections of immediate addressing dispatching method of IP, comprise the following steps:
S1 is arranged and classified according to ip sections of C sections of corresponding region, operator;
S2 is described by 2 one of byte short shaping numbers, is defined as regional information;
S3 is by ip sections of C sections of corresponding information Store in internal memory;
S4 draws the region of memory that above- mentioned information is stored quickly through A*256*256+B*256+C, so as to be runed
Business and the information of region, wherein, A represents that A sections of IP, B represent that B sections of IP, C represent C sections of IP;
In S5 regional informations, subtracted each other by the regional information of IP and existing server, the smaller distance that represents of numerical value is nearer, enters
And judge the information of IP positions.
Further, regional information rule is defined as follows:Preceding 13 expressions region, 3 represent operator, 13 regions afterwards
In expression, first represents external/country, and 2-3 expression great Qu, 4-6 expression is saved, and 7-8 represents province's inner region,
9-11 expression city, 12-13 expression counties and districts.
It is disclosed by the invention a kind of based on the C sections of immediate addressing dispatching method of IP, have the advantages that:
The present invention can be quickly found out the corresponding regional information of IP and operator's informaiton, and by the corresponding regions of IP
Information is subtracted each other and quickly draws the distance between two IP, so as to realize that immediate addressing is dispatched.
Specific embodiment
The technical scheme in the embodiment of the present invention will be clearly and completely described below, it is clear that described implementation
Example is only a part of embodiment of the invention, rather than whole embodiments.Based on the embodiment in the present invention, this area is common
The every other embodiment that technical staff is obtained under the premise of creative work is not made, belongs to the model of present invention protection
Enclose.
Core of the invention is to provide a kind of based on the C sections of immediate addressing dispatching method of IP, and ip corresponding informances are greatly improved
Search efficiency.
It is a kind of based on the C sections of immediate addressing dispatching method of IP, comprise the following steps:
S1 is arranged and classified according to ip sections of C sections of corresponding region, operator;
S2 is described by 2 one of byte short shaping numbers, is defined as regional information;
S3 is by ip sections of C sections of corresponding information Store in internal memory;
S4 draws the region of memory that above- mentioned information is stored quickly through A*256*256+B*256+C, so as to be runed
Business and the information of region, wherein, A represents that A sections of IP, B represent that B sections of IP, C represent C sections of IP;
In S5 regional informations, subtracted each other by the regional information of IP and existing server, the smaller distance that represents of numerical value is nearer, enters
And judge the information of IP positions.
In a kind of embodiment of the invention, regional information rule is defined as follows:Preceding 13 expressions region, 3 represent fortune afterwards
Battalion business, in 13 region representations, first represents external/domestic, 2-3 expression great Qu, such as East China, south China, 4-6 table
Show province, 7-8 represents province's inner region, such as East Guangdong, North Guangdong, 9-11 expression city, 12-13 expression counties and districts.
Compared to the content introduced in background technology, related region, operator's informaiton are found present invention improves over by IP
Efficiency, greatly improves the performance of system.
Realization principle of the invention be based on it is assumed hereinafter that:At C sections, (ip is expressed as the IP of the overwhelming majority:A.B.C.D, the 3rd
The ip of section is referred to as C sections) in the range of, region and operator's informaiton are identicals, and certain region, fortune are belonged to if the 1.2..3.X network segments
Battalion business, in actual applications, only considerably less IP sections has multiple regional informations in the presence of one C sections, and regional information is also phase
Near, and smaller segmentation can be extended to based on this programme.
So assumed based on this, it can be deduced that all possible region number is limited, is:256*256*256.
Each regional information can as requested carry out some classification substantially, such as by 2 short shapings of byte in the present invention
Number description, then whole information only needs to 32M spaces and stored, and can be put into internal memory completely, due to being divided according to C sections
IP sections, therefore storage information storage location, can be drawn quickly through A*256*256+B*256+C, so as to very
It is efficiently obtained information.The above method can voluntarily be realized by server or by the server architecture commonly used, can be used for originally
The IP information inquiries on ground.
The above is only the preferred embodiment of the present invention, rather than its limitations;Although it should be pointed out that with reference to above-mentioned each
Embodiment has been described in detail to the present invention, it will be understood by those within the art that, it still can be to above-mentioned each
Technical scheme described in embodiment is modified, or carries out equivalent to which part or all technical characteristic;And this
A little modifications and replacement, do not make the scope of the essence disengaging various embodiments of the present invention technical scheme of corresponding technical scheme.
Claims (2)
1. it is a kind of based on the C sections of immediate addressing dispatching method of IP, it is characterised in that to comprise the following steps:
S1 is arranged and classified according to ip sections of C sections of corresponding region, operator;
S2 is described by 2 one of byte short shaping numbers, is defined as regional information;
S3 is by ip sections of C sections of corresponding information Store in internal memory;
S4 draws the region of memory that above- mentioned information is stored quickly through A*256*256+B*256+C, so as to obtain operator and
The information of region, wherein, A represents that A sections of IP, B represent that B sections of IP, C represent C sections of IP;
In S5 regional informations, subtracted each other by the regional information of IP and existing server, the smaller distance that represents of numerical value is nearer, and then sentences
The information of disconnected IP positions.
2. it is according to claim 1 a kind of based on the C sections of immediate addressing dispatching method of IP, it is characterised in that to define region
Rule information is as follows:Preceding 13 expressions region, 3 represent operator afterwards, and in 13 region representations, first represents foreign countries/state
It is interior, 2-3 expression great Qu, 4-6 represents province, and 7-8 represents province's inner region, 9-11 expression city, 12-13
Position represents counties and districts.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611148361.6A CN106790748A (en) | 2016-12-13 | 2016-12-13 | It is a kind of based on the C sections of immediate addressing dispatching method of IP |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611148361.6A CN106790748A (en) | 2016-12-13 | 2016-12-13 | It is a kind of based on the C sections of immediate addressing dispatching method of IP |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106790748A true CN106790748A (en) | 2017-05-31 |
Family
ID=58876582
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611148361.6A Pending CN106790748A (en) | 2016-12-13 | 2016-12-13 | It is a kind of based on the C sections of immediate addressing dispatching method of IP |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106790748A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111343245A (en) * | 2020-02-13 | 2020-06-26 | 北京字节跳动网络技术有限公司 | Uploading line scheduling method and device, electronic equipment and readable storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102469134A (en) * | 2010-11-17 | 2012-05-23 | 广州欢网科技有限责任公司 | IP (Internet Protocol) address search method and device |
CN103533101A (en) * | 2013-10-22 | 2014-01-22 | 北京国双科技有限公司 | Processing method and device of IP (Internet Protocol) data sources |
CN103561123A (en) * | 2013-10-28 | 2014-02-05 | 北京国双科技有限公司 | Method and device for determining IP segment affiliation |
CN104168341A (en) * | 2014-08-15 | 2014-11-26 | 北京百度网讯科技有限公司 | IP address locating method and CDN dispatching method and device |
CN104539750A (en) * | 2014-12-30 | 2015-04-22 | 深圳市兰丁科技有限公司 | IP locating method and device |
-
2016
- 2016-12-13 CN CN201611148361.6A patent/CN106790748A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102469134A (en) * | 2010-11-17 | 2012-05-23 | 广州欢网科技有限责任公司 | IP (Internet Protocol) address search method and device |
CN103533101A (en) * | 2013-10-22 | 2014-01-22 | 北京国双科技有限公司 | Processing method and device of IP (Internet Protocol) data sources |
CN103561123A (en) * | 2013-10-28 | 2014-02-05 | 北京国双科技有限公司 | Method and device for determining IP segment affiliation |
CN104168341A (en) * | 2014-08-15 | 2014-11-26 | 北京百度网讯科技有限公司 | IP address locating method and CDN dispatching method and device |
CN104539750A (en) * | 2014-12-30 | 2015-04-22 | 深圳市兰丁科技有限公司 | IP locating method and device |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111343245A (en) * | 2020-02-13 | 2020-06-26 | 北京字节跳动网络技术有限公司 | Uploading line scheduling method and device, electronic equipment and readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105528372B (en) | A kind of address search method and equipment | |
CN105243162B (en) | Objectification data model querying method and device based on relational data library storage | |
CN103345496B (en) | multimedia information retrieval method and system | |
CN107798054A (en) | A kind of range query method and device based on Trie | |
CN103246857B (en) | A kind of type of service dissolves the method that yard rule parsing isomery coding obtains Item Information | |
CN104375992A (en) | Address matching method and device | |
CN101772043B (en) | Office data checking method and device | |
CN101388042B (en) | Method and device for establishing file characteristic library index | |
CN103218398A (en) | Intelligent substation SCL (substation configuration description language) file difference comparison method | |
CN104504030B (en) | A kind of indexing means towards power dispatching automation magnanimity message | |
CN106095964A (en) | A kind of method that data are carried out visualization filing and search | |
CN103810171B (en) | Method and system for generating random test data within limited range | |
CN109902087A (en) | For the data processing method and device of question and answer, server | |
CN106970918B (en) | Method and device for generating unique identifier of international address | |
CN105515997A (en) | BF_TCAM (Bloom Filter-Ternary Content Addressable Memory)-based high-efficiency range matching method for realizing zero range expansion | |
CN105117494A (en) | Spatial entity mapping method in fuzzy linguistic environment | |
CN106790748A (en) | It is a kind of based on the C sections of immediate addressing dispatching method of IP | |
CN103076894A (en) | Method and equipment for building input entries for object identity information according to object identity information | |
CN103581023A (en) | Method and device for realizing longest mask matching | |
CN109033353A (en) | A kind of Power quality management system shared drive update method | |
CN109800209B (en) | Intelligent substation SCD file parallel analysis method | |
CN103258051B (en) | A kind of problem database system based on search and establishment method and application method | |
CN101813485B (en) | Electronic map based on geographic information data and navigation method thereof | |
CN108777689A (en) | A kind of method of geographical location information corresponding to quick determining IP | |
CN105159946A (en) | Table sorting method and system based on jQuery |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170531 |