CN104488240B - Session management method, address management method and relevant device - Google Patents

Session management method, address management method and relevant device Download PDF

Info

Publication number
CN104488240B
CN104488240B CN201380000539.0A CN201380000539A CN104488240B CN 104488240 B CN104488240 B CN 104488240B CN 201380000539 A CN201380000539 A CN 201380000539A CN 104488240 B CN104488240 B CN 104488240B
Authority
CN
China
Prior art keywords
terminal device
information
port
address
request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201380000539.0A
Other languages
Chinese (zh)
Other versions
CN104488240A (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.)
Huawei 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 CN104488240A publication Critical patent/CN104488240A/en
Application granted granted Critical
Publication of CN104488240B publication Critical patent/CN104488240B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/64Hybrid switching systems
    • H04L12/6418Hybrid transport
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0894Policy-based network configuration management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4535Network directories; Name-to-address mapping using an address exchange platform which sets up a session between two nodes, e.g. rendezvous servers, session initiation protocols [SIP] registrars or H.323 gatekeepers

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

Disclosed are a session management method, an address management method and a relevant device, wherein the session management method comprises: when a session request of a terminal device is received, according to identification information, address information and port information about the terminal device carried in the session request, determining the type of the terminal device and/or port; according to the type of the terminal device and/or port, sending a session management request to a server; and receiving a session management response message sent by the server, and according to a session management policy contained in the session management response message, performing session management on the terminal device. Also disclosed are an address management method and a corresponding device. A server may be requested to set and issue a corresponding session management policy for a terminal device according to the type of the terminal device and/or port, and session management is performed according to the session management policy, and the session management process is improved.

Description

A kind of conversation managing method, address management method and relevant apparatus
Technical field
The present invention relates to communication technical field, more particularly to a kind of conversation managing method, address management method and related dress Put.
Background technology
In the problem that fixed network and mobile network are merged, on condition that with third generation partner program (The 3rd Generation Partnership Project, 3GPP) strategy in system and charging control (Policy and Charging Control, PCC) framework to be realizing the control for fixed network resource.That is "Policy and Charging Rules Function (Policy and Charging Rules Function, PCRF), used as policy control entity, fixed network data gateway is such as Wideband network gateway (Broadband Network Gateway, BNG), as strategy execution body in fixed network, realizes PCRF Control to the different data streams through BNG.
Home gateway (Residential Gateway, RG) is each procotol (Internet and BNG between Protocol, IP) address sets up a fixed user connection, meanwhile, set up an IP for each IP address between BNG and PCRF Connected reference network (IP-Connectivity Access Network, IP-CAN) session, IP-CAN sessions and fixed user Connection is corresponded according to IP address.
When actual deployment, RG may be operated in route pattern (the Routed mode with of address conversion Network Address Translation) under, in such a scenario, RG is to be connected to its each terminal device to divide With a local ip address, but it is attached to shared wide area network (the Wide Area of all terminals of same RG Network, WAN) IP address, now, an only one of which between RG and BNG fixes user's connection.It is have address conversion in RG Route pattern under, PCRF is the RG and sets up an IP-CAN session when RG is accessed, hereafter, each terminal device from When RG is accessed, all without new IP-CAN session establishment processes are triggered, PCRF cannot be according to the label of the terminal device accessed from RG About generate strategy, but generated strategy according to the signing of RG, and different Business Streams is through network port address conversion All using identical IP address and port numbers, PCRF after (Network Address Port Translation, NAPT) Different strategies can not be formulated to different Business Streams.
In sum, the management that how preferably to conversate has become industry problem in the urgent need to address.
The content of the invention
In view of this, a kind of conversation managing method, address management method and relevant apparatus are embodiments provided, is used In solving the problems, such as the management that cannot conversate well that prior art is existed.
A kind of first aspect, there is provided conversation managing method, including:
When receiving the session request of terminal device, the mark letter of the terminal device carried according to the session request Breath, address information and port information, determine the type of the terminal device and/or port;
According to the terminal device and/or the type of port, to server session management request, the session management are sent Request includes the identification information and port information of the terminal device;
The session management response message that the server sends is received, according to the meeting that the session management response message is included Words management strategy, conversate management to the terminal device.
In the first possible implementation, the session request for receiving terminal device, including:
Detect a five-tuple packet;Or,
Receive the address matching request of terminal device.
With reference to the first possible implementation of first aspect, in second possible implementation, the detection During to a five-tuple packet, the identification information of the terminal device that carried according to the session request, address information and Port information, determines the type of the terminal device and/or port, including:
To terminal device described in PCP server lookups the first address information and first port information corresponding to the second ground Location information and second port information, and the identification information of the terminal device;
The type of the terminal device and/or port is determined according to Query Result.
With reference to the first possible implementation of first aspect, in the third possible implementation, the reception To after the address matching request of terminal device, and the mark of the terminal device carried according to the session request Information, address information and port information, before determining the type of the terminal device and/or port, methods described also includes:
If taking in the source address of the address matching request and PCP client address domain in the address matching request Value is inconsistent, then be the value in the PCP client address domain by the source address modification of the address matching request, and by institute State address matching request and be sent to PCP servers.
With reference to the first possible implementation or the third possible implementation of first aspect, in the 4th kind of possibility Implementation in, it is described receive terminal device address matching request when, according to the session request carry the end The identification information of end equipment, address information and port information, determine the type of the terminal device and/or port, including:
To terminal device described in PCP server lookups the second address information and second port information corresponding to the first ground Location information and first port information, and the identification information of the terminal device;
The type of the terminal device and/or port is determined according to Query Result.
It is described to PCP in the 5th kind of possible implementation with reference to the 4th kind of possible implementation of first aspect The first address information and first corresponding to second address information and second port information of terminal device described in server lookup Port information, including:
Query messages are sent to PCP servers, so as to include second ground in the PCP server lookups address list The record of location information and second port information, and judge that the Terminal Equipment Identifier information corresponding to the record sets with the terminal Whether standby identification information is consistent;
If the Terminal Equipment Identifier information corresponding to the record is inconsistent with the identification information of the terminal device, Receive the address conflict error response message that the PCP servers are returned, by the address conflict error response message send to The terminal device;
If the record is including the identification information of the terminal device, receive that the PCP servers send the The first address information and first port information corresponding to double-address information and second port information, and the terminal device Identification information.
With reference to second possible implementation or the 4th kind of possible implementation of first aspect, in the 6th kind of possibility Implementation in, the type that the terminal device and/or port are determined according to Query Result, including:
Judge to whether there is the note corresponding with the identification information of the terminal device in the Query Result in local cache area Record;
If it is judged that being no, it is determined that the terminal device is the terminal device of the first kind;
If it is judged that be yes, determine whether to whether there is in the local cache area with the Query Result The corresponding record of second port information;
If further judged result be no, the terminal device is determined for the terminal device of Second Type and described Port is the port of the first kind.
With reference to the 6th kind of possible implementation of first aspect, in the 7th kind of possible implementation, the basis The type of the terminal device and/or port to server sends session management request, including:
If it is determined that terminal device of the terminal device for the first kind, then send session establishment request to server, Wherein, the session establishment request packet includes the identification information and port information of the terminal device;
If the terminal device for Second Type terminal device and the port for the first kind port, to Server sends session modification request, wherein, the session modification request includes the identification information of the terminal device and port Information.
With reference to the 6th kind of possible implementation of first aspect, in the 8th kind of possible implementation, the basis The type of the terminal device and/or port to server sends session management request, including:
If it is determined that terminal device of the terminal device for the first kind, and believed according to the mark of the terminal device Breath determines that the terminal device is fixed terminal equipment, then send session modification request to server, wherein, the session modification please Seek the identification information and port information including the terminal device.
With reference to the 5th kind of possible implementation of first aspect or the 6th kind of possible implementation of first aspect or 7th kind of possible implementation of first aspect or the 8th kind of possible implementation of first aspect, it is possible at the 9th kind In implementation, methods described also includes:
The session request of the terminal device is received, the session request includes the identification information of the terminal device With port information to be released;
Send to the PCP servers delete in the address list with the identification information of the terminal device and to be released The corresponding record of port information request;
Session management request is sent to the server, and receives entering for port to be released for the server return The response message of row session management;
Discharge the resource that the port to be released is occupied.
It is described to institute in the tenth kind of possible implementation with reference to the 9th kind of possible implementation of first aspect State server and send session management request, including:
If indicating that all of the port all will be released in the session request that the terminal device for receiving sends, to institute State server and send session termination request;
Otherwise, session modification request is sent to the server, the session modification request includes the terminal device Identification information, port numbers to be released, and deleted marker.
A kind of second aspect, there is provided address management method, including:
The query messages of session management device are received, the second ground carried comprising the query messages in address list is inquired about The record of the identification information of location information, second port information and terminal device;
If the identification information of the terminal device corresponding to the record is inconsistent with the identification information of the terminal device, Then to the session management device return address collision error response message, so that the session management device rushes the address Prominent error response message is sent to terminal device;
If the record is not including the identification information of terminal device, increase described in the record of address list The identification information of terminal device, and the record is back to into the session management device.
A kind of third aspect, there is provided conversation managing method, including:
Receive the session management request that session management device sends, mark of the session management request bag containing terminal device Information and port information;
According to the Terminal Equipment Identifier information and port information, session management strategy is generated, and will be comprising the session The session management response message of management strategy is sent to the session management device.
In the first possible implementation, the session management strategy includes service quality and/or charging policy.
A kind of fourth aspect, there is provided session management device, including:
First determining unit, during for the session request for receiving terminal device, according to the institute that the session request is carried Identification information, address information and the port information of terminal device are stated, the type of the terminal device and/or port is determined;
First transmitting element, for according to the type of the terminal device and/or port, to server session management being sent Request, the session management request includes the identification information and port information of the terminal device;
First receiving unit, for receiving the session management response message that the server sends;
First administrative unit, for the session management strategy included according to the session management response message, to the end End equipment conversates management.
In the first possible implementation, the session request for receiving terminal device, including:
Detect a five-tuple packet;Or,
Receive the address matching request of terminal device.
With reference to the first possible implementation of fourth aspect, in second possible implementation, described first Determining unit includes:
First query unit, for detecting during a five-tuple packet, to terminal device described in PCP server lookups The first address information and first port information corresponding to the second address information and second port information, and the terminal sets Standby identification information;
Second determining unit, for determining the type of the terminal device and/or port according to Query Result.
With reference to the first possible implementation of fourth aspect, in the third possible implementation, described device Also include:
Modification unit, if the source address and PCP client in the address matching request for the address matching request Value in the address field of end is inconsistent, then be the PCP client address domain by the source address modification of the address matching request In value;
Second transmitting element, for the address matching request to be sent to into PCP servers.
With reference to the first possible implementation or the third possible implementation of fourth aspect, in the 4th kind of possibility Implementation in, first determining unit includes:
Second query unit, during for the address matching request for receiving terminal device, to end described in PCP server lookups The first address information and first port information corresponding to second address information and second port information of end equipment, and it is described The identification information of terminal device;
Second determining unit is used to determine the type of the terminal device and/or port according to Query Result.
With reference to the 4th kind of possible implementation of fourth aspect, in the 5th kind of possible implementation, described second Query unit includes:
3rd transmitting element, for sending query messages to PCP servers, so that the PCP server lookups address column Record comprising second address information and second port information in table, and judge the terminal device mark corresponding to the record Whether knowledge information is consistent with the identification information of the terminal device;
Second receiving unit, if for the Terminal Equipment Identifier information corresponding to the record and the terminal device Identification information is inconsistent, then receive the address conflict error response message that the PCP servers are returned;
4th transmitting element, for the address conflict error response message to be sent to the terminal device;
3rd receiving unit, if for the record not including the identification information of the terminal device, receiving described The first address information and first port information corresponding to second address information and second port information of the transmission of PCP servers, And the identification information of the terminal device.
With reference to the 4th kind of possible implementation of fourth aspect, in the 5th kind of possible implementation, described second Determining unit includes:
First judging unit, for judging local cache area in whether there is and the Query Result in terminal device Record corresponding to identification information;
3rd determining unit, for if it is judged that being no, it is determined that the terminal device is the terminal of the first kind Equipment;
Second judging unit, if the judged result for first judging unit is yes, determines whether described Whether there is record corresponding with the second port information in the Query Result in ground buffer area;
4th determining unit, if the judged result for second judging unit is no, determines the terminal device Terminal device and the port for Second Type is the port of the first kind.
With reference to the 6th kind of possible implementation of fourth aspect, in the 7th kind of possible implementation, described first Transmitting element includes:
5th transmitting element, for if it is determined that the terminal device for the first kind terminal device, then to server Session establishment request is sent, wherein, the session establishment request packet includes the identification information and port information of the terminal device;
6th transmitting element, if for the terminal device for Second Type terminal device and the port be the The port of one type, then send session modification request to server, wherein, the session modification request includes the terminal device Identification information and port information.
With reference to the 6th kind of possible implementation of fourth aspect, in the 8th kind of possible implementation, described first Transmitting element also includes:
7th transmitting element, for if it is determined that the terminal device for the first kind terminal device, and according to institute The identification information for stating terminal device determines that the terminal device is fixed terminal equipment, then send session modification request to server, Wherein, the session modification request includes the identification information and port information of the terminal device.
With reference to the 5th kind of possible implementation of fourth aspect or the 6th kind of possible implementation of fourth aspect or 7th kind of possible implementation of fourth aspect or the 8th kind of possible implementation of fourth aspect, it is possible at the 9th kind In implementation, described device also includes:
4th receiving unit, for receiving the session request of the terminal device, the session request includes described The identification information of terminal device and port information to be released;
8th transmitting element, for send to the PCP servers delete in the address list with the terminal device The identification information record corresponding with port information to be released request;
9th transmitting element, for sending session management request to the server;
5th receiving unit, for receiving the sound of the management that conversates for port to be released that the server is returned Answer message;
Releasing unit, for discharging the resource that the port to be released is occupied.
With reference to the 9th kind of possible implementation of fourth aspect, in the tenth kind of possible implementation, the described 9th Transmitting element includes:
Tenth transmitting element, if indicating all of the port in the session request sent for the terminal device for receiving To all be released, then send session termination request to the server;
11st transmitting element, if indicating section end in the session request sent for the terminal device for receiving Mouth will be released, then send session modification request to the server, and the session modification request includes the terminal device Identification information, port numbers to be released, and deleted marker.
A kind of 5th aspect, there is provided Address Management Server, including:
6th receiving unit, for receiving the query messages of session management device, looks in inquiry address list comprising described Ask the record of the identification information of the second address information, second port information and terminal device that message is carried;
First returning unit, if for the identification information and the terminal device of the terminal device corresponding to the record Identification information it is inconsistent, then to the session management device return address collision error response message, so that the session pipe The address conflict error response message is sent to terminal device by reason device;
Adding unit, if for the record not including the identification information of terminal device, described in address list Increase the identification information of the terminal device in record;
Second returning unit, for the record to be back to into the session management device.
A kind of 6th aspect, there is provided server, including:
7th receiving unit, for receiving the session management request of session management device transmission, the session management request Identification information comprising terminal device and port information;
Signal generating unit, for according to the Terminal Equipment Identifier information and port information, generating session management strategy;
12nd transmitting element, it is described for the session management response message comprising the session management strategy to be sent to Session management device.
In the first possible implementation, the session management strategy includes service quality and/or charging policy.
A kind of 7th aspect, there is provided session management equipment, it is characterised in that include:Input unit, output device, deposit Reservoir and processor, wherein, batch processing code is stored in the memory, and the processor is used to call the memory The program code of middle storage, for performing following operation:
When receiving the session request of terminal device, the mark letter of the terminal device carried according to the session request Breath, address information and port information, determine the type of the terminal device and/or port;
According to the terminal device and/or the type of port, to server session management request, the session management are sent Request includes the identification information and port information of the terminal device;
The session management response message that the server sends is received, according to the meeting that the session management response message is included Words management strategy, conversate management to the terminal device.
In the first possible implementation, the session request for receiving terminal device, including:
Detect a five-tuple packet;Or,
Receive the address matching request of terminal device.
With reference to the first possible implementation of the 7th aspect, in second possible implementation, the process When detecting a five-tuple packet described in device execution, the mark letter of the terminal device carried according to the session request Breath, address information and port information, the step of determine the type of the terminal device and/or port, including:
To terminal device described in PCP server lookups the first address information and first port information corresponding to the second ground Location information and second port information, and the identification information of the terminal device;
The type of the terminal device and/or port is determined according to Query Result.
With reference to the first possible implementation of the 7th aspect, in the third possible implementation, the process After the step of address matching request of terminal device being received described in device execution, and according to institute described in the computing device State the identification information of the terminal device, address information and the port information of session request carrying, determine the terminal device and/ Or port type the step of before, also perform following steps:
If taking in the source address of the address matching request and PCP client address domain in the address matching request Value is inconsistent, then be the value in the PCP client address domain by the source address modification of the address matching request, and by institute State address matching request and be sent to PCP servers.
With reference to the first possible implementation or the third possible implementation of the 7th aspect, in the 4th kind of possibility Implementation in, when the address matching request of terminal device is received described in the computing device, according to the session please Identification information, address information and the port information of the terminal device of carrying are asked, the terminal device and/or port is determined The step of type, including:
To terminal device described in PCP server lookups the second address information and second port information corresponding to the first ground Location information and first port information, and the identification information of the terminal device;
The type of the terminal device and/or port is determined according to Query Result.
With reference to the 4th kind of possible implementation of the 7th aspect, in the 5th kind of possible implementation, the process Device performs first corresponding to second address information and second port information to terminal device described in PCP server lookups The step of address information and first port information, including:
Query messages are sent to PCP servers, so as to include second ground in the PCP server lookups address list The record of location information and second port information, and judge that the Terminal Equipment Identifier information corresponding to the record sets with the terminal Whether standby identification information is consistent;
If the Terminal Equipment Identifier information corresponding to the record is inconsistent with the identification information of the terminal device, Receive the address conflict error response message that the PCP servers are returned, by the address conflict error response message send to The terminal device;
If the record is including the identification information of the terminal device, receive that the PCP servers send the The first address information and first port information corresponding to double-address information and second port information, and the terminal device Identification information.
With reference to second possible implementation or the 4th kind of possible implementation of the 7th aspect, in the 6th kind of possibility Implementation in, the type of the terminal device and/or port is determined described in the computing device according to Query Result Step, including:
Judge to whether there is the note corresponding with the identification information of the terminal device in the Query Result in local cache area Record;
If it is judged that being no, it is determined that the terminal device is the terminal device of the first kind;
If it is judged that be yes, determine whether to whether there is in the local cache area with the Query Result The corresponding record of second port information;
If further judged result be no, the terminal device is determined for the terminal device of Second Type and described Port is the port of the first kind.
With reference to the 6th kind of possible implementation of the 7th aspect, in the 7th kind of possible implementation, the process The step of device performs the type according to the terminal device and/or port and sends session management to server and ask, including:
If it is determined that terminal device of the terminal device for the first kind, then send session establishment request to server, Wherein, the session establishment request packet includes the identification information and port information of the terminal device;
If the terminal device for Second Type terminal device and the port for the first kind port, to Server sends session modification request, wherein, the session modification request includes the identification information of the terminal device and port Information.
With reference to the 6th kind of possible implementation of the 7th aspect, in the 8th kind of possible implementation, the process The step of device performs the type according to the terminal device and/or port and sends session management to server and ask, including:
If it is determined that terminal device of the terminal device for the first kind, and believed according to the mark of the terminal device Breath determines that the terminal device is fixed terminal equipment, then send session modification request to server, wherein, the session modification please Seek the identification information and port information including the terminal device.
With reference to the 7th aspect the 5th kind of possible implementation or the 7th aspect the 6th kind of possible implementation or 8th kind of possible implementation of the 7th kind of possible implementation of the 7th aspect or the 7th aspect, it is possible at the 9th kind In implementation, the processor also performs following steps:
The session request of the terminal device is received, the session request includes the identification information of the terminal device With port information to be released;
Send to the PCP servers delete in the address list with the identification information of the terminal device and to be released The corresponding record of port information request;
Session management request is sent to the server, and receives entering for port to be released for the server return The response message of row session management;
Discharge the resource that the port to be released is occupied.
With reference to the 9th kind of possible implementation of the 7th aspect, in the tenth kind of possible implementation, the process Device perform it is described to the server send session management ask the step of, including:
If indicating that all of the port all will be released in the session request that the terminal device for receiving sends, to institute State server and send session termination request;
Otherwise, session modification request is sent to the server, the session modification request includes the terminal device Identification information, port numbers to be released, and deleted marker.
A kind of eighth aspect, there is provided session management server, it is characterised in that include:Input unit, output device, Memory and processor, wherein, batch processing code is stored in the memory, and the processor is used to call the storage The program code stored in device, for performing following operation:
The query messages of session management device are received, the second ground carried comprising the query messages in address list is inquired about The record of the identification information of location information, second port information and terminal device;
If the identification information of the terminal device corresponding to the record is inconsistent with the identification information of the terminal device, Then to the session management device return address collision error response message, so that the session management device rushes the address Prominent error response message is sent to terminal device;
If the record is not including the identification information of terminal device, increase described in the record of address list The identification information of terminal device, and the record is back to into the session management device.
A kind of 9th aspect, there is provided server, it is characterised in that including input unit, output device, memory and place Reason device, wherein, batch processing code is stored in the memory, and the processor is used to call what is stored in the memory Program code, for performing following operation:
Receive the session management request that session management device sends, mark of the session management request bag containing terminal device Information and port information;
According to the Terminal Equipment Identifier information and port information, session management strategy is generated, and will be comprising the session The session management response message of management strategy is sent to the session management device.
In the first possible implementation, the session management strategy includes service quality and/or charging policy.
The technical scheme of a kind of conversation managing method, address management method and relevant apparatus that are provided using the present invention, can Corresponding session management plan is arranged and issues as the terminal device with the type requests server according to terminal device and/or port Slightly, conversated management according to the session management strategy, perfect session management procedure.
Description of the drawings
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to institute in embodiment The accompanying drawing that needs are used is briefly described, it should be apparent that, drawings in the following description are only some enforcements of the present invention Example, for those of ordinary skill in the art, on the premise of not paying creative work, can be being obtained according to these accompanying drawings Obtain other accompanying drawings.
Fig. 1 is a kind of method flow diagram of one embodiment of conversation managing method of the invention;
Fig. 2 is a kind of method flow diagram of another embodiment of conversation managing method of the invention;
Fig. 3 is a kind of method flow diagram of another embodiment of conversation managing method of the invention;
Fig. 4 is a kind of method flow diagram of the embodiment of address management method of the invention;
Fig. 5 is a kind of method flow diagram of the further embodiment of conversation managing method of the invention;
Fig. 6 is a kind of structural representation of one embodiment of session management device of the invention;
Fig. 7 is a kind of structural representation of another embodiment of session management device of the invention;
Fig. 8 is a kind of structural representation of another embodiment of session management device of the invention;
Fig. 9 is a kind of structural representation of the embodiment of Address Management Server of the invention;
Figure 10 is a kind of structural representation of the embodiment of server of the invention;
A kind of structural representation of the one embodiment for session management equipment that Figure 11 is provided for the present invention;
A kind of structural representation of the one embodiment for session management server that Figure 12 is provided for the present invention;
A kind of structural representation of the one embodiment for server that Figure 13 is provided for the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than the embodiment of whole.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
Fig. 1 is a kind of method flow diagram of one embodiment of conversation managing method of the invention.As shown in figure 1, the method Comprise the following steps:
Step S101, when receiving the session request of terminal device, sets according to the terminal that the session request is carried Standby identification information, address information and port information, determine the type of the terminal device and/or port.
In the present embodiment, unify to be managed the session request of terminal device.The session for receiving terminal device please It can detect a five-tuple packet to ask, or the address matching request for receiving terminal device.The session request is taken The address information and port information of tape terminal equipment, it is also possible to go back the identification information of carried terminal equipment.
The identification information energy unique mark of the terminal device terminal device;The address information of terminal device include NAPT before Address behind location or NAPT, i.e. local ip address or WAN IP address, terminal device has only local IP address, connection one All terminal devices of individual RG share a WAN IP address;The port information of terminal device include NAPT front ports information or Port information after NAPT.
From the session request of terminal device, it may be possible to initiated by the terminal device for newly accessing, it is also possible to be What the new port of the terminal device of connection was initiated, the identification information, address information and port information according to terminal device can be true The type for determining terminal device is the terminal device of new connection, or the type of determination terminal device is the terminal device for having connected, with And the type of port is new port.
Step S102, according to the terminal device and/or the type of port, to server session management request, institute is sent Stating session management request includes the identification information and port information of the terminal device.
For the new end that the type of terminal device and/or port is the new terminal device for accessing or the terminal device for having connected Mouthful, request server arranges session management strategy for the terminal device, therefore, according to terminal device and/or the type of port, to Server sends session management request, the identification information and port information of the session management request carried terminal equipment.
Step S103, receives the session management response message that the server sends, and is disappeared according to session management response The session management strategy that breath is included, conversate management to the terminal device.
The session management response message that the reception server sends, the session management response message is server to session management The response that request is made, is the corresponding session management plan of terminal device setting corresponding to the identification information of terminal device specifically Slightly, session management strategy is included in the session management response message, and guild is entered to terminal device according to the session management strategy Words management.
A kind of conversation managing method for providing according to embodiments of the present invention, can be according to terminal device and/or the class of port Type request server is arranged for the terminal device and issues corresponding session management strategy, and according to the session management strategy guild is entered Words management, perfect session management procedure.
Fig. 2 is a kind of method flow diagram of another embodiment of conversation managing method of the invention.As shown in Fig. 2 the party Method is comprised the following steps:
Step S201, when detecting a five-tuple packet, believes to the first address of PCP server lookup terminal devices The second address information and second port information corresponding to breath and first port information, and the mark letter of the terminal device Breath.
A five-tuple packet is detected, five-tuple is referred to by source IP address, source port, purpose IP address, destination The set of mouth and transport layer protocol number composition.For example, conversated management by fixed network MARG gateway (IP Edge), IP Edge detect a new five-tuple.
The mark of terminal device of port control protocols (Port Control Protocol, PCP) the server unification to accessing Knowledge information, address information and port information are managed collectively, according to the identification information of terminal device, the corresponding terminal that is stored with The first/second address information of equipment, the mapping relations of first/second port information.When the identification information of terminal device is sky When, illustrate that the terminal device is the new terminal device for accessing, also do not send PCP MAP messages to register the mark of the terminal device Information.Wherein, the first address information and first port information correspond to respectively address information and port information, i.e. IP after NAPT WAN address informations and WAN port information;Second address information and second port information respectively correspond to NAPT before address information and Port information, i.e. local ip address information and LAN (Local Area Network, LAN) source port information.
The mapping relations of first/second address information, first/second port information according to the PCP server storages, lead to The address crossed after NAPT and port information can inquire address and port information before corresponding NAPT, and terminal device Identification information.
For example, IP Edge send " PCP Query " request message to PCP servers, wherein carrying the five-tuple packet In IP WAN addresses and WAN source ports, the WAN IP address carried in PCP server lookups and the session request and WAN sources Record in the corresponding address list in port, to IP Edge " PCP Query " response message, the record for inquiring are returned Identification information, wan ip address, local ip address, WAN source ports and LAN source ports including terminal device.
Step S202, judges to whether there is the identification information with the terminal device in the Query Result in local cache area Corresponding record, if not, going to step S203;Otherwise, then step S204 is gone to.
Step S203, determines the terminal device that the terminal device is the first kind.
Step S204, judges to whether there is in the local cache area and the second port information pair in the Query Result The record answered, if it is, going to step S205;Otherwise, step S206 is gone to.
Step S205, terminates.
Step S206, determines terminal device and the port that the terminal device is Second Type for the first kind Port.
Step S207, to server session establishment request is sent, wherein, the session establishment request packet includes the terminal and sets Standby identification information and port information.
Step S208, to server session modification request is sent, wherein, the session modification request sets including the terminal Standby identification information and port information.
Step S209, receives the session management response message that the server sends, and is disappeared according to session management response The session management strategy that breath is included, conversate management to the terminal device.
A service request is often processed before IP Edge, just in its buffer area the identification information of storage terminal device, Location information and port information, but for new service request, its corresponding record is not stored, therefore, according to terminal device Identification information, judges in buffer area with the presence or absence of corresponding with the identification information of the terminal device in PCP server lookup results Record, if it is determined that result be no, it is determined that terminal device for the first kind terminal device, the terminal of the first kind Equipment is the new terminal device for accessing;If it is determined that result be yes, it is determined that terminal device for Second Type terminal device, And determine whether to whether there is record corresponding with the LAN source port informations in PCP server lookup results in buffer area, such as The result that fruit judges is no, it is determined that the port of terminal device is the port of the first kind, the i.e. terminal device of the Second Type It is the terminal device for having accessed initiated a session request by new port;If it is determined that result be yes, then do not deal with.
If it is determined that terminal device is the terminal device of new connection, then session establishment request, the session are sent to server Set up the identification information and port information of request carried terminal equipment so that identification information pair of the server for the terminal device The corresponding port of terminal device and its port information answered arranges session management strategy;If it is determined that terminal device connects Terminal device, the port for sending the session request is new port, then send session modification request to server, and the session modification please The identification information and port information of carried terminal equipment are asked, so that server changes the session management strategy of the terminal device, is The port for newly increasing arranges corresponding session management strategy.For example, the server be PCRF, marks of the PCRF according to terminal device Information and port information are generated strategy or more New Policy, and the session management strategy includes service quality (Quality of Service) and/or charge information, and to IP Edge session management response message is sent, session management plan is included in the message Slightly.IP Edge are received after the session management response message, parse session management strategy therein, are held for the terminal device The capable session management strategy.
As a kind of possible embodiment, if it is determined that terminal device is the terminal device of the first kind, and according to The identification information of terminal device determines that the terminal device is fixed terminal equipment, then send session modification request to server.
Step S210, receives the session request of the terminal device, and the session request includes the terminal device Identification information and port information to be released.
Step S211, sends to delete in the address list to the PCP servers and believes with the mark of the terminal device The request of the breath record corresponding with port information to be released.
Step S212, to the server session management request is sent, and receives the session management that the server is returned Response message.
Step S213, discharges the resource that the port to be released is occupied.
The session management procedure that step S210 causes to step S213 for terminal device release port.
A kind of situation is that terminal device discharges one or more ports.In terminal device one independent IP- of correspondence Under the scene of CAN sessions, this scene discharges one or more ports but is not the situation for discharging all of the port including terminal device; A fixed terminal correspond to an independent IP-CAN session scene under, this scene include terminal device discharge one or Multiple or all of the port situation.The session request that receiving terminal apparatus send, the mark of the request message carried terminal equipment Information and port information to be released, the mark deleted in the address list with the terminal device is sent to PCP servers The request of the information record corresponding with port information to be released, PCP servers are received after the request message, in address column The record corresponding with the identification information of terminal device and port information to be released is deleted in table, then, IP Edge are to service Device sends session management request, if terminal device release is one or more ports, the session management request is repaiied for session Change request, the session modification request includes the identification information and port numbers to be released of terminal device, and the reception server is returned According to port to be released conversate management strategy renewal session management response message, finally, session management device root According to the response message, discharge the resource that port to be released is occupied, delete in buffer area with the identification information of terminal device and treat The corresponding record of the port information of release.The session management request is session modification request, and session modification request is included eventually The identification information of end equipment, port numbers to be released, and deleted marker.
Another kind of situation is that terminal device discharges all of port.The meeting that terminal device discharges all of port and causes Words management process, the different of session management procedure for discharging one or more ports from terminal device and causing are, to service The session management request that device sends is session termination request, and request server terminates the IP-CAN sessions of the terminal device.
A kind of conversation managing method for providing according to embodiments of the present invention, by the terminal carried according to five-tuple packet The identification information of equipment, address information and port information, determine the type of terminal device and/or port, according to the terminal device And/or the type of port, request server is according to Terminal Equipment Identifier information and the corresponding session management plan of port information generation Slightly, terminal device is conversated management according to the session management strategy, perfect session management procedure.
Fig. 3 is a kind of method flow diagram of another embodiment of conversation managing method of the invention.As shown in figure 3, the party Method is comprised the following steps:
Step S301, receives the address matching request of terminal device.
Step S302, judges the source address and PCP clients ground in the address matching request of the address matching request Whether the value in the domain of location is consistent, if it is, going to step S304;Otherwise, step S303 is gone to.
Step S303, the source address modification by the address matching request is the value in the PCP client address domain, And the address matching request is sent to into PCP servers.
Step S304, sends query messages to PCP servers, so as to include in the PCP server lookups address list The record of second address information and second port information, and judge the Terminal Equipment Identifier information corresponding to the record with Whether the identification information of the terminal device is consistent.
Step S305, if the identification information of the Terminal Equipment Identifier information corresponding to the record and the terminal device It is inconsistent, then the PCP servers are received to the address conflict error response message for returning, by the address conflict errored response Message is sent to the terminal device.
Step S306, if the record receives the PCP servers not including the identification information of the terminal device The first address information and first port information corresponding to the second address information for sending and second port information, and terminal mark Knowledge information.
Step S301 to step S306 is to enter the process of row address matching to terminal device.Receive the address of terminal device Matching request, the address matching request is sent to PCP servers to enter row address matching.
In the present embodiment, so that IP Edge conversate management to terminal device as an example, wherein, PCP servers can be with IP Edge are closed and set, it is also possible to set up separately.
RG is the 3GPP mobile terminal or fixed terminal distribution local ip address for accessing, and is the route for having address conversion in RG Under pattern, generally same fixed network data gateway can be connected with multiple RG, if these RG have been operated in address conversion Route pattern under, being connected to the terminal device of different RG may be allocated same local ip address, in this address conflict In the case of, the terminal that fixed network data gateway only cannot be distinguished by being connected to different RG with local ip address and port numbers sets It is standby, therefore, the local ip address of distribution needs to enter row address matching by PCP servers, to guarantee that it does not set with other terminals Standby local ip address conflict.
IP Edge send " PCP MAP " request message to PCP servers, the wherein identification information of carried terminal equipment, bag Include one or more in the device identification of terminal iidentification and terminal.The request message is forwarded through RG by RG, and RG can be at it Middle addition RG marks, and the address information and port information of terminal device, wherein, terminal device can have multiple ports, that The port information includes the identification information of multiple ports.If having used other UPnPs between terminal device and RG (Universal Plug and Play, UPnP) agreement, then the interaction message between UE and RG will be substituted for corresponding UPnP protocol Interaction message.
PCP servers receive and store the terminal device NAPT that correspondence RG sends when arbitrary terminal device is accessed Address information in front and back and port information, form NAPT mapping tables, that is, store the first/second address letter of the terminal device Breath, the mapping relations of first/second port information.When the identification information of terminal device is space-time, illustrate that the terminal device is new The terminal device of access, does not also send PCP MAP messages to register the identification information of the terminal device.Wherein, the first address letter Breath and first port information correspond to respectively address information and port information, i.e. IP WAN address informations and WAN port after NAPT Information;Second address information and second port information correspond to respectively address information and port information before NAPT, i.e., local IP ground Location information and LAN (Local Area Network, LAN) source port information.
PCP servers are received after " PCP MAP " request message, inquire about the NAPT mapping tables of itself storage, find bag Record containing the port information before the local ip address and NAPT in request message, judge identification information corresponding to the record with The identification information of the terminal device in request message is inconsistent, then the address conflict errored response for receiving the transmission of PCP servers disappears Breath, and it is transmitted to terminal device;If the record identification information comprising terminal device, PCP servers are by terminal device Identification information fill in this record in.Address is after the match is successful, receives the first address information that PCP servers send and the The second address information and second port information corresponding to Single port information, and the identification information of the terminal device for determining.
In addition, sending query messages to before PCP servers, if the source IP address of " PCP MAP " request message In PCP client ip address (PCP Client ' s IP Address) domain in (source IP Address) and request message Value it is inconsistent, PCP servers not return address collision error message, but know that this please by the way that the two addresses are inconsistent Ask message to have passed through NAT, inquire about according to the value in parameter PCP Client ' the s IP Address domains in message, and by address Matching request is sent to PCP servers.
By the address matching process, local ip address and local port between terminal device can be avoided from rushing It is prominent.
Step S307, judges to whether there is the identification information with the terminal device in the Query Result in local cache area Corresponding record, if it is, going to step S308;Otherwise, step S309 is gone to.
Step S308, determines the terminal device that the terminal device is the first kind.
Step S309, judges to whether there is in the local cache area and the second port information pair in the Query Result The record answered, if it is, going to step S310, terminates;Otherwise, step S311 is gone to.
Step S310, terminates.
Step S311, determines terminal device and the port that the terminal device is Second Type for the first kind Port.
Step S312, to server session establishment request is sent, wherein, the session establishment request packet includes the terminal and sets Standby identification information and port information.
Step S313, to server session modification request is sent, wherein, the session modification request sets including the terminal Standby identification information and port information.
Step S314, receives the session management response message that the server sends, and is disappeared according to session management response The session management strategy that breath is included, conversate management to the terminal device.
IP Edge receive the first ground corresponding to second address information and second port information of the transmission of PCP servers After the identification information of location information and first port information and terminal device, the address information that will be received and port information with Address information and port information in IP Edge local caches area is compared, and determines the type of terminal device and/or port, So as to send session management request to server according to the type of the terminal device and/or port for determining, the reception server sends Session management strategy, conversate management to terminal device, the process of the management that conversates of step S307 to step S314 It is same or like to step S209 with S202 the step of previous embodiment, will not be described here.
A kind of conversation managing method for providing according to embodiments of the present invention, in address matching process, according to the ground for obtaining The identification information of terminal device of the location after the match is successful, address information and port information, determine the class of terminal device and/or port Type, according to the terminal device and/or the type of port, request server is generated according to Terminal Equipment Identifier information and port information Corresponding session management strategy, conversates management according to the session management strategy to terminal device, perfect session management mistake Journey;Meanwhile, enter row address matching, address conflict can be avoided.
Fig. 4 is a kind of method flow diagram of the embodiment of address management method of the invention.As shown in figure 4, the method includes Following steps:
Step S401, receives the query messages of session management device, takes comprising the query messages in inquiry address list The record of the identification information of second address information, second port information and terminal device of band.
Step S402, if the identification information of the terminal device corresponding to the record is believed with the mark of the terminal device Breath is inconsistent, then to the session management device return address collision error response message, so that the session management device will The address conflict error response message is sent to terminal device.
Step S403, if the record is not including the identification information of terminal device, in the record of address list The middle identification information for increasing the terminal device, and the record is back to into the session management device.
Step S401 is to the process that step S403 is that PCP servers carry out address administration.
Session management device sends " PCP MAP " request message to PCP servers, wherein the mark letter of carried terminal equipment Breath, including one or more in the device identification of terminal iidentification and terminal.The request message is forwarded through RG by RG, and RG can To add RG marks, and the address information and port information of terminal device wherein, wherein, terminal device can have multiple ends Mouthful, then the port information includes the identification information of multiple ports.If having used other general i.e. between terminal device and RG Plug-and-play (Universal Plug and Play, UPnP) agreement, then the interaction message between UE and RG will be substituted for corresponding The interaction message of UPnP protocol.
PCP servers receive and store the terminal device NAPT that correspondence RG sends when arbitrary terminal device is accessed Address information in front and back and port information, form NAPT mapping tables, that is, store the first/second address letter of the terminal device Breath, the mapping relations of first/second port information.When the identification information of terminal device is space-time, illustrate that the terminal device is new The terminal device of access, does not also send PCP MAP messages to register the identification information of the terminal device.Wherein, the first address letter Breath and first port information correspond to respectively address information and port information, i.e. IP WAN address informations and WAN port after NAPT Information;Second address information and second port information correspond to respectively address information and port information before NAPT, i.e., local IP ground Location information and LAN (Local Area Network, LAN) source port information.
PCP servers are received after " PCP MAP " request message, inquire about the NAPT mapping tables of itself storage, find bag Record containing the port information before the local ip address and NAPT in request message, judge identification information corresponding to the record with The identification information of the terminal device in request message is inconsistent, then the address conflict errored response for receiving the transmission of PCP servers disappears Breath, and it is transmitted to terminal device;If the record identification information comprising terminal device, PCP servers are by terminal device Identification information fill in this record in.Address is after the match is successful, receives the first address information that PCP servers send and the The second address information and second port information corresponding to Single port information, and the identification information of the terminal device for determining.
A kind of address management method for providing according to embodiments of the present invention, by the address matching process, can avoid end Local ip address and local port between end equipment is clashed.
Fig. 5 is a kind of method flow diagram of the further embodiment of conversation managing method of the invention.As shown in figure 5, the party Method is comprised the following steps:
Step S501, receives the session management request that session management device sends, and the session management request bag contains terminal The identification information and port information of equipment.
Step S502, according to the Terminal Equipment Identifier information and port information, generates session management strategy, and will include The session management response message of the session management strategy is sent to the session management device.
In the present embodiment, server receives the session management request that session management device sends, the session management request Identification information comprising terminal device, may also include port information.Wherein, the identification information energy unique mark of terminal device should Terminal device;One terminal device may have multiple ports, and the port information can include the identification information of multiple ports.
It can be arbitrary terminal device that the session management asks corresponding terminal device, may be new terminal device, Or, it may be the terminal device for having connected that the session management asks corresponding terminal device, but its port may be new port, Server needs the identification information according to terminal device, possible also included port information to generate session management strategy.The session Management strategy is sent to session management device so that session management device is managed according to the session management strategy to session request Reason.
The session management request includes that session establishment is asked and session modification request.The new terminal device of correspondence, session pipe Reason device sends session establishment and asks to server, and server, according to the identification information and port information of terminal device, is that this is new Terminal device new session management strategy is set, the session management strategy is sent to by session by session management response message Managing device.The new port of terminal device that correspondence has connected, session management device to server send session modification request to Server, server is according to the session management strategy of the identification information-enquiry of terminal device to the corresponding terminal device, modification The session management strategy, extends wherein the corresponding session management strategy in new port, by session management response message by the meeting Words management strategy is sent to session management device.Wherein, the server can be PCRF.The session management strategy includes Service Quality Amount, can also include charging policy.
When the session management for receiving session management device is asked, if the session management request please for session modification Ask, indicate to delete corresponding port, or the session management request is session termination request, then PCRF deletes the correspondence of these ports Resource, and adjust session management strategy.
A kind of conversation managing method for providing according to embodiments of the present invention, server receives asking for session management device transmission Ask the new port for new terminal device or the terminal device for having connected that the request of session management strategy is set, be the terminal device Session management strategy is set so that the session management device for receiving the session management strategy can be according to the session management strategy Conversate management to the terminal device, perfect session management procedure.
Fig. 6 is a kind of structural representation of one embodiment of session management device of the invention.As shown in fig. 6, the device 1000 include:
First determining unit 101, during for the session request for receiving terminal device, carries according to the session request The identification information of the terminal device, address information and port information, determine the type of the terminal device and/or port.
In the present embodiment, unify to be managed the session request of terminal device.The session for receiving terminal device please It can detect a five-tuple packet to ask, or the address matching request for receiving terminal device.The session request is taken The address information and port information of tape terminal equipment, it is also possible to go back the identification information of carried terminal equipment.
The identification information energy unique mark of the terminal device terminal device;The address information of terminal device include NAPT before Address behind location or NAPT, i.e. local ip address or WAN IP address, terminal device has only local IP address, connection one All terminal devices of individual RG share a WAN IP address;The port information of terminal device include NAPT front ports information or Port information after NAPT.
From the session request of terminal device, it may be possible to initiated by the terminal device for newly accessing, it is also possible to be What the new port of the terminal device of connection was initiated, the identification information, address information and port information according to terminal device can be true The type for determining terminal device is the terminal device of new connection, or the type of determination terminal device is the terminal device for having connected, with And the type of port is new port.
First transmitting element 102, for according to the type of the terminal device and/or port, to server session being sent Management request, the session management request includes the identification information and port information of the terminal device.
For the new end that the type of terminal device and/or port is the new terminal device for accessing or the terminal device for having connected Mouthful, request server arranges session management strategy for the terminal device, therefore, according to terminal device and/or the type of port, to Server sends session management request, the identification information and port information of the session management request carried terminal equipment.
First receiving unit 103, for receiving the session management response message that the server sends.
First administrative unit 104, for the session management strategy included according to the session management response message, to described Terminal device conversates management.
The session management response message that the reception server sends, the session management response message is server to session management The response that request is made, is the corresponding session management plan of terminal device setting corresponding to the identification information of terminal device specifically Slightly, session management strategy is included in the session management response message, and guild is entered to terminal device according to the session management strategy Words management.
A kind of session management device for providing according to embodiments of the present invention, can be according to terminal device and/or the class of port Type request server is arranged for the terminal device and issues corresponding session management strategy, and according to the session management strategy guild is entered Words management, perfect session management procedure.
Fig. 7 is a kind of structural representation of another embodiment of session management device of the invention.As shown in fig. 7, the dress Putting 2000 includes:
First query unit 201, for detecting during a five-tuple packet, to PCP server lookup terminal devices The first address information and first port information corresponding to the second address information and second port information, and the terminal sets Standby identification information.
A five-tuple packet is detected, five-tuple is referred to by source IP address, source port, purpose IP address, destination The set of mouth and transport layer protocol number composition.For example, conversated management by fixed network MARG gateway (IP Edge), IP Edge detect a new five-tuple.
The mark of terminal device of port control protocols (Port Control Protocol, PCP) the server unification to accessing Knowledge information, address information and port information are managed collectively, according to the identification information of terminal device, the corresponding terminal that is stored with The first/second address information of equipment, the mapping relations of first/second port information.When the identification information of terminal device is sky When, illustrate that the terminal device is the new terminal device for accessing, also do not send PCP MAP messages to register the mark of the terminal device Information.Wherein, the first address information and first port information correspond to respectively address information and port information, i.e. IP after NAPT WAN address informations and WAN port information;Second address information and second port information respectively correspond to NAPT before address information and Port information, i.e. local ip address information and LAN (Local Area Network, LAN) source port information.
The mapping relations of first/second address information, first/second port information according to the PCP server storages, lead to The address crossed after NAPT and port information can inquire address and port information before corresponding NAPT, and terminal device Identification information.
For example, IP Edge send " PCP Query " request message to PCP servers, wherein carrying the five-tuple packet In IP WAN addresses and WAN source ports, the WAN IP address carried in PCP server lookups and the session request and WAN sources Record in the corresponding address list in port, to IP Edge " PCP Query " response message, the record for inquiring are returned Identification information, wan ip address, local ip address, WAN source ports and LAN source ports including terminal device.
Second determining unit 202, for determining the type of the terminal device and/or port according to Query Result.
In the present embodiment, the second determining unit 202 includes:First judging unit 2021, the 3rd determining unit 2022, Two judging units 2023 and the 4th determining unit 2024.
First judging unit 2021, for judging local cache area in the presence or absence of setting with the terminal in the Query Result Record corresponding to standby identification information.
3rd determining unit 2022, for if it is judged that being no, it is determined that the terminal device is the first kind Terminal device.
Second judging unit 2023, if the judged result for first judging unit is yes, determines whether institute State and whether there is in local cache area record corresponding with the second port information in the Query Result.
4th determining unit 2024, if the judged result for second judging unit is no, determines the terminal Equipment for Second Type terminal device and the port for the first kind port.
5th transmitting element 203, for if it is determined that the terminal device for the first kind terminal device, then to service Device sends session establishment request, wherein, the session establishment request packet includes the identification information and port information of the terminal device.
6th transmitting element 204, if the terminal device for Second Type and the port for the terminal device For the port of the first kind, then session modification request is sent to server, wherein, the session modification request includes the terminal The identification information and port information of equipment.
7th transmitting element 205, for if it is determined that the terminal device for the first kind terminal device, and according to The identification information of the terminal device determines that the terminal device is fixed terminal equipment, then sending session modification to server please Ask, wherein, the session modification request includes the identification information and port information of the terminal device.
First receiving unit 206, for receiving the session management response message that the server sends.
First administrative unit 207, for the session management strategy included according to the session management response message, to described Terminal device conversates management.
A service request is often processed before IP Edge, just in its buffer area the identification information of storage terminal device, Location information and port information, but for new service request, its corresponding record is not stored, therefore, according to terminal device Identification information, judges in buffer area with the presence or absence of corresponding with the identification information of the terminal device in PCP server lookup results Record, if it is determined that result be no, it is determined that terminal device for the first kind terminal device, the terminal of the first kind Equipment is the new terminal device for accessing;If it is determined that result be yes, it is determined that terminal device for Second Type terminal device, And determine whether to whether there is record corresponding with the LAN source port informations in PCP server lookup results in buffer area, such as The result that fruit judges is no, it is determined that the port of terminal device is the port of the first kind, the i.e. terminal device of the Second Type It is the terminal device for having accessed initiated a session request by new port;If it is determined that result be yes, then do not deal with.
If it is determined that terminal device is the terminal device of new connection, then session establishment request, the session are sent to server Set up the identification information and port information of request carried terminal equipment so that identification information pair of the server for the terminal device The corresponding port of terminal device and its port information answered arranges session management strategy;If it is determined that terminal device connects Terminal device, the port for sending the session request is new port, then send session modification request to server, and the session modification please The identification information and port information of carried terminal equipment are asked, so that server changes the session management strategy of the terminal device, is The port for newly increasing arranges corresponding session management strategy.For example, the server be PCRF, marks of the PCRF according to terminal device Information and port information are generated strategy or more New Policy, and the session management strategy includes service quality (Quality of Service) and/or charge information, and to IP Edge session management response message is sent, session management plan is included in the message Slightly.IP Edge are received after the session management response message, parse session management strategy therein, are held for the terminal device The capable session management strategy.
As a kind of possible embodiment, if it is determined that terminal device is the terminal device of the first kind, and according to The identification information of terminal device determines that the terminal device is fixed terminal equipment, then send session modification request to server.
4th receiving unit 208, for receiving the session request of the terminal device, the session request includes institute State the identification information and port information to be released of terminal device.
8th transmitting element 209, sets in the address list for sending to delete to the PCP servers with the terminal The request of the standby identification information record corresponding with port information to be released.
9th transmitting element 210, for sending session management request to the server.
Used as a kind of embodiment, the 9th transmitting element 210 can also include:Tenth transmitting element 2101 and the 11st Send unit 2102.
Wherein, the tenth transmitting element 2101, if the session request middle finger sent for the terminal device for receiving Show that all of the port all will be released, then send session termination request to the server;
11st transmitting element 2102, if instruction unit in the session request sent for the terminal device for receiving Point port will be released, then send session modification request to the server, and the session modification request includes the terminal The identification information of equipment, port numbers to be released, and deleted marker.
5th receiving unit 211, conversates management for receiving that the server returns for port to be released Response message.
Releasing unit 212, for discharging the resource that the port to be released is occupied.
A kind of situation is that terminal device discharges one or more ports.In terminal device one independent IP- of correspondence Under the scene of CAN sessions, this scene discharges one or more ports but is not the situation for discharging all of the port including terminal device; A fixed terminal correspond to an independent IP-CAN session scene under, this scene include terminal device discharge one or Multiple or all of the port situation.The session request that receiving terminal apparatus send, the mark of the request message carried terminal equipment Information and port information to be released, the mark deleted in the address list with the terminal device is sent to PCP servers The request of the information record corresponding with port information to be released, PCP servers are received after the request message, in address column The record corresponding with the identification information of terminal device and port information to be released is deleted in table, then, IP Edge are to service Device sends session management request, if terminal device release is one or more ports, the session management request is repaiied for session Change request, the session modification request includes the identification information and port numbers to be released of terminal device, and the reception server is returned According to port to be released conversate management strategy renewal session management response message, finally, session management device root According to the response message, discharge the resource that port to be released is occupied, delete in buffer area with the identification information of terminal device and treat The corresponding record of the port information of release.The session management request is session modification request, and session modification request is included eventually The identification information of end equipment, port numbers to be released, and deleted marker.
Another kind of situation is that terminal device discharges all of port.The meeting that terminal device discharges all of port and causes Words management process, the different of session management procedure for discharging one or more ports from terminal device and causing are, to service The session management request that device sends is session termination request, and request server terminates the IP-CAN sessions of the terminal device.
A kind of session management device for providing according to embodiments of the present invention, by the terminal carried according to five-tuple packet The identification information of equipment, address information and port information, determine the type of terminal device and/or port, according to the terminal device And/or the type of port, request server is according to Terminal Equipment Identifier information and the corresponding session management plan of port information generation Slightly, terminal device is conversated management according to the session management strategy, perfect session management procedure.
Fig. 8 is a kind of structural representation of another embodiment of session management device of the invention.As shown in figure 8, the dress Putting 3000 includes:
Modification unit 301, during for the address matching request for receiving terminal device, if the address matching request Source address is inconsistent with the value in PCP client address domain in the address matching request, then by the address matching request Source address modification be value in the PCP client address domain;
Second transmitting element 302, for the address matching request to be sent to into PCP servers.
Second query unit 303, for the second address information of terminal device described in PCP server lookups and the second end The first corresponding address information of message breath and first port information, and the identification information of the terminal device.
Second query unit 303 includes:3rd transmitting element 3011, the second receiving unit 3012, the 4th transmitting element 3013 and the 3rd receiving unit 3014.
3rd transmitting element 3011, for sending query messages to PCP servers, so that PCP server lookups ground Record comprising second address information and second port information in the list of location, and judge that the terminal corresponding to the record sets Whether standby identification information is consistent with the identification information of the terminal device.
Second receiving unit 3012, if set for the Terminal Equipment Identifier information corresponding to the record and the terminal Standby identification information is inconsistent, then receive the address conflict error response message that the PCP servers are returned.
4th transmitting element 3013, for the address conflict error response message to be sent to the terminal device.
3rd receiving unit 3014, if received not including the identification information of the terminal device for the record The first address information and first end message corresponding to second address information and second port information of the PCP servers transmission Breath, and the identification information of the terminal device.
Second query unit 303 is to enter row address matching to terminal device.The address matching request of terminal device is received, The address matching request is sent to PCP servers to enter row address matching.
In the present embodiment, so that IP Edge conversate management to terminal device as an example, wherein, PCP servers can be with IP Edge are closed and set, it is also possible to set up separately.
RG is the 3GPP mobile terminal or fixed terminal distribution local ip address for accessing, and is the route for having address conversion in RG Under pattern, generally same fixed network data gateway can be connected with multiple RG, if these RG have been operated in address conversion Route pattern under, being connected to the terminal device of different RG may be allocated same local ip address, in this address conflict In the case of, the terminal that fixed network data gateway only cannot be distinguished by being connected to different RG with local ip address and port numbers sets It is standby, therefore, the local ip address of distribution needs to enter row address matching by PCP servers, to guarantee that it does not set with other terminals Standby local ip address conflict.
IP Edge send " PCP MAP " request message to PCP servers, the wherein identification information of carried terminal equipment, bag Include one or more in the device identification of terminal iidentification and terminal.The request message is forwarded through RG by RG, and RG can be at it Middle addition RG marks, and the address information and port information of terminal device, wherein, terminal device can have multiple ports, that The port information includes the identification information of multiple ports.If having used other UPnPs between terminal device and RG (Universal Plug and Play, UPnP) agreement, then the interaction message between UE and RG will be substituted for corresponding UPnP protocol Interaction message.
PCP servers receive and store the terminal device NAPT that correspondence RG sends when arbitrary terminal device is accessed Address information in front and back and port information, form NAPT mapping tables, that is, store the first/second address letter of the terminal device Breath, the mapping relations of first/second port information.When the identification information of terminal device is space-time, illustrate that the terminal device is new The terminal device of access, does not also send PCP MAP messages to register the identification information of the terminal device.Wherein, the first address letter Breath and first port information correspond to respectively address information and port information, i.e. IP WAN address informations and WAN port after NAPT Information;Second address information and second port information correspond to respectively address information and port information before NAPT, i.e., local IP ground Location information and LAN (Local Area Network, LAN) source port information.
PCP servers are received after " PCP MAP " request message, inquire about the NAPT mapping tables of itself storage, find bag Record containing the port information before the local ip address and NAPT in request message, judge identification information corresponding to the record with The identification information of the terminal device in request message is inconsistent, then the address conflict errored response for receiving the transmission of PCP servers disappears Breath, and it is transmitted to terminal device;If the record identification information comprising terminal device, PCP servers are by terminal device Identification information fill in this record in.Address is after the match is successful, receives the first address information that PCP servers send and the The second address information and second port information corresponding to Single port information, and the identification information of the terminal device for determining.
In addition, sending query messages to before PCP servers, if the source IP address of " PCP MAP " request message In PCP client ip address (PCP Client ' s IP Address) domain in (source IP Address) and request message Value it is inconsistent, PCP servers not return address collision error message, but know that this please by the way that the two addresses are inconsistent Ask message to have passed through NAT, inquire about according to the value in parameter PCP Client ' the s IP Address domains in message, and by address Matching request is sent to PCP servers.
By the address matching process, local ip address and local port between terminal device can be avoided from rushing It is prominent.
Second determining unit 304, for determining the type of the terminal device and/or port according to Query Result.
Second determining unit 304 is used to determine the type of the terminal device and/or port according to Query Result.
In the present embodiment, the second determining unit 304 includes:First judging unit 3041, the 3rd determining unit 3042, Two judging units 3043 and the 4th determining unit 3044.
First judging unit 3041, for judging local cache area in the presence or absence of setting with the terminal in the Query Result Record corresponding to standby identification information.
3rd determining unit 3042, for if it is judged that being no, it is determined that the terminal device is the first kind Terminal device.
Second judging unit 3043, if the judged result for first judging unit is yes, determines whether institute State and whether there is in local cache area record corresponding with the second port information in the Query Result.
4th determining unit 3044, if the judged result for second judging unit is no, determines the terminal Equipment for Second Type terminal device and the port for the first kind port.
5th transmitting element 305, for if it is determined that the terminal device for the first kind terminal device, then to service Device sends session establishment request, wherein, the session establishment request packet includes the identification information and port information of the terminal device.
6th transmitting element 306, if the terminal device for Second Type and the port for the terminal device For the port of the first kind, then session modification request is sent to server, wherein, the session modification request includes the terminal The identification information and port information of equipment.
7th transmitting element 307, for if it is determined that the terminal device for the first kind terminal device, and according to The identification information of the terminal device determines that the terminal device is fixed terminal equipment, then sending session modification to server please Ask, wherein, the session modification request includes the identification information and port information of the terminal device.
First receiving unit 308, for receiving the session management response message that the server sends.
First administrative unit 309, for the session management strategy included according to the session management response message, to described Terminal device conversates management.
IP Edge receive the first ground corresponding to second address information and second port information of the transmission of PCP servers After the identification information of location information and first port information and terminal device, the address information that will be received and port information with Address information and port information in IP Edge local caches area is compared, and determines the type of terminal device and/or port, So as to send session management request to server according to the type of the terminal device and/or port for determining, the reception server sends Session management strategy, conversate management to terminal device, the process of the management that conversates of step S307 to step S314 It is same or like to step S209 with S202 the step of previous embodiment, will not be described here.
A kind of session management device for providing according to embodiments of the present invention, in address matching process, according to the ground for obtaining The identification information of terminal device of the location after the match is successful, address information and port information, determine the class of terminal device and/or port Type, according to the terminal device and/or the type of port, request server is generated according to Terminal Equipment Identifier information and port information Corresponding session management strategy, conversates management according to the session management strategy to terminal device, perfect session management mistake Journey;Meanwhile, enter row address matching, address conflict can be avoided.
Fig. 9 is a kind of structural representation of the embodiment of Address Management Server of the invention.As shown in figure 9, the address pipe Reason server 4000 includes:
6th receiving unit 401, for receiving the query messages of session management device, comprising described in inquiry address list The record of the identification information of the second address information, second port information and terminal device that query messages are carried.
First returning unit 402, if for the identification information and the terminal of the terminal device corresponding to the record The identification information of equipment is inconsistent, then to the session management device return address collision error response message, so that the meeting The address conflict error response message is sent to terminal device by words managing device.
Adding unit 403, if for the record not including the identification information of terminal device, in the institute of address list Stating increases the identification information of the terminal device in record.
Second returning unit 404, for the record to be back to into the session management device.
In the present embodiment, the session management server can be PCP servers.
Session management device sends " PCP MAP " request message to PCP servers, wherein the mark letter of carried terminal equipment Breath, including one or more in the device identification of terminal iidentification and terminal.The request message is forwarded through RG by RG, and RG can To add RG marks, and the address information and port information of terminal device wherein, wherein, terminal device can have multiple ends Mouthful, then the port information includes the identification information of multiple ports.If having used other general i.e. between terminal device and RG Plug-and-play (Universal Plug and Play, UPnP) agreement, then the interaction message between UE and RG will be substituted for corresponding The interaction message of UPnP protocol.
PCP servers receive and store the terminal device NAPT that correspondence RG sends when arbitrary terminal device is accessed Address information in front and back and port information, form NAPT mapping tables, that is, store the first/second address letter of the terminal device Breath, the mapping relations of first/second port information.When the identification information of terminal device is space-time, illustrate that the terminal device is new The terminal device of access, does not also send PCP MAP messages to register the identification information of the terminal device.Wherein, the first address letter Breath and first port information correspond to respectively address information and port information, i.e. IP WAN address informations and WAN port after NAPT Information;Second address information and second port information correspond to respectively address information and port information before NAPT, i.e., local IP ground Location information and LAN (Local Area Network, LAN) source port information.
PCP servers are received after " PCP MAP " request message, inquire about the NAPT mapping tables of itself storage, find bag Record containing the port information before the local ip address and NAPT in request message, judge identification information corresponding to the record with The identification information of the terminal device in request message is inconsistent, then the address conflict errored response for receiving the transmission of PCP servers disappears Breath, and it is transmitted to terminal device;If the record identification information comprising terminal device, PCP servers are by terminal device Identification information fill in this record in.Address is after the match is successful, receives the first address information that PCP servers send and the The second address information and second port information corresponding to Single port information, and the identification information of the terminal device for determining.
A kind of Address Management Server for providing according to embodiments of the present invention, by the address matching process, can avoid Local ip address and local port between terminal device is clashed.
Figure 10 is a kind of structural representation of the embodiment of server of the invention.As shown in Figure 10, the server 5000 is wrapped Include:
7th receiving unit 501, for receiving the session management request of session management device transmission, the session management please Ask the identification information comprising terminal device and port information.
Signal generating unit 502, for according to the Terminal Equipment Identifier information and port information, generating session management strategy.
12nd transmitting element 503, for the session management response message comprising the session management strategy to be sent to The session management device.
In the present embodiment, server receives the session management request that session management device sends, the session management request Identification information comprising terminal device, may also include port information.Wherein, the identification information energy unique mark of terminal device should Terminal device;One terminal device may have multiple ports, and the port information can include the identification information of multiple ports.
It can be arbitrary terminal device that the session management asks corresponding terminal device, may be new terminal device, Or, it may be the terminal device for having connected that the session management asks corresponding terminal device, but its port may be new port, Server needs the identification information according to terminal device, possible also included port information to generate session management strategy.The session Management strategy is sent to session management device so that session management device is managed according to the session management strategy to session request Reason.
The session management request includes that session establishment is asked and session modification request.The new terminal device of correspondence, session pipe Reason device sends session establishment and asks to server, and server, according to the identification information and port information of terminal device, is that this is new Terminal device new session management strategy is set, the session management strategy is sent to by session by session management response message Managing device.The new port of terminal device that correspondence has connected, session management device to server send session modification request to Server, server is according to the session management strategy of the identification information-enquiry of terminal device to the corresponding terminal device, modification The session management strategy, extends wherein the corresponding session management strategy in new port, by session management response message by the meeting Words management strategy is sent to session management device.Wherein, the server can be PCRF.The session management strategy includes Service Quality Amount, can also include charging policy.
When the session management for receiving session management device is asked, if the session management request please for session modification Ask, indicate to delete corresponding port, or the session management request is session termination request, then PCRF deletes the correspondence of these ports Resource, and adjust session management strategy.
A kind of server for providing according to embodiments of the present invention, the server receives the request of session management device transmission and is New terminal device or the new port of the terminal device for having connected arranges the request of session management strategy, is that the terminal device is arranged Session management strategy so that the session management device for receiving the session management strategy can be according to the session management strategy to this Terminal device conversates management, perfect session management procedure.
A kind of structural representation of the one embodiment for session management equipment that Figure 11 is provided for the present invention.Such as Figure 11 institutes Show, the equipment 6000 includes:
Input unit 601, output device 602, memory 603 and the (processor in session management equipment of processor 604 604 quantity can be with one or more, in Figure 11 by taking a processor as an example).In some embodiments of the invention, input dress Putting 601, output device 602, memory 603 and processor 604 can be connected by bus or alternate manner, wherein, in Figure 11 with As a example by being connected by bus.
Wherein, batch processing code is stored in memory 603, and processor 604 is used to call what is stored in memory 603 Program code, for performing following operation:
When receiving the session request of terminal device, the mark letter of the terminal device carried according to the session request Breath, address information and port information, determine the type of the terminal device and/or port;
According to the terminal device and/or the type of port, to server session management request, the session management are sent Request includes the identification information and port information of the terminal device;
The session management response message that the server sends is received, according to the meeting that the session management response message is included Words management strategy, conversate management to the terminal device.
As a kind of embodiment, the session request for receiving terminal device, including:
Detect a five-tuple packet;Or,
Receive the address matching request of terminal device.
As a kind of embodiment, processor 604 perform it is described when detecting a five-tuple packet, according to the meeting Words ask identification information, address information and the port information of the terminal device for carrying, and determine the terminal device and/or end The step of type of mouth, including:
To terminal device described in PCP server lookups the first address information and first port information corresponding to the second ground Location information and second port information, and the identification information of the terminal device;
The type of the terminal device and/or port is determined according to Query Result.
Used as a kind of embodiment, processor 604 performs described the step of receiving the address matching request of terminal device Identification information, the address of the terminal device for afterwards, and described in the computing device being carried according to the session request Information and port information, the step of determine the type of the terminal device and/or port before, also perform following steps:
If taking in the source address of the address matching request and PCP client address domain in the address matching request Value is inconsistent, then be the value in the PCP client address domain by the source address modification of the address matching request, and by institute State address matching request and be sent to PCP servers.
As a kind of embodiment, processor 604 perform it is described when receiving the address matching request of terminal device, according to The identification information of the terminal device that the session request is carried, address information and port information, determine the terminal device And/or port type the step of, including:
To terminal device described in PCP server lookups the second address information and second port information corresponding to the first ground Location information and first port information, and the identification information of the terminal device;
The type of the terminal device and/or port is determined according to Query Result.
Used as a kind of embodiment, processor 604 performs second ground to terminal device described in PCP server lookups The step of the first address information and first port information corresponding to location information and second port information, including:
Query messages are sent to PCP servers, so as to include second ground in the PCP server lookups address list The record of location information and second port information, and judge that the Terminal Equipment Identifier information corresponding to the record sets with the terminal Whether standby identification information is consistent;
If the Terminal Equipment Identifier information corresponding to the record is inconsistent with the identification information of the terminal device, Receive the address conflict error response message that the PCP servers are returned, by the address conflict error response message send to The terminal device;
If the record is including the identification information of the terminal device, receive that the PCP servers send the The first address information and first port information corresponding to double-address information and second port information, and the terminal device Identification information.
Used as a kind of embodiment, processor 604 is performed and described determines the terminal device and/or end according to Query Result The step of type of mouth, including:
Judge to whether there is the note corresponding with the identification information of the terminal device in the Query Result in local cache area Record;
If it is judged that being no, it is determined that the terminal device is the terminal device of the first kind;
If it is judged that be yes, determine whether to whether there is in the local cache area with the Query Result The corresponding record of second port information;
If further judged result be no, the terminal device is determined for the terminal device of Second Type and described Port is the port of the first kind.
Used as a kind of embodiment, processor 604 performs the type according to the terminal device and/or port to clothes The step of business device transmission session management is asked, including:
If it is determined that terminal device of the terminal device for the first kind, then send session establishment request to server, Wherein, the session establishment request packet includes the identification information and port information of the terminal device;
If the terminal device for Second Type terminal device and the port for the first kind port, to Server sends session modification request, wherein, the session modification request includes the identification information of the terminal device and port Information.
Used as a kind of embodiment, processor 604 performs the type according to the terminal device and/or port to clothes The step of business device transmission session management is asked, including:
If it is determined that terminal device of the terminal device for the first kind, and believed according to the mark of the terminal device Breath determines that the terminal device is fixed terminal equipment, then send session modification request to server, wherein, the session modification please Seek the identification information and port information including the terminal device.
Used as a kind of embodiment, processor 604 also performs following steps:
The session request of the terminal device is received, the session request includes the identification information of the terminal device With port information to be released;
Send to the PCP servers delete in the address list with the identification information of the terminal device and to be released The corresponding record of port information request;
Session management request is sent to the server, and receives entering for port to be released for the server return The response message of row session management;
Discharge the resource that the port to be released is occupied.
As a kind of embodiment, processor 604 perform it is described to the server send session management ask the step of, Including:
If indicating that all of the port all will be released in the session request that the terminal device for receiving sends, to institute State server and send session termination request;
Otherwise, session modification request is sent to the server, the session modification request includes the terminal device Identification information, port numbers to be released, and deleted marker.
It is understood that the function of each functional module of the session management equipment 6000 of the present embodiment can be according to above-mentioned side Method in method embodiment is implemented, and it implements the associated description that process is referred to said method embodiment, herein Repeat no more.
A kind of one embodiment for the session management equipment provided according to the present invention, can be according to terminal device and/or end The type requests server of mouth is arranged for the terminal device and issues corresponding session management strategy, according to the session management strategy Conversate management, perfect session management procedure.
A kind of structural representation of the one embodiment for session management server that Figure 12 is provided for the present invention.Such as Figure 12 institutes Show, the session management server 7000 includes:
Input unit 701, output device 702, memory 703 and the (number of the processor 704 in server of processor 704 Amount can be with one or more, in Figure 12 by taking a processor as an example).In some embodiments of the invention, input unit 701, Output device 702, memory 703 and processor 704 can be connected by bus or alternate manner, wherein, with by total in Figure 12 As a example by line connection.
Wherein, batch processing code is stored in memory 703, and processor 704 is used to call what is stored in memory 703 Program code, for performing following operation:
The query messages of session management device are received, the second ground carried comprising the query messages in address list is inquired about The record of the identification information of location information, second port information and terminal device;
If the identification information of the terminal device corresponding to the record is inconsistent with the identification information of the terminal device, Then to the session management device return address collision error response message, so that the session management device rushes the address Prominent error response message is sent to terminal device;
If the record is not including the identification information of terminal device, increase described in the record of address list The identification information of terminal device, and the record is back to into the session management device.
The session management server can be PCP servers.
A kind of session management server for providing according to embodiments of the present invention, by the address matching process, can avoid Local ip address and local port between terminal device is clashed.
A kind of structural representation of the one embodiment for server that Figure 13 is provided for the present invention.As shown in figure 13, the clothes Business device 8000 includes:
Input unit 801, output device 802, memory 803 and the (number of the processor 804 in server of processor 804 Amount can be with one or more, in Figure 13 by taking a processor as an example).In some embodiments of the invention, input unit 801, Output device 802, memory 803 and processor 804 can be connected by bus or alternate manner, wherein, with by total in Figure 13 As a example by line connection.
Wherein, batch processing code is stored in memory 803, and processor 804 is used to call what is stored in memory 803 Program code, for performing following operation:
Receive the session management request that session management device sends, mark of the session management request bag containing terminal device Information and port information;
According to the Terminal Equipment Identifier information and port information, session management strategy is generated, and will be comprising the session The session management response message of management strategy is sent to the session management device.
Wherein, session management strategy includes service quality and/or charging policy.
A kind of server for providing according to embodiments of the present invention, the server receives the request of session management device transmission and is New terminal device or the new port of the terminal device for having connected arranges the request of session management strategy, is that the terminal device is arranged Session management strategy so that the session management device for receiving the session management strategy can be according to the session management strategy to this Terminal device conversates management, perfect session management procedure.
Those skilled in the art can be understood that, for convenience and simplicity of description, the equipment of foregoing description With the specific work process of module, the corresponding process description in preceding method embodiment is may be referred to, be will not be described here.
In several embodiments provided herein, it should be understood that disclosed apparatus and method, it can be passed through Its mode is realized.For example, device embodiment described above is only schematic, for example, the division of the module, and only Only a kind of division of logic function, can there is other dividing mode when actually realizing, such as multiple module or components can be tied Close or be desirably integrated in another equipment, or some features can be ignored, or do not perform.It is another, it is shown or discussed Coupling each other or direct-coupling or communication connection can be indirect coupling by some communication interfaces, device or module Close or communicate to connect, can be electrical, mechanical or other forms.
The module as separating component explanation can be or may not be it is physically separate, it is aobvious as module The part for showing can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Can according to the actual needs select therein some or all of, module is realizing this embodiment scheme Purpose.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of said method embodiment can pass through Completing, aforesaid program can be stored in a computer read/write memory medium the related hardware of programmed instruction, the program Upon execution, the step of including said method embodiment is performed;And aforesaid storage medium includes:ROM, RAM, magnetic disc or light Disk etc. is various can be with the medium of store program codes.
A kind of conversation managing method for being provided the embodiment of the present invention above and the technical scheme of relevant apparatus are carried out It is discussed in detail, specific case used herein is set forth to the principle and embodiment of the present invention, above example Illustrate that being only intended to help understands the method for the present invention and its core concept;Simultaneously for one of ordinary skill in the art, according to According to the thought of the present invention, will change in specific embodiments and applications, in sum, this specification content Should not be construed as limiting the invention.

Claims (24)

1. a kind of conversation managing method, it is characterised in that include:
When receiving the session request of terminal device, the identification information of the terminal device carried according to the session request, Address information and port information, determine the type of the terminal device and/or port;
According to the terminal device and/or the type of port, to server session management request, the session management request are sent Including the identification information and port information of the terminal device;
The session management response message that the server sends is received, according to the session pipe that the session management response message is included Reason strategy, conversate management to the terminal device;
The identification information of the terminal device, address information and the port information carried according to the session request, it is determined that The terminal device and/or the type of port, including:
When detecting a five-tuple packet, to first address information and first of terminal device described in PCP server lookups The second address information and second port information corresponding to port information, and identification information or the reception of the terminal device To terminal device address matching request when, to the second address information of terminal device described in the PCP server lookups and The first address information and first port information corresponding to Two-port netwerk information, and the identification information of the terminal device, it is described First address information and first port information correspond to respectively address information and port information after NAPT, second address information Address information and port information before NAPT are corresponded to respectively with second port information;
The type of the terminal device and/or port is determined according to Query Result;
The type that the terminal device and/or port are determined according to Query Result, including:
Judge to whether there is the record corresponding with the identification information of the terminal device in the Query Result in local cache area;
If it is judged that being no, it is determined that the terminal device is the terminal device of the first kind;
If it is judged that being yes, determine whether to whether there is in the local cache area and second in the Query Result The corresponding record of port information;
If further judged result is no, terminal device and the port that the terminal device is Second Type are determined For the port of the first kind.
2. the method for claim 1, it is characterised in that the session request for receiving terminal device, including:
Detect a five-tuple packet;Or,
Receive the address matching request of terminal device.
3. method as claimed in claim 2, it is characterised in that after the address matching request for receiving terminal device, And the identification information of the terminal device, address information and the port information carried according to the session request, it is determined that Before the type of the terminal device and/or port, also include:
If the value in the source address of the address matching request and PCP client address domain in the address matching request is not Unanimously, then by the source address modification of the address matching request it is the value in the PCP client address domain, and will be described Location matching request is sent to PCP servers.
4. the method for claim 1, it is characterised in that described to second of terminal device described in PCP server lookups The first address information and first port information corresponding to address information and second port information, including:
Query messages are sent to PCP servers, so as to believe comprising second address in the PCP server lookups address list The record of breath and second port information, and judge the Terminal Equipment Identifier information corresponding to the record and the terminal device Whether identification information is consistent;
If the Terminal Equipment Identifier information corresponding to the record is inconsistent with the identification information of the terminal device, receive The address conflict error response message that the PCP servers are returned, the address conflict error response message is sent to described Terminal device;
If the record receives the second ground that the PCP servers send not including the identification information of the terminal device The first address information and first port information corresponding to location information and second port information, and the mark of the terminal device Information.
5. the method for claim 1, it is characterised in that the type according to the terminal device and/or port to Server sends session management request, including:
If it is determined that terminal device of the terminal device for the first kind, then send session establishment request to server, wherein, The session establishment request packet includes the identification information and port information of the terminal device;
If the terminal device for Second Type terminal device and the port for the first kind port, to service Device sends session modification request, wherein, the session modification request includes the identification information and port information of the terminal device.
6. the method for claim 1, the type according to the terminal device and/or port to server sends meeting Words management request, including:
If it is determined that terminal device of the terminal device for the first kind, and it is true according to the identification information of the terminal device The fixed terminal device is fixed terminal equipment, then send session modification request to server, wherein, the session modification request bag Include the identification information and port information of the terminal device.
7. the method as described in any one of claim 4-6, it is characterised in that also include:
The session request of the terminal device is received, the session request includes the identification information of the terminal device and treats The port information of release;
Identification information and the end to be released in the deletion address list with the terminal device is sent to the PCP servers The request of the corresponding record of message manner of breathing;
Send session management request to the server, and receive that the server returns enter guild for port to be released The response message of words management;
Discharge the resource that the port to be released is occupied.
8. method as claimed in claim 7, it is characterised in that described to send session management request to the server, including:
If indicating that all of the port all will be released in the session request that the terminal device for receiving sends, to the clothes Business device sends session termination request;
Otherwise, session modification request is sent to the server, the session modification request includes the mark of the terminal device Knowledge information, port numbers to be released, and deleted marker.
9. a kind of session management device, it is characterised in that include:
First determining unit, during for the session request for receiving terminal device, according to the end that the session request is carried The identification information of end equipment, address information and port information, determine the type of the terminal device and/or port;
First transmitting element, for according to the type of the terminal device and/or port, sending session management to server please Ask, the session management request includes the identification information and port information of the terminal device;
First receiving unit, for receiving the session management response message that the server sends;
First administrative unit, for the session management strategy included according to the session management response message, sets to the terminal The standby management that conversates;
First determining unit includes:First query unit or the second query unit, and the second determining unit, wherein:
First query unit, for detecting during a five-tuple packet, to of terminal device described in PCP server lookups The second address information and second port information corresponding to one address information and first port information, and the terminal device Identification information;
Second query unit, during for the address matching request for receiving terminal device, sets to terminal described in PCP server lookups The first address information and first port information corresponding to standby the second address information and second port information, and the terminal The identification information of equipment;
Second determining unit, for determining the type of the terminal device and/or port according to Query Result;
Second determining unit includes:
First judging unit, for judging local cache area in the presence or absence of with the Query Result in terminal device mark The corresponding record of information;
3rd determining unit, for if it is judged that being no, it is determined that the terminal device is the terminal device of the first kind;
Second judging unit, if the judged result for first judging unit is yes, determines whether described local slow Deposit and whether there is in area record corresponding with the second port information in the Query Result;
4th determining unit, if the judged result for second judging unit is no, determines the terminal device for the The terminal device of two types and the port that the port is the first kind;
Wherein, first address information and first port information correspond to respectively address information and port information after NAPT, institute State the second address information and second port information corresponds to respectively address information and port information before NAPT.
10. device as claimed in claim 9, it is characterised in that the session request for receiving terminal device, including:
Detect a five-tuple packet;Or,
Receive the address matching request of terminal device.
11. devices as claimed in claim 10, it is characterised in that also include:
Modification unit, if for the source address and PCP clients ground in the address matching request of the address matching request Value in the domain of location is inconsistent, then be in the PCP client address domain by the source address modification of the address matching request Value;
Second transmitting element, for the address matching request to be sent to into PCP servers.
12. devices as claimed in claim 9, it is characterised in that second query unit includes:
3rd transmitting element, for sending query messages to PCP servers, so that in the PCP server lookups address list Record comprising second address information and second port information, and judge that the Terminal Equipment Identifier corresponding to the record is believed Whether breath is consistent with the identification information of the terminal device;
Second receiving unit, if for the mark of the Terminal Equipment Identifier information corresponding to the record and the terminal device Information is inconsistent, then receive the address conflict error response message that the PCP servers are returned;
4th transmitting element, for the address conflict error response message to be sent to the terminal device;
3rd receiving unit, if for the record not including the identification information of the terminal device, receiving the PCP clothes The first address information and first port information corresponding to second address information and second port information of business device transmission, Yi Jisuo State the identification information of terminal device.
13. devices as claimed in claim 9, it is characterised in that first transmitting element includes:
5th transmitting element, for if it is determined that the terminal device for the first kind terminal device, then to server send Session establishment is asked, wherein, the session establishment request packet includes the identification information and port information of the terminal device;
6th transmitting element, if being the first kind for terminal device and the port that the terminal device is Second Type The port of type, then send session modification request to server, wherein, the session modification request includes the mark of the terminal device Knowledge information and port information.
14. devices as claimed in claim 9, first transmitting element also includes:
7th transmitting element, for if it is determined that the terminal device for the first kind terminal device, and according to the end The identification information of end equipment determines that the terminal device is fixed terminal equipment, then send session modification request to server, wherein, The session modification request includes the identification information and port information of the terminal device.
15. devices as described in any one of claim 12-14, it is characterised in that also include:
4th receiving unit, for receiving the session request of the terminal device, the session request includes the terminal The identification information of equipment and port information to be released;
8th transmitting element, for sending the mark deleted in the address list with the terminal device to the PCP servers The request of the knowledge information record corresponding with port information to be released;
9th transmitting element, for sending session management request to the server;
5th receiving unit, disappears for receiving that the server returns for the conversate response of management of port to be released Breath;
Releasing unit, for discharging the resource that the port to be released is occupied.
16. devices as claimed in claim 15, it is characterised in that the 9th transmitting element includes:
Tenth transmitting element, if indicating that all of the port all will in the session request sent for the terminal device for receiving It is released, then sends session termination request to the server;
11st transmitting element, if indicating that section ports will in the session request sent for the terminal device for receiving It is released, then sends session modification request to the server, the session modification request includes the mark of the terminal device Knowledge information, port numbers to be released, and deleted marker.
17. a kind of session management equipment, it is characterised in that include:Input unit, output device, memory and processor, its In, batch processing code is stored in the memory, and the processor is used to call the program generation stored in the memory Code, for performing following operation:
When receiving the session request of terminal device, the identification information of the terminal device carried according to the session request, Address information and port information, determine the type of the terminal device and/or port;
According to the terminal device and/or the type of port, to server session management request, the session management request are sent Including the identification information and port information of the terminal device;
The session management response message that the server sends is received, according to the session pipe that the session management response message is included Reason strategy, conversate management to the terminal device;
The identification information of the terminal device that carried according to the session request described in the computing device, address information and Port information, the step of determine the type of the terminal device and/or port, including:
When detecting a five-tuple packet, to first address information and first of terminal device described in PCP server lookups The second address information and second port information corresponding to port information, and identification information or the reception of the terminal device To terminal device address matching request when, to the second address information of terminal device described in the PCP server lookups and The first address information and first port information corresponding to Two-port netwerk information, and the identification information of the terminal device, it is described First address information and first port information correspond to respectively address information and port information after NAPT, second address information Address information and port information before NAPT are corresponded to respectively with second port information;
The type of the terminal device and/or port is determined according to Query Result;
The step of type of the terminal device and/or port is determined described in the computing device according to Query Result, including:
Judge to whether there is the record corresponding with the identification information of the terminal device in the Query Result in local cache area;
If it is judged that being no, it is determined that the terminal device is the terminal device of the first kind;
If it is judged that being yes, determine whether to whether there is in the local cache area and second in the Query Result The corresponding record of port information;
If further judged result is no, terminal device and the port that the terminal device is Second Type are determined For the port of the first kind.
18. session management equipment as claimed in claim 17, it is characterised in that the session for receiving terminal device please Ask, including:
Detect a five-tuple packet;Or,
Receive the address matching request of terminal device.
19. session management equipment as claimed in claim 18, it is characterised in that receive terminal described in the computing device After the step of address matching request of equipment, and described in the computing device according to the session request is carried The identification information of terminal device, address information and port information, the step of determine the type of the terminal device and/or port it Before, also perform following steps:
If the value in the source address of the address matching request and PCP client address domain in the address matching request is not Unanimously, then by the source address modification of the address matching request it is the value in the PCP client address domain, and will be described Location matching request is sent to PCP servers.
20. session management equipment as claimed in claim 17, it is characterised in that service to PCP described in the computing device Device inquires about the first address information and first port corresponding to second address information and second port information of the terminal device The step of information, including:
Query messages are sent to PCP servers, so as to believe comprising second address in the PCP server lookups address list The record of breath and second port information, and judge the Terminal Equipment Identifier information corresponding to the record and the terminal device Whether identification information is consistent;
If the Terminal Equipment Identifier information corresponding to the record is inconsistent with the identification information of the terminal device, receive The address conflict error response message that the PCP servers are returned, the address conflict error response message is sent to described Terminal device;
If the record receives the second ground that the PCP servers send not including the identification information of the terminal device The first address information and first port information corresponding to location information and second port information, and the mark of the terminal device Information.
21. session management equipment as claimed in claim 17, it is characterised in that according to the end described in the computing device The type of end equipment and/or port to server send session management ask the step of, including:
If it is determined that terminal device of the terminal device for the first kind, then send session establishment request to server, wherein, The session establishment request packet includes the identification information and port information of the terminal device;
If the terminal device for Second Type terminal device and the port for the first kind port, to service Device sends session modification request, wherein, the session modification request includes the identification information and port information of the terminal device.
22. session management equipment as claimed in claim 17, described in the computing device according to the terminal device and/or The type of port to server send session management ask the step of, including:
If it is determined that terminal device of the terminal device for the first kind, and it is true according to the identification information of the terminal device The fixed terminal device is fixed terminal equipment, then send session modification request to server, wherein, the session modification request bag Include the identification information and port information of the terminal device.
The 23. session management equipment as described in any one of claim 20-22, it is characterised in that the processor also perform with Lower step:
The session request of the terminal device is received, the session request includes the identification information of the terminal device and treats The port information of release;
Identification information and the end to be released in the deletion address list with the terminal device is sent to the PCP servers The request of the corresponding record of message manner of breathing;
Send session management request to the server, and receive that the server returns enter guild for port to be released The response message of words management;
Discharge the resource that the port to be released is occupied.
24. session management equipment as claimed in claim 23, it is characterised in that to the service described in the computing device The step of device transmission session management is asked, including:
If indicating that all of the port all will be released in the session request that the terminal device for receiving sends, to the clothes Business device sends session termination request;
Otherwise, session modification request is sent to the server, the session modification request includes the mark of the terminal device Knowledge information, port numbers to be released, and deleted marker.
CN201380000539.0A 2013-06-17 2013-06-17 Session management method, address management method and relevant device Active CN104488240B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2013/077302 WO2014201600A1 (en) 2013-06-17 2013-06-17 Session management method, address management method and relevant device

Publications (2)

Publication Number Publication Date
CN104488240A CN104488240A (en) 2015-04-01
CN104488240B true CN104488240B (en) 2017-04-26

Family

ID=52103775

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201380000539.0A Active CN104488240B (en) 2013-06-17 2013-06-17 Session management method, address management method and relevant device

Country Status (2)

Country Link
CN (1) CN104488240B (en)
WO (1) WO2014201600A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US12040979B2 (en) 2019-04-28 2024-07-16 Huawei Technologies Co., Ltd. Communications method, apparatus, and system

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106161251B (en) * 2016-06-14 2019-06-07 国家计算机网络与信息安全管理中心 Message safety analytical method and device
CN113507730B (en) 2017-06-26 2023-01-13 华为技术有限公司 Session management method, device, equipment and system
CN110417840B (en) * 2018-04-28 2020-10-09 华为技术有限公司 Information processing method and device
CN109617753B (en) * 2019-02-26 2022-03-22 深信服科技股份有限公司 Network platform management method, system, electronic equipment and storage medium
CN114866415A (en) * 2019-04-28 2022-08-05 华为技术有限公司 Communication method, device and system
CN114500341B (en) * 2021-12-28 2024-05-14 福建升腾资讯有限公司 Terminal real-time management and control method under wide area network and management and control server

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1980252A (en) * 2005-12-06 2007-06-13 华为技术有限公司 Address-conflict detection realizing method and address conflict detection agent apparatus
CN101035070A (en) * 2007-02-05 2007-09-12 华为技术有限公司 Method, device and NAT device for notifying the network terminal after aging session
CN101068160A (en) * 2007-06-15 2007-11-07 杭州华三通信技术有限公司 Method for managing dynamic address equipment and agenty device
CN101132424A (en) * 2007-09-29 2008-02-27 杭州华三通信技术有限公司 Network address conversion method and device thereof
CN101170556A (en) * 2006-10-26 2008-04-30 阿尔卡特朗讯公司 Crossing of a nat address translation equipment for sip-protocol signalling messages by address information redundancy
CN101197808A (en) * 2006-12-08 2008-06-11 上海贝尔阿尔卡特股份有限公司 Method for sustaining NAT address in SIP network system and device thereof
CN101222343A (en) * 2008-01-30 2008-07-16 中兴通讯股份有限公司 Policy and charging control system and control method for media gateway

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW588532B (en) * 2002-03-29 2004-05-21 Realtek Semiconductor Corp Management device and method of NAT/NAPT session
CN1870569B (en) * 2005-05-25 2012-02-08 国际商业机器公司 Network system and its management method, communication terminal and file transmitting method
CN101729388B (en) * 2008-10-22 2012-01-25 华为技术有限公司 Method, media gateway and network system for realizing network address conversion
CN102387081B (en) * 2011-11-18 2014-04-02 华为技术有限公司 Communication service QoS assurance method, device and system in NAT scene

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1980252A (en) * 2005-12-06 2007-06-13 华为技术有限公司 Address-conflict detection realizing method and address conflict detection agent apparatus
CN101170556A (en) * 2006-10-26 2008-04-30 阿尔卡特朗讯公司 Crossing of a nat address translation equipment for sip-protocol signalling messages by address information redundancy
CN101197808A (en) * 2006-12-08 2008-06-11 上海贝尔阿尔卡特股份有限公司 Method for sustaining NAT address in SIP network system and device thereof
CN101035070A (en) * 2007-02-05 2007-09-12 华为技术有限公司 Method, device and NAT device for notifying the network terminal after aging session
CN101068160A (en) * 2007-06-15 2007-11-07 杭州华三通信技术有限公司 Method for managing dynamic address equipment and agenty device
CN101132424A (en) * 2007-09-29 2008-02-27 杭州华三通信技术有限公司 Network address conversion method and device thereof
CN101222343A (en) * 2008-01-30 2008-07-16 中兴通讯股份有限公司 Policy and charging control system and control method for media gateway

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US12040979B2 (en) 2019-04-28 2024-07-16 Huawei Technologies Co., Ltd. Communications method, apparatus, and system

Also Published As

Publication number Publication date
WO2014201600A1 (en) 2014-12-24
CN104488240A (en) 2015-04-01

Similar Documents

Publication Publication Date Title
CN104488240B (en) Session management method, address management method and relevant device
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
CN112965824B (en) Message forwarding method and device, storage medium and electronic equipment
US10574477B2 (en) Priority tagging based solutions in fc sans independent of target priority tagging capability
WO2020253631A1 (en) Configuration method, device, and system for ip address
CN112437168B (en) Intranet penetration system
CN114095430B (en) Access message processing method, system and working node
CN105101176B (en) A kind of binding session methods, devices and systems under roaming scence
CN107547346B (en) Message transmission method and device
CN104219125A (en) Method, device and system for forwarding message in ICN
CN108040134A (en) A kind of method and device of DNS Transparent Proxies
CN107071079B (en) Method and system for private network terminal to acquire public network IP
CN107800603A (en) Intranet user accesses the method and storage medium of headend equipment based on VPN
CN103442096B (en) NAT method based on mobile Internet and system
CN103036875A (en) Processing device and recognition device for user identity
KR20130101618A (en) System and method for operating network based on network virtualization
CN110392066A (en) A kind of method and apparatus of access service
CN106302638A (en) A kind of data managing method, forwarding unit and system
US6724724B1 (en) System and method for resolving an electronic address
CN110035040A (en) A kind of method and apparatus of signaling addressing
CN109413224A (en) Message forwarding method and device
CN109922074A (en) Access method and apparatus, management method, the equipment, medium of outband management network
CN110430478B (en) Networking communication method, device, terminal equipment and storage medium
CN100454828C (en) Method for implementing terminal management in network equipment
CN107547690A (en) Port assignment method, apparatus, NAT device and storage medium in NAT

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant