[go: up one dir, main page]

WO2007041899A1 - A system and method of managing the dynamic adaptive distributed resource - Google Patents

A system and method of managing the dynamic adaptive distributed resource Download PDF

Info

Publication number
WO2007041899A1
WO2007041899A1 PCT/CN2005/001661 CN2005001661W WO2007041899A1 WO 2007041899 A1 WO2007041899 A1 WO 2007041899A1 CN 2005001661 W CN2005001661 W CN 2005001661W WO 2007041899 A1 WO2007041899 A1 WO 2007041899A1
Authority
WO
WIPO (PCT)
Prior art keywords
resource
real
resources
resource management
virtual
Prior art date
Application number
PCT/CN2005/001661
Other languages
French (fr)
Chinese (zh)
Inventor
Youquan He
Changcai Geng
Original Assignee
Zte Corporation
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zte Corporation filed Critical Zte Corporation
Priority to PCT/CN2005/001661 priority Critical patent/WO2007041899A1/en
Priority to CN2005800495200A priority patent/CN101167307B/en
Publication of WO2007041899A1 publication Critical patent/WO2007041899A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control

Definitions

  • the present invention relates to distributed resource management, and more particularly to a system and method for dynamically adaptive distributed resource management.
  • RMB resource management board
  • Figure 1 shows a network structure of a distributed resource, including multiple RMB and RSB.
  • Each RMB is configured with a number of RSB boards. The status of these RSB boards is monitored by the resource monitoring module in RMB.
  • the RMB that monitors RSB is also called the RMB to which the RSB belongs.
  • the solid line is used to describe this correspondence.
  • the status of the resource board RSB11 - RSBlp is monitored by the resource monitoring module in RMB1; the status of RSB21 ⁇ RSBlk is monitored by the resource monitoring module in RMB2.
  • the resource management module needs to apply to the resource management module when the resource is used.
  • the resource management module can allocate other RSB monitoring RSBs for it.
  • the dotted line is used to describe the resource usage relationship in Figure 1, and the RMB using the RSB resource can be seen. It is not necessarily the RMB that monitors the RSB.
  • Each RMB manages only its own resources, that is, monitoring and management.
  • the problem with this approach is that resources cannot be shared.
  • RMB cannot work, although other RMBs have idle resources, RMB cannot satisfy the resources.
  • RMB cannot satisfy the resources.
  • In this management mode in order to ensure reliability, more RSB boards need to be configured for backup. The hardware cost of the deployment is increased, which is not conducive to future maintenance.
  • a centralized resource management method such as the patent disclosed in Patent Application No. 96117990.2 (publication number CN1156362A), is a representative of centralized resource management.
  • the program puts all resources on one RMB for unified management, and other RMB needs resources must apply to this RMB.
  • the problem with this method is that once the RMB downtime for centralized management of resources is unified, the entire system will be a situation of a bad situation, which is very dangerous.
  • there are cross-board messages for resource applications between RMB which will inevitably lead to longer application time and risk of loss of information.
  • the third way Resources are not centrally managed on a RMB, but also distributed management.
  • an RMB resource is insufficient or resources are in question, the resources are applied to other RMB in turn.
  • the problem with this method is that there is uncertainty, and the software process is complicated and difficult to implement.
  • the time for applying for resources is uncertain, and some time is short and short, which is not conducive to the software design of the resource part of the RMB application.
  • DTMF resources are a resource that is needed in telecommunications equipment to enable a call between a fixed telephone subscriber and other subscribers.
  • the two virtual boxes in FIG. 1 respectively represent two RMBs, and the call processing module (ie, resource usage module) of the left RMB1 sends a request for requesting DTMF resources to the resource management module, and the resource management module first checks whether there is any available on the RMB.
  • DTMF if it is found to be available, immediately apply for occupancy, and return the occupied DTMF number to the call processing module; when the RMB has no DTMF available, the resource management module will send the inter-board borrowing to other RMBs.
  • Resource request such as RMB2 on the right. After receiving the request, RMB2 also first searches for the RMB. If no DTMF resources are available, the next RMB is used to request the borrowing of the resource, and so on, until the application of the available DTMF resources and the occupation or the return of all the RMBs. Asked again.
  • This kind of processing flow is very cumbersome, and it is difficult to determine the timeout protection time because the call processing module (resource usage module) is difficult to determine how many such cross-board calls are needed, and it is difficult to determine the processing.
  • the call processing module does not know the message between the boards. Loss or cross-board calls for this normal processing flow delay, considering that each call processing is time-limited, it may occur that although there are resources available, the call fails due to too many cross-board calls. , resulting in call loss. In order to avoid this situation, it is generally adopted to configure a large number of backup resource boards for each RMB to avoid, which leads to an increase in hardware costs.
  • the technical problem to be solved by the present invention is to provide a dynamically adaptive distributed resource management system and method, which realizes the sharing of global resources, greatly reduces the processing of resource applications, and shortens the time for resource application.
  • the existing RMB management method for resources is passive, that is, when the actual application of resources is performed. If a method is provided, the status of the resource can be actively monitored. Once the resource is found to be unavailable, the resource can be actively searched for available resources, which will simplify the processing of the resource application and shorten the time for resource application.
  • the present invention proposes an implementation method of first configuring a virtual resource, utilizing a mapping between a virtual resource and a real resource, and adaptively reaching a global shared resource.
  • Resources include hardware resources (also called physical resources) and software resources.
  • Hardware resources refer to physical entities that can be allocated and utilized in a distributed system, such as a specific board and a serial port.
  • Software resources refer to resources. Software description and labeling of software code with a certain function. Hardware resources are described in a software program by a software resource.
  • Real Resources Software resources that are directly used to describe a hardware resource, such as software code that implements DTMF functionality.
  • An RSB board can provide one or more real resource instances. The three existing management methods mentioned in the background section can be attributed to the management method of real resources.
  • Virtual resources Refers to the logical resources defined in the program according to the needs, which can be obtained through configuration. There is no fixed correspondence between virtual resources and real resources. It may be related to a certain real resource at a certain moment, and establish contact with another real resource at another time, or establish contact with different real resources.
  • Mapping refers to the establishment of the virtual resource and the real resource - the corresponding relationship, once the mapping is established System, then a real resource can be uniquely identified based on the virtual resource number.
  • Mapping relationships include direct mapping relationships and indirect mapping relationships.
  • Direct mapping means that a virtual resource directly corresponds to a real resource, and there is no intermediary.
  • Indirect mapping means that a virtual resource is first mapped to other virtual resources, and then other virtual resources are mapped to a real resource.
  • the present invention provides a dynamically adaptive distributed resource management system, including multiple resource management boards and multiple resource boards, where the resource management board includes a resource monitoring module and a resource management module, and the resources are The board has an instance of one or more real resources, and the resource monitoring module is configured to monitor the status of the real resources on the resource boards of the resource management board and notify the resource management module of the resource management board;
  • the resource management module is configured to record the real resource status and usage of the resource management board, and obtain and record the information of the real resources available on each resource management board, and find available resources for the virtual resources configured on the resource management board.
  • a real-world resource and a mapping relationship between the two are allocated, and when the resource application is received, the available virtual resources are allocated and the information of the real resources mapped thereto is returned.
  • the resource management module further includes the following units:
  • a resource information storage unit configured to record a status of each real resource monitored by the resource management board and information of a resource management board using the real resource, and information about each virtual resource configured by the resource management board and the real resource mapped by the resource management board And the available real resource information monitored by each resource management board in the system;
  • the shared resource information maintenance unit is configured to periodically obtain information about the available real resources from other resource management boards, and implement timing update of the global shared resources, and at the same time After the mapping between the real resource and the virtual resource is completed, the remaining available real resources are advertised or queried as global shared resources.
  • the resource allocation unit is configured to allocate available virtual resources and return the virtual resource when the resource application is received. The real resource identifier corresponding to the virtual resource, if no virtual resource is available, a failure message is returned;
  • the mapping establishment processing unit is configured to search for available real resources in the global scope and establish a mapping relationship between the virtual resources configured for the resource management board;
  • the resource management control unit is configured to coordinate and control each unit of the resource management module, and complete various functions of the resource management module. Further, the foregoing distributed resource management system may further have the following features:
  • the resource information storage unit stores the following list:
  • the real resource table records the identity and status flag of each real resource monitored by the resource management board, and the identifiers of other resource management boards that use the real resource;
  • the virtual resource table records the identifier, mapping flag, and mapped real resource identifier of each virtual resource configured by the resource management board;
  • the global shared resource table records the identifiers of the various resource management boards in the system and the number and types of available real resources monitored.
  • mapping establishment processing unit further includes:
  • An intra-board mapping sub-unit is configured to search for a virtual resource that has not been mapped yet.
  • find a real resource of the same type and set the state of the found real resource to be mapped and record the virtual resource.
  • the inter-board mapping establishment sub-unit is configured to search for the saved global shared resource, find the real resource available on the other resource management board, and then issue a borrowing request to the resource management board, and after the confirmation, record the virtual resource and the real resource. Mapping relationship, when receiving a message rejecting borrowing, deleting the record corresponding to the real resource or invalidating it;
  • An inter-board mapping confirmation sub-unit is configured to determine the current state of the real resources when receiving requests for borrowing real resources from other resource management boards, return an acknowledgement message when it is actually available, and set the status of the real resources. Is mapped, otherwise returns a message that refuses to borrow.
  • the resource management control unit includes a power-on control sub-unit, configured to: after the system is powered on, set a timer to wait for the resource board of the resource management board to be normal. Run, and start the process of obtaining the global shared resource, and then start the mapping establishment process after the timer expires.
  • the resource management control unit includes a real resource change processing sub-unit, configured to not operate or receive the real resource in real resources.
  • the real resource sent by the resource management board fails to operate normally, the real resource status is set to be unavailable.
  • the resource management board that uses the real resource is also notified to release the virtual resource and the A mapping of real resources and attempting to establish a new mapping for the virtual resource.
  • the real resource change processing sub-unit is further configured to: when the available real resources increase, set the status of the real resources to be available, and the resource management board is Similar virtual resources that have not been mapped are mapped to these real resources, and redundant available real resources are added to the global shared resource table.
  • the resource management module further includes a mapping relationship adjusting unit, configured to periodically check the usage rate of the virtual resource of the resource management board, if a virtual resource is mapped When the usage rate is lower than a certain set value, the mapping relationship between the virtual resource and the real resource is released, and the real resource state is set to be available. If the usage rate of an unmapped virtual resource is greater than a certain set value, Then find a mapping relationship for the real resources that are available for it.
  • the present invention also provides a dynamically adaptive distributed resource management method, which is applied to a distributed resource management system including multiple resource management boards and multiple resource boards, including the following steps:
  • the resource management board has no virtual resources mapped to the real resource mapping for the board configuration.
  • the board and other resource management boards find the real resources of the same kind as the available status, find the mapping relationship between the two, and set the status of the real resource to mapped. After the processing is completed, the remaining available real resources are taken as the global Share resource;
  • the resource management board allocates the available virtual resources and returns the real resource identifier corresponding to the virtual resource. If no virtual resources are available, a failure message is returned.
  • the resource management board records the relationship between the information of the real resource, the virtual resource, and the global shared resource and the information by saving the following list: the real resource table, the record The identifier of each real resource monitored by the resource management board, the status flag, and the identifier of other resource management boards using the real resource; the virtual resource table records the identifier and mapping of each virtual resource configured by the resource management board. The flag and the mapped real resource identifier; and the global shared resource table record the identity of each resource management board in the system and the number and type of available real resources monitored.
  • the foregoing distributed resource management method may further have the following features: the mapping between the virtual resource and the real resource is performed by writing the number of the corresponding real resource in the virtual resource record in the virtual resource table, and is in use The real resource table on the resource management board of the real resource is set to the mapped state, and the resource management board information using the real resource is recorded.
  • the foregoing distributed resource management method may further have the following features: In the step (b), the resource management board periodically sends a global resource table request message from another resource management board, and the other resource management boards receive the message. After that, the type and quantity of available real resources monitored by the board are returned; or the resource management module periodically broadcasts real resource information available to the board to other modules.
  • the foregoing distributed resource management method may further have the following features:
  • the resource management board sets a timer when the power is turned on, and after the timer expires, the step (c) is performed. ', and before the timer expires, the available real resources of the board are not sent or queried as global shared resources.
  • the foregoing distributed resource management method may further have the following features:
  • the resource management board first searches for the same real resource in the board as the available state, and when the board is not found, The global shared resource information saved by this board finds the available real resources.
  • the resource management board should send a resource borrowing request, and obtain a mapping relationship between the virtual resource and the real resource that is allowed to be borrowed.
  • the foregoing distributed resource management method may further have the following features: further comprising: the resource management board notifying that the real resource cannot be normally operated or receiving the notification that the real resource sent by the other resource management board cannot be normally operated The real resource status is set to be unavailable.
  • the resource management board that uses the real resource is also notified to release the mapping relationship between the virtual resource and the real resource, and an attempt is made to create a new resource for the virtual resource. Mapping.
  • the foregoing distributed resource management method may further have the following features: The method further includes the following steps: when the resource management board detects that the available real resources increase, the status of the real resources is set to be available, and the resource management board is the resource management board. Similar virtual resources that have not been mapped are mapped to these real resources, and redundant available real resources are added to the global shared resource table.
  • the foregoing distributed resource management method may further have the following features: The following steps are further included: when the virtual resource configured by the resource management board is increased, an attempt is made to establish a mapping relationship between the real resource and the real resource; The existing virtual resource is deleted and the virtual resource is deleted. If the original real resource is in the resource management board, the status is set to be available and added to the global shared resource table. The real resource is not in the resource management board. When notified, the resource management board to which it belongs is set to its status.
  • the foregoing distributed resource management method may further include the following steps:
  • the resource management board periodically checks the usage rate of the virtual resource of the resource management board, if the usage rate of a mapped virtual resource is lower than For a certain set value, the mapping relationship between the virtual resource and the real resource is released, and the real resource state is set to be available. If the usage rate of an unmapped virtual resource is greater than a certain set value, it is searched for A real resource is available to establish a mapping relationship.
  • the maximum features of the system and method of the present invention first configure virtual resources (by abstracting the concept of virtual resources), and utilize the mapping of virtual resources and real resources to achieve global shared resources through adaptation. .
  • the invention ensures that the software implementation part that needs to use the resource only needs to apply for resources to the resource management module on the RMB, and there is no problem of borrowing resources across boards, so each application The time to ask for resources is fixed and very fast. Therefore, the software for applying for resources is greatly simplified in the processing flow, which improves the efficiency of the system and enhances the reliability of the system.
  • FIG. 1 is a schematic diagram of a network structure of a distributed resource in an embodiment of the present invention.
  • FIG. 2 is a schematic diagram of a resource application process of the existing distributed resource management.
  • FIG. 3 is a schematic diagram of a resource application process in a virtual resource condition according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of mapping of DTMF (Dual Tone Multi-Frequency) virtual resources and real resources in an example of the present invention.
  • DTMF Double Tone Multi-Frequency
  • Fig. 5 is a flow chart showing the process of obtaining a global shared resource table from RMB1 to other RMBs in the above example.
  • Figure 6 is a flow chart showing the borrowing of real resources from RMB1 to other RMB in the above example.
  • Each RMB includes a resource monitoring module, a resource management module, and a resource usage module, where:
  • the resource monitoring module is configured to periodically monitor the status of the RSB real resource configured for the RMB, and notify the resource management module of the RMB to modify when the status changes. These states include: Whether the RSB is in place, whether it can run normally, RSB Is there any damage to the real resources?
  • the resource usage module is used to apply for resources to the resource management module on the RMB.
  • the resource management module is configured to record the real resource status and the usage status of the RMB monitoring, and obtain and record the available real resource information of each RMB board periodically, and find available real resources for the virtual resources configured by the RMB and establish a mapping relationship between the two. And allocate available virtual resources when the resource request is received and return the corresponding real resource number. It further includes the following units:
  • the resource information storage unit is configured to save the real resource table, the virtual resource table, and the global shared resource table.
  • the real resource table records the number and status of each real resource monitored by the RMB, and the RMB number of the real resource (which can be used by default when the RMB is used).
  • the real resource is identified by a number.
  • Each RSB board is numbered. When multiple real resource instances are provided on the RSB board, the real resource instance is also assigned a number, so that the number can be used to uniquely determine which RSB board is on which RSB board.
  • a real resource instance is configured to record the real resource status and the usage status of the RMB
  • the virtual resource table records the number of each virtual resource in the RMB configuration, the mapping flag, and the mapped real resource number.
  • the virtual resources of RMB can be configured as needed, that is, how much is needed, and the configuration can be implemented manually or by registration.
  • the global shared resource table records the number of the RMB and other RMBs in the system and the types of monitoring resources and the number of available real resources.
  • the real resources available in the table are normal running and have no mapping relationship with the virtual resources, and can be used by all RMBs. The real resources used.
  • the shared resource information maintenance unit is configured to periodically send a message for obtaining the global shared resource to other RMBs, or return the number and type of real resources available to the RMB after receiving the message, and implement the global shared resource table according to the information obtained from other RMBs. Timing updates, while mapping within the RMB completion board and there are available real resources, add these available real resources to the global resource sharing table for query. In this way, a fast mapping of virtual resources and real resources is realized on RMB.
  • the mapping establishment processing unit is configured to find available real-world resources of the virtual resources configured for the RMB and establish a mapping relationship between the two. Includes:
  • An intra-board mapping sub-unit is configured to search for a virtual resource that has not yet been mapped. If the real resource of the same type is found in the real resource table of the RMB, the state of the real resource is mapped and is in the virtual state. Fill in the record of the resource with the number of the real resource.
  • An inter-board mapping sub-unit is configured to search for a global shared resource table to find real resources available on other RMBs when the real resource is not available in the RMB, and then send a request to the RMB after the discovery, and obtain a record of the virtual resource after confirmation. Fill in the number of the real resource, and delete the record corresponding to the real resource or invalidate it when receiving the message that refuses to borrow.
  • Inter-board mapping confirmation sub-unit used to receive requests for borrowing real resources from other RMBs At this time, the current state of these real resources is judged, an acknowledgment message is returned when available, and the state of these real resources is set to mapped, otherwise a message rejecting the borrowing is returned.
  • a resource allocation unit configured to allocate an available virtual resource when the resource application is received (the virtual resource is available only after mapping with the real resource), and returns the virtual resource corresponding to the virtual resource table. Resource number, a failure message is returned if no virtual resources are available.
  • the resource management control unit is configured to coordinate and control each unit to complete adaptive management of the distributed resources, and further includes:
  • the power-on control sub-unit is configured to set a timer to wait for the RSB of the RMB to operate normally after the system is powered on, and start a process of acquiring the global shared resource, and start the process of mapping establishment after the timer expires.
  • the real resource change processing sub-unit is configured to: when the real resource is reduced or the notification that the real resource sent by the other RMB cannot be normally operated, the real resource status is set to be unavailable, and when the real resource is mapped, the real resource is also notified.
  • the RMB of the real resource is used to release the mapping relationship between the virtual resource and the real resource, and an attempt is made to establish a new mapping for the virtual resource.
  • the available real resources increase, the 'states' of these real resources are made available, and the mapping of these real resources to the virtual resources of the same type on the RMB is established, and the redundant available real resources are added to the global shared resource table.
  • the virtual resource change processing sub-unit is configured to try to establish a mapping relationship between the virtual resource and the real resource when the configured virtual resource increases.
  • the configured virtual resource is reduced, the existing mapping relationship (if any) of the virtual resource is removed, and the virtual resource is deleted from the virtual resource table.
  • the state is set to be available. And join the global shared resource table, the real resource is not in the RMB, notify its RMB to make its status available.
  • Step 1 After the power-on of RMB1 is successful, first send an event message of the global shared resource to the monitoring module of other RMB to obtain other RMB in the global shared resource table.
  • a delay timer (Ti, i can be arbitrarily set according to programming requirements) is set, waiting for the normal operation of the RSB board monitored by the monitoring module on RMB1;
  • Step 2 Before the timer (Ti) on the RMB1 times out, when the monitoring module of the RMB1 finds that the monitored RSB is running normally, it immediately sets the flag bit (or the status bit) in the real resource table corresponding to the RSB.
  • the other RMB Before the timeout message of the delay timer (Ti) arrives, the other RMB sends an event message of the global shared resource to the RMB1.
  • the RMB1 has the following two processing methods: 1) no response; 2) responding to the requester RMB1 in the global shared resource table There are no shared resources available in the middle. There may be one of two methods, the purpose of which is to ensure that other RMB will not have RMB1 available resource information in their global shared resource table before the RMB1 timer (Ti) times out.
  • Step 3 After the event that the RMB1 receives its own timer (Ti) timeout, it finds the virtual resource that has not been mapped with the real resource from the virtual resource table in turn, and then finds that the status bit is available and is the same from the real resource table.
  • the real resource of the type and then fill in the record of the virtual resource in the virtual resource table, and set the status bit status of the real resource in the real resource table to be mapped, thereby implementing the RMB1 monitoring. Mapping of RSB resources to virtual resources of RMB1;
  • Step 4 Determine whether all virtual resources configured in RMB1 have real resources mapped to them, and if yes, perform step 5, otherwise, perform step 6;
  • Step 5 Check whether there is a real resource with the status bit as the available flag on the RMB1. If yes, put all the remaining real resources into the global shared resource table on the RMB1, and wait for other RMB to periodically obtain the corresponding information. End;
  • Step 6 At this time, there is still no virtual resource mapped on RMB1, and the RSB monitored by RMB1 is not available yet, then it is found from the global shared resource table of RMB1 whether other RMBs have the same type of available real resources, if If yes, go to Step 7. Otherwise, go to Step 11; Step 7: RMB1 sends a borrowing real resource request message to other RMBs that monitor the real resource (assumed to be RMB2);
  • Step 8 After receiving the borrowing real resource request message, RMB2 judges whether the real resource is actually available. If yes, go to step 9. Otherwise, return the failure message, and RMB1 will return the real resource. The off record is deleted (or invalidated), and then returns to step 6, which is to find other available real resources in the global shared resource table;
  • Step 9 RMB2 determines the real resource to be mapped with the virtual resource, sets the state of the real resource to the mapped in the real resource table, records the borrowed RMB1 number, and returns a confirmation to allow the borrowing of the real resource to the RMB1. Message, and provide the borrowed real resource number;
  • Step 10 After receiving the response message of borrowing the real resource, RMB1 establishes a mapping relationship between the virtual resource and the borrowed real resource, and ends;
  • Step 11 At this time, if the virtual resource cannot find the corresponding real resource, the operation duty person is notified to handle the processing.
  • the above process optimizes the resources monitored by the RMB when resource mapping of the virtual resources on the RMB, especially in the case of just powering up, the RMB needs to wait for a short time. It is confirmed that the resources monitored by the RMB are successfully running, and the idle resources monitored by other RMBs are allowed to be mapped only when the resources monitored by the RMB are still not running.
  • the RMB In order to maintain the global shared resource table on each RMB and realize real-time refresh, the RMB is set after the power-on is completed from other RMBs (how many RMBs are known according to the configuration), and the information required for the global shared resource table is obtained for the first time.
  • a timer periodically sends a global resource table request message to other RMBs.
  • the other RMB board returns the type and quantity of real resources available for monitoring by the board.
  • the RMB then fills in the global shared resource table according to the information, including the monitoring module. Fields such as the number of the RMB, the resource category, and the number of available real resources.
  • the global shared resource table data may also be updated in various other manners, such as:
  • the resource management module periodically broadcasts the real resource information available on the module to other modules. Processing when real resources are reduced
  • the monitoring module of RMB monitors the running status of the RSB. It is assumed that RMB1 detects that some real resource instances on the RSB or RSB monitored by this RMB are not working properly.
  • Step A RMB1 indicates that all the real resource instances that are not working properly are marked as unavailable in the corresponding status bits in the real resource table;
  • Step B RMB1 searches for the local real resource table, and determines whether the real resource has a mapping relationship with the virtual resource. If not, the process ends directly; otherwise, the next step is performed;
  • Step C RMB1 determines whether the RMB using the real resource is the current RMB according to the record of the real resource table, and if yes, directly cancels the mapping relationship between the virtual resource and the real resource, that is, deletes the real resource in the corresponding record of the RMB1 virtual resource table. No., execute the next step; if it is not the real resource monitored by the RMB, immediately notify the RMB that uses the real resource. After receiving the notification, the RMB immediately removes the mapping relationship between the real resource instance and the virtual resource in the virtual resource table. Carry out the next step;
  • Step E Check whether the resource usage module occupies the virtual resource by using the RMB of the real resource. If yes, immediately notify the resource to use the module for corresponding processing, and perform the next step; otherwise, directly execute the next step;
  • Step F Use the real resource's RMB to locally find a real resource for the virtual resource to establish a mapping relationship. If not, try to establish the virtual resource and other RSB monitored RSB resources according to the method of step 6 to step 11. Mapping relationship.
  • the real resource is reduced.
  • the real resource can be directly deleted from the real resource table.
  • Step H RMB1 sets the status of these real resources to be available in the real resource table;
  • Step I RMB1 checks whether there is a virtual resource of the same type that has not been mapped with the real resource in the virtual resource table, if yes, step J is performed, otherwise, step K is performed;
  • Step J RMBl establishes a mapping relationship between the virtual resource and the newly added real resource. If there are more new real resources, perform the next step, otherwise, end;
  • Step K Put the newly added real resources that have not been mapped into the global shared resource table of the RMB, and wait for the timing of other RMB to obtain the corresponding information.
  • RMB1 When the system is running, assuming that the virtual resources configured for RMB1 are increased, the following process is processed: RMB1 first searches the real resource table of the board to find out whether there are real resources available, and if so, establishes a mapping relationship between the two; If the real resource or some of the virtual resources are not mapped, the mapping between the virtual resource and the RSB resources monitored by other RMBs is attempted according to the method of step 6 to step 11.
  • RMB1 When the system is running, if the virtual resource configured for RMB1 is reduced, the following process is processed: RMB1.
  • the mapping between the virtual resource and the original real resource is directly removed, and then the virtual resource is deleted in the virtual resource table. If the real resource is a local real resource, its status is directly changed to available. If it is a real resource monitored by other RMB, the RMB is notified, and the status of the original real resource is changed to available by the RMB.
  • FIG. 3 is a resource application process in a resource management manner using virtual resources in this embodiment.
  • the resource management module of the RMB manages only the virtual resources of the RMB, so that the resource usage module (such as the call processing module) applies for the virtual resources to the resource management module on the RMB, and the virtual resources are only available in the same real resource.
  • the resource management module determines whether there is a virtual resource available to the RMB, and if not, returns a failure message to the resource usage module. If yes, assign a virtual resource to it, and obtain the unique real resource corresponding to the virtual resource through the virtual resource table. Number, returned to the resource usage module.
  • the automatic maintenance of the mapping relationship does not require the borrowing of the resources across the board, so that the time for applying the resources by the resource using module is fixed and very fast. And the processing flow of the resource usage module is greatly simplified, and the efficiency is improved.
  • FIG. 4 shows the mapping relationship between virtual resources and real resources in this application.
  • 10 real DTMF resources numbered DTMF1 ⁇ DTMF10
  • 3 resource management boards RMB numbered RMB1 ⁇ RMB3, and each resource management board RMB is configured with 3 virtual DTMF resources, of which the monitoring module of RMB1 is configured.
  • 2 real resources DTMF1 and DTMF2
  • the monitoring module of RMB2 is configured with 4 real resources
  • DTMF3 ⁇ DTMF6 4 real resources
  • the monitoring module of RMB3 is configured with 4 real resources (DTMF7 ⁇ DTMF10), as indicated by the solid line in Figure 4.
  • This configuration relationship is indicated by the solid line in Figure 4.
  • the virtual resources on the monitoring RMB are optimized for the resources monitored by the RMB.
  • RMBK RMB2 and RMB3 are started, and the real resources DTMF1 ⁇ DTMF10 are also started normally.
  • the virtual DTMF resource of RMB2 and the real resource DTMF3 ⁇ DTMF5 - mapping the same virtual DTMF resource of RMB3 and the real resource DTMF7 ⁇ DTMF9 - mapping, as shown by the dotted line in Figure 4; assume that the real DTMF6 of RMB2 is still in Available status, real DTMF10 monitored by RMB3 is also available.
  • RMB1 Configuration Three virtual DTMF resources are first mapped with the real resources DTMF1 and DTMF2 monitored by this RMB. There is still a virtual DTMF3 resource that is not mapped. It can only be temporarily empty, and virtual DTMF3 resources are not available.
  • the global resource table request message is first obtained to obtain the corresponding record of the global shared resource table. Therefore, there may be two records in the global shared resource table on the RMB1, that is, one of the RMB2 is available.
  • the real resource DTMF6, RMB3 has a real resource DTMF10 available.
  • the RMB is set from the other RMBs after the power-on is completed (the total number of RMBs can be known according to the configuration). After the first record of the global shared resource table is obtained, a timer is set.
  • RMB1 sends a global resource table request message to RMB2 and RMB3, and globally shares the message.
  • the information corresponding to RMB2 and RMB3 in the resource table is obtained to RMB1, and the information obtained from RMB1 and RMB3 is also filled in the global shared resource table on the board, and RMB3 is also filled in from the information obtained in RMB1. and RMB2.
  • RMB1 finds that the real resource DTMF6 available on RMB2 and the real resource DTMF10 available on RMB3 from the global shared resource table, it is assumed that RMB1 first borrows the real resource request message from RMB2, and RMB2 receives the borrowed real resource. After requesting the message, it scans whether the real DTMF resource monitored by the RMB is really rich and is not borrowed by other RMB. As a result, it is found that DTMF6 is available, so that the resource of DTMF6 is marked and managed by RMB1, and then the real resource is borrowed from RMB1. The response message, after receiving the response message of the real resource, RMB1 completes the mapping relationship between the virtual resource DTMF3 and the real resource DTMF6.
  • RMB2 finds that the DTMF6 monitored by itself is not working properly. Therefore, RMB2 finds that DTMF6 is managed by RMB1 from the DTMF resources, so immediately informs RMB1 that DTMF6 is unavailable, and RMB1 immediately receives the virtual DTMF resource after receiving the message.
  • the mapping relationship between DTMF6 is released, and it is checked whether there is a call processing module occupied. If so, the corresponding call processing module is immediately notified to perform corresponding processing; then, in the global shared resource table, it is checked whether DTMF is available, if any Then, the flow of FIG. 5 is repeated.
  • the virtual duty resource has no real resource corresponding, and the operation duty personnel intervene. For example, replace the RSB that cannot work or configure a new RSB to solve the problem in advance, instead of waiting for the resource to be really unavailable, to ensure the reliability of the system.
  • the processing flow thereof can completely ensure the reliable operation of the system.
  • the configured virtual resources are configured with real resources, or if there are too many real resources that cannot work, resulting in fewer real resources that can work, such as when the resources are used unevenly, some virtual objects on the RMB will appear.
  • the resource usage is low, which causes the mapped real resources to be occupied.
  • the other resources on the RMB are not available because the virtual resources are not mapped to the real resources, which leads to the resource usage module not being used. The situation where the application fails to apply for resources appears.
  • the present embodiment proposes a completely dynamic adaptive mechanism based on the method and system of the first embodiment, that is, dynamically adjusts the mapping relationship according to the usage rate of the virtual resources in the stable operation of the system.
  • a mapping relationship adjusting unit is added to the resource management module to perform the following processing: After the stable operation of the system of the RMB board, a timer Tj is set (the timing time can be arbitrarily set according to programming requirements), and the timer Tj is timed. Check the usage rate of the virtual resource of the RMB. If the usage rate of a virtual resource is lower than a certain value, the mapping relationship between the virtual resource and the real resource is released, and the real use of the RMB is temporarily used.
  • the resource management method using the virtual resource provided by the present invention does not appear in the above example because of the adaptive processing flow and the automatic virtual resource and real resource mapping in the non-call process. Multiple cross-board calls occur to cause a call loss.
  • the invention can be applied to a distributed computer system, realizes the management of distributed resources through the configuration of virtual resources, and greatly simplifies the software processing flow of applying for resources.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Hardware Redundancy (AREA)

Abstract

A system and method of managing the dynamic adaptive distributed resource, comprises a plurality of resource management boards having the resource monitor module and the management module and a plurality of resource boards having one or more physical resource example. It configures all the physical resources and the virtual resources needed by every resource management board first and identifies them; after the resource management board is power on, it monitors the state of the physical resources configured for it, identifies the state, and timedly acquires the information of the available physical resources from the other resource management boards; for its virtual resource mapping no physical resource, the resource management board searches the intraclass physical resource which state is available for it in its own and the other resource management boards, records their mapping relation after finding it, and sets the state of the physical resource is mapped and the remainder available physical resources are shared by the whole; when resource is requested, the resource management board distributes the available physical resource and returns the identification of the corresponding physical resource. The process of requesting the resource of the present invention is more reduced and the rate is more improved.

Description

一种可动态自适应的分布式资源管理系统和方法  Dynamically adaptive distributed resource management system and method

技术领域 Technical field

本发明涉及分布式资源管理,尤其涉及一种可动态自适应的分布式资源 管理的系统和方法。  The present invention relates to distributed resource management, and more particularly to a system and method for dynamically adaptive distributed resource management.

背景技术 Background technique

在一个现代分布式计算机系统中, 不同的 CPU单板实现不同的功能, 通过这些单板的分工协作来实现设计者设计整个系统的功能的目的。比如一 个有众多用户的电信系统,部分单板提供资源处理能力, 为叙述方便将这种 具有实现某种功能的资源处理板筒称为资源板(RSB ) ,部分单板用于监控、 分配和管理资源板, 这类单板被称为资源管理板(RMB ) , RMB中包括资 源监控模块和资源管理模块, 还可以包括资源使用模块。 通过 RMB来实现 RSB板资源的全局共享。  In a modern distributed computer system, different CPU boards implement different functions, and the division of labor of these boards enables the designer to design the functions of the entire system. For example, a telecommunications system with many users, some boards provide resource processing capabilities. For the convenience of description, this resource processing board with certain functions is called a resource board (RSB), and some boards are used for monitoring, distribution, and The management resource board is called a resource management board (RMB). The RMB includes a resource monitoring module and a resource management module, and may also include a resource usage module. The global sharing of RSB board resources is realized by RMB.

图 1所示是一种分布式资源的网络结构示意图,包括多个 RMB和 RSB。 每个 RMB配置有数目不等的 RSB单板,这些 RSB单板的状态由 RMB中的 资源监控模块来监控,文中也把监控 RSB的 RMB称为该 RSB所属的 RMB。 图中用实线来描述这种对应关系, 具体比如资源板 RSB11 - RSBlp的状态 由 RMB1 中的资源监控模块来监控; RSB21 ~ RSBlk的状态由 RMB2中的 资源监控模块来监控。资源使用模块要使用资源时需要向的资源管理模块提 出申请, 资源管理模块可以为它分配其它 RMB监控的 RSB, 图 1中用虛线 来描述资源使用关系,可以看出使用该 RSB资源的 RMB未必是监控该 RSB 的 RMB。  Figure 1 shows a network structure of a distributed resource, including multiple RMB and RSB. Each RMB is configured with a number of RSB boards. The status of these RSB boards is monitored by the resource monitoring module in RMB. The RMB that monitors RSB is also called the RMB to which the RSB belongs. The solid line is used to describe this correspondence. For example, the status of the resource board RSB11 - RSBlp is monitored by the resource monitoring module in RMB1; the status of RSB21 ~ RSBlk is monitored by the resource monitoring module in RMB2. The resource management module needs to apply to the resource management module when the resource is used. The resource management module can allocate other RSB monitoring RSBs for it. The dotted line is used to describe the resource usage relationship in Figure 1, and the RMB using the RSB resource can be seen. It is not necessarily the RMB that monitors the RSB.

如何实现这些 RSB单板资源的全局共享,一直是业内考虑解决的问题, 以前对资源的管理主要有以下几种管理方式。  How to realize the global sharing of these RSB board resources has always been a problem that the industry considers to solve. In the past, the management of resources mainly has the following management methods.

第一种方式: 各个 RMB只管理属于自己的资源, 也就是监控和管理合 一。 这种方式存在的问题是资源不能共享, 当某个 RMB的资源全部不能工 作了, 尽管其他的 RMB有空闲的资源, RMB需要资源时也不能满足。 在 这种管理模式下, 为了要保证可靠性需要配置较多的 RSB板进行备份, 开 局的硬件成本增加, 也不利于以后的维护。 The first way: Each RMB manages only its own resources, that is, monitoring and management. The problem with this approach is that resources cannot be shared. When all the resources of a certain RMB cannot work, although other RMBs have idle resources, RMB cannot satisfy the resources. In In this management mode, in order to ensure reliability, more RSB boards need to be configured for backup. The hardware cost of the deployment is increased, which is not conducive to future maintenance.

第二种方式: 采用集中式资源管理方式, 如专利申请号为 96117990.2 的专利(公开号为 CN1156362A )公开的方案就是集中式资源管理的一个代 表。 该方案把所有的资源放在一个 RMB上进行统一管理, 其他 RMB需要 资源必须到此 RMB上申请。 此方法存在的问题是一旦统一集中管理资源的 RMB 宕机, 那么整个系统就将是瘫局的情况出现, 非常危险。 另外 RMB 间的资源申请存在跨板消息,不可避免会导致申请资源时间的较长和有丟消 息的危险。  The second method: A centralized resource management method, such as the patent disclosed in Patent Application No. 96117990.2 (publication number CN1156362A), is a representative of centralized resource management. The program puts all resources on one RMB for unified management, and other RMB needs resources must apply to this RMB. The problem with this method is that once the RMB downtime for centralized management of resources is unified, the entire system will be a situation of a bad situation, which is very dangerous. In addition, there are cross-board messages for resource applications between RMB, which will inevitably lead to longer application time and risk of loss of information.

第三种方式: 资源不在一个 RMB上集中管理, 也采用分布式的管理, 在一个 RMB的资源不够或资源出现问题时,依次向其他的 RMB申请资源。 该方法存在的问题是存在不确定性, 软件流程复杂, 难以实现。 而且申请资 源的时间的不确定, 有的时间长有的时间短, 不利于 RMB上申请资源部分 的软件设计。  The third way: Resources are not centrally managed on a RMB, but also distributed management. When an RMB resource is insufficient or resources are in question, the resources are applied to other RMB in turn. The problem with this method is that there is uncertainty, and the software process is complicated and difficult to implement. Moreover, the time for applying for resources is uncertain, and some time is short and short, which is not conducive to the software design of the resource part of the RMB application.

下面就以 DTMF ( Dual Tone Multi-Frequency, 多音双频) 资源为例来 详细说明上述第三种分布式资源管理方法。 DTMF的资源是在电信设备中为 了实现一个固定电话用户与其他用户间的通话而需要的一种资源。 The following describes the third distributed resource management method by taking the DTMF (Dual Tone Multi-Frequency) resource as an example. DTMF resources are a resource that is needed in telecommunications equipment to enable a call between a fixed telephone subscriber and other subscribers.

图 1中的两个虚框分别表示两个 RMB,左侧 RMB1的呼叫处理模块(即 资源使用模块) 向资源管理模块发送申请 DTMF 资源的请求, 资源管理模 块先在本 RMB上检查有没有可用的 DTMF, 如果发现有可用的, 就立即申 请占用, 并将占用的 DTMF的编号返回给呼叫处理模块; 当本 RMB已经没 有可用的 DTMF时,资源管理模块就向其他的 RMB发跨板的借用资源请求, 如右侧的 RMB2。 RMB2收到该请求后, 也先在本 RMB上查找, 如果没有 可用的 DTMF资源就再向下一个 RMB发借用资源请求, 依次类推, 直到申 请到可用的 DTMF资源并占用返回或者将所有的 RMB都请求一遍。  The two virtual boxes in FIG. 1 respectively represent two RMBs, and the call processing module (ie, resource usage module) of the left RMB1 sends a request for requesting DTMF resources to the resource management module, and the resource management module first checks whether there is any available on the RMB. DTMF, if it is found to be available, immediately apply for occupancy, and return the occupied DTMF number to the call processing module; when the RMB has no DTMF available, the resource management module will send the inter-board borrowing to other RMBs. Resource request, such as RMB2 on the right. After receiving the request, RMB2 also first searches for the RMB. If no DTMF resources are available, the next RMB is used to request the borrowing of the resource, and so on, until the application of the available DTMF resources and the occupation or the return of all the RMBs. Asked again.

这种处理流程非常的繁瑣, 呼叫处理模块(资源使用模块)由于很难确 定需要多少次的这种跨板调用因而也就很难确定超时保护的时间,处理上就 很难抉择。 另外由于存在多次的跨板调用, 呼叫处理模块不知是板间的消息 丟失还是跨板调用这种正常的处理流程的延误,考虑到每一次的呼叫处理是 有时间限制的, 所以可能会出现尽管有可用的资源,但由于不能太多次的跨 板调用导致呼叫失败, 导致呼损。 为了避免这种情况的出现, 一般是采用给 每个 RMB配置较多的备份资源板来规避, 这样导致硬件成本的升高。 This kind of processing flow is very cumbersome, and it is difficult to determine the timeout protection time because the call processing module (resource usage module) is difficult to determine how many such cross-board calls are needed, and it is difficult to determine the processing. In addition, because there are multiple cross-board calls, the call processing module does not know the message between the boards. Loss or cross-board calls for this normal processing flow delay, considering that each call processing is time-limited, it may occur that although there are resources available, the call fails due to too many cross-board calls. , resulting in call loss. In order to avoid this situation, it is generally adopted to configure a large number of backup resource boards for each RMB to avoid, which leads to an increase in hardware costs.

发明内容 Summary of the invention

本发明要解决的技术问题是提供一种可动态自适应的分布式资源管理 系统和方法, 在实现共享全局资源的同时, 大大筒化了资源申请的处理, 缩 短了资源申请的时间。  The technical problem to be solved by the present invention is to provide a dynamically adaptive distributed resource management system and method, which realizes the sharing of global resources, greatly reduces the processing of resource applications, and shortens the time for resource application.

通过对已知技术的分析可以发现, 现有的 RMB对资源的管理方法都是 被动的, 即实际申请资源时才进行查找。 如果提供一种方法, 可以主动监测 资源的状态, 一旦发现资源可能不可用就立即主动去找可用的资源,将会简 化资源申请的处理和缩短资源申请的时间。本发明基于此思路提出了先对虚 资源进行配置, 利用虚资源与实资源的映射, 通过自适应达到全局共享资源 的一种实珑方法。  Through the analysis of known technologies, it can be found that the existing RMB management method for resources is passive, that is, when the actual application of resources is performed. If a method is provided, the status of the resource can be actively monitored. Once the resource is found to be unavailable, the resource can be actively searched for available resources, which will simplify the processing of the resource application and shorten the time for resource application. Based on this idea, the present invention proposes an implementation method of first configuring a virtual resource, utilizing a mapping between a virtual resource and a real resource, and adaptively reaching a global shared resource.

先对本发明用到的一些名词定义如下:  Some of the nouns used in the present invention are defined as follows:

资源: 包括硬件资源(也称为物理资源)和软件资源, 硬件资源是指在 分布式系统内能够进行分配利用的物理实体, 比如一块具体的单板, 一个串 口等; 而软件资源是指通过软件描述和标示的具有某种功能的软件代码。硬 件资源在软件程序中通过一个软件资源来描述。  Resources: include hardware resources (also called physical resources) and software resources. Hardware resources refer to physical entities that can be allocated and utilized in a distributed system, such as a specific board and a serial port. Software resources refer to resources. Software description and labeling of software code with a certain function. Hardware resources are described in a software program by a software resource.

实资源: 指直接用来描述某一硬件资源的软件资源, 如实现 DTMF 功 能的软件代码。 一个 RSB板可提供一个或多个实资源实例。 背景技术部分 提到的三种现有管理方法都可以归结为是实资源的管理方法。  Real Resources: Software resources that are directly used to describe a hardware resource, such as software code that implements DTMF functionality. An RSB board can provide one or more real resource instances. The three existing management methods mentioned in the background section can be attributed to the management method of real resources.

虚资源: 指才艮据需要在程序中定义的逻辑资源, 可以通过配置的方式获 得。虚资源与实资源之间没有固定的对应关系, 可能在某一时刻同某个实资 源相联系,在另一个时刻则同另一个实资源建立联系, 或者不同实资源建立 联系。  Virtual resources: Refers to the logical resources defined in the program according to the needs, which can be obtained through configuration. There is no fixed correspondence between virtual resources and real resources. It may be related to a certain real resource at a certain moment, and establish contact with another real resource at another time, or establish contact with different real resources.

映射: 指虚资源同实资源之间建立的——对应关系, 一旦建立了映射关 系, 那么根据虚资源编号就可以唯一地确定一个实资源。 映射关系包括直接 的映射关系和间接的映射关系。直接映射是指某个虚资源同某个实资源直接 对应, 没有中介。 间接映射是指某个虚资源先与其他的虚资源进行映射, 再 由其他的虚资源映射到某个实资源。 Mapping: refers to the establishment of the virtual resource and the real resource - the corresponding relationship, once the mapping is established System, then a real resource can be uniquely identified based on the virtual resource number. Mapping relationships include direct mapping relationships and indirect mapping relationships. Direct mapping means that a virtual resource directly corresponds to a real resource, and there is no intermediary. Indirect mapping means that a virtual resource is first mapped to other virtual resources, and then other virtual resources are mapped to a real resource.

基于以上思路, 本发明提供了一种可动态自适应的分布式资源管理系 统, 包括多个资源管理板和多个资源板, 所述资源管理板包括资源监控模块 和资源管理模块, 所述资源板具有一个或多个实资源的实例, 其特征在于: 所述资源监控模块,用于监控为本资源管理板配置的若干资源板上实资 源的状态并通知本资源管理板的资源管理模块; Based on the above, the present invention provides a dynamically adaptive distributed resource management system, including multiple resource management boards and multiple resource boards, where the resource management board includes a resource monitoring module and a resource management module, and the resources are The board has an instance of one or more real resources, and the resource monitoring module is configured to monitor the status of the real resources on the resource boards of the resource management board and notify the resource management module of the resource management board;

所述资源管理模块,用于记录本资源管理板监控的实资源状态和使用情 况, 定时获取和记录各个资源管理板上可用实资源的信息, 并为本资源管理 板配置的虛资源寻找可用的同类实资源和建立两者的映射关系,在收到资源 申请时分配可用的虛资源并返回与其映射的实资源的信息。  The resource management module is configured to record the real resource status and usage of the resource management board, and obtain and record the information of the real resources available on each resource management board, and find available resources for the virtual resources configured on the resource management board. A real-world resource and a mapping relationship between the two are allocated, and when the resource application is received, the available virtual resources are allocated and the information of the real resources mapped thereto is returned.

进一步地, 上述分布式资源管理系统还可具有以下特点: 所述资源管理 模块进一步包括以下单元:  Further, the foregoing distributed resource management system may further have the following features: The resource management module further includes the following units:

资源信息存储单元,用于记录本资源管理板监控的每个实资源的状态和 使用该实资源的资源管理板的信息,本资源管理板配置的每个虚资源和其映 射的实资源的信息, 以及系统中各个资源管理板监控的可用实资源信息; 共享资源信息维护单元,用于定时向从其他资源管理板获取其可用实资 源的信息, 实现对全局共享资源的定时更新, 同时在本板实资源和虚资源的 映射建立完成后, 将余下的可用实资源作为全局共享资源发布或供查询; 资源分配单元, 用于在收到资源申请时, 为其分配可用的虚资源并返回 该虚资源对应的实资源标识, 如果没有可用的虚资源就返回失败消息;  a resource information storage unit, configured to record a status of each real resource monitored by the resource management board and information of a resource management board using the real resource, and information about each virtual resource configured by the resource management board and the real resource mapped by the resource management board And the available real resource information monitored by each resource management board in the system; the shared resource information maintenance unit is configured to periodically obtain information about the available real resources from other resource management boards, and implement timing update of the global shared resources, and at the same time After the mapping between the real resource and the virtual resource is completed, the remaining available real resources are advertised or queried as global shared resources. The resource allocation unit is configured to allocate available virtual resources and return the virtual resource when the resource application is received. The real resource identifier corresponding to the virtual resource, if no virtual resource is available, a failure message is returned;

映射建立处理单元,用于为本资源管理板配置的虚资源在全局范围内寻 找可用的同类实资源并建立两者的映射关系;  The mapping establishment processing unit is configured to search for available real resources in the global scope and establish a mapping relationship between the virtual resources configured for the resource management board;

资源管理控制单元, 用于对本资源管理模块的各个单元进行协调和控 制, 完成资源管理模块的各项功能。 进一步地, 上述分布式资源管理系统还可具有以下特点: 所述资源信息 存储单元中保存了以下列表: The resource management control unit is configured to coordinate and control each unit of the resource management module, and complete various functions of the resource management module. Further, the foregoing distributed resource management system may further have the following features: The resource information storage unit stores the following list:

实资源表, 记录了本资源管理板监控的每个实资源的标识、 状态标志, 以及使用该实资源的其它资源管理板的标识;  The real resource table records the identity and status flag of each real resource monitored by the resource management board, and the identifiers of other resource management boards that use the real resource;

虚资源表, 记录了本资源管理板配置的每个虛资源的标识、 映射标志及 所映射的实资源标识;  The virtual resource table records the identifier, mapping flag, and mapped real resource identifier of each virtual resource configured by the resource management board;

全局共享资源表,记录了系统中各个资源管理板的标识及其所监控的可 用实资源的数量和类型。  The global shared resource table records the identifiers of the various resource management boards in the system and the number and types of available real resources monitored.

进一步地, 上述分布式资源管理系统还可具有以下特点: 所述映射建立 处理单元进一步包括:  Further, the foregoing distributed resource management system may further have the following features: the mapping establishment processing unit further includes:

板内映射建立子单元, 用于对还没有建立映射的虚资源, 在本资源管理 板的实资源表中寻找可用的同类实资源,将找到的实资源的状态置为已映射 并记录该虚资源和该实资源的映射关系;  An intra-board mapping sub-unit is configured to search for a virtual resource that has not been mapped yet. In the real resource table of the resource management board, find a real resource of the same type, and set the state of the found real resource to be mapped and record the virtual resource. The mapping relationship between the resource and the real resource;

板间映射建立子单元, 用于查找保存的全局共享资源, 寻找其它资源管 理板上可用的实资源, 找到后向该资源管理板发出借用请求,得到确认后记 录该虛资源和该实资源的映射关系,收到拒绝借用的消息时删除该实资源对 应的记录或置其为无效;  The inter-board mapping establishment sub-unit is configured to search for the saved global shared resource, find the real resource available on the other resource management board, and then issue a borrowing request to the resource management board, and after the confirmation, record the virtual resource and the real resource. Mapping relationship, when receiving a message rejecting borrowing, deleting the record corresponding to the real resource or invalidating it;

板间映射确认子单元,用于在收到其它资源管理板发来的借用实资源的 请求时, 判断这些实资源的当前状态, 在确实可用时返回确认消息, 并将这 些实资源的状态置为已映射, 否则返回拒绝借用的消息。  An inter-board mapping confirmation sub-unit is configured to determine the current state of the real resources when receiving requests for borrowing real resources from other resource management boards, return an acknowledgement message when it is actually available, and set the status of the real resources. Is mapped, otherwise returns a message that refuses to borrow.

进一步地, 上述分布式资源管理系统还可具有以下特点: 所述资源管理 控制单元包括上电控制子单元, 用于在系统上电后,设置一定时器以等待本 资源管理板所属资源板正常运行, 并启动获取全局共享资源的进程,在定时 器超时后再启动映射建立的过程。 Further, the foregoing distributed resource management system may further have the following features: The resource management control unit includes a power-on control sub-unit, configured to: after the system is powered on, set a timer to wait for the resource board of the resource management board to be normal. Run, and start the process of obtaining the global shared resource, and then start the mapping establishment process after the timer expires.

进一步地, 上述分布式资源管理系统还可具有以下特点: 所述资源管理 控制单元包括实资源变化处理子单元,用于在实资源不能正常运行或收到其 它资源管理板发来的实资源不能正常运行的通知时,将该实资源状态置为不 可用,在该实资源已映射时, 还通知使用该实资源的资源管理板解除其虛资 源与该实资源的映射关系, 并尝试为该虛资源建立新的映射。 Further, the foregoing distributed resource management system may further have the following features: the resource management control unit includes a real resource change processing sub-unit, configured to not operate or receive the real resource in real resources. When the real resource sent by the resource management board fails to operate normally, the real resource status is set to be unavailable. When the real resource is mapped, the resource management board that uses the real resource is also notified to release the virtual resource and the A mapping of real resources and attempting to establish a new mapping for the virtual resource.

进一步地, 上述分布式资源管理系统还可具有以下特点: 所述实资源变 化处理子单元还用于在可用的实资源增加时, 将这些实资源的状态置为可 用, 为本资源管理板上还未映射的同类虚资源建立与这些实资源的映射, 并 将多余的可用实资源加入全局共享资源表。  Further, the foregoing distributed resource management system may further have the following features: The real resource change processing sub-unit is further configured to: when the available real resources increase, set the status of the real resources to be available, and the resource management board is Similar virtual resources that have not been mapped are mapped to these real resources, and redundant available real resources are added to the global shared resource table.

进一步地, 上述分布式资源管理系统还可具有以下特点: 所述资源管理 控制单元包括实资源变化处理子单元, 用于在配置的虚资源增加时, 尝试为 其建立和实资源间的映射关系; 在配置的虚资源减少时, 解除该虚资源已有 的映射关系并删除该虛资源,原映射的实资源在本资源管理板时, 将其状态 置为可用并加入全局共享资源表, 该实资源不在本资源管理板时, 通知其资 源管理板将其状态置为可用。  Further, the foregoing distributed resource management system may further have the following features: The resource management control unit includes a real resource change processing sub-unit, and is configured to try to establish a mapping relationship between the real resource and the real resource when the configured virtual resource increases. When the configured virtual resource is reduced, the existing mapping relationship of the virtual resource is removed and the virtual resource is deleted. When the original mapped real resource is in the resource management board, the state is set to be available and added to the global shared resource table. When the real resource is not in the resource management board, notify its resource management board to make its status available.

进一步地, 上述分布式资源管理系统还可具有以下特点: 所述资源管理 模块进一步包括映射关系调整单元,用于定时检查本资源管理板的虚资源的 使用率,如果某个已映射虚资源的使用率低于某个设定值, 就将该虚资源与 实资源的映射关系解除, 将该实资源状态置为可用, 如果某个未映射的虛资 源的使用率大于某个设定值, 则为其寻找可用的实资源建立映射关系。  Further, the foregoing distributed resource management system may further have the following features: The resource management module further includes a mapping relationship adjusting unit, configured to periodically check the usage rate of the virtual resource of the resource management board, if a virtual resource is mapped When the usage rate is lower than a certain set value, the mapping relationship between the virtual resource and the real resource is released, and the real resource state is set to be available. If the usage rate of an unmapped virtual resource is greater than a certain set value, Then find a mapping relationship for the real resources that are available for it.

基于以上思路,本发明还提供了一种可动态自适应的分布式资源管理方 法,应用于包括多个资源管理板和多个资源板的分布式资源管理系统, 包括 以下步骤: Based on the above ideas, the present invention also provides a dynamically adaptive distributed resource management method, which is applied to a distributed resource management system including multiple resource management boards and multiple resource boards, including the following steps:

( a )在系统中配置所有的实资源和每块资源管理板需要的虚资源, 对 这些资源加以标识并保存在资源管理板中;  (a) Configure all real resources and virtual resources required by each resource management board in the system, identify these resources and save them in the resource management board;

( b ) 资源管理板上电成功后, 监控为其配置的每个实资源的状态并作 上状态标记, 并定时从其他资源管理板获取其可用的实资源的信息, 实现对 全局共享资源的定时更新;  (b) After the power management of the resource management is successful, monitor the status of each real resource configured for it and mark the status, and obtain the information of the real resources available from other resource management boards to realize the global shared resources. Timing update

( c ) 资源管理板对于本板配置的还没有同实资源映射的虛资源, 在本 板及其它资源管理板为其寻找状态为可用的同类实资源,找到后记录两者的 映射关系, 并将该实资源的状态置为已映射, 处理完成后, 将余下的可用实 资源作为全局共享资源; ( c ) The resource management board has no virtual resources mapped to the real resource mapping for the board configuration. The board and other resource management boards find the real resources of the same kind as the available status, find the mapping relationship between the two, and set the status of the real resource to mapped. After the processing is completed, the remaining available real resources are taken as the global Share resource;

( d ) 申请资源时, 资源管理板为其分配可用的虚资源并返回该虚资源 对应的实资源标识, 如果没有可用的虚资源就返回失败消息。  (d) When applying for a resource, the resource management board allocates the available virtual resources and returns the real resource identifier corresponding to the virtual resource. If no virtual resources are available, a failure message is returned.

进一步地, 上述分布式资源管理方法还可具有以下特点: 所述资源管理 板中通过保存以下列表来记录实资源、虛资源和全局共享资源的信息和信息 间的关联关系: 实资源表, 记录了本资源管理板监控的每个实资源的标识、 状态标志, 以及使用该实资源的其它资源管理板的标识; 虚资源表, 记录了 本资源管理板配置的每个虚资源的标识、 映射标志及所映射的实资源标识; 以及全局共享资源表,记录了系统中各个资源管理板的标识及其所监控的可 用实资源的数量和类型。  Further, the foregoing distributed resource management method may further have the following features: The resource management board records the relationship between the information of the real resource, the virtual resource, and the global shared resource and the information by saving the following list: the real resource table, the record The identifier of each real resource monitored by the resource management board, the status flag, and the identifier of other resource management boards using the real resource; the virtual resource table records the identifier and mapping of each virtual resource configured by the resource management board. The flag and the mapped real resource identifier; and the global shared resource table record the identity of each resource management board in the system and the number and type of available real resources monitored.

进一步地, 上述分布式资源管理方法还可具有以下特点: 所述建立虚资 源与实资源的映射,是指在虚资源表中该虛资源的记录中写入对应实资源的 编号,并在使用该实资源的资源管理板上的实资源表中将该实资源的状态置 为已映射, 同时记录使用该实资源的资源管理板信息。  Further, the foregoing distributed resource management method may further have the following features: the mapping between the virtual resource and the real resource is performed by writing the number of the corresponding real resource in the virtual resource record in the virtual resource table, and is in use The real resource table on the resource management board of the real resource is set to the mapped state, and the resource management board information using the real resource is recorded.

进一步地, 上述分布式资源管理方法还可具有以下特点: 所述步骤(b ) 中, 所述资源管理板定时从其他资源管理板发送获取全局资源表请求消息, 其他资源管理板收到该消息后, 返回本板监控的可用的实资源的类型和数 量; 或者, 所述资源管理模块定时向其他模块广播本板可用的实资源信息。 Further, the foregoing distributed resource management method may further have the following features: In the step (b), the resource management board periodically sends a global resource table request message from another resource management board, and the other resource management boards receive the message. After that, the type and quantity of available real resources monitored by the board are returned; or the resource management module periodically broadcasts real resource information available to the board to other modules.

进一步地, 上述分布式资源管理方法还可具有以下特点: 所述步骤(b ) 中, 资源管理板在上电时设置了一个定时器, 在该定时器到时之后, 再执行 步骤(c ) ', 并且在该定时器到时前, 不将本板的可用实资源作为全局共享 资源发送或供查询。  Further, the foregoing distributed resource management method may further have the following features: In the step (b), the resource management board sets a timer when the power is turned on, and after the timer expires, the step (c) is performed. ', and before the timer expires, the available real resources of the board are not sent or queried as global shared resources.

进一步地, 上述分布式资源管理方法还可具有以下特点: 所述步骤(c ) 中, 所述资源管理板先在本板寻找状态为可用的同类实资源,在本板没有找 到时,再在本板保存的全局共享资源信息查找可用的实资源, 找到时再向相 应的资源管理板发送资源借用请求,在得到确认建立该虚资源和允许借用的 实资源之间的映射关系。 Further, the foregoing distributed resource management method may further have the following features: In the step (c), the resource management board first searches for the same real resource in the board as the available state, and when the board is not found, The global shared resource information saved by this board finds the available real resources. The resource management board should send a resource borrowing request, and obtain a mapping relationship between the virtual resource and the real resource that is allowed to be borrowed.

进一步地, 上述分布式资源管理方法还可具有以下特点: 还包括以下步 骤:所述资源管理板在监测到实资源不能正常运行或收到其它资源管理板发 来的实资源不能正常运行的通知时,将该实资源状态置为不可用, 在该实资 源已映射时,还通知使用该实资源的资源管理板解除其虚资源与该实资源的 映射关系, 并尝试为该虚资源建立新的映射。  Further, the foregoing distributed resource management method may further have the following features: further comprising: the resource management board notifying that the real resource cannot be normally operated or receiving the notification that the real resource sent by the other resource management board cannot be normally operated The real resource status is set to be unavailable. When the real resource is mapped, the resource management board that uses the real resource is also notified to release the mapping relationship between the virtual resource and the real resource, and an attempt is made to create a new resource for the virtual resource. Mapping.

进一步地, 上述分布式资源管理方法还可具有以下特点: 还包括以下步 骤: 所述资源管理板在监测到可用的实资源增加时, 将这些实资源的状态置 为可用, 为本资源管理板上还未映射的同类虛资源建立与这些实资源的映 射, 并将多余的可用实资源加入全局共享资源表。 Further, the foregoing distributed resource management method may further have the following features: The method further includes the following steps: when the resource management board detects that the available real resources increase, the status of the real resources is set to be available, and the resource management board is the resource management board. Similar virtual resources that have not been mapped are mapped to these real resources, and redundant available real resources are added to the global shared resource table.

进一步地, 上述分布式资源管理方法还可具有以下特点: 还包括以下步 骤: 所述资源管理板配置的虚资源增加时, 尝试为其建立和实资源间的映射 关系; 在配置的虛资源减少时, 解除该虚资源已有的映射关系并删除该虛资 源,原映射的实资源在本资源管理板时, 将其状态置为可用并加入全局共享 资源表, 该实资源不在本资源管理板时, 通知其所属资源管理板将其状态置 为可用。  Further, the foregoing distributed resource management method may further have the following features: The following steps are further included: when the virtual resource configured by the resource management board is increased, an attempt is made to establish a mapping relationship between the real resource and the real resource; The existing virtual resource is deleted and the virtual resource is deleted. If the original real resource is in the resource management board, the status is set to be available and added to the global shared resource table. The real resource is not in the resource management board. When notified, the resource management board to which it belongs is set to its status.

进一步地, 上述分布式资源管理方法还可具有以下特点: 还包括以下步 骤: 所述资源管理板定时检查本资源管理板的虛资源的使用率, 如果某个已 映射虚资源的使用率低于某个设定值,就将该虚资源与实资源的映射关系解 除, 将该实资源状态置为可用, 如果某个未映射的虚资源的使用率大于某个 设定值, 则为其寻找可用的实资源建立映射关系。  Further, the foregoing distributed resource management method may further include the following steps: The resource management board periodically checks the usage rate of the virtual resource of the resource management board, if the usage rate of a mapped virtual resource is lower than For a certain set value, the mapping relationship between the virtual resource and the real resource is released, and the real resource state is set to be available. If the usage rate of an unmapped virtual resource is greater than a certain set value, it is searched for A real resource is available to establish a mapping relationship.

. 由上可知, 本发明所述系统和方法的最大特点先对虚资源进行配置(是 通过抽象出虚资源的概念), 利用虚资源与实资源的映射, 通过自适应达到 全局共享资源的目的。 此发明保证需要使用资源的软件实现部分只需在本 RMB上向资源管理模块申请资源, 不存在跨板的借资源问题, 所以每次申 请资源的时间是固定的, 并且非常快速。从而使得申请使用资源的软件在处 理流程上就大大的简化, 提高了系统的效率, 也增强了系统的可靠性。 It can be seen from the above that the maximum features of the system and method of the present invention first configure virtual resources (by abstracting the concept of virtual resources), and utilize the mapping of virtual resources and real resources to achieve global shared resources through adaptation. . The invention ensures that the software implementation part that needs to use the resource only needs to apply for resources to the resource management module on the RMB, and there is no problem of borrowing resources across boards, so each application The time to ask for resources is fixed and very fast. Therefore, the software for applying for resources is greatly simplified in the processing flow, which improves the efficiency of the system and enhances the reliability of the system.

另外, 由于采用了虚资源来分配, 增强了上层软件的通用性。 尽管实资 源在不停的使用, 释放。 但只要映射关系不变, 对业务(上层软件)是没有 影响的, 因为只要将虛资源的状态打上可用即可。  In addition, due to the use of virtual resources for allocation, the versatility of the upper layer software is enhanced. Although the source of resources is constantly being used, it is released. However, as long as the mapping relationship is unchanged, there is no impact on the business (upper layer software), because the state of the virtual resource can be used as long as it is available.

附图概述 BRIEF abstract

图 1是本发明实施例中分布式资源的网络结构示意图。  FIG. 1 is a schematic diagram of a network structure of a distributed resource in an embodiment of the present invention.

图 2是现有的分布式资源管理的资源申请流程示意图。  FIG. 2 is a schematic diagram of a resource application process of the existing distributed resource management.

图 3是本发明实施例中虛资源条件下资源申请流程示意图。  FIG. 3 is a schematic diagram of a resource application process in a virtual resource condition according to an embodiment of the present invention.

图 4是本发明一个实例中 DTMF ( Dual Tone Multi-Frequency, 多音双 频)虚资源与实资源的映射示意图。  4 is a schematic diagram of mapping of DTMF (Dual Tone Multi-Frequency) virtual resources and real resources in an example of the present invention.

图 5是上述实例中 RMB1向其他 RMB获取全局共享资源表的流程示意 图。  Fig. 5 is a flow chart showing the process of obtaining a global shared resource table from RMB1 to other RMBs in the above example.

图 6是上述实例中 RMB1向其他 RMB借用实资源的流程示意图。 本发明的最佳实施方式  Figure 6 is a flow chart showing the borrowing of real resources from RMB1 to other RMB in the above example. BEST MODE FOR CARRYING OUT THE INVENTION

下面结合附图和具体实施方式对本发明作进一步描述。  The invention is further described below in conjunction with the drawings and specific embodiments.

本实施例的分布式资源管理系统的网络结构和图 1相同, 每块 RMB中 包括资源监控模块、 资源管理模块和资源使用模块, 其中:  The network structure of the distributed resource management system of this embodiment is the same as that of FIG. 1. Each RMB includes a resource monitoring module, a resource management module, and a resource usage module, where:

资源监控模块,用于时刻监控为其所在 RMB配置的 RSB板实资源的状 态, 在状态变化时通知本 RMB的资源管理模块进行修改, 这些状态包括: RSB是否在位, 是否能正常运行, RSB上的实资源是否有损坏等。  The resource monitoring module is configured to periodically monitor the status of the RSB real resource configured for the RMB, and notify the resource management module of the RMB to modify when the status changes. These states include: Whether the RSB is in place, whether it can run normally, RSB Is there any damage to the real resources?

资源使用模块, 用于向本 RMB上的资源管理模块申请资源。  The resource usage module is used to apply for resources to the resource management module on the RMB.

资源管理模块, 用于记录本 RMB监控的实资源状态和使用情况并定时 获取和记录各 RMB板的可用实资源信息, 为本 RMB配置的虚资源寻找可 用的实资源并为两者建立映射关系,以及在收到资源申请时分配可用的虚资 源并返回相应实资源编号。 其进一步包括以下单元: 资源信息存储单元, 用于保存实资源表、 虚资源表和全局共享资源表。 实资源表, 记录了本 RMB监控的每个实资源的编号、 状态、 使用该实 资源的 RMB编号 (为本 RMB使用时可缺省)等内容。 实资源用编号来标 识, 每个 RSB板编一个号, RSB板上提供多个实资源实例时, 给实资源实 例也分配一个编号, 这样通过编号就可以唯一确定是哪一个 RSB板上的哪 一个实资源实例。 The resource management module is configured to record the real resource status and the usage status of the RMB monitoring, and obtain and record the available real resource information of each RMB board periodically, and find available real resources for the virtual resources configured by the RMB and establish a mapping relationship between the two. And allocate available virtual resources when the resource request is received and return the corresponding real resource number. It further includes the following units: The resource information storage unit is configured to save the real resource table, the virtual resource table, and the global shared resource table. The real resource table records the number and status of each real resource monitored by the RMB, and the RMB number of the real resource (which can be used by default when the RMB is used). The real resource is identified by a number. Each RSB board is numbered. When multiple real resource instances are provided on the RSB board, the real resource instance is also assigned a number, so that the number can be used to uniquely determine which RSB board is on which RSB board. A real resource instance.

虚资源表, 记录了本 RMB配置的每个虚资源的编号、 映射标志和已映 射的实资源编号。 RMB 的虚资源可以根据需要进行配置, 也就是需要多少 就配置多少, 配置可以通过手工方式或注册方式来实现。  The virtual resource table records the number of each virtual resource in the RMB configuration, the mapping flag, and the mapped real resource number. The virtual resources of RMB can be configured as needed, that is, how much is needed, and the configuration can be implemented manually or by registration.

全局共享资源表, 记录了系统中本 RMB和其它 RMB的编号及其监控 资源类型和可用的实资源数量,表中可用的实资源是正常运行且没有同虚资 源建立映射关系, 可以被所有 RMB使用的实资源。  The global shared resource table records the number of the RMB and other RMBs in the system and the types of monitoring resources and the number of available real resources. The real resources available in the table are normal running and have no mapping relationship with the virtual resources, and can be used by all RMBs. The real resources used.

共享资源信息维护单元, 用于定时向其他 RMB发送获取全局共享资源 的消息或者在收到该消息后返回本 RMB可用的实资源数量和类型, 根据从 其他 RMB获取的信息实现对全局共享资源表的定时更新, 同时在本 RMB 完成板内映射且还有可用的实资源时,将这些可用实资源加入全局资源共享 表以备查询。 这样, 在 RMB上实现了虚资源与实资源的快速映射。 The shared resource information maintenance unit is configured to periodically send a message for obtaining the global shared resource to other RMBs, or return the number and type of real resources available to the RMB after receiving the message, and implement the global shared resource table according to the information obtained from other RMBs. Timing updates, while mapping within the RMB completion board and there are available real resources, add these available real resources to the global resource sharing table for query. In this way, a fast mapping of virtual resources and real resources is realized on RMB.

映射建立处理单元, 用于为本 RMB配置的虚资源寻找可用的同类实资 源并建立两者的映射关系。 包括:  The mapping establishment processing unit is configured to find available real-world resources of the virtual resources configured for the RMB and establish a mapping relationship between the two. Includes:

板内映射建立子单元, 用于对还没有建立映射的虚资源, 在本 RMB的 实资源表中寻找同一类型的可用的实资源,则将该实资源的状态置为已映射 并在该虚资源的记录中填上该实资源的编号。  An intra-board mapping sub-unit is configured to search for a virtual resource that has not yet been mapped. If the real resource of the same type is found in the real resource table of the RMB, the state of the real resource is mapped and is in the virtual state. Fill in the record of the resource with the number of the real resource.

板间映射建立子单元, 用于在本 RMB没有可用的实资源时, 查找全局 共享资源表寻找其它 RMB上可用的实资源, 找到后向该 RMB发出请求, 得到确认后在该虚资源的记录中填上该实资源的编号,收到拒绝借用的消息 时删除该实资源对应的记录或置其为无效。  An inter-board mapping sub-unit is configured to search for a global shared resource table to find real resources available on other RMBs when the real resource is not available in the RMB, and then send a request to the RMB after the discovery, and obtain a record of the virtual resource after confirmation. Fill in the number of the real resource, and delete the record corresponding to the real resource or invalidate it when receiving the message that refuses to borrow.

板间映射确认子单元, 用于在收到其它 RMB发来的借用实资源的请求 时, 判断这些实资源的当前状态, 在可用时返回确认消息, 并将这些实资源 的状态置为已映射, 否则返回拒绝借用的消息。 Inter-board mapping confirmation sub-unit, used to receive requests for borrowing real resources from other RMBs At this time, the current state of these real resources is judged, an acknowledgment message is returned when available, and the state of these real resources is set to mapped, otherwise a message rejecting the borrowing is returned.

资源分配单元, 用于在收到资源申请时, 为其分配可用的虚资源(虛资 源只有在同实资源映射后才是可用的), 并返回通过虚资源表获得的该虚资 源对应的实资源编号, 如果没有可用的虚资源就返回失败消息。  a resource allocation unit, configured to allocate an available virtual resource when the resource application is received (the virtual resource is available only after mapping with the real resource), and returns the virtual resource corresponding to the virtual resource table. Resource number, a failure message is returned if no virtual resources are available.

资源管理控制单元, 用于对各个单元进行协调和控制, 完成对分布式资 源的自适应管理, 进一步包括:  The resource management control unit is configured to coordinate and control each unit to complete adaptive management of the distributed resources, and further includes:

上电控制子单元, 用于在系统上电后, 设置一定时器以等待本 RMB所 属 RSB正常运行, 并启动获取全局共享资源的进程, 在定时器超时后启动 映射建立的过程。  The power-on control sub-unit is configured to set a timer to wait for the RSB of the RMB to operate normally after the system is powered on, and start a process of acquiring the global shared resource, and start the process of mapping establishment after the timer expires.

实资源变化处理子单元, 用于在实资源减少或收到其它 RMB发来的实 资源不能正常运行的通知时,将该实资源状态置为不可用, 在该实资源已映 射时, 还通知使用该实资源的 RMB解除其虛资源与该实资源的映射关系, 并尝试为该虚资源建立新的映射。在可用的实资源增加时, 将这些实资源的' 状态置为可用,为本 RMB上未映射同类的虛资源建立与这些实资源的映射, 并将多余的可用实资源加入全局共享资源表。  The real resource change processing sub-unit is configured to: when the real resource is reduced or the notification that the real resource sent by the other RMB cannot be normally operated, the real resource status is set to be unavailable, and when the real resource is mapped, the real resource is also notified. The RMB of the real resource is used to release the mapping relationship between the virtual resource and the real resource, and an attempt is made to establish a new mapping for the virtual resource. When the available real resources increase, the 'states' of these real resources are made available, and the mapping of these real resources to the virtual resources of the same type on the RMB is established, and the redundant available real resources are added to the global shared resource table.

虚资源变化处理子单元, 用于在配置的虚资源增加时, 尝试为其建立和 实资源间的映射关系。在配置的虚资源减少时, 解除该虚资源已有的映射关 系(如果有的话), 从虛资源表中删除该虚资源,原映射的实资源在本 RMB 时, 将其状态置为可用并加入全局共享资源表, 该实资源不在本 RMB时, 通知其 RMB将其状态置为可用。  The virtual resource change processing sub-unit is configured to try to establish a mapping relationship between the virtual resource and the real resource when the configured virtual resource increases. When the configured virtual resource is reduced, the existing mapping relationship (if any) of the virtual resource is removed, and the virtual resource is deleted from the virtual resource table. When the original mapped real resource is in the RMB, the state is set to be available. And join the global shared resource table, the real resource is not in the RMB, notify its RMB to make its status available.

基于以上分布式资源管理的系统,在系统运行前需要先配置所有的实资 源和每块 RMB需要的虚资源, 为这些资源编号并写入所属 RMB中各自的 列表中。 本实施例假定可用的实资源多于配置的虚资源。 Based on the above distributed resource management system, all the real resources and the virtual resources required for each RMB need to be configured before the system is running, and these resource numbers are numbered and written into their respective lists in the RMB. This embodiment assumes that more real resources are available than configured virtual resources.

系统上电后, RMB1完成最初的资源映射的流程包括以下步骤: 步骤一, RMB1上电成功后, 首先向其他 RMB的监控模块发获取全局 共享资源的事件消息以便获取其他 RMB在全局共享资源表中的相应记录, 同时设置一个延迟定时器 (Ti, i可根据编程需要任意设定) , 等待 RMB1 上的监控模块监控的 RSB板的正常运行; After the system is powered on, the process of completing the initial resource mapping of RMB1 includes the following steps: Step 1: After the power-on of RMB1 is successful, first send an event message of the global shared resource to the monitoring module of other RMB to obtain other RMB in the global shared resource table. Corresponding record in , At the same time, a delay timer (Ti, i can be arbitrarily set according to programming requirements) is set, waiting for the normal operation of the RSB board monitored by the monitoring module on RMB1;

步骤二, 在 RMB1上的定时器(Ti )超时前, 当 RMB1 的监控模块发 现自己监控的 RSB正常运行后就立即在该 RSB对应的实资源表中的标志位 (或者叫状态位) 中置上可用的标志;  Step 2: Before the timer (Ti) on the RMB1 times out, when the monitoring module of the RMB1 finds that the monitored RSB is running normally, it immediately sets the flag bit (or the status bit) in the real resource table corresponding to the RSB. The logo available on;

在延迟定时器(Ti )的超时消息到之前, 其他 RMB向 RMB1发获取全 局共享资源的事件消息时 RMB1 有以下两种处理方法: 1 ) 不响应; 2 ) 回 应请求者 RMB1 在全局共享资源表中暂无可用的共享资源。 两种方法可以 任选一种, 目的是保证其他 RMB在 RMB1的定时器( Ti )超时前不会在他 们的全局共享资源表中有 RMB1的可用资源信息。  Before the timeout message of the delay timer (Ti) arrives, the other RMB sends an event message of the global shared resource to the RMB1. The RMB1 has the following two processing methods: 1) no response; 2) responding to the requester RMB1 in the global shared resource table There are no shared resources available in the middle. There may be one of two methods, the purpose of which is to ensure that other RMB will not have RMB1 available resource information in their global shared resource table before the RMB1 timer (Ti) times out.

步骤三, 在 RMB1收到自己的定时器(Ti )超时的事件后, 依次从虚资 源表中找到还没有同实资源映射的虛资源,然后从实资源表中找到状态位是 可用状态且为同一类型的实资源,接着在虚资源表中该虚资源的记录中填上 该实资源的编号, 并将在实资源表中此实资源的状态位的状态设置为已映 射, 从而实现 RMB1监控的 RSB资源同 RMB1的虚资源的映射;  Step 3: After the event that the RMB1 receives its own timer (Ti) timeout, it finds the virtual resource that has not been mapped with the real resource from the virtual resource table in turn, and then finds that the status bit is available and is the same from the real resource table. The real resource of the type, and then fill in the record of the virtual resource in the virtual resource table, and set the status bit status of the real resource in the real resource table to be mapped, thereby implementing the RMB1 monitoring. Mapping of RSB resources to virtual resources of RMB1;

步骤四, 判断 RMB1配置的所有虛资源是否都已经有实资源与之映射, 如果是, 执行步骤五, 否则, 执行步骤六; Step 4: Determine whether all virtual resources configured in RMB1 have real resources mapped to them, and if yes, perform step 5, otherwise, perform step 6;

步骤五, 检查 RMB1 上是否还有状态位为可用标志的实资源, 如果有 就将剩下的所有可用的实资源放入 RMB1 上的全局共享资源表中, 等待其 他 RMB定时获取相应的信息, 结束;  Step 5: Check whether there is a real resource with the status bit as the available flag on the RMB1. If yes, put all the remaining real resources into the global shared resource table on the RMB1, and wait for other RMB to periodically obtain the corresponding information. End;

步骤六, 此时, RMB1上还有虚资源没有进行映射, 并且 RMB1监控的 RSB已经没有可用的了, 则从 RMB1的全局共享资源表查找是否别的 RMB 还有同一类型的可用实资源, 如果有, 执行步骤七, 否则, 执行步骤十一; 步骤七, RMB1向监控该实资源的其它 RMB (假定为 RMB2 )发送借 用实资源请求消息;  Step 6: At this time, there is still no virtual resource mapped on RMB1, and the RSB monitored by RMB1 is not available yet, then it is found from the global shared resource table of RMB1 whether other RMBs have the same type of available real resources, if If yes, go to Step 7. Otherwise, go to Step 11; Step 7: RMB1 sends a borrowing real resource request message to other RMBs that monitor the real resource (assumed to be RMB2);

步骤八, RMB2收到借用实资源请求消息后, 判断当前是否真的有实资 源可用, 如果是, 执行步骤九, 否则, 返回失败消息, RMB1将该实资源相 关的记录删除(或置为无效), 然后返回步骤六, 即在全局共享资源表中寻 找其它可用的实资源; Step 8: After receiving the borrowing real resource request message, RMB2 judges whether the real resource is actually available. If yes, go to step 9. Otherwise, return the failure message, and RMB1 will return the real resource. The off record is deleted (or invalidated), and then returns to step 6, which is to find other available real resources in the global shared resource table;

步骤九, RMB2确定要与该虛资源建立映射的实资源, 在实资源表中 将这些实资源的状态置为已映射, 并记录借用的 RMB1 的编号, 然后向 RMB1返回允许借用实资源的确认消息, 并提供借用的实资源编号;  Step 9: RMB2 determines the real resource to be mapped with the virtual resource, sets the state of the real resource to the mapped in the real resource table, records the borrowed RMB1 number, and returns a confirmation to allow the borrowing of the real resource to the RMB1. Message, and provide the borrowed real resource number;

步骤十, RMB1收到借用实资源的应答消息后, 建立虚资源与借用的实 资源的映射关系, 结束;  Step 10: After receiving the response message of borrowing the real resource, RMB1 establishes a mapping relationship between the virtual resource and the borrowed real resource, and ends;

步骤十一, 此时, 还有虚资源找不到对应的实资源, 则通知操作值班人 员处理。  Step 11: At this time, if the virtual resource cannot find the corresponding real resource, the operation duty person is notified to handle the processing.

可以看出, 为了避免流程的复杂和不确定性, 以上流程在对 RMB上的 虛资源进行资源映射时优选本 RMB监控的资源,特别是在刚上电的情况下, RMB需要等待一小段时间确认本 RMB监控的资源成功运行, 在等待的时 间内本 RMB监控的资源仍然不能运行的情况下才允许映射其他 RMB监控 的空闲的资源。  It can be seen that in order to avoid the complexity and uncertainty of the process, the above process optimizes the resources monitored by the RMB when resource mapping of the virtual resources on the RMB, especially in the case of just powering up, the RMB needs to wait for a short time. It is confirmed that the resources monitored by the RMB are successfully running, and the idle resources monitored by other RMBs are allowed to be mapped only when the resources monitored by the RMB are still not running.

在系统已经稳定运行中(指完成上述初步映射的流程后), 需要进行全 局共享资源表的维护和进行资源分配。 另外, 在实资源增加或咸少, 以及虚 资源的配置增加或减少时, 还需要对两者的映射关系进行处理。 After the system has been running stably (after completing the above preliminary mapping process), maintenance of the global shared resource table and resource allocation are required. In addition, when the real resources increase or decrease, and the configuration of virtual resources increases or decreases, the mapping relationship between the two needs to be processed.

全局共享资源表的维护  Maintenance of global shared resource tables

为了维护每个 RMB上全局共享资源表, 实现实时刷新, RMB在上电 完成后从其他 RMB (根据配置可以知道共有多少个 RMB )第一次获取全局 共享资源表所需的信息后就设定一个定时器, 定时向其他 RMB发获取全局 资源表请求消息,其他 RMB板返回本板监控的可用的实资源的类型和数量, 该 RMB再根据这些信息填写全局共享资源表, 包括具有监控模块的 RMB 的编号、 资源类别和可用实资源的数量等字段。  In order to maintain the global shared resource table on each RMB and realize real-time refresh, the RMB is set after the power-on is completed from other RMBs (how many RMBs are known according to the configuration), and the information required for the global shared resource table is obtained for the first time. A timer periodically sends a global resource table request message to other RMBs. The other RMB board returns the type and quantity of real resources available for monitoring by the board. The RMB then fills in the global shared resource table according to the information, including the monitoring module. Fields such as the number of the RMB, the resource category, and the number of available real resources.

还可以通过其它多种方式来实现全局共享资源表数据的更新, 如: 由资 源管理模块定时向其他模块广播本模块上可用的实资源信息。 实资源减少时的处理 The global shared resource table data may also be updated in various other manners, such as: The resource management module periodically broadcasts the real resource information available on the module to other modules. Processing when real resources are reduced

系统运行时, RMB的监控模块时刻监控着所属 RSB的运行状态, 假定 RMB1检测到本 RMB监控的 RSB或 RSB上的部分实资源实例不能正常工 作, 导致实资源减少时, 执行以下处理流程:  When the system is running, the monitoring module of RMB monitors the running status of the RSB. It is assumed that RMB1 detects that some real resource instances on the RSB or RSB monitored by this RMB are not working properly.

步骤 A, RMB1将所有不能正常工作的实资源实例在实资源表中对应的 状态位标示不可用状态;  Step A, RMB1 indicates that all the real resource instances that are not working properly are marked as unavailable in the corresponding status bits in the real resource table;

步骤 B, RMB1查找本地的实资源表, 判断该实资源是否同虚资源有映 射关系, 如果没有, 直接结束, 否则执行下一步;  Step B: RMB1 searches for the local real resource table, and determines whether the real resource has a mapping relationship with the virtual resource. If not, the process ends directly; otherwise, the next step is performed;

步骤 C, RMB1根据实资源表的记录判断使用该实资源的 RMB是否本 RMB, 如果是, 直接解除其虚资源与该实资源的映射关系, 即删除 RMB1 虚资源表相应记录中的该实资源编号, 执行下一步; 如果不是本 RMB监控 的实资源, 立即通知使用该实'资源的 RMB, 该 RMB收到通知后, 立即将 虛资源表中此实资源实例与虚资源的映射关系解除, 执行下一步;  Step C, RMB1 determines whether the RMB using the real resource is the current RMB according to the record of the real resource table, and if yes, directly cancels the mapping relationship between the virtual resource and the real resource, that is, deletes the real resource in the corresponding record of the RMB1 virtual resource table. No., execute the next step; if it is not the real resource monitored by the RMB, immediately notify the RMB that uses the real resource. After receiving the notification, the RMB immediately removes the mapping relationship between the real resource instance and the virtual resource in the virtual resource table. Carry out the next step;

步骤 E,使用该实资源的 RMB检查是否有资源使用模块占用该虚资源, 如果有, 立即通知该资源使用模块作相应的处理, 执行下一步, 否则, 直接 执行下一步;  Step E: Check whether the resource usage module occupies the virtual resource by using the RMB of the real resource. If yes, immediately notify the resource to use the module for corresponding processing, and perform the next step; otherwise, directly execute the next step;

步骤 F, 使用该实资源的 RMB在本地为该虚资源寻找可用的实资源建 立映射关系, 如果没有找到,再按步骤六到步骤十一的方法尝试建立该虚资 源同其他 RMB监控的 RSB资源的映射关系。  Step F: Use the real resource's RMB to locally find a real resource for the virtual resource to establish a mapping relationship. If not, try to establish the virtual resource and other RSB monitored RSB resources according to the method of step 6 to step 11. Mapping relationship.

如果是 RSB板减少引起实资源减少, 步骤 A中可直接从将该实资源从 实资源表中删除。  If the RSB board is reduced, the real resource is reduced. In step A, the real resource can be directly deleted from the real resource table.

可用的实资源增加时的处理 Processing when available real resources increase

系统运行时, 假定 RMB1检测到本 RMB监控的 RSB又有能正常运行 的单板或实资源实例, 比如, 定时器(Ti )超时前本 RMB监控的 RSB没有 正常运行, 而该 RSB在定时器 (Ti )超时后启动运行, 导致可用的实资源 增加, 执行以下处理流程: 步骤 H, RMB1在实资源表中将这些实资源的状态置为可用; 步骤 I, RMBl检查虚资源表中是否有还未同实资源建立映射的同一类 型的虚资源, 如果有, 执行步骤 J, 否则, 执行步骤 K; When the system is running, it is assumed that the RSB detects that the RSB monitored by the RMB has a working board or a real resource instance. For example, before the timer (Ti) times out, the RSB monitored by the RMB is not running normally, and the RSB is in the timer. (Ti) starts running after timeout, resulting in an increase in available real resources. Perform the following processing flow: Step H, RMB1 sets the status of these real resources to be available in the real resource table; Step I, RMB1 checks whether there is a virtual resource of the same type that has not been mapped with the real resource in the virtual resource table, if yes, step J is performed, otherwise, step K is performed;

步骤 J, RMBl建立该虚资源和新增实资源间的映射关系, 如果还有多 余的新增实资源, 再执行下一步, 否则, 结束;  Step J, RMBl establishes a mapping relationship between the virtual resource and the newly added real resource. If there are more new real resources, perform the next step, otherwise, end;

步骤 K, 将还未映射的新增实资源放入本 RMB的全局共享资源表中, 等待其他 RMB的定时来获取相应的信息。  Step K: Put the newly added real resources that have not been mapped into the global shared resource table of the RMB, and wait for the timing of other RMB to obtain the corresponding information.

配置的虚资源增加时的处理 Processing when the configured virtual resources increase

系统运行时, 假定为 RMB1 配置的虛资源增加, 则按以下流程处理: RMB1首先到本板实资源表中查找是否有可用的实资源, 如果有, 建立两者 的映射关系; 如果没有可用的实资源或者还有部分虛资源没有建立映射, 则 按步骤六到步骤十一的方法尝试建立该虚资源同其他 RMB监控的 RSB资源 的映射关系。  When the system is running, assuming that the virtual resources configured for RMB1 are increased, the following process is processed: RMB1 first searches the real resource table of the board to find out whether there are real resources available, and if so, establishes a mapping relationship between the two; If the real resource or some of the virtual resources are not mapped, the mapping between the virtual resource and the RSB resources monitored by other RMBs is attempted according to the method of step 6 to step 11.

配置的虚资源减少时的处理 Processing when the configured virtual resources are reduced

系统运行时, 假定为 RMB1 配置的虛资源减少, 则按以下流程处理: RMB1 .直接解除该虛资源同原有实资源的映射关系,然后在虚资源表中删除 该虚资源, 如果该原有实资源是本地的实资源, 则直接将其状态改为可用, 如果是其它 RMB监控的实资源, 则通知该 RMB, 由该 RMB将该原有实资 源的状态改为可用。  When the system is running, if the virtual resource configured for RMB1 is reduced, the following process is processed: RMB1. The mapping between the virtual resource and the original real resource is directly removed, and then the virtual resource is deleted in the virtual resource table. If the real resource is a local real resource, its status is directly changed to available. If it is a real resource monitored by other RMB, the RMB is notified, and the status of the original real resource is changed to available by the RMB.

申请资源的流程 Process of applying for resources

图 3 是本实施例采用虚资源的资源管理方式下的资源申请流程。 RMB 的资源管理模块只管理本 RMB的虚资源, 这样资源使用模块(如呼叫处理 模块)在本 RMB上向资源管理模块申请资源时,申请的是可用的虛资源(虛 资源只有在同实资源映射后才是可用的) , 资源管理模块判断本 RMB就是 否有可用的虚资源, 如果没有, 给资源使用模块返回失败消息。 如果有, 为 其分配一个虚资源,并通过虚资源表获得该虛资源对应的唯一的实资源的编 号, 返回给资源使用模块。 FIG. 3 is a resource application process in a resource management manner using virtual resources in this embodiment. The resource management module of the RMB manages only the virtual resources of the RMB, so that the resource usage module (such as the call processing module) applies for the virtual resources to the resource management module on the RMB, and the virtual resources are only available in the same real resource. After the mapping is available, the resource management module determines whether there is a virtual resource available to the RMB, and if not, returns a failure message to the resource usage module. If yes, assign a virtual resource to it, and obtain the unique real resource corresponding to the virtual resource through the virtual resource table. Number, returned to the resource usage module.

因此, 本实施例通过映射关系的自动维护就不需要进行跨板的借资源 了, 这样每次资源使用模块申请资源的时间是固定的, 非常快速。 并且资源 使用模块的处理流程大大的简化, 提高了效率。  Therefore, in this embodiment, the automatic maintenance of the mapping relationship does not require the borrowing of the resources across the board, so that the time for applying the resources by the resource using module is fixed and very fast. And the processing flow of the resource usage module is greatly simplified, and the efficiency is improved.

下面通过一个应用实例来详细说明上述实施例的方法。 The method of the above embodiment will be described in detail below by an application example.

图 4所示是本应用实例虚资源与实资源的映射关系。 现在共有 10个实 的 DTMF资源, 分别编号为 DTMF1 ~ DTMF10, 3个资源管理板 RMB, 编 号为 RMBl ~ RMB3,每个资源管理板 RMB配置有 3个虚 DTMF资源, 其 中 RMB1的监控模块配置了 2个实资源 ( DTMF1和 DTMF2 ) , RMB2的 监控模块配置了 4个实资源 ( DTMF3 ~ DTMF6 ) ,RMB3的监控模块配置了 4个实资源 (DTMF7 ~ DTMF10 ) , 如图 4中的实线标示了这种配置关系。  Figure 4 shows the mapping relationship between virtual resources and real resources in this application. There are now 10 real DTMF resources, numbered DTMF1 ~ DTMF10, 3 resource management boards RMB, numbered RMB1 ~ RMB3, and each resource management board RMB is configured with 3 virtual DTMF resources, of which the monitoring module of RMB1 is configured. 2 real resources (DTMF1 and DTMF2), the monitoring module of RMB2 is configured with 4 real resources (DTMF3 ~ DTMF6), and the monitoring module of RMB3 is configured with 4 real resources (DTMF7 ~ DTMF10), as indicated by the solid line in Figure 4. This configuration relationship.

按照约定规则: 监控 RMB上的虛资源在进行资源映射时优选本 RMB 监控的资源,在所有的单板都正常上电运行情况下, RMBK RMB2和 RMB3 启动, 实资源 DTMF1 ~ DTMF10也正常启动, 那么 RMB2的虚 DTMF资源 与实资源 DTMF3 ~ DTMF5——映射, 同理 RMB3的虚 DTMF资源与实资 源 DTMF7 ~ DTMF9 ——映射, 如图 4 中的虚线所示; 假定 RMB2 的实 DTMF6是还处于可用状态, RMB3监控的实 DTMF10也处于可用状态。 RMB1 配置 3 个虚 DTMF 资源首先与本 RMB监控的实资源 DTMF1 和 DTMF2进行映射, 仍然有一个虛 DTMF3资源没有进行映射, 只能暂为空, 虚 DTMF3资源不可用。  According to the agreed rules: The virtual resources on the monitoring RMB are optimized for the resources monitored by the RMB. When all the boards are powered on, RMBK RMB2 and RMB3 are started, and the real resources DTMF1 ~ DTMF10 are also started normally. Then the virtual DTMF resource of RMB2 and the real resource DTMF3 ~ DTMF5 - mapping, the same virtual DTMF resource of RMB3 and the real resource DTMF7 ~ DTMF9 - mapping, as shown by the dotted line in Figure 4; assume that the real DTMF6 of RMB2 is still in Available status, real DTMF10 monitored by RMB3 is also available. RMB1 Configuration Three virtual DTMF resources are first mapped with the real resources DTMF1 and DTMF2 monitored by this RMB. There is still a virtual DTMF3 resource that is not mapped. It can only be temporarily empty, and virtual DTMF3 resources are not available.

由于 RMB 1上电成功后首先向其他 RMB发获取全局资源表请求消息以 获取全局共享资源表相应的记录, 于是在 RMB1 上的全局共享资源表中可 能有这样两条记录, 即 RMB2有一个可用的实资源 DTMF6, RMB3上有一 个可用的实资源 DTMF10。 为了维护每个 RMB上全局共享资源表的刷新, RMB在上电完成后从其他 RMB (根据配置可以知道共有多少个 RMB ) 第 一次获取全局共享资源表相应的记录后就设定一个定时器, 定时向其他 RMB发获取全局资源表请求消息去获取其他 RMB全局共享资源表,见图 5, 也就是 RMB1向 RMB2和 RMB3发获取全局资源表请求消息, 将全局共享 资源表中的 RMB2和 RMB3对应的信息获取到 RMB1 , 同样 RMB2也从 RMB1和 RMB3 中获得的信息填入本板上的全局共享资源表, RMB3也从 RMB1.和 RMB2中获得的信息填入本板上的全局共享资源表。 After the power-on of the RMB 1 is successfully sent to the other RMB, the global resource table request message is first obtained to obtain the corresponding record of the global shared resource table. Therefore, there may be two records in the global shared resource table on the RMB1, that is, one of the RMB2 is available. The real resource DTMF6, RMB3 has a real resource DTMF10 available. In order to maintain the refresh of the global shared resource table on each RMB, the RMB is set from the other RMBs after the power-on is completed (the total number of RMBs can be known according to the configuration). After the first record of the global shared resource table is obtained, a timer is set. Regularly obtain a global resource table request message from other RMBs to obtain other RMB global shared resource tables, as shown in FIG. 5, that is, RMB1 sends a global resource table request message to RMB2 and RMB3, and globally shares the message. The information corresponding to RMB2 and RMB3 in the resource table is obtained to RMB1, and the information obtained from RMB1 and RMB3 is also filled in the global shared resource table on the board, and RMB3 is also filled in from the information obtained in RMB1. and RMB2. A global shared resource table on the board.

图 6所示, 当 RMB1从全局共享资源表中发现 RMB2上有可用的实资 源 DTMF6以及 RMB3上有可用的实资源 DTMF10,假定 RMB1先向 RMB2 发借用实资源请求消息, RMB2收到借用实资源请求消息后,就扫描本 RMB 监控的实 DTMF资源是否是真的富余并且没有被其他的 RMB借用,结果发 现 DTMF6可用, 于是就在 DTMF6的资源上标示被 RMB1 管理, 然后向 RMB1回借用实资源的应答消息, RMB1收到借用实资源的应答消息后完成 虚资源 DTMF3与实资源 DTMF6的映射关系。  As shown in FIG. 6, when RMB1 finds that the real resource DTMF6 available on RMB2 and the real resource DTMF10 available on RMB3 from the global shared resource table, it is assumed that RMB1 first borrows the real resource request message from RMB2, and RMB2 receives the borrowed real resource. After requesting the message, it scans whether the real DTMF resource monitored by the RMB is really rich and is not borrowed by other RMB. As a result, it is found that DTMF6 is available, so that the resource of DTMF6 is marked and managed by RMB1, and then the real resource is borrowed from RMB1. The response message, after receiving the response message of the real resource, RMB1 completes the mapping relationship between the virtual resource DTMF3 and the real resource DTMF6.

在运行的过程中 RMB2发现自己监控的 DTMF6不能正常工作了,于是 RMB2从 DTMF资源中发现 DTMF6是被 RMB1管理的,于是立即通知 RMB1 说 DTMF6不可用, RMB1收到消息后立即将虚 DTMF资源与 DTMF6间的 映射关系解除, 并检查是否有呼叫处理模块占用, 如果有, 就立即通知相应 的呼叫处理模块作相应的处理;然后在到全局共享资源表中检查是否有可用 的 DTMF了, 如果有, 则重复图 5的流程, 如果没有可以通过声、 光等告 警来通知操作值班人员,表示有虛资源没有实资源对应, 由操作值班人员进 行干预处理。 比如替换不能工作的 RSB或者配置新的 RSB, 来预先解决问 题, 而不是等到资源真的不可用时才告警, 保证系统的可靠性。  During the operation, RMB2 finds that the DTMF6 monitored by itself is not working properly. Therefore, RMB2 finds that DTMF6 is managed by RMB1 from the DTMF resources, so immediately informs RMB1 that DTMF6 is unavailable, and RMB1 immediately receives the virtual DTMF resource after receiving the message. The mapping relationship between DTMF6 is released, and it is checked whether there is a call processing module occupied. If so, the corresponding call processing module is immediately notified to perform corresponding processing; then, in the global shared resource table, it is checked whether DTMF is available, if any Then, the flow of FIG. 5 is repeated. If there is no alarm that can be notified by the sound, light, etc., the virtual duty resource has no real resource corresponding, and the operation duty personnel intervene. For example, replace the RSB that cannot work or configure a new RSB to solve the problem in advance, instead of waiting for the resource to be really unavailable, to ensure the reliability of the system.

第二实施例 Second embodiment

第一实施例在整个系统配置的实资源多于配置的虛资源,并且配置的实 资源都已正常工作的条件下, 其处理流程已经能够完全保证系统的可靠运 行。但是在配置的虚资源多余配置的实资源,或者有太多的实资源不能工作 , 导致能工作的实资源少于配置的虚资源时, 如资源使用不均, 会出现某些 RMB 上的虚资源因使用率较低, 导致映射的实资源被占而不用, 其他的 RMB上因虚资源没有映射到实资源而导致虚资源不可用, 进而导致资源使 用模块在有实资源没有被使用的情况下申请不到资源的情况出现。 为了克服这种情况, 本实施例在第一实施例方法和系统的基础上, 提出 了一种完全动态自适应的机制,即根据系统稳定运行情况下虛资源的使用率 来动态调整映射关系。在资源管理模块中增加一个映射关系调整单元, 用于 执行以下处理: 在 RMB单板的系统稳定运行后设置一个定时器 Tj (定时时 间可根据编程需要任意设定 ), 定时器 Tj定时到, 检查本 RMB的虛资源的 使用率, 如果某个虚资源的使用率低于某个设定值, 就将该虚资源与实资源 的映射关系解除, 释放被本 RMB暂时占而未用的实资源, 将其状态置为可 用, 并通过对全局共享资源表的定时更新而填加到该表中; 如果某个虛资源 的使用率大于设定值且没有与实资源建立映射,则重新为其寻找可用实资源 建立映射关系, 以增加可用虛资源的数量。 这种动态自适应的方式只在能工 作的实资源少于配置的虚资源的情况下才启用, 正常情况下没有必要启用。 In the first embodiment, under the condition that the real resources of the entire system are configured more than the configured virtual resources, and the configured real resources are all working normally, the processing flow thereof can completely ensure the reliable operation of the system. However, when the configured virtual resources are configured with real resources, or if there are too many real resources that cannot work, resulting in fewer real resources that can work, such as when the resources are used unevenly, some virtual objects on the RMB will appear. The resource usage is low, which causes the mapped real resources to be occupied. The other resources on the RMB are not available because the virtual resources are not mapped to the real resources, which leads to the resource usage module not being used. The situation where the application fails to apply for resources appears. In order to overcome this situation, the present embodiment proposes a completely dynamic adaptive mechanism based on the method and system of the first embodiment, that is, dynamically adjusts the mapping relationship according to the usage rate of the virtual resources in the stable operation of the system. A mapping relationship adjusting unit is added to the resource management module to perform the following processing: After the stable operation of the system of the RMB board, a timer Tj is set (the timing time can be arbitrarily set according to programming requirements), and the timer Tj is timed. Check the usage rate of the virtual resource of the RMB. If the usage rate of a virtual resource is lower than a certain value, the mapping relationship between the virtual resource and the real resource is released, and the real use of the RMB is temporarily used. Resource, set its state to be available, and add it to the table by timing updates to the global shared resource table; if a virtual resource usage rate is greater than the set value and no mapping is established with the real resource, then re- It seeks to establish a mapping relationship with real resources to increase the number of available virtual resources. This dynamic adaptive mode is only enabled if the working real resources are less than the configured virtual resources. It is not necessary to enable it under normal circumstances.

综上所述, 采用本发明提供的利用虚资源的资源管理方式, 由于有自适 应的处理流程, 并且是在非呼叫流程中实现自动的虚资源和实资源的映射, 就不会出现上面例子出现的多次跨板调用资源而导致呼损。 In summary, the resource management method using the virtual resource provided by the present invention does not appear in the above example because of the adaptive processing flow and the automatic virtual resource and real resource mapping in the non-call process. Multiple cross-board calls occur to cause a call loss.

工业实用性 Industrial applicability

本发明可用于分布式计算机系统,通过虛资源的配置实现对分布式资源 的管理, 大大简化了申请使用资源的软件处理流程。  The invention can be applied to a distributed computer system, realizes the management of distributed resources through the configuration of virtual resources, and greatly simplifies the software processing flow of applying for resources.

Claims

权 利 要 求 书 Claim 1、 一种可动态自适应的分布式资源管理系统, 包括多个资源管理板和 多个资源板, 所述资源管理板包括资源监控模块和资源管理模块, 所述资源 板具有一个或多个实资源, 其特征在于: A dynamically adaptive distributed resource management system, comprising a plurality of resource management boards and a plurality of resource boards, wherein the resource management board includes a resource monitoring module and a resource management module, and the resource board has one or more Real resources, which are characterized by: 所述资源监控模块,用于监控为本资源管理板配置的若干资源板上实资 源的状态并通知本资源管理板的资源管理模块;  The resource monitoring module is configured to monitor the status of the real resources on the resource boards configured on the resource management board and notify the resource management module of the resource management board; 所述资源管理模块,用于记录本资源管理板监控的实资源状态和使用情 况,,定时获取和记录各个资源管理板上可用实资源的信息, 并为本资源管理 板配置的虚资源寻找可用的同类实资源和建立两者的映射关系,在收到资源 申请时分配可用的虚资源并返回与其映射的实资源的信息。  The resource management module is configured to record the real resource status and usage of the resource management board, and obtain and record the information of the real resources available on each resource management board, and find available resources for the virtual resource configured on the resource management board. The same kind of real resources and establish a mapping relationship between the two, allocate available virtual resources when receiving the resource application and return the information of the real resources with which they are mapped. 2、 如权利要求 1所述的分布式资源管理系统, 其特征在于, 所述资源 管理模块进一步包括以下单元:  2. The distributed resource management system according to claim 1, wherein the resource management module further comprises the following units: 资源信息存储单元,用于记录本资源管理板监控的每个实资源的状态和 使用该实资源的资源管理板的信息,本资源管理板配置的每个虚资源和其映 射的实资源的信息, 以及系统中各个资源管理板监控的可用实资源信息; 共享资源信息维护单元,用于定时向从其他资源管理板获取其可用实资 源的信息, 实现对全局共享资源的定时更新, 同时在本板实资源和虛资源的 映射建立完成后, 将余下的可用实资源作为全局共享资源发布或供查询; 资源分配单元, 用于在收到资源申请时, 为其分配可用的虚资源并返回 该虚资源对应的实资源标识, 如果没有可用的虚资源就返回失败消息; 映射建立处理单元,用于为本资源管理板配置的虚资源在全局范围内寻 找可用的同类实资源并建立两者的映射关系;  a resource information storage unit, configured to record a status of each real resource monitored by the resource management board and information of a resource management board using the real resource, and information about each virtual resource configured by the resource management board and the real resource mapped by the resource management board And the available real resource information monitored by each resource management board in the system; the shared resource information maintenance unit is configured to periodically obtain information about the available real resources from other resource management boards, and implement timing update of the global shared resources, and at the same time After the mapping between the real resource and the virtual resource is completed, the remaining available real resources are advertised or queried as global shared resources. The resource allocation unit is configured to allocate available virtual resources and return the virtual resource when the resource application is received. The real resource identifier corresponding to the virtual resource, if no virtual resource is available, the failure message is returned; the mapping establishment processing unit is configured to find the available real resource in the global scope and establish both of the virtual resources configured for the resource management board. Mapping relations; 资源管理控制单元, 用于对本资源管理模块的各个单元进行协调和控 制, 完成资源管理模块的各项功能。  The resource management control unit is configured to coordinate and control each unit of the resource management module, and complete various functions of the resource management module. 3、 如权利要求 2所述的分布式资源管理系统, 其特征在于, 所述资源 信息存储单元中保存了以下列表:  3. The distributed resource management system according to claim 2, wherein the resource information storage unit stores the following list: 实资源表, 记录了本资源管理板监控的每个实资源的标识、 状态标志, 以及使用该实资源的其它资源管理板的标识; The real resource table records the identification and status flags of each real resource monitored by the resource management board. And the identification of other resource management boards that use the real resource; 虚资源表, 记录了本资源管理板配置的每个虚资源的标识、 映射标志及 所映射的实资源标识;  The virtual resource table records the identifier, mapping flag, and mapped real resource identifier of each virtual resource configured by the resource management board; 全局共享资源表,记录了系统中各个资源管理板的标识及其所监控的可 用实资源的数量和类型。 、  The global shared resource table records the identifiers of the various resource management boards in the system and the number and types of available real resources monitored. , 4、 如权利要求 2所述的分布式资源管理系统, 其特征在于, 所述映射 建立处理单元进一步包括:  The distributed resource management system according to claim 2, wherein the mapping establishment processing unit further comprises: 板内映射建立子单元, 用于对还没有建立映射的虚资源,在本资源管理 板的实资源表中寻找可用的同类实资源,将找到的实资源的状态置为已映射 并记录该虛资源和该实资源的映射关系;  An intra-board mapping sub-unit is configured to search for a virtual resource that has not been mapped, and find a real-life resource that is available in the real resource table of the resource management board, and set the state of the found real resource to be mapped and record the virtual resource. The mapping relationship between the resource and the real resource; 板间映射建立子单元, 用于查找保存的全局共享资源, 寻找其它资源管 理板上可用的实资源, 找到后向该资源管理板发出借用请求,得到确认后记 录该虛资源和该实资源的映射关系,收到拒绝借用的消息时删除该实资源对 应的记录或置其为无效;  The inter-board mapping establishment sub-unit is configured to search for the saved global shared resource, find the real resource available on the other resource management board, and then issue a borrowing request to the resource management board, and after the confirmation, record the virtual resource and the real resource. Mapping relationship, when receiving a message rejecting borrowing, deleting the record corresponding to the real resource or invalidating it; . 板间映射确认子单元,用于在收到其它资源管理板发来的借用实资源的 请求时, 判断这些实资源的当前状态, 在确实可用时返回确认消息, 并将这 些实资源的状态置为已映射, 否则返回拒绝借用的消息。  An inter-board mapping confirmation sub-unit is configured to determine the current state of the real resources when receiving requests for borrowing real resources from other resource management boards, return an acknowledgement message when it is actually available, and state the real resources. Set to mapped, otherwise return a message that refuses to borrow. 5、 如权利要求 2所述的分布式资源管理系统, 其特征在于, 所述资源 管理控制单元包括上电控制子单元, 用于在系统上电后,设置一定时器以等 待本资源管理板所属资源板正常运行, 并启动获取全局共享资源的进程, 在 定时器超时后再启动映射建立的过程。  The distributed resource management system according to claim 2, wherein the resource management control unit includes a power-on control sub-unit, configured to set a timer to wait for the resource management board after the system is powered on. The resource board is running normally, and the process of obtaining the global shared resource is started. After the timer expires, the mapping establishment process is started. 6、 如权利要求 5所述的分布式资源管理系统, 其特征在于, 所述资源 管理控制单元包括实资源变化处理子单元,用于在实资源不能正常运行或收 到其它资源管理板发来的实资源不能正常运行的通知时,将该实资源状态置 为不可用,在该实资源已映射时,还通知使用该实资源的资源管理板解除其 虛资源与该实资源的映射关系, 并尝试为该虚资源建立新的映射。  The distributed resource management system according to claim 5, wherein the resource management control unit includes a real resource change processing sub-unit for transmitting real resources or receiving other resource management boards. When the real resource is not working properly, the real resource status is set to be unavailable. When the real resource is mapped, the resource management board that uses the real resource is also notified to release the mapping relationship between the virtual resource and the real resource. And try to create a new mapping for this virtual resource. 7、 如权利要求 6所述的分布式资源管理系统, 其特征在于, 所述实资 源变化处理子单元还用于在可用的实资源增加时,将这些实资源的状态置为 可用, 为本资源管理板上还未映射的同类虛资源建立与这些实资源的映射, 并将多余的可用实资源加入全局共享资源表。 The distributed resource management system according to claim 6, wherein the real resource change processing sub-unit is further configured to set the state of the real resources when the available real resources increase It can be used to establish mappings with these real resources for the same kind of virtual resources that are not mapped on the resource management board, and add the redundant available real resources to the global shared resource table. 8、 如权利要求 5所述的分布式资源管理系统, 其特征在于, 所述资源 管理控制单元包括实资源变化处理子单元, 用于在配置的虛资源增加时, 尝 试为其建立和实资源间的映射关系; 在配置的虚资源减少时, 解除该虚资源 已有的映射关系并删除该虛资源,原映射的实资源在本资源管理板时, 将其 状态置为可用并加入全局共享资源表, 该实资源不在本资源管理板时, 通知 其资源管理板将其状态置为可用。  The distributed resource management system according to claim 5, wherein the resource management control unit includes a real resource change processing sub-unit, configured to try to establish and implement a real resource when the configured virtual resource increases. When the configured virtual resource is reduced, the existing mapping relationship of the virtual resource is removed and the virtual resource is deleted. When the original mapped real resource is in the resource management board, its state is set to be available and added to the global share. The resource table, when the real resource is not in the resource management board, informs its resource management board to make its status available. 9、 如权利要求 1所述的分布式资源管理系统, 其特征在于, 所述资源 管理模块进一步包括映射关系调整单元,用于定时检查本资源管理板的虚资 源的使用率, 如果某个已映射虚资源的使用率低于某个设定值, 就将该虚资 源与实资源的映射关系解除,将该实资源状态置为可用, 如果某个未映射的 虛资源的使用率大于某个设定值, 则为其寻找可用的实资源建立映射关系。  The distributed resource management system according to claim 1, wherein the resource management module further comprises a mapping relationship adjusting unit, configured to periodically check the usage rate of the virtual resource of the resource management board, if one has If the usage rate of the mapped virtual resource is lower than a certain value, the mapping relationship between the virtual resource and the real resource is released, and the real resource state is set to be available. If the usage rate of an unmapped virtual resource is greater than a certain value. The set value is used to establish a mapping relationship for the real resources that are available for it. 10、 一种可动态自适应的分布式资源管理方法,应用于包括多个资源管 理板和多个资源板的分布式资源管理系统, 包括以下步骤:  10. A dynamically adaptive distributed resource management method for a distributed resource management system comprising a plurality of resource management boards and a plurality of resource boards, comprising the steps of: ( a )在系统中配置所有的实资源和每块资源管理板需要的虚资源, 对 这些资源加以标识并保存在资源管理板中;  (a) Configure all real resources and virtual resources required by each resource management board in the system, identify these resources and save them in the resource management board; ( b ) 资源管理板上电成功后, 监控为其配置的每个实资源的状态并作 上状态标记, 并定时从其他资源管理板获取其可用的实资源的信息, 实现对 全局共享资源的定时更新;  (b) After the power management of the resource management is successful, monitor the status of each real resource configured for it and mark the status, and obtain the information of the real resources available from other resource management boards to realize the global shared resources. Timing update ( c ) 资源管理板对于本板配置的还没有同实资源映射的虛资源, 在本 板及其它资源管理板为其寻找状态为可用的同类实资源,找到后记录两者的 映射关系, 并将该实资源的状态置为已映射, 处理完成后, 将余下的可用实 资源作为全局共享资源;  (c) The resource management board does not have the virtual resources mapped to the real resources. The board and other resource management boards find the same kind of real resources that are available in the status of the board, and find the mapping relationship between the two. The state of the real resource is set to be mapped, and after the processing is completed, the remaining available real resources are taken as global shared resources; ( d ) 申请资源时, 资源管理板为其分配可用的虚资源并返回该虚资源 对应的实资源标识, 如果没有可用的虛资源就返 ^失败消息。  (d) When applying for a resource, the resource management board allocates the available virtual resources and returns the real resource identifier corresponding to the virtual resource. If no virtual resources are available, the failure message is returned. 11、 如权利要求 10所述的分布式资源管理方法, 其特征在于, 所述资 源管理板中通过保存以下列表来记录实资源、虛资源和全局共享资源的信息 和信息间的关联关系: 实资源表,记录了本资源管理板监控的每个实资源的 标识、 状态标志, 以及使用该实资源的其它资源管理板的标识; 虛资源表, 记录了本资源管理板配置的每个虚资源的标识、映射标志及所映射的实资源 标识; 以及全局共享资源表,记录了系统中各个资源管理板的标识及其所监 控的可用实资源的数量和类型。 The distributed resource management method according to claim 10, wherein the resource management board records information of real resources, virtual resources, and global shared resources by saving the following list. Relationship between the information and the information: The real resource table records the identification and status flags of each real resource monitored by the resource management board, and the identifiers of other resource management boards that use the real resource. The virtual resource table records the resources. The identifier of each virtual resource configured by the management board, the mapping flag, and the mapped real resource identifier; and the global shared resource table record the identifiers of the resource management boards in the system and the number and types of available real resources monitored by the system. 12、 如权利要求 11所述的分布式资源管理方法, 其特征在于, 所述建 立虛资源与实资源的映射,是指在虚资源表中该虚资源的记录中写入对应实 资源的编号,并在使用该实资源的资源管理板上的实资源表中将该实资源的 状态置为已映射, 同时记录使用该实资源的资源管理板信息。  The distributed resource management method according to claim 11, wherein the mapping between the virtual resource and the real resource is performed by writing the number of the corresponding real resource in the virtual resource record in the virtual resource table. And setting the state of the real resource to be mapped in the real resource table on the resource management board using the real resource, and recording the resource management board information using the real resource. 13、 如权利要求 10所述的分布式资源管理方法, 其特征在于, 所述步 骤(b ) 中, 所述资源管理板定时从其他资源管理板发送获取全局资源表请 求消息,其他资源管理板收到该消息后,返回本板监控的可用的实资源的类 型和数量; 或者, 所述资源管理模块定时向其他模块广播本板可用的实资源 信息。  The distributed resource management method according to claim 10, wherein in the step (b), the resource management board periodically sends a global resource table request message from another resource management board, and other resource management boards After receiving the message, the type and quantity of available real resources monitored by the board are returned. Alternatively, the resource management module periodically broadcasts real resource information available on the board to other modules. 14、 如权利要求 10所述的分布式资源管理方法, 其特征在于, 所述步 骤(b )中, 资源管理板在上电时设置了一个定时器, 在该定时器到时之后, 再执行步骤(c ) , 并且在该定时器到时前, 不将本板的可用实资源作为全 局共享资源发送或供查询。  The distributed resource management method according to claim 10, wherein in the step (b), the resource management board sets a timer at the time of power-on, and executes the timer after the timer expires. Step (c), and before the timer expires, the available real resources of the board are not sent or queried as global shared resources. 15、 如权利要求 10所述的分布式资源管理方法, 其特征在于, 所述步 骤(c ) 中, 所述资源管理板先在本板寻找状态为可用的同类实资源, 在本 板没有找到时,再在本板保存的全局共享资源信息查找可用的实资源, 找到 时再向相应的资源管理板发送资源借用请求,在得到确认建立该虚资源和允 许借用的实资源之间的映射关系。 The distributed resource management method according to claim 10, wherein, in the step (c), the resource management board first searches for a real resource of the same type in the board, and the resource is not found on the board. Then, the global shared resource information saved in the board is used to find the available real resources. When found, the resource borrowing request is sent to the corresponding resource management board, and the mapping relationship between the virtual resource and the real resource allowed to be borrowed is obtained. . 16、 如权利要求 10所述的分布式资源管理方法, 其特征在于, 还包括 以下步骤:所迷资源管理板在监测到实资源不能正常运行或收到其它资源管 理板发来的实资源不能正常运行的通知时,将该实资源状态置为不可用,在 该实资源已映射时,还通知使用该实资源的资源管理板解除其虚资源与该实 资源的映射关系, 并尝试为该虛资源建立新的映射。  The distributed resource management method according to claim 10, further comprising the step of: the resource management board fails to monitor that the real resource cannot be operated normally or receives the real resource sent by the other resource management board. When the notification of the normal operation is set, the real resource status is set to be unavailable. When the real resource is mapped, the resource management board that uses the real resource is also notified to release the mapping relationship between the virtual resource and the real resource, and try to Virtual resources create new mappings. 17、 如权利要求 10所述的分布式资源管理方法, 其特征在于, 还包括 以下步骤: 所述资源管理板在监测到可用的实責源增加时, 将这些实资源的 状态置为可用,为本资源管理板上还未映射的同类虛资源建立与这些实资源 的映射, 并将多余的可用实资源加入全局共享资源表。 17. The distributed resource management method according to claim 10, further comprising The following steps are performed: when the resource management board detects that the available source of resources is increased, the status of the real resources is set to be available, and mappings of the real resources that are not mapped to the resource management board are established. Add redundant real resources to the global shared resource table. 18、 如权利要求 10所述的分布式资源管理方法, 其特征在于, 还包括 以下步骤: 所述资源管理板配置的虛资源增加时, 尝试为其建立和实资源间 的映射关系; 在配置的虛资源减少时, 解除该虛资源已有的映射关系并删除 该虛资源,原映射的实资源在本资源管理板时, 将其状态置为可用并加入全 局共享资源表, 该实资源不在本资源管理板时, 通知其所属资源管理板将其 状态置为可用。  The distributed resource management method according to claim 10, further comprising the steps of: when the virtual resource configured by the resource management board is increased, attempting to establish a mapping relationship between the virtual resource and the real resource; When the virtual resource is reduced, the existing mapping relationship of the virtual resource is removed and the virtual resource is deleted. When the original mapped real resource is in the resource management board, the state is set to be available and added to the global shared resource table. When the resource management board is notified, its resource management board is notified that its status is made available. 19、 如权利要求 10所述的分布式资源管理系统, 其特征在于, 还包括 以下步骤: 所述资源管理板定时检查本资源管理板的虚资源的使用率, 如果 某个已映射虚资源的使用率低于某个设定值,就将该虚资源与实资源的映射 关系解除,将该实资源状态置为可用, 如果某个未映射的虚资源的使用率大 于某个设定值, 则为其寻找可用的实资源建立映射关系。  The distributed resource management system according to claim 10, further comprising the following steps: the resource management board periodically checks the usage rate of the virtual resource of the resource management board, if a virtual resource is mapped When the usage rate is lower than a certain set value, the mapping relationship between the virtual resource and the real resource is released, and the real resource state is set to be available. If the usage rate of an unmapped virtual resource is greater than a certain set value, Then find a mapping relationship for the real resources that are available for it.
PCT/CN2005/001661 2005-10-10 2005-10-10 A system and method of managing the dynamic adaptive distributed resource WO2007041899A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2005/001661 WO2007041899A1 (en) 2005-10-10 2005-10-10 A system and method of managing the dynamic adaptive distributed resource
CN2005800495200A CN101167307B (en) 2005-10-10 2005-10-10 Dynamically self-adaptive distributed resource management system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2005/001661 WO2007041899A1 (en) 2005-10-10 2005-10-10 A system and method of managing the dynamic adaptive distributed resource

Publications (1)

Publication Number Publication Date
WO2007041899A1 true WO2007041899A1 (en) 2007-04-19

Family

ID=37942293

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2005/001661 WO2007041899A1 (en) 2005-10-10 2005-10-10 A system and method of managing the dynamic adaptive distributed resource

Country Status (2)

Country Link
CN (1) CN101167307B (en)
WO (1) WO2007041899A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009009959A1 (en) * 2007-07-16 2009-01-22 Datang Mobile Communications Equipment Co., Ltd Method and system for processing signals of multiple antennas
CN102263665A (en) * 2011-08-15 2011-11-30 中兴通讯股份有限公司 Method and device for processing resources, single board and equipment
CN101262506B (en) * 2008-04-21 2012-05-23 杭州华三通信技术有限公司 Allocation method and system for network address conversion port resource under distributed architecture
CN107168777A (en) * 2016-03-07 2017-09-15 阿里巴巴集团控股有限公司 The dispatching method and device of resource in distributed system
CN108073453A (en) * 2016-11-11 2018-05-25 阿里巴巴集团控股有限公司 The dispatching method and device of cpu resource in distributed type assemblies

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2792532C (en) * 2010-03-29 2020-06-30 Amazon Technologies, Inc. Managing committed request rates for shared resources
CN102325050B (en) * 2011-09-19 2018-04-17 上海佑译信息科技有限公司 The method and main control device of distribution detection resource
CN103391212B (en) * 2012-05-11 2016-08-24 中兴通讯股份有限公司 The fault-tolerance approach of a kind of resource management and device
CN108628775B (en) * 2017-03-22 2021-02-12 华为技术有限公司 Resource management method and device
CN107547445B (en) * 2017-07-31 2020-04-03 新华三技术有限公司 Resource allocation method and device
CN110839141A (en) * 2018-08-17 2020-02-25 视联动力信息技术股份有限公司 Resource acquisition method and device
CN109510877B (en) * 2018-12-21 2022-03-15 中国航空工业集团公司西安航空计算技术研究所 Method and device for maintaining dynamic resource group and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030097393A1 (en) * 2001-11-22 2003-05-22 Shinichi Kawamoto Virtual computer systems and computer virtualization programs
US20050120160A1 (en) * 2003-08-20 2005-06-02 Jerry Plouffe System and method for managing virtual servers
CN1674479A (en) * 2005-05-09 2005-09-28 北京北方烽火科技有限公司 Method for distributing graded distribution type ascending scramble in wideband code division multiple access

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030097393A1 (en) * 2001-11-22 2003-05-22 Shinichi Kawamoto Virtual computer systems and computer virtualization programs
US20050120160A1 (en) * 2003-08-20 2005-06-02 Jerry Plouffe System and method for managing virtual servers
CN1674479A (en) * 2005-05-09 2005-09-28 北京北方烽火科技有限公司 Method for distributing graded distribution type ascending scramble in wideband code division multiple access

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009009959A1 (en) * 2007-07-16 2009-01-22 Datang Mobile Communications Equipment Co., Ltd Method and system for processing signals of multiple antennas
CN101262506B (en) * 2008-04-21 2012-05-23 杭州华三通信技术有限公司 Allocation method and system for network address conversion port resource under distributed architecture
CN102263665A (en) * 2011-08-15 2011-11-30 中兴通讯股份有限公司 Method and device for processing resources, single board and equipment
CN102263665B (en) * 2011-08-15 2018-07-31 中兴通讯股份有限公司 A kind for the treatment of method and apparatus of resource, veneer and equipment
CN107168777A (en) * 2016-03-07 2017-09-15 阿里巴巴集团控股有限公司 The dispatching method and device of resource in distributed system
CN107168777B (en) * 2016-03-07 2021-04-30 阿里巴巴集团控股有限公司 Method and device for scheduling resources in distributed system
CN108073453A (en) * 2016-11-11 2018-05-25 阿里巴巴集团控股有限公司 The dispatching method and device of cpu resource in distributed type assemblies
CN108073453B (en) * 2016-11-11 2022-05-10 阿里巴巴集团控股有限公司 Method and device for scheduling CPU (Central processing Unit) resources in distributed cluster

Also Published As

Publication number Publication date
CN101167307A (en) 2008-04-23
CN101167307B (en) 2010-04-21

Similar Documents

Publication Publication Date Title
CN111615066B (en) A broadcast-based distributed microservice registration and invocation method
CN104811328B (en) virtual network resource management method and device
CN100474808C (en) Cluster cache service system and realizing method thereof
WO2012083669A1 (en) Method and apparatus for switching between primary-standby devices based on access gateway
CN110391940B (en) Service address response method, device, system, equipment and storage medium
CN114327858A (en) Cloud-side-terminal distributed computing power coordination method and system based on control domain
WO2007041899A1 (en) A system and method of managing the dynamic adaptive distributed resource
CN114070822B (en) Kubernetes Overlay IP address management method
JP2009301581A (en) Method of assigning task, data processing system, client data processing node, and machine-readable storage medium
WO2017113261A1 (en) Locking request processing method and server
WO2020125524A1 (en) Distributed optical fiber access system and management method therefor
CN107786680B (en) Method and device for managing IP address resources
CN101354720B (en) Distributed memory database data system and sharing method thereof
CN114629782B (en) Anti-destruction succession method among multiple cloud platforms
WO2016095524A1 (en) Resource allocation method and apparatus
CN101354695B (en) Method, system and distributed apparatus of communication between processes
CN112073555A (en) IP address configuration method, electronic device and computer-readable storage medium
WO2015067051A1 (en) Test agent method and device thereof
CN100416542C (en) Load distribution system and method
CN115987872A (en) Cloud system based on resource routing
CN102316018B (en) Method for updating routing table in network node equipment and network node equipment
WO2022017380A1 (en) User ip address allocation management method and apparatus, and session management function entity
CN101355469B (en) Method for processing network address and route node
CN118694746A (en) Method, device, medium and electronic device for allocating IP addresses of Pod
CN114553704B (en) A method and system for supporting simultaneous access of multiple devices to a server for capacity expansion and contraction

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application
WWE Wipo information: entry into national phase

Ref document number: 200580049520.0

Country of ref document: CN

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 05801919

Country of ref document: EP

Kind code of ref document: A1