WO2014201600A1 - Procédé de gestion de sessions, procédé de gestion d'adresses et dispositif approprié - Google Patents

Procédé de gestion de sessions, procédé de gestion d'adresses et dispositif approprié Download PDF

Info

Publication number
WO2014201600A1
WO2014201600A1 PCT/CN2013/077302 CN2013077302W WO2014201600A1 WO 2014201600 A1 WO2014201600 A1 WO 2014201600A1 CN 2013077302 W CN2013077302 W CN 2013077302W WO 2014201600 A1 WO2014201600 A1 WO 2014201600A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal device
port
information
address
session management
Prior art date
Application number
PCT/CN2013/077302
Other languages
English (en)
Chinese (zh)
Inventor
司•马可
李欢
于游洋
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201380000539.0A priority Critical patent/CN104488240B/zh
Priority to PCT/CN2013/077302 priority patent/WO2014201600A1/fr
Publication of WO2014201600A1 publication Critical patent/WO2014201600A1/fr

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

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a session management method, an address management method, and related devices. Background technique
  • the premise is to implement the Policy and Charging Control (PCC) architecture in the 3rd Generation Partnership Project (3GPP) system.
  • PCC Policy and Charging Control
  • 3GPP 3rd Generation Partnership Project
  • PCRF Policy and Charging Rules Function
  • BNG Broadband Network Gateway
  • IP Internet Protocol
  • IP connection access network IP
  • the RG may work in a routed mode with Network Address Translation.
  • the RG assigns a local IP address to each terminal device connected to it, but All terminals connected to the same RG share a Wide Area Network (WAN) IP address.
  • WAN Wide Area Network
  • the PCRF establishes an IP-CAN session for the RG when the RG is accessed. Thereafter, when the terminal device accesses the RG, no new IP-CAN session is triggered.
  • the PCRF cannot formulate a policy according to the contract of the terminal device accessed from the RG, but formulates a policy according to the contract of the RG, and different service flows use the same after the Network Address Port Translation (NAPT). IP addresses and port numbers, PCRF is also not able to make different policies for different traffic flows.
  • NAPT Network Address Port Translation
  • a session management method including:
  • the session request of the terminal device When the session request of the terminal device is received, determining the type of the terminal device and/or the port according to the identification information, the address information, and the port information of the terminal device that are carried in the session request;
  • the receiving, by the terminal device, the session request includes: detecting a 5-tuple data packet; or
  • the identifier information of the terminal device that is carried according to the session request, The address information and the port information, the type of the terminal device and/or the port is determined, including: querying, by the PCP server, the first address information of the terminal device and the second address information and the second port information corresponding to the first port information And the identification information of the terminal device;
  • the type of the terminal device and/or port is determined according to the result of the query.
  • the method further includes: identifying information, address information, and port information, and determining the type of the terminal device and/or the port, the method further includes:
  • the source address of the address matching request is inconsistent with the value of the PCP client address field in the address matching request, the source address of the address matching request is modified to the value in the PCP client address field. And sending the address matching request to the PCP server.
  • a fourth possible implementation manner when the address matching request of the terminal device is received, The identifier information, the address information, and the port information of the terminal device are determined, and the type of the terminal device and/or the port is determined, including:
  • the PCP server Querying, to the PCP server, the first address information and the first port information corresponding to the second address information and the second port information of the terminal device, and the identifier information of the terminal device;
  • the type of the terminal device and/or port is determined according to the result of the query.
  • the querying, by the PCP server, the second address information of the terminal device and the first address information corresponding to the second port information And the first port information including:
  • the terminal device identification information corresponding to the record is inconsistent with the identifier information of the terminal device, receiving an address conflict error response message returned by the PCP server, and sending the address conflict error response message to the terminal device;
  • the determining, according to the query result, determining the type of the terminal device and/or the port Includes:
  • the determination result is no, determining that the terminal device is the terminal device of the first type; if the determination result is yes, further determining whether there is a record corresponding to the second port information in the query result in the local buffer area ;
  • the terminal device is a terminal device of the second type and the port is a port of the first type.
  • the sending, by the terminal device and/or the type of the port, the session management request to the server, the method includes: if the terminal is determined The device is a terminal device of the first type, and the session establishment request is sent to the server, where the session establishment request includes the identification information and port information of the terminal device; if the terminal device is the second type of terminal device and the device The port is a port of the first type, and the session modification request is sent to the server, where the session modification request includes the identifier information and the port information of the terminal device.
  • the sending, by the type of the terminal device and/or the port, the session management request to the server includes: if the terminal is determined The device is a first type of terminal device, and the terminal device is determined to be a fixed terminal device according to the identification information of the terminal device, and the session modification request is sent to the server, where the session modification request includes the identification information of the terminal device. And port information.
  • the method further includes:
  • the session request includes the identification information of the terminal device and port information to be released; and a request for recording corresponding to the port information to be released;
  • the sending the session management request to the server includes:
  • an address management method including:
  • the query address list includes a record of the second address information, the second port information, and the identification information of the terminal device carried by the query message;
  • the session management device If the identifier information of the terminal device corresponding to the record does not match the identifier information of the terminal device, return an address conflict error response message to the session management device, so that the session management device sends the address conflict error response The message is sent to the terminal device;
  • a session management method including:
  • the session management policy includes a quality of service and/or a charging policy.
  • a session management apparatus including:
  • a first determining unit configured to determine, according to the identification information, the address information, and the port information of the terminal device carried by the session request, the type of the terminal device and/or the port, when receiving the session request of the terminal device;
  • a first sending unit configured to send a session management request to the server according to the type of the terminal device and/or the port, where the session management request includes the identifier information and the port information of the terminal device; Receiving a session management response message sent by the server;
  • the first management unit is configured to perform session management on the terminal device according to the session management policy included in the session management response message.
  • the receiving, by the terminal device, the session request includes: detecting a quintuple data packet; or
  • the first determining unit includes:
  • a first query unit configured to query a PCP server for the first address information of the terminal device and the second address information and the second port information corresponding to the first port information, and the second port information Describe the identification information of the terminal device;
  • the apparatus further includes:
  • a modifying unit configured to: if the source address of the address matching request is inconsistent with the value of the PCP client address field in the address matching request, modify the source address of the address matching request to The value in the address field of the PCP client;
  • a second sending unit configured to send the address matching request to the PCP server.
  • the first determining unit includes:
  • a second query unit configured to: when the address matching request of the terminal device is received, query the PCP server for the second address information and the first port information corresponding to the second port information and the second port information of the terminal device, and the Describe the identification information of the terminal device;
  • the second determining unit is configured to determine the type of the terminal device and/or the port according to the query result.
  • the second query unit includes:
  • a third sending unit configured to send a query message to the PCP server, so that the PCP server queries the record in the address list that includes the second address information and the second port information, and determines the terminal device identifier corresponding to the record Whether the information is consistent with the identification information of the terminal device;
  • a second receiving unit configured to receive an address conflict error response cancellation fourth sending unit returned by the PCP server, if the terminal device identification information corresponding to the record is inconsistent with the identification information of the terminal device, The address conflict error response message is sent to the terminal device;
  • the third receiving unit is configured to receive the second address information and the second port sent by the PCP server if the record does not include the identifier information of the terminal device The first address information and the first port information corresponding to the information, and the identification information of the terminal device.
  • the second determining unit includes:
  • a first determining unit configured to determine whether a record corresponding to the identification information of the terminal device in the query result exists in the local buffer area
  • a third determining unit configured to determine, if the determination result is no, that the terminal device is a terminal device of a first type
  • a second determining unit configured to determine, if the determination result of the first determining unit is yes, whether there is a record corresponding to the second port information in the query result in the local buffer area; the fourth determining unit, And if the determination result of the second determining unit is negative, determining the end
  • the end device is a second type of terminal device and the port is a first type of port.
  • the first sending unit includes:
  • a fifth sending unit configured to send a session establishment request to the server if the terminal device is determined to be the terminal device of the first type, where the session establishment request includes the identifier information and the port information of the terminal device;
  • a sixth sending unit configured to send a session modification request to the server, if the terminal device is a second type of terminal device, and the port is a first type of port, where the session modification request includes the terminal device Identification information and port information.
  • the first sending unit further includes:
  • a seventh sending unit configured to send a session modification request to the server if the terminal device is determined to be the first type of terminal device, and the terminal device is determined to be a fixed terminal device according to the identification information of the terminal device, where
  • the session modification request includes identification information and port information of the terminal device.
  • the device further includes:
  • a fourth receiving unit configured to receive a session request of the terminal device, where the session request includes identifier information of the terminal device and port information to be released;
  • an eighth sending unit configured to send, to the PCP server, a request for deleting a record corresponding to the identifier information of the terminal device and the port information to be released in the address list;
  • a ninth sending unit configured to send a session management request to the server
  • a fifth receiving unit configured to receive a response message returned by the server for session management of the port to be released
  • a release unit configured to release resources occupied by the port to be released.
  • the ninth sending unit includes:
  • an address management server including:
  • a sixth receiving unit configured to receive a query message of the session management device, where the query address list includes a record of the second address information, the second port information, and the identifier information of the terminal device carried by the query message;
  • a first returning unit configured to return an address conflict error response message to the session management apparatus, if the identifier information of the terminal device corresponding to the record is inconsistent with the identifier information of the terminal device, to enable the session management apparatus Sending the address conflict error response message to the terminal device;
  • the adding unit configured to: if the record does not include the identifier information of the terminal device, add the identifier information of the terminal device in the record of the address list;
  • a server including:
  • a seventh receiving unit configured to receive a session management request sent by the session management apparatus, where the session management request includes identifier information and port information of the terminal device;
  • a generating unit configured to generate a session management policy according to the terminal device identification information and port information; and send the session management device to the session management device.
  • the session management policy includes a quality of service and/or a charging policy.
  • a session management device including: an input device, an output device, a memory, and a processor, wherein the memory stores a set of program codes, and the processor is configured to invoke the The program code stored in the memory to perform the following operations:
  • the session request of the terminal device When the session request of the terminal device is received, determining the type of the terminal device and/or the port according to the identifier information, the address information, and the port information of the terminal device that are carried in the session request; Sending a session management request to the server according to the type of the terminal device and/or the port, where the session management request includes identifier information and port information of the terminal device;
  • the receiving, by the terminal device, the session request includes: detecting a 5-tuple data packet; or
  • the terminal when the processor performs the detecting a five-tuple data packet, the terminal that is carried according to the session request.
  • the step of determining the type of the terminal device and/or the port by using the identification information, the address information, and the port information of the device including:
  • the type of the terminal device and/or port is determined according to the result of the query.
  • a third possible implementation manner after the processor performs the step of receiving an address matching request of the terminal device, and the processor performs the Before the step of determining the type of the terminal device and/or the port according to the identification information, the address information, and the port information of the terminal device carried by the session request, performing the following steps: if the address matches the source address of the request If the value of the IPP client address in the address matching request is inconsistent, the source address of the address matching request is modified to the value in the PCP client address field, and the address matching request is sent. Give the PCP server.
  • a fourth possible implementation manner when the processor performs the address matching request of the terminal device, the step of determining the type of the terminal device and/or the port by using the identifier information, the address information, and the port information of the terminal device that are carried in the session request, including:
  • the type of the terminal device and/or port is determined according to the result of the query.
  • the processor performs the querying, by the PCP server, the second address information and the second end of the terminal device
  • the step of the first address information and the first port information corresponding to the port information includes:
  • the terminal device identification information corresponding to the record is inconsistent with the identifier information of the terminal device, receiving an address conflict error response message returned by the PCP server, and sending the address conflict error response message to the terminal device;
  • the processor performs the determining, according to the query result, the terminal device and/or the port The types of steps, including:
  • the determination result is no, determining that the terminal device is the terminal device of the first type; if the determination result is yes, further determining whether there is a record corresponding to the second port information in the query result in the local buffer area ;
  • the terminal device is a terminal device of the second type and the port is a port of the first type.
  • the processor performs the step of sending a session management request to a server according to the type of the terminal device and/or the port, Includes:
  • the session establishment request is sent to the server, where the session establishment request includes the identification information and the port information of the terminal device;
  • the terminal device and the port are the first type of port, and then send a session modification request to the server, where the session modification request includes the identification information and the port information of the terminal device.
  • the processor is configured to send the session management to the server according to the type of the terminal device and/or the port
  • the requested steps including:
  • the session modification request is sent to the server, where the session modification request includes the Identification information and port information of the terminal device.
  • the processor further performs the following steps:
  • the step of the processor performing the sending a session management request to the server includes:
  • a session management server including: an input device, an output device, a memory, and a processor, wherein the memory stores a set of program codes, and the processor is configured to invoke the The program code stored in the memory to perform the following operations:
  • the query address list includes a record of the second address information, the second port information, and the identification information of the terminal device carried by the query message;
  • the session management device If the identifier information of the terminal device corresponding to the record does not match the identifier information of the terminal device, return an address conflict error response message to the session management device, so that the session management device sends the address conflict error response The message is sent to the terminal device;
  • a server comprising: an input device, an output device, a memory, and a processor, wherein the memory stores a set of program codes, and the processor is configured to invoke the storage in the memory Program code for doing the following:
  • the session management policy includes quality of service and/or charging.
  • the server may be requested to set and deliver a corresponding session management policy for the terminal device according to the type of the terminal device and/or the port, according to the session.
  • Management strategy for session management perfecting the session management process.
  • FIG. 1 is a flowchart of a method of an embodiment of a session management method according to the present invention
  • FIG. 2 is a flowchart of a method for another embodiment of a session management method according to the present invention
  • FIG. 3 is a flowchart of a method for still another embodiment of a session management method according to the present invention
  • FIG. 5 is a flowchart of a method for a session management method according to another embodiment of the present invention
  • FIG. 6 is a schematic structural diagram of an embodiment of a session management apparatus according to the present invention.
  • FIG. 7 is a schematic structural diagram of another embodiment of a session management apparatus according to the present invention
  • FIG. 8 is a schematic structural diagram of still another embodiment of a session management apparatus according to the present invention
  • 9 is a schematic structural diagram of an embodiment of an address management server according to the present invention.
  • FIG. 10 is a schematic structural diagram of an embodiment of a server according to the present invention.
  • FIG. 11 is a schematic structural diagram of an embodiment of a session management device according to an embodiment of the present invention
  • FIG. 12 is a schematic structural diagram of an embodiment of a session management server according to the present invention
  • FIG. 1 is a flowchart of a method of an embodiment of a session management method according to the present invention. As shown in Figure 1, the method includes the following steps:
  • Step S101 When receiving the session request of the terminal device, determine the type of the terminal device and/or the port according to the identification information, the address information, and the port information of the terminal device that are carried in the session request.
  • the session request of the terminal device is uniformly managed.
  • the session request received by the terminal device may be that a 5-tuple packet is detected, or an address matching request of the terminal device is received.
  • the session request carries the address information and port information of the terminal device, and may also carry the identification information of the terminal device.
  • the identification information of the terminal device can uniquely identify the terminal device; the address information of the terminal device includes a pre-NAPT address or an address after the NAPT, that is, a local IP address or a WAN IP address, and the terminal device has a unique local IP address, and all the RGs are connected.
  • the terminal device shares a WAN IP address; the port information of the terminal device includes the pre-NAPT port information or the port information after the NAPT.
  • the session request sent from the terminal device may be initiated by the newly accessed terminal device, or may be initiated by a new port of the connected terminal device, and can be determined according to the identification information, the address information, and the port information of the terminal device.
  • the type of the terminal device is a newly connected terminal device, or the type of the terminal device is determined to be a connected terminal device, and the type of the port is a new port.
  • Step S102 Send a session management request to the server according to the type of the terminal device and/or the port, where the session management request includes identifier information and port information of the terminal device.
  • the session management request includes identifier information and port information of the terminal device.
  • the requesting server sets a session management policy for the terminal device, and therefore, according to the type of the terminal device and/or the port,
  • the server sends a session management request, and the session management request carries identification information and port information of the terminal device.
  • Step S103 Receive a session management response message sent by the server, and perform session management on the terminal device according to a session management policy included in the session management response message.
  • session management response message is a response of the server to the session management request, specifically, setting a corresponding session management policy for the terminal device corresponding to the identification information of the terminal device, where the session management policy is included in
  • session management is performed on the terminal device according to the session management policy.
  • the server may be configured to send and deliver a corresponding session management policy for the terminal device according to the type of the terminal device and/or the port, and the session management is performed according to the session management policy. Session management process.
  • FIG. 2 is a flow chart of a method of another embodiment of a session management method according to the present invention. As shown in Figure 2, the method includes the following steps:
  • Step S201 When detecting a quintuple data packet, query the PCP server for the first address information of the terminal device, the second address information and the second port information corresponding to the first port information, and the identifier information of the terminal device. .
  • the quintuple is a collection consisting of a source IP address, a source port, a destination IP address, a destination port, and a transport layer protocol number.
  • session management is performed by a fixed network edge data gateway (IP Edge), and IP Edge detects a new quintuple.
  • IP Edge IP edge data gateway
  • the port control protocol (PCP) server uniformly manages the identification information, the address information, and the port information of the accessed terminal device. 4 According to the identification information of the terminal device, the first device/device is stored correspondingly. The mapping relationship between the second address information and the first/second port information. When the identification information of the terminal device is empty, the terminal device is a newly accessed terminal device, and the PCP MAP message has not been sent to register the identification information of the terminal device.
  • the first address information and the first port information respectively correspond to the address information and the port information after the NAPT, that is, the IP WAN address information and the WAN port information; the second address information and the second port information respectively correspond to the address information and the port before the NAPT.
  • the address and port information before the NAPT can be queried through the address and port information after the NAPT, and the terminal device Identification information.
  • the IP Edge sends a "PCP Query" request message to the PCP server, which carries the IP WAN address and the WAN source port in the quintuple packet, and the PCP server queries the WAN IP address and WAN source port carried in the session request.
  • the record in the corresponding address list returns a "PCP Query" response message to the IP Edge, and the queried record includes the identification information of the terminal device, the WAN IP address, the local IP address, the WAN source port, and the LAN source port.
  • Step S202 Determine whether there is a record corresponding to the identification information of the terminal device in the query result in the local buffer area. If no, go to step S203; otherwise, go to step S204.
  • Step S203 Determine that the terminal device is a terminal device of a first type.
  • Step S204 determining whether there is a record corresponding to the second port information in the query result in the local buffer area, and if yes, proceeding to step S205; otherwise, proceeding to step S206.
  • Step S205 ending.
  • Step S206 determining that the terminal device is a second type of terminal device and the port is a first type of port.
  • Step S207 Send a session establishment request to the server, where the session establishment request includes identifier information and port information of the terminal device.
  • Step S208 Send a session modification request to the server, where the session modification request includes the identifier information and the port information of the terminal device.
  • Step S209 Receive a session management response message sent by the server, and perform session management on the terminal device according to a session management policy included in the session management response message.
  • IP Edge Before IP Edge processes a service request, it stores the identification information, address information, and port information of the terminal device in its cache area. However, for the new service request, the corresponding record is not stored. Therefore, according to the identification information of the terminal device. Determining whether there is a record corresponding to the identification information of the terminal device in the query result of the PCP server in the cache area, and if the result of the determination is no, determining that the terminal device is the terminal device of the first type, the terminal device of the first type If the result of the determination is yes, determining that the terminal device is the second type of terminal device, and further determining whether there is a record corresponding to the LAN source port information in the PCP server query result in the buffer area, If the result of the determination is no, it is determined that the port of the terminal device is the first type of port, that is, the second type The terminal device of the type is an accessed terminal device that initiates a session request through the new port; if the result of the determination is yes, no processing is performed.
  • the terminal device If it is determined that the terminal device is a newly connected terminal device, send a session establishment request to the server, where the session establishment request carries the identification information and the port information of the terminal device, so that the terminal device and the port information corresponding to the identifier information of the terminal device Corresponding port setting session management policy; if it is determined that the terminal device is a connected terminal device, the port that sends the session request is a new port, and then sends a session modification request to the server, where the session modification request carries the identification information and port information of the terminal device , so that the server modifies the session management policy of the terminal device, and sets a corresponding session management policy for the newly added port.
  • the server is a PCRF, and the PCRF formulates a policy or an update policy according to the identification information and port information of the terminal device, where the session management policy includes quality of service (Quality of
  • IP Edge parses the session management policy and executes the session management policy for the terminal device.
  • the session modification request is sent to the server.
  • Step S210 Receive a session request of the terminal device, where the session request includes the identifier information of the terminal device and the port information to be released.
  • Step S211 Send, to the PCP server, a request for deleting a record corresponding to the identifier information of the terminal device and the port information to be released in the address list.
  • Step S212 Send a session management request to the server, and receive a session management response message returned by the server.
  • Step S213 Release the resources occupied by the port to be released.
  • Steps S210 to S213 are session management procedures caused by the terminal device releasing the port.
  • the terminal device releases one or more ports.
  • this scenario includes a situation in which the terminal device releases one or more ports but not all ports; a scenario in which a fixed terminal does not correspond to a separate IP-CAN session
  • this scenario includes the case where the terminal device releases one or more or all ports.
  • the PCP server deletes the record corresponding to the identification information of the terminal device and the port information to be released in the address list, and then, the IP address is received.
  • the Edge sends a session management request to the server. If the terminal device releases one or more ports, the session management request is a session modification request, and the session modification request includes the identifier information of the terminal device and the port number to be released, and the receiving server returns. The session management response message of the session management policy is updated according to the port to be released. Finally, the session management device releases the resource occupied by the port to be released according to the response message, and deletes the identification information of the terminal device and the device to be released. The record corresponding to the port information.
  • the session management request is a session modification request, and the session modification request includes the identification information of the terminal device, the port number to be released, and the deletion flag.
  • the terminal device releases all ports.
  • the session management process caused by the terminal device releasing all the ports is different from the session management process caused by the terminal device releasing one or more ports, that is, the session management request sent to the server is a session termination request, and the requesting server terminates the terminal device. IP-CAN session.
  • the type of the terminal device and/or the port is determined according to the identification information, the address information, and the port information of the terminal device carried by the quintuple data packet, according to the terminal device and/or Or the type of the port, the requesting server generates a corresponding session management policy according to the terminal device identification information and the port information, performs session management on the terminal device according to the session management policy, and completes the session management process.
  • FIG. 3 is a flowchart of a method of still another embodiment of a session management method according to the present invention. As shown in Figure 3, the method includes the following steps:
  • Step S301 Receive an address matching request of the terminal device.
  • Step S302 Determine whether the source address of the address matching request is consistent with the value of the PCP client address field in the address matching request, and if yes, go to step S304; otherwise, go to step S303.
  • Step S303 Change the source address of the address matching request to a value in the PCP client address field, and send the address matching request to the PCP server.
  • Step S304 sending a query message to the PCP server, so that the PCP server queries the record including the second address information and the second port information in the address list, and determines the terminal device identification information corresponding to the record and the Whether the identification information of the terminal device is consistent.
  • Step S305 if the terminal device identification information corresponding to the record is related to the terminal device If the identifier information is inconsistent, the PCP server receives the address conflict error response message, and sends the address conflict error response message to the terminal device.
  • Step S306 if the record does not include the identifier information of the terminal device, receive the first address information and the first port information corresponding to the second address information and the second port information sent by the PCP server, and the terminal identifier. information.
  • Steps S301 to S306 are processes for performing address matching on the terminal device.
  • the address matching request of the terminal device is received, and the address matching request is sent to the PCP server for address matching.
  • the session management of the terminal device is performed by using the IP Edge as an example.
  • the PCP server can be configured with the IP Edge or can be separately configured.
  • the RG allocates a local IP address to the accessed 3GPP mobile terminal or fixed terminal.
  • the same fixed network data gateway is connected to multiple RGs, if these RGs all work in address translation.
  • terminal devices connected to different RGs may be assigned the same local IP address.
  • the fixed network data gateway cannot distinguish the terminals connected to different RGs only by the local IP address and port number. The device, therefore, the assigned local IP address needs to be address-matched by the PCP server to ensure that it does not conflict with the local IP address of other terminal devices.
  • the IP Edge sends a "PCP MAP" request message to the PCP server, which carries the identification information of the terminal device, including one or more of the terminal identifier and the device identifier of the terminal.
  • the request message is forwarded by the RG, and the RG can add the RG identifier, and the address information and the port information of the terminal device.
  • the terminal device can have multiple ports, and the port information includes the identifier information of the multiple ports. If other Universal Plug and Play (UPnP) protocols are used between the terminal device and the RG, the interaction message between the UE and the RG will be replaced with the corresponding UPnP protocol interaction message.
  • UDPnP Universal Plug and Play
  • the PCP server receives and stores the address information and port information of the terminal device before and after the NAPT corresponding to the RG, and forms a NAPT mapping table, that is, stores the first/second address information of the terminal device, The mapping relationship between the first/second port information.
  • the identifier information of the terminal device is empty, the terminal device is a newly accessed terminal device, and the PCP MAP message has not been sent to register the identifier information of the terminal device.
  • the first address information and the first port information respectively correspond to the address information and the port information after the NAPT, that is, the IP WAN address information and the WAN port information; the second address information and the second port information respectively correspond to the address information and the port before the NAPT.
  • Information ie this IP address information and local area network (LAN) source port information.
  • the PCP server After receiving the "PCP MAP" request message, the PCP server queries the NAPT mapping table stored in the request, and finds the record containing the local IP address in the request message and the port information before the NAPT, and determines the identification information and the request message corresponding to the record. If the identification information of the terminal device is inconsistent, the address conflict error response message sent by the PCP server is received and forwarded to the terminal device; if the record does not include the identification information of the terminal device, the PCP server fills in the identification information of the terminal device. In the record. After the address matching is successful, the first address information sent by the PCP server and the second address information and the second port information corresponding to the first port information, and the identified identification information of the terminal device are received.
  • the PCP server before sending the query message to the PCP server, if the source IP address of the "PCP MAP" request message does not match the value of the PCP Client's IP Address field in the request message, The PCP server does not return an address conflict error message, but knows that the request message has passed the NAT through the inconsistency of the two addresses, queries according to the value of the parameter PCP Client's IP Address field in the message, and sends an address matching request to the PCP server.
  • Step S307 it is determined whether there is a record corresponding to the identification information of the terminal device in the query result in the local buffer area, and if yes, go to step S308; otherwise, go to step S309.
  • Step S308 determining that the terminal device is a terminal device of a first type.
  • Step S309 it is determined whether there is a record corresponding to the second port information in the query result in the local buffer area, and if yes, the process goes to step S310, and ends; otherwise, the process goes to step S311.
  • Step S310 ending.
  • Step S311 Determine that the terminal device is a second type of terminal device, and the port is a first type of port.
  • Step S312 Send a session establishment request to the server, where the session establishment request includes the terminal device identification information and port information.
  • Step S313 Send a session modification request to the server, where the session modification request includes the terminal device identification information and port information.
  • Step S314 Receive a session management response message sent by the server, and perform session management on the terminal device according to the session management policy included in the session management response message.
  • the IP Edge After receiving the second address information and the first port information and the first port information corresponding to the second port information and the identification information of the terminal device, the IP Edge receives the received address information and port information and the IP Edge local.
  • the address information in the buffer area is compared with the port information, and the type of the terminal device and/or the port is determined, so that the session management request is sent to the server according to the determined type of the terminal device and/or the port, and the session management sent by the receiving server is received.
  • the policy is to perform the session management on the terminal device.
  • the process of performing the session management in the step S307 to the step S314 is the same as or similar to the step S202 to the step S209 in the foregoing embodiment, and details are not described herein again.
  • a session management method in the address matching process, determining the type of the terminal device and/or the port according to the identification information, the address information, and the port information of the terminal device after the obtained address is successfully matched, according to The type of the terminal device and/or the port, the requesting server generates a corresponding session management policy according to the terminal device identification information and the port information, performs session management on the terminal device according to the session management policy, and completes the session management process; and simultaneously performs address matching. , you can avoid address conflicts.
  • FIG. 4 is a flow chart of a method of an embodiment of an address management method according to the present invention. As shown in Figure 4, the method includes the following steps:
  • Step S401 Receive a query message of the session management apparatus, where the query address list includes a record of the second address information, the second port information, and the identifier information of the terminal device carried by the query message.
  • Step S402 if the identifier information of the terminal device corresponding to the record does not match the identifier information of the terminal device, return an address conflict error response message to the session management device, so that the session management device sets the address. A conflict error response message is sent to the terminal device.
  • Step S403 If the record does not include the identification information of the terminal device, add the identification information of the terminal device to the record of the address list, and return the record to the session management device.
  • Step S401 to step S403 are processes for performing address management on the PCP server.
  • the session management device sends a "PCP MAP" request message to the PCP server, where the identification information of the terminal device is included, including one or more of the terminal identifier and the device identifier of the terminal.
  • the request message is forwarded by the RG, and the RG can add the RG identifier, and the address information and the port information of the terminal device.
  • the terminal device can have multiple ports, and the port information includes the identifier information of the multiple ports. If other Universal Plug and Play (UPnP) protocols are used between the terminal device and the RG, the interaction message between the UE and the RG is replaced with the corresponding UPnP. The interactive message of the protocol.
  • UUPnP Universal Plug and Play
  • the PCP server receives and stores the address information and port information of the terminal device before and after the NAPT corresponding to the RG, and forms a NAPT mapping table, that is, stores the first/second address information of the terminal device, The mapping relationship between the first/second port information.
  • the identification information of the terminal device is empty, the terminal device is a newly accessed terminal device, and the PCP MAP message has not been sent to register the identification information of the terminal device.
  • the first address information and the first port information respectively correspond to the address information and the port information after the NAPT, that is, the IP WAN address information and the WAN port information; the second address information and the second port information respectively correspond to the address information and the port before the NAPT.
  • Information that is, local IP address information and local area network (LAN) source port information.
  • the PCP server After receiving the "PCP MAP" request message, the PCP server queries the NAPT mapping table stored in the request, and finds the record containing the local IP address in the request message and the port information before the NAPT, and determines the identification information and the request message corresponding to the record. If the identification information of the terminal device is inconsistent, the address conflict error response message sent by the PCP server is received and forwarded to the terminal device; if the record does not include the identification information of the terminal device, the PCP server fills in the identification information of the terminal device. In the record. After the address matching is successful, the first address information sent by the PCP server and the second address information and the second port information corresponding to the first port information, and the identified identification information of the terminal device are received.
  • the local IP address and the local port conflict between the terminal devices can be avoided through the address matching process.
  • FIG. 5 is a flowchart of a method of still another embodiment of a session management method according to the present invention. As shown in Figure 5, the method includes the following steps:
  • Step S501 Receive a session management request sent by the session management apparatus, where the session management request includes identifier information and port information of the terminal device.
  • Step S502 Generate a session management policy according to the terminal device identification information and port information, and send a session management response message including the session management policy to the session management device.
  • the server receives the session management request sent by the session management device, where the session management request includes the identification information of the terminal device, and may further include port information.
  • the identification information of the terminal device can uniquely identify the terminal device; a terminal device may have multiple ports, and the port information may include identification information of multiple ports.
  • the terminal device corresponding to the session management request may be any terminal device, which may be a new terminal.
  • the device, or the terminal device corresponding to the session management request may be a connected terminal device, but the port may be a new port, and the server needs to generate a session management policy according to the identification information of the terminal device and possibly the port information.
  • the session management policy is sent to the session management device, so that the session management device manages the session request according to the session management policy.
  • the session management request includes a session establishment request and a session modification request.
  • the session management device sends a session establishment request to the server, and the server sets a new session management policy for the new terminal device according to the identification information and port information of the terminal device, and uses the session management response message to configure the session management policy.
  • the session management device sends a session modification request to the server to the server, and the server queries the corresponding session management policy of the terminal device according to the identification information of the terminal device, modifies the session management policy, and expands the session management policy.
  • the session management policy corresponding to the new port sends the session management policy to the session management device through the session management response message.
  • the server can be a PCRF.
  • the session management policy includes quality of service and may also include a charging policy.
  • the PCRF When receiving the session management request of the session management device, if the session management request is a session modification request, indicating that the corresponding port is deleted, or the session management request is a session termination request, the PCRF deletes the corresponding resources of the ports, and adjusts the session. Management strategy.
  • the server receives a request sent by the session management apparatus to set a session management policy for a new terminal device or a new port of the connected terminal device, and sets a session management policy for the terminal device.
  • the session management device that receives the session management policy can perform session management on the terminal device according to the session management policy, and completes the session management process.
  • FIG. 6 is a schematic structural diagram of an embodiment of a session management apparatus according to the present invention. As shown in Figure 6, the device 1000 includes:
  • the first determining unit 101 is configured to determine, according to the identifier information, the address information, and the port information of the terminal device that is carried by the session request, the type of the terminal device and/or the port.
  • the session request of the terminal device is uniformly managed.
  • the session request received by the terminal device may be detecting a 5-tuple data packet or receiving an address matching request of the terminal device.
  • the session request carries the address information and the port information of the terminal device, and may also carry the identification information of the terminal device.
  • the identification information of the terminal device can uniquely identify the terminal device; the address information of the terminal device includes
  • the NAPT pre-address or the post-NAPT address that is, the local IP address or the WAN IP address
  • the terminal device has a unique local IP address, and all terminal devices connected to one RG share a WAN IP address;
  • the terminal device port information includes the NAPT pre-port information. Or port information after NAPT.
  • the session request sent from the terminal device may be initiated by the newly accessed terminal device, or may be initiated by a new port of the connected terminal device, and can be determined according to the identification information, the address information, and the port information of the terminal device.
  • the type of the terminal device is a newly connected terminal device, or the type of the terminal device is determined to be a connected terminal device, and the type of the port is a new port.
  • the first sending unit 102 is configured to send a session management request to the server according to the type of the terminal device and/or the port, where the session management request includes the identifier information of the terminal device and the port information for the terminal device and/or the port.
  • the type is a newly accessed terminal device or a new port of the connected terminal device, and the requesting server sets a session management policy for the terminal device, and therefore, sends a session management request to the server according to the type of the terminal device and/or the port,
  • the session management request carries the identification information and port information of the terminal device.
  • the first receiving unit 103 is configured to receive a session management response message sent by the server.
  • the first management unit 104 is configured to perform session management on the terminal device according to the session management policy included in the session management response message.
  • session management response message is a response of the server to the session management request, specifically, setting a corresponding session management policy for the terminal device corresponding to the identification information of the terminal device, where the session management policy is included in
  • session management is performed on the terminal device according to the session management policy.
  • a session management apparatus may be configured to request and send a corresponding session management policy for the terminal device according to the type of the terminal device and/or the port, and perform session management according to the session management policy. Session management process.
  • FIG. 7 is a schematic structural diagram of another embodiment of a session management apparatus according to the present invention. As shown in Figure 7, the device 2000 includes:
  • the first query unit 201 is configured to query the PCP server for the first address information of the terminal device and the second address information and the second port information corresponding to the first port information, and the Identification information of the terminal device.
  • a quintuple packet is detected.
  • the quintuple is a collection consisting of a source IP address, a source port, a destination IP address, a destination port, and a transport layer protocol number. For example, by a fixed network edge data gateway (IP
  • IP Edge For session management, IP Edge detects a new quintuple.
  • the port control protocol (PCP) server uniformly manages the identification information, the address information, and the port information of the accessed terminal device. 4 According to the identification information of the terminal device, the first device/device is stored correspondingly. The mapping relationship between the second address information and the first/second port information. When the identification information of the terminal device is empty, the terminal device is a newly accessed terminal device, and the PCP MAP message has not been sent to register the identification information of the terminal device.
  • the first address information and the first port information respectively correspond to the address information and the port information after the NAPT, that is, the IP WAN address information and the WAN port information; the second address information and the second port information respectively correspond to the address information and the port before the NAPT.
  • Information that is, local IP address information and local area network (LAN) source port information.
  • the address and port information before the NAPT can be queried through the address and port information after the NAPT, and the terminal device Identification information.
  • the IP Edge sends a "PCP Query" request message to the PCP server, which carries the IP WAN address and the WAN source port in the quintuple packet, and the PCP server queries the WAN IP address and WAN source port carried in the session request.
  • the record in the corresponding address list returns a "PCP Query" response message to the IP Edge, and the queried record includes the identification information of the terminal device, the WAN IP address, the local IP address, the WAN source port, and the LAN source port.
  • the second determining unit 202 is configured to determine the type of the terminal device and/or the port according to the query result.
  • the second determining unit 202 includes: a first determining unit 2021, a third determining unit 2022, a second determining unit 2023, and a fourth determining unit 2024.
  • the first determining unit 2021 is configured to determine whether a record corresponding to the identification information of the terminal device in the query result exists in the local buffer area.
  • the third determining unit 2022 is configured to determine that the terminal device is the first type of terminal device if the determination result is no.
  • the second determining unit 2023 is configured to determine, if the determination result of the first determining unit is yes, whether the local cache area has a corresponding information corresponding to the second port information in the query result. Record.
  • the fourth determining unit 2024 is configured to: if the determining result of the second determining unit is negative, determine that the terminal device is a terminal device of a second type, and the port is a port of a first type.
  • the fifth sending unit 203 is configured to send a session establishment request to the server if the terminal device is determined to be the terminal device of the first type, where the session establishment request includes the identifier information and the port information of the terminal device.
  • a sixth sending unit 204 configured to send a session modification request to the server, if the terminal device is a second type of terminal device, and the port is a first type of port, where the session modification request includes the terminal Identification information and port information of the device.
  • a seventh sending unit 205 configured to send a session modification request to the server, if the terminal device is determined to be the first type of the terminal device, and the terminal device is determined to be the fixed terminal device according to the identifier information of the terminal device, where
  • the session modification request includes identification information and port information of the terminal device.
  • the first receiving unit 206 is configured to receive a session management response message sent by the server.
  • the first management unit 207 is configured to perform session management on the terminal device according to the session management policy included in the session management response message.
  • IP Edge Before IP Edge processes a service request, it stores the identification information, address information, and port information of the terminal device in its cache area. However, for the new service request, the corresponding record is not stored. Therefore, according to the identification information of the terminal device. Determining whether there is a record corresponding to the identification information of the terminal device in the query result of the PCP server in the cache area, and if the result of the determination is no, determining that the terminal device is the terminal device of the first type, the terminal device of the first type If the result of the determination is yes, determining that the terminal device is the second type of terminal device, and further determining whether there is a record corresponding to the LAN source port information in the PCP server query result in the buffer area, If the result of the determination is no, it is determined that the port of the terminal device is the port of the first type, that is, the terminal device of the second type is the accessed terminal device that initiates the session request through the new port; if the result of the determination is yes, Then do not process.
  • the terminal device If it is determined that the terminal device is a newly connected terminal device, send a session establishment request to the server, where the session establishment request carries the identification information and the port information of the terminal device, so that the terminal device and the port information corresponding to the identifier information of the terminal device
  • the corresponding port sets the session management policy; if it is determined that the terminal device is a connected terminal device, and the port that sends the session request is a new port, then And sending a session modification request to the server, where the session modification request carries the identification information and the port information of the terminal device, so that the server modifies the session management policy of the terminal device, and sets a corresponding session management policy for the newly added port.
  • the server is a PCRF
  • the PCRF formulates a policy or an update policy according to the identification information and the port information of the terminal device, where the session management policy includes a quality of service and/or charging information, and sends a session management response to the IP Edge.
  • Message which contains the session management policy.
  • the IP Edge parses the session management policy and executes the session management policy for the terminal device.
  • the session modification request is sent to the server.
  • the fourth receiving unit 208 is configured to receive the session request of the terminal device, where the session request includes the identifier information of the terminal device and the port information to be released.
  • the eighth sending unit 209 is configured to send, to the PCP server, a request to delete the record in the address list corresponding to the identifier information of the terminal device and the port information to be released.
  • the ninth sending unit 210 is configured to send a session management request to the server.
  • the ninth sending unit 210 may further include: a tenth transmitting unit 2101 and an eleventh transmitting unit 2102.
  • the tenth sending unit 2101 is configured to send a session termination request to the server if all the ports are to be released in the session request sent by the received terminal device;
  • the eleventh sending unit 2102 is configured to send a session modification request to the server if the part of the port is to be released in the session request sent by the received terminal device, where the session modification request includes the terminal device The identification information, the port number to be released, and the delete flag.
  • the fifth receiving unit 211 is configured to receive a response message returned by the server for session management of the port to be released.
  • the releasing unit 212 is configured to release resources occupied by the port to be released.
  • the terminal device releases one or more ports.
  • this scenario includes a situation in which the terminal device releases one or more ports but not all ports; a scenario in which a fixed terminal does not correspond to a separate IP-CAN session
  • this scenario includes the case where the terminal device releases one or more or all ports.
  • Receiving a session request sent by the terminal device, where the request message carries the identifier information of the terminal device and the port information to be released The PCP server sends a request to delete the record corresponding to the identification information of the terminal device and the port information to be released in the address list, and after receiving the request message, the PCP server deletes the identification information of the terminal device in the address list.
  • the IP Edge sends a session management request to the server.
  • the session management request is a session modification request, and the session modification request includes the terminal device.
  • the record corresponding to the identification information of the terminal device and the port information to be released in the buffer area is deleted.
  • the session management request is a session modification request, and the session modification request includes the identification information of the terminal device, the port number to be released, and the deletion flag.
  • the terminal device releases all ports.
  • the session management process caused by the terminal device releasing all the ports is different from the session management process caused by the terminal device releasing one or more ports, that is, the session management request sent to the server is a session termination request, and the requesting server terminates the terminal device. IP-CAN session.
  • a session management apparatus determines a type of a terminal device and/or a port according to the identification information, the address information, and the port information of the terminal device carried by the quintuple data packet, according to the terminal device and/or Or the type of the port, the requesting server generates a corresponding session management policy according to the terminal device identification information and the port information, performs session management on the terminal device according to the session management policy, and completes the session management process.
  • FIG. 8 is a schematic structural diagram of still another embodiment of a session management apparatus according to the present invention. As shown in Figure 8, the apparatus 3000 includes:
  • the modifying unit 301 is configured to: when receiving the address matching request of the terminal device, if the source address of the address matching request is inconsistent with the value of the PCP client address field in the address matching request, the address matching request is The source address is modified to the value in the PCP client address field; the second sending unit 302 is configured to send the address matching request to the PCP server.
  • the second query unit 303 is configured to query the PCP server for the first address information and the first port information corresponding to the second address information and the second port information of the terminal device, and the identifier information of the terminal device.
  • the second query unit 303 includes: a third sending unit 3011, a second receiving unit 3012, a fourth transmitting unit 3013, and a third receiving unit 3014.
  • the third sending unit 3011 is configured to send a query message to the PCP server, so that the PCP server queries the record that includes the second address information and the second port information in the address list, and determines the terminal device corresponding to the record. Whether the identification information is consistent with the identification information of the terminal device.
  • the second receiving unit 3012 is configured to receive an address conflict error response message returned by the PCP server if the terminal device identification information corresponding to the record is inconsistent with the identification information of the terminal device.
  • the fourth sending unit 3013 is configured to send the address conflict error response message to the terminal device.
  • the third receiving unit 3014 is configured to: if the record does not include the identifier information of the terminal device, receive the first address information and the first port corresponding to the second address information and the second port information sent by the PCP server Information, and identification information of the terminal device.
  • the second query unit 303 performs address matching on the terminal device.
  • the address matching request of the terminal device is received, and the address matching request is sent to the PCP server for address matching.
  • the session management of the terminal device is performed by using the IP Edge as an example.
  • the PCP server can be configured with the IP Edge or can be separately configured.
  • the RG allocates a local IP address to the accessed 3GPP mobile terminal or fixed terminal.
  • the same fixed network data gateway is connected to multiple RGs, if these RGs all work in address translation.
  • terminal devices connected to different RGs may be assigned the same local IP address.
  • the fixed network data gateway cannot distinguish the terminals connected to different RGs only by the local IP address and port number. The device, therefore, the assigned local IP address needs to be address-matched by the PCP server to ensure that it does not conflict with the local IP address of other terminal devices.
  • the IP Edge sends a "PCP MAP" request message to the PCP server, which carries the identification information of the terminal device, including one or more of the terminal identifier and the device identifier of the terminal.
  • the request message is forwarded by the RG, and the RG can add the RG identifier, and the address information and the port information of the terminal device.
  • the terminal device can have multiple ports, and the port information includes the identifier information of the multiple ports. If other Universal Plug and Play (UPnP) protocols are used between the terminal device and the RG, the interaction message between the UE and the RG will be replaced with the corresponding UPnP protocol interaction message.
  • UDPnP Universal Plug and Play
  • the PCP server When the PCP server accesses any terminal device, it receives and stores the end of the corresponding RG transmission.
  • the address information and the port information of the terminal device before and after the NAPT form a NAPT mapping table, that is, the mapping relationship between the first/second address information and the first/second port information of the terminal device is stored.
  • the identifier information of the terminal device When the identifier information of the terminal device is empty, the terminal device is a newly accessed terminal device, and the PCP MAP message has not been sent to register the identifier information of the terminal device.
  • the first address information and the first port information respectively correspond to the address information and the port information after the NAPT, that is, the IP WAN address information and the WAN port information; the second address information and the second port information respectively correspond to the address information and the port before the NAPT.
  • Information that is, local IP address information and local area network (LAN) source port information.
  • the PCP server After receiving the "PCP MAP" request message, the PCP server queries the NAPT mapping table stored in the request, and finds the record containing the local IP address in the request message and the port information before the NAPT, and determines the identification information and the request message corresponding to the record. If the identification information of the terminal device is inconsistent, the address conflict error response message sent by the PCP server is received and forwarded to the terminal device; if the record does not include the identification information of the terminal device, the PCP server fills in the identification information of the terminal device. In the record. After the address matching is successful, the first address information sent by the PCP server and the second address information and the second port information corresponding to the first port information, and the identified identification information of the terminal device are received.
  • the PCP server before sending the query message to the PCP server, if the source IP address of the "PCP MAP" request message does not match the value of the PCP Client's IP Address field in the request message, The PCP server does not return an address conflict error message, but knows that the request message has passed the NAT through the inconsistency of the two addresses, queries according to the value of the parameter PCP Client's IP Address field in the message, and sends an address matching request to the PCP server.
  • the second determining unit 304 is configured to determine the type of the terminal device and/or the port according to the query result.
  • the second determining unit 304 is configured to determine the type of the terminal device and/or the port according to the query result.
  • the second determining unit 304 includes: a first determining unit 3041, a third determining unit 3042, a second determining unit 3043, and a fourth determining unit 3044.
  • the first determining unit 3041 is configured to determine whether a record corresponding to the identification information of the terminal device in the query result exists in the local buffer area.
  • a third determining unit 3042 configured to determine, if the determination result is no, the terminal device is the first A type of terminal device.
  • the second determining unit 3043 is configured to further determine, if the determination result of the first determining unit is YES, a record corresponding to the second port information in the query result in the local buffer area.
  • the fourth determining unit 3044 is configured to determine, if the determining result of the second determining unit is negative, that the terminal device is a terminal device of a second type, and that the port is a port of a first type.
  • the fifth sending unit 305 is configured to send a session establishment request to the server if the terminal device is determined to be the terminal device of the first type, where the session establishment request includes the identifier information and the port information of the terminal device.
  • a sixth sending unit 306, configured to send a session modification request to the server, if the terminal device is a second type of terminal device, and the port is a first type of port, where the session modification request includes the terminal Identification information and port information of the device.
  • a seventh sending unit 307 configured to send a session modification request to the server, if the terminal device is determined to be the terminal device of the first type, and the terminal device is determined to be the fixed terminal device according to the identifier information of the terminal device, where
  • the session modification request includes identification information and port information of the terminal device.
  • the first receiving unit 308 is configured to receive a session management response message sent by the server.
  • the first management unit 309 is configured to perform session management on the terminal device according to the session management policy included in the session management response message.
  • the IP Edge After receiving the second address information and the first port information and the first port information corresponding to the second port information and the identification information of the terminal device, the IP Edge receives the received address information and port information and the IP Edge local.
  • the address information in the buffer area is compared with the port information, and the type of the terminal device and/or the port is determined, so that the session management request is sent to the server according to the determined type of the terminal device and/or the port, and the session management sent by the receiving server is received.
  • the policy is to perform the session management on the terminal device.
  • the process of performing the session management in the step S307 to the step S314 is the same as or similar to the step S202 to the step S209 in the foregoing embodiment, and details are not described herein again.
  • a session management apparatus determines the type of the terminal device and/or the port according to the identification information, the address information, and the port information of the terminal device after the address matching succeeds in the address matching process, according to the type of the terminal device and/or the port.
  • the type of the terminal device and/or the port, the requesting server generates a corresponding session management policy according to the terminal device identification information and the port information, according to the session management policy
  • the terminal device performs session management, which improves the session management process. At the same time, address matching can avoid address conflicts.
  • FIG. 9 is a schematic structural diagram of an embodiment of an address management server according to the present invention. As shown in FIG. 9, the address management server 4000 includes:
  • the sixth receiving unit 401 is configured to receive a query message of the session management apparatus, where the query address list includes a record of the second address information, the second port information, and the identifier information of the terminal device carried by the query message.
  • the first returning unit 402 is configured to: if the identifier information of the terminal device corresponding to the record is inconsistent with the identifier information of the terminal device, return an address conflict error response message to the session management apparatus, so that the session management is performed.
  • the device sends the address conflict error response message to the terminal device.
  • the adding unit 403 is configured to add the identifier information of the terminal device to the record of the address list if the record does not include the identifier information of the terminal device.
  • the second returning unit 404 is configured to return the record to the session management device.
  • the session management server may be a PCP server.
  • the session management device sends a "PCP MAP" request message to the PCP server, where the identification information of the terminal device is included, including one or more of the terminal identifier and the device identifier of the terminal.
  • the request message is forwarded by the RG, and the RG can add the RG identifier, and the address information and the port information of the terminal device.
  • the terminal device can have multiple ports, and the port information includes the identifier information of the multiple ports. If other Universal Plug and Play (UPnP) protocols are used between the terminal device and the RG, the interaction message between the UE and the RG will be replaced with the interactive message of the corresponding UPnP protocol.
  • UDPnP Universal Plug and Play
  • the PCP server receives and stores the address information and port information of the terminal device before and after the NAPT corresponding to the RG, and forms a NAPT mapping table, that is, stores the first/second address information of the terminal device, The mapping relationship between the first/second port information.
  • the identification information of the terminal device is empty, the terminal device is a newly accessed terminal device, and the PCP MAP message has not been sent to register the identification information of the terminal device.
  • the first address information and the first port information respectively correspond to the address information and the port information after the NAPT, that is, the IP WAN address information and the WAN port information; the second address information and the second port information respectively correspond to the address information and the port before the NAPT.
  • Information that is, local IP address information and local area network (LAN) source port information.
  • the PCP server After receiving the "PCP MAP" request message, the PCP server queries the NAPT map stored by itself. If the identification information corresponding to the local IP address in the request message and the port information before the NAPT is found, and the identification information corresponding to the record is inconsistent with the identification information of the terminal device in the request message, the address conflict sent by the PCP server is received. The error response message is forwarded to the terminal device; if the record does not include the identification information of the terminal device, the PCP server fills in the identification information of the terminal device in the record. After the address matching is successful, the first address information sent by the PCP server and the second address information and the second port information corresponding to the first port information, and the determined identification information of the terminal device are received.
  • An address management server can avoid a conflict between a local IP address and a local port between terminal devices by using the address matching process.
  • FIG. 10 is a schematic structural diagram of an embodiment of a server according to the present invention. As shown in FIG. 10, the server 5000 includes:
  • the seventh receiving unit 501 is configured to receive a session management request sent by the session management apparatus, where the session management request includes identifier information and port information of the terminal device.
  • the generating unit 502 is configured to generate a session management policy according to the terminal device identification information and the port information. Sended to the session management device.
  • the server receives the session management request sent by the session management device, where the session management request includes the identification information of the terminal device, and may further include port information.
  • the identification information of the terminal device can uniquely identify the terminal device; a terminal device may have multiple ports, and the port information may include identification information of multiple ports.
  • the terminal device corresponding to the session management request may be any terminal device, which may be a new terminal device, or the terminal device corresponding to the session management request may be a connected terminal device, but the port may be a new port, and the server needs
  • a session management policy is generated according to the port information that may be included in the identification information of the terminal device.
  • the session management policy is sent to the session management device, causing the session management device to manage the session request according to the session management policy.
  • the session management request includes a session establishment request and a session modification request.
  • the session management device sends a session establishment request to the server, and the server sets a new session management policy for the new terminal device according to the identification information and port information of the terminal device, and uses the session management response message to configure the session management policy.
  • the session management device sends a session modification request to the server to the server, and the server queries the corresponding session management policy of the terminal device according to the identification information of the terminal device, modifies the session management policy, and expands the session management policy corresponding to the new port through the session.
  • the management response message sends the session management policy to the session management device.
  • the server can be a PCRF.
  • the session management policy includes quality of service and may also include a charging policy.
  • the PCRF When receiving the session management request of the session management device, if the session management request is a session modification request, indicating that the corresponding port is deleted, or the session management request is a session termination request, the PCRF deletes the corresponding resources of the ports, and adjusts the session. Management strategy.
  • a server receives a request sent by a session management apparatus to set a session management policy for a new terminal device or a new port of a connected terminal device, and sets a session management policy for the terminal device,
  • the session management apparatus that receives the session management policy can perform session management on the terminal device according to the session management policy, and completes the session management process.
  • FIG. 11 is a schematic structural diagram of an embodiment of a session management device according to the present invention. As shown in Figure 11, the device 6000 includes:
  • the input device 601, the output device 602, the memory 603, and the processor 604 (the number of the processors 604 in the session management device may be one or more, and one processor in Fig. 11 is taken as an example).
  • the input device 601, the output device 602, the memory 603, and the processor 604 may be connected by a bus or other means, wherein FIG. 11 is exemplified by a bus connection.
  • the memory 603 stores a set of program codes
  • the processor 604 is configured to call the program code stored in the memory 603 to perform the following operations:
  • the session request of the terminal device When the session request of the terminal device is received, determining the type of the terminal device and/or the port according to the identification information, the address information, and the port information of the terminal device that are carried in the session request;
  • the receiving the session request of the terminal device includes:
  • the processor 604 performs the detecting of a quintuple data packet, determining, according to the identifier information, the address information, and the port information of the terminal device that is carried by the session request, the terminal device and/or Or the type of port type, including:
  • the type of the terminal device and/or port is determined according to the result of the query.
  • the processor 604 performs the step of receiving an address matching request of the terminal device, and the processor performs the identification information, the address information, and the terminal information of the terminal device carried according to the session request. Before the steps of determining the type of the terminal device and/or port, the following steps are performed:
  • the source address of the address matching request is inconsistent with the value of the PCP client address field in the address matching request, the source address of the address matching request is modified to the value in the PCP client address field. And sending the address matching request to the PCP server.
  • the processor 604 when the processor 604 performs the address matching request of the terminal device, determining, according to the identification information, the address information, and the port information of the terminal device that is carried by the session request, the terminal device and/or Or the type of port type, including:
  • the type of the terminal device and/or port is determined according to the result of the query.
  • the processor 604 performs the step of querying the PCP server for the first address information and the first port information corresponding to the second address information and the second port information of the terminal device, including:
  • the terminal device identification information corresponding to the record is inconsistent with the identifier information of the terminal device, receiving an address conflict error response message returned by the PCP server, and sending the address conflict error response message to the terminal device;
  • Receiving the PCP server if the record does not include the identification information of the terminal device Transmitting the second address information and the first port information and the first port information corresponding to the second port information, and the identification information of the terminal device.
  • the processor 604 performs the step of determining the type of the terminal device and/or the port according to the query result, including:
  • the determination result is no, determining that the terminal device is the terminal device of the first type; if the determination result is yes, further determining whether there is a record corresponding to the second port information in the query result in the local buffer area ;
  • the terminal device is a terminal device of the second type and the port is a port of the first type.
  • the processor 604 performs the step of sending a session management request to the server according to the type of the terminal device and/or the port, including:
  • the session establishment request is sent to the server, where the session establishment request includes the identification information and the port information of the terminal device;
  • the terminal device and the port are the first type of port, and then send a session modification request to the server, where the session modification request includes the identification information and the port information of the terminal device.
  • the processor 604 performs the step of sending a session management request to the server according to the type of the terminal device and/or the port, including:
  • the session modification request is sent to the server, where the session modification request includes the Identification information and port information of the terminal device.
  • the processor 604 also performs the following steps:
  • the session request includes the identification information of the terminal device and port information to be released; and a request for recording corresponding to the port information to be released;
  • the processor 604 performs the step of sending a session management request to the server, including:
  • the session modification request is sent to the server, where the session modification request includes the identification information of the terminal device, the port number to be released, and the deletion flag.
  • a session management device may be configured to request and send a corresponding session management policy for the terminal device according to the type of the terminal device and/or the port, and perform session management according to the session management policy. Improve the session management process.
  • FIG. 12 is a schematic structural diagram of an embodiment of a session management server according to the present invention. As shown in FIG. 12, the session management server 7000 includes:
  • the input device 701, the output device 702, the memory 703, and the processor 704 (the number of processors 704 in the server may be one or more, and one processor in Fig. 12 is taken as an example).
  • the input device 701, the output device 702, the memory 703, and the processor 704 may be connected by a bus or other means, wherein the bus connection is taken as an example in FIG.
  • the memory 703 stores a set of program codes
  • the processor 704 is configured to call the program code stored in the memory 703 to perform the following operations:
  • the query address list includes a record of the second address information, the second port information, and the identification information of the terminal device carried by the query message;
  • the session management device If the identifier information of the terminal device corresponding to the record does not match the identifier information of the terminal device, return an address conflict error response message to the session management device, so that the session management device sends the address conflict error response The message is sent to the terminal device;
  • the session management server can be a PCP server.
  • the local IP address and the local port conflict between the terminal devices can be avoided through the address matching process.
  • FIG. 13 is a schematic structural diagram of an embodiment of a server provided by the present invention. As shown in Figure 13, the server 8000 includes:
  • the input device 801, the output device 802, the memory 803, and the processor 804 (the number of processors 804 in the server may be one or more, and one processor in Fig. 13 is taken as an example).
  • the input device 801, the output device 802, the memory 803, and the processor 804 may be connected by a bus or other means, wherein the bus connection is taken as an example in FIG.
  • a set of program codes is stored in the memory 803, and the processor 804 is configured to call the memory.
  • the program code stored in 803 is used to perform the following operations:
  • the session management policy includes a quality of service and/or a charging policy.
  • a server receives a request sent by a session management apparatus to set a session management policy for a new terminal device or a new port of a connected terminal device, and sets a session management policy for the terminal device,
  • the session management apparatus that receives the session management policy can perform session management on the terminal device according to the session management policy, and completes the session management process.
  • the disclosed apparatus and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the modules is only a logical function division.
  • there may be another division manner for example, multiple modules or components may be combined or Can be integrated into another device, or some features can be ignored, or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some communication interface, device or module, It can be electrical, mechanical or other form.
  • the modules described as separate components may or may not be physically separate, and may also be distributed over multiple network elements. Some or all of the modules may be selected according to actual needs to achieve the objectives of the solution of the embodiment.
  • the foregoing program may be stored in a computer readable storage medium, and the program is executed when executed.
  • the foregoing steps include the steps of the foregoing method embodiments; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.

Landscapes

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

Abstract

La présente invention concerne un procédé de gestion de sessions, un procédé de gestion d'adresses et un dispositif approprié. Ledit procédé de gestion de sessions comprend les étapes consistant à : lorsqu'une demande de session d'un dispositif terminal est reçue, selon des informations d'identification, des informations d'adresse et des informations de port relatives au dispositif terminal et transportées dans la demande de session, déterminer le type du dispositif terminal et/ou du port; selon le type du dispositif terminal et/ou du port, envoyer une demande de gestion de sessions à un serveur; et recevoir un message de réponse pour la gestion de sessions envoyé par le serveur et, selon une politique de gestion de sessions contenue dans le message de réponse pour la gestion de sessions, réaliser la gestion de sessions sur le dispositif terminal. La présente invention concerne également un procédé de gestion d'adresses et un dispositif correspondant. Ledit procédé peut consister à demander à un serveur d'établir et de publier une politique de gestion de sessions correspondante pour un dispositif terminal selon le type du dispositif terminal et/ou du port, la gestion de sessions est réalisée selon la politique de gestion de sessions, et le processus de gestion de sessions est amélioré.
PCT/CN2013/077302 2013-06-17 2013-06-17 Procédé de gestion de sessions, procédé de gestion d'adresses et dispositif approprié WO2014201600A1 (fr)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201380000539.0A CN104488240B (zh) 2013-06-17 2013-06-17 一种会话管理方法、地址管理方法及相关装置
PCT/CN2013/077302 WO2014201600A1 (fr) 2013-06-17 2013-06-17 Procédé de gestion de sessions, procédé de gestion d'adresses et dispositif approprié

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2013/077302 WO2014201600A1 (fr) 2013-06-17 2013-06-17 Procédé de gestion de sessions, procédé de gestion d'adresses et dispositif approprié

Publications (1)

Publication Number Publication Date
WO2014201600A1 true WO2014201600A1 (fr) 2014-12-24

Family

ID=52103775

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/077302 WO2014201600A1 (fr) 2013-06-17 2013-06-17 Procédé de gestion de sessions, procédé de gestion d'adresses et dispositif approprié

Country Status (2)

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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106161251A (zh) * 2016-06-14 2016-11-23 国家计算机网络与信息安全管理中心 报文安全分析方法和装置

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109121170B (zh) 2017-06-26 2021-04-20 华为技术有限公司 会话管理的方法、装置、设备及系统
CN110417840B (zh) * 2018-04-28 2020-10-09 华为技术有限公司 一种信息处理方法及装置
CN109617753B (zh) * 2019-02-26 2022-03-22 深信服科技股份有限公司 一种网络平台管理方法、系统及电子设备和存储介质
CN114866415A (zh) * 2019-04-28 2022-08-05 华为技术有限公司 一种通信方法、装置及系统
CN114500341B (zh) * 2021-12-28 2024-05-14 福建升腾资讯有限公司 广域网下的终端实时管控方法及管控服务端

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101222343A (zh) * 2008-01-30 2008-07-16 中兴通讯股份有限公司 一种策略与计费控制系统及对媒体网关的控制方法
US7600026B2 (en) * 2002-03-29 2009-10-06 Realtek Semiconductor Corp. Apparatus and method for NAT/NAPT session management
CN101729388A (zh) * 2008-10-22 2010-06-09 华为技术有限公司 一种实现网络地址转换的方法、媒体网关和网络系统
CN102387081A (zh) * 2011-11-18 2012-03-21 华为技术有限公司 一种NAT场景下通信业务QoS保障方法、装置及系统

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1870569B (zh) * 2005-05-25 2012-02-08 国际商业机器公司 网络系统及其管理方法、通信终端和报文发送方法
CN1980252A (zh) * 2005-12-06 2007-06-13 华为技术有限公司 地址冲突检测的实现方法及其地址冲突检测代理装置
FR2908001B1 (fr) * 2006-10-26 2009-04-10 Alcatel Sa Traversee d'un equipement de traduction d'adresse nat pour messages de signalisation conformes au protocole sip par redondance d'informations d'adresses.
CN101197808B (zh) * 2006-12-08 2011-04-20 上海贝尔阿尔卡特股份有限公司 一种sip网络系统中维持nat地址绑定的方法及其装置
CN101035070A (zh) * 2007-02-05 2007-09-12 华为技术有限公司 老化session后通知网络终端的方法及装置、NAT设备
CN100563174C (zh) * 2007-06-15 2009-11-25 杭州华三通信技术有限公司 一种管理动态地址设备的方法和代理装置
CN101132424B (zh) * 2007-09-29 2011-08-31 杭州华三通信技术有限公司 网络地址转换的方法及装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7600026B2 (en) * 2002-03-29 2009-10-06 Realtek Semiconductor Corp. Apparatus and method for NAT/NAPT session management
CN101222343A (zh) * 2008-01-30 2008-07-16 中兴通讯股份有限公司 一种策略与计费控制系统及对媒体网关的控制方法
CN101729388A (zh) * 2008-10-22 2010-06-09 华为技术有限公司 一种实现网络地址转换的方法、媒体网关和网络系统
CN102387081A (zh) * 2011-11-18 2012-03-21 华为技术有限公司 一种NAT场景下通信业务QoS保障方法、装置及系统

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106161251A (zh) * 2016-06-14 2016-11-23 国家计算机网络与信息安全管理中心 报文安全分析方法和装置
CN106161251B (zh) * 2016-06-14 2019-06-07 国家计算机网络与信息安全管理中心 报文安全分析方法和装置

Also Published As

Publication number Publication date
CN104488240B (zh) 2017-04-26
CN104488240A (zh) 2015-04-01

Similar Documents

Publication Publication Date Title
US20210385154A1 (en) Multipath data transmission method and device
WO2014201600A1 (fr) Procédé de gestion de sessions, procédé de gestion d'adresses et dispositif approprié
WO2016206118A1 (fr) Procédé et dispositif d'acquisition d'informations de capacité de réseau
WO2020253631A1 (fr) Procédé, dispositif et système de configuration d'adresse ip
WO2019170114A1 (fr) Procédé d'envoi d'un paquet, dispositif de réseau et support de stockage lisible par ordinateur
JP6806255B2 (ja) 仮想化宅内通信設備、ポリシー管理サーバー及びサービス提供方法
WO2009046666A1 (fr) Procédé d'adressage d'entité à fonction de décision de politique, élément de réseau et système de réseau
WO2015169044A1 (fr) Procédé, dispositif et système de liaison de sessions dans un scénario d'itinérance
WO2017107871A1 (fr) Procédé de contrôle d'accès et dispositif de réseau
WO2009000214A1 (fr) Procédé et dispositif pour configurer des données de configuration du réseau d'accès utilisateur
WO2011035667A1 (fr) Procédés et systèmes pour réaliser une itinérance interréseau, interroger et rattacher un réseau
WO2012089001A1 (fr) Procédé et dispositif d'allocation d'adresse ip
CN103299589A (zh) 通信系统、控制装置、通信方法以及程序
US20120300776A1 (en) Method for creating virtual link, communication network element, and ethernet network system
JP2008271015A (ja) ネットワークシステム、管理計算機及び利用者端末
WO2010075735A1 (fr) Procédé de gestion de flux de service, dispositif et système reposant sur une ds-lite
JP2010239591A (ja) ネットワークシステム、中継装置、およびネットワーク制御方法
JP2006245894A (ja) 転送経路制御装置および転送経路制御プログラム
WO2011044807A1 (fr) Procédé de communication et d'enregistrement de communication anonyme et système émetteur-récepteur de message de données
WO2013159591A1 (fr) Procédé et appareil de différentiation de terminaux sans fil
WO2019154017A1 (fr) Procédé et appareil d'établissement de trajets multiples
US20240098583A1 (en) PDU session continuity for a UE moving between a telecommunications network and a gateway device
WO2018058385A1 (fr) Procédé d'interconnexion de réseaux, élément de réseau et système associé
JP6330814B2 (ja) 通信システム、制御指示装置、通信制御方法及びプログラム
EP3544266B1 (fr) Pont de réseau et procédé de gestion de réseau

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13887249

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13887249

Country of ref document: EP

Kind code of ref document: A1