WO2017059742A1 - Customer premises equipment, server, and method and system for managing port resource - Google Patents

Customer premises equipment, server, and method and system for managing port resource Download PDF

Info

Publication number
WO2017059742A1
WO2017059742A1 PCT/CN2016/096254 CN2016096254W WO2017059742A1 WO 2017059742 A1 WO2017059742 A1 WO 2017059742A1 CN 2016096254 W CN2016096254 W CN 2016096254W WO 2017059742 A1 WO2017059742 A1 WO 2017059742A1
Authority
WO
WIPO (PCT)
Prior art keywords
port
management request
response message
management
resource
Prior art date
Application number
PCT/CN2016/096254
Other languages
French (fr)
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 中兴通讯股份有限公司
Publication of WO2017059742A1 publication Critical patent/WO2017059742A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming

Definitions

  • This document relates to, but is not limited to, the field of communication technologies, and in particular, to a user side device, a server, a port resource management method and system.
  • Lw4o6 Lightweight 4over6, Lightweight DS-Lite
  • DS-Lite Dual-Stack Lite
  • NAPT Network Address Port Translation
  • CGN Carrier Grade Network Address Translation
  • AFTR Address Family Transition Router
  • CPE Customer Premises Equipment
  • the port resources obtained by the CPE through the DHCP 4o6 (DHCPv4over DHCPv6, DHCPv6-based DHCPv4) server are fixed and limited; as the data services on some CPEs increase, when the port resources are exhausted, Affects the development of the subsequent CPE services.
  • the port resources on other CPEs are also wasteful due to the lack of data services. That is, the port resource allocation method in the related technology has an unreasonable allocation of port resources, which will lead to some The CPE port resources are insufficient, while other CPE port resources are wasted.
  • This document provides a port resource management method, which includes:
  • the client device acquires a usage status of the current port resource, and generates a management request according to the usage status;
  • the foregoing method further includes:
  • a management request for requesting an available port is generated and sent to the server.
  • the usage status includes:
  • the port usage rate is greater than the first threshold, the port usage rate is less than the second threshold, and the port usage rate is greater than or equal to the second threshold and less than or equal to the first threshold;
  • the generating the management request according to the usage state includes:
  • This paper also discloses a port resource management method, including:
  • the processing is performed to generate a management request response message
  • the sending the management request response message to the user equipment includes:
  • the port usage according to the multiplexed IP address Determining whether there is a vacant port resource, if there is a vacant port resource, allocating a new port resource to the user equipment, and sending the new port resource information to the user equipment by using the management request response message ;
  • This paper also discloses a port resource management method, including:
  • the user equipment acquires the usage status of the current port resource, generates a management request according to the usage status, and sends the management request to the server;
  • the user equipment receives the management request response message, parses the management request response message, and updates a port resource.
  • the foregoing method further includes:
  • a management request for requesting an available port is generated and sent to the server.
  • the usage status includes:
  • the port usage rate is greater than the first threshold, the port usage rate is less than the second threshold, and the port usage rate is greater than or equal to the second threshold and less than or equal to the first threshold;
  • the generating the management request according to the usage state includes:
  • the processing is performed to generate a management request response message, and the sending the management request response message to the user equipment includes:
  • the port usage according to the multiplexed IP address Determining whether there is a vacant port resource, if there is a vacant port resource, allocating a new port resource to the user equipment, and sending the new port resource information to the user equipment by using the management request response message ;
  • client device including:
  • Obtaining a module configured to acquire a usage status of the current port resource, and generate a management request according to the usage status
  • a first sending module configured to send the management request to a server
  • a first receiving module configured to receive a management request response message fed back by the server
  • the management module is configured to parse the management request response message and update the port resource.
  • the acquiring module is further configured to generate a management request for applying for an available port when detecting that no port is available.
  • the usage status includes:
  • the port usage rate is greater than the first threshold, the port usage rate is less than the second threshold, and the port usage rate is greater than or equal to the second threshold and less than or equal to the first threshold;
  • the acquiring module generates a management request according to the usage status, including:
  • This article also discloses a server that includes:
  • a second receiving module configured to receive a management request sent by the user equipment, where the management request is generated by the user equipment according to a usage status of the port resource;
  • a processing module configured to parse the management request, perform processing, and generate a management request response message
  • the second sending module is configured to send the management request response message to the user equipment.
  • the processing module performs processing, and generating a management request response message includes:
  • the management request When the management request is used to apply for an available port, determine whether there is a spare port resource according to the port usage of the multiplexed IP address, and if there is a spare port resource, allocate a new port resource to the user equipment, and The information about the new port resource is carried by the management request response message;
  • the invention also discloses a port resource management system, including a client device and a server, wherein
  • the user equipment is configured to acquire a usage status of the current port resource, generate a management request according to the usage status, send the management request to the server, and receive the management request response message, and parse the management request response.
  • Message update port resources
  • the server is configured to receive the management request, parse the management request, perform processing, generate a management request response message, and send the management request response message to the client device.
  • the user equipment is further configured to: when detecting that no port is available, generate a management request for applying for an available port, and send the request to the server.
  • the usage status includes:
  • the port usage rate is greater than the first threshold, the port usage rate is less than the second threshold, and the port usage rate is greater than or equal to the second threshold and less than or equal to the first threshold;
  • the generating, by the user equipment, the management request according to the usage status includes:
  • the server performs processing to generate a management request response message, and sending the management request response message to the user equipment includes:
  • the management request When the management request is used to apply for an available port, determine whether there is a spare port resource according to the port usage of the multiplexed IP address, and if there is a spare port resource, allocate a new port resource to the user equipment, and The information about the new port resource is sent to the user equipment by using the management request response message;
  • This document provides a port resource management method.
  • a user-side device generates a management request according to the usage status of its port resource, and sends it to the server to cooperate with the server to manage port resource allocation management.
  • the port resource is insufficient, apply for a new port resource.
  • the application releases some port resources (other CPEs can apply to use these port resources), thus implementing a mechanism for dynamically allocating port resources based on the CPE port resource usage status, and fixed allocation in the related art.
  • the port resource allocation is unreasonable, and some CPE port resources are insufficient, and other CPE port resources are wasted.
  • the port resource allocation method in the port resource allocation mode is not solved. Reasonable question.
  • FIG. 1 is a schematic structural diagram of a port resource management system according to Embodiment 1 of the present invention.
  • FIG. 2 is a flowchart of a port resource management method according to Embodiment 2 of the present invention.
  • FIG. 3 is a schematic diagram of information exchange of a communication system according to Embodiment 3 of the present invention.
  • FIG. 4 is a schematic diagram of information exchange between a user side device and a server in Embodiment 3 of the present invention.
  • Embodiment 1 is a diagrammatic representation of Embodiment 1:
  • FIG. 1 is a schematic structural diagram of a port resource management system according to Embodiment 1 of the present invention.
  • a port resource management system includes a client device 1 and a server 2, where:
  • the client device 1 is configured to acquire the usage status of the current port resource, generate a management request according to the usage status, and send a management request to the server 2;
  • the server 2 is configured to receive the management request, parse the management request, perform processing, generate a management request response message, and send a management request response message to the user equipment 1;
  • the client device 1 is further configured to receive a management request response message, parse the management request response message, and update the port resource.
  • the client device 1 in the above embodiment is further configured to generate a management request for requesting an available port when it detects that no port is available, and send it to the server.
  • the usage state in the foregoing embodiment includes: the port usage rate is greater than the first threshold, the port usage rate is less than the second threshold, and the port usage rate is greater than or equal to the second threshold and less than or equal to the first threshold, where The first threshold is greater than the second threshold;
  • the client device 1 generates a management request according to the usage state, including:
  • the server 2 processes, generates a management request response message, and sends a management request response message to the user equipment 1 including:
  • the management request When the management request is used to apply for an available port, it is determined whether there is a spare port resource according to the port usage of the multiplexed IP address. If there is a spare port resource, the user device is allocated a new port resource, and the new port is allocated. The information of the resource is sent to the user equipment through the management request response message;
  • the management request When the management request is used to apply for releasing the port, release part of the port resource allocated for the client device, update the port usage of the multiplexed IP address, and pass the information of the released port resource through the tube.
  • the request response message is sent to the client device.
  • the server 2 involved in the present invention is a DHCP 4o6 server, such as the one shown in Embodiment 3, that can implement A+P information distribution.
  • the user side device CPE and the server provided by the embodiment of the present invention are described in detail with reference to FIG. 1 .
  • the user side device 1 provided by the embodiment of the present invention includes:
  • the obtaining module 11 is configured to acquire a usage status of the current port resource, and generate a management request according to the usage status;
  • the sending module 12 is configured to send a management request to the server
  • the receiving module 13 is configured to receive a management request response message fed back by the server;
  • the management module 14 is configured to parse the management request response message and update the port resource.
  • the acquisition module 11 in the above embodiment is further configured to generate a management request for requesting an available port when detecting that no port is available.
  • the usage state in the foregoing embodiment includes: the port usage rate is greater than the first threshold, the port usage rate is less than the second threshold, and the port usage rate is greater than or equal to the second threshold and less than or equal to the first threshold;
  • the obtaining module 11 generates a management request according to the usage status, including:
  • a management request for applying for an available port is generated; and when the usage status is that the port usage rate is less than the second threshold, a request for releasing the port management request is generated.
  • the server 2 provided by the embodiment of the present invention includes:
  • the receiving module 21 is configured to receive a management request sent by the user equipment, where the management request is generated by the user equipment according to the usage status of the port resource;
  • the processing module 22 is configured to parse the management request, perform processing, and generate a management request response message
  • the sending module 23 is configured to send a management request response message to the client device.
  • the processing module 23 in the foregoing embodiment performs processing, and the generating the management request response message includes: when the management request is used to apply for an available port, according to the end of the multiplexed IP address The port usage is used to determine whether there is a spare port resource. If there is a spare port resource, the client device is allocated a new port resource, and the new port resource information is carried by the management request response message; the management request is used to apply for releasing the port. The part of the port resource allocated for the user equipment is released, the port usage of the multiplexed IP address is updated, and the information of the released port resource is carried by the management request response message.
  • Embodiment 2 is a diagrammatic representation of Embodiment 1:
  • FIG. 2 is a flowchart of a port resource management method according to Embodiment 2 of the present invention. As shown in FIG. 2, in the embodiment, the provided port resource management method includes the following steps S201 to S203:
  • S201 The user equipment acquires the usage status of the current port resource, generates a management request according to the usage status, and sends a management request to the server.
  • S202 The server receives the management request, parses the management request, performs processing, generates a management request response message, and sends a management request response message to the user equipment.
  • S203 The client device receives the management request response message, parses the management request response message, and updates the port resource.
  • the port resource management in the foregoing embodiment may further include: when the client device detects that there is no available port, generate a management request for applying for an available port, and send the request to the server.
  • the usage state in the foregoing embodiment includes: the port usage rate is greater than the first threshold, the port usage rate is less than the second threshold, the port usage rate is greater than the second threshold, and is less than the first threshold, where A threshold is greater than the second threshold
  • the generating the management request according to the usage state includes: when the usage status is that the port usage rate is greater than the first threshold, generating a management request for applying for an available port; and when the usage status is that the port usage rate is less than the second threshold, generating a request for releasing the port Management request;
  • the management request is parsed and processed, and the generating the management request response message includes: when the management request is used to apply for an available port, determining whether there is a spare port resource according to the port usage of the multiplexed IP address, and if there is a spare port resource, The user equipment is allocated a new port resource, and the new port resource information is sent to the user equipment through the management request response message; when the management request is used to apply for releasing the port, part of the port resource allocated for the user equipment is released. , update complex The port usage of the IP address is used, and the information of the released port resource is sent to the client device through the management request response message.
  • the implementation of the port resource management method provided by the embodiment of the present invention on the user side device includes:
  • the client device acquires the usage status of the current port resource, and generates a management request according to the usage status;
  • the method in the above embodiment may further include: generating a management request for requesting an available port when detecting that no port is available.
  • the usage status in the foregoing embodiment includes: the port usage rate is greater than the first threshold, the port usage rate is less than the second threshold, the port usage rate is greater than the second threshold, and is less than the first threshold;
  • the generating the management request according to the usage state includes: when the usage status is that the port usage rate is greater than the first threshold, generating a management request for applying for an available port; and when the usage status is that the port usage rate is less than the second threshold, generating a request for releasing the port Management request.
  • the implementation of the port resource management method provided by the embodiment of the present invention in the server includes:
  • the server receives the management request sent by the user equipment, and the management request is generated by the user equipment according to the usage status of the port resource;
  • the parsing management request in the foregoing embodiment is processed, and the generating the management request response message includes: when the management request is used to apply for an available port, determining whether there is a vacancy according to the port usage of the multiplexed IP address.
  • the port resource if there is a spare port resource, allocates a new port resource to the user equipment, and sends the new port resource information to the user equipment through the management request response message; when the management request is used to apply for releasing the port, release
  • the port usage of the multiplexed IP address is updated for the part of the port resource allocated by the user equipment, and the released port resource is sent to the user equipment through the management request response message.
  • Embodiment 3 is a diagrammatic representation of Embodiment 3
  • the A+P information of the user-side device may be obtained by using the Option option of the DHCPv6 protocol to obtain the information, and acquiring the DHCP 4o6 method (this is actually a dynamic IPv4 address).
  • the IPv4 configuration parameters are independent of IPv6 by encapsulating the contents of the DHCPv4 message in the DHCPv6 message.
  • the MAP_PORT_SET attribute of the PCP protocol is used to obtain the IPv4 address and a set of ports.
  • the DHCP 4o6 mode is simple to interact, and it can also solve the defect of using the Option (option) of the DHCPv6 protocol. It has been the preferred technology in the lw4o6 scenario.
  • the port resources obtained by the CPE through the DHCP 4o6 are fixed and limited. As the data service on the CPE increases, the port block resources are exhausted, and the subsequent CPE service development will be affected;
  • the embodiment of the invention provides a method and a device for acquiring and allocating port resources on demand, which can solve the problem that the port resources are exhausted when the A+P information is distributed in the application of the DHCP 4o6 protocol in the related art, and By intelligently controlling the usage of the port, the actual usage of the port is improved, and the service performance of the lw4o6 scenario is improved.
  • the port resource management system provided by the embodiment of the present invention includes:
  • the NAPT device belongs to the user side device and is responsible for address and port conversion when data is forwarded.
  • the port obtaining device belongs to the user side device and periodically monitors the port usage and is responsible for port application and release.
  • the port usage rate exceeds the first threshold Kmax, the port request request is initiated to the server, and when the port usage rate is detected to be lower than the first threshold Kmin, the port release request is initiated to the server;
  • the port allocation device belongs to the server and maintains the port information of the server, accepts the application and release of the port, and performs real-time statistics on the port usage of each IP address.
  • the port information request the port information of a unit is delivered.
  • the port information is released, the port information is maintained.
  • the user side device 1 provided by the embodiment of the present invention includes:
  • the port monitoring module 41 is configured to periodically monitor the port usage, and is responsible for port application and release. It is equivalent to the combination of the acquisition module 11 and the management module 14 in the embodiment shown in FIG. When it is detected that the port usage exceeds the first threshold Kmax, a port request request is initiated to the server, and when the port usage rate is detected to be lower than the first threshold Kmin, a port release request is initiated to the server.
  • Port Maintenance Module 42 Set to save the current port usage.
  • NAPT module 43 Set to address and port conversion when data is forwarded.
  • Tunnel encapsulation module 44 Set to data encapsulation.
  • the lw4o6 tunnel data forwarding process includes the following steps S301 to S305:
  • S301 The LAN side terminal user of the CPE sends an IPv4 service request.
  • S302 In the process of forwarding the CPE packet, the NAPT conversion is required.
  • the NAPT module 43 requests the port maintenance module 42 for available port information;
  • the port maintenance module 42 allocates available ports according to the current port usage; if no port is available, no allocation is performed;
  • S304 The NAPT module 43 performs processing according to the request result of the available port. If no port is available, the packet is discarded. If the port is available, the source IP address and source port are modified and the mapping relationship is recorded.
  • the tunnel encapsulation module 44 performs IPv6 encapsulation on the IPv4 packet, and the CPE sends the IPv6 encapsulated packet to the IPv6 network, and finally the IPv6 decapsulation is performed by the AFTR server, and then forwarded to the IPv4 network.
  • the interaction process between the CPE and the DHCP 4o6 server according to the embodiment of the present invention is periodically triggered by the port monitoring module of the CPE, and includes the following steps S401 to S406:
  • the port monitoring module 41 detects that the port usage rate is greater than Kmax, and applies for available port information.
  • the port monitoring module 41 updates the port information to the port maintenance module 42;
  • the port monitoring module 41 detects that the port usage rate is less than Kmin, and requests to release the port information.
  • the port monitoring module 41 updates the port information to the port maintenance module 42.
  • the port obtaining device can perform real-time monitoring by using a timer, and in the timing processing, first obtain the total number of ports currently allocated, and the number of ports currently used, to obtain the current port usage rate.
  • K; the threshold Kmax (first threshold) and Kmin (second threshold) of the port usage rate may be set by a network management or a pre-configured manner; if K>Kmax, the port acquisition process is triggered; if K ⁇ Kmin, the port is triggered. Release the process.
  • the server when the port allocation request is received, the server collects statistics on the port usage of the multiplexed IP address, and if there is a spare port resource block, allocates. If there is no spare port resource block, the port is not allocated: when the received port is reclaimed, the server reclaims some ports and updates the port usage of the multiplexed IP address in real time.
  • the method when the port is obtained, includes: sending a DHCP 4o6 request to the server, encapsulating the specified option, carrying the following information: “Reuse IP address request, port resource request”, and receiving DHCP 4o6 from the server. If the response is specified, the following information: "Reuse IP address response, allocated port resource information” is obtained.
  • the method includes: sending a DHCP 4o6 request to the server, encapsulating the specified option, and carrying the following information: "Reuse IP address” Request, port resource release request", receives the DHCP 4o6 response from the server, parses the specified option, and obtains the following message "Reuse IP address response, port resource release response”.
  • the basic process of the port obtaining device and the port allocating device is described above. By monitoring the port usage in real time, the port can be obtained according to service requirements.
  • the embodiment of the present invention provides a port resource management method, where a user side device generates a management request according to the usage state of the port resource, and sends the management request to the server, and cooperates with the server to manage the allocation management of the port resource.
  • a user side device When the port resource is insufficient, the application is performed.
  • New port resources and when the port resources are free, apply to release some port resources (other CPEs can apply to use these port resources), thus implementing a mechanism for dynamically allocating port resources based on CPE port resource usage status, and related technologies
  • the port resource allocation is unreasonable, and some CPE port resources are insufficient, and other CPE port resources are wasted, and the port in which the port resource allocation mode exists is solved.
  • the problem of unreasonable resource allocation is not due to the port resource allocation.

Abstract

Provided are a customer premises equipment (CPE), a server, and a method and system for managing a port resource. The method comprises: acquiring, by a CPE, a use state of a current port resource, generating a management request according to the use state, and transmitting the management request to a server; receiving, by the server, the management request, parsing and processing the management request to generate a management request response message, and transmitting the management request response message to the CPE; and receiving, by the CPE, the management request response message, parsing the management request response message, and updating the port resource.

Description

用户侧设备、服务器、端口资源管理方法及系统User side device, server, port resource management method and system 技术领域Technical field
本文涉及但不限于通信技术领域,尤其涉及一种用户侧设备、服务器、端口资源管理方法及系统。This document relates to, but is not limited to, the field of communication technologies, and in particular, to a user side device, a server, a port resource management method and system.
背景技术Background technique
lw4o6(Lightweight 4over6,轻量化DS-Lite)是轻量级的IPv4至IPv6的过渡技术,与DS-Lite(Dual-Stack Lite,双栈精简技术)主要的区别是将NAPT(Network Address Port Translation,网络地址端口转换)从CGN(Carrier Grade Network Address Translation,运营商级网络地址转换)、AFTR(Address Family Transition Router,地址族过滤路由器)转移到了CPE(Customer Premises Equipment,用户侧设备)上,由CPE完成NAPT功能,该技术要求每个CPE都获取一个公网IPv4地址,因为IPv4地址资源的枯竭,采用A+P(Address Plus Port,地址加端口)的分配机制来使多个CPE共享一个IPv4地址。Lw4o6 (Lightweight 4over6, Lightweight DS-Lite) is a lightweight IPv4 to IPv6 transition technology. The main difference from DS-Lite (Dual-Stack Lite) is the Network Address Port Translation (NAPT). Network address port translation) is transferred from CGN (Carrier Grade Network Address Translation), AFTR (Address Family Transition Router) to CPE (Customer Premises Equipment), by CPE The NAPT function is completed. This technology requires each CPE to obtain a public network IPv4 address. Because of the exhaustion of IPv4 address resources, an A+P (Address Plus Port) allocation mechanism is used to enable multiple CPEs to share an IPv4 address. .
但在相关技术下,CPE通过DHCP 4o6(DHCPv4over DHCPv6,基于DHCPv6封装的DHCPv4)服务器获取的端口资源是固定、有限的;随着部分CPE上数据业务增多,当其端口资源被耗尽时,将影响后续CPE业务的开展,而另外一些CPE上的端口资源由于数据业务少,也会存在部分端口资源的浪费;即,相关技术中端口资源分配方式存在端口资源分配不合理的问题,将导致部分CPE端口资源不足,而另外一些CPE端口资源浪费。However, in the related art, the port resources obtained by the CPE through the DHCP 4o6 (DHCPv4over DHCPv6, DHCPv6-based DHCPv4) server are fixed and limited; as the data services on some CPEs increase, when the port resources are exhausted, Affects the development of the subsequent CPE services. The port resources on other CPEs are also wasteful due to the lack of data services. That is, the port resource allocation method in the related technology has an unreasonable allocation of port resources, which will lead to some The CPE port resources are insufficient, while other CPE port resources are wasted.
因此,如何提供一种可以解决端口资源分配方式端口资源分配不合理的端口资源管理方法,是本领域技术人员亟待解决的技术问题。Therefore, how to provide a port resource management method that can solve the problem that the port resource allocation mode is unreasonable in the port resource allocation manner is a technical problem to be solved by those skilled in the art.
发明内容Summary of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
本文提供了一种用户侧设备、服务器、端口资源管理方法及系统,可以 解决端口资源分配方式存在的端口资源分配不合理的问题。This document provides a user side device, server, port resource management method and system, which can Solve the problem that the port resource allocation in the port resource allocation mode is unreasonable.
本文提供了一种端口资源管理方法,其包括:This document provides a port resource management method, which includes:
用户端设备获取当前端口资源的使用状态,根据所述使用状态生成管理请求;The client device acquires a usage status of the current port resource, and generates a management request according to the usage status;
发送所述管理请求至服务器;Sending the management request to the server;
接收所述服务器反馈的管理请求响应消息;Receiving a management request response message fed back by the server;
解析所述管理请求响应消息,更新端口资源。Parsing the management request response message and updating the port resource.
可选地,上述方法还包括:Optionally, the foregoing method further includes:
当所述用户端检测到无可用端口时,生成用于申请可用端口的管理请求,并发送至所述服务器。When the UE detects that there is no available port, a management request for requesting an available port is generated and sent to the server.
可选地,上述方法中,所述使用状态包括:Optionally, in the foregoing method, the usage status includes:
端口使用率大于第一阈值,端口使用率小于第二阈值,端口使用率大于等于第二阈值、且小于等于第一阈值;The port usage rate is greater than the first threshold, the port usage rate is less than the second threshold, and the port usage rate is greater than or equal to the second threshold and less than or equal to the first threshold;
所述根据所述使用状态生成管理请求包括:The generating the management request according to the usage state includes:
当所述使用状态为端口使用率大于第一阈值时,生成用于申请可用端口的管理请求;When the usage status is that the port usage rate is greater than the first threshold, generating a management request for applying for an available port;
当所述使用状态为端口使用率小于第二阈值时,生成用于申请释放端口的管理请求。When the usage status is that the port usage rate is less than the second threshold, a management request for applying for releasing the port is generated.
本文还公开了一种端口资源管理方法,包括:This paper also discloses a port resource management method, including:
服务器接收用户端设备发送的管理请求,所述管理请求为所述用户端设备根据其端口资源的使用状态生成的;Receiving, by the server, a management request sent by the user equipment, where the management request is generated by the user equipment according to the usage status of the port resource;
解析所述管理请求,进行处理,生成管理请求响应消息;Parsing the management request, performing processing, and generating a management request response message;
发送所述管理请求响应消息至所述用户端设备。Sending the management request response message to the client device.
可选地,上述方法中,所述进行处理,生成管理请求响应消息,发送所述管理请求响应消息至所述用户端设备包括:Optionally, in the foregoing method, the processing is performed to generate a management request response message, and the sending the management request response message to the user equipment includes:
当所述管理请求用于申请可用端口时,根据复用IP地址的端口使用情况 判断是否存在空余端口资源,若存在空余端口资源,则为所述用户端设备分配新的端口资源,并将所述新的端口资源的信息通过所述管理请求响应消息发送至所述用户端设备;When the management request is used to apply for an available port, the port usage according to the multiplexed IP address Determining whether there is a vacant port resource, if there is a vacant port resource, allocating a new port resource to the user equipment, and sending the new port resource information to the user equipment by using the management request response message ;
当所述管理请求用于申请释放端口时,释放为所述用户端设备分配的部分端口资源,更新所述复用IP地址的端口使用情况,并将被释放的端口资源的信息通过所述管理请求响应消息发送至所述用户端设备。When the management request is used to apply for releasing the port, releasing part of the port resource allocated for the user equipment, updating the port usage of the multiplexed IP address, and passing the information of the released port resource through the management A request response message is sent to the client device.
本文还公开了一种端口资源管理方法,包括:This paper also discloses a port resource management method, including:
用户端设备获取当前端口资源的使用状态,根据所述使用状态生成管理请求,发送所述管理请求至服务器;The user equipment acquires the usage status of the current port resource, generates a management request according to the usage status, and sends the management request to the server;
所述服务器接收所述管理请求,解析所述管理请求,进行处理,生成管理请求响应消息,发送所述管理请求响应消息至所述用户端设备;Receiving, by the server, the management request, parsing the management request, performing processing, generating a management request response message, and sending the management request response message to the user equipment;
所述用户端设备接收所述管理请求响应消息,解析所述管理请求响应消息,更新端口资源。The user equipment receives the management request response message, parses the management request response message, and updates a port resource.
可选地,上述方法还包括:Optionally, the foregoing method further includes:
当所述用户端设备检测到无可用端口时,生成用于申请可用端口的管理请求,并发送至所述服务器。When the client device detects that there is no available port, a management request for requesting an available port is generated and sent to the server.
可选地,上述方法中,所述使用状态包括:Optionally, in the foregoing method, the usage status includes:
端口使用率大于第一阈值,端口使用率小于第二阈值,端口使用率大于等于第二阈值、且小于等于第一阈值;The port usage rate is greater than the first threshold, the port usage rate is less than the second threshold, and the port usage rate is greater than or equal to the second threshold and less than or equal to the first threshold;
所述根据所述使用状态生成管理请求包括:The generating the management request according to the usage state includes:
当所述使用状态为端口使用率大于第一阈值时,生成用于申请可用端口的管理请求;When the usage status is that the port usage rate is greater than the first threshold, generating a management request for applying for an available port;
当所述使用状态为端口使用率小于第二阈值时,生成用于申请释放端口的管理请求;When the usage status is that the port usage rate is less than the second threshold, generating a management request for applying for releasing the port;
所述进行处理,生成管理请求响应消息,发送所述管理请求响应消息至所述用户端设备包括:The processing is performed to generate a management request response message, and the sending the management request response message to the user equipment includes:
当所述管理请求用于申请可用端口时,根据复用IP地址的端口使用情况 判断是否存在空余端口资源,若存在空余端口资源,则为所述用户端设备分配新的端口资源,并将所述新的端口资源的信息通过所述管理请求响应消息发送至所述用户端设备;When the management request is used to apply for an available port, the port usage according to the multiplexed IP address Determining whether there is a vacant port resource, if there is a vacant port resource, allocating a new port resource to the user equipment, and sending the new port resource information to the user equipment by using the management request response message ;
当所述管理请求用于申请释放端口时,释放为所述用户端设备分配的部分端口资源,更新所述复用IP地址的端口使用情况,并将被释放的端口资源的信息通过所述管理请求响应消息发送至所述用户端设备。When the management request is used to apply for releasing the port, releasing part of the port resource allocated for the user equipment, updating the port usage of the multiplexed IP address, and passing the information of the released port resource through the management A request response message is sent to the client device.
本文还公开了一种用户端设备,包括:This document also discloses a client device, including:
获取模块,设置为获取当前端口资源的使用状态,根据所述使用状态生成管理请求;Obtaining a module, configured to acquire a usage status of the current port resource, and generate a management request according to the usage status;
第一发送模块,设置为发送所述管理请求至服务器;a first sending module, configured to send the management request to a server;
第一接收模块,设置为接收所述服务器反馈的管理请求响应消息;a first receiving module, configured to receive a management request response message fed back by the server;
管理模块,设置为解析所述管理请求响应消息,更新端口资源。The management module is configured to parse the management request response message and update the port resource.
可选地,上述用户端设备中,所述获取模块还设置为当检测到无可用端口时,生成用于申请可用端口的管理请求。Optionally, in the foregoing user equipment, the acquiring module is further configured to generate a management request for applying for an available port when detecting that no port is available.
可选地,上述用户端设备中,所述使用状态包括:Optionally, in the foregoing user equipment, the usage status includes:
端口使用率大于第一阈值,端口使用率小于第二阈值,端口使用率大于等于第二阈值、且小于等于第一阈值;The port usage rate is greater than the first threshold, the port usage rate is less than the second threshold, and the port usage rate is greater than or equal to the second threshold and less than or equal to the first threshold;
所述获取模块根据所述使用状态生成管理请求包括:The acquiring module generates a management request according to the usage status, including:
在所述使用状态为端口使用率大于第一阈值时,生成用于申请可用端口的管理请求;在所述使用状态为端口使用率小于第二阈值时,生成用于申请释放端口的管理请求。And when the usage status is that the port usage rate is greater than the first threshold, generating a management request for applying for an available port; and when the usage status is that the port usage rate is less than the second threshold, generating a management request for applying for releasing the port.
本文还公开了一种服务器,包括:This article also discloses a server that includes:
第二接收模块,设置为接收用户端设备发送的管理请求,所述管理请求为所述用户端设备根据其端口资源的使用状态生成的;a second receiving module, configured to receive a management request sent by the user equipment, where the management request is generated by the user equipment according to a usage status of the port resource;
处理模块,设置为解析所述管理请求,进行处理,生成管理请求响应消息;a processing module, configured to parse the management request, perform processing, and generate a management request response message;
第二发送模块,设置为发送所述管理请求响应消息至所述用户端设备。 The second sending module is configured to send the management request response message to the user equipment.
可选地,上述服务器中,所述处理模块进行处理,生成管理请求响应消息包括:Optionally, in the foregoing server, the processing module performs processing, and generating a management request response message includes:
当所述管理请求用于申请可用端口时,根据复用IP地址的端口使用情况判断是否存在空余端口资源,若存在空余端口资源,则为所述用户端设备分配新的端口资源,并将所述新的端口资源的信息通过所述管理请求响应消息携带;When the management request is used to apply for an available port, determine whether there is a spare port resource according to the port usage of the multiplexed IP address, and if there is a spare port resource, allocate a new port resource to the user equipment, and The information about the new port resource is carried by the management request response message;
当所述管理请求用于申请释放端口时,释放为所述用户端设备分配的部分端口资源,更新所述复用IP地址的端口使用情况,并将被释放的端口资源的信息通过所述管理请求响应消息携带。When the management request is used to apply for releasing the port, releasing part of the port resource allocated for the user equipment, updating the port usage of the multiplexed IP address, and passing the information of the released port resource through the management The request response message is carried.
本文还公开了一种端口资源管理系统,包括用户端设备及服务器,其中,The invention also discloses a port resource management system, including a client device and a server, wherein
所述用户端设备,设置为获取当前端口资源的使用状态,根据所述使用状态生成管理请求,发送所述管理请求至所述服务器,以及接收所述管理请求响应消息,解析所述管理请求响应消息,更新端口资源;The user equipment is configured to acquire a usage status of the current port resource, generate a management request according to the usage status, send the management request to the server, and receive the management request response message, and parse the management request response. Message, update port resources;
所述服务器,设置为接收所述管理请求,解析所述管理请求,进行处理,生成管理请求响应消息,发送所述管理请求响应消息至所述用户端设备。The server is configured to receive the management request, parse the management request, perform processing, generate a management request response message, and send the management request response message to the client device.
可选地,上述端口资源管理系统中,所述用户端设备还设置为当检测到无可用端口时,生成用于申请可用端口的管理请求,并发送至所述服务器。Optionally, in the foregoing port resource management system, the user equipment is further configured to: when detecting that no port is available, generate a management request for applying for an available port, and send the request to the server.
可选地,上述端口资源管理系统中,所述使用状态包括:Optionally, in the foregoing port resource management system, the usage status includes:
端口使用率大于第一阈值,端口使用率小于第二阈值,端口使用率大于等于第二阈值、且小于等于第一阈值;The port usage rate is greater than the first threshold, the port usage rate is less than the second threshold, and the port usage rate is greater than or equal to the second threshold and less than or equal to the first threshold;
所述用户端设备根据所述使用状态生成管理请求包括:The generating, by the user equipment, the management request according to the usage status includes:
当所述使用状态为端口使用率大于第一阈值时,生成用于申请可用端口的管理请求;When the usage status is that the port usage rate is greater than the first threshold, generating a management request for applying for an available port;
当所述使用状态为端口使用率小于第二阈值时,生成用于申请释放端口的管理请求;When the usage status is that the port usage rate is less than the second threshold, generating a management request for applying for releasing the port;
所述服务器进行处理,生成管理请求响应消息,发送所述管理请求响应消息至所述用户端设备包括: The server performs processing to generate a management request response message, and sending the management request response message to the user equipment includes:
当所述管理请求用于申请可用端口时,根据复用IP地址的端口使用情况判断是否存在空余端口资源,若存在空余端口资源,则为所述用户端设备分配新的端口资源,并将所述新的端口资源的信息通过所述管理请求响应消息发送至所述用户端设备;When the management request is used to apply for an available port, determine whether there is a spare port resource according to the port usage of the multiplexed IP address, and if there is a spare port resource, allocate a new port resource to the user equipment, and The information about the new port resource is sent to the user equipment by using the management request response message;
当所述管理请求用于申请释放端口时,释放为所述用户端设备分配的部分端口资源,更新所述复用IP地址的端口使用情况,并将被释放的端口资源的信息通过所述管理请求响应消息发送至所述用户端设备。When the management request is used to apply for releasing the port, releasing part of the port resource allocated for the user equipment, updating the port usage of the multiplexed IP address, and passing the information of the released port resource through the management A request response message is sent to the client device.
本文提供了一种端口资源管理方法,用户侧设备根据其端口资源的使用状态生成管理请求,并发送至服务器,与服务器配合管理端口资源的分配管理,当其端口资源不足时,申请新端口资源,而当其端口资源空余时,申请释放部分端口资源(其他CPE就可以申请使用这些端口资源),这样,实现了基于CPE端口资源使用状态来动态分配端口资源的机制,与相关技术中固定分配端口资源的方式相比,不会存在端口资源分配不合理的问题,也不会出现部分CPE端口资不足、而另外一些CPE端口资源浪费的现象,解决了端口资源分配方式存在的端口资源分配不合理的问题。This document provides a port resource management method. A user-side device generates a management request according to the usage status of its port resource, and sends it to the server to cooperate with the server to manage port resource allocation management. When the port resource is insufficient, apply for a new port resource. When the port resource is free, the application releases some port resources (other CPEs can apply to use these port resources), thus implementing a mechanism for dynamically allocating port resources based on the CPE port resource usage status, and fixed allocation in the related art. Compared with the port resource mode, there is no problem that the port resource allocation is unreasonable, and some CPE port resources are insufficient, and other CPE port resources are wasted. The port resource allocation method in the port resource allocation mode is not solved. Reasonable question.
在阅读并理解了附图和详细描述后,可以明白其他方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图概述BRIEF abstract
图1为本发明实施例一提供的端口资源管理系统的结构示意图;1 is a schematic structural diagram of a port resource management system according to Embodiment 1 of the present invention;
图2为本发明实施例二提供的端口资源管理方法的流程图;2 is a flowchart of a port resource management method according to Embodiment 2 of the present invention;
图3为本发明实施例三提供的通信系统的信息交换示意图;3 is a schematic diagram of information exchange of a communication system according to Embodiment 3 of the present invention;
图4为本发明实施例三中的用户侧设备与服务器的信息交换示意图。FIG. 4 is a schematic diagram of information exchange between a user side device and a server in Embodiment 3 of the present invention.
本发明的实施方式Embodiments of the invention
下文中将结合附图对本文的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。 The embodiments herein will be described in detail below with reference to the accompanying drawings. It should be noted that, in the case of no conflict, the features in the embodiments and the embodiments in the present application may be arbitrarily combined with each other.
实施例一:Embodiment 1:
图1为本发明实施例一提供的端口资源管理系统的结构示意图,由图1可知,在本实施例中,提供的端口资源管理系统包括用户端设备1及服务器2,其中:FIG. 1 is a schematic structural diagram of a port resource management system according to Embodiment 1 of the present invention. As shown in FIG. 1 , in the embodiment, a port resource management system includes a client device 1 and a server 2, where:
用户端设备1设置为获取当前端口资源的使用状态,根据使用状态生成管理请求,发送管理请求至服务器2;The client device 1 is configured to acquire the usage status of the current port resource, generate a management request according to the usage status, and send a management request to the server 2;
服务器2设置为接收管理请求,解析管理请求,进行处理,生成管理请求响应消息,发送管理请求响应消息至用户端设备1;The server 2 is configured to receive the management request, parse the management request, perform processing, generate a management request response message, and send a management request response message to the user equipment 1;
可选地,用户端设备1还设置为接收管理请求响应消息,解析管理请求响应消息,更新端口资源。Optionally, the client device 1 is further configured to receive a management request response message, parse the management request response message, and update the port resource.
在一些可选实施例中,上述实施例中的用户端设备1还设置为当检测到无可用端口时,生成用于申请可用端口的管理请求,并发送至服务器。In some optional embodiments, the client device 1 in the above embodiment is further configured to generate a management request for requesting an available port when it detects that no port is available, and send it to the server.
在一些可选实施例中,上述实施例中的使用状态包括:端口使用率大于第一阈值,端口使用率小于第二阈值,端口使用率大于等于第二阈值、且小于等于第一阈值,其中,第一阈值大于第二阈值;In some optional embodiments, the usage state in the foregoing embodiment includes: the port usage rate is greater than the first threshold, the port usage rate is less than the second threshold, and the port usage rate is greater than or equal to the second threshold and less than or equal to the first threshold, where The first threshold is greater than the second threshold;
用户端设备1,根据使用状态生成管理请求包括:The client device 1 generates a management request according to the usage state, including:
设置为当使用状态为端口使用率大于第一阈值时,生成用于申请可用端口的管理请求;当使用状态为端口使用率小于第二阈值时,生成用于申请释放端口的管理请求;When the usage status is that the port usage rate is greater than the first threshold, generating a management request for applying for an available port; and when the usage status is that the port usage rate is less than the second threshold, generating a management request for applying for releasing the port;
服务器2,进行处理,生成管理请求响应消息,发送管理请求响应消息至用户端设备1包括:The server 2 processes, generates a management request response message, and sends a management request response message to the user equipment 1 including:
设置为当管理请求用于申请可用端口时,根据复用IP地址的端口使用情况判断是否存在空余端口资源,若存在空余端口资源,则为用户端设备分配新的端口资源,并将新的端口资源的信息通过管理请求响应消息发送至用户端设备;When the management request is used to apply for an available port, it is determined whether there is a spare port resource according to the port usage of the multiplexed IP address. If there is a spare port resource, the user device is allocated a new port resource, and the new port is allocated. The information of the resource is sent to the user equipment through the management request response message;
当管理请求用于申请释放端口时,释放为用户端设备分配的部分端口资源,更新复用IP地址的端口使用情况,并将被释放的端口资源的信息通过管 理请求响应消息发送至用户端设备。When the management request is used to apply for releasing the port, release part of the port resource allocated for the client device, update the port usage of the multiplexed IP address, and pass the information of the released port resource through the tube. The request response message is sent to the client device.
可选地,本文所涉及的服务器2为如实施例三所示的DHCP 4o6服务器等可以实现A+P信息分配的服务器。Optionally, the server 2 involved in the present invention is a DHCP 4o6 server, such as the one shown in Embodiment 3, that can implement A+P information distribution.
现结合图1对本发明实施例提供的用户侧设备CPE及服务器均进行详细说明。The user side device CPE and the server provided by the embodiment of the present invention are described in detail with reference to FIG. 1 .
在一些可选实施例中,如图1所示,本发明实施例提供的用户侧设备1包括:In some optional embodiments, as shown in FIG. 1, the user side device 1 provided by the embodiment of the present invention includes:
获取模块11,设置为获取当前端口资源的使用状态,根据使用状态生成管理请求;The obtaining module 11 is configured to acquire a usage status of the current port resource, and generate a management request according to the usage status;
发送模块12,设置为发送管理请求至服务器;The sending module 12 is configured to send a management request to the server;
接收模块13,设置为接收服务器反馈的管理请求响应消息;The receiving module 13 is configured to receive a management request response message fed back by the server;
管理模块14,设置为解析管理请求响应消息,更新端口资源。The management module 14 is configured to parse the management request response message and update the port resource.
在一些可选实施例中,上述实施例中的获取模块11还设置为当检测到无可用端口时,生成用于申请可用端口的管理请求。In some optional embodiments, the acquisition module 11 in the above embodiment is further configured to generate a management request for requesting an available port when detecting that no port is available.
在一些可选实施例中,上述实施例中的使用状态包括:端口使用率大于第一阈值,端口使用率小于第二阈值,端口使用率大于等于第二阈值、且小于等于第一阈值;对应地,获取模块11根据使用状态生成管理请求包括:In some optional embodiments, the usage state in the foregoing embodiment includes: the port usage rate is greater than the first threshold, the port usage rate is less than the second threshold, and the port usage rate is greater than or equal to the second threshold and less than or equal to the first threshold; The obtaining module 11 generates a management request according to the usage status, including:
在使用状态为端口使用率大于第一阈值时,生成用于申请可用端口的管理请求;在使用状态为端口使用率小于第二阈值时,生成用于申请释放端口管理请求。When the usage status is that the port usage rate is greater than the first threshold, a management request for applying for an available port is generated; and when the usage status is that the port usage rate is less than the second threshold, a request for releasing the port management request is generated.
在一些可选实施例中,如图1所示,本发明实施例提供的服务器2包括:In some optional embodiments, as shown in FIG. 1, the server 2 provided by the embodiment of the present invention includes:
接收模块21,设置为接收用户端设备发送的管理请求,管理请求为用户端设备根据其端口资源的使用状态生成的;The receiving module 21 is configured to receive a management request sent by the user equipment, where the management request is generated by the user equipment according to the usage status of the port resource;
处理模块22,设置为解析管理请求,进行处理,生成管理请求响应消息;The processing module 22 is configured to parse the management request, perform processing, and generate a management request response message;
发送模块23,设置为发送管理请求响应消息至用户端设备。The sending module 23 is configured to send a management request response message to the client device.
在一些可选实施例中,上述实施例中的处理模块23进行处理,生成管理请求响应消息包括:在管理请求用于申请可用端口时,根据复用IP地址的端 口使用情况判断是否存在空余端口资源,若存在空余端口资源,则为用户端设备分配新的端口资源,并将新的端口资源的信息通过管理请求响应消息携带;在管理请求用于申请释放端口时,释放为用户端设备分配的部分端口资源,更新复用IP地址的端口使用情况,并将被释放的端口资源的信息通过管理请求响应消息携带。In some optional embodiments, the processing module 23 in the foregoing embodiment performs processing, and the generating the management request response message includes: when the management request is used to apply for an available port, according to the end of the multiplexed IP address The port usage is used to determine whether there is a spare port resource. If there is a spare port resource, the client device is allocated a new port resource, and the new port resource information is carried by the management request response message; the management request is used to apply for releasing the port. The part of the port resource allocated for the user equipment is released, the port usage of the multiplexed IP address is updated, and the information of the released port resource is carried by the management request response message.
实施例二:Embodiment 2:
图2为本发明实施例二提供的端口资源管理方法的流程图,由图2可知,在本实施例中,提供的端口资源管理方法包括以下步骤S201至S203:FIG. 2 is a flowchart of a port resource management method according to Embodiment 2 of the present invention. As shown in FIG. 2, in the embodiment, the provided port resource management method includes the following steps S201 to S203:
S201:用户端设备获取当前端口资源的使用状态,根据使用状态生成管理请求,发送管理请求至服务器;S201: The user equipment acquires the usage status of the current port resource, generates a management request according to the usage status, and sends a management request to the server.
S202:服务器接收管理请求,解析管理请求,进行处理,生成管理请求响应消息,发送管理请求响应消息至用户端设备;S202: The server receives the management request, parses the management request, performs processing, generates a management request response message, and sends a management request response message to the user equipment.
S203:用户端设备接收管理请求响应消息,解析管理请求响应消息,更新端口资源。S203: The client device receives the management request response message, parses the management request response message, and updates the port resource.
在一些可选实施例中,上述实施例中的端口资源管理还可以包括:当用户端设备检测到无可用端口时,生成用于申请可用端口的管理请求,并发送至服务器。In some optional embodiments, the port resource management in the foregoing embodiment may further include: when the client device detects that there is no available port, generate a management request for applying for an available port, and send the request to the server.
在一些可选实施例中,上述实施例中的使用状态包括:端口使用率大于第一阈值,端口使用率小于第二阈值,端口使用率大于第二阈值、且小于第一阈值,其中,第一阈值大于第二阈值In some optional embodiments, the usage state in the foregoing embodiment includes: the port usage rate is greater than the first threshold, the port usage rate is less than the second threshold, the port usage rate is greater than the second threshold, and is less than the first threshold, where A threshold is greater than the second threshold
根据使用状态生成管理请求包括:当使用状态为端口使用率大于第一阈值时,生成用于申请可用端口的管理请求;当使用状态为端口使用率小于第二阈值时,生成用于申请释放端口的管理请求;The generating the management request according to the usage state includes: when the usage status is that the port usage rate is greater than the first threshold, generating a management request for applying for an available port; and when the usage status is that the port usage rate is less than the second threshold, generating a request for releasing the port Management request;
可选地,解析管理请求,进行处理,生成管理请求响应消息包括:当管理请求用于申请可用端口时,根据复用IP地址的端口使用情况判断是否存在空余端口资源,若存在空余端口资源,则为用户端设备分配新的端口资源,并将新的端口资源的信息通过管理请求响应消息发送至用户端设备;当管理请求用于申请释放端口时,释放为用户端设备分配的部分端口资源,更新复 用IP地址的端口使用情况,并将被释放的端口资源的信息通过管理请求响应消息发送至用户端设备。Optionally, the management request is parsed and processed, and the generating the management request response message includes: when the management request is used to apply for an available port, determining whether there is a spare port resource according to the port usage of the multiplexed IP address, and if there is a spare port resource, The user equipment is allocated a new port resource, and the new port resource information is sent to the user equipment through the management request response message; when the management request is used to apply for releasing the port, part of the port resource allocated for the user equipment is released. , update complex The port usage of the IP address is used, and the information of the released port resource is sent to the client device through the management request response message.
在一些可选实施例中,本发明实施例提供的端口资源管理方法在用户侧设备的体现包括:In some optional embodiments, the implementation of the port resource management method provided by the embodiment of the present invention on the user side device includes:
用户端设备获取当前端口资源的使用状态,根据使用状态生成管理请求;The client device acquires the usage status of the current port resource, and generates a management request according to the usage status;
发送管理请求至服务器;Send a management request to the server;
接收服务器反馈的管理请求响应消息;Receiving a management request response message fed back by the server;
解析管理请求响应消息,更新端口资源。Parse the management request response message and update the port resource.
在一些可选实施例中,上述实施例中的方法还可以包括:当检测到无可用端口时,生成用于申请可用端口的管理请求。In some optional embodiments, the method in the above embodiment may further include: generating a management request for requesting an available port when detecting that no port is available.
在一些可选实施例中,上述实施例中的使用状态包括:端口使用率大于第一阈值,端口使用率小于第二阈值,端口使用率大于第二阈值、且小于第一阈值;对应地,根据使用状态生成管理请求包括:当使用状态为端口使用率大于第一阈值时,生成用于申请可用端口的管理请求;当使用状态为端口使用率小于第二阈值时,生成用于申请释放端口的管理请求。In some optional embodiments, the usage status in the foregoing embodiment includes: the port usage rate is greater than the first threshold, the port usage rate is less than the second threshold, the port usage rate is greater than the second threshold, and is less than the first threshold; The generating the management request according to the usage state includes: when the usage status is that the port usage rate is greater than the first threshold, generating a management request for applying for an available port; and when the usage status is that the port usage rate is less than the second threshold, generating a request for releasing the port Management request.
在一些可选实施例中,本发明实施例提供的端口资源管理方法在服务器的体现包括:In some optional embodiments, the implementation of the port resource management method provided by the embodiment of the present invention in the server includes:
服务器接收用户端设备发送的管理请求,管理请求为用户端设备根据其端口资源的使用状态生成的;The server receives the management request sent by the user equipment, and the management request is generated by the user equipment according to the usage status of the port resource;
解析管理请求,进行处理,生成管理请求响应消息;Parsing the management request, processing, and generating a management request response message;
发送管理请求响应消息至用户端设备。Send a management request response message to the client device.
在一些可选实施例中,上述实施例中的解析管理请求,进行处理,生成管理请求响应消息包括:当管理请求用于申请可用端口时,根据复用IP地址的端口使用情况判断是否存在空余端口资源,若存在空余端口资源,则为用户端设备分配新的端口资源,并将新的端口资源的信息通过管理请求响应消息发送至用户端设备;当管理请求用于申请释放端口时,释放为用户端设备分配的部分端口资源,更新复用IP地址的端口使用情况,并将被释放的端口资源通过管理请求响应消息发送至用户端设备。 In some optional embodiments, the parsing management request in the foregoing embodiment is processed, and the generating the management request response message includes: when the management request is used to apply for an available port, determining whether there is a vacancy according to the port usage of the multiplexed IP address. The port resource, if there is a spare port resource, allocates a new port resource to the user equipment, and sends the new port resource information to the user equipment through the management request response message; when the management request is used to apply for releasing the port, release The port usage of the multiplexed IP address is updated for the part of the port resource allocated by the user equipment, and the released port resource is sent to the user equipment through the management request response message.
现结合实际应用场景对本发明实施例做诠释说明。The embodiments of the present invention are described in conjunction with actual application scenarios.
实施例三:Embodiment 3:
在相关技术中,针对lw4o6应用,用户侧设备的A+P信息的获取可以有如下途径:利用DHCPv6协议的Option选项进行获取;利用DHCP 4o6方式进行获取(这实际上是一种动态的IPv4地址分配方式,通过在DHCPv6消息里面封装DHCPv4消息内容,使IPv4配置参数与IPv6相互独立);利用PCP协议的MAP_PORT_SET属性来获取IPv4地址与一组端口的方式。其中,DHCP 4o6方式交互简单,也能解决利用“DHCPv6协议的Option(选项)”进行交互的缺陷,已作为lw4o6场景下首选技术。In the related art, for the lw4o6 application, the A+P information of the user-side device may be obtained by using the Option option of the DHCPv6 protocol to obtain the information, and acquiring the DHCP 4o6 method (this is actually a dynamic IPv4 address). In the allocation mode, the IPv4 configuration parameters are independent of IPv6 by encapsulating the contents of the DHCPv4 message in the DHCPv6 message. The MAP_PORT_SET attribute of the PCP protocol is used to obtain the IPv4 address and a set of ports. Among them, the DHCP 4o6 mode is simple to interact, and it can also solve the defect of using the Option (option) of the DHCPv6 protocol. It has been the preferred technology in the lw4o6 scenario.
但在相关技术中,CPE通过DHCP 4o6获取的端口资源是固定、有限的,随着CPE上数据业务的增多,存在端口块资源被耗尽的情况,后续的CPE业务开展将会受到影响;因此,本发明实施例提供了一种端口资源按需获取、分配的方法及装置,可以解决相关技术中针对在应用DHCP 4o6协议进行A+P信息分发时,面临端口资源被耗尽的问题,并且通过对端口使用情况进行智能控制,提升了端口的实际使用率,最终提升了lw4o6场景下的业务开展性能。However, in the related art, the port resources obtained by the CPE through the DHCP 4o6 are fixed and limited. As the data service on the CPE increases, the port block resources are exhausted, and the subsequent CPE service development will be affected; The embodiment of the invention provides a method and a device for acquiring and allocating port resources on demand, which can solve the problem that the port resources are exhausted when the A+P information is distributed in the application of the DHCP 4o6 protocol in the related art, and By intelligently controlling the usage of the port, the actual usage of the port is improved, and the service performance of the lw4o6 scenario is improved.
在实际应用中,本发明实施例提供的端口资源管理系统包括:In a practical application, the port resource management system provided by the embodiment of the present invention includes:
NAPT装置,属于用户侧设备,负责数据转发时的地址、端口转换;The NAPT device belongs to the user side device and is responsible for address and port conversion when data is forwarded.
端口获取装置,属于用户侧设备,定时监测端口使用情况,负责端口申请、释放。当监测到端口使用率超过第一阈值Kmax时,向服务器发起端口申请请求,当监测到端口使用率低于第一阈值Kmin时,向服务器发起端口释放请求;The port obtaining device belongs to the user side device and periodically monitors the port usage and is responsible for port application and release. When the port usage rate exceeds the first threshold Kmax, the port request request is initiated to the server, and when the port usage rate is detected to be lower than the first threshold Kmin, the port release request is initiated to the server;
端口分配装置,属于服务器,对服务器的端口信息进行维护,接受的端口申请、释放,对每个IP地址的端口使用情况进行实时统计;当收到端口信息请求时,下发一个单元的端口信息;当收到端口信息释放时,对端口信息进行维护。The port allocation device belongs to the server and maintains the port information of the server, accepts the application and release of the port, and performs real-time statistics on the port usage of each IP address. When receiving the port information request, the port information of a unit is delivered. When the port information is released, the port information is maintained.
在如图3所示的通信系统内,本发明实施例提供的用户侧设备1包括:In the communication system shown in FIG. 3, the user side device 1 provided by the embodiment of the present invention includes:
端口监测模块41:设置为定时监测端口使用情况,负责端口申请、释放, 相当于图1所示实施例中的获取模块11及管理模块14的结合。当监测到端口使用率超过第一阈值Kmax时,向服务器发起端口申请请求,当监测到端口使用率低于第一阈值Kmin时,向服务器发起端口释放请求。The port monitoring module 41 is configured to periodically monitor the port usage, and is responsible for port application and release. It is equivalent to the combination of the acquisition module 11 and the management module 14 in the embodiment shown in FIG. When it is detected that the port usage exceeds the first threshold Kmax, a port request request is initiated to the server, and when the port usage rate is detected to be lower than the first threshold Kmin, a port release request is initiated to the server.
端口维护模块42:设置为保存当前端口使用情况。Port Maintenance Module 42: Set to save the current port usage.
NAPT模块43:设置为数据转发时的地址、端口转换。NAPT module 43: Set to address and port conversion when data is forwarded.
隧道封装模块44:设置为数据封装。Tunnel encapsulation module 44: Set to data encapsulation.
如图3所示,基于本发明实施例的lw4o6隧道数据转发流程包含以下步骤S301至S305:As shown in FIG. 3, the lw4o6 tunnel data forwarding process according to the embodiment of the present invention includes the following steps S301 to S305:
S301:CPE的LAN侧终端用户发出IPv4业务请求;S301: The LAN side terminal user of the CPE sends an IPv4 service request.
S302:IPv4报文在CPE的转发过程中,需要进行NAPT转换。NAPT模块43向端口维护模块42请求可用端口信息;S302: In the process of forwarding the CPE packet, the NAPT conversion is required. The NAPT module 43 requests the port maintenance module 42 for available port information;
S303:端口维护模块42根据当前端口使用情况,予以可用端口分配;若无可用端口,则不进行分配;S303: The port maintenance module 42 allocates available ports according to the current port usage; if no port is available, no allocation is performed;
S304:NAPT模块43根据可用端口的请求结果进行处理。若无可用端口,则丢弃报文;若存在可用端口,则进行源IP、源端口的修改,记录映射关系。S304: The NAPT module 43 performs processing according to the request result of the available port. If no port is available, the packet is discarded. If the port is available, the source IP address and source port are modified and the mapping relationship is recorded.
S305:隧道封装模块44对IPv4报文进行IPv6封装,CPE把IPv6封装的报文发送到IPv6网络中,最终由AFTR服务器进行IPv6解封装,然后转发到IPv4网络当中。S305: The tunnel encapsulation module 44 performs IPv6 encapsulation on the IPv4 packet, and the CPE sends the IPv6 encapsulated packet to the IPv6 network, and finally the IPv6 decapsulation is performed by the AFTR server, and then forwarded to the IPv4 network.
如图4所示,基于本发明实施例的CPE与DHCP 4o6Server交互过程由CPE的端口监测模块定时触发,包括以下步骤S401至S406:As shown in FIG. 4, the interaction process between the CPE and the DHCP 4o6 server according to the embodiment of the present invention is periodically triggered by the port monitoring module of the CPE, and includes the following steps S401 to S406:
S401:端口监测模块41监测到端口使用率大于Kmax,申请可用端口信息;S401: The port monitoring module 41 detects that the port usage rate is greater than Kmax, and applies for available port information.
S402:DHCP 4o6Server分配可用端口给CPE;S402: The DHCP 4o6Server allocates an available port to the CPE.
S403:端口监测模块41更新端口信息到端口维护模块42;S403: The port monitoring module 41 updates the port information to the port maintenance module 42;
S404:端口监测模块41监测到端口使用率小于Kmin,申请释放端口信息;S404: The port monitoring module 41 detects that the port usage rate is less than Kmin, and requests to release the port information.
S405:DHCP 4o6Server予以应答; S405: The DHCP 4o6Server responds;
S406:端口监测模块41更新端口信息到端口维护模块42。S406: The port monitoring module 41 updates the port information to the port maintenance module 42.
可选地,在实际应用中,端口获取装置可以通过启用定时器的方式进行实时监测,在定时处理中,首先获取当前分配的总端口数,以及当前使用的端口数,得到当前端口的使用率K;可以通过网管或预配置的方式设定端口使用率的阈值Kmax(第一阈值)和Kmin(第二阈值);若K>Kmax,则触发端口获取流程;若K<Kmin,则触发端口释放流程。Optionally, in a practical application, the port obtaining device can perform real-time monitoring by using a timer, and in the timing processing, first obtain the total number of ports currently allocated, and the number of ports currently used, to obtain the current port usage rate. K; the threshold Kmax (first threshold) and Kmin (second threshold) of the port usage rate may be set by a network management or a pre-configured manner; if K>Kmax, the port acquisition process is triggered; if K<Kmin, the port is triggered. Release the process.
可选地,,针对服务器,当收到的端口分配请求,server对复用IP地址的端口使用情况进行统计,若存在空余的端口资源块,则予以分配。若不存在空余的端口资源块,则不予以分配端口:当收到的端口回收请求,server回收部分端口,并对复用IP地址的端口使用情况进行实时更新。Optionally, for the server, when the port allocation request is received, the server collects statistics on the port usage of the multiplexed IP address, and if there is a spare port resource block, allocates. If there is no spare port resource block, the port is not allocated: when the received port is reclaimed, the server reclaims some ports and updates the port usage of the multiplexed IP address in real time.
可选地,,针对用户侧设备,当进行端口获取时,包括:向server发送DHCP 4o6请求,封装指定option,携带如下信息“复用IP地址请求,端口资源请求”,接收来自server的DHCP 4o6应答,解析指定option,获取如下信息“复用IP地址应答,分配的端口资源信息”;当进行端口释放时,包括:向server发送DHCP 4o6请求,封装指定option,携带如下信息“复用IP地址请求,端口资源释放请求”,接收来自server的DHCP 4o6应答,解析指定option,获取如下信息“复用IP地址应答,端口资源释放应答”。Optionally, for the user-side device, when the port is obtained, the method includes: sending a DHCP 4o6 request to the server, encapsulating the specified option, carrying the following information: “Reuse IP address request, port resource request”, and receiving DHCP 4o6 from the server. If the response is specified, the following information: "Reuse IP address response, allocated port resource information" is obtained. When the port is released, the method includes: sending a DHCP 4o6 request to the server, encapsulating the specified option, and carrying the following information: "Reuse IP address" Request, port resource release request", receives the DHCP 4o6 response from the server, parses the specified option, and obtains the following message "Reuse IP address response, port resource release response".
上述对端口获取装置、端口分配装置的基本流程进行阐述,通过对端口使用情况进行实时监测,能够做到按业务需求对端口进行获取。The basic process of the port obtaining device and the port allocating device is described above. By monitoring the port usage in real time, the port can be obtained according to service requirements.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件(例如处理器)完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的模块/单元可以采用硬件的形式实现,例如通过集成电路来实现其相应功能,也可以采用软件功能模块的形式实现,例如通过处理器执行存储于存储器中的程序指令来实现其相应功能。本申请不限制于任何特定形式的硬件和软件的结合。 One of ordinary skill in the art will appreciate that all or a portion of the above steps may be performed by a program to instruct related hardware, such as a processor, which may be stored in a computer readable storage medium, such as a read only memory, disk or optical disk. Wait. Alternatively, all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits. Correspondingly, the modules/units in the above embodiments may be implemented in the form of hardware, for example, by implementing integrated functions to implement their respective functions, or may be implemented in the form of software function modules, for example, executing program instructions stored in the memory by the processor. To achieve its corresponding function. This application is not limited to any specific combination of hardware and software.
工业实用性Industrial applicability
本发明实施例提供了一种端口资源管理方法,用户侧设备根据其端口资源的使用状态生成管理请求,并发送至服务器,与服务器配合管理端口资源的分配管理,当其端口资源不足时,申请新端口资源,而当其端口资源空余时,申请释放部分端口资源(其他CPE就可以申请使用这些端口资源),这样,实现了基于CPE端口资源使用状态来动态分配端口资源的机制,与相关技术中固定分配端口资源的方式相比,不会存在端口资源分配不合理的问题,也不会出现部分CPE端口资不足、而另外一些CPE端口资源浪费的现象,解决了端口资源分配方式存在的端口资源分配不合理的问题。 The embodiment of the present invention provides a port resource management method, where a user side device generates a management request according to the usage state of the port resource, and sends the management request to the server, and cooperates with the server to manage the allocation management of the port resource. When the port resource is insufficient, the application is performed. New port resources, and when the port resources are free, apply to release some port resources (other CPEs can apply to use these port resources), thus implementing a mechanism for dynamically allocating port resources based on CPE port resource usage status, and related technologies Compared with the method of allocating port resources in a fixed manner, there is no problem that the port resource allocation is unreasonable, and some CPE port resources are insufficient, and other CPE port resources are wasted, and the port in which the port resource allocation mode exists is solved. The problem of unreasonable resource allocation.

Claims (16)

  1. 一种端口资源管理方法,包括:A port resource management method includes:
    用户端设备获取当前端口资源的使用状态,根据所述使用状态生成管理请求;The client device acquires a usage status of the current port resource, and generates a management request according to the usage status;
    发送所述管理请求至服务器;Sending the management request to the server;
    接收所述服务器反馈的管理请求响应消息;Receiving a management request response message fed back by the server;
    解析所述管理请求响应消息,更新端口资源。Parsing the management request response message and updating the port resource.
  2. 如权利要求1所述的端口资源管理方法,还包括:The port resource management method of claim 1, further comprising:
    当所述用户端检测到无可用端口时,生成用于申请可用端口的管理请求,并发送至所述服务器。When the UE detects that there is no available port, a management request for requesting an available port is generated and sent to the server.
  3. 如权利要求1或2所述的端口资源管理方法,其中,所述使用状态包括:The port resource management method according to claim 1 or 2, wherein the usage status comprises:
    端口使用率大于第一阈值,端口使用率小于第二阈值,端口使用率大于等于第二阈值、且小于等于第一阈值;The port usage rate is greater than the first threshold, the port usage rate is less than the second threshold, and the port usage rate is greater than or equal to the second threshold and less than or equal to the first threshold;
    所述根据所述使用状态生成管理请求包括:The generating the management request according to the usage state includes:
    当所述使用状态为端口使用率大于第一阈值时,生成用于申请可用端口的管理请求;When the usage status is that the port usage rate is greater than the first threshold, generating a management request for applying for an available port;
    当所述使用状态为端口使用率小于第二阈值时,生成用于申请释放端口的管理请求。When the usage status is that the port usage rate is less than the second threshold, a management request for applying for releasing the port is generated.
  4. 一种端口资源管理方法,包括:A port resource management method includes:
    服务器接收用户端设备发送的管理请求,所述管理请求为所述用户端设备根据其端口资源的使用状态生成的;Receiving, by the server, a management request sent by the user equipment, where the management request is generated by the user equipment according to the usage status of the port resource;
    解析所述管理请求,进行处理,生成管理请求响应消息;Parsing the management request, performing processing, and generating a management request response message;
    发送所述管理请求响应消息至所述用户端设备。Sending the management request response message to the client device.
  5. 如权利要求4所述的端口资源管理方法,其中,所述进行处理,生成管理请求响应消息,发送所述管理请求响应消息至所述用户端设备包括: The port resource management method according to claim 4, wherein the processing is performed to generate a management request response message, and the sending the management request response message to the client device comprises:
    当所述管理请求用于申请可用端口时,根据复用IP地址的端口使用情况判断是否存在空余端口资源,若存在空余端口资源,则为所述用户端设备分配新的端口资源,并将所述新的端口资源的信息通过所述管理请求响应消息发送至所述用户端设备;When the management request is used to apply for an available port, determine whether there is a spare port resource according to the port usage of the multiplexed IP address, and if there is a spare port resource, allocate a new port resource to the user equipment, and The information about the new port resource is sent to the user equipment by using the management request response message;
    当所述管理请求用于申请释放端口时,释放为所述用户端设备分配的部分端口资源,更新所述复用IP地址的端口使用情况,并将被释放的端口资源的信息通过所述管理请求响应消息发送至所述用户端设备。When the management request is used to apply for releasing the port, releasing part of the port resource allocated for the user equipment, updating the port usage of the multiplexed IP address, and passing the information of the released port resource through the management A request response message is sent to the client device.
  6. 一种端口资源管理方法,包括:A port resource management method includes:
    用户端设备获取当前端口资源的使用状态,根据所述使用状态生成管理请求,发送所述管理请求至服务器;The user equipment acquires the usage status of the current port resource, generates a management request according to the usage status, and sends the management request to the server;
    所述服务器接收所述管理请求,解析所述管理请求,进行处理,生成管理请求响应消息,发送所述管理请求响应消息至所述用户端设备;Receiving, by the server, the management request, parsing the management request, performing processing, generating a management request response message, and sending the management request response message to the user equipment;
    所述用户端设备接收所述管理请求响应消息,解析所述管理请求响应消息,更新端口资源。The user equipment receives the management request response message, parses the management request response message, and updates a port resource.
  7. 如权利要求6所述的端口资源管理方法,还包括:The port resource management method of claim 6, further comprising:
    当所述用户端设备检测到无可用端口时,生成用于申请可用端口的管理请求,并发送至所述服务器。When the client device detects that there is no available port, a management request for requesting an available port is generated and sent to the server.
  8. 如权利要求6或7所述的端口资源管理方法,其中,所述使用状态包括:The port resource management method according to claim 6 or 7, wherein the usage status comprises:
    端口使用率大于第一阈值,端口使用率小于第二阈值,端口使用率大于等于第二阈值、且小于等于第一阈值;The port usage rate is greater than the first threshold, the port usage rate is less than the second threshold, and the port usage rate is greater than or equal to the second threshold and less than or equal to the first threshold;
    所述根据所述使用状态生成管理请求包括:The generating the management request according to the usage state includes:
    当所述使用状态为端口使用率大于第一阈值时,生成用于申请可用端口的管理请求;When the usage status is that the port usage rate is greater than the first threshold, generating a management request for applying for an available port;
    当所述使用状态为端口使用率小于第二阈值时,生成用于申请释放端口的管理请求;When the usage status is that the port usage rate is less than the second threshold, generating a management request for applying for releasing the port;
    所述进行处理,生成管理请求响应消息,发送所述管理请求响应消息至 所述用户端设备包括:Performing processing, generating a management request response message, and sending the management request response message to The client device includes:
    当所述管理请求用于申请可用端口时,根据复用IP地址的端口使用情况判断是否存在空余端口资源,若存在空余端口资源,则为所述用户端设备分配新的端口资源,并将所述新的端口资源的信息通过所述管理请求响应消息发送至所述用户端设备;When the management request is used to apply for an available port, determine whether there is a spare port resource according to the port usage of the multiplexed IP address, and if there is a spare port resource, allocate a new port resource to the user equipment, and The information about the new port resource is sent to the user equipment by using the management request response message;
    当所述管理请求用于申请释放端口时,释放为所述用户端设备分配的部分端口资源,更新所述复用IP地址的端口使用情况,并将被释放的端口资源的信息通过所述管理请求响应消息发送至所述用户端设备。When the management request is used to apply for releasing the port, releasing part of the port resource allocated for the user equipment, updating the port usage of the multiplexed IP address, and passing the information of the released port resource through the management A request response message is sent to the client device.
  9. 一种用户端设备,包括:A client device, comprising:
    获取模块,设置为获取当前端口资源的使用状态,根据所述使用状态生成管理请求;Obtaining a module, configured to acquire a usage status of the current port resource, and generate a management request according to the usage status;
    第一发送模块,设置为发送所述管理请求至服务器;a first sending module, configured to send the management request to a server;
    第一接收模块,设置为接收所述服务器反馈的管理请求响应消息;a first receiving module, configured to receive a management request response message fed back by the server;
    管理模块,设置为解析所述管理请求响应消息,更新端口资源。The management module is configured to parse the management request response message and update the port resource.
  10. 如权利要求9所述的用户端设备,其中,所述获取模块还设置为当检测到无可用端口时,生成用于申请可用端口的管理请求。The client device of claim 9, wherein the acquisition module is further configured to generate a management request for requesting an available port when detecting that no port is available.
  11. 如权利要求9或10所述的用户端设备,其中,所述使用状态包括:The client device according to claim 9 or 10, wherein the usage status comprises:
    端口使用率大于第一阈值,端口使用率小于第二阈值,端口使用率大于等于第二阈值、且小于等于第一阈值;The port usage rate is greater than the first threshold, the port usage rate is less than the second threshold, and the port usage rate is greater than or equal to the second threshold and less than or equal to the first threshold;
    所述获取模块根据所述使用状态生成管理请求包括:The acquiring module generates a management request according to the usage status, including:
    在所述使用状态为端口使用率大于第一阈值时,生成用于申请可用端口的管理请求;在所述使用状态为端口使用率小于第二阈值时,生成用于申请释放端口的管理请求。And when the usage status is that the port usage rate is greater than the first threshold, generating a management request for applying for an available port; and when the usage status is that the port usage rate is less than the second threshold, generating a management request for applying for releasing the port.
  12. 一种服务器,包括:A server that includes:
    第二接收模块,设置为接收用户端设备发送的管理请求,所述管理请求为所述用户端设备根据其端口资源的使用状态生成的;a second receiving module, configured to receive a management request sent by the user equipment, where the management request is generated by the user equipment according to a usage status of the port resource;
    处理模块,设置为解析所述管理请求,进行处理,生成管理请求响应消 息;a processing module configured to parse the management request, perform processing, and generate a management request response interest;
    第二发送模块,设置为发送所述管理请求响应消息至所述用户端设备。The second sending module is configured to send the management request response message to the user equipment.
  13. 如权利要求12所述的服务器,其中,所述处理模块进行处理,生成管理请求响应消息包括:The server according to claim 12, wherein the processing module performs processing, and generating a management request response message includes:
    当所述管理请求用于申请可用端口时,根据复用IP地址的端口使用情况判断是否存在空余端口资源,若存在空余端口资源,则为所述用户端设备分配新的端口资源,并将所述新的端口资源的信息通过所述管理请求响应消息携带;When the management request is used to apply for an available port, determine whether there is a spare port resource according to the port usage of the multiplexed IP address, and if there is a spare port resource, allocate a new port resource to the user equipment, and The information about the new port resource is carried by the management request response message;
    当所述管理请求用于申请释放端口时,释放为所述用户端设备分配的部分端口资源,更新所述复用IP地址的端口使用情况,并将被释放的端口资源的信息通过所述管理请求响应消息携带。When the management request is used to apply for releasing the port, releasing part of the port resource allocated for the user equipment, updating the port usage of the multiplexed IP address, and passing the information of the released port resource through the management The request response message is carried.
  14. 一种端口资源管理系统,包括用户端设备及服务器,其中,A port resource management system, including a client device and a server, wherein
    所述用户端设备,设置为获取当前端口资源的使用状态,根据所述使用状态生成管理请求,发送所述管理请求至所述服务器,以及接收所述管理请求响应消息,解析所述管理请求响应消息,更新端口资源;The user equipment is configured to acquire a usage status of the current port resource, generate a management request according to the usage status, send the management request to the server, and receive the management request response message, and parse the management request response. Message, update port resources;
    所述服务器,设置为接收所述管理请求,解析所述管理请求,进行处理,生成管理请求响应消息,发送所述管理请求响应消息至所述用户端设备。The server is configured to receive the management request, parse the management request, perform processing, generate a management request response message, and send the management request response message to the client device.
  15. 如权利要求14所述的端口资源管理系统,其中,所述用户端设备还设置为当检测到无可用端口时,生成用于申请可用端口的管理请求,并发送至所述服务器。The port resource management system of claim 14, wherein the client device is further configured to generate a management request for requesting an available port and send to the server when detecting that no port is available.
  16. 如权利要求14或15所述的端口资源管理系统,其中,所述使用状态包括:The port resource management system according to claim 14 or 15, wherein the usage status comprises:
    端口使用率大于第一阈值,端口使用率小于第二阈值,端口使用率大于等于第二阈值、且小于等于第一阈值;The port usage rate is greater than the first threshold, the port usage rate is less than the second threshold, and the port usage rate is greater than or equal to the second threshold and less than or equal to the first threshold;
    所述用户端设备根据所述使用状态生成管理请求包括:The generating, by the user equipment, the management request according to the usage status includes:
    当所述使用状态为端口使用率大于第一阈值时,生成用于申请可用端口的管理请求; When the usage status is that the port usage rate is greater than the first threshold, generating a management request for applying for an available port;
    当所述使用状态为端口使用率小于第二阈值时,生成用于申请释放端口的管理请求;When the usage status is that the port usage rate is less than the second threshold, generating a management request for applying for releasing the port;
    所述服务器进行处理,生成管理请求响应消息,发送所述管理请求响应消息至所述用户端设备包括:The server performs processing to generate a management request response message, and sending the management request response message to the user equipment includes:
    当所述管理请求用于申请可用端口时,根据复用IP地址的端口使用情况判断是否存在空余端口资源,若存在空余端口资源,则为所述用户端设备分配新的端口资源,并将所述新的端口资源的信息通过所述管理请求响应消息发送至所述用户端设备;When the management request is used to apply for an available port, determine whether there is a spare port resource according to the port usage of the multiplexed IP address, and if there is a spare port resource, allocate a new port resource to the user equipment, and The information about the new port resource is sent to the user equipment by using the management request response message;
    当所述管理请求用于申请释放端口时,释放为所述用户端设备分配的部分端口资源,更新所述复用IP地址的端口使用情况,并将被释放的端口资源的信息通过所述管理请求响应消息发送至所述用户端设备。 When the management request is used to apply for releasing the port, releasing part of the port resource allocated for the user equipment, updating the port usage of the multiplexed IP address, and passing the information of the released port resource through the management A request response message is sent to the client device.
PCT/CN2016/096254 2015-10-10 2016-08-22 Customer premises equipment, server, and method and system for managing port resource WO2017059742A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510655515.XA CN106571944A (en) 2015-10-10 2015-10-10 User side equipment, server, port resource management method and system
CN201510655515.X 2015-10-10

Publications (1)

Publication Number Publication Date
WO2017059742A1 true WO2017059742A1 (en) 2017-04-13

Family

ID=58487342

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/096254 WO2017059742A1 (en) 2015-10-10 2016-08-22 Customer premises equipment, server, and method and system for managing port resource

Country Status (2)

Country Link
CN (1) CN106571944A (en)
WO (1) WO2017059742A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110891033A (en) * 2018-09-07 2020-03-17 阿里巴巴集团控股有限公司 Network resource processing method, device, gateway, controller and storage medium

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110363319B (en) * 2018-03-26 2023-09-29 阿里巴巴集团控股有限公司 Resource allocation method, server, resource claim method and client
CN108924272B (en) * 2018-06-26 2021-09-17 新华三信息安全技术有限公司 Port resource allocation method and device
CN113315652B (en) * 2021-04-29 2022-07-19 山东英信计算机技术有限公司 Method, system, equipment and medium for optimizing switch access control
CN113905018B (en) * 2021-09-14 2022-09-06 广东云下汇金科技有限公司 Resource management method and device applied to data center bandwidth outlet

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101262506A (en) * 2008-04-21 2008-09-10 杭州华三通信技术有限公司 Allocation method and system for network address conversion port resource under distributed architecture
CN102882992A (en) * 2012-10-12 2013-01-16 江苏省邮电规划设计院有限责任公司 Method for releasing port of carrier-grade network address translation equipment
US20130185404A1 (en) * 2012-01-18 2013-07-18 Microsoft Corporation Efficient port management for a distributed network address translation
CN103384280A (en) * 2012-05-02 2013-11-06 中兴通讯股份有限公司 Method and system for managing network address translation port resources
CN103780712A (en) * 2012-10-25 2014-05-07 中国电信股份有限公司 Method for allocating port of address conversion device and address conversion device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101247421B (en) * 2008-03-28 2011-09-07 杭州华三通信技术有限公司 Self-adapting distribution method and system of NAT address pool under distributed structure
CN102404236A (en) * 2011-12-30 2012-04-04 苏州山石网络有限公司 Method for allocating NAT (network address translation) port resources in distributed system
CN103797774B (en) * 2013-11-05 2017-07-21 华为技术有限公司 A kind of network address translation apparatus and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101262506A (en) * 2008-04-21 2008-09-10 杭州华三通信技术有限公司 Allocation method and system for network address conversion port resource under distributed architecture
US20130185404A1 (en) * 2012-01-18 2013-07-18 Microsoft Corporation Efficient port management for a distributed network address translation
CN103384280A (en) * 2012-05-02 2013-11-06 中兴通讯股份有限公司 Method and system for managing network address translation port resources
CN102882992A (en) * 2012-10-12 2013-01-16 江苏省邮电规划设计院有限责任公司 Method for releasing port of carrier-grade network address translation equipment
CN103780712A (en) * 2012-10-25 2014-05-07 中国电信股份有限公司 Method for allocating port of address conversion device and address conversion device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110891033A (en) * 2018-09-07 2020-03-17 阿里巴巴集团控股有限公司 Network resource processing method, device, gateway, controller and storage medium
CN110891033B (en) * 2018-09-07 2023-05-05 阿里巴巴集团控股有限公司 Network resource processing method, device, gateway, controller and storage medium

Also Published As

Publication number Publication date
CN106571944A (en) 2017-04-19

Similar Documents

Publication Publication Date Title
WO2017059742A1 (en) Customer premises equipment, server, and method and system for managing port resource
EP2608491B1 (en) Method, apparatus and system for allocating public IP address
US11418479B2 (en) Methods, systems, and computer readable media for creating internet protocol (IP) address pools from dynamic host configuration protocol (DHCP) servers to asynchronously serve IP address allocation requests by session management functions (SMFs)
EP2654268B1 (en) Address allocation processing method and apparatus
KR101320962B1 (en) Management method and management device for network address translation
WO2011147353A1 (en) Method and apparatus for message transmission
CN101741702B (en) Method and device for limiting broadcast of ARP request
WO2016095561A1 (en) Address allocation method, cgn device and cgn double-master system
EP2869494A1 (en) Method, device, and system for quick notification of cgn exception
WO2015066840A1 (en) Device and method for network address conversion
US8606937B2 (en) Information providing method, home gateway, and home network system
WO2013071765A1 (en) Method, device and system for distributing ip address for user terminal
CN106506724B (en) Method and device for distributing port blocks
WO2018045992A1 (en) Address management method and apparatus
CN105979202B (en) Data transmission method and device
CA2455492C (en) Apparatus and method of coordinating network events
US10419392B2 (en) Method, device and system for implementing address sharing
CN101873320A (en) Client information verification method based on DHCPv6 relay and device thereof
US10164937B2 (en) Method for processing raw IP packet and device thereof
JP2010062757A (en) Dns proxy apparatus and dns relay method
WO2017219777A1 (en) Packet processing method and device
US20220239627A1 (en) Managing internet protocol (ip) address allocation to tenants in a computing environment
WO2015085558A1 (en) Method, device and system for dynamically allocating ip address
CN106992963B (en) Information processing method and gateway
JP3775378B2 (en) Firewall system that supports dynamic IP address assignment

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: 16853048

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: 16853048

Country of ref document: EP

Kind code of ref document: A1