WO2016177182A1 - Resource management method of network device, device and system - Google Patents

Resource management method of network device, device and system Download PDF

Info

Publication number
WO2016177182A1
WO2016177182A1 PCT/CN2016/077565 CN2016077565W WO2016177182A1 WO 2016177182 A1 WO2016177182 A1 WO 2016177182A1 CN 2016077565 W CN2016077565 W CN 2016077565W WO 2016177182 A1 WO2016177182 A1 WO 2016177182A1
Authority
WO
WIPO (PCT)
Prior art keywords
network device
index number
resource index
resource
control terminal
Prior art date
Application number
PCT/CN2016/077565
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 WO2016177182A1 publication Critical patent/WO2016177182A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks

Definitions

  • the present application relates to the field of data communications, such as resource management methods, devices, and systems related to network devices.
  • the Internet Engineering Task Force proposes the concept of Open I2RS (I2RS: Interface to the Routing System), and hopes to solve the traditional network equipment to SDN through the interface of the open control routing system in the control plane.
  • Software Defined Network software-defined network
  • I2RS The core idea of the I2RS system is to open a new interface to communicate with the external control terminal based on the routing and forwarding system of the traditional network device.
  • the external control terminal (Client) knows the resources, routing configuration, traffic statistics and other information of multiple network devices.
  • the entire network topology map is learned, and the routing status and policies are dynamically sent to multiple devices. It can be seen that I2RS extends the structure and functions of routing and forwarding used in traditional network equipment, and expands and enriches the functions on the basis of this, laying a foundation for the programmability of network equipment. Innovation provides a strong guarantee.
  • the I2RS architecture system has not provided a clear component for resource management.
  • the way the I2RS system external control terminal learns the network device resources is still lagging and single. For example, after the external control terminal establishes communication with the network device, the network device resource information cannot be immediately known; when the external control terminal actively initiates the query, the external control terminal can only query the resource information based on the service, and lacks the unified control of the resource; the network device resource occurs. When the network device changes, the network device only reports the event notification based on the service to the external control terminal, which is disadvantageous for the external control terminal to learn the entire network resource information. Therefore, how to realize the overall control of network equipment resources is an urgent problem to be solved.
  • Embodiments of the present invention provide a resource management method, device, and system for a network device, where Reserve resources to achieve overall control.
  • the network control terminal sends, to the network device, a first request message for acquiring current resource information of the network device;
  • the network control terminal Receiving, by the network control terminal, the first response packet that is returned by the network device according to the first request packet, where the first response packet carries current resource information of the network device;
  • the network control terminal manages the received current resource information of the network device.
  • the first response packet carries a resource index number of the network device and resource information corresponding to the resource index number, where the network control terminal performs current resource information of the received network device.
  • the steps to manage include:
  • the network control terminal caches the resource index number of the network device and Resource information corresponding to the resource index number.
  • the method further includes:
  • the network control terminal periodically sends a second request message for acquiring a resource index number of the network device to the network device;
  • the network control terminal receives the second response packet that is returned by the network device according to the second request packet, where the second response packet carries a resource index number of the network device.
  • the method further includes:
  • the network control terminal determines whether the resource index number of the network device that is locally cached is consistent with the resource index number of the network device in the second response packet;
  • the network control terminal sends a third request message to the network device, where the result is that the resource index number of the local cache is inconsistent with the resource index number of the network device in the second response message, where the network control terminal sends a third request message to the network device, where The third request packet is used to obtain a resource index number of the network device and resource information corresponding to the resource index number, and receive a third response report that is returned by the network device according to the third request packet.
  • the third response message carries the resource of the network device. Quotation marks and resource information corresponding to the resource index number;
  • the network control terminal updates the resource index number of the locally cached network device according to the resource index number of the network device and the resource information corresponding to the resource index number, and the Resource information corresponding to the resource index number.
  • the method further includes:
  • the network control terminal When the network control terminal is connected to the network device again, the network control terminal receives a hello packet sent by the network device, where the hello packet carries a resource index number of the network device;
  • the network control terminal When the network control terminal locally saves the resource index number of the network device, it is determined whether the locally stored resource index number and the resource index number carried in the hello packet are consistent;
  • the network control terminal sends a third request message to the network device, where the third request message is used to obtain a resource index number of the network device and resource information corresponding to the resource index number;
  • the third response packet returned by the network device according to the third request packet, where the third response packet carries a resource index number of the network device and a resource corresponding to the resource index number information;
  • the network control terminal updates the resource index number of the locally cached network device according to the resource index number of the network device and the resource information corresponding to the resource index number, and the Resource information corresponding to the resource index number.
  • an embodiment of the present invention provides a resource management method for a network device, including:
  • the first response packet according to the first request packet, where the first response packet is used by the network control terminal to manage current resource information of the network device, where The first response message carries current resource information of the network device.
  • the first response packet carries a resource index number of the network device and resource information corresponding to the resource index number, and the network device returns a first response packet according to the first request packet.
  • the steps include:
  • the network device In a case that the network control device does not locally cache the resource index number of the network device and the resource information corresponding to the resource index number, the network device sends the resource index of the network device to the network control terminal. a number and resource information corresponding to the resource index number.
  • the method includes:
  • the network device returns a second response message according to the second request message, where the second response message carries a resource index number of the network device.
  • the method further includes:
  • the network device returns a third response message according to the third request message, where the third response message carries a resource index number of the network device and resource information corresponding to the resource index number.
  • the method further includes:
  • the network device sends a hello packet to the network control terminal, where the hello packet carries a resource index number of the network device.
  • an embodiment of the present invention provides a network control terminal, where the network control terminal includes:
  • a first sending module configured to send, to the network device, a first request message for acquiring current resource information of the network device
  • the first receiving module is configured to receive the first response packet that is sent by the network device according to the first request packet, where the first response packet carries current resource information of the network device;
  • a management module configured to manage the received current resource information of the network device.
  • the management module is further configured to: when the local network control terminal does not cache the resource index number of the network device and the resource information corresponding to the resource index number, cache the resource index number of the network device And resource information corresponding to the resource index number.
  • the network control terminal further includes:
  • a second sending module configured to periodically send, to the network device, a second request packet for acquiring a resource index number of the network device
  • the second receiving module is configured to receive a second response packet that is sent by the network device according to the second request packet, where the second response packet carries a resource index number of the network device.
  • the network control terminal further includes:
  • the first determining module is configured to determine whether the resource index number of the local cache is consistent with the resource index number of the network device in the second response packet;
  • a third transmitting and receiving module configured to send a third request report to the network device if the resource index number of the local cache is inconsistent with the resource index number of the network device in the second response packet And the third request message is used to obtain a resource index number of the network device and resource information corresponding to the resource index number; and receive, by the network device, according to the third request packet.
  • a third response packet where the third response packet carries a resource index number of the network device and resource information corresponding to the resource index number;
  • An update module configured to update a resource index number of the network device that is locally cached according to a resource index number of the network device that is carried in the third response packet, and resource information corresponding to the resource index number, and Resource information corresponding to the resource index number.
  • the network control terminal further includes:
  • a fourth receiving module configured to: when the network control terminal is connected to the network device again, receive a hello packet sent by the network device, where the hello packet carries a resource index number of the network device;
  • the second judging module is configured to determine whether the resource index number reserved by the local device and the resource index number carried in the hello packet are consistent if the resource index number of the network device is reserved locally;
  • a second update module configured to send a third request message to the network device, where the resource index number of the local reservation is inconsistent with the resource index number carried in the hello message, where
  • the third request packet is configured to obtain a resource index number of the network device and resource information corresponding to the resource index number, and receive a third response packet that is returned by the network device according to the third request packet, where And the third response packet carries the resource index number of the network device and the resource information corresponding to the resource index number;
  • the network control terminal is configured according to the network device that is carried by the third response packet.
  • the resource index number and the resource information corresponding to the resource index number update a locally cached resource index number of the network device and resource information corresponding to the resource index number.
  • an embodiment of the present invention provides a network device, where the network device includes:
  • a fifth receiving module configured to receive a first request message that is sent by the network control terminal and used to obtain current resource information of the network device
  • the fifth sending module is configured to return a first response message according to the first request message, where the first response message is used by the network control terminal to manage current resource information of the network device,
  • the first response packet carries current resource information of the network device.
  • the fifth sending module is further configured to: if the resource index number of the network device and the resource information corresponding to the resource index number are not cached locally, send the message to the network control terminal a resource index number of the network device and resource information corresponding to the resource index number.
  • the network device further includes:
  • a sixth receiving module configured to receive a second request message that is sent by the network control terminal and is used to obtain a resource index number of the network device
  • the sixth sending module is configured to return a second response message according to the second request message, where the second response message carries a resource index number of the network device.
  • the network device further includes:
  • a seventh receiving module configured to receive the third request packet sent by the network control terminal, where the third request packet is used to obtain a resource index number of the network device and the resource index Resource information corresponding to the number;
  • the seventh sending module is configured to return a third response message according to the third request message, where the third response message carries a resource index number of the network device and corresponds to the resource index number Resource information.
  • the network device further includes:
  • the eighth sending module is configured to send a hello packet to the network control terminal, where the hello packet carries a resource index number of the network device.
  • an embodiment of the present invention provides a resource management system for a network device, where the resource management system of the network device includes the foregoing network control terminal and a network device.
  • the network control terminal timely discovers and acquires resource information of the network device, thereby implementing the overall control function of the network control terminal on the device resource, thereby laying a foundation for the external network terminal to quickly learn the entire network topology.
  • FIG. 1 is a schematic flowchart of an embodiment of a resource management method of a network device according to the present invention
  • FIG. 2 is a schematic diagram of functional modules of an embodiment of a network control terminal according to the present invention.
  • FIG. 3 is a schematic diagram of functional modules of an embodiment of a network device according to the present invention.
  • FIG. 4 is a schematic diagram of functional modules of an embodiment of a resource management system for a network device according to the present invention.
  • FIG. 5 is a schematic flowchart diagram of another embodiment of a resource management method for a network device according to the present invention.
  • FIG. 6 is a schematic flowchart diagram of still another embodiment of a resource management method for a network device according to the present invention.
  • a resource management method, device, and system for a network device proposes a concept of a resource index number, where the resource index number may be a 64-bit integer, and the network device uses the same to map and identify The resource information of the device itself, and the different resource index numbers of the same network device indicate that the network device resources have changed. It should be noted that the resource index number is not fixedly configured. After the network device is restarted, the resource index number is reset.
  • the network device can be a routing or forwarding device. After the network control terminal establishes a communication link with the network device, if there is a capability exchange, the network device notifies the current resource index number as the content to the network control terminal; the network control terminal receives the hello report sent by the network device.
  • the packet carries a resource index number corresponding to the network device.
  • the network device may also provide a get operation, and allow the network control terminal to acquire the current resource index number of the device and the resource information of the network device corresponding to the current resource index number to the network device; the network control terminal sends the network device to the network The device sends a get request, and requests to query the current resource index number of the network device.
  • the network control terminal After the network control terminal successfully establishes a connection with the network device, the network control terminal sends a get request to the network device, requesting to query the resource index number of the network device and the resource information corresponding to the resource index number of the network device, taking port resources as an example. .
  • the process includes the following steps:
  • Step S101 The network control terminal sends a get request to the network device, and requests to query the current resource index number and the resource information of the network device corresponding to the resource index number.
  • Step S102 The network device collects resource information of the local network device according to the content of the received get request.
  • Step S103 The network device returns a response packet to the network control terminal.
  • FIG. 2 is a schematic diagram of a functional module of an embodiment of a network control terminal.
  • the network control terminal 10 includes:
  • the first sending module 11 is configured to send, to the network device, a first request message for acquiring current resource information of the network device;
  • the first receiving module 12 is configured to receive the first response packet that is returned by the network device according to the first request packet, where the first response packet carries current resource information of the network device;
  • the management module 13 is configured to manage the received current resource information of the network device.
  • the management module is further configured to: when the resource index number of the network device and the resource information corresponding to the resource index number are not cached locally, cache the resource index number of the network device and Resource information corresponding to the resource index number.
  • the network control terminal further includes:
  • a second sending module configured to periodically send, to the network device, a second request message for acquiring a resource index number of the network device
  • the second receiving module is configured to receive the second response packet that is sent by the network device according to the second request packet, where the second response packet carries the resource index number of the network device.
  • FIG. 3 is a schematic diagram of a functional module of an embodiment of a network device.
  • the network device 20 includes:
  • the fifth receiving module 21 is configured to receive, by the network control terminal, a first request message for acquiring current resource information of the network device;
  • the fifth sending module 22 is configured to return a first response message according to the first request message, where the first response message is used by the network control terminal to manage current resource information of the network device.
  • the first response packet carries current resource information of the network device.
  • FIG. 4 is a schematic diagram of a functional module of an embodiment of a resource management system of a network device.
  • the resource management system of the network device includes a network control terminal 10 and a network device 20, where:
  • the network control terminal 10 includes:
  • the first sending module 11 is configured to send, to the network device, a first request message for acquiring current resource information of the network device;
  • the first receiving module 12 is configured to receive the first response packet that is returned by the network device according to the first request packet, where the first response packet carries current resource information of the network device;
  • the management module 13 is configured to manage the received current resource information of the network device
  • the network device 20 includes:
  • the fifth receiving module 21 is configured to receive, by the network control terminal, a first request message for acquiring current resource information of the network device;
  • the fifth sending module 22 is configured to return a first response message according to the first request message, where the first response message is used by the network control terminal to manage current resource information of the network device.
  • the first response packet carries current resource information of the network device.
  • the resource information of the device is rich and complicated. If the network control terminal queries and learns through the ⁇ get> operation mode shown in Figure 1, the amount of packet data is large. Therefore, another embodiment of the present invention adopts a simple manner, in which the network control terminal periodically obtains the resource index number from the network device, and determines whether the resource value of the network device has changed according to whether the same device resource index number is consistent: The resource index of the same device is the same, indicating that the resources of the network device have not changed.
  • the resource information saved locally by the network control terminal is the current device resource information. If the information is inconsistent, the network device resources have changed.
  • the saved resource information is to be updated, and then the current device resource information can be obtained by querying the ⁇ get> operation mode shown in FIG.
  • the process includes the following steps:
  • Step S201 The network control terminal sends a get request to the network device, requesting to query the current resource index number.
  • Step S202 The network device collects a local resource index number according to the content of the get request.
  • Step S203 The network device returns a response packet to the network control terminal.
  • Step S204 After receiving the response message, the network control terminal determines that the current resource is cached locally.
  • the quotation mark is consistent with the current resource index number of the obtained device. If the current resource index number of the local cache is the same as the current resource index number of the obtained device, it indicates that the device resource has not changed and is not processed; if the current cache is currently cached
  • the resource index number is inconsistent with the current resource index number of the obtained device, indicating that the device resource changes.
  • the resource information of the network device is obtained by using the process shown in FIG. 1 , and the resource index number of the device locally cached by the network control terminal is updated. The resource information of the network device corresponding to the resource index number.
  • the network control terminal may further include:
  • the first determining module is configured to determine whether the resource index number of the local cache is consistent with the resource index number of the network device in the second response packet;
  • a third transmitting and receiving module configured to send a third to the network device if the resource index number of the local cache is inconsistent with the resource index number of the network device in the second response packet a request message, where the third request message is used to obtain a resource index number of the network device and resource information corresponding to the resource index number; and receiving, by the network device, the packet according to the third request message a third response packet, where the third response packet carries a resource index number of the network device and resource information corresponding to the resource index number;
  • An update module configured to update a resource index number of the network device that is locally cached according to a resource index number of the network device that is carried in the third response packet, and resource information corresponding to the resource index number, and Resource information corresponding to the resource index number.
  • the network control terminal is connected to the network device.
  • the network control terminal retains the record of the network device for a period of keep alive.
  • the network control terminal is connected to the network device again, we determine whether the network control terminal has a record of the network device. If not, it indicates that the new device is accessed, and the network control terminal queries the resource information of the new device through the ⁇ get> operation mode; If yes, determine whether the index number of the device in the record is consistent with the resource index number advertised in the hello packet reported by the network device, if the index number of the device in the record is retained and the hello message reported by the network device is advertised.
  • the resource index number is the same, indicating that the device resource has not changed and is not processed; if the device index number information and network settings in the record are retained The resource index number of the device is inconsistent, and the resource index of the device is changed.
  • the resource index of the device that is cached by the network control terminal and the resource information of the network device corresponding to the resource index are updated.
  • FIG. 6 is a schematic flowchart of still another embodiment of a resource management method for a network device according to the present invention.
  • the process includes the following steps:
  • Step S301 The network device sends a hello packet to the network control terminal, where the hello packet is accompanied by a resource index number.
  • Step S302 The network control terminal receives the hello packet sent by the network device, and determines whether the network device is a new access device: if the network device is a new access device, recording network device information; if the network device is not a new access
  • the device determines whether the resource index number in the record is the same as the resource index number in the hello packet. If the resource index number in the record matches the resource index number in the hello packet, the current resource information of the device is the same.
  • the current resource information of the device if the resource index number in the record is inconsistent with the resource index number in the hello packet, indicating that the resource information of the network device has changed, the resource information of the network device is obtained by using the process shown in FIG. Controlling, by the terminal, a resource index number of the device that is cached locally and resource information of the network device corresponding to the resource index number.
  • the network control terminal may further include:
  • the fourth receiving module is configured to: when the network control terminal is connected to the network device again, the network control terminal receives a hello packet sent by the network device, where the hello packet carries a resource index number of the network device;
  • the second judging module is configured to determine whether the resource index number reserved by the local device and the resource index number carried in the hello packet are consistent if the resource index number of the network device is reserved locally;
  • a second update module configured to: according to the resource index of the network device carried in the hello packet, if the resource index number of the local reservation is inconsistent with the resource index number carried in the hello packet The number updates the resource index number of the network device reserved locally and the resource information corresponding to the resource index number.
  • the embodiment of the present invention further provides a computer readable storage medium storing computer executable instructions for executing the method described in the foregoing embodiments.
  • the embodiment of the present invention further provides a network control terminal, including a memory and at least one processor, wherein the memory stores instructions executable by the processor, and the instructions are used to execute the method described in the foregoing embodiments.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
  • the network control terminal timely discovers and acquires resource information of the network device, thereby implementing the overall control function of the network control terminal on the device resource, thereby laying a foundation for the external network terminal to quickly learn the entire network topology.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

A resource management method of a network device, comprising: transmitting, to a network device via a network control terminal, a first request packet to acquire current resource information of the network device; receiving, by the network control terminal, a first response packet responded by the network device according to the first request packet, wherein the first response packet carries the current resource information of the network device; and managing, by the network control device, the current resource information of the received network device.

Description

网络设备的资源管理方法、设备和系统Resource management method, device and system for network equipment 技术领域Technical field
本申请涉及数据通信领域,例如涉及网络设备的资源管理方法、设备和系统。The present application relates to the field of data communications, such as resource management methods, devices, and systems related to network devices.
背景技术Background technique
IETF(Internet Engineering Task Force,互联网工程任务组)提出了开放I2RS(I2RS:Interface to the Routing System,路由系统接口)的概念,希望通过在控制平面开放路由系统的接口来解决传统网络设备向SDN(Software Defined Network,,软件定义网络)有序演进的问题。The Internet Engineering Task Force (IETF) proposes the concept of Open I2RS (I2RS: Interface to the Routing System), and hopes to solve the traditional network equipment to SDN through the interface of the open control routing system in the control plane. Software Defined Network, software-defined network) The problem of orderly evolution.
I2RS系统的核心思想是在目前传统网络设备的路由及转发系统基础上开放新的接口与外部控制终端通信,外部控制终端(Client)通过获知多个网络设备的资源、路由配置、流量统计等信息学习到全网拓扑结构图,进而动态地将路由状态、策略等下发到多个设备上去。由此可以看出,I2RS延用了传统网络设备中正在使用的路由、转发等结构与功能,并在此基础上进行功能的扩展与丰富,为网络设备的可编程性奠定了基础,为用户创新提供有力保证。The core idea of the I2RS system is to open a new interface to communicate with the external control terminal based on the routing and forwarding system of the traditional network device. The external control terminal (Client) knows the resources, routing configuration, traffic statistics and other information of multiple network devices. The entire network topology map is learned, and the routing status and policies are dynamically sent to multiple devices. It can be seen that I2RS extends the structure and functions of routing and forwarding used in traditional network equipment, and expands and enriches the functions on the basis of this, laying a foundation for the programmability of network equipment. Innovation provides a strong guarantee.
但是,与传统配置管理思想相同,I2RS架构体系尚未提供明确的实现资源管理的组件,I2RS系统外部控制终端获知网络设备资源的方式仍较为滞后和单一。例如,外部控制终端与网络设备建立通信后,并不能立即获知网络设备资源信息;外部控制终端主动发起查询时,也仅能基于业务查询资源信息,缺乏途径对资源的统一管控;网络设备资源发生变化时,网络设备仅向外部控制终端上报基于业务的事件通知,均不利于外部控制终端学习整网资源信息。因此,如何实现对网络设备资源的整体管控,是一个亟待解决的问题。However, the same as the traditional configuration management idea, the I2RS architecture system has not provided a clear component for resource management. The way the I2RS system external control terminal learns the network device resources is still lagging and single. For example, after the external control terminal establishes communication with the network device, the network device resource information cannot be immediately known; when the external control terminal actively initiates the query, the external control terminal can only query the resource information based on the service, and lacks the unified control of the resource; the network device resource occurs. When the network device changes, the network device only reports the event notification based on the service to the external control terminal, which is disadvantageous for the external control terminal to learn the entire network resource information. Therefore, how to realize the overall control of network equipment resources is an urgent problem to be solved.
发明内容Summary of the invention
本发明实施例提供一种网络设备的资源管理方法、设备和系统,对网络设 备资源实现整体管控。Embodiments of the present invention provide a resource management method, device, and system for a network device, where Reserve resources to achieve overall control.
本发明实施例提供的网络设备的资源管理方法,包括:A resource management method for a network device according to an embodiment of the present invention includes:
网络控制终端向网络设备发送用于获取所述网络设备当前的资源信息的第一请求报文;The network control terminal sends, to the network device, a first request message for acquiring current resource information of the network device;
所述网络控制终端接收所述网络设备根据所述第一请求报文返回的第一响应报文,其中,所述第一响应报文携带所述网络设备当前的资源信息;Receiving, by the network control terminal, the first response packet that is returned by the network device according to the first request packet, where the first response packet carries current resource information of the network device;
所述网络控制终端对接收到的所述网络设备当前的资源信息进行管理。The network control terminal manages the received current resource information of the network device.
可选地,所述第一响应报文携带所述网络设备的资源索引号以及与所述资源索引号对应的资源信息,所述网络控制终端对接收到的所述网络设备当前的资源信息进行管理的步骤包括:Optionally, the first response packet carries a resource index number of the network device and resource information corresponding to the resource index number, where the network control terminal performs current resource information of the received network device. The steps to manage include:
在所述网络控制终端本地没有缓存所述网络设备的资源索引号以及与所述资源索引号对应的资源信息的情况下,所述网络控制终端缓存所述网络设备的资源索引号以及与所述资源索引号对应的资源信息。In a case that the network control terminal does not locally cache the resource index number of the network device and the resource information corresponding to the resource index number, the network control terminal caches the resource index number of the network device and Resource information corresponding to the resource index number.
可选地,所述方法在所述网络控制终端对接收到的所述网络设备当前的资源信息进行管理的步骤之后还包括:Optionally, after the step of the network control terminal managing the current resource information of the network device, the method further includes:
所述网络控制终端定时向所述网络设备发送用于获取所述网络设备的资源索引号的第二请求报文;The network control terminal periodically sends a second request message for acquiring a resource index number of the network device to the network device;
所述网络控制终端接收所述网络设备根据所述第二请求报文返回的第二响应报文,其中,所述第二响应报文携带所述网络设备的资源索引号。The network control terminal receives the second response packet that is returned by the network device according to the second request packet, where the second response packet carries a resource index number of the network device.
可选地,所述方法在所述网络控制终端接收所述网络设备根据所述第二请求报文返回的第二响应报文的步骤之后还包括:Optionally, after the step of the network control terminal receiving, by the network control terminal, the second response packet that is returned by the network device according to the second request packet, the method further includes:
所述网络控制终端判断本地缓存的所述网络设备的资源索引号与所述第二响应报文中所述网络设备的资源索引号是否一致;The network control terminal determines whether the resource index number of the network device that is locally cached is consistent with the resource index number of the network device in the second response packet;
在判断结果为本地缓存的资源索引号与所述第二响应报文中所述网络设备的资源索引号不一致的情况下,所述网络控制终端向所述网络设备发送第三请求报文,其中,所述第三请求报文用于获取所述网络设备的资源索引号以及与所述资源索引号对应的资源信息;接收所述网络设备根据所述第三请求报文返回的第三响应报文,其中,所述第三响应报文中携带有所述网络设备的资源索 引号以及与所述资源索引号对应的资源信息;The network control terminal sends a third request message to the network device, where the result is that the resource index number of the local cache is inconsistent with the resource index number of the network device in the second response message, where the network control terminal sends a third request message to the network device, where The third request packet is used to obtain a resource index number of the network device and resource information corresponding to the resource index number, and receive a third response report that is returned by the network device according to the third request packet. The third response message carries the resource of the network device. Quotation marks and resource information corresponding to the resource index number;
所述网络控制终端根据所述第三响应报文携带的所述网络设备的资源索引号以及与所述资源索引号对应的资源信息更新本地缓存的所述网络设备的资源索引号以及与所述资源索引号对应的资源信息。And the network control terminal updates the resource index number of the locally cached network device according to the resource index number of the network device and the resource information corresponding to the resource index number, and the Resource information corresponding to the resource index number.
可选地,所述方法在所述网络控制终端对接收到的所述网络设备当前的资源信息进行管理的步骤之后还包括:Optionally, after the step of the network control terminal managing the current resource information of the network device, the method further includes:
在所述网络控制终端再次连接所述网络设备的情况下,所述网络控制终端接收所述网络设备发送的hello报文,其中,所述hello报文携带所述网络设备的资源索引号;When the network control terminal is connected to the network device again, the network control terminal receives a hello packet sent by the network device, where the hello packet carries a resource index number of the network device;
在所述网络控制终端本地保存了所述网络设备的资源索引号的情况下,判断本地保存的资源索引号和所述hello报文中携带的资源索引号是否一致;When the network control terminal locally saves the resource index number of the network device, it is determined whether the locally stored resource index number and the resource index number carried in the hello packet are consistent;
在判断结果为本地保留的资源索引号和所述hello报文中携带的资源索引号不一致的情况下,If the resource index number of the local reservation is inconsistent with the resource index number carried in the hello packet,
所述网络控制终端向所述网络设备发送第三请求报文,其中,所述第三请求报文用于获取所述网络设备的资源索引号以及与所述资源索引号对应的资源信息;接收所述网络设备根据所述第三请求报文返回的第三响应报文,其中,所述第三响应报文中携带有所述网络设备的资源索引号以及与所述资源索引号对应的资源信息;The network control terminal sends a third request message to the network device, where the third request message is used to obtain a resource index number of the network device and resource information corresponding to the resource index number; The third response packet returned by the network device according to the third request packet, where the third response packet carries a resource index number of the network device and a resource corresponding to the resource index number information;
所述网络控制终端根据所述第三响应报文携带的所述网络设备的资源索引号以及与所述资源索引号对应的资源信息更新本地缓存的所述网络设备的资源索引号以及与所述资源索引号对应的资源信息。And the network control terminal updates the resource index number of the locally cached network device according to the resource index number of the network device and the resource information corresponding to the resource index number, and the Resource information corresponding to the resource index number.
为了解决上述的技术问题,本发明实施例提供一种网络设备的资源管理方法,包括:In order to solve the above technical problem, an embodiment of the present invention provides a resource management method for a network device, including:
网络设备接收网络控制终端发送的用于获取所述网络设备当前的资源信息的第一请求报文;Receiving, by the network device, a first request message that is used by the network control terminal to obtain current resource information of the network device;
所述网络设备根据所述第一请求报文返回第一响应报文,其中,所述第一响应报文用于所述网络控制终端对所述网络设备当前的资源信息进行管理,所 述第一响应报文携带所述网络设备当前的资源信息。Returning, by the network device, the first response packet according to the first request packet, where the first response packet is used by the network control terminal to manage current resource information of the network device, where The first response message carries current resource information of the network device.
可选地,所述第一响应报文携带所述网络设备的资源索引号以及与所述资源索引号对应的资源信息,所述网络设备根据所述第一请求报文返回第一响应报文的步骤包括:Optionally, the first response packet carries a resource index number of the network device and resource information corresponding to the resource index number, and the network device returns a first response packet according to the first request packet. The steps include:
在所述网络控制设备本地没有缓存所述网络设备的资源索引号以及与所述资源索引号对应的资源信息的情况下,所述网络设备向所述网络控制终端发送所述网络设备的资源索引号以及与所述资源索引号对应的资源信息。In a case that the network control device does not locally cache the resource index number of the network device and the resource information corresponding to the resource index number, the network device sends the resource index of the network device to the network control terminal. a number and resource information corresponding to the resource index number.
可选地,所述方法在所述网络设备根据所述第一请求报文返回第一响应报文的步骤之后包括:Optionally, after the step of the network device returning the first response packet according to the first request packet, the method includes:
所述网络设备接收所述网络控制终端定时发送的用于获取所述网络设备的资源索引号的第二请求报文;Receiving, by the network device, a second request packet that is sent by the network control terminal and used to obtain a resource index number of the network device;
所述网络设备根据所述第二请求报文返回第二响应报文,其中,所述第二响应报文携带所述网络设备的资源索引号。The network device returns a second response message according to the second request message, where the second response message carries a resource index number of the network device.
可选地,所述方法在所述网络设备根据所述第二请求报文返回第二响应报文的步骤之后还包括:Optionally, after the step of the network device returning the second response packet according to the second request packet, the method further includes:
所述网络设备接收所述网络控制终端发送的所述第三请求报文,其中,所述第三请求报文用于获取所述网络设备的资源索引号以及与所述资源索引号对应的资源信息;Receiving, by the network device, the third request packet sent by the network control terminal, where the third request packet is used to acquire a resource index number of the network device and a resource corresponding to the resource index number information;
所述网络设备根据所述第三请求报文返回第三响应报文,其中,所述第三响应报文携带所述网络设备的资源索引号以及与所述资源索引号对应的资源信息。The network device returns a third response message according to the third request message, where the third response message carries a resource index number of the network device and resource information corresponding to the resource index number.
可选地,所述网络设备根据所述第一请求报文返回第一响应报文的步骤之后还包括:Optionally, after the step of the network device returning the first response packet according to the first request packet, the method further includes:
所述网络设备向所述网络控制终端发送hello报文,其中,所述hello报文携带所述网络设备的资源索引号。The network device sends a hello packet to the network control terminal, where the hello packet carries a resource index number of the network device.
为了解决上述的技术问题,本发明实施例提供一种网络控制终端,所述网络控制终端包括: In order to solve the above technical problem, an embodiment of the present invention provides a network control terminal, where the network control terminal includes:
第一发送模块,设置为向网络设备发送用于获取所述网络设备当前的资源信息的第一请求报文;a first sending module, configured to send, to the network device, a first request message for acquiring current resource information of the network device;
第一接收模块,设置为接收所述网络设备根据所述第一请求报文返回的第一响应报文,其中,所述第一响应报文携带所述网络设备当前的资源信息;The first receiving module is configured to receive the first response packet that is sent by the network device according to the first request packet, where the first response packet carries current resource information of the network device;
管理模块,设置为对接收到的所述网络设备当前的资源信息进行管理。And a management module, configured to manage the received current resource information of the network device.
可选地,所述管理模块还设置为在本地网络控制终端没有缓存所述网络设备的资源索引号以及与所述资源索引号对应的资源信息的情况下,缓存所述网络设备的资源索引号以及与所述资源索引号对应的资源信息。Optionally, the management module is further configured to: when the local network control terminal does not cache the resource index number of the network device and the resource information corresponding to the resource index number, cache the resource index number of the network device And resource information corresponding to the resource index number.
可选地,所述网络控制终端还包括:Optionally, the network control terminal further includes:
第二发送模块,设置为定时向所述网络设备发送用于获取所述网络设备的资源索引号的第二请求报文;a second sending module, configured to periodically send, to the network device, a second request packet for acquiring a resource index number of the network device;
第二接收模块,设置为接收所述网络设备根据所述第二请求报文返回的第二响应报文,其中,所述第二响应报文携带所述网络设备的资源索引号。The second receiving module is configured to receive a second response packet that is sent by the network device according to the second request packet, where the second response packet carries a resource index number of the network device.
可选地,所述网络控制终端还包括:Optionally, the network control terminal further includes:
第一判断模块,设置为判断本地缓存的资源索引号与所述第二响应报文中所述网络设备的资源索引号是否一致;The first determining module is configured to determine whether the resource index number of the local cache is consistent with the resource index number of the network device in the second response packet;
第三发射接收模块,设置为在判断结果为本地缓存的资源索引号与所述第二响应报文中所述网络设备的资源索引号不一致的情况下,向所述网络设备发送第三请求报文,其中,所述第三请求报文用于获取所述网络设备的资源索引号以及与所述资源索引号对应的资源信息;接收所述网络设备根据所述第三请求报文返回的第三响应报文,其中,所述第三响应报文中携带有所述网络设备的资源索引号以及与所述资源索引号对应的资源信息;a third transmitting and receiving module, configured to send a third request report to the network device if the resource index number of the local cache is inconsistent with the resource index number of the network device in the second response packet And the third request message is used to obtain a resource index number of the network device and resource information corresponding to the resource index number; and receive, by the network device, according to the third request packet. a third response packet, where the third response packet carries a resource index number of the network device and resource information corresponding to the resource index number;
更新模块,设置为根据所述第三响应报文携带的所述网络设备的资源索引号以及与所述资源索引号对应的资源信息更新本地缓存的所述网络设备的资源索引号以及与所述资源索引号对应的资源信息。An update module, configured to update a resource index number of the network device that is locally cached according to a resource index number of the network device that is carried in the third response packet, and resource information corresponding to the resource index number, and Resource information corresponding to the resource index number.
所述网络控制终端还包括:The network control terminal further includes:
第四接收模块,设置为:在所述网络控制终端再次连接所述网络设备的情况下,接收所述网络设备发送的hello报文,其中,所述hello报文中携带有 所述网络设备的资源索引号;And a fourth receiving module, configured to: when the network control terminal is connected to the network device again, receive a hello packet sent by the network device, where the hello packet carries a resource index number of the network device;
第二判断模块,设置为在本地保留了所述网络设备的资源索引号的情况下,判断本地保留的资源索引号和所述hello报文中携带的资源索引号是否一致;The second judging module is configured to determine whether the resource index number reserved by the local device and the resource index number carried in the hello packet are consistent if the resource index number of the network device is reserved locally;
第二更新模块,设置为在判断结果为本地保留的资源索引号和所述hello报文中携带的资源索引号不一致的情况下,向所述网络设备发送第三请求报文,其中,所述第三请求报文用于获取所述网络设备的资源索引号以及与所述资源索引号对应的资源信息;接收所述网络设备根据所述第三请求报文返回的第三响应报文,其中,所述第三响应报文中携带有所述网络设备的资源索引号以及与所述资源索引号对应的资源信息;所述网络控制终端根据所述第三响应报文携带的所述网络设备的资源索引号以及与所述资源索引号对应的资源信息更新本地缓存的所述网络设备的资源索引号以及与所述资源索引号对应的资源信息。a second update module, configured to send a third request message to the network device, where the resource index number of the local reservation is inconsistent with the resource index number carried in the hello message, where The third request packet is configured to obtain a resource index number of the network device and resource information corresponding to the resource index number, and receive a third response packet that is returned by the network device according to the third request packet, where And the third response packet carries the resource index number of the network device and the resource information corresponding to the resource index number; the network control terminal is configured according to the network device that is carried by the third response packet. The resource index number and the resource information corresponding to the resource index number update a locally cached resource index number of the network device and resource information corresponding to the resource index number.
为了解决上述的技术问题,本发明实施例提供一种网络设备,所述网络设备包括:In order to solve the above technical problem, an embodiment of the present invention provides a network device, where the network device includes:
第五接收模块,设置为接收网络控制终端发送的用于获取所述网络设备当前的资源信息的第一请求报文;a fifth receiving module, configured to receive a first request message that is sent by the network control terminal and used to obtain current resource information of the network device;
第五发送模块,设置为根据所述第一请求报文返回第一响应报文,其中,所述第一响应报文用于所述网络控制终端对所述网络设备当前的资源信息进行管理,所述第一响应报文携带所述网络设备当前的资源信息。The fifth sending module is configured to return a first response message according to the first request message, where the first response message is used by the network control terminal to manage current resource information of the network device, The first response packet carries current resource information of the network device.
可选地,所述第五发送模块还设置为:在本地没有缓存所述网络设备的资源索引号以及与所述资源索引号对应的资源信息的情况下,向所述网络控制终端发送所述网络设备的资源索引号以及与所述资源索引号对应的资源信息。Optionally, the fifth sending module is further configured to: if the resource index number of the network device and the resource information corresponding to the resource index number are not cached locally, send the message to the network control terminal a resource index number of the network device and resource information corresponding to the resource index number.
可选地,所述网络设备还包括:Optionally, the network device further includes:
第六接收模块,设置为接收所述网络控制终端定时发送的用于获取所述网络设备的资源索引号的第二请求报文;a sixth receiving module, configured to receive a second request message that is sent by the network control terminal and is used to obtain a resource index number of the network device;
第六发送模块,设置为根据所述第二请求报文返回第二响应报文,其中,所述第二响应报文中携带有所述网络设备的资源索引号。 The sixth sending module is configured to return a second response message according to the second request message, where the second response message carries a resource index number of the network device.
可选地,所述网络设备还包括:Optionally, the network device further includes:
第七接收模块,设置为所接收所述网络控制终端发送的所述第三请求报文,其中,所述第三请求报文用于获取所述网络设备的资源索引号以及与所述资源索引号对应的资源信息;a seventh receiving module, configured to receive the third request packet sent by the network control terminal, where the third request packet is used to obtain a resource index number of the network device and the resource index Resource information corresponding to the number;
第七发送模块,设置为根据所述第三请求报文返回第三响应报文,其中,所述第三响应报文中携带有所述网络设备的资源索引号以及与所述资源索引号对应的资源信息。The seventh sending module is configured to return a third response message according to the third request message, where the third response message carries a resource index number of the network device and corresponds to the resource index number Resource information.
可选地,所述网络设备还包括:Optionally, the network device further includes:
第八发送模块,设置为向所述网络控制终端发送hello报文,其中,所述hello报文中携带有所述网络设备的资源索引号。The eighth sending module is configured to send a hello packet to the network control terminal, where the hello packet carries a resource index number of the network device.
为了解决上述的技术问题,本发明实施例提供一种网络设备的资源管理系统,所述网络设备的资源管理系统包括上述的网络控制终端和网络设备。In order to solve the above technical problem, an embodiment of the present invention provides a resource management system for a network device, where the resource management system of the network device includes the foregoing network control terminal and a network device.
本发明实施例通过网络控制终端对网络设备的资源信息的及时发现和获取,进而实现网络控制终端对设备资源整体管控功能,从而为外部网络终端快速学习整网拓扑奠定基础。In the embodiment of the present invention, the network control terminal timely discovers and acquires resource information of the network device, thereby implementing the overall control function of the network control terminal on the device resource, thereby laying a foundation for the external network terminal to quickly learn the entire network topology.
附图说明DRAWINGS
图1为本发明网络设备的资源管理方法的一个实施例的流程示意图;1 is a schematic flowchart of an embodiment of a resource management method of a network device according to the present invention;
图2为本发明网络控制终端一实施例的功能模块示意图;2 is a schematic diagram of functional modules of an embodiment of a network control terminal according to the present invention;
图3为本发明网络设备一实施例的功能模块示意图;3 is a schematic diagram of functional modules of an embodiment of a network device according to the present invention;
图4中为本发明网络设备的资源管理系统一实施例的功能模块示意图。FIG. 4 is a schematic diagram of functional modules of an embodiment of a resource management system for a network device according to the present invention.
图5为本发明网络设备的资源管理方法的另一个实施例的流程示意图;FIG. 5 is a schematic flowchart diagram of another embodiment of a resource management method for a network device according to the present invention; FIG.
图6为本发明网络设备的资源管理方法的再一个实施例的流程示意图。 FIG. 6 is a schematic flowchart diagram of still another embodiment of a resource management method for a network device according to the present invention.
实施方式Implementation
应当理解,此处所描述的实施例仅仅用以解释本发明,并不用于限定本发明。It is understood that the embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
本发明实施例提供的一种网络设备的资源管理方法、设备和系统,提出了资源索引号的概念,其中,所述资源索引号可以是一个64位整型,网络设备利用它来映射和标识设备自身的资源信息,相同网络设备不同的资源索引号表明网络设备资源发生过变化。需要注意的是,资源索引号不是固定配置的,网络设备重启后,资源索引号被重置。网络设备可以是路由或转发设备。网络控制终端与网络设备在建立通讯链接后,如果存在能力交换,网络设备将当前的资源索引号作为内容通告给网络控制终端;网络控制终端接收所述网络设备发送过来的你好(hello)报文,所述报文中携带有所述网络设备对应配置的资源索引号。同时网络设备也可以提供获取(get)操作,允许网络控制终端向网络设备获取设备当前的资源索引号以及与当前的资源索引号对应的所述网络设备的资源信息;网络控制终端向所述网络设备发送get请求,请求查询所述网络设备当前的资源索引号。A resource management method, device, and system for a network device according to an embodiment of the present invention proposes a concept of a resource index number, where the resource index number may be a 64-bit integer, and the network device uses the same to map and identify The resource information of the device itself, and the different resource index numbers of the same network device indicate that the network device resources have changed. It should be noted that the resource index number is not fixedly configured. After the network device is restarted, the resource index number is reset. The network device can be a routing or forwarding device. After the network control terminal establishes a communication link with the network device, if there is a capability exchange, the network device notifies the current resource index number as the content to the network control terminal; the network control terminal receives the hello report sent by the network device. The packet carries a resource index number corresponding to the network device. At the same time, the network device may also provide a get operation, and allow the network control terminal to acquire the current resource index number of the device and the resource information of the network device corresponding to the current resource index number to the network device; the network control terminal sends the network device to the network The device sends a get request, and requests to query the current resource index number of the network device.
网络控制终端与网络设备成功建立连接后,网络控制终端向网络设备发送get请求,请求查询所述网络设备的资源索引号以及所述网络设备的资源索引号对应的资源信息,以端口资源为例。After the network control terminal successfully establishes a connection with the network device, the network control terminal sends a get request to the network device, requesting to query the resource index number of the network device and the resource information corresponding to the resource index number of the network device, taking port resources as an example. .
如图1所示,该流程包括以下步骤:As shown in Figure 1, the process includes the following steps:
步骤S101、网络控制终端向网络设备发送get请求,请求查询当前的资源索引号及所述资源索引号对应的所述网络设备的资源信息。Step S101: The network control terminal sends a get request to the network device, and requests to query the current resource index number and the resource information of the network device corresponding to the resource index number.
步骤S102、根据接收到的get请求的内容,网络设备收集本地所述网络设备的资源信息。Step S102: The network device collects resource information of the local network device according to the content of the received get request.
步骤S103、网络设备向网络控制终端返回回应报文。Step S103: The network device returns a response packet to the network control terminal.
如图2所示,图2为网络控制终端一实施例的功能模块示意图,在该实施例中,所述网络控制终端10包括: As shown in FIG. 2, FIG. 2 is a schematic diagram of a functional module of an embodiment of a network control terminal. In this embodiment, the network control terminal 10 includes:
第一发送模块11,设置为向网络设备发送用于获取所述网络设备当前的资源信息的第一请求报文;The first sending module 11 is configured to send, to the network device, a first request message for acquiring current resource information of the network device;
第一接收模块12,设置为接收所述网络设备根据所述第一请求报文返回的第一响应报文,其中,所述第一响应报文携带所述网络设备当前的资源信息;以及The first receiving module 12 is configured to receive the first response packet that is returned by the network device according to the first request packet, where the first response packet carries current resource information of the network device;
管理模块13,设置为对接收到的所述网络设备当前的资源信息进行管理。The management module 13 is configured to manage the received current resource information of the network device.
可选地,所述管理模块还设置为:在本地没有缓存所述网络设备的资源索引号以及与所述资源索引号对应的资源信息的情况下,缓存所述网络设备的资源索引号以及与所述资源索引号对应的资源信息。Optionally, the management module is further configured to: when the resource index number of the network device and the resource information corresponding to the resource index number are not cached locally, cache the resource index number of the network device and Resource information corresponding to the resource index number.
可选地,所述网络控制终端还包括:Optionally, the network control terminal further includes:
第二发送模块,设置为定时向所述网络设备发送用于获取所述网络设备的资源索引号的第二请求报文;以及a second sending module, configured to periodically send, to the network device, a second request message for acquiring a resource index number of the network device;
第二接收模块,设置为接收所述网络设备根据所述第二请求报文返回的第二响应报文,其中,所述第二响应报文中携带有所述网络设备的资源索引号。The second receiving module is configured to receive the second response packet that is sent by the network device according to the second request packet, where the second response packet carries the resource index number of the network device.
如图3所示,图3为网络设备一实施例的功能模块示意图,在该实施例中,所述网络设备20包括:As shown in FIG. 3, FIG. 3 is a schematic diagram of a functional module of an embodiment of a network device. In this embodiment, the network device 20 includes:
第五接收模块21,设置为接收网络控制终端发送的用于获取所述网络设备当前的资源信息的第一请求报文;以及The fifth receiving module 21 is configured to receive, by the network control terminal, a first request message for acquiring current resource information of the network device;
第五发送模块22,设置为根据所述第一请求报文返回第一响应报文,其中,所述第一响应报文用于所述网络控制终端对所述网络设备当前的资源信息进行管理,所述第一响应报文携带所述网络设备当前的资源信息。The fifth sending module 22 is configured to return a first response message according to the first request message, where the first response message is used by the network control terminal to manage current resource information of the network device. The first response packet carries current resource information of the network device.
如图4所示,图4为网络设备的资源管理系统一实施例的功能模块示意图,在该实施例中,所述网络设备的资源管理系统包括网络控制终端10和网络设备20,其中:As shown in FIG. 4, FIG. 4 is a schematic diagram of a functional module of an embodiment of a resource management system of a network device. In this embodiment, the resource management system of the network device includes a network control terminal 10 and a network device 20, where:
所述网络控制终端10包括: The network control terminal 10 includes:
第一发送模块11,设置为向网络设备发送用于获取所述网络设备当前的资源信息的第一请求报文;The first sending module 11 is configured to send, to the network device, a first request message for acquiring current resource information of the network device;
第一接收模块12,设置为接收所述网络设备根据所述第一请求报文返回的第一响应报文,其中,所述第一响应报文携带所述网络设备当前的资源信息;以及The first receiving module 12 is configured to receive the first response packet that is returned by the network device according to the first request packet, where the first response packet carries current resource information of the network device;
管理模块13,设置为对接收到的所述网络设备当前的资源信息进行管理;The management module 13 is configured to manage the received current resource information of the network device;
所述网络设备20包括:The network device 20 includes:
第五接收模块21,设置为接收网络控制终端发送的用于获取所述网络设备当前的资源信息的第一请求报文;以及The fifth receiving module 21 is configured to receive, by the network control terminal, a first request message for acquiring current resource information of the network device;
第五发送模块22,设置为根据所述第一请求报文返回第一响应报文,其中,所述第一响应报文用于所述网络控制终端对所述网络设备当前的资源信息进行管理,所述第一响应报文携带所述网络设备当前的资源信息。The fifth sending module 22 is configured to return a first response message according to the first request message, where the first response message is used by the network control terminal to manage current resource information of the network device. The first response packet carries current resource information of the network device.
设备的资源信息丰富繁杂,如果网络控制终端每次都通过图1所示<get>操作方式查询获知,报文数据量很大。因此,本发明的另一个实施例采取简便方式,由网络控制终端定时的向网络设备获取资源索引号,根据判断同一台设备资源索引号是否一致,推断出网络设备的资源是否已经发生变化:如果同一台设备的资源索引号一致,表明网络设备的资源没有发生过变化,网络控制终端本地保存的资源信息就是当前的设备资源信息;如果不一致,表明网络设备的资源发生过变化,网络控制终端本地保存的资源信息待更新,这时可以再通过图1所示<get>操作方式查询获知当前的设备资源信息。The resource information of the device is rich and complicated. If the network control terminal queries and learns through the <get> operation mode shown in Figure 1, the amount of packet data is large. Therefore, another embodiment of the present invention adopts a simple manner, in which the network control terminal periodically obtains the resource index number from the network device, and determines whether the resource value of the network device has changed according to whether the same device resource index number is consistent: The resource index of the same device is the same, indicating that the resources of the network device have not changed. The resource information saved locally by the network control terminal is the current device resource information. If the information is inconsistent, the network device resources have changed. The saved resource information is to be updated, and then the current device resource information can be obtained by querying the <get> operation mode shown in FIG.
如图5所示,该流程包括以下步骤:As shown in Figure 5, the process includes the following steps:
步骤S201、网络控制终端向网络设备发送get请求,请求查询当前的资源索引号。Step S201: The network control terminal sends a get request to the network device, requesting to query the current resource index number.
步骤S202、根据接收到get请求的内容,网络设备收集本地资源索引号。Step S202: The network device collects a local resource index number according to the content of the get request.
步骤S203、网络设备向网络控制终端返回回应报文。Step S203: The network device returns a response packet to the network control terminal.
步骤S204、网络控制终端接收到回应报文后,判断本地缓存当前的资源索 引号与获取到的设备当前的资源索引号是否一致,如果本地缓存当前的资源索引号与获取到的设备当前的资源索引号一致,表明设备资源没有发生变化,不做处理;如果本地缓存当前的资源索引号与获取到的设备当前的资源索引号不一致,表明设备资源发生变化,采用图1所示的流程获取网络设备的资源信息,更新网络控制终端本地存在缓存的该设备的资源索引号及所述资源索引号对应的所述网络设备的资源信息。Step S204: After receiving the response message, the network control terminal determines that the current resource is cached locally. The quotation mark is consistent with the current resource index number of the obtained device. If the current resource index number of the local cache is the same as the current resource index number of the obtained device, it indicates that the device resource has not changed and is not processed; if the current cache is currently cached The resource index number is inconsistent with the current resource index number of the obtained device, indicating that the device resource changes. The resource information of the network device is obtained by using the process shown in FIG. 1 , and the resource index number of the device locally cached by the network control terminal is updated. The resource information of the network device corresponding to the resource index number.
与图5对应的实施例类似,在本发明的另一实施例中,网络控制终端还可以包括:Similar to the embodiment corresponding to FIG. 5, in another embodiment of the present invention, the network control terminal may further include:
第一判断模块,设置为判断本地缓存的资源索引号与所述第二响应报文中所述网络设备的资源索引号是否一致;The first determining module is configured to determine whether the resource index number of the local cache is consistent with the resource index number of the network device in the second response packet;
第三发射接收模块,设置为在判断结果为所述本地缓存的资源索引号与所述第二响应报文中所述网络设备的资源索引号不一致的情况下,向所述网络设备发送第三请求报文,其中,所述第三请求报文用于获取所述网络设备的资源索引号以及与所述资源索引号对应的资源信息;接收所述网络设备根据所述第三请求报文返回的第三响应报文,其中,所述第三响应报文中携带有所述网络设备的资源索引号以及与所述资源索引号对应的资源信息;a third transmitting and receiving module, configured to send a third to the network device if the resource index number of the local cache is inconsistent with the resource index number of the network device in the second response packet a request message, where the third request message is used to obtain a resource index number of the network device and resource information corresponding to the resource index number; and receiving, by the network device, the packet according to the third request message a third response packet, where the third response packet carries a resource index number of the network device and resource information corresponding to the resource index number;
更新模块,设置为根据所述第三响应报文携带的所述网络设备的资源索引号以及与所述资源索引号对应的资源信息更新本地缓存的所述网络设备的资源索引号以及与所述资源索引号对应的资源信息。An update module, configured to update a resource index number of the network device that is locally cached according to a resource index number of the network device that is carried in the third response packet, and resource information corresponding to the resource index number, and Resource information corresponding to the resource index number.
网络控制终端已经连接上网络设备,当因为一些原因,如网络震荡或用户主动中断连接,网络控制终端在一段保活时间内仍保留网络设备的记录。当网络控制终端再次连接网络设备时,我们判断网络控制终端是否有网络设备的记录,如果没有,表明这是新设备接入,网络控制终端通过<get>操作方式查询获知新设备的资源信息;如果有,判断保留记录里的该设备索引号信息和网络设备上报的hello报文中通告的资源索引号是否一致,如果保留记录里的该设备索引号信息和网络设备上报的hello报文中通告的资源索引号一致,表明设备资源没有发生变化,不做处理;如果保留记录里的该设备索引号信息和网络设 备上报的hello报文中通告的资源索引号不一致,表明设备资源发生变化,更新网络控制终端本地存在缓存的该设备的资源索引号及所述资源索引号对应的所述网络设备的资源信息。The network control terminal is connected to the network device. When the connection is interrupted for some reasons, such as network flapping or the user actively disconnects, the network control terminal retains the record of the network device for a period of keep alive. When the network control terminal is connected to the network device again, we determine whether the network control terminal has a record of the network device. If not, it indicates that the new device is accessed, and the network control terminal queries the resource information of the new device through the <get> operation mode; If yes, determine whether the index number of the device in the record is consistent with the resource index number advertised in the hello packet reported by the network device, if the index number of the device in the record is retained and the hello message reported by the network device is advertised. The resource index number is the same, indicating that the device resource has not changed and is not processed; if the device index number information and network settings in the record are retained The resource index number of the device is inconsistent, and the resource index of the device is changed. The resource index of the device that is cached by the network control terminal and the resource information of the network device corresponding to the resource index are updated.
具体如图6所示,图6为本发明网络设备的资源管理方法的再一个实施例的流程示意图,在该实施例中,该流程包括以下步骤:FIG. 6 is a schematic flowchart of still another embodiment of a resource management method for a network device according to the present invention. In this embodiment, the process includes the following steps:
步骤S301、网络设备向网络控制终端发送hello报文,所述hello报文中附带资源索引号。Step S301: The network device sends a hello packet to the network control terminal, where the hello packet is accompanied by a resource index number.
步骤S302、网络控制终端接收到网络设备发送的hello报文,判断该网络设备是否是新接入设备:如果该网络设备是新接入设备,记录网络设备信息;如果该网络设备不是新接入设备,判断记录中的资源索引号和hello报文中的资源索引号是否一致,如果记录中的资源索引号和hello报文中的资源索引号一致,表明当前记录的该设备的资源信息就是该设备的当前资源信息,如果记录中的资源索引号和hello报文中的资源索引号不一致,表明网络设备的资源信息已经发生变化,则采用图1所示的流程获取网络设备的资源信息,网络控制终端本地存在缓存的该设备的资源索引号及所述资源索引号对应的所述网络设备的资源信息。Step S302: The network control terminal receives the hello packet sent by the network device, and determines whether the network device is a new access device: if the network device is a new access device, recording network device information; if the network device is not a new access The device determines whether the resource index number in the record is the same as the resource index number in the hello packet. If the resource index number in the record matches the resource index number in the hello packet, the current resource information of the device is the same. The current resource information of the device, if the resource index number in the record is inconsistent with the resource index number in the hello packet, indicating that the resource information of the network device has changed, the resource information of the network device is obtained by using the process shown in FIG. Controlling, by the terminal, a resource index number of the device that is cached locally and resource information of the network device corresponding to the resource index number.
与图6对应的实施例类似,在本发明的另一实施例中,网络控制终端还可以包括:Similar to the embodiment corresponding to FIG. 6, in another embodiment of the present invention, the network control terminal may further include:
第四接收模块,设置为:在所述网络控制终端再次连接所述网络设备的情况下,所述网络控制终端接收所述网络设备发送的hello报文,其中,所述hello报文中携带有所述网络设备的资源索引号;The fourth receiving module is configured to: when the network control terminal is connected to the network device again, the network control terminal receives a hello packet sent by the network device, where the hello packet carries a resource index number of the network device;
第二判断模块,设置为在本地保留了所述网络设备的资源索引号的情况下,判断本地保留的资源索引号和所述hello报文中携带的资源索引号是否一致;The second judging module is configured to determine whether the resource index number reserved by the local device and the resource index number carried in the hello packet are consistent if the resource index number of the network device is reserved locally;
第二更新模块,设置为在判断结果为本地保留的资源索引号和所述hello报文中携带的资源索引号不一致的情况下,根据所述hello报文中携带的所述网络设备的资源索引号更新本地保留的所述网络设备的资源索引号以及与所述资源索引号对应的资源信息。 a second update module, configured to: according to the resource index of the network device carried in the hello packet, if the resource index number of the local reservation is inconsistent with the resource index number carried in the hello packet The number updates the resource index number of the network device reserved locally and the resource information corresponding to the resource index number.
以上仅为本发明的实施例,并非因此限制本发明的专利范围。The above are only examples of the invention and are not intended to limit the scope of the invention.
本发明实施例还提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行上述实施例所述的方法。The embodiment of the present invention further provides a computer readable storage medium storing computer executable instructions for executing the method described in the foregoing embodiments.
本发明实施例还提供一种网络控制终端,包括存储器和至少一个处理器,其中,存储器存储有可由处理器执行的指令,所述指令用于执行上述实施例所述的方法。The embodiment of the present invention further provides a network control terminal, including a memory and at least one processor, wherein the memory stores instructions executable by the processor, and the instructions are used to execute the method described in the foregoing embodiments.
本文是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。This document is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
工业实用性Industrial applicability
本发明实施例通过网络控制终端对网络设备的资源信息的及时发现和获取,进而实现网络控制终端对设备资源整体管控功能,从而为外部网络终端快速学习整网拓扑奠定基础。 In the embodiment of the present invention, the network control terminal timely discovers and acquires resource information of the network device, thereby implementing the overall control function of the network control terminal on the device resource, thereby laying a foundation for the external network terminal to quickly learn the entire network topology.

Claims (22)

  1. 一种网络设备的资源管理方法,包括:A resource management method for a network device, including:
    网络控制终端向网络设备发送用于获取所述网络设备当前的资源信息的第一请求报文;The network control terminal sends, to the network device, a first request message for acquiring current resource information of the network device;
    所述网络控制终端接收所述网络设备根据所述第一请求报文返回的第一响应报文,其中,所述第一响应报文携带所述网络设备当前的资源信息;Receiving, by the network control terminal, the first response packet that is returned by the network device according to the first request packet, where the first response packet carries current resource information of the network device;
    所述网络控制终端对接收到的所述网络设备当前的资源信息进行管理。The network control terminal manages the received current resource information of the network device.
  2. 如权利要求1所述的网络设备的资源管理方法,其中,所述第一响应报文携带所述网络设备的资源索引号以及与所述资源索引号对应的资源信息,所述网络控制终端对接收到的所述网络设备当前的资源信息进行管理的步骤包括:The resource management method for a network device according to claim 1, wherein the first response message carries a resource index number of the network device and resource information corresponding to the resource index number, and the network control terminal pairs The step of managing the received current resource information of the network device includes:
    在所述网络控制终端本地没有缓存所述网络设备的资源索引号以及与所述资源索引号对应的资源信息的情况下,所述网络控制终端缓存所述网络设备的资源索引号以及与所述资源索引号对应的资源信息。In a case that the network control terminal does not locally cache the resource index number of the network device and the resource information corresponding to the resource index number, the network control terminal caches the resource index number of the network device and Resource information corresponding to the resource index number.
  3. 如权利要求2所述的网络设备的资源管理方法,所述方法在所述网络控制终端对接收到的所述网络设备当前的资源信息进行管理的步骤之后还包括:The method for managing a resource of a network device according to claim 2, further comprising: after the step of managing, by the network control terminal, the current resource information of the network device that is received by the network control terminal:
    所述网络控制终端定时向所述网络设备发送用于获取所述网络设备的资源索引号的第二请求报文;The network control terminal periodically sends a second request message for acquiring a resource index number of the network device to the network device;
    所述网络控制终端接收所述网络设备根据所述第二请求报文返回的第二响应报文,其中,所述第二响应报文携带所述网络设备的资源索引号。The network control terminal receives the second response packet that is returned by the network device according to the second request packet, where the second response packet carries a resource index number of the network device.
  4. 如权利要求3所述的网络设备的资源管理方法,所述方法在所述网络控制终端接收所述网络设备根据所述第二请求报文返回的第二响应报文的步骤之后还包括:The method for managing a resource of a network device according to claim 3, after the step of receiving, by the network control terminal, the second response message returned by the network device according to the second request packet, the method further comprises:
    所述网络控制终端判断本地缓存的所述网络设备的资源索引号与所述第二响应报文中所述网络设备的资源索引号是否一致; The network control terminal determines whether the resource index number of the network device that is locally cached is consistent with the resource index number of the network device in the second response packet;
    在判断结果为本地缓存的资源索引号与所述第二响应报文中所述网络设备的资源索引号不一致的情况下,所述网络控制终端向所述网络设备发送第三请求报文,其中,所述第三请求报文用于获取所述网络设备的资源索引号以及与所述资源索引号对应的资源信息;接收所述网络设备根据所述第三请求报文返回的第三响应报文,其中,所述第三响应报文中携带有所述网络设备的资源索引号以及与所述资源索引号对应的资源信息;The network control terminal sends a third request message to the network device, where the result is that the resource index number of the local cache is inconsistent with the resource index number of the network device in the second response message, where the network control terminal sends a third request message to the network device, where The third request packet is used to obtain a resource index number of the network device and resource information corresponding to the resource index number, and receive a third response report that is returned by the network device according to the third request packet. The third response packet carries a resource index number of the network device and resource information corresponding to the resource index number;
    所述网络控制终端根据所述第三响应报文携带的所述网络设备的资源索引号以及与所述资源索引号对应的资源信息更新本地缓存的所述网络设备的资源索引号以及与所述资源索引号对应的资源信息。And the network control terminal updates the resource index number of the locally cached network device according to the resource index number of the network device and the resource information corresponding to the resource index number, and the Resource information corresponding to the resource index number.
  5. 如权利要求2所述的网络设备的资源管理方法,所述方法在所述网络控制终端对接收到的所述网络设备当前的资源信息进行管理的步骤之后还包括:The method for managing a resource of a network device according to claim 2, further comprising: after the step of managing, by the network control terminal, the current resource information of the network device that is received by the network control terminal:
    在所述网络控制终端再次连接所述网络设备的情况下,所述网络控制终端接收所述网络设备发送的hello报文,其中,所述hello报文携带所述网络设备的资源索引号;When the network control terminal is connected to the network device again, the network control terminal receives a hello packet sent by the network device, where the hello packet carries a resource index number of the network device;
    在所述网络控制终端本地保存了所述网络设备的资源索引号的情况下,判断本地保存的资源索引号和所述hello报文中携带的资源索引号是否一致;When the network control terminal locally saves the resource index number of the network device, it is determined whether the locally stored resource index number and the resource index number carried in the hello packet are consistent;
    在判断结果为判断本地保留的资源索引号和所述hello报文中携带的资源索引号不一致的情况下,If the result of the judgment is that the resource index number reserved locally is inconsistent with the resource index number carried in the hello packet,
    所述网络控制终端向所述网络设备发送第三请求报文,其中,所述第三请求报文用于获取所述网络设备的资源索引号以及与所述资源索引号对应的资源信息;接收所述网络设备根据所述第三请求报文返回的第三响应报文,其中,所述第三响应报文中携带有所述网络设备的资源索引号以及与所述资源索引号对应的资源信息;The network control terminal sends a third request message to the network device, where the third request message is used to obtain a resource index number of the network device and resource information corresponding to the resource index number; The third response packet returned by the network device according to the third request packet, where the third response packet carries a resource index number of the network device and a resource corresponding to the resource index number information;
    所述网络控制终端根据所述第三响应报文携带的所述网络设备的资源索引号以及与所述资源索引号对应的资源信息更新本地缓存的所述网络设备的资源索引号以及与所述资源索引号对应的资源信息。And the network control terminal updates the resource index number of the locally cached network device according to the resource index number of the network device and the resource information corresponding to the resource index number, and the Resource information corresponding to the resource index number.
  6. 一种网络设备的资源管理方法,包括: A resource management method for a network device, including:
    网络设备接收网络控制终端发送的用于获取所述网络设备当前的资源信息的第一请求报文;Receiving, by the network device, a first request message that is used by the network control terminal to obtain current resource information of the network device;
    所述网络设备根据所述第一请求报文返回第一响应报文,其中,所述第一响应报文用于所述网络控制终端对所述网络设备当前的资源信息进行管理,所述第一响应报文携带所述网络设备当前的资源信息。The network device returns a first response message according to the first request message, where the first response message is used by the network control terminal to manage current resource information of the network device, where the A response message carries current resource information of the network device.
  7. 如权利要求6所述的网络设备的资源管理方法,其中,所述第一响应报文携带所述网络设备的资源索引号以及与所述资源索引号对应的资源信息,所述网络设备根据所述第一请求报文返回第一响应报文的步骤包括:The resource management method for a network device according to claim 6, wherein the first response message carries a resource index number of the network device and resource information corresponding to the resource index number, and the network device according to the The step of returning the first response message in the first request message includes:
    在所述网络控制设备本地没有缓存所述网络设备的资源索引号以及与所述资源索引号对应的资源信息的情况下,所述网络设备向所述网络控制终端发送所述网络设备的资源索引号以及与所述资源索引号对应的资源信息。In a case that the network control device does not locally cache the resource index number of the network device and the resource information corresponding to the resource index number, the network device sends the resource index of the network device to the network control terminal. a number and resource information corresponding to the resource index number.
  8. 如权利要求7所述的网络设备的资源管理方法,所述方法在所述网络设备根据所述第一请求报文返回第一响应报文的步骤之后包括:The method for managing a resource of a network device according to claim 7, after the step of the network device returning the first response message according to the first request message, the method includes:
    所述网络设备接收所述网络控制终端定时发送的用于获取所述网络设备的资源索引号的第二请求报文;Receiving, by the network device, a second request packet that is sent by the network control terminal and used to obtain a resource index number of the network device;
    所述网络设备根据所述第二请求报文返回第二响应报文,其中,所述第二响应报文携带所述网络设备的资源索引号。The network device returns a second response message according to the second request message, where the second response message carries a resource index number of the network device.
  9. 如权利要求8所述的网络设备的资源管理方法,所述方法在所述网络设备根据所述第二请求报文返回第二响应报文的步骤之后还包括:The method for managing a resource of a network device according to claim 8, after the step of the network device returning the second response packet according to the second request packet, the method further includes:
    所述网络设备接收所述网络控制终端发送的所述第三请求报文,其中,所述第三请求报文用于获取所述网络设备的资源索引号以及与所述资源索引号对应的资源信息;Receiving, by the network device, the third request packet sent by the network control terminal, where the third request packet is used to acquire a resource index number of the network device and a resource corresponding to the resource index number information;
    所述网络设备根据所述第三请求报文返回第三响应报文,其中,所述第三响应报文携带所述网络设备的资源索引号以及与所述资源索引号对应的资源信息。 The network device returns a third response message according to the third request message, where the third response message carries a resource index number of the network device and resource information corresponding to the resource index number.
  10. 如权利要求7所述的网络设备的资源管理方法,其中,所述网络设备根据所述第一请求报文返回第一响应报文的步骤之后还包括:The method for managing a resource of a network device according to claim 7, wherein the step of the network device returning the first response message according to the first request message further includes:
    所述网络设备向所述网络控制终端发送hello报文,其中,所述hello报文携带所述网络设备的资源索引号。The network device sends a hello packet to the network control terminal, where the hello packet carries a resource index number of the network device.
  11. 一种网络控制终端,包括:A network control terminal includes:
    第一发送模块,设置为向网络设备发送用于获取所述网络设备当前的资源信息的第一请求报文;a first sending module, configured to send, to the network device, a first request message for acquiring current resource information of the network device;
    第一接收模块,设置为接收所述网络设备根据所述第一请求报文返回的第一响应报文,其中,所述第一响应报文携带所述网络设备当前的资源信息;以及a first receiving module, configured to receive a first response packet that is returned by the network device according to the first request packet, where the first response packet carries current resource information of the network device;
    管理模块,设置为对接收到的所述网络设备当前的资源信息进行管理。And a management module, configured to manage the received current resource information of the network device.
  12. 如权利要求11所述的网络控制终端,其中,所述管理模块还设置为:在所述网络控制终端本地没有缓存所述网络设备的资源索引号以及与所述资源索引号对应的资源信息的情况下,缓存所述网络设备的资源索引号以及与所述资源索引号对应的资源信息。The network control terminal according to claim 11, wherein the management module is further configured to: locally not cache a resource index number of the network device and resource information corresponding to the resource index number in the network control terminal In the case, the resource index number of the network device and the resource information corresponding to the resource index number are cached.
  13. 如权利要求12所述的网络控制终端,其中,所述网络控制终端还包括:The network control terminal of claim 12, wherein the network control terminal further comprises:
    第二发送模块,设置为定时向所述网络设备发送用于获取所述网络设备的资源索引号的第二请求报文;以及a second sending module, configured to periodically send, to the network device, a second request message for acquiring a resource index number of the network device;
    第二接收模块,设置为接收所述网络设备根据所述第二请求报文返回的第二响应报文,其中,所述第二响应报文携带所述网络设备的资源索引号。The second receiving module is configured to receive a second response packet that is sent by the network device according to the second request packet, where the second response packet carries a resource index number of the network device.
  14. 如权利要求13所述的网络控制终端,所述网络控制终端还包括:The network control terminal according to claim 13, wherein the network control terminal further comprises:
    第一判断模块,设置为判断本地缓存的资源索引号与所述第二响应报文中所述网络设备的资源索引号是否一致; The first determining module is configured to determine whether the resource index number of the local cache is consistent with the resource index number of the network device in the second response packet;
    第三发射接收模块,设置为在判断结果为所述本地缓存的资源索引号与所述第二响应报文中所述网络设备的资源索引号不一致的情况下,向所述网络设备发送第三请求报文,其中,所述第三请求报文用于获取所述网络设备的资源索引号以及与所述资源索引号对应的资源信息;接收所述网络设备根据所述第三请求报文返回的第三响应报文,其中,所述第三响应报文中携带有所述网络设备的资源索引号以及与所述资源索引号对应的资源信息;a third transmitting and receiving module, configured to send a third to the network device if the resource index number of the local cache is inconsistent with the resource index number of the network device in the second response packet a request message, where the third request message is used to obtain a resource index number of the network device and resource information corresponding to the resource index number; and receiving, by the network device, the packet according to the third request message a third response packet, where the third response packet carries a resource index number of the network device and resource information corresponding to the resource index number;
    更新模块,设置为根据所述第三响应报文携带的所述网络设备的资源索引号以及与所述资源索引号对应的资源信息更新本地缓存的所述网络设备的资源索引号以及与所述资源索引号对应的资源信息。An update module, configured to update a resource index number of the network device that is locally cached according to a resource index number of the network device that is carried in the third response packet, and resource information corresponding to the resource index number, and Resource information corresponding to the resource index number.
  15. 如权利要求12所述的网络控制终端,其中,所述网络控制终端还包括:The network control terminal of claim 12, wherein the network control terminal further comprises:
    第四接收模块,设置为:在所述网络控制终端再次连接所述网络设备的情况下,接收所述网络设备发送的hello报文,其中,所述hello报文中携带有所述网络设备的资源索引号;And a fourth receiving module, configured to: when the network control terminal is connected to the network device again, receive a hello packet sent by the network device, where the hello packet carries the network device Resource index number;
    第二判断模块,设置为在本地保留了所述网络设备的资源索引号的情况下,判断本地保留的资源索引号和所述hello报文中携带的资源索引号是否一致;The second judging module is configured to determine whether the resource index number reserved by the local device and the resource index number carried in the hello packet are consistent if the resource index number of the network device is reserved locally;
    第二更新模块,设置为在判断结果为本地保留的资源索引号和所述hello报文中携带的资源索引号不一致的情况下,向所述网络设备发送第三请求报文,其中,所述第三请求报文用于获取所述网络设备的资源索引号以及与所述资源索引号对应的资源信息;接收所述网络设备根据所述第三请求报文返回的第三响应报文,其中,所述第三响应报文中携带有所述网络设备的资源索引号以及与所述资源索引号对应的资源信息;所述网络控制终端根据所述第三响应报文携带的所述网络设备的资源索引号以及与所述资源索引号对应的资源信息更新本地缓存的所述网络设备的资源索引号以及与所述资源索引号对应的资源信息。a second update module, configured to send a third request message to the network device, where the resource index number of the local reservation is inconsistent with the resource index number carried in the hello message, where The third request packet is configured to obtain a resource index number of the network device and resource information corresponding to the resource index number, and receive a third response packet that is returned by the network device according to the third request packet, where And the third response packet carries the resource index number of the network device and the resource information corresponding to the resource index number; the network control terminal is configured according to the network device that is carried by the third response packet. The resource index number and the resource information corresponding to the resource index number update a locally cached resource index number of the network device and resource information corresponding to the resource index number.
  16. 一种网络设备,包括:A network device, including:
    第五接收模块,设置为接收网络控制终端发送的用于获取所述网络设备当 前的资源信息的第一请求报文;a fifth receiving module, configured to receive, by the network control terminal, the acquiring the network device The first request message of the previous resource information;
    第五发送模块,设置为根据所述第一请求报文返回第一响应报文,其中,所述第一响应报文用于所述网络控制终端对所述网络设备当前的资源信息进行管理,所述第一响应报文携带所述网络设备当前的资源信息。The fifth sending module is configured to return a first response message according to the first request message, where the first response message is used by the network control terminal to manage current resource information of the network device, The first response packet carries current resource information of the network device.
  17. 如权利要求16所述的网络设备,其中,所述第五发送模块还设置为在本地没有缓存所述网络设备的资源索引号以及与所述资源索引号对应的资源信息的情况下,向所述网络控制终端发送所述网络设备的资源索引号以及与所述资源索引号对应的资源信息。The network device according to claim 16, wherein the fifth sending module is further configured to: if the resource index number of the network device and the resource information corresponding to the resource index number are not locally cached, The network control terminal sends a resource index number of the network device and resource information corresponding to the resource index number.
  18. 如权利要求17所述的网络设备,,所述网络设备还包括:The network device of claim 17, wherein the network device further comprises:
    第六接收模块,设置为接收所述网络控制终端定时发送的用于获取所述网络设备的资源索引号的第二请求报文;a sixth receiving module, configured to receive a second request message that is sent by the network control terminal and is used to obtain a resource index number of the network device;
    第六发送模块,设置为根据所述第二请求报文返回第二响应报文,其中,所述第二响应报文携带所述网络设备的资源索引号。The sixth sending module is configured to return a second response message according to the second request message, where the second response message carries a resource index number of the network device.
  19. 如权利要求18所述的网络设备,其中,所述网络设备还包括:The network device of claim 18, wherein the network device further comprises:
    第七接收模块,设置为所接收所述网络控制终端发送的所述第三请求报文,其中,所述第三请求报文用于获取所述网络设备的资源索引号以及与所述资源索引号对应的资源信息;a seventh receiving module, configured to receive the third request packet sent by the network control terminal, where the third request packet is used to obtain a resource index number of the network device and the resource index Resource information corresponding to the number;
    第七发送模块,设置为根据所述第三请求报文返回第三响应报文,其中,所述第三响应报文携带所述网络设备的资源索引号以及与所述资源索引号对应的资源信息。The seventh sending module is configured to return a third response message according to the third request message, where the third response message carries a resource index number of the network device and a resource corresponding to the resource index number information.
  20. 如权利要求17所述的网络设备,其中,所述网络设备还包括:The network device of claim 17, wherein the network device further comprises:
    第八发送模块,设置为向所述网络控制终端发送hello报文,其中,所述hello报文携带所述网络设备的资源索引号。 The eighth sending module is configured to send a hello packet to the network control terminal, where the hello packet carries a resource index number of the network device.
  21. 一种网络设备的资源管理系统,其中,所述网络设备的资源管理系统包括如权利要求11至15任一项所述的网络控制终端和权利要求16至20任一项所述的网络设备。A resource management system for a network device, wherein the resource management system of the network device comprises the network control terminal according to any one of claims 11 to 15 and the network device according to any one of claims 16 to 20.
  22. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1-10任一项所述的方法。 A computer readable storage medium storing computer executable instructions for performing the method of any of claims 1-10.
PCT/CN2016/077565 2015-07-27 2016-03-28 Resource management method of network device, device and system WO2016177182A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510446076.1 2015-07-27
CN201510446076.1A CN106712982A (en) 2015-07-27 2015-07-27 Network equipment resource management method, equipment and system

Publications (1)

Publication Number Publication Date
WO2016177182A1 true WO2016177182A1 (en) 2016-11-10

Family

ID=57217466

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/077565 WO2016177182A1 (en) 2015-07-27 2016-03-28 Resource management method of network device, device and system

Country Status (2)

Country Link
CN (1) CN106712982A (en)
WO (1) WO2016177182A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101277259A (en) * 2007-03-28 2008-10-01 华为技术有限公司 Transmission method and system for resource information, medium gateway and medium gateway controller
CN102098343A (en) * 2011-02-12 2011-06-15 浪潮(北京)电子信息产业有限公司 Method and system for saving and acquiring resource information in cloud-computing operating system
CN104320272A (en) * 2014-10-21 2015-01-28 中国联合网络通信集团有限公司 Device information transmission method and network device
US20150063112A1 (en) * 2013-08-30 2015-03-05 Futurewei Technologies Inc. Dynamic priority queue mapping for qos routing in software defined networks

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100384146C (en) * 2005-06-08 2008-04-23 杭州华三通信技术有限公司 Method for managing distribution network equipment
CN104506370B (en) * 2014-12-31 2018-05-08 新华三技术有限公司 Without network management system management method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101277259A (en) * 2007-03-28 2008-10-01 华为技术有限公司 Transmission method and system for resource information, medium gateway and medium gateway controller
CN102098343A (en) * 2011-02-12 2011-06-15 浪潮(北京)电子信息产业有限公司 Method and system for saving and acquiring resource information in cloud-computing operating system
US20150063112A1 (en) * 2013-08-30 2015-03-05 Futurewei Technologies Inc. Dynamic priority queue mapping for qos routing in software defined networks
CN104320272A (en) * 2014-10-21 2015-01-28 中国联合网络通信集团有限公司 Device information transmission method and network device

Also Published As

Publication number Publication date
CN106712982A (en) 2017-05-24

Similar Documents

Publication Publication Date Title
EP3879879B1 (en) Time sensitive networking communication method and apparatus thereof
WO2019196813A1 (en) Method and device for subscribing to service
US20170244596A1 (en) Configuration Information Management Method, Device, Network Element Management System and Storage Medium
US10637794B2 (en) Resource subscription method, resource subscription apparatus, and resource subscription system
CN103618800A (en) Method and device for achieving subscription informing
EP3852419A1 (en) Latency-sensitive network communication method and apparatus thereof
JP2007066161A (en) Cache system
CN103780679A (en) Long time delay remote invocation method based on HTTP protocol
WO2021254331A1 (en) Resource management method and system, proxy server, and storage medium
US9913074B2 (en) Identifying resources from a device in a communications network
CN103220228A (en) Method and equipment for sending border gateway protocol (BGP) routes
JP7348293B2 (en) Data processing methods and equipment
CN112566164A (en) Communication system and service quality control method
US11700189B2 (en) Method for performing task processing on common service entity, common service entity, apparatus and medium for task processing
JP6289879B2 (en) Communication terminal, communication method and program
US10135916B1 (en) Integration of service scaling and external health checking systems
US10263864B2 (en) Apparatus and method for collecting adaptive flow statistics data in carrier network
WO2016177182A1 (en) Resource management method of network device, device and system
WO2018086575A1 (en) Method and device for controlling media resource
WO2016177135A1 (en) Resource management method, device, and control terminal
JP2019022078A (en) Virtual server organization method and virtual server organization system
WO2016177134A1 (en) Resource processing method and device
JP6858887B2 (en) IP address setting method and device
WO2015145953A1 (en) Communication terminal, communication method, and program-containing storage medium
KR101042244B1 (en) Method and System for Managing Quality of Experience of Service in Wired and Wireless Communication Network

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

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

Country of ref document: EP

Kind code of ref document: A1