CN1533101A - Checking method for IP address - Google Patents
Checking method for IP address Download PDFInfo
- Publication number
- CN1533101A CN1533101A CNA031210937A CN03121093A CN1533101A CN 1533101 A CN1533101 A CN 1533101A CN A031210937 A CNA031210937 A CN A031210937A CN 03121093 A CN03121093 A CN 03121093A CN 1533101 A CN1533101 A CN 1533101A
- Authority
- CN
- China
- Prior art keywords
- address
- verification
- apn
- verify
- execution
- 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.)
- Granted
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
This invention discloses a method for checking IP address including: A. setting the check position parameter, storing the check position of last turn address of the system and setting the largest checked number of this turn B. determining the IP address position in the present check APN C. judging if the said IP address is idle, if so, the check position parameter is corrected to carry out step B or step D, D judging if the said IP address exists the context to carry out step E if so, or, setting the IP address idle E. adding I to the IP address number of this turn to judge if this turn number is smaller than the largest address number to carry out B if so, or to finish the check of this turn, increasing check efficiency and solving the problem of IP address resource hung-up effectively.
Description
Technical field
The present invention relates to the address verification technology of Radio Network System, particularly about the method for IP address verification in the RFDC mobile gateway node.
Background technology
In wireless data communication system, mobile subscriber terminal all has one or more IP address, these IP addresses may be static address, access user remote authentication service (RADIUS, RemoteAuthentication Dial-In User Service) address or dynamic address.Static address is meant that operator for the fixed ip address that each user distributes, belongs to disposable addresses distributed; The RADIUS address refers to that by authentication, mandate and charging (AAA, Authentication, Authorization and Accounting) server be user's IP address allocated; Dynamic address is meant that when the user activates (GGSN) distributes to user's IP address by Gateway GPRS Support Node.
Referring to shown in Figure 1, the GGSN address management mechanism is such: can dispose N address pool at most under the APN (APN, Access Point Name), and N is natural number, can dispose M address field under the address pool at most, and M is a natural number; Each address field is bound mutually with one section continuous IP address field.L IP address can be arranged at most under the address field, and L is a natural number; Represent that in the mode of position (bit) each IP address specifically takies situation, each can represent an IP address utilization.Such as, represent the free time with 0, represent to take with 1.For each position in the better operation internal memory, address field will be divided into address slice again, and address field always is made up of several full wafers of 32 and one or zero fragment.In general, whole piece is 32, and therefore last a slice may be the fragment of 32 of less thaies.
In Wideband Code Division Multiple Access (WCDMA) (WCDMA) system, the dynamic address resource is responsible for distributing, managing by GGSN, and the IP address is one of most important resource of whole system.When the user surfed the Net, GGSN was responsible for it and distributes available IP address; When the user is off line, be responsible for its IP address is reclaimed, so that distribute to other users.The IP address because handling process occurs the situation that the IP address resource is hung occurring unusually, and promptly the user is off line, still exists but employed IP address takies mark, causes this IP address can not distribute to other users and uses in dispose procedure.In the course of time, the IP address resource that system can use is fewer and feweri, causes address resource to exhaust gradually.Therefore, system will adopt the periodic reinvestigation Restoration Mechanism, and flow processing is unusual when preventing to discharge the address in the address administration, causes the IP address to hang, so that exhaust the phenomenon of address resource gradually.
Referring to shown in Figure 2, the process of carrying out the IP address verification at present is as follows:
Step 201, obtain the index of the APN of current verification;
Step 202, judge whether current APN uses, if, execution in step 203, otherwise, execution in step 208;
Step 203, obtain a down address of configuration of APN;
Step 204, judge whether this IP address has context, if having, execution in step 206, otherwise, execution in step 205;
Step 205, put this IP address for idle, execution in step 206;
Step 206, judge whether all addresses of current APN are verified and finish, if finish, execution in step 208, otherwise, execution in step 207;
Step 207, determine next IP address, execution in step 203;
Whether the number of step 208, verification APN reaches predetermined value, if reach, then execution in step 210, otherwise, execution in step 209;
Step 209, determine the APN that the next one is to be verified;
Step 210, this verifies end.
Above-mentioned verification process is to be to verify unit with APN, and the IP address of system configuration is verified, and verifies one or several APN at every turn; All to verify each the IP address among the APN, will not have contextual IP address all to be changed to idle condition, thereby solve the phenomenon that hang the IP address.
Though this method can be carried out the verification of IP address, because a plurality of APN of GGSN possible configuration, and how many addresses of each APN configuration differ, and when carrying out address verification, and it is inhomogeneous with APN to be that the treatment mechanism of unit is verified the IP address number; And if the address of a following configuration of APN is more, the number of so once verifying the IP address is also just more relatively, can influence systematic function so greatly, and regular traffic is formed great impact.Simultaneously, because that task takies the CPU processing time is long, also can lead to system abnormity usually.
Summary of the invention
In view of this, the invention discloses the check method of a kind of IP address, make its verification IP address number limited, even, avoid too much and system exception that cause, and method is simple, practical by treating number.
The check method of a kind of IP address is to realize like this.
A., the verification location parameter is set, the position of the last round of address verification of storage system, and the largest address number that epicycle is verified is set;
B. according to verifying location parameter, determine the position of IP address in the current verification APN (APN);
C. judge whether this IP address is idle, if, then revise and verify location parameter, return execution in step B, otherwise, direct execution in step D;
D. judge whether this IP address exists context, if exist, execution in step E, otherwise, be idle with this IP address location;
E. the IP address number that epicycle is verified adds 1, judges the largest address number whether address number that epicycle verifies verifies less than epicycle, if less than, return execution in step B, otherwise, the epicycle verification finished.
Described APN comprises one or more address pool; Described address pool comprises one or more address fields; Described address field comprises one or more address slice, and described address slice is made up of the full wafer of 32 address bits or the fragment that is less than 32 address bits, and address bit is represented the seizure condition of corresponding IP address.
Verify the address slice number of address pool that location parameter is set to comprise the APN index position of last round of verification, last round of verification number, the address segment number of last round of verification, last round of verification and the address item of last round of verification described in the steps A.
Described step B further comprises: if the IP number of addresses of handling reaches largest address number, stop epicycle and verify, and revise the position that lower whorl is verified; If all address bits are all verified and finished under the address slice, determine that then the next address sheet is the IP address location of current verification; If all address slice are all verified and finished under the address field, determine that then the next address section is the IP address address fragment position of current verification; If all address fields under address pool are verified finish, determine that then the next address pond is the position, address pond, IP address of current verification; If all address pool under APN are verified finish, then stop epicycle and verify.
Described step B further comprises:
B1, obtain the index of the APN of current verification, whether judge current APN,, obtain the address pool pond number of current verification if use using, execution in step B2 then, otherwise, execution in step B3 then;
B2, judge pond, pond, current address number whether less than pond, maximum address pond number, if less than, execution in step B4, otherwise, with pond number, segment number, sheet number and the zero setting of item variable;
B3, the APN index is added 1, whether judge the APN index greater than maximum APN number, if greater than, the APN index is returned 0 again, finish epicycle and verify, otherwise, directly finish epicycle and verify;
B4, obtain the address field segment number of current verification, judge that whether current address section segment number is less than maximum address section segment number, if be not less than, segment number, sheet number, item are returned 0 again, current treatment pond pond number is added 1, then execution in step B2, otherwise, determine to wait to verify the IP address in this address field;
B5, judge whether wait to verify in the IP address all address slice has verified, if verified, execution in step B4 then, otherwise the address location of verification is that the address item of last round of verification adds 1.
Verifying location parameter described in the step C and be the address slice number by upgrading last round of verification and the address item of last round of verification revises.
Described method further comprises: set in advance the cycle timer of address verification, and verify the time interval and be set to N second, take turns to verify and finish N during second when one, system begins to verify according to verifying location parameter next time.
The present invention is carrying out in the verification process the address Pooled resources in batches, only the IP address that is in seizure condition is verified, so not only can improve the efficient of whole verification, effectively solve the problem that the IP address resource hangs, and to the normal professional not influence of GGSN.
Description of drawings
Fig. 1 is address pool and an address field graph of a relation under the APN;
Fig. 2 carries out the schematic flow sheet of IP address verification for prior art;
Fig. 3 carries out the schematic flow sheet of IP address verification for the present invention.
Embodiment
Further specify technical scheme of the present invention below in conjunction with the drawings and specific embodiments.
Core content of the present invention is only occupied address to be verified in batches.
For convenient realization the present invention, address field argument structure, address field information parameter under verification location parameter structure, the APN have at first been defined here.And set in advance the maximum address number of each verification.
Ginseng is shown in Table 1, and verifies the positional structure parameter and comprises last APN index of verifying, the last address pool of verifying number, last address segment number of verifying, the last address slice of verifying number, last address item and reserved field of verifying.
Last APN index of verifying | The last address pool of verifying number | Last address segment number of verifying | The last address slice of verifying number | Last address item of verifying | Reserved field |
Table 1
Ginseng is shown in Table 2, and whether effectively the address field argument structure comprises APN flag bit, address field array under the APN.
Effectively whether APN flag bit | The address field array |
Table 2
Ginseng is shown in Table 3, and address field information parameter structure comprises the marker bit that takies of each address in dynamic address flag bit, this address field initial address, this address field address number, this address field.
The dynamic address flag bit | This address field initial address | This address field address number | Each address takies marker bit in this address field |
Table 3
According to above various settings, and referring to shown in Figure 3, it is as follows that the present invention realizes verifying the idiographic flow of IP address:
Location variable is verified in step 305, modification, and the APN index is added 1.
Whether step 306, APN index greater than maximum APN number, if greater than, the APN index is returned 0 again, otherwise, verify and finish.
Whether step 313, this address have context, if having, and execution in step 314, otherwise, put the position, current address for idle, execution in step 314 then.
The number of the IP that step 314, epicycle are handled adds 1.
From said process as can be seen, can impact regular traffic for fear of the IP address verification, the present invention verifies according to following three conditions:
A, verify the occupied IP of fixed number address, be R as number at every turn;
B, once verify and can only in an APN, carry out, and when all addresses of having verified an APN under after, even without R IP address of verification, this verification termination.
That is to say that the address sum that carries out the IP address verification is certain, once verify and in an APN, to carry out that behind all occupied addresses of having verified under the APN, if also do not reach the address of this verification when total, this verification finishes.
C, each position of verifying the IP address of record verification next time that finishes are so that verify next time.Here the location variable of Cai Yonging comprises APN index, pond number, segment number, sheet number, item.Each information such as APN index, address pool number, address segment number, address slice number, address item that will read when verifying beginning.The order of verifying is: address bit → address slice → address field → address pool → APN, they have a kind of attaching relation.Handle each address bit successively, when the IP number of handling reaches the step-length of processing, stop this and verify, and revise the position of verifying next time.All address bits all dispose under an address slice, then handle the next address sheet; All address slice all dispose under an address field, then handle the next address section; All address fields under an address pool dispose, and then handle the next address pond; All address pool under an APN dispose, and then stop this and verify, and revise the position of verifying next time.
And, because the dynamic IP addressing resource quantity of GGSN management is numerous, if adopt time of concentration to verify, will have a strong impact on the performance of GGSN whole system, therefore, the present invention has set in advance in checking system and has started the cycle timer that the IP address resource is verified, in whole day day part, regular traffic, carry out IP address verification task step by step by a fixed step size.Verify such as, cycle timer and to be decided to be N second at interval, when this timer regularly surpasses N during second, system will start above-mentioned address verification mechanism.
Claims (7)
1, a kind of method of IP address verification is characterized in that, this method may further comprise the steps:
A., the verification location parameter is set, the position of the last round of address verification of storage system, and the largest address number that epicycle is verified is set;
B. according to verifying location parameter, determine the position of IP address in the current verification APN (APN);
C. judge whether this IP address is idle, if, then revise and verify location parameter, return execution in step B, otherwise, direct execution in step D;
D. judge whether this IP address exists context, if exist, execution in step E, otherwise, be idle with this IP address location;
E. the IP address number that epicycle is verified adds 1, judges the largest address number whether address number that epicycle verifies verifies less than epicycle, if less than, return execution in step B, otherwise, the epicycle verification finished.
2, method according to claim 1 is characterized in that, described APN comprises one or more address pool; Described address pool comprises one or more address fields; Described address field comprises one or more address slice; Described address slice is made up of the full wafer of 32 address bits or the fragment that is less than 32 address bits, and address bit is represented the seizure condition of corresponding IP address.
3, method according to claim 2, it is characterized in that, verify the address slice number of address pool that location parameter is set to comprise the APN index position of last round of verification, last round of verification number, the address segment number of last round of verification, last round of verification and the address item of last round of verification described in the steps A.
4, method according to claim 3 is characterized in that, described step B further comprises: if the IP number of addresses of handling reaches largest address number, stop epicycle and verify, and revise the position that lower whorl is verified; If all address bits are all verified and finished under the address slice, determine that then the next address sheet is the IP address location of current verification; If all address slice are all verified and finished under the address field, determine that then the next address section is the IP address address fragment position of current verification; If all address fields under address pool are verified finish, determine that then the next address pond is the position, address pond, IP address of current verification; If all address pool under APN are verified finish, then stop epicycle and verify.
5, method according to claim 4 is characterized in that, described step B further comprises:
B1, obtain the index of the APN of current verification, whether judge current APN,, obtain the address pool pond number of current verification if use using, execution in step B2 then, otherwise, execution in step B3 then;
B2, judge pond, pond, current address number whether less than pond, maximum address pond number, if less than, execution in step B4, otherwise, with pond number, segment number, sheet number and the zero setting of item variable;
B3, the APN index is added 1, whether judge the APN index greater than maximum APN number, if greater than, the APN index is returned 0 again, finish epicycle and verify, otherwise, directly finish epicycle and verify;
B4, obtain the address field segment number of current verification, judge that whether current address section segment number is less than maximum address section segment number, if be not less than, segment number, sheet number, item are returned 0 again, current treatment pond pond number is added 1, then execution in step B2, otherwise, determine to wait to verify the IP address in this address field;
B5, judge whether wait to verify in the IP address all address slice has verified, if verified, execution in step B4 then, otherwise the address location of verification is that the address item of last round of verification adds 1.
6, method according to claim 3 is characterized in that, verifies location parameter described in the step C and is the address slice number by upgrading last round of verification and the address item of last round of verification and revise.
7, method according to claim 1, it is characterized in that described method further comprises: set in advance the cycle timer of address verification, and verify the time interval and be set to N second, take turns and verify to finish N during second when one, system begins to carry out next round and verifies according to verifying location parameter.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB031210937A CN100344135C (en) | 2003-03-20 | 2003-03-20 | Checking method for IP address |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB031210937A CN100344135C (en) | 2003-03-20 | 2003-03-20 | Checking method for IP address |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1533101A true CN1533101A (en) | 2004-09-29 |
CN100344135C CN100344135C (en) | 2007-10-17 |
Family
ID=34285569
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB031210937A Expired - Fee Related CN100344135C (en) | 2003-03-20 | 2003-03-20 | Checking method for IP address |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100344135C (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2009012694A1 (en) * | 2007-07-26 | 2009-01-29 | Huawei Technologies Co., Ltd. | Network address processing method and router node |
CN1859355B (en) * | 2005-12-28 | 2011-12-07 | 华为技术有限公司 | Method for processing batch service |
CN111212153A (en) * | 2019-12-26 | 2020-05-29 | 成都烽创科技有限公司 | IP address checking method, device, terminal equipment and storage medium |
CN112422481A (en) * | 2019-08-22 | 2021-02-26 | 华为技术有限公司 | Trapping method, system and forwarding equipment for network threats |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
NO313950B1 (en) * | 2000-03-14 | 2002-12-30 | Ericsson Telefon Ab L M | Kommunikasjonsidentifikatormetode |
FI112313B (en) * | 2000-12-15 | 2003-11-14 | Sonera Oyj | Terminal location |
CN1180581C (en) * | 2001-07-18 | 2004-12-15 | 华为技术有限公司 | Tunnel encapsulation method for wireless VPN |
-
2003
- 2003-03-20 CN CNB031210937A patent/CN100344135C/en not_active Expired - Fee Related
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1859355B (en) * | 2005-12-28 | 2011-12-07 | 华为技术有限公司 | Method for processing batch service |
WO2009012694A1 (en) * | 2007-07-26 | 2009-01-29 | Huawei Technologies Co., Ltd. | Network address processing method and router node |
CN112422481A (en) * | 2019-08-22 | 2021-02-26 | 华为技术有限公司 | Trapping method, system and forwarding equipment for network threats |
CN112422481B (en) * | 2019-08-22 | 2021-10-26 | 华为技术有限公司 | Trapping method, system and forwarding equipment for network threats |
US12074908B2 (en) | 2019-08-22 | 2024-08-27 | Huawei Technologies Co., Ltd. | Cyber threat deception method and system, and forwarding device |
CN111212153A (en) * | 2019-12-26 | 2020-05-29 | 成都烽创科技有限公司 | IP address checking method, device, terminal equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN100344135C (en) | 2007-10-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101035110A (en) | Service transferring method, system and unit | |
CN100344135C (en) | Checking method for IP address | |
CN101068149A (en) | Method for raising business identification effect | |
CN1617496A (en) | Method for automaticall updating configuration for next generation network terminal | |
CN1866218A (en) | Source management method for software system | |
CN1859135A (en) | WAP service charging method | |
CN1214555C (en) | Method for unified managing resource in packet network of PLMN | |
CN1849003A (en) | Method for right discrimination to user | |
CN101039216A (en) | Distributed system timing method, apparatus and system | |
CN1722870A (en) | A method for identifying different cluster groups | |
CN1595410A (en) | Card number resources dispensing system | |
CN1650288A (en) | Method for fetching data from a non-volatile memory in an integrated circuit and corresponding integrated circuit | |
CN101030884A (en) | Method for scheduling independent resource in telecommunication network resource USS system | |
CN1463123A (en) | Method for retransmiting and discarding data packet of authentication service protocol for dialed from remote user | |
CN1825797A (en) | Method and system for user data transaction in communication system | |
CN1570883A (en) | Dynamic allocation method for non-buffering memory in embedded real-time operating system | |
CN1674517A (en) | Method and apparatus for realizing charge metering | |
CN101068423A (en) | Staging software method, communication system, server for mobile station and mobile station | |
CN1719793A (en) | Method for allocating channel resources | |
CN1681252A (en) | Method of supporting node monitoring mobile user state by service universal packet wireless service | |
CN1941733A (en) | Method for grouped issuing message in grouped telecommunication | |
CN1892603A (en) | Offset distribution optimizing method based on combination parallel algorithm | |
CN1885888A (en) | Call ticket sorting method and system | |
CN1758605A (en) | Scheduling method of mobile data service | |
CN1433174A (en) | Method of realizing the selection from paging channel and auxiliary common control physical channel |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20071017 Termination date: 20200320 |