US20180063254A1 - Method and Apparatus for Sending, Transferring and Acquiring Capability - Google Patents

Method and Apparatus for Sending, Transferring and Acquiring Capability Download PDF

Info

Publication number
US20180063254A1
US20180063254A1 US15/561,070 US201515561070A US2018063254A1 US 20180063254 A1 US20180063254 A1 US 20180063254A1 US 201515561070 A US201515561070 A US 201515561070A US 2018063254 A1 US2018063254 A1 US 2018063254A1
Authority
US
United States
Prior art keywords
pcp
capability
server
bearer protocol
servers
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Abandoned
Application number
US15/561,070
Inventor
Wei Meng
Cui Wang
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Assigned to ZTE CORPORATION reassignment ZTE CORPORATION ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: MENG, WEI, WANG, Cui
Publication of US20180063254A1 publication Critical patent/US20180063254A1/en
Abandoned legal-status Critical Current

Links

Images

Classifications

    • 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
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • H04L43/0882Utilisation of link capacity
    • H04L61/2007
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/256NAT traversal
    • H04L61/2564NAT traversal for a higher-layer protocol, e.g. for session initiation protocol [SIP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • H04L67/1008Server selection for load balancing based on parameters of servers, e.g. available memory or workload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/30Definitions, standards or architectural aspects of layered protocol stacks
    • H04L69/32Architecture of open systems interconnection [OSI] 7-layer type protocol stacks, e.g. the interfaces between the data link level and the physical level
    • H04L69/322Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions
    • H04L69/329Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions in the application layer [OSI layer 7]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]

Definitions

  • the present disclosure relates to, but is not limited to, the field of communication.
  • NAT network address translation
  • IP Internet Protocol
  • the application of the NAT has brought a lot of problems, for example, many applications cannot traverse the NAT, and a host of the extranet cannot access a host of the intranet actively, such that many point-to-point applications are restricted.
  • Port control protocol is a critical protocol in the NAT technical scene, and its purpose is to provide a mechanism of creating mapping entries dynamically at the NATs and firewalls to forward traffic of the extranet accessing the intranet actively.
  • PCP Port control protocol
  • nodes of the NAT internal network receive the traffic of the external network, if the internal nodes have not been connected to a source end of the traffic, the traffic will be discarded at an NAT device.
  • NAT mapping entries about the traffic are established at the NAT device by using the PCP technology. When the traffic is coming, the traffic can traverse the NAT device to reach the internal receiving nodes.
  • a PCP client may acquire an IP address or IP addresses of one or more PCP servers through an option of the dynamic host configuration protocol (DHCP), including DHCPv4 and DHCPv6, or other bearer protocols.
  • DHCP dynamic host configuration protocol
  • the PCP client selects one of these PCP servers as a server matching the PCP client itself.
  • the PCP client can only acquire the IP addresses of one or more PCP servers and the PCP client cannot select a PCP server which suits the PCP client itself according to this information.
  • This document provides methods and apparatuses for sending, transferring and acquiring a capability to provide a basis for a PCP client to select a server.
  • a method for sending a capability includes:
  • PCP port control protocol
  • the PCP server capability index includes a number of PCP resources and/or a utilization rate of the PCP resources.
  • a method for transferring a capability includes:
  • the PCP server capability indices includes a number of PCP resources and/or a utilization rate of the PCP resources;
  • the bearer protocol server when the bearer protocol server receives a bearer protocol request sent by a PCP client, sending an IP address or IP addresses of the one or more PCP servers and PCP server capability information corresponding to the PCP server capability index or capability indices to the PCP client.
  • the PCP server capability information contains a capability value
  • the bearer protocol server sets a corresponding capability value or capability values according to the received one or more PCP server capability indices based on strength of a capability.
  • the PCP server capability information contains a capability value
  • the bearer protocol server uses the PCP server capability index or capability indices as the capability value or capability values.
  • the method further includes:
  • a method for acquiring a capability includes:
  • An apparatus for sending a capability, applied to a PCP server includes:
  • a monitoring module configured to monitor a PCP server capability index of the PCP server
  • a capability index sending module configured to send the PCP server capability index of the PCP server to a bearer protocol server
  • the PCP server capability index includes a number of PCP resources and/or a utilization rate of the PCP resources.
  • An apparatus for transferring a capability, applied to a bearer protocol server includes a first receiving module, a second receiving module and a bearer protocol response sending module.
  • the first receiving module is configured to receive a PCP server capability index or capability indices sent by one or more PCP servers, herein the PCP server capability index includes a number of PCP resources and/or a utilization rate of the PCP resources.
  • the second receiving module is configured to receive a bearer protocol request sent by a PCP client, and notify the bearer protocol response sending module.
  • the bearer protocol response sending module is configured to send an IP address or IP addresses of the one or more PCP servers and PCP server capability information corresponding to the PCP server capability index or capability indices to the PCP client according to a notification from the second receiving module.
  • the apparatus further includes a capability value setting module.
  • the capability value setting module is configured to set a corresponding capability value or capability values according to the received one or more PCP server capability indices, and send the corresponding capability value or capability values to the bearer protocol response sending module.
  • the PCP server capability information contains the capability value or capability values.
  • An apparatus for acquiring a capability, applied to a PCP client includes a bearer protocol request sending module, a bearer protocol response receiving module and a selection establishing module.
  • the bearer protocol request sending module is configured to send a bearer protocol request to a bearer protocol server.
  • the bearer protocol response receiving module is configured to receive an IP address or IP addresses of one or more PCP servers and corresponding PCP server capability information returned by the bearer protocol server.
  • the selection establishing module is configured to select one of the one or more PCP servers according to the PCP server capability information to establish a PCP session.
  • a computer readable storage medium has computer executable instructions stored therein, which used to implement the method described above.
  • the problem in the related technology that the PCP client cannot acquire the PCP server capabilities, thereby resulting in the defect that the PCP client cannot select a PCP server is solved by transferring the related PCP server capabilities to the PCP client, which provides an efficient basis for the PCP client to select the server.
  • FIG. 1 is a schematic diagram of an application scenario in accordance with an embodiment of the present disclosure.
  • FIG. 2 is a flow chart of a PCP server in accordance with an embodiment of the present disclosure.
  • FIG. 3 is a flow chart of a bearer protocol server in accordance with an embodiment of the present disclosure.
  • FIG. 4 is a flow chart of a PCP client in accordance with an embodiment of the present disclosure.
  • FIG. 5 is a diagram of interaction between messages of a PCP client and a bearer protocol server in accordance with an embodiment of the present disclosure.
  • FIG. 6 is a schematic diagram of a position of a PCP server capability value in a bearer protocol message in accordance with an embodiment of the present disclosure.
  • FIG. 7 is a schematic diagram of a first embodiment of the present disclosure.
  • FIG. 8 is a schematic diagram of a second embodiment of the present disclosure.
  • FIG. 9 is a schematic diagram of a third embodiment of the present disclosure.
  • FIG. 10 is a schematic diagram of a fourth embodiment of the present disclosure.
  • FIG. 11 is a block diagram of an apparatus for sending a capability in accordance with an embodiment of the present disclosure.
  • FIG. 12 is a block diagram of an apparatus for transferring a capability in accordance with an embodiment of the present disclosure.
  • FIG. 13 is a block diagram of an apparatus for acquiring a capability in accordance with an embodiment of the present disclosure.
  • Steps shown in the flow charts of the accompanying drawings may be executed such as in a computer system with a set of computer executable instructions. Moreover, although a logical order is shown in the flow chart, in some cases, the steps shown or described may be executed in an order different from the order herein.
  • a Port Control Protocol (PCP) client can acquire an IP address or a plurality of IP addresses of one or more PCP servers through an option of the DHCP protocol or other bearer protocols.
  • the PCP client selects one of these PCP servers as a server matching the PCP client itself.
  • only the one IP address or the plurality of IP addresses of one or more PCP servers can be acquired, but capabilities and priorities of these PCP servers supporting NAT cannot be acquired. In such case, the PCP client cannot select a server correctly according to the NAT capabilities.
  • an application of a certain client needs to apply for 10 NAT sessions, and at this point, there are two selectable PCP servers.
  • a utilization rate of the first public network resources is 98%, and a utilization rate of the second public network resources is only 10%.
  • the client should select preferentially the second PCP server for peer-to-peer communication.
  • IP addresses of the two PCP servers will be sent to the client, but the client cannot make a correct choice.
  • a PCP server capability option is added in an extension option of a bearer protocol to solve the defect in the related technology that the PCP client cannot select a server correctly.
  • the bearer protocol is a protocol except the PCP.
  • the PCP client is served as a client of the bearer protocol to complete functions performed by the bearer protocol.
  • the bearer protocol can be a DHCPv4 protocol, a DHCPv6 protocol, a neighbor discovery protocol, a routing protocol, etc.
  • FIG. 1 it is a schematic diagram of an application scenario in accordance with an embodiment of the present disclosure.
  • one or more PCP servers (only two servers, a PCP server A and a PCP server B, are shown in the figure, and there may also be one or more PCP servers in practical applications) report their own capabilities to a bearer protocol server.
  • the bearer protocol server sends the capability information to a PCP client through a bearer protocol message.
  • the PCP client selects an appropriate PCP server to be connected according to the capability information. For example, the PCP client in this figure selects the PCP server B.
  • step 21 the PCP server monitors a PCP server capability index of the PCP server itself.
  • step 22 the PCP server sends its own PCP server capability index to a bearer protocol server.
  • the PCP server capability index includes a number of PCP resources and/or a utilization rate of the PCP resources. That is, the PCP server sends at least one of the number of the PCP resources and the utilization rate of the PCP resources to the bearer protocol server.
  • the number of the PCP resources refers to the number of protocol ports owned by the PCP server.
  • the utilization rate of the PCP resources refers to a percent of the number of the protocol ports which have been used by the PCP server divided by the number of the PCP resources.
  • the embodiment of the present disclosure may further include step 23 , in which the PCP server determines whether an interval time reaches, and if the interval time reaches, then the step 21 and 22 will be performed, i.e., the PCP server monitors its own PCP server capability index at a certain time interval and reports them to the bearer protocol server periodically.
  • the bearer protocol server receives a PCP server capability index or capability indices sent by one or more PCP servers.
  • step 32 when the bearer protocol server receives a bearer protocol request sent by a PCP client, the bearer protocol server sends an IP address or IP addresses of the one or more PCP servers and corresponding PCP server capability information of the one or more PCP servers to the PCP client.
  • the PCP server capability information corresponds to the PCP server capability indices and contains capability values.
  • a principle of setting the capability values may be that:
  • the bearer protocol server sets the corresponding capability values according to the received one or more PCP server capability indices based on strength of the capabilities; or the bearer protocol server directly uses the PCP server capability indices as the capability values.
  • the bearer protocol server sorts the capabilities in the order of strength according to the received one or more PCP server capability indices, and sets the corresponding capability values based on the sort result; or the PCP server capability indices are divided into different intervals according to the strength of the capabilities, and the PCP server capability indices located in different intervals corresponds to different capability values; etc.
  • the bearer protocol server may be a network device, such as a DHCP server, a router, a switch, a Firewall, etc.
  • the bearer protocol server may also be a PCP server.
  • step 41 the PCP client sends a bearer protocol request to a bearer protocol server.
  • step 42 an IP address or IP addresses of one or more PCP servers and corresponding PCP server capability information returned by the bearer protocol server are received.
  • step 43 one of the one or more PCP servers is selected according to the PCP server capability information to establish a PCP session.
  • the PCP client selects a PCP server according a selection strategy.
  • the selection strategy may be to select a PCP server with the strongest capability, or to select a PCP server with the corresponding capability level according to a user level principle.
  • the PCP client may a network device, such as a router, a switch, a Firewall, etc., or may be a terminal, such a personal computer, a cell phone, etc.
  • interaction between the PCP client and the bearer protocol server includes the following steps 1 - 3 .
  • step 1 the PCP client sends a bearer protocol request message to the bearer protocol server.
  • the bearer protocol server encapsulates the IP addresses of the PCP servers and the corresponding PCP server capability values into a bearer protocol response message.
  • step 3 the bearer protocol server sends a bearer protocol response message to the PCP client.
  • FIG. 6 a schematic diagram of a position of a PCP server capability value in a bearer protocol message is shown.
  • FIG. 7 is a schematic diagram of the first embodiment of the present disclosure. As shown in FIG. 7 , an intranet user and an Internet user access with each other through an NAT-A and an NAT-B.
  • a home gateway is used as the PCP client, and the NAT-A and NAT-B are used as the PCP servers respectively, and a DHCP server is used as the bearer protocol server. Steps are as follows.
  • step S 101 an Internet user needs to access the intranet user by traversing a Firewall, and the intranet user needs to create a session on the NAT-A or the NAT-B.
  • step S 102 the NAT-A owns 10 public network IP addresses, 80% of which have been used; and the NAT-B owns 80 public network IP addresses, 1% of which have been used; and the NAT-A and NAT-B send their own capabilities to the DHCP server respectively.
  • step S 103 the DHCP server calculates for the NAT-A and NAT-B, and finds that the NAT-B has the most remaining resources and the strongest capability. Therefore, the DHCP server sets a capability value of the NAT-A to be 1 and a capability value of the NAT-B to be 2 according to a strategy.
  • step S 104 the home gateway acquires an IP address of the home gateway through the DHCP protocol and sends a DHCP request message.
  • step S 105 the DHCP server receives the message sent by the home gateway, and encapsulates the IP address and capability value of the NAT-A device and the IP address and capability value of the NAT-B device into an option of a DHCP response message to send to the home gateway.
  • step S 106 the home gateway receives the DHCP response message, parses the IP addresses and capability values of the NAT-A and NAT-B, selects the NAT-B as the PCP server according to the user strategy, and newly establishes a session.
  • step 107 after the session is established, the Internet user has access actively the intranet user successfully through the established session.
  • FIG. 8 is a schematic diagram of the second embodiment of the present disclosure.
  • the intranet user is an IPv6 user, and the intranet user and an Internet IPv4 user access with each other through an NAT64-A and an NAT64-B.
  • the intranet user is used as the PCP client, and the NAT64-A and NAT64-B are used as the PCP servers respectively, and an access server is used as the bearer protocol server. Steps are as follows.
  • step S 201 the Internet user needs to access the intranet user by traversing a Firewall, and the intranet user needs to create a session at the NAT64-A or the NAT64-B.
  • step S 202 the NAT64-A owns 15 public network IP addresses, 60% of which have been used; and the NAT64-B owns 15 public network IP addresses, 50% of which have been used; and the NAT64-A and NAT64-B send their own capabilities to the access server respectively.
  • step S 203 the access server calculates for the NAT64-A and NAT64-B, and finds that the NAT64-B has the most remaining resources and the strongest capability. Therefore, the access server sets the capability value of the NAT-A to be 1 and the capability value of the NAT-B to be 2 according to a strategy.
  • step S 204 the intranet user performs a neighbor discovery through a neighbor discovery (ND) protocol and sends a ND message.
  • ND neighbor discovery
  • step S 205 the access server receives the message sent by the intranet user, and encapsulates the IP address and capability value of the NAT64-A device and the IP address and capability value of the NAT64-B device into an option of a ND response message to send to the intranet user.
  • step S 206 the intranet user receives the ND response message, parses the IP addresses and capability values of the NAT64-A and NAT64-B, selects the NAT64-B as the PCP server according to the user strategy, and newly establishes a session.
  • step 207 after the session is established, the Internet IPv4 user accesses actively the intranet IPv6 user successfully through the established session.
  • FIG. 9 is a schematic diagram of a third embodiment of the present disclosure.
  • the intranet user is an IPv4 user, and the intranet user and the Internet user access with each other through an access router or the NAT-B.
  • the access router integrates functions of the NAT-A (PCP server) and the bearer protocol server therein.
  • the intranet user is used as the PCP client, and the NAT-B is used as the PCP server. Steps are as follows.
  • step S 301 the Internet user needs to access the intranet user by traversing a Firewall, and the intranet user needs to create a session at the access router or the NAT-B.
  • step S 302 the access router owns 105 public network IP addresses, 60% of which have been used; and the NAT-B owns 150 public network IP addresses, 50% of which have been used; and the NAT-B sends its own capability to the access router.
  • step S 303 the access router acquires the number of resources and the utilization rate of the resources of the NAT-A and the NAT-B. Therefore, the DHCP server of the access router sets the capability value of the NAT-A to be 0x693C.
  • the hexadecimal number 0x69 represents the decimal number 105
  • 0x3C represents the decimal number 60
  • 0x693C represents 105 public network addresses and the utilization rate of 60%.
  • the DHCP server sets the capability value of the NAT-B to be 0x6932.
  • the hexadecimal number 0x96 represents the decimal number 150
  • 0x32 represents the decimal number 50
  • 0x9632 represents 150 public network addresses and the utilization rate of 50%.
  • step S 304 the intranet cell phone user acquires its own IP address through the DHCP protocol and sends a DHCP request message.
  • step S 305 the access server receives the message sent by the intranet user, and encapsulates the IP address and capability value of the access router and the IP address and capability value of the NAT-B device into an option of a DHCP response message to send to the intranet user.
  • step S 306 the intranet cell phone user receives the DHCP response message, parses the IP addresses and capability values of the access router and NAT-B.
  • the intranet cell phone user parses its own user strategy, and finds that the cell phone user is a low level cell phone user, therefore, the intranet cell phone user selects the NAT-A with weaker capability automatically, i.e., the access router, to be used as the PCP server and establishes an NAT session with the access router.
  • step 307 after the session is established, the Internet user accesses actively the intranet cell phone user successfully through the established session.
  • FIG. 10 is a schematic diagram of a fourth embodiment of the present disclosure.
  • an intranet user and an Internet user may access with each other through the NAT-A, NAT-B, NAT-C or NAT-D.
  • a home gateway is used as a PCP client, and the NAT-A, NAT-B, NAT-C and NAT-D are used as PCP servers respectively, and a DHCP server is used as a bearer protocol server. Steps are as follows.
  • step S 401 the Internet user needs to access the intranet user by traversing a Firewall, and the intranet user needs to create a session at the NAT-A or the NAT-B.
  • the NAT-A owns 10 public network IP addresses, 80% of which have been used, and 2 resources remain; the NAT-B owns 20 public network IP addresses, 70% of which have been used, and 6 resources remain; the NAT-C owns 50 public network IP addresses, 20% of which have been used, and 40 resources remain; the NAT-D owns 40 public network IP addresses, 60% of which have been used, and 16 resources remain; and the NAT-A, NAT-B, NAT-C and NAT-D send their own capabilities to the DHCP server respectively.
  • step S 403 the DHCP server calculates for the NAT-A, NAT-B, NAT-C and NAT-D, and divides the remaining resources into four levels.
  • the capability value is 1.
  • the capability value is 2.
  • the capability value is 3.
  • the capability value is 4. Therefore, the DHCP server sets the capability values of the NAT-A and the NAT-B to be 1, and sets the capability value of the NAT-C to be 2, and sets the capability value of the NAT-D to be 4, according to the strategy.
  • step S 404 the home gateway acquires its own IP address through the DHCP protocol and sends a DHCP request message.
  • the DHCP server receives the message sent by the home gateway, and encapsulates the IP address and capability value of the NAT-A device, the IP address and capability value of the NAT-B device, the IP address and capability value of the NAT-C device and the IP address and capability value of the NAT-D device into an option of a DHCP response message to send to the home gateway.
  • step S 406 the home gateway receives the DHCP response message, parses the IP addresses and capability values of the NAT-A, NAT-B, NAT-C and NAT-D, and selects the NAT-B as the PCP server and newly establishes a session.
  • step 407 after the session is established, the Internet user accesses actively the intranet user successfully through the established session.
  • the embodiments of the present disclosure further propose apparatuses for sending, transferring and acquiring a capability.
  • an apparatus for sending a capability, applied to a PCP server includes a monitoring module 111 and a capability index sending module 112 .
  • the monitoring module 111 is configured to monitor its own PCP server capability index.
  • the capability index sending module 112 is configured to send its own PCP server capability index to a bearer protocol server.
  • the PCP server capability index includes a number of PCP resources and/or a utilization rate of the PCP resources.
  • an apparatus for transferring a capability, applied to a bearer protocol server includes a first receiving module 121 , a second receiving module 122 and a bearer protocol response sending module 123 .
  • the first receiving module 121 is configured to receive a PCP server capability index or capability indices sent by one or more PCP servers, herein the PCP server capability index includes a number of PCP resources and/or a utilization rate of the PCP resources.
  • the second receiving module 122 is configured to receive a bearer protocol request sent by a PCP client, and notify the bearer protocol response sending module.
  • the bearer protocol response sending module 123 is configured to send an IP address or IP addresses of the one or more PCP servers and PCP server capability information corresponding to the PCP server capability index or capability indices to the PCP client according to the notification from the second receiving module 122 .
  • the apparatus for transferring a capability may further include a capability value setting module.
  • the capability value setting module is configured to set the corresponding capability value or capability values according to the received one or more PCP server capability indices and send the corresponding capability value or capability values to the bearer protocol response sending module 123 .
  • the PCP server capability information contains a capability value or capability values.
  • the capability value setting module may set the corresponding capability values according to the received one or more PCP server capability indices based on strength of the capabilities, or may use directly the PCP server capability indices as the capability values.
  • an apparatus for acquiring a capability, applied to a PCP client includes a bearer protocol request sending module 131 , a bearer protocol response receiving module 132 and a selection establishing module 133 .
  • the bearer protocol request sending module 131 is configured to send a bearer protocol request to a bearer protocol server.
  • the bearer protocol response receiving module 132 is configured to receive an IP address or IP addresses of one or more PCP servers and corresponding PCP server capability information returned by the bearer protocol server.
  • the selection establishing module 133 is configured to select one of the one or more PCP servers according to the PCP server capability information to establish a PCP session.
  • the selection establishing module 133 may select a PCP server according a selection strategy.
  • the selection strategy may be to select a PCP server with the strongest capability, or to select a PCP server with the corresponding capability level according to a user level principle.
  • the computer program may be stored in a computer readable storage medium.
  • the computer program when executed on the corresponding hardware platform (such as system, device, apparatus and component and the like), include one or a combination of steps in the method embodiments.
  • all or part of steps in the embodiments described above may be carried out by using integrated circuits. These steps may be implemented by making integrated circuit modules one by one, or by making a plurality of modules thereof into a single integrated circuit module to implement.
  • Various apparatuses/functional modules/functional units in the embodiments described above, which may be implemented by using general computing apparatuses, may be centralized on a single computing apparatus or distributed across a network formed from multiple computing apparatuses.
  • Various apparatuses/functional modules/functional units in the embodiments described above when implemented in a form of software functional module and sold or used as stand-stone products, may be stored in a computer readable storage medium.
  • the computer readable storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc.
  • the problem in the related technology that the PCP client cannot acquire the PCP server capabilities, thereby resulting in the defect that the PCP client cannot select a PCP server is solved by transferring the related PCP server capabilities to the PCP client, which provides an efficient basis for the PCP client to select the server.

Abstract

This document discloses methods and apparatuses for sending, transferring and acquiring a capability. Herein, one or more PCP servers send their own PCP server capability indices to a bearer protocol server, and the bearer protocol server sends the corresponding capability information to a PCP client, and the PCP client selects an appropriate PCP server to be connected according to the capability information.

Description

    TECHNICAL FIELD
  • The present disclosure relates to, but is not limited to, the field of communication.
  • BACKGROUND
  • At present, network address translation (NAT) in the related technology belongs to an access wide area network (WAN) technology and is a translation technology of translating private (reserved) addresses into legal Internet Protocol (IP) addresses. The NAT is widely applied in various types of Internet access modes and various types of networks. The NAT can solve the problem of shortage of IP addresses.
  • However, the application of the NAT has brought a lot of problems, for example, many applications cannot traverse the NAT, and a host of the extranet cannot access a host of the intranet actively, such that many point-to-point applications are restricted.
  • Port control protocol (PCP) is a critical protocol in the NAT technical scene, and its purpose is to provide a mechanism of creating mapping entries dynamically at the NATs and firewalls to forward traffic of the extranet accessing the intranet actively. When nodes of the NAT internal network receive the traffic of the external network, if the internal nodes have not been connected to a source end of the traffic, the traffic will be discarded at an NAT device. Before the traffic passes the NAT device, NAT mapping entries about the traffic are established at the NAT device by using the PCP technology. When the traffic is coming, the traffic can traverse the NAT device to reach the internal receiving nodes.
  • In the related technology, a PCP client may acquire an IP address or IP addresses of one or more PCP servers through an option of the dynamic host configuration protocol (DHCP), including DHCPv4 and DHCPv6, or other bearer protocols. The PCP client selects one of these PCP servers as a server matching the PCP client itself. In practical applications, in the related technology, the PCP client can only acquire the IP addresses of one or more PCP servers and the PCP client cannot select a PCP server which suits the PCP client itself according to this information.
  • SUMMARY
  • The following is a summary of the subject matter described herein in detail. This summary is not intended to limit the protection scope of the claims.
  • This document provides methods and apparatuses for sending, transferring and acquiring a capability to provide a basis for a PCP client to select a server.
  • A method for sending a capability includes:
  • monitoring, by a port control protocol (PCP) server, a PCP server capability index of the PCP server; and
  • sending, by the PCP server, the PCP server capability index of the PCP server to a bearer protocol server;
  • herein the PCP server capability index includes a number of PCP resources and/or a utilization rate of the PCP resources.
  • A method for transferring a capability includes:
  • receiving, by a bearer protocol server, a PCP server capability index or capability indices sent by one or more PCP servers, herein the PCP server capability indices includes a number of PCP resources and/or a utilization rate of the PCP resources; and
  • when the bearer protocol server receives a bearer protocol request sent by a PCP client, sending an IP address or IP addresses of the one or more PCP servers and PCP server capability information corresponding to the PCP server capability index or capability indices to the PCP client.
  • In an exemplary embodiment, the PCP server capability information contains a capability value; and
  • after the bearer protocol server receives the PCP server capability index or capability indices sent by the one or more PCP servers,
  • the bearer protocol server sets a corresponding capability value or capability values according to the received one or more PCP server capability indices based on strength of a capability.
  • In an exemplary embodiment, the PCP server capability information contains a capability value; and
  • after the bearer protocol server receives the PCP server capability index or capability indices sent by the one or more PCP servers,
  • the bearer protocol server uses the PCP server capability index or capability indices as the capability value or capability values.
  • In an exemplary embodiment, the method further includes:
  • receiving, by the PCP client, the IP address or IP addresses of the one or more PCP servers and the corresponding PCP server capability information, and selecting one of the one or more PCP servers according to the PCP server capability information to establish a PCP session.
  • A method for acquiring a capability includes:
  • sending, by a PCP client, a bearer protocol request to a bearer protocol server;
  • receiving an IP address or IP addresses of one or more PCP servers and corresponding PCP server capability information returned by the bearer protocol server; and
  • selecting one of the one or more PCP servers according to the PCP server capability information to establish a PCP session.
  • An apparatus for sending a capability, applied to a PCP server, includes:
  • a monitoring module configured to monitor a PCP server capability index of the PCP server; and
  • a capability index sending module configured to send the PCP server capability index of the PCP server to a bearer protocol server;
  • herein the PCP server capability index includes a number of PCP resources and/or a utilization rate of the PCP resources.
  • An apparatus for transferring a capability, applied to a bearer protocol server, includes a first receiving module, a second receiving module and a bearer protocol response sending module.
  • The first receiving module is configured to receive a PCP server capability index or capability indices sent by one or more PCP servers, herein the PCP server capability index includes a number of PCP resources and/or a utilization rate of the PCP resources.
  • The second receiving module is configured to receive a bearer protocol request sent by a PCP client, and notify the bearer protocol response sending module.
  • The bearer protocol response sending module is configured to send an IP address or IP addresses of the one or more PCP servers and PCP server capability information corresponding to the PCP server capability index or capability indices to the PCP client according to a notification from the second receiving module.
  • In an exemplary embodiment, the apparatus further includes a capability value setting module.
  • The capability value setting module is configured to set a corresponding capability value or capability values according to the received one or more PCP server capability indices, and send the corresponding capability value or capability values to the bearer protocol response sending module.
  • The PCP server capability information contains the capability value or capability values.
  • An apparatus for acquiring a capability, applied to a PCP client, includes a bearer protocol request sending module, a bearer protocol response receiving module and a selection establishing module.
  • The bearer protocol request sending module is configured to send a bearer protocol request to a bearer protocol server.
  • The bearer protocol response receiving module is configured to receive an IP address or IP addresses of one or more PCP servers and corresponding PCP server capability information returned by the bearer protocol server.
  • The selection establishing module is configured to select one of the one or more PCP servers according to the PCP server capability information to establish a PCP session.
  • A computer readable storage medium has computer executable instructions stored therein, which used to implement the method described above.
  • In embodiments of the present disclosure, the problem in the related technology that the PCP client cannot acquire the PCP server capabilities, thereby resulting in the defect that the PCP client cannot select a PCP server, is solved by transferring the related PCP server capabilities to the PCP client, which provides an efficient basis for the PCP client to select the server.
  • After the accompanying drawings and detailed description are read and understood, other aspects can be understood.
  • BRIEF DESCRIPTION OF DRAWINGS
  • FIG. 1 is a schematic diagram of an application scenario in accordance with an embodiment of the present disclosure.
  • FIG. 2 is a flow chart of a PCP server in accordance with an embodiment of the present disclosure.
  • FIG. 3 is a flow chart of a bearer protocol server in accordance with an embodiment of the present disclosure.
  • FIG. 4 is a flow chart of a PCP client in accordance with an embodiment of the present disclosure.
  • FIG. 5 is a diagram of interaction between messages of a PCP client and a bearer protocol server in accordance with an embodiment of the present disclosure.
  • FIG. 6 is a schematic diagram of a position of a PCP server capability value in a bearer protocol message in accordance with an embodiment of the present disclosure.
  • FIG. 7 is a schematic diagram of a first embodiment of the present disclosure.
  • FIG. 8 is a schematic diagram of a second embodiment of the present disclosure.
  • FIG. 9 is a schematic diagram of a third embodiment of the present disclosure.
  • FIG. 10 is a schematic diagram of a fourth embodiment of the present disclosure.
  • FIG. 11 is a block diagram of an apparatus for sending a capability in accordance with an embodiment of the present disclosure;
  • FIG. 12 is a block diagram of an apparatus for transferring a capability in accordance with an embodiment of the present disclosure.
  • FIG. 13 is a block diagram of an apparatus for acquiring a capability in accordance with an embodiment of the present disclosure.
  • DETAILED DESCRIPTION
  • Embodiments of the present disclosure will be described in detail below in conjunction with the accompanying drawings. It should be noted that the embodiments in the present disclosure and features in the embodiments can be combined with each other arbitrarily without conflict.
  • Steps shown in the flow charts of the accompanying drawings may be executed such as in a computer system with a set of computer executable instructions. Moreover, although a logical order is shown in the flow chart, in some cases, the steps shown or described may be executed in an order different from the order herein.
  • In the related technology, a Port Control Protocol (PCP) client can acquire an IP address or a plurality of IP addresses of one or more PCP servers through an option of the DHCP protocol or other bearer protocols. The PCP client selects one of these PCP servers as a server matching the PCP client itself. In practical applications, in the related technology, only the one IP address or the plurality of IP addresses of one or more PCP servers can be acquired, but capabilities and priorities of these PCP servers supporting NAT cannot be acquired. In such case, the PCP client cannot select a server correctly according to the NAT capabilities.
  • For example, an application of a certain client needs to apply for 10 NAT sessions, and at this point, there are two selectable PCP servers. A utilization rate of the first public network resources is 98%, and a utilization rate of the second public network resources is only 10%. In such case, the client should select preferentially the second PCP server for peer-to-peer communication. However, in the related technology, IP addresses of the two PCP servers will be sent to the client, but the client cannot make a correct choice.
  • In the embodiments of the present disclosure, a PCP server capability option is added in an extension option of a bearer protocol to solve the defect in the related technology that the PCP client cannot select a server correctly.
  • The bearer protocol is a protocol except the PCP. The PCP client is served as a client of the bearer protocol to complete functions performed by the bearer protocol. For example, the bearer protocol can be a DHCPv4 protocol, a DHCPv6 protocol, a neighbor discovery protocol, a routing protocol, etc.
  • As shown in FIG. 1, it is a schematic diagram of an application scenario in accordance with an embodiment of the present disclosure. Herein one or more PCP servers (only two servers, a PCP server A and a PCP server B, are shown in the figure, and there may also be one or more PCP servers in practical applications) report their own capabilities to a bearer protocol server. The bearer protocol server sends the capability information to a PCP client through a bearer protocol message. And the PCP client selects an appropriate PCP server to be connected according to the capability information. For example, the PCP client in this figure selects the PCP server B.
  • In an embodiment of the present disclosure, for the PCP server, as shown in FIG. 2, the following steps are included.
  • In step 21, the PCP server monitors a PCP server capability index of the PCP server itself.
  • In step 22, the PCP server sends its own PCP server capability index to a bearer protocol server.
  • Herein, the PCP server capability index includes a number of PCP resources and/or a utilization rate of the PCP resources. That is, the PCP server sends at least one of the number of the PCP resources and the utilization rate of the PCP resources to the bearer protocol server.
  • The number of the PCP resources refers to the number of protocol ports owned by the PCP server.
  • The utilization rate of the PCP resources refers to a percent of the number of the protocol ports which have been used by the PCP server divided by the number of the PCP resources.
  • It can be seen from FIG. 2 that the embodiment of the present disclosure may further include step 23, in which the PCP server determines whether an interval time reaches, and if the interval time reaches, then the step 21 and 22 will be performed, i.e., the PCP server monitors its own PCP server capability index at a certain time interval and reports them to the bearer protocol server periodically.
  • As shown in FIG. 3, in an embodiment of the present disclosure, for a bearer protocol server, the following steps are included.
  • In step 31, the bearer protocol server receives a PCP server capability index or capability indices sent by one or more PCP servers.
  • In step 32, when the bearer protocol server receives a bearer protocol request sent by a PCP client, the bearer protocol server sends an IP address or IP addresses of the one or more PCP servers and corresponding PCP server capability information of the one or more PCP servers to the PCP client.
  • Herein, the PCP server capability information corresponds to the PCP server capability indices and contains capability values.
  • A principle of setting the capability values may be that:
  • the bearer protocol server sets the corresponding capability values according to the received one or more PCP server capability indices based on strength of the capabilities; or the bearer protocol server directly uses the PCP server capability indices as the capability values.
  • When the capability values may be set based on the strength of the capabilities, the following manner may be used. The bearer protocol server sorts the capabilities in the order of strength according to the received one or more PCP server capability indices, and sets the corresponding capability values based on the sort result; or the PCP server capability indices are divided into different intervals according to the strength of the capabilities, and the PCP server capability indices located in different intervals corresponds to different capability values; etc.
  • The bearer protocol server may be a network device, such as a DHCP server, a router, a switch, a Firewall, etc.
  • The bearer protocol server may also be a PCP server.
  • As shown in FIG. 4, in an embodiment of the present disclosure, for a PCP client, the following steps are included.
  • In step 41, the PCP client sends a bearer protocol request to a bearer protocol server.
  • In step 42, an IP address or IP addresses of one or more PCP servers and corresponding PCP server capability information returned by the bearer protocol server are received.
  • In step 43, one of the one or more PCP servers is selected according to the PCP server capability information to establish a PCP session.
  • Herein, the PCP client selects a PCP server according a selection strategy. The selection strategy may be to select a PCP server with the strongest capability, or to select a PCP server with the corresponding capability level according to a user level principle.
  • The PCP client may a network device, such as a router, a switch, a Firewall, etc., or may be a terminal, such a personal computer, a cell phone, etc.
  • As shown in FIG. 5, interaction between the PCP client and the bearer protocol server includes the following steps 1-3.
  • In step 1, the PCP client sends a bearer protocol request message to the bearer protocol server.
  • In step 2, the bearer protocol server encapsulates the IP addresses of the PCP servers and the corresponding PCP server capability values into a bearer protocol response message.
  • In step 3, the bearer protocol server sends a bearer protocol response message to the PCP client.
  • As shown in FIG. 6, a schematic diagram of a position of a PCP server capability value in a bearer protocol message is shown.
  • FIG. 7 is a schematic diagram of the first embodiment of the present disclosure. As shown in FIG. 7, an intranet user and an Internet user access with each other through an NAT-A and an NAT-B. A home gateway is used as the PCP client, and the NAT-A and NAT-B are used as the PCP servers respectively, and a DHCP server is used as the bearer protocol server. Steps are as follows.
  • In step S101, an Internet user needs to access the intranet user by traversing a Firewall, and the intranet user needs to create a session on the NAT-A or the NAT-B.
  • In step S102, the NAT-A owns 10 public network IP addresses, 80% of which have been used; and the NAT-B owns 80 public network IP addresses, 1% of which have been used; and the NAT-A and NAT-B send their own capabilities to the DHCP server respectively.
  • In step S103, the DHCP server calculates for the NAT-A and NAT-B, and finds that the NAT-B has the most remaining resources and the strongest capability. Therefore, the DHCP server sets a capability value of the NAT-A to be 1 and a capability value of the NAT-B to be 2 according to a strategy.
  • In step S104, the home gateway acquires an IP address of the home gateway through the DHCP protocol and sends a DHCP request message.
  • In step S105, the DHCP server receives the message sent by the home gateway, and encapsulates the IP address and capability value of the NAT-A device and the IP address and capability value of the NAT-B device into an option of a DHCP response message to send to the home gateway.
  • In step S106, the home gateway receives the DHCP response message, parses the IP addresses and capability values of the NAT-A and NAT-B, selects the NAT-B as the PCP server according to the user strategy, and newly establishes a session.
  • In step 107, after the session is established, the Internet user has access actively the intranet user successfully through the established session.
  • FIG. 8 is a schematic diagram of the second embodiment of the present disclosure. As shown in FIG. 8, the intranet user is an IPv6 user, and the intranet user and an Internet IPv4 user access with each other through an NAT64-A and an NAT64-B. The intranet user is used as the PCP client, and the NAT64-A and NAT64-B are used as the PCP servers respectively, and an access server is used as the bearer protocol server. Steps are as follows.
  • In step S201, the Internet user needs to access the intranet user by traversing a Firewall, and the intranet user needs to create a session at the NAT64-A or the NAT64-B.
  • In step S202, the NAT64-A owns 15 public network IP addresses, 60% of which have been used; and the NAT64-B owns 15 public network IP addresses, 50% of which have been used; and the NAT64-A and NAT64-B send their own capabilities to the access server respectively.
  • In step S203, the access server calculates for the NAT64-A and NAT64-B, and finds that the NAT64-B has the most remaining resources and the strongest capability. Therefore, the access server sets the capability value of the NAT-A to be 1 and the capability value of the NAT-B to be 2 according to a strategy.
  • In step S204, the intranet user performs a neighbor discovery through a neighbor discovery (ND) protocol and sends a ND message.
  • In step S205, the access server receives the message sent by the intranet user, and encapsulates the IP address and capability value of the NAT64-A device and the IP address and capability value of the NAT64-B device into an option of a ND response message to send to the intranet user.
  • In step S206, the intranet user receives the ND response message, parses the IP addresses and capability values of the NAT64-A and NAT64-B, selects the NAT64-B as the PCP server according to the user strategy, and newly establishes a session.
  • In step 207, after the session is established, the Internet IPv4 user accesses actively the intranet IPv6 user successfully through the established session.
  • FIG. 9 is a schematic diagram of a third embodiment of the present disclosure. As shown in FIG. 9, the intranet user is an IPv4 user, and the intranet user and the Internet user access with each other through an access router or the NAT-B. Herein, the access router integrates functions of the NAT-A (PCP server) and the bearer protocol server therein. The intranet user is used as the PCP client, and the NAT-B is used as the PCP server. Steps are as follows.
  • In step S301, the Internet user needs to access the intranet user by traversing a Firewall, and the intranet user needs to create a session at the access router or the NAT-B.
  • In step S302, the access router owns 105 public network IP addresses, 60% of which have been used; and the NAT-B owns 150 public network IP addresses, 50% of which have been used; and the NAT-B sends its own capability to the access router.
  • In step S303, the access router acquires the number of resources and the utilization rate of the resources of the NAT-A and the NAT-B. Therefore, the DHCP server of the access router sets the capability value of the NAT-A to be 0x693C. Herein, the hexadecimal number 0x69 represents the decimal number 105, and 0x3C represents the decimal number 60, and 0x693C represents 105 public network addresses and the utilization rate of 60%. The DHCP server sets the capability value of the NAT-B to be 0x6932. Herein, the hexadecimal number 0x96 represents the decimal number 150, and 0x32 represents the decimal number 50, and 0x9632 represents 150 public network addresses and the utilization rate of 50%.
  • In step S304, the intranet cell phone user acquires its own IP address through the DHCP protocol and sends a DHCP request message.
  • In step S305, the access server receives the message sent by the intranet user, and encapsulates the IP address and capability value of the access router and the IP address and capability value of the NAT-B device into an option of a DHCP response message to send to the intranet user.
  • In step S306, the intranet cell phone user receives the DHCP response message, parses the IP addresses and capability values of the access router and NAT-B. The intranet cell phone user parses its own user strategy, and finds that the cell phone user is a low level cell phone user, therefore, the intranet cell phone user selects the NAT-A with weaker capability automatically, i.e., the access router, to be used as the PCP server and establishes an NAT session with the access router.
  • In step 307, after the session is established, the Internet user accesses actively the intranet cell phone user successfully through the established session.
  • FIG. 10 is a schematic diagram of a fourth embodiment of the present disclosure. As shown in FIG. 10, an intranet user and an Internet user may access with each other through the NAT-A, NAT-B, NAT-C or NAT-D. A home gateway is used as a PCP client, and the NAT-A, NAT-B, NAT-C and NAT-D are used as PCP servers respectively, and a DHCP server is used as a bearer protocol server. Steps are as follows.
  • In step S401, the Internet user needs to access the intranet user by traversing a Firewall, and the intranet user needs to create a session at the NAT-A or the NAT-B.
  • In step S402, the NAT-A owns 10 public network IP addresses, 80% of which have been used, and 2 resources remain; the NAT-B owns 20 public network IP addresses, 70% of which have been used, and 6 resources remain; the NAT-C owns 50 public network IP addresses, 20% of which have been used, and 40 resources remain; the NAT-D owns 40 public network IP addresses, 60% of which have been used, and 16 resources remain; and the NAT-A, NAT-B, NAT-C and NAT-D send their own capabilities to the DHCP server respectively.
  • In step S403, the DHCP server calculates for the NAT-A, NAT-B, NAT-C and NAT-D, and divides the remaining resources into four levels. When the number of the remaining resources is less than 10, the capability value is 1. When the number of the remaining resources is between 10 and 20, the capability value is 2. When the number of the remaining resources is between 20 and 30, the capability value is 3. And when the number of the remaining resources is more than 30, the capability value is 4. Therefore, the DHCP server sets the capability values of the NAT-A and the NAT-B to be 1, and sets the capability value of the NAT-C to be 2, and sets the capability value of the NAT-D to be 4, according to the strategy.
  • In step S404, the home gateway acquires its own IP address through the DHCP protocol and sends a DHCP request message.
  • In step S405, the DHCP server receives the message sent by the home gateway, and encapsulates the IP address and capability value of the NAT-A device, the IP address and capability value of the NAT-B device, the IP address and capability value of the NAT-C device and the IP address and capability value of the NAT-D device into an option of a DHCP response message to send to the home gateway.
  • In step S406, the home gateway receives the DHCP response message, parses the IP addresses and capability values of the NAT-A, NAT-B, NAT-C and NAT-D, and selects the NAT-B as the PCP server and newly establishes a session.
  • In step 407, after the session is established, the Internet user accesses actively the intranet user successfully through the established session.
  • Accordingly, the embodiments of the present disclosure further propose apparatuses for sending, transferring and acquiring a capability.
  • As shown in FIG. 11, an apparatus for sending a capability, applied to a PCP server, includes a monitoring module 111 and a capability index sending module 112.
  • The monitoring module 111 is configured to monitor its own PCP server capability index.
  • The capability index sending module 112 is configured to send its own PCP server capability index to a bearer protocol server.
  • Herein, the PCP server capability index includes a number of PCP resources and/or a utilization rate of the PCP resources.
  • As shown in FIG. 12, an apparatus for transferring a capability, applied to a bearer protocol server, includes a first receiving module 121, a second receiving module 122 and a bearer protocol response sending module 123.
  • The first receiving module 121 is configured to receive a PCP server capability index or capability indices sent by one or more PCP servers, herein the PCP server capability index includes a number of PCP resources and/or a utilization rate of the PCP resources.
  • The second receiving module 122 is configured to receive a bearer protocol request sent by a PCP client, and notify the bearer protocol response sending module.
  • The bearer protocol response sending module 123 is configured to send an IP address or IP addresses of the one or more PCP servers and PCP server capability information corresponding to the PCP server capability index or capability indices to the PCP client according to the notification from the second receiving module 122.
  • The apparatus for transferring a capability may further include a capability value setting module.
  • The capability value setting module is configured to set the corresponding capability value or capability values according to the received one or more PCP server capability indices and send the corresponding capability value or capability values to the bearer protocol response sending module 123. Herein, the PCP server capability information contains a capability value or capability values.
  • The capability value setting module may set the corresponding capability values according to the received one or more PCP server capability indices based on strength of the capabilities, or may use directly the PCP server capability indices as the capability values.
  • As shown in FIG. 13, an apparatus for acquiring a capability, applied to a PCP client, includes a bearer protocol request sending module 131, a bearer protocol response receiving module 132 and a selection establishing module 133.
  • The bearer protocol request sending module 131 is configured to send a bearer protocol request to a bearer protocol server.
  • The bearer protocol response receiving module 132 is configured to receive an IP address or IP addresses of one or more PCP servers and corresponding PCP server capability information returned by the bearer protocol server.
  • The selection establishing module 133 is configured to select one of the one or more PCP servers according to the PCP server capability information to establish a PCP session.
  • The selection establishing module 133 may select a PCP server according a selection strategy. The selection strategy may be to select a PCP server with the strongest capability, or to select a PCP server with the corresponding capability level according to a user level principle.
  • People having ordinary skill in the art can understand that all or part of steps in the embodiments described above can be carried out by using a computer program flow. The computer program may be stored in a computer readable storage medium. The computer program, when executed on the corresponding hardware platform (such as system, device, apparatus and component and the like), include one or a combination of steps in the method embodiments.
  • In an exemplary embodiment, all or part of steps in the embodiments described above may be carried out by using integrated circuits. These steps may be implemented by making integrated circuit modules one by one, or by making a plurality of modules thereof into a single integrated circuit module to implement. Various apparatuses/functional modules/functional units in the embodiments described above, which may be implemented by using general computing apparatuses, may be centralized on a single computing apparatus or distributed across a network formed from multiple computing apparatuses.
  • Various apparatuses/functional modules/functional units in the embodiments described above, when implemented in a form of software functional module and sold or used as stand-stone products, may be stored in a computer readable storage medium. The computer readable storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc.
  • INDUSTRIAL APPLICABILITY
  • In embodiments of the present disclosure, the problem in the related technology that the PCP client cannot acquire the PCP server capabilities, thereby resulting in the defect that the PCP client cannot select a PCP server, is solved by transferring the related PCP server capabilities to the PCP client, which provides an efficient basis for the PCP client to select the server.

Claims (18)

What is claimed is:
1. A method for sending a capability comprising:
monitoring, by a port control protocol, PCP, server, a PCP server capability index of the PCP server; and
sending, by the PCP server, the PCP server capability index of the PCP server to a bearer protocol server;
wherein the PCP server capability index comprises a number of PCP resources and/or a utilization rate of the PCP resources.
2. A method for transferring a capability comprising:
receiving, by a bearer protocol server, a PCP server capability index or capability indices sent by one or more port control protocol, PCP, servers, wherein the PCP server capability index comprises a number of PCP resources and/or a utilization rate of the PCP resources; and
when the bearer protocol server receives a bearer protocol request sent by a PCP client, sending an IP address or IP addresses of the one or more PCP servers and PCP server capability information corresponding to the PCP server capability index or capability indices to the PCP client.
3. The method according to claim 2, wherein
the PCP server capability information contains a capability value; and
after the bearer protocol server receives the PCP server capability index or capability indices sent by the one or more PCP servers,
the bearer protocol server sets a corresponding capability value or capability values according to the received one or more PCP server capability indices based on strength of a capability.
4. The method according to claim 2, wherein
the PCP server capability information contains a capability value; and
after the bearer protocol server receives the PCP server capability index or capability indices sent by the one or more PCP servers,
the bearer protocol server uses the PCP server capability index or capability indices as the capability value or capability values.
5. The method according to claim 2, further comprising:
receiving, by the PCP client, the IP address or IP addresses of the one or more PCP servers and the corresponding PCP server capability information, and selecting one of the one or more PCP servers according to the PCP server capability information to establish a PCP session.
6. The method according to claim 2 comprising:
sending, by a port control protocol, PCP, client, a bearer protocol request to a bearer protocol server;
receiving an IP address or IP addresses of one or more PCP servers and corresponding PCP server capability information returned by the bearer protocol server; and
selecting one of the one or more PCP servers according to the PCP server capability information to establish a PCP session.
7. (canceled)
8. An apparatus for transferring a capability, applied to a bearer protocol server, comprising:
a first receiving module configured to receive a port control protocol, PCP, server capability index or capability indices sent by one or more PCP servers, wherein the PCP server capability index comprises a number of PCP resources and/or a utilization rate of the PCP resources;
a second receiving module configured to receive a bearer protocol request sent by a PCP client, and notify a bearer protocol response sending module; and
the bearer protocol response sending module configured to send an IP address or IP addresses of the one or more PCP servers and PCP server capability information corresponding to the PCP server capability index or capability indices to the PCP client according to a notification from the second receiving module.
9. The apparatus according to claim 8, further comprising:
a capability value setting module configured to set a corresponding capability value or capability values according to the received one or more PCP server capability indices, and send the corresponding capability value or capability values to the bearer protocol response sending module;
wherein the PCP server capability information contains the capability value or capability values.
10. (canceled)
11. A computer-readable storage medium where computer executable instructions are stored, the computer executable instructions being used to implement the method according to claim 1.
12. The method according to claim 3, further comprising:
receiving, by the PCP client, the IP address or IP addresses of the one or more PCP servers and the corresponding PCP server capability information, and selecting one of the one or more PCP servers according to the PCP server capability information to establish a PCP session.
13. The method according to claim 4, further comprising:
receiving, by the PCP client, the IP address or IP addresses of the one or more PCP servers and the corresponding PCP server capability information, and selecting one of the one or more PCP servers according to the PCP server capability information to establish a PCP session.
14. A computer-readable storage medium where computer executable instructions are stored, the computer executable instructions being used to implement the method according to claim 2.
15. A computer-readable storage medium where computer executable instructions are stored, the computer executable instructions being used to implement the method according to claim 3.
16. A computer-readable storage medium where computer executable instructions are stored, the computer executable instructions being used to implement the method according to claim 4.
17. A computer-readable storage medium where computer executable instructions are stored, the computer executable instructions being used to implement the method according to claim 5.
18. A computer-readable storage medium where computer executable instructions are stored, the computer executable instructions being used to implement the method according to claim 6.
US15/561,070 2015-04-09 2015-09-15 Method and Apparatus for Sending, Transferring and Acquiring Capability Abandoned US20180063254A1 (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
CN201510166145.3A CN106161534B (en) 2015-04-09 2015-04-09 Method and apparatus for transmitting, transferring and acquiring capabilities
CN201510166145.3 2015-04-09
PCT/CN2015/089662 WO2016161765A1 (en) 2015-04-09 2015-09-15 Method and apparatus for sending, transferring and acquiring capability

Publications (1)

Publication Number Publication Date
US20180063254A1 true US20180063254A1 (en) 2018-03-01

Family

ID=57071731

Family Applications (1)

Application Number Title Priority Date Filing Date
US15/561,070 Abandoned US20180063254A1 (en) 2015-04-09 2015-09-15 Method and Apparatus for Sending, Transferring and Acquiring Capability

Country Status (4)

Country Link
US (1) US20180063254A1 (en)
EP (1) EP3264724B1 (en)
CN (1) CN106161534B (en)
WO (1) WO2016161765A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20220329652A1 (en) * 2021-04-08 2022-10-13 Charles Lap San Chan Method of distributing service server dynamically

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090109959A1 (en) * 1996-11-18 2009-04-30 Mci Communications Corporation System and method for providing requested quality of service in a hybrid network
US20140089386A1 (en) * 2012-09-21 2014-03-27 Ixia Methods, systems, and computer readable media for providing mapping information associated with port control protocol (pcp) in a test environment
US20150249668A1 (en) * 2014-02-28 2015-09-03 Cisco Technology, Inc. Smarter policy decisions based on metadata in data flows

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1852094B (en) * 2005-12-13 2010-09-29 华为技术有限公司 Method and system for protecting account of network business user
CN102148767A (en) * 2011-05-12 2011-08-10 杭州华三通信技术有限公司 Network address translation (NAT)-based data routing method and device
CN102447630B (en) * 2011-12-28 2018-02-27 中兴通讯股份有限公司 Transmission method, home gateway and the carrier class networks conversion equipment of protocol massages
CN102664971B (en) * 2012-04-11 2016-02-10 中兴通讯股份有限公司 Network address resources management method, system and external address Resource Server
CN103906037A (en) * 2012-12-25 2014-07-02 中兴通讯股份有限公司 Method and device for completing network address translation keep-alive by adopting port control protocol
CN103179639B (en) * 2013-03-15 2015-12-02 华为技术有限公司 Select method and the station equipment of network controller
CN103535015B (en) * 2013-05-24 2016-11-23 华为技术有限公司 The management method of public network address resource, port control protocols server and client

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090109959A1 (en) * 1996-11-18 2009-04-30 Mci Communications Corporation System and method for providing requested quality of service in a hybrid network
US20140089386A1 (en) * 2012-09-21 2014-03-27 Ixia Methods, systems, and computer readable media for providing mapping information associated with port control protocol (pcp) in a test environment
US20150249668A1 (en) * 2014-02-28 2015-09-03 Cisco Technology, Inc. Smarter policy decisions based on metadata in data flows

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20220329652A1 (en) * 2021-04-08 2022-10-13 Charles Lap San Chan Method of distributing service server dynamically

Also Published As

Publication number Publication date
WO2016161765A1 (en) 2016-10-13
CN106161534A (en) 2016-11-23
EP3264724A4 (en) 2018-04-11
EP3264724B1 (en) 2019-06-26
CN106161534B (en) 2021-05-11
EP3264724A1 (en) 2018-01-03

Similar Documents

Publication Publication Date Title
US9774563B2 (en) Packet transmission method, apparatus, and system in multicast domain name system
US9571382B2 (en) Method, controller, and system for processing data packet
EP2645679B1 (en) Method and apparatus for message transmission
CN105376299B (en) Network communication method, equipment and network attached storage equipment
EP3026872B1 (en) Packet forwarding method, apparatus, and system
WO2020248963A1 (en) Method and apparatus for establishing end-to-end network connection, and network system
US9419940B2 (en) IPv4 data center support for IPv4 and IPv6 visitors
CN106101617B (en) Message transmission method, device and system
JP5753172B2 (en) Management method and management device for network address translation
WO2016210202A1 (en) Media relay server
US20160173326A1 (en) Network configuration using service identifier
KR20130052240A (en) Method and apparatus for provisioning network address translator traversal methods
WO2011157126A2 (en) Packet forwarding method and inter-network routing apparatus
EP2896160A1 (en) Bandwidth probing messages
US20180054415A1 (en) Internet Protocol Address Allocation Method and Router
US20140372499A1 (en) Methods and Systems for Enabling NAT Traversal
US9438475B1 (en) Supporting relay functionality with a distributed layer 3 gateway
US11683275B2 (en) Device and method for interconnecting two subnetworks
EP3264724B1 (en) Method and apparatus for sending, transferring and acquiring capability
US20130086259A1 (en) Method for acquiring an ip address and network access device
WO2015014167A1 (en) Method for processing raw ip packet, and corresponding apparatus
Ata et al. Architectural design of unified multiplex communications for one-time use of IP addresses
KR100932570B1 (en) Method for maintaining large session information between application server and client in NAT equipment without burdening server and server side network
US20140351453A1 (en) Node in a Network
CN107295113B (en) Network configuration method, switch and server

Legal Events

Date Code Title Description
AS Assignment

Owner name: ZTE CORPORATION, CHINA

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:MENG, WEI;WANG, CUI;REEL/FRAME:043707/0674

Effective date: 20170816

STPP Information on status: patent application and granting procedure in general

Free format text: DOCKETED NEW CASE - READY FOR EXAMINATION

STPP Information on status: patent application and granting procedure in general

Free format text: NON FINAL ACTION MAILED

STPP Information on status: patent application and granting procedure in general

Free format text: RESPONSE TO NON-FINAL OFFICE ACTION ENTERED AND FORWARDED TO EXAMINER

STPP Information on status: patent application and granting procedure in general

Free format text: FINAL REJECTION MAILED

STPP Information on status: patent application and granting procedure in general

Free format text: RESPONSE AFTER FINAL ACTION FORWARDED TO EXAMINER

STPP Information on status: patent application and granting procedure in general

Free format text: DOCKETED NEW CASE - READY FOR EXAMINATION

STPP Information on status: patent application and granting procedure in general

Free format text: NON FINAL ACTION MAILED

STCB Information on status: application discontinuation

Free format text: ABANDONED -- FAILURE TO RESPOND TO AN OFFICE ACTION