CN103535015A - Management method of public network address resource, terminal control protocol server and client - Google Patents

Management method of public network address resource, terminal control protocol server and client Download PDF

Info

Publication number
CN103535015A
CN103535015A CN201380000624.7A CN201380000624A CN103535015A CN 103535015 A CN103535015 A CN 103535015A CN 201380000624 A CN201380000624 A CN 201380000624A CN 103535015 A CN103535015 A CN 103535015A
Authority
CN
China
Prior art keywords
pcp
client
server
message
probe message
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
Application number
CN201380000624.7A
Other languages
Chinese (zh)
Other versions
CN103535015B (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.)
XFusion Digital Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN103535015A publication Critical patent/CN103535015A/en
Application granted granted Critical
Publication of CN103535015B publication Critical patent/CN103535015B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

Embodiments of the invention provide a management method of public network address resource, a terminal control protocol server and a client. The method comprises: sending detection information from a PCP server to a PCP client, wherein the detection information is constructed by the PCP server based on PCP for requesting the PCP client to return response information; judging whether the response information of the PCP clinent is received in a scheduled time; and if the response information of the PCP clinent is not received in a scheduled time, recovering the public network address resource distributed for the PCP client. The method in the embodiments enables the PCP server to actively detect a work state of the PCP client, and to timely recover the public network address resource of a abnormal PCP client, thereby reducing waste of the public network address resource.

Description

The management method of public network address resource, port controlling protocol server and client
Technical field
The present invention relates to the communications field, particularly a kind of management method of public network address resource, port controlling protocol server and client.
Background technology
Network address translation (Network Address Translation is called for short NAT) technology is a kind of switch technology that private net address is converted to public network address.Operation level network address translation (Carried Grade NAT, be called for short CGN), claim again large scale network address transition (Large Scale NAT is called for short LSN), refer to that the network address that adopts NAT technology to carry out between local area network (LAN) and internet (Internet) exchanges.Port controlling agreement (Port Control Protocol, abbreviation PCP) defined the interacting message mode between port controlling protocol server PCP Server and port controlling protocol client PCP Client, for up NAT device (such as fire compartment wall, CGN equipment etc.) provides a kind of for example, to entering the forwarding controlling mechanism of the message (, accessing the message of local area network (LAN) main frame from Internet) of local area network (LAN).Concrete, by the private net address resource that creates on up NAT device and the mapping relations (Mapping) between public network address resource guide up NAT device to the message of subscriber terminal equipment (Customer Premises Equipment is called for short CPE) from Internet access local area network (LAN) forward, filtration and address transition.
CGN equipment is deployed in the interface of local area network (LAN) and Internet conventionally, CGN equipment can be used as PCP Server, according to PCP, be that the CPE being deployed in local area network (LAN) distributes public network address resource, set up the private net address resource of CPE and the Mapping between public network address resource, and manage distributing to the public network address resource of CPE.Thereby make CGN equipment can according to the Mapping setting up to the message of CPE from Internet access local area network (LAN) forward, the operation such as filtration and address transition.
In realizing process of the present invention, inventor finds, in existing PCP, within the effective time of Mapping, be that CPE is in the operating period of public network address resource, if the CPE as PCP Client breaks down, CPE cannot be used the public network address resource of distributing to it, cause the waste of public network address resource.
Summary of the invention
The embodiment of the present invention provides a kind of management method, port controlling protocol server and client of public network address resource, can reduce the waste of public network address resource.
First aspect, the embodiment of the present invention provides a kind of management method of public network address resource, and described method comprises:
Port controlling protocol server PCP Server sends probe message to port controlling protocol client PCP Client, described probe message is that described PCP Server is according to port controlling agreement PCP structure, for asking described PCP Client to return to response message;
Whether judgement receives the response message of described PCP Client in the given time;
If do not receive the response message of described PCP Client within the described scheduled time, reclaiming described PCP Server is the public network address resource that described PCP Client distributes.
In the possible implementation of the first of first aspect, described probe message is the port controlling protocol message of notification type, described probe message comprises port controlling protocol option PCP Options, described PCP Options comprises option number, and described option number is used to indicate described PCP Client and returns to response message.
In conjunction with the possible implementation of the first of first aspect or first aspect, in the possible implementation of the second of described first aspect, the described PCP Server of described recovery is before the described PCP Client public network address resource of distributing, and also comprises:
Whether the number of times that judgement sends described probe message to described PCP Client surpasses pre-determined number,
If send the number of times of described probe message to described PCP Client, do not surpass described pre-determined number, again to described PCP Client, send probe message;
The described PCP Server of described recovery is the public network address resource that described PCP Client distributes, and comprising:
If send the number of times of described probe message to described PCP Client, surpass described pre-determined number, reclaiming described PCP Server is the public network address resource that described PCP Client distributes.
The possible implementation of the second in conjunction with the possible implementation of the first of first aspect, first aspect or first aspect, in the third possible implementation of described first aspect, described before port controlling protocol client PCP Client transmission probe message, also comprise:
Obtain the activity time of described PCP Client;
Whether the activity time that judges described PCP Client surpasses scheduled duration to the duration between current time;
Describedly to described PCP Client, send probe message and comprise:
When the activity time of described PCP Client surpasses scheduled duration to the duration between current time, to described PCP Client, send probe message.
The third possible implementation in conjunction with the possible implementation of the second of the possible implementation of the first of first aspect, first aspect, first aspect or first aspect, in the 4th kind of possible implementation of first aspect, described method also comprises:
If receive the response message of described PCP Client within the described scheduled time, upgrade the activity time of described PCP Client.
Second aspect, the embodiment of the present invention provides a kind of management method of public network address resource, and described method comprises:
The probe message that port controlling protocol client PCP Client receiving port control protocol server PCP Server sends, described probe message is that described PCP Server is according to port controlling agreement PCP structure, for asking described PCP Client to return to response message;
According to described probe message, to described PCP Server, send response message.
In the possible implementation of the first of second aspect, described probe message is the port controlling protocol message of notification type, described probe message comprises port controlling protocol option PCP Options, described PCP Options comprises option number, and described option number is used to indicate described PCP Client and returns to response message.
In conjunction with the possible implementation of the first of second aspect or second aspect, in the possible implementation of the second of described second aspect, describedly to described PCP Server, send described response message, comprising:
Using described probe message as described response message, send to described PCP Server.
The third aspect, the embodiment of the present invention provides a kind of port controlling protocol server, comprising:
Sending module, for sending probe message to port controlling protocol client PCP Client, described probe message is that described server is according to port controlling agreement PCP structure, for asking described PCP Client to return to response message;
Judge module, for judging the response message of whether receiving in the given time described PCP Client,
Administration module, if for do not receive the response message of described PCP Client within the described scheduled time, reclaiming described server is the public network address resource that described PCP Client distributes.
In the possible implementation of the first of the third aspect, the port controlling protocol message that the described probe message that described sending module sends is notification type, described probe message comprises port controlling protocol option PCP Options, described PCP Options comprises option number, and described option number is used to indicate described PCP Client and returns to response message.
In conjunction with the possible implementation of the first of the third aspect or the third aspect, in the possible implementation of the second of the described third aspect, described judge module, also for judging that whether the number of times that sends described probe message to described PCP Client is over pre-determined number;
Described sending module, also for, when the number of times that sends described probe message to described PCP Client when the judgement of described judge module does not surpass described pre-determined number, again to described PCP Client, send probe message;
Described administration module, while surpassing described pre-determined number specifically for the number of times that sends described probe message to described PCP Client when the judgement of described judge module, reclaiming described server is the public network address resource that described PCP Client distributes.
In conjunction with the possible implementation of the second of the possible implementation of the first of the third aspect, the third aspect or the third aspect, in the third possible implementation of the third aspect, described server also comprises:
Acquisition module, for obtaining the activity time of described PCP Client;
Described judge module, also for judging whether the activity time of described PCP Client surpasses scheduled duration to the duration between current time;
Described sending module also for, when the activity time that described judge module judges described PCP Client surpasses described scheduled duration to the duration between current time, to described PCP Client, send described probe message.
The third possible implementation in conjunction with the possible implementation of the second of the possible implementation of the first of the third aspect, the third aspect, the third aspect or the third aspect, in the 4th kind of possible implementation of the third aspect, described administration module, if also for receive the response message of described PCP Client, the activity time of upgrading described PCP Client within the described scheduled time.
Fourth aspect, the embodiment of the present invention provides a kind of port controlling protocol server, and described server comprises processor and memory, and described memory is for storage program, and described processor is used for carrying out described program, to realize:
To port controlling protocol client PCP Client, send probe message, described probe message is that described server is according to port controlling agreement PCP structure, for asking described PCP Client to return to response message;
Whether judgement receives the response message of described PCP Client in the given time;
If do not receive the response message of described PCP Client within the described scheduled time, be recovered as the public network address resource that described PCP Client distributes.
In the first implementation of fourth aspect, described probe message is the port controlling protocol message of notification type, described probe message comprises port controlling protocol option PCP Options, described PCP Options comprises option number, and described option number is used to indicate described PCP Client and returns to response message.
In conjunction with the possible implementation of the first of fourth aspect or fourth aspect, in the possible implementation of the second of fourth aspect, described processor also for:
Whether the number of times that judgement sends described probe message to described PCP Client surpasses pre-determined number;
If send the number of times of described probe message to described PCP Client, do not surpass described pre-determined number, again to described PCP Client, send probe message;
If send the number of times of described probe message to described PCP Client, surpass described pre-determined number, reclaiming described PCP Server is the public network address resource that described PCP Client distributes.
In the possible implementation of the second of the possible implementation of the first of fourth aspect, fourth aspect or fourth aspect, in the third possible implementation of fourth aspect, described processor also for:
Obtain the activity time of described PCP Client;
Whether the activity time that judges described PCP Client surpasses scheduled duration to the duration between current time;
When the activity time of described PCP Client surpasses scheduled duration to the duration between current time, to described PCP Client, send probe message.
In conjunction with in the possible implementation of the second of the possible implementation of the first of fourth aspect, fourth aspect, fourth aspect or the third possible implementation of fourth aspect, in the 4th kind of possible implementation of fourth aspect, described processor also for, if receive the response message of described PCP Client within the described scheduled time, upgrade the activity time of described PCP Client.
The 5th aspect, the embodiment of the present invention provides a kind of port controlling protocol client, and described client comprises:
Receiver module, the probe message sending for receiving port control protocol server PCP Server, described probe message is that described PCP Server is according to port controlling agreement PCP structure, for asking described client to return to response message;
Respond module, for sending described response message according to described probe message to described PCP Server.
In the possible implementation of the first aspect the 5th, the port controlling protocol message that the described probe message that described receiver module receives is notification type, described probe message comprises port controlling protocol option PCP Options, described PCP Options comprises option number, and described option number is used to indicate described client and returns to response message.
In conjunction with the possible implementation of the first of the 5th aspect or the 5th aspect, in the possible implementation of the second aspect the 5th, described respond module is used for,
Using described probe message as described response message, send to described PCP Server.
The 6th aspect, the embodiment of the present invention provides a kind of port controlling protocol client, and described client comprises processor and memory, and described memory is for storage program, and described processor is used for carrying out described program, to realize:
The probe message that receiving port control protocol server PCP Server sends, described probe message is that described PCP Server is according to port controlling agreement PCP structure, for asking described client to return to response message;
According to described probe message, to described PCP Server, send response message.
In the possible implementation of the first aspect the 6th, the port controlling protocol message that the probe message that described processor receives is notification type, described probe message comprises port controlling protocol option PCP Options, described PCP Options comprises option number, and described option number is used to indicate described client and returns to response message.
In conjunction with the possible implementation of the first of the 6th aspect or the 6th aspect, in the possible implementation of the second aspect the 6th, described processor is used for, and sends to described PCP Server using described probe message as described response message.
The embodiment of the present invention is by sending probe message to PCP Client, if do not receive in the given time the response message of PCP Client, judge the malfunction of PCP Client fault or PCP Client, and be recovered as the public network address resource that PCP Client distributes, thereby make the operating state that PCP Server can active probe PCP Client, when the malfunction of PCP Client fault or PCP Client, regain in time the public network address resource of distributing for PCP Client, reduced the waste of public network address resource.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing of required use during embodiment is described is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the schematic diagram of the PCP application scenarios that provides of the embodiment of the present invention;
Fig. 2 is the flow chart of the management method of a kind of public network address resource of providing of the embodiment of the present invention;
Fig. 3 is the flow chart of the management method of another public network address resource of providing of the embodiment of the present invention;
Fig. 4 is the flow chart of the management method of another public network address resource of providing of the embodiment of the present invention;
Fig. 5 is the flow chart of the management method of another public network address resource of providing of the embodiment of the present invention;
Fig. 6 is the structural representation of a kind of port controlling protocol server of providing of the embodiment of the present invention;
Fig. 7 is the structural representation of another port controlling protocol server of providing of the embodiment of the present invention;
Fig. 8 be another port controlling protocol server of providing of the embodiment of the present invention structural representation;
Fig. 9 is the structural representation of a kind of port controlling protocol client of providing of the embodiment of the present invention;
Figure 10 is the structural representation of another port controlling protocol client of providing of the embodiment of the present invention.
Embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Simply introduce port controlling agreement (Port Control Protocol is called for short PCP) application scenarios below.As shown in Figure 1, personal computer (Personal Computer, abbreviation PC) 11 by home gateway 12, be connected to Broadband Remote Access Server (Broadband Remote Access Server, be called for short BRAS) 13, BRAS13 and operation level network address translation (the Carried Grade NAT that is deployed in the interface of local area network (LAN) and internet (Internet), being called for short CGN) equipment 14 is connected, thus PC11 can pass through home gateway, BRAS and CGN device access Internet.Wherein, PC11 can be also other subscriber equipment, such as mobile terminal etc.Internet can adopt IPv4(Internet Protocol version4, Internet Protocol Version 4) agreement.
In the application scenarios shown in Fig. 1, when PC11 wishes by the device access of Internet, under a kind of situation, PC11 can directly initiate request as PCP Client to CGN equipment (as PCP Server) 14, request CGN equipment 14 distributes public network address resource for it, this public network address resource comprises public network procotol (Internet Protocol is called for short IP) address and port.CGN equipment 14 will distribute public network address resource for PC11, and set up the private net address resource of PC11 and the mapping relations (Mapping) between public network address resource.Under another kind of situation, PC11 can entrust home gateway 12 for it is to CGN equipment 14 application public network address resources, home gateway 12 can be used as PCP Client and initiates request to CGN equipment (PCP Server) 14, request CGN equipment 14 is PC11 distribution public network address resource, and CGN equipment 14 is set up the private net address resource of PC11 and the Mapping between public network address resource.When the client device access PC11 of Internet, the destination address of the access message of this client device is the public network address resource that CGN equipment 14 distributes for PC11, this access message is converted to the private net address resource of PC11 after changing by CGN equipment 14, and arrive PC11 through BRAS13 and home gateway 12, to realize the access to PC11.
In application scenarios of the present invention, CGN equipment 14 as PCP Server can based on PCP be all PCP Client(for example, PC11 or home gateway 12) distribution public network address resource, and can be to the public network address resource unified management distributing, after expiring the effective time of the public network address resource of certain PCP Client, can be recovered as the public network address resource that this PCP Client distributes.
It should be noted that, the PCP Client in the embodiment of the present invention refers to the client device that can support PCP, and under this application scene, PCP Client can be user terminal (PC) or home gateway; PCP Server in the embodiment of the present invention refers to the server device that can support PCP, under aforementioned applications scene, PCP server is CGN equipment, under other scene, PCP server can also be other up NAT device (such as router or firewall box) or independent server.In embodiments of the present invention, public network address resource comprises public network IP address and port.
For the ease of understanding the present invention, first introduce public network address resource and private net address resource below.
In embodiments of the present invention, a private net address resource comprises private network IP address and port corresponding to this private network IP address, and for example a private net address resource is 1.7.1.1:10000, and 1.7.1.1 is private network IP address, and 10000 is port numbers.Seemingly resources-type with private net address, a public network address resource also comprises public network IP address and port corresponding to this public network IP address.An IP address (private network IP address or public network IP address) can corresponding a plurality of port numbers.
Because private net address resource is very abundant, in Fig. 1, a PC11 can have a plurality of private net address resources, and the private network IP address of each private net address resource of same PC11 is identical, and port is different, and the private network IP address of different PC11 is different.Different from private net address resource, because public network IP address resources is more limited, CGN equipment 14 can not distribute different public network IP address for each PC11, thereby the public network address resource that CGN equipment 14 is different PC11 distribution may comprise identical public network IP address and different ports.CGN equipment 14 can corresponding different private net address resource be that PC11 distributes different public network address resources, and sets up the Mapping between each private net address resource and public network address resource.That is to say, the quantity of the Mapping that PC11 is corresponding may be one or more.
For example, the private network IP address of supposing certain PC11 is 1.7.1.1, and PC11 out applies for public network address resource by port one 0000 and 20000 dominations.The public network address resource that the private net address resource 1.7.1.1:10000 that CGN equipment 14 is PC11 distributes is 1.1.1.1:1000, and the public network address resource of distributing for private net address resource 1.7.1.1:20000 is 1.1.1.1:2000.Meanwhile, CGN equipment 14 has been set up two Mapping, and one is the Mapping between 1.7.1.1:10000 and 1.1.1.1:1000, and another is the Mapping between 1.7.1.1:20000 and 1.1.1.1:2000.
The flow chart of the management method of a kind of public network address resource that Fig. 2 provides for the embodiment of the present invention, the method can be applied in the application scenarios shown in Fig. 1, and, the method can be by PCP Server(as the CGN equipment 14 in Fig. 1) carry out, for managing as PCP Client(is as the PC11 of Fig. 1) the public network address resource of distributing.Referring to Fig. 2, the method comprises:
Step 101:PCP Server sends probe message to PCP Client.
Wherein, this probe message is that PCP Server is according to PCP structure, for asking PCP Client to return to response message.PCP Server can comprise the CGN equipment 14 in Fig. 1, and PCP Client can comprise user terminal (as the PC11 in Fig. 1 or home gateway 12) or other subscriber terminal equipments.
Particularly, this probe message, according to PCP structure, refer to that this probe message meets the form of PCP message, and PCP Server and PCP Client can be identified this probe message.
Whether step 102:PCP Server judgement receives the response message of PCP Client in the given time, if receive in the given time the response message of PCP Client, performs step 103; If do not receive in the given time the response message of PCP Client, perform step 104.
It is the public network address resource that PCP Client distributes that step 103:PCP Server reclaims PCP Server.
Wherein, if do not receive in the given time the response message of PCP Client, judge the malfunction of PCP Client fault or PCP Client, PCP Server reclaims the public network address resource that PCP Server is PCP Client distribution, and this public network address resource comprises public network IP address and port.Be understandable that, the public network address resource after recovery can be redistributed the PCP client to other by PCP serve, to reduce the waste to public network address resource, improve public network address resource utilance.
Step 104:PCP Server upgrades the activity time of PCP Client.
Wherein, the activity time of PCP Client is that PCP Client sends the time of PCP message to PCP Server, this PCP message can be the request message that PCP Client sends to PCP Server, the request message of the request public network address resource that for example PCP Client sends to PCP Server can also be the response message that PCP Client replys PCP Server.Activity time by PCP Client can be known the time point that PCP Client is in running order.
The embodiment of the present invention is by sending probe message to PCP Client, if do not receive in the given time the response message of PCP Client, judge the malfunction of PCP Client fault or PCP Client, and be recovered as the public network address resource that PCP Client distributes, thereby when the malfunction of PCP Client fault or PCP Client, make the operating state that PCP Server can active probe PCP Client, regain in time the public network address resource of distributing for PCP Client, reduced the waste of public network address resource.
The management method of another public network address resource that Fig. 3 provides for the embodiment of the present invention, the method can be carried out by PCP Server.Referring to Fig. 3, the method comprises:
Step 201:PCP Server obtains the activity time of PCP Client.
Particularly, for all PCP Client in local area network (LAN), PCP Server has safeguarded a subscriber's meter.This subscriber's meter has recorded private net address resource and the Mapping state of all Mapping, each Mapping between public network address resource and the activity time of this PCP Client of each PCP Client.Mapping state comprises action type and the operating time to the last time operation of Mapping, wherein, action type comprise inquiry, newly-built, revise and deletion.The PCP message operation of Mapping normally being sent according to PCP Client due to PCP Server is carried out, so the operating time of each Mapping is generally the time that PCP Client sends PCP message in this subscriber's meter.
Due to, the activity time of PCP Client is that PCP Client sends the time of PCP message to PCP Server, therefore, the up-to-date time of the Mapping that the activity time of PCP Client is generally the Client of PCP described in subscriber's meter in the operating time, that is to say, the activity time of the PCP Client in subscriber's meter is to upgrade according to the Mapping operating time of described PCP Client.For example: between the private net address resource of PCP Client and public network address resource, have 3 Mapping, if the operating time of first Mapping is 1:00, the operating time of second Mapping is 1:03, the operating time of the 3rd Mapping is 1:05, and the activity time of this PCP Client is 1:05.
Particularly, obtain the activity time of PCP Client, comprising: the subscriber's meter in scanning PCP Server, the activity time of acquisition PCP Client.
Step 202:PCP Server judges whether the activity time of PCP Client surpasses scheduled duration to the duration between current time, if the activity time of PCP Client surpasses scheduled duration to the duration between current time, perform step 203, otherwise, this flow process exited.
Wherein, this scheduled duration is the time value setting in advance.What deserves to be explained is, owing to effective time of Mapping being conventionally 2^32-1 second to the maximum, therefore, this scheduled duration should be less than 2^32-1 second, for example 2 hours or 12 hours.
Step 203:PCP Server sends probe message to PCP Client.
Wherein, this probe message is that PCP Server is according to PCP structure, for asking PCP Client to return to response message.In embodiments of the present invention, the situation that surpasses scheduled duration using the activity time of PCP Client to the duration between current time is as send the trigger condition of probe message to PCP Client.In other embodiments, also can directly to PCP Client, send probe message.
Particularly, this probe message can be according to PCP self-defining.As previously mentioned, PCP Client is the client device that can support PCP, therefore can identify PCP message.Probe message adopts the form of PCP message.Usually, the form of PCP message is as shown in table 1 below.
Table 1
Figure BDA00003608221400111
Wherein:
" Version " field is used for arranging version number, can be 1;
" R " field, for the type of message is set, can be 0 or 1, and wherein, 0 can represent that this PCP message is response message, and 1 can represent that this PCP message is request message;
" Opcode " field is for arranging the coding of the subtype of this type of message, and for example, " R " field is 1, and " Opcode " field is ANNOUNCE(notice), show that this PCP message is the ANNOUNCE message in request message;
" Reserved " field is used for arranging reservation position, can be 0;
" Requested Lifetime " is the effective time of aforementioned Mapping;
" PCP Client ' s IP Address " is for arranging the IP address of PCP Client, for example, when PC11 is during as PCP Client, the private network IP address that the IP address of PCP Client is PC11, when home gateway 12 is during as PCP Client, the IP address of PCP Client is the IP address of home gateway 12;
" Opcode-specific information " is for arranging the particular content of message;
" PCP Options " is for arranging PCP option.
Wherein, " Opcode-specific information " and " PCP Options " is Optional Field.
In the present embodiment, predefined probe message adopts the PCP message of defined ANNOUNCE type in PCP message, and wherein, this probe message has increased a kind of PCP Options in " the PCP Options " of the PCP of this ANNOUNCE type message.Increase the PCP message of the ANNOUNCE type after this PCP Options, can make PCP Client receive not do other processing after this probe message only to make a sound and should answer.The form of this PCP Options can be as shown in table 2 below:
Table 2
Option?Code Reserved Option?Length
Wherein: " Option Code " is option number, be used to indicate described PCP Client and return to response message, for example Option Code can be 0x85, can also be other self-defining Option Code, but it should be noted that, in embodiments of the present invention, self-defining Option Code can not repeat with defined option number in PCP, for example, has defined 0x84 in PCP, for representing, need to apply for two ports, the Option Code in this probe message can not be 0x84;
" Reserved ", for retaining position, can be 0;
" Option Length " is option, can be 4 bytes.
When PCP Client detects in the PCP Options in ANNOUNCE message with PCP Options as shown in Table 2, PCP Client will only can return to response message, and this ANNOUNCE message not done to other processing.
Whether step 204:PCP Server judgement receives the response message of PCP Client in the given time, if do not receive in the given time the response message of PCP Client, performs step 205; If receive the response message of PCP Client, perform step 207.
Particularly, PCP Client receives after probe message, can return to response message to PCP Server, in practical application, PCP Client can will receive that probe message returns to PCP Server as response message, to PCP Server, returns to the aforementioned ANNOUNCE message with newly-increased option.Certainly, PCP Client also can return to other response messages, as long as can prove that PCP Client is still in normal operating conditions, and no exceptions or close.If in the given time, if PCP Server receives the response message of PCP Client, carry out 207; If do not receive, perform step 205.
What deserves to be explained is, because PCP Client can send PCP message to PCP Server at any time, and as long as PCP Client has sent PCP message, just can show that this PCP Client is also in activity.Therefore, except whether judgement receives the response message of PCP Client in the given time, PCP Server can also judge the PCP message of the other types of whether receiving that in the given time PCP Client sends, and usings this as receiving that the response message that PCP Client sends treats.
Whether the number of times that step 205:PCP Server judgement sends probe message to PCP Client surpasses pre-determined number, if the number of times that PCP Server sends probe message to PCP Client surpasses pre-determined number, perform step 206, if do not surpass pre-determined number, repeated execution of steps 203-step 204.
In order to improve accuracy, if PCP Server sends after a probe message to PCP Client, do not receive the response message of PCP Client, and the number of times that PCP Server sends probe message to PCP Client does not surpass pre-determined number, PCP Server can send predefined probe message to PCP Client again, to determine that whether genuine PCP Client is abnormal.What certainly can understand is, here pre-determined number can be the pre-determined number in setting-up time, it is 3 times/hour that pre-determined number for example can be set, that is to say, if PCP Server sent 3 probe message to PCP Client in one hour, all do not receive the response message that PCP Client returns, confirm that this PCP Client breaks down.PCP Server is from send probe message to PCP Client at every turn, whether judgement receives the response message of PCP Client in the given time respectively, be repeated execution of steps 203-step 204, until the number of times that PCP Server judgement sends probe message to PCP Client has surpassed pre-determined number.
Step 206:PCP Server is recovered as the public network address resource that this PCP Client distributes.
Wherein, public network address resource comprises public network IP address and port.
In practical application, the public network address resource that is recovered as this PCP Client distribution can comprise: the subscriber's meter in scanning PCP Server, in subscriber's meter, inquire about and delete the private net address resource of this PCP Client and all Mapping between public network address resource.
Be understandable that, the public network address resource after recovery can be redistributed the PCP client to other by PCP serve, to reduce the waste to public network address resource, improve public network address resource utilance.
Step 207:PCP Server upgrades the activity time of PCP Client.
Particularly, if receive in the given time the response message of PCP Client, the activity time of upgrading PCP Client in subscriber's meter, be defined as to activity time of PCP Client the time of receiving the response message of PCP Client.
The embodiment of the present invention is by repeatedly sending probe message to PCP Client, if all do not receive the response message of PCP Client, judge that PCP Client occurs not normal, and be recovered as the public network address resource that described PCP Client distributes, thereby not only can make the operating state of PCP Server active probe PCP Client, when the malfunction of PCP Client fault or PCP Client, regain in time the public network address resource that PCP Client does not re-use, reduce the public network address wasting of resources, and can improve the accuracy that public network address resource reclaims.In addition, the embodiment of the present invention surpasses scheduled duration as surveying the whether abnormal trigger condition of PCP Client using the activity time of PCP Client to the duration between current time, thereby can preferentially manage the long-time not public network address resource of movable PCP Client, make the management of PCP Client more targetedly, improved the efficiency of management.
The management method flow chart of another public network address resource that Fig. 4 provides for the embodiment of the present invention.The method can be carried out by the PCP Client in Fig. 1, and referring to Fig. 4, the method comprises:
Step 301:PCP Client receives the probe message that PCP Server sends.
Wherein, this probe message is that PCP Server is according to PCP structure, for asking PCP Client to return to response message.
Step 302:PCP Client sends response message according to this probe message to PCP Server.
Wherein, PCP Client sends response message to PCP Server, makes PCP Server according to the public network address resource of response message administration PC P Client, and this public network address resource comprises public network IP address and port.
The probe message that the embodiment of the present invention sends by receiving PCP Server, sends response message to PCP Server, can make PCP Server according to the public network address resource of response message administration PC P Client.
The management method flow chart of another public network address resource that Fig. 5 provides for the embodiment of the present invention.The method can be by PCP Client(as the PC11 in Fig. 1 or home gateway 12) carry out, referring to Fig. 5, the method comprises:
Step 401:PCP Client receives the probe message that PCP Server sends.
Wherein, this probe message is used for asking PCP Client to return to response message.
Preferably, this probe message is the PCP message of ANNOUNCE type, and this probe message comprises PCP Options, and PCP Options comprises option number, retains position and option, and this option number is used to indicate PCP Client and returns to response message.
The detailed description of this probe message can, referring to the associated description of the step 203 in embodiment described in Fig. 3, not repeated them here.
Step 402:PCP Client judges whether this probe message is legal PCP message, if so, performs step 403, if not, performs step 404.
PCP Client can judge whether this probe message is legal PCP message according to presetting rule.For example, PCP Client can check whether this probe message has the form of universal PC P message, checks that whether version number's command code whether correct or that " Opcode " field arranges that " Version " field of this probe message arranges is correct etc.
Step 403: send response message according to this probe message to PCP Server, make PCP Server according to the public network address resource of response message administration PC P Client.
Wherein, this public network address resource comprises public network IP address and port.
It will be understood by those in the art that if PCP Client is working properly, can to PCP Server, return to response message according to the probe message receiving, if PCP Client operation irregularity can not return to any response message according to this probe message.
Concrete, PCP Client can send to using probe message as response message PCP Server.Certainly, PCP Client also can return to other response messages, as long as can prove that PCP Client is still in normal operating conditions, and no exceptions or close.
Step 404:PCP Client abandons probe message.
If it is not legal PCP message that PCP Client judges this probe message, abandon this probe message.
In the embodiment of the present invention, the probe message that PCP Client initiatively sends by receiving PCP Server, because if PCP Client is working properly, can to PCP Server, return to response message according to the probe message receiving, if PCP Client operation irregularity, can not return to response message according to this probe message, thus the public network address resource that the response message that PCP Server can be returned according to this PCP Client is managed this PCP Client.
The management server PCP Server of a kind of public network address resource that Fig. 6 provides for the embodiment of the present invention, this PCP Server can comprise the CGN equipment 14 in Fig. 1, referring to Fig. 6, this PCP Server comprises:
Sending module 501, for sending probe message to PCP Client, this probe message is that PCP Server is according to PCP structure, for asking PCP Client to return to response message.
Wherein, this probe message is that PCP Server constructs according to PCP, that is to say, this probe message meets the form of PCP message, and, can be identified by PCP Server and PCP Client.This probe message is used for asking PCP Client to return to response message.
This probe message can be the PCP message of ANNOUNCE type, and this probe message comprises PCP Options, and PCP Options comprises option number, retains position and option, and this option number is used to indicate PCP Client and returns to response message.
The detailed description of this probe message can, referring to the associated description of the step 203 in embodiment described in Fig. 3, not repeated them here.
Judge module 502, for judging the response message of whether receiving in the given time PCP Client.
Administration module 503, if for not receiving in the given time the response message of PCP Client, reclaiming PCP Server is the public network address resource that PCP Client distributes.
Wherein, this public network address resource comprises public network IP address and port.Be understandable that, the public network address resource after recovery can be redistributed the PCP client to other by PCP serve, to reduce the waste to public network address resource, improve public network address resource utilance.
PCP server in the embodiment of the present invention is by sending probe message to PCP Client, if do not receive in the given time the response message of PCP Client, judge the malfunction of PCP Client fault or PCP Client, and be recovered as the public network address resource that PCP Client distributes, thereby operating state that can active probe PCP Client, when the malfunction of PCP Client fault or PCP Client, regain in time the public network address resource of distributing for PCP Client, reduced the waste of public network address resource.
Another port controlling protocol server PCP Server that Fig. 7 provides for the embodiment of the present invention, this PCP Server can comprise the CGN equipment 14 in Fig. 1, referring to Fig. 7, this PCP Server comprises:
Sending module 601, for sending probe message to PCP Client, this probe message is that PCP Server is according to PCP structure, for asking PCP Client to return to response message.
Particularly, this probe message can be according to PCP self-defining.As previously mentioned, PCP Client is the client device that can support PCP, therefore can identify PCP message.Probe message adopts the form of PCP message.
Wherein, the PCP message that the probe message that sending module 601 sends is notification type, this probe message comprises PCP Options, and this PCP Options comprises option number, retains position and option, and this option number is used to indicate PCP Client and returns to response message.
The detailed description of this probe message can, referring to step 203 associated description in embodiment described in Fig. 3, not repeated them here.
Judge module 602, for judging the response message of whether receiving in the given time PCP Client.
Administration module 603, if for not receiving in the given time the response message of PCP Client, reclaiming PCP Server is the public network address resource that PCP Client distributes.
Wherein, this public network address resource comprises public network IP address and port.Be understandable that, the public network address resource after recovery can be redistributed the PCP client to other by PCP serve, to reduce the waste to public network address resource, improve public network address resource utilance.
This administration module 603, if also for receiving in the given time the response message of PCP Client, the activity time of upgrading PCP Client.
Wherein, the activity time of PCP Client can send the time of PCP message for PCP Client to PCP Server, this PCP message can be the request message that PCP Client sends to PCP Server, the request message of the request public network address resource that for example PCP Client sends to PCP Server can also be the response message that PCP Client replys PCP Server.Activity time by PCP Client can be known the time point that PCP Client is in running order.
Wherein, judge module 602, also for judging that whether the number of times that sends probe message to PCP Client is over pre-determined number.
In order to improve accuracy, if PCP Server sends after a probe message to PCP Client, do not receive the response message of PCP Client, and the number of times that PCP Server sends probe message to PCP Client does not surpass pre-determined number, PCP Server can send predefined probe message to PCP Client again, to determine that whether genuine PCP Client is abnormal.
Sending module 601 also for, when the number of times that sends probe message to PCP Client when judge module 602 judgement does not surpass pre-determined number, again to PCP Client, send probe message.
Correspondingly, administration module 603 specifically for, when the number of times that sends probe message to PCP Client when judge module 602 judgement surpasses pre-determined number, reclaiming PCP Server is the public network address resource that PCP Client distributes.
Under a kind of situation, this port controlling protocol server can also comprise:
Acquisition module 604, for obtaining the activity time of PCP Client.
This acquisition module 604, specifically for the subscriber's meter in scanning PCP Server, obtains the activity time of PCP Client.
Particularly, for all PCP Client in local area network (LAN), PCP Server has safeguarded a subscriber's meter.This subscriber's meter has recorded private net address resource and the Mapping state of all Mapping, each Mapping between public network address resource and the activity time of this PCP Client of each PCP Client.Mapping state comprises action type and the operating time to the last time operation of Mapping, wherein, action type comprise inquiry, newly-built, revise and deletion.The PCP message operation of Mapping normally being sent according to PCP Client due to PCP Server is carried out, so the operating time of each Mapping is generally PCP Client and sends PCP message time in this subscriber's meter.
Due to, the activity time of PCP Client is that PCP Client sends the time of PCP message to PCP Server, therefore, the up-to-date time of the Mapping that the activity time of PCP Client is generally the Client of PCP described in subscriber's meter in the operating time, that is to say, the activity time of the PCP Client in subscriber's meter is to upgrade according to the Mapping operating time of described PCP Client.For example: between the private net address resource of PCP Client and public network address resource, have 3 Mapping, if the operating time of first Mapping is 1:00, the operating time of second Mapping is 1:03, the operating time of the 3rd Mapping is 1:05, and the activity time of this PCP Client is 1:05.Therefore, acquisition module 604 can, by the subscriber's meter in scanning PCP Server, obtain the activity time of PCP Client
This judge module 602, also for judging whether the activity time of PCP Client surpasses scheduled duration to the duration between current time.
This sending module 601 also for, when the activity time of judge module 602 judgement PCP Client surpasses scheduled duration to the duration between current time, to PCP Client, send probe message.
PCP server in the embodiment of the present invention is by repeatedly sending probe message to PCP Client, if all do not receive the response message of PCP Client, judge that PCP Client occurs not normal, and be recovered as the public network address resource that described PCP Client distributes, thereby operating state that not only can active probe PCP Client, when the malfunction of PCP Client fault or PCP Client, regain in time the public network address resource that PCP Client does not re-use, reduce the public network address wasting of resources, and can improve the accuracy that public network address resource reclaims.In addition, the embodiment of the present invention surpasses scheduled duration as surveying the whether abnormal trigger condition of PCP Client using the activity time of PCP Client to the duration between current time, thereby can preferentially manage the long-time not public network address resource of movable PCP Client, make PCP server more targeted to the management of PCP Client, improved the efficiency of management.
Another port controlling protocol server PCP Server that Fig. 8 provides for the embodiment of the present invention, this PCP Server is a kind of PCP Server describing in embodiment described in Fig. 6 or Fig. 7.As shown in Figure 8, the PCP Server in earlier figures 6 and 7 generally comprises for example CPU of at least one processor 71(), input/output unit 72, at least two network interfaces 73 or other communication interfaces, memory 64 and at least one communication bus 75.The structure that it will be understood by those skilled in the art that the PCP Server shown in Fig. 8 does not form the restriction to PCP Server, and it can comprise the parts more more or less than diagram, or combines some parts, or different parts are arranged.
Below in conjunction with Fig. 8, each component parts of PCP Server is carried out to concrete introduction:
Communication bus 75 is for realizing the connection communication between processor 71, memory 74 and communication interface.
At least two network interface 73(can be wired or wireless) realize the communication connection of this PCP Server respectively and between at least one other CPE and Internet, can use the Internet, wide area network, local network, metropolitan area network etc.
Memory 74 can be used for storing software program and application module, and processor 71 is stored in software program and the application module of memory 74 by operation, thereby carries out various function application and the data processing of PCP Server.Memory 74 can mainly comprise storage program district and storage data field, wherein, and the application program that storage program district can storage operation system, at least one function is required (such as sending probe message function etc.) etc.; The data (such as Mapping) that create according to the use of PCP Server etc. can be stored in storage data field.In addition, memory 74 can comprise high-speed RAM (Random Access Memory, random access memory), can also comprise nonvolatile memory (non-volatile memory), for example at least one disk memory, flush memory device or other volatile solid-state parts.
Input/output unit 72, includes but not limited to display and input equipment.Wherein, input equipment generally includes keyboard and pointing device (for example, mouse, trace ball (trackball), touch-sensitive plate or touch sensitive display screen).Wherein, display can be used for showing information or the various menus of the information that offers user and PCP Server and the image in picture or video etc. of being inputted by user; Keyboard and pointing device can be used for receiving numeral or the character information of input, and the user of generation and PCP Server arranges and function is controlled relevant signal input, such as receiving order is set, obtains operational order that user sends according to operation indicating etc. of scheduled duration.
Processor 71 is control centres of PCP Server, utilize the various piece of the whole PCP Server of various interface and connection, by moving or carry out software program and/or the application module being stored in memory 74, and call the data that are stored in memory 74, carry out various functions and the deal with data of PCP Server, thereby PCP Server is carried out to integral monitoring.
Particularly, by moving or carry out software program and/or the application module being stored in memory 74, and call and be stored in the data of storage in 74, processor 71 can be realized: to PCP Client, send probe message, this probe message is that PCP Server is according to PCP structure, for asking PCP Client to return to response message; Whether judgement receives the response message of PCP Client in the given time; If do not receive the response message of PCP Client, be recovered as the public network address resource that PCP Client distributes.
Preferably, the PCP message that the probe message that processor 71 sends is notification type, this probe message comprises PCP Options, and this PCP Options comprises option number, retains position and option, and this option number is used to indicate PCP Client and returns to response message.
Preferably, processor 71 can be realized, whether the activity time that judges PCP Client surpasses scheduled duration to the duration between current time, if the activity time of PCP Client surpasses scheduled duration to the duration between current time, to PCP Client, sends probe message.
Preferably, processor 71 can be realized, if receive in the given time the response message of PCP Client, the activity time of upgrading PCP Client.
Preferably, processor 71 can be realized, if do not receive in the given time the response message of PCP Client, judges that whether the number of times that sends probe message to PCP Client is over pre-determined number, if do not surpass pre-determined number, again send probe message to PCP Client; If surpass pre-determined number, be recovered as the public network address resource that PCP Client distributes.
PCP server in the embodiment of the present invention is by repeatedly sending probe message to PCP Client, if all do not receive the response message of PCP Client, judge that PCP Client occurs not normal, and be recovered as the public network address resource that described PCP Client distributes, thereby not only can make the operating state of PCP Server active probe PCP Client, when the malfunction of PCP Client fault or PCP Client, regain in time the public network address resource that PCP Client does not re-use, reduce the public network address wasting of resources, and can improve the accuracy that public network address resource reclaims.In addition, the embodiment of the present invention surpasses scheduled duration as surveying the whether abnormal trigger condition of PCP Client using the activity time of PCP Client to the duration between current time, thereby can preferentially manage the long-time not public network address resource of movable PCP Client, make the management of PCP Client more targetedly, improved the efficiency of management.
A kind of port controlling protocol client PCP Client that Fig. 9 provides for the embodiment of the present invention, this PCP Client can comprise PC11 or the home gateway 12 in Fig. 1, referring to Fig. 9, this PCP Client comprises:
Receiver module 801, the probe message sending for receiving PCP Server.
Wherein, this probe message is that PCP Server is according to PCP structure, for asking PCP Client to return to response message.This probe message is that PCP Server constructs according to PCP, that is to say, this probe message meets the form of PCP message, and, can be identified by PCP Server and PCP Client.This probe message is used for asking PCP Client to return to response message.
Particularly, the probe message that receiver module 801 receives can be the PCP message of ANNOUNCE type, this probe message comprises PCP Options, and PCP Options comprises option number, retains position and option, and this option number is used to indicate PCP Client and returns to response message.
The detailed description of this probe message can, referring to the step 203 in embodiment described in Fig. 3, not repeated them here.
Respond module 802, for sending response message according to this probe message to PCP Server.
The probe message that the embodiment of the present invention sends by receiving PCP Server, sends response message to PCP Server, can make PCP Server according to response message management public network address resource.
In one case, respond module 802, can send to using probe message as response message PCP Server.Certainly, respond module 902 can also be other response messages, as long as can make PCP Server know that PCP Client is in normal operating conditions.
In the embodiment of the present invention, the probe message that PCP Client initiatively sends by receiving PCP Server, because if PCP Client is working properly, can to PCP Server, return to response message according to the probe message receiving, if PCP Client operation irregularity, can not return to response message according to this probe message, thus the public network address resource that the response message that PCP Server can be returned according to this PCP Client is managed this PCP Client.
Another port controlling protocol client PCP Client that Figure 10 provides for the embodiment of the present invention, this PCP Client can be a kind of PCP Client describing in embodiment described in Fig. 9.PCP Client in earlier figures 9 can be PC, also can be home gateway, generally comprise at least one processor (for example CPU) 111, user interface 112, at least one network interface 113 or other communication interfaces, memory 114 and at least one communication bus 115.The structure that it will be understood by those skilled in the art that the PCP Client shown in Figure 10 does not form the restriction to PCP Client, and it can comprise the parts more more or less than diagram, or combines some parts, or different parts are arranged.
Below in conjunction with Figure 10, each component parts of PCP Client is carried out to concrete introduction:
Communication bus 115 is for realizing the connection communication between processor 111, memory 114 and communication interface.
At least one network interface 113(can be wired or wireless) realize the communication connection between PCP Client and PCP Server, can use the Internet, wide area network, local network, metropolitan area network etc.
Memory 114 can be used for storing software program and application module, and processor 111 is stored in software program and the application module of memory 114 by operation, thereby carries out various function application and the data processing of PC.Memory 114 can mainly comprise storage program district and storage data field, wherein, and the application program that storage program district can storage operation system, at least one function is required (such as sending response message function etc.) etc.; The data (such as probe message) that create according to the use of PC etc. can be stored in storage data field.In addition, memory 114 can comprise high-speed RAM (Random Access Memory, random access memory), can also comprise nonvolatile memory (non-volatile memory), for example at least one disk memory, flush memory device or other volatile solid-state parts.
User interface 112, includes but not limited to display and input equipment.Wherein, input equipment generally includes keyboard and pointing device (for example, mouse, trace ball (trackball), touch-sensitive plate or touch sensitive display screen).Wherein, display can be used for showing information or the various menus of the information that offers user and port controlling protocol client and the image in picture or video etc. of being inputted by user; Keyboard and pointing device can be used for receiving numeral or the character information of input, and the user of generation and port controlling protocol client arranges and function is controlled relevant signal input, such as receiving order is set, obtains operational order that user sends according to operation indicating etc. of scheduled duration.
Processor 111 is control centres of PCP Client, utilize the various piece of the whole PCP Client of various interface and connection, by moving or carry out software program and/or the application module being stored in memory 114, and call the data that are stored in memory 114, carry out various functions and the deal with data of PCP Client, thereby PCP Client is carried out to integral monitoring.
Particularly, by moving or carry out software program and/or the application module being stored in memory 114, and call the data that are stored in memory 114, processor 111 can be realized and receive the probe message that PCP Server sends, this probe message is that PCP Server is according to PCP structure, for asking PCP Client to return to response message; According to this probe message, to PCP Server, send response message.
The probe message that processor 111 receives can be the PCP message of notification type, this probe message comprises PCP Options, this PCP Options comprises option number, retains position and option, and this option number is used to indicate PCP Client and returns to response message.
For example, processor 111 can be realized, and sends to PCP Server using probe message as response message.
In the embodiment of the present invention, the probe message that PCP Client initiatively sends by receiving PCP Server, because if PCP Client is working properly, can to PCP Server, return to response message according to the probe message receiving, if PCP Client operation irregularity, can not return to response message according to this probe message, thus the public network address resource that the response message that PCP Server can be returned according to this PCP Client is managed this PCP Client.
It should be noted that: above-described embodiment illustrates the division of each functional module in PCP Server and PCP Client, in practical application, can above-mentioned functions be distributed and by different functional modules, completed as required, the internal structure of the equipment of being about to is divided into different functional modules, to complete all or part of function described above.In addition, the management method embodiment of the PCP Server that above-described embodiment provides and PCP Client and public network address resource belongs to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that all or part of step that realizes above-described embodiment can complete by hardware, also can come the hardware that instruction is relevant to complete by program, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be read-only memory, disk or CD etc.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (24)

1. a management method for public network address resource, is characterized in that, described method comprises:
Port controlling protocol server PCP Server sends probe message to port controlling protocol client PCP Client, described probe message is that described PCP Server is according to port controlling agreement PCP structure, for asking described PCP Client to return to response message;
Whether judgement receives the response message of described PCP Client in the given time;
If do not receive the response message of described PCP Client within the described scheduled time, reclaiming described PCP Server is the public network address resource that described PCP Client distributes.
2. method according to claim 1, it is characterized in that, described probe message is the port controlling protocol message of notification type, described probe message comprises port controlling protocol option PCP Options, described PCP Options comprises option number, and described option number is used to indicate described PCP Client and returns to response message.
3. method according to claim 1 and 2, is characterized in that, the described PCP Server of described recovery is before the described PCP Client public network address resource of distributing, and also comprises:
Whether the number of times that judgement sends described probe message to described PCP Client surpasses pre-determined number;
If send the number of times of described probe message to described PCP Client, do not surpass described pre-determined number, again to described PCP Client, send probe message;
The described PCP Server of described recovery is the public network address resource that described PCP Client distributes, and comprising:
If send the number of times of described probe message to described PCP Client, surpass described pre-determined number, reclaiming described PCP Server is the public network address resource that described PCP Client distributes.
4. according to the method described in claim 1-3 any one, it is characterized in that, described before port controlling protocol client PCP Client transmission probe message, also comprise:
Obtain the activity time of described PCP Client;
Whether the activity time that judges described PCP Client surpasses scheduled duration to the duration between current time;
Describedly to described PCP Client, send probe message and comprise:
When the activity time of described PCP Client surpasses scheduled duration to the duration between current time, to described PCP Client, send probe message.
5. according to the method described in claim 1-4 any one, it is characterized in that, described method also comprises:
If receive the response message of described PCP Client within the described scheduled time, upgrade the activity time of described PCP Client.
6. a management method for public network address resource, is characterized in that, described method comprises:
The probe message that port controlling protocol client PCP Client receiving port control protocol server PCP Server sends, described probe message is that described PCP Server is according to port controlling agreement PCP structure, for asking described PCP Client to return to response message;
According to described probe message, to described PCP Server, send described response message.
7. method according to claim 6, it is characterized in that, described probe message is the port controlling protocol message of notification type, described probe message comprises port controlling protocol option PCP Options, described PCP Options comprises option number, and described option number is used to indicate described PCP Client and returns to response message.
8. according to the method described in claim 6 or 7, it is characterized in that, describedly to described PCP Server, send described response message, comprising:
Using described probe message as described response message, send to described PCP Server.
9. a port controlling protocol server, is characterized in that, comprising:
Sending module, for sending probe message to port controlling protocol client PCP Client, described probe message is that described server is according to port controlling agreement PCP structure, for asking described PCP Client to return to response message;
Judge module, for judging the response message of whether receiving in the given time described PCP Client,
Administration module, if for do not receive the response message of described PCP Client within the described scheduled time, reclaiming described server is the public network address resource that described PCP Client distributes.
10. server according to claim 9, it is characterized in that, the port controlling protocol message that the described probe message that described sending module sends is notification type, described probe message comprises port controlling protocol option PCP Options, described PCP Options comprises option number, and described option number is used to indicate described PCP Client and returns to response message.
11. according to the server described in claim 9 or 10, it is characterized in that,
Described judge module, also for judging that whether the number of times that sends described probe message to described PCP Client is over pre-determined number;
Described sending module, while also not surpassing described pre-determined number for the number of times that sends described probe message to described PCP Client when the judgement of described judge module, sends probe message to described PCP Client again;
Described administration module, while surpassing described pre-determined number specifically for the number of times that sends described probe message to described PCP Client when the judgement of described judge module, reclaiming described server is the public network address resource that described PCP Client distributes.
12. according to the server described in claim 9-11 any one, it is characterized in that, described server also comprises:
Acquisition module, for obtaining the activity time of described PCP Client;
Described judge module, also for judging whether the activity time of described PCP Client surpasses scheduled duration to the duration between current time;
Described sending module, while also surpassing described scheduled duration for the activity time that judges described PCP Client when described judge module to the duration between current time, sends described probe message to described PCP Client.
13. according to the server described in claim 9-12 any one, it is characterized in that,
Described administration module, if also for receiving the response message of described PCP Client, the activity time of upgrading described PCP Client within the described scheduled time.
14. 1 kinds of port controlling protocol servers, is characterized in that, described server comprises processor and memory, and described memory is for storage program, and described processor is used for carrying out described program, to realize:
To port controlling protocol client PCP Client, send probe message, described probe message is that described server is according to port controlling agreement PCP structure, for asking described PCP Client to return to response message;
Whether judgement receives the response message of described PCP Client in the given time;
If do not receive the response message of described PCP Client within the described scheduled time, be recovered as the public network address resource that described PCP Client distributes.
15. servers according to claim 14, is characterized in that:
Described probe message is the port controlling protocol message of notification type, described probe message comprises port controlling protocol option PCP Options, described PCP Options comprises option number, and described option number is used to indicate described PCP Client and returns to response message.
16. according to the server described in claims 14 or 15, it is characterized in that, described processor also for:
Whether the number of times that judgement sends described probe message to described PCP Client surpasses pre-determined number;
If send the number of times of described probe message to described PCP Client, do not surpass described pre-determined number, again to described PCP Client, send probe message;
If send the number of times of described probe message to described PCP Client, surpass described pre-determined number, reclaiming described PCP Server is the public network address resource that described PCP Client distributes.
17. according to the server described in claim 14-16 any one, it is characterized in that, described processor also for:
Obtain the activity time of described PCP Client;
Whether the activity time that judges described PCP Client surpasses scheduled duration to the duration between current time;
When the activity time of described PCP Client surpasses scheduled duration to the duration between current time, to described PCP Client, send probe message.
18. according to the server described in claim 14-17 any one, it is characterized in that, described processor also for:
If receive the response message of described PCP Client within the described scheduled time, upgrade the activity time of described PCP Client.
19. 1 kinds of port controlling protocol clients, is characterized in that, comprising:
Receiver module, the probe message sending for receiving port control protocol server PCP Server, described probe message is that described PCP Server is according to port controlling agreement PCP structure, for asking described client to return to response message;
Respond module, for sending described response message according to described probe message to described PCP Server.
20. clients according to claim 19, it is characterized in that, the port controlling protocol message that the described probe message that described receiver module receives is notification type, described probe message comprises port controlling protocol option PCP Options, described PCP Options comprises option number, and described option number is used to indicate described client and returns to response message.
21. according to the client described in claim 19 or 20, it is characterized in that:
Described respond module, specifically for sending to described PCP Server using described probe message as described response message.
22. 1 kinds of port controlling protocol clients, is characterized in that, described client comprises processor and memory, and described memory is for storage program, and described processor is used for carrying out described program, to realize:
The probe message that receiving port control protocol server PCP Server sends, described probe message is that described PCP Server is according to port controlling agreement PCP structure, for asking described client to return to response message;
According to described probe message, to described PCP Server, send response message.
23. clients according to claim 22, is characterized in that:
The port controlling protocol message that the probe message that described processor receives is notification type, described probe message comprises port controlling protocol option PCP Options, described PCP Options comprises option number, and described option number is used to indicate described client and returns to response message.
24. according to the client described in claim 22 or 23, it is characterized in that,
Described processor is used for, and sends to described PCP Server using described probe message as described response message.
CN201380000624.7A 2013-05-24 2013-05-24 The management method of public network address resource, port control protocols server and client Active CN103535015B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013076221 2013-05-24

Publications (2)

Publication Number Publication Date
CN103535015A true CN103535015A (en) 2014-01-22
CN103535015B CN103535015B (en) 2016-11-23

Family

ID=49935418

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201380000624.7A Active CN103535015B (en) 2013-05-24 2013-05-24 The management method of public network address resource, port control protocols server and client

Country Status (1)

Country Link
CN (1) CN103535015B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106161534A (en) * 2015-04-09 2016-11-23 中兴通讯股份有限公司 Send, transmit and the method and device of acquisition capability
CN106982270A (en) * 2016-01-19 2017-07-25 华为技术有限公司 A kind of method, device and network system distributed and map public network address
CN112004161A (en) * 2020-07-09 2020-11-27 视联动力信息技术股份有限公司 Processing method and device of address resources, terminal equipment and storage medium
CN112040029A (en) * 2020-11-04 2020-12-04 武汉绿色网络信息服务有限责任公司 NAT conversion method, device, computer equipment and storage medium
CN108989271B (en) * 2017-06-05 2022-06-10 中兴通讯股份有限公司 Method and device for preventing home gateway port from being attacked
US11399007B2 (en) 2018-03-20 2022-07-26 Telefonaktiebolaget Lm Ericsson (Publ) Methods and apparatus for operating and managing a constrained device within a network

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101141489A (en) * 2007-05-18 2008-03-12 中兴通讯股份有限公司 Terminal address automatic allocation method, terminal and network side server
CN101374141A (en) * 2007-08-23 2009-02-25 浙江省电信有限公司 TCP NAT crossing method base on PCP protocol
US20090213792A1 (en) * 2008-01-10 2009-08-27 Samsung Electronics Co., Ltd. Apparatus and method for setting a default gateway address in a mobile communication system
EP2466951A1 (en) * 2010-12-16 2012-06-20 Samsung Electronics Co., Ltd. Roaming TCP Connections Between Changing Physical Networks
CN102664971A (en) * 2012-04-11 2012-09-12 中兴通讯股份有限公司 Network address resource managing method and system and external address resource server
CN102685262A (en) * 2012-04-16 2012-09-19 中兴通讯股份有限公司 Method, device and system for detecting network address translation (NAT) information

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101141489A (en) * 2007-05-18 2008-03-12 中兴通讯股份有限公司 Terminal address automatic allocation method, terminal and network side server
CN101374141A (en) * 2007-08-23 2009-02-25 浙江省电信有限公司 TCP NAT crossing method base on PCP protocol
US20090213792A1 (en) * 2008-01-10 2009-08-27 Samsung Electronics Co., Ltd. Apparatus and method for setting a default gateway address in a mobile communication system
EP2466951A1 (en) * 2010-12-16 2012-06-20 Samsung Electronics Co., Ltd. Roaming TCP Connections Between Changing Physical Networks
CN102664971A (en) * 2012-04-11 2012-09-12 中兴通讯股份有限公司 Network address resource managing method and system and external address resource server
CN102685262A (en) * 2012-04-16 2012-09-19 中兴通讯股份有限公司 Method, device and system for detecting network address translation (NAT) information

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
D. WING, ED. 等: "Port Control Protocol (PCP) RFC6887", 《INTERNET ENGINEERING TASK FORCE (IETF)》, 30 April 2013 (2013-04-30) *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106161534A (en) * 2015-04-09 2016-11-23 中兴通讯股份有限公司 Send, transmit and the method and device of acquisition capability
CN106161534B (en) * 2015-04-09 2021-05-11 中兴通讯股份有限公司 Method and apparatus for transmitting, transferring and acquiring capabilities
CN106982270A (en) * 2016-01-19 2017-07-25 华为技术有限公司 A kind of method, device and network system distributed and map public network address
CN106982270B (en) * 2016-01-19 2019-11-29 华为技术有限公司 A kind of method, apparatus and network system distributed and map public network address
CN108989271B (en) * 2017-06-05 2022-06-10 中兴通讯股份有限公司 Method and device for preventing home gateway port from being attacked
US11399007B2 (en) 2018-03-20 2022-07-26 Telefonaktiebolaget Lm Ericsson (Publ) Methods and apparatus for operating and managing a constrained device within a network
CN112004161A (en) * 2020-07-09 2020-11-27 视联动力信息技术股份有限公司 Processing method and device of address resources, terminal equipment and storage medium
CN112040029A (en) * 2020-11-04 2020-12-04 武汉绿色网络信息服务有限责任公司 NAT conversion method, device, computer equipment and storage medium
CN112040029B (en) * 2020-11-04 2021-02-02 武汉绿色网络信息服务有限责任公司 NAT conversion method, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN103535015B (en) 2016-11-23

Similar Documents

Publication Publication Date Title
CN110677405B (en) Data processing method and device, electronic equipment and storage medium
CN103535015A (en) Management method of public network address resource, terminal control protocol server and client
CN103814554B (en) A kind of communication means of virtual easily extensible local area network (LAN), device and system
US11240152B2 (en) Exposing a subset of hosts on an overlay network to components external to the overlay network without exposing another subset of hosts on the overlay network
US20140355441A1 (en) Method and apparatus of delivering assured services over unreliable internet infrastructure by using virtual overlay network architecture over a public cloud backbone
CN108718347B (en) Domain name resolution method, system, device and storage medium
CN110808857B (en) Network intercommunication method, device, equipment and storage medium for realizing Kubernetes cluster
US8898312B2 (en) Element terminal and communication system
CN107809386B (en) IP address translation method, routing device and communication system
JP6896722B2 (en) Resource configuration method and equipment
CN102763373A (en) Method and apparatus for using service of home network device based on remote access
CN113824723A (en) End-to-end system solution applied to audio and video data transmission
CN103595566A (en) Method and device for detecting idle IP addresses
CN104539902A (en) IPC remote access method and system
JP2014045238A (en) Information processing system, relay device, information processing device and information processing method
US20200220786A1 (en) Statistics increment for multiple publishers
CN105337766A (en) Network element automatic discovery method and system based on DHCP
CN109688011B (en) Agent selection method and device based on OpenStack
CN113660353B (en) Method, device, equipment and medium for managing Provisioner address based on Bluetooth Mesh
CN111034125B (en) Address allocation method and related equipment
CN112511440B (en) Message forwarding method, system, storage medium and electronic equipment
CN110602268B (en) Tunnel port allocation method and device, electronic equipment and storage medium
CN113595894A (en) Communication method, device, equipment and medium between service nodes and client nodes
KR101014251B1 (en) Method for remote-controlling pc by use of internet protocol address and apparatus thereof
CN102792659A (en) Utilizing resources of a peer-to-peer computer environment

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
TR01 Transfer of patent right

Effective date of registration: 20211227

Address after: 450046 Floor 9, building 1, Zhengshang Boya Plaza, Longzihu wisdom Island, Zhengdong New Area, Zhengzhou City, Henan Province

Patentee after: Super fusion Digital Technology Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right