CN109429376B - Resource release method and device - Google Patents
Resource release method and device Download PDFInfo
- Publication number
- CN109429376B CN109429376B CN201710582820.XA CN201710582820A CN109429376B CN 109429376 B CN109429376 B CN 109429376B CN 201710582820 A CN201710582820 A CN 201710582820A CN 109429376 B CN109429376 B CN 109429376B
- Authority
- CN
- China
- Prior art keywords
- storage domain
- identifier
- terminal
- storage
- stored
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 50
- 238000004891 communication Methods 0.000 claims abstract description 28
- 238000010586 diagram Methods 0.000 description 15
- 230000006870 function Effects 0.000 description 11
- 238000004590 computer program Methods 0.000 description 7
- 230000008569 process Effects 0.000 description 7
- 238000012986 modification Methods 0.000 description 5
- 230000004048 modification Effects 0.000 description 5
- 230000005540 biological transmission Effects 0.000 description 3
- 238000007726 management method Methods 0.000 description 3
- 238000010295 mobile communication Methods 0.000 description 3
- 230000002093 peripheral effect Effects 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 2
- 238000013468 resource allocation Methods 0.000 description 2
- 230000004075 alteration Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/70—Admission control; Resource allocation
- H04L47/76—Admission control; Resource allocation using dynamic resource allocation, e.g. in-call renegotiation requested by the user or requested by the network in response to changing network conditions
- H04L47/762—Admission control; Resource allocation using dynamic resource allocation, e.g. in-call renegotiation requested by the user or requested by the network in response to changing network conditions triggered by the network
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a resource release method and a resource release device, which are used for solving the problems that in the prior art, network equipment cannot accurately identify and accurately release resources to be released, and releases resources of a terminal which normally carries out communication services while releasing the resources to be released, so that services are interrupted, and user experience is reduced. In the method, the network equipment can determine and release the resources required to be released through the information stored in the first storage domain and the second storage domain, so that the network equipment can accurately identify and release the resources required to be released, normally occupied resources cannot be released, and user experience is improved.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a resource release method and apparatus.
Background
When a terminal accesses a network device to perform various communication services, the network device allocates resources required for realizing the communication services to the terminal, and after the terminal executes the communication services, the resources occupied by the terminal are released in time so that the network device continues to allocate the resources to other terminals. However, at present, after a plurality of terminals execute data services, resources occupied by the terminals are not released in time, which results in that network equipment cannot allocate required resources to other terminals, and other terminals cannot execute communication services.
At present, in general, when a network device determines that a required resource cannot be allocated to a certain terminal, it automatically resets, releases resources occupied by all terminals currently, and initializes the resources. Obviously, the network device cannot accurately identify and release the resource to be released, and releases the resource of the terminal which normally performs the communication service while releasing the resource to be released, thereby causing service interruption and reducing user experience.
Disclosure of Invention
The invention provides a resource release method and a resource release device, which are used for solving the problems that in the prior art, network equipment cannot accurately identify and accurately release resources to be released, and releases resources of a terminal which normally carries out communication services while releasing the resources to be released, so that services are interrupted, and user experience is reduced.
The embodiment of the invention provides the following specific technical scheme:
in a first aspect, an embodiment of the present invention provides a method for recording resource allocation by a terminal, including:
when a terminal accesses a network, network equipment allocates a first storage domain and a second storage domain for the terminal;
the network equipment stores the identifier of the terminal in the first storage domain, stores the identifier of the first storage domain and the identifier of the terminal in the second storage domain, and marks the second storage domain by using the identifier of the service resource allocated to the terminal;
the service resource is a resource for the terminal to realize a communication service.
In a second aspect, an embodiment of the present invention provides a resource release method, including:
the network equipment determines, for any second storage domain, that the identifier of the terminal stored in the first storage domain corresponding to the identifier of the first storage domain stored in the second storage domain is inconsistent with the identifier of the terminal stored in the second storage domain, or determines that the identifier of the terminal is not stored in the first storage domain;
and the network equipment empties the information stored in the second storage domain and releases the service resource corresponding to the identifier marking the second storage domain, wherein the identifier marking the second storage domain is the identifier of the service resource of the terminal corresponding to the identifier allocated to the terminal.
With reference to the second aspect, in a first possible implementation manner of the second aspect, the method further includes:
the network equipment determines the identification of the terminal stored in any first storage domain and determines the identification of the first storage domain;
and when the network equipment determines that the identifier of the first storage domain and the identifier of the terminal are not stored in any second storage domain, emptying the information stored in the first storage domain.
In a third aspect, an embodiment of the present invention provides a resource release method, including:
the method comprises the steps that network equipment determines the identification of a terminal stored in any first storage domain and determines the identification of the first storage domain;
the network equipment determines that the time length of the first storage domain for storing the terminal identifier exceeds the set time length, and clears the information stored in the first storage domain;
when the network equipment judges that one second storage domain stores the identifier of the first storage domain and the identifier of the terminal, the information stored in the second storage domain is emptied, and the service resource corresponding to the identifier of the second storage domain is released, wherein the identifier used for marking the second storage domain is the identifier of the service resource of the terminal corresponding to the identifier allocated to the terminal, and the service resource is the resource for enabling the terminal to realize communication service.
In a fourth aspect, an embodiment of the present invention provides a network device, including:
the terminal comprises an allocation unit, a storage unit and a processing unit, wherein the allocation unit is used for allocating a first storage domain and a second storage domain for the terminal when the terminal accesses a network;
a processing unit, configured to store the identifier of the terminal in the first storage domain, store the identifier of the first storage domain and the identifier of the terminal in the second storage domain, and mark the second storage domain with an identifier of a service resource allocated to the terminal;
the service resource is a resource for the terminal to realize a communication service.
In a fifth aspect, an embodiment of the present invention provides a network device, including:
a determining unit, configured to determine, for any second storage domain, that an identifier of a terminal stored in a first storage domain, which corresponds to an identifier of the first storage domain stored in the second storage domain, is inconsistent with an identifier of a terminal stored in the second storage domain, or that an identifier of a terminal is not stored in the first storage domain;
and a releasing unit, configured to empty the information stored in the second storage domain, and release the service resource that marks the identifier of the second storage domain, where the identifier for marking the second storage domain is an identifier of the service resource of the terminal corresponding to the identifier allocated to the terminal.
With reference to the fifth aspect, in a first possible implementation manner of the fifth aspect,
the determining unit is further configured to determine, for any first storage domain, an identifier of a terminal stored in the first storage domain, and determine an identifier of the first storage domain; and
determining that the identifier of the first storage domain and the identifier of the terminal are not stored in any second storage domain;
the releasing unit is further configured to clear the information stored in the first storage area when the determining unit determines that the identifier of the first storage area and the identifier of the terminal are not stored in any of the second storage areas.
In a sixth aspect, an embodiment of the present invention provides a network device, including:
a determining unit, configured to determine, for any first storage domain, an identifier of a terminal stored in the first storage domain, and determine an identifier of the first storage domain; and
determining that the time length of the first storage domain for storing the identifier of the terminal exceeds a set time length;
a release unit, configured to clear information stored in the first storage area when the determination unit determines that a duration in which the first storage area stores the identifier of the terminal exceeds a set duration;
the determining unit is further configured to determine that there exists a second storage domain storing the identifier of the first storage domain and the identifier of the terminal;
the releasing unit is further configured to, when the determining unit determines that one second storage domain stores the identifier of the first storage domain and the identifier of the terminal, clear information stored in the second storage domain, and release the service resource that marks the identifier of the second storage domain, where the identifier for marking the second storage domain is an identifier of a service resource of the terminal corresponding to the identifier allocated to the terminal, and the service resource is a resource for enabling the terminal to implement a communication service.
In the technical scheme of the embodiment of the invention, the network equipment can determine and release the resources required to be released through the information stored in the first storage domain and the second storage domain, so that the network equipment can accurately identify and release the resources required to be released, and can not release normally occupied resources, thereby improving the user experience.
Drawings
Fig. 1 is a schematic architecture diagram of a mobile communication system according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for allocating resource records by a terminal according to an embodiment of the present invention;
fig. 3 is a flowchart of a resource release method according to an embodiment of the present invention;
fig. 4 is a flowchart of another resource release method according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a network device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of another network device according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of another network device according to an embodiment of the present invention;
fig. 8 is a block diagram of a network device according to an embodiment of the present invention;
fig. 9 is a block diagram of another network device provided in an embodiment of the present invention;
fig. 10 is a block diagram of another network device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Embodiments of the present invention provide a resource release method and apparatus, so as to solve the problems in the prior art that a network device cannot accurately identify and accurately release a resource to be released, and release a resource of a terminal that normally performs a communication service while releasing the resource to be released, which causes service interruption and reduces user experience. The method and the device are based on the same inventive concept, and because the principles of solving the problems of the method and the device are similar, the implementation of the device and the method can be mutually referred, and repeated parts are not repeated.
In the technical scheme of the embodiment of the invention, the network equipment can determine and release the resources required to be released through the information stored in the first storage domain and the second storage domain, so that the network equipment can accurately identify and release the resources required to be released, and can not release normally occupied resources, thereby improving the user experience.
In order to more clearly describe the technical solution of the embodiment of the present invention, a detailed description is given below of a resource releasing method and a resource releasing device provided in the embodiment of the present invention with reference to the accompanying drawings.
Fig. 1 shows a possible mobile communication system to which the resource release method provided by the embodiment of the present invention is applicable, where the architecture of the mobile communication system includes: a network device and a plurality of terminals (such as terminal 1, terminal 2, terminal 3 shown in fig. 1). Wherein,
the network device is configured to provide a network access service for the plurality of terminals, and allocate required resources to the plurality of terminal devices, so that the plurality of terminals execute a communication service by accessing the network device.
The plurality of terminals, such as the terminal 1, the terminal 2, and the terminal 3 in the figure, are used for accessing the network device to execute a communication service.
The network device is further configured to release, when any terminal accesses the network device and executes the communication service, the resource occupied by the terminal when executing the communication service, so that the network device can allocate the resource to other terminals and enable the other terminals to execute the communication service.
The embodiment of the invention provides a method for recording terminal allocation resources. Referring to fig. 2, the specific process of the method includes:
step 201: when a terminal accesses a network, a network device allocates a first storage domain and a second storage domain for the terminal.
Wherein, a plurality of first storage domains and a plurality of second storage domains are maintained in the network equipment.
Optionally, there may be multiple terminals accessing the network device at the same time, and therefore, the network device performs step 201 for each terminal, where the first storage domain and the second storage domain allocated to each terminal at the time are different, and the first storage domain and the second storage domain allocated to each terminal are both empty currently.
Step 202: the network device stores the identifier of the terminal in the first storage domain, stores the identifier of the first storage domain and the identifier of the terminal in the second storage domain, and marks the second storage domain with the identifier of the service resource allocated to the terminal.
The service resource is a resource for the terminal to realize a communication service.
Optionally, when any first storage domain contains the identifier of the terminal, it indicates that the first storage domain is occupied; when any second storage domain marked by the service resource identifier contains the identifier of the first storage domain and the identifier of the terminal, the second storage domain is occupied, and the service resource corresponding to the service resource identifier of the second storage domain is occupied.
Alternatively, the identifier of the terminal may be represented by letters (e.g., a, b … …), may also be represented by numbers (e.g., 1, 2 … …), and may also be represented by other ways, which is not limited by the present invention; the identifier of the first storage domain is generally indicated by the numbers 1, 2 … …, and may be indicated in other ways, which are not limiting; the identity of the service resource may be represented by a category of the service resource, such as a category a and a category B, and may specifically be a specific resource in each category of the service resource, such as a1, a2, B1, B2, and the like.
By adopting the method for recording the resource allocation of the terminal provided by the embodiment of the invention, when the terminal accesses the network, the network equipment allocates the first storage domain and the second storage domain for the terminal, then stores the identifier of the terminal in the first storage domain, stores the identifier of the first storage domain and the identifier of the terminal in the second storage domain, and marks the second storage domain by using the identifier of the service resource allocated for the terminal. Therefore, when the resources need to be released subsequently, the network device can determine the resources needing to be released and release the resources through the information stored in the first storage domain and the second storage domain, therefore, the network device can accurately identify and release the resources needing to be released, and the normally occupied resources cannot be released, so that the user experience is improved.
The embodiment of the invention provides a resource release method. Referring to fig. 3, the specific process of the method includes:
step 301: the network equipment determines, for any second storage domain, that the identifier of the terminal stored in the first storage domain corresponding to the identifier of the first storage domain stored in the second storage domain is inconsistent with the identifier of the terminal stored in the second storage domain, or determines that the identifier of the terminal is not stored in the first storage domain.
Wherein, the identifier of the terminal is not stored in the first storage domain, which indicates that the first storage domain is empty.
Optionally, the network device may execute step 301 under the following two scenarios:
scenario a1, when there is a terminal requesting a service resource corresponding to the identifier of the second storage domain, but the network device determines that the service resource is currently occupied and cannot be directly allocated to the terminal, the network device executes step 301.
Scenario a2, when the network device is idle, for example, when there are few terminals accessing the network device each morning, the network device performs step 301.
For example, the identifier of the second storage domain is identifier D2 of service resource D2, the network device determines that the identifier of the first storage domain stored in the second storage domain is first storage domain 1, and the identifier of the stored terminal is terminal X; the network device determines that the identifier of the terminal stored in the first storage domain corresponding to the first storage domain 1 is the terminal Z, so that it can be known that the terminal X is different from the terminal Z, that is, it is determined that the identifier of the terminal stored in the first storage domain corresponding to the identifier of the first storage domain stored in the second storage domain is inconsistent with the identifier of the terminal stored in the second storage domain; or
The identifier of the second storage domain is an identifier D2 of a service resource D2, the network device determines that the identifier of the first storage domain stored in the second storage domain is a first storage domain 1, and the identifier of the stored terminal is a terminal X, and the network device determines that the first storage domain corresponding to the first storage domain 1 is empty, that is, determines that the identifier of the terminal is not stored in the first storage domain.
Step 302: and the network equipment empties the information stored in the second storage domain and releases the service resource corresponding to the identifier marking the second storage domain, wherein the identifier marking the second storage domain is the identifier of the service resource of the terminal corresponding to the identifier allocated to the terminal.
For example, the identifier of the second storage domain is an identifier D2 of a service resource D2, and the network device determines that the identifier of the first storage domain stored in the second storage domain is a first storage domain 1 and the identifier of the stored terminal is a terminal X, at this time, when the network device executes step 302, specifically: and the network equipment deletes and clears the first storage domain 1 and the terminal X stored in the second storage domain, and releases the service resource D2 corresponding to D2.
Optionally, the method may further include:
a. the network equipment determines the identification of the terminal stored in any first storage domain and determines the identification of the first storage domain.
b. And when the network equipment determines that the identifier of the first storage domain and the identifier of the terminal are not stored in any second storage domain, emptying the information stored in the first storage domain.
Optionally, the network device may perform the steps a and b under the following three scenarios:
b1, when there is a terminal that needs to access the network device, the network device needs to allocate the first storage domain for the terminal, but the network device determines that the first storage domain is currently occupied and cannot be allocated to the terminal, the network device executes steps a and b.
In a scenario b2, when there is a terminal that needs to access the network device, the network device needs to allocate a first storage domain to the terminal, but the network device determines that each first storage domain is occupied and cannot be allocated to the terminal, the network device executes steps a and b.
Scenario b3, when the network device is idle, for example, when there are few terminals accessing the network device each morning, the network device performs steps a and b.
Here, the scene b3 is the same scene as the scene a 2.
Optionally, before the step b, the network device traverses all the second storage domains, and determines whether each second storage domain stores the identifier of the first storage domain and the identifier of the terminal.
For example, the network device determines that the identifier of the terminal stored in the first storage domain is terminal M, and the identifier of the first storage domain is first storage domain 3; and the network equipment traverses all the second storage domains, judges whether a terminal M and a first storage domain 3 are stored in each second storage domain, and clears the terminal M and the first storage domain 3 stored in the first storage domain when judging that any one of the second storage domains does not store the terminal M and the first storage domain 3.
By adopting the resource release method provided by the embodiment of the invention, the network equipment determines and releases the resources required to be released through the information stored in the first storage domain and the second storage domain, so that the network equipment can accurately identify and release the resources required to be released, and can not release the normally occupied resources, thereby improving the user experience.
The embodiment of the invention provides a resource release method. Referring to fig. 4, the specific process of the method includes:
step 401: the network equipment determines the identification of the terminal stored in any first storage domain and determines the identification of the first storage domain.
Optionally, the scenario of the network device executing step 401 is the same as scenarios b1, b2, and b3 of the network device executing steps a and b in the embodiment shown in fig. 3, and details are not repeated here.
Step 402: and the network equipment clears the information stored in the first storage domain when determining that the time length of the first storage domain for storing the identifier of the terminal exceeds the set time length.
Optionally, a timer is maintained in the network device, when the network device allocates a first storage domain to the terminal, the timer is started, and when the timer is overtime, it indicates that a duration of storing the identifier of the terminal in the first storage domain exceeds a set duration.
For example, the network device determines that the identifier of the terminal stored in the first storage domain is terminal M, and the identifier of the first storage domain is first storage domain 3; when it is determined that the duration of the terminal M stored in the first storage domain exceeds the set duration, step 402 is executed, that is, the network device clears the terminal M stored in the first storage domain.
Step 403: when the network equipment judges that one second storage domain stores the identifier of the first storage domain and the identifier of the terminal, the information stored in the second storage domain is emptied, and the service resource corresponding to the identifier of the second storage domain is released, wherein the identifier used for marking the second storage domain is the identifier of the service resource of the terminal corresponding to the identifier allocated to the terminal, and the service resource is the resource for enabling the terminal to realize communication service.
Optionally, after the network device executes step 402, the network device traverses all the second storage domains, and determines whether one second storage domain stores the identifier of the first storage domain and the identifier of the terminal.
For example, the network device determines that the identifier of the terminal stored in the first storage domain is terminal M, and the identifier of the first storage domain is first storage domain 3; the network device traverses all the second storage domains, determines whether one second storage domain stores the terminal M and the first storage domain 3, and executes step 403 when determining that one second storage domain stores the terminal M and the first storage domain 3.
For example, the identifier of the second storage domain is an identifier D2 of a service resource D2, the network device determines that the identifier of the first storage domain stored in the second storage domain is a first storage domain 1, the identifier of the stored terminal is a terminal X, and the identifier of the terminal stored in the first storage domain corresponding to the first storage domain 1 is a terminal X, in step 403, the network device clears the first storage domain 1 and the terminal X stored in the second storage domain, and releases the service resource D2 corresponding to D2.
By adopting the resource release method provided by the embodiment of the invention, the network equipment determines and releases the resources required to be released through the information stored in the first storage domain and the second storage domain, so that the network equipment can accurately identify and release the resources required to be released, and can not release the normally occupied resources, thereby improving the user experience.
Based on the above embodiments, an embodiment of the present invention further provides a network device, where the network device has a function of implementing the method for allocating resource records by a terminal as shown in fig. 2, and as shown in fig. 5, the network device 500 includes: an allocation unit 501 and a processing unit 502, wherein,
the allocating unit 501 is configured to allocate a first storage domain and a second storage domain to a terminal when the terminal accesses a network;
the processing unit 502 is configured to store the identifier of the terminal in the first storage domain, store the identifier of the first storage domain and the identifier of the terminal in the second storage domain, and mark the second storage domain with the identifier of the service resource allocated to the terminal;
the service resource is a resource for the terminal to realize a communication service.
With the network device provided by the embodiment of the present invention, when a terminal accesses a network, a first storage domain and a second storage domain are allocated to the terminal, then an identifier of the terminal is stored in the first storage domain, the identifier of the first storage domain and the identifier of the terminal are stored in the second storage domain, and the identifier of a service resource allocated to the terminal is used to mark the second storage domain. Therefore, when the resources need to be released subsequently, the network device can determine the resources needing to be released and release the resources through the information stored in the first storage domain and the second storage domain, therefore, the network device can accurately identify and release the resources needing to be released, and the normally occupied resources cannot be released, so that the user experience is improved.
Based on the above embodiments, an embodiment of the present invention further provides a network device, where the network device has a function of implementing the resource release method shown in fig. 3, and as shown in fig. 6, the network device 600 includes: a determination unit 601 and a release unit 602, wherein,
the determining unit 601 is configured to determine, for any second storage domain, that an identifier of a terminal stored in the first storage domain, which corresponds to an identifier of the first storage domain stored in the second storage domain, is inconsistent with an identifier of a terminal stored in the second storage domain, or that an identifier of a terminal is not stored in the first storage domain;
the releasing unit 602 is configured to empty the information stored in the second storage domain, and release the service resource corresponding to the identifier that marks the second storage domain, where the identifier that marks the second storage domain is an identifier of a service resource of a terminal corresponding to the identifier that is allocated to the terminal.
Optionally, the determining unit 601 is further configured to determine, for any first storage domain, an identifier of a terminal stored in the first storage domain, and determine an identifier of the first storage domain; and
determining that the identifier of the first storage domain and the identifier of the terminal are not stored in any second storage domain;
the releasing unit 602 is further configured to empty the information stored in the first storage area when the determining unit 601 determines that the identifier of the first storage area and the identifier of the terminal are not stored in any of the second storage areas.
By adopting the network equipment provided by the embodiment of the invention, the resources required to be released are determined and released through the information stored in the first storage domain and the second storage domain, so that the network equipment can accurately identify and release the resources required to be released, and normally occupied resources cannot be released, thereby improving the user experience.
Based on the above embodiments, an embodiment of the present invention further provides a network device, where the network device has a function of implementing the resource release method shown in fig. 4, and as shown in fig. 7, the network device 700 includes: a determination unit 701 and a release unit 702, wherein,
the determining unit 701 is configured to determine, for any first storage domain, an identifier of a terminal stored in the first storage domain, and determine an identifier of the first storage domain; and
determining that the time length of the first storage domain for storing the identifier of the terminal exceeds a set time length;
the releasing unit 702 is configured to clear the information stored in the first storage area when the determining unit determines that the duration of the first storage area storing the identifier of the terminal exceeds a set duration;
the determining unit 701 is further configured to determine that there exists a second storage domain storing the identifier of the first storage domain and the identifier of the terminal;
the releasing unit 702 is further configured to, when the determining unit determines that there exists a second storage domain storing the identifier of the first storage domain and the identifier of the terminal, clear information stored in the second storage domain, and release the service resource corresponding to the identifier that identifies the second storage domain, where the identifier that identifies the second storage domain is an identifier of a service resource of the terminal corresponding to the identifier that is allocated to the terminal, and the service resource is a resource that enables the terminal to implement a communication service.
By adopting the network equipment provided by the embodiment of the invention, the resources required to be released are determined and released through the information stored in the first storage domain and the second storage domain, so that the network equipment can accurately identify and release the resources required to be released, and normally occupied resources cannot be released, thereby improving the user experience.
It should be noted that the division of the unit in the embodiment of the present invention is schematic, and is only a logic function division, and there may be another division manner in actual implementation. The functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Based on the above embodiments, an embodiment of the present invention further provides a network device, where the network device has a function of implementing a method for allocating resource records by a terminal as shown in fig. 2. Referring to fig. 8, the network device 800 includes: a processor 801, a transceiver 802, a bus 803, and a memory 804, wherein,
the processor 801 is configured to read the program in the memory 804, and execute the following processes:
when a terminal accesses a network, a first storage domain and a second storage domain are allocated to the terminal;
storing the identity of the terminal in the first memory domain, storing the identity of the first memory domain and the identity of the terminal in the second memory domain, and marking the second memory domain with the identity of the service resource allocated for the terminal;
the service resource is a resource for the terminal to realize a communication service.
In fig. 8, the bus architecture may include any number of interconnected buses and bridges, with one or more processors represented by the processor 801 and various circuits of the memory represented by the memory 804 being linked together. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. The bus interface provides an interface. The transceiver 802 may be a number of elements including a transmitter and a transceiver providing a means for communicating with various other apparatus over a transmission medium. The processor 801 is responsible for managing the bus architecture and general processing, and the memory 804 may store data used by the processor 801 in performing operations.
With the network device provided by the embodiment of the present invention, when a terminal accesses a network, a first storage domain and a second storage domain are allocated to the terminal, then an identifier of the terminal is stored in the first storage domain, the identifier of the first storage domain and the identifier of the terminal are stored in the second storage domain, and the identifier of a service resource allocated to the terminal is used to mark the second storage domain. Therefore, when the resources need to be released subsequently, the network device can determine the resources needing to be released and release the resources through the information stored in the first storage domain and the second storage domain, therefore, the network device can accurately identify and release the resources needing to be released, and the normally occupied resources cannot be released, so that the user experience is improved.
Based on the above embodiments, an embodiment of the present invention further provides a network device, where the network device has a function of implementing a resource release method as shown in fig. 3. Referring to fig. 9, the network device 900 includes: a processor 901, a transceiver 902, a bus 903, and a memory 904, wherein,
the processor 901 is configured to read the program in the memory 904 and execute the following processes:
for any second storage domain, determining that the identifier of the terminal stored in the first storage domain corresponding to the identifier of the first storage domain stored in the second storage domain is inconsistent with the identifier of the terminal stored in the second storage domain, or determining that the identifier of the terminal is not stored in the first storage domain;
and clearing the information stored in the second storage domain, and releasing the service resource corresponding to the identifier marking the second storage domain, wherein the identifier marking the second storage domain is the identifier of the service resource of the terminal corresponding to the identifier allocated to the terminal.
Optionally, the processor 901 is further configured to:
for any first storage domain, determining the identifier of the terminal stored in the first storage domain, and determining the identifier of the first storage domain;
and when determining that the identifier of the first storage domain and the identifier of the terminal are not stored in any second storage domain, emptying the information stored in the first storage domain.
In fig. 9, the bus architecture may comprise any number of interconnected buses and bridges, with one or more processors represented by the processor 901 and various circuits of the memory represented by the memory 904 being linked together. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. The bus interface provides an interface. The transceiver 902 may be a plurality of elements including a transmitter and a transceiver providing a means for communicating with various other apparatus over a transmission medium. The processor 901 is responsible for managing a bus architecture and general processing, and the memory 904 may store data used by the processor 901 in performing operations.
By adopting the network equipment provided by the embodiment of the invention, the resources required to be released are determined and released through the information stored in the first storage domain and the second storage domain, so that the network equipment can accurately identify and release the resources required to be released, and normally occupied resources cannot be released, thereby improving the user experience.
Based on the above embodiments, an embodiment of the present invention further provides a network device, where the network device has a function of implementing a resource release method as shown in fig. 4. Referring to fig. 10, the network device 1000 includes: a processor 1001, a transceiver 1002, a bus 1003, and a memory 1004, wherein,
the processor 1001 is configured to read the program in the memory 1004 and execute the following processes:
for any first storage domain, determining the identifier of the terminal stored in the first storage domain, and determining the identifier of the first storage domain;
determining that the time length of the first storage domain for storing the terminal identifier exceeds the set time length, and clearing the information stored in the first storage domain;
when judging that a second storage domain stores the identifier of the first storage domain and the identifier of the terminal, clearing the information stored in the second storage domain, and releasing the service resource corresponding to the identifier of the second storage domain, wherein the identifier used for marking the second storage domain is the identifier of the service resource of the terminal corresponding to the identifier allocated to the terminal, and the service resource is the resource for enabling the terminal to realize communication service.
In fig. 10, the bus architecture may include any number of interconnected buses and bridges, with one or more processors represented by the processor 1001 and various circuits of the memory represented by the memory 1004 being linked together. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. The bus interface provides an interface. The transceiver 1002 may be a number of elements including a transmitter and a transceiver that provide a means for communicating with various other apparatus over a transmission medium. The processor 1001 is responsible for managing a bus architecture and general processing, and the memory 1004 may store data used by the processor 1001 in performing operations.
By adopting the network equipment provided by the embodiment of the invention, the resources required to be released are determined and released through the information stored in the first storage domain and the second storage domain, so that the network equipment can accurately identify and release the resources required to be released, and normally occupied resources cannot be released, thereby improving the user experience.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various modifications and variations can be made in the embodiments of the present invention without departing from the spirit or scope of the embodiments of the invention. Thus, if such modifications and variations of the embodiments of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to encompass such modifications and variations.
Claims (6)
1. A method for releasing resources, comprising:
when a terminal accesses a network, network equipment allocates a first storage domain and a second storage domain for the terminal;
the network equipment stores the identifier of the terminal in the first storage domain, stores the identifier of the first storage domain and the identifier of the terminal in the second storage domain, and marks the second storage domain by using the identifier of the service resource allocated to the terminal; the service resource is a resource for the terminal to realize communication service;
the network equipment determines, for any second storage domain, that the identifier of the terminal stored in the first storage domain corresponding to the identifier of the first storage domain stored in the second storage domain is inconsistent with the identifier of the terminal stored in the second storage domain, or determines that the identifier of the terminal is not stored in the first storage domain;
and the network equipment empties the information stored in the second storage domain and releases the service resource corresponding to the identifier marking the second storage domain, wherein the identifier marking the second storage domain is the identifier of the service resource of the terminal corresponding to the identifier allocated to the terminal.
2. The method of claim 1, further comprising:
the network equipment determines the identification of the terminal stored in any first storage domain and determines the identification of the first storage domain;
and when the network equipment determines that the identifier of the first storage domain and the identifier of the terminal are not stored in any second storage domain, emptying the information stored in the first storage domain.
3. A method for releasing resources, comprising:
the method comprises the steps that network equipment determines the identification of a terminal stored in any first storage domain and determines the identification of the first storage domain;
the network equipment determines that the time length of the first storage domain for storing the terminal identifier exceeds the set time length, and clears the information stored in the first storage domain;
when the network equipment judges that one second storage domain stores the identifier of the first storage domain and the identifier of the terminal, the information stored in the second storage domain is emptied, and the service resource corresponding to the identifier of the second storage domain is released, wherein the identifier used for marking the second storage domain is the identifier of the service resource of the terminal corresponding to the identifier allocated to the terminal, and the service resource is the resource for enabling the terminal to realize communication service.
4. A network device, comprising:
the terminal comprises an allocation unit, a storage unit and a processing unit, wherein the allocation unit is used for allocating a first storage domain and a second storage domain for the terminal when the terminal accesses a network;
a processing unit, configured to store the identifier of the terminal in the first storage domain, store the identifier of the first storage domain and the identifier of the terminal in the second storage domain, and mark the second storage domain with an identifier of a service resource allocated to the terminal; the service resource is a resource for the terminal to realize communication service;
a determining unit, configured to determine, for any second storage domain, that an identifier of a terminal stored in a first storage domain, which corresponds to an identifier of the first storage domain stored in the second storage domain, is inconsistent with an identifier of a terminal stored in the second storage domain, or that an identifier of a terminal is not stored in the first storage domain;
and a releasing unit, configured to empty the information stored in the second storage domain, and release the service resource that marks the identifier of the second storage domain, where the identifier for marking the second storage domain is an identifier of the service resource of the terminal corresponding to the identifier allocated to the terminal.
5. The network device of claim 4,
the determining unit is further configured to determine, for any first storage domain, an identifier of a terminal stored in the first storage domain, and determine an identifier of the first storage domain; and
determining that the identifier of the first storage domain and the identifier of the terminal are not stored in any second storage domain;
the releasing unit is further configured to clear the information stored in the first storage area when the determining unit determines that the identifier of the first storage area and the identifier of the terminal are not stored in any of the second storage areas.
6. A network device, comprising:
a determining unit, configured to determine, for any first storage domain, an identifier of a terminal stored in the first storage domain, and determine an identifier of the first storage domain; and
determining that the time length of the first storage domain for storing the identifier of the terminal exceeds a set time length;
a release unit, configured to clear information stored in the first storage area when the determination unit determines that a duration in which the first storage area stores the identifier of the terminal exceeds a set duration;
the determining unit is further configured to determine that there exists a second storage domain storing the identifier of the first storage domain and the identifier of the terminal;
the releasing unit is further configured to, when the determining unit determines that one second storage domain stores the identifier of the first storage domain and the identifier of the terminal, clear information stored in the second storage domain, and release the service resource that marks the identifier of the second storage domain, where the identifier for marking the second storage domain is an identifier of a service resource of the terminal corresponding to the identifier allocated to the terminal, and the service resource is a resource for enabling the terminal to implement a communication service.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710582820.XA CN109429376B (en) | 2017-07-17 | 2017-07-17 | Resource release method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710582820.XA CN109429376B (en) | 2017-07-17 | 2017-07-17 | Resource release method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109429376A CN109429376A (en) | 2019-03-05 |
CN109429376B true CN109429376B (en) | 2020-09-25 |
Family
ID=65497181
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710582820.XA Active CN109429376B (en) | 2017-07-17 | 2017-07-17 | Resource release method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109429376B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1957336A (en) * | 2004-06-15 | 2007-05-02 | 索尼株式会社 | Information management device and information management method |
CN101227415A (en) * | 2008-02-04 | 2008-07-23 | 华为技术有限公司 | Multi business resource allocation method, system, gateway equipment and authentication server |
CN103997540A (en) * | 2014-06-10 | 2014-08-20 | 深圳市友华通信技术有限公司 | Method for achieving distributed storage of network, storage system and customer premise equipment |
CN104284451A (en) * | 2014-09-22 | 2015-01-14 | 大唐移动通信设备有限公司 | User resource releasing method and devices |
CN104618421A (en) * | 2014-12-10 | 2015-05-13 | 深圳市腾讯计算机系统有限公司 | Method and device for distributing storage resources |
CN106502840A (en) * | 2016-10-25 | 2017-03-15 | 广东欧珀移动通信有限公司 | A kind of data back up method, apparatus and system |
-
2017
- 2017-07-17 CN CN201710582820.XA patent/CN109429376B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1957336A (en) * | 2004-06-15 | 2007-05-02 | 索尼株式会社 | Information management device and information management method |
CN101227415A (en) * | 2008-02-04 | 2008-07-23 | 华为技术有限公司 | Multi business resource allocation method, system, gateway equipment and authentication server |
CN103997540A (en) * | 2014-06-10 | 2014-08-20 | 深圳市友华通信技术有限公司 | Method for achieving distributed storage of network, storage system and customer premise equipment |
CN104284451A (en) * | 2014-09-22 | 2015-01-14 | 大唐移动通信设备有限公司 | User resource releasing method and devices |
CN104618421A (en) * | 2014-12-10 | 2015-05-13 | 深圳市腾讯计算机系统有限公司 | Method and device for distributing storage resources |
CN106502840A (en) * | 2016-10-25 | 2017-03-15 | 广东欧珀移动通信有限公司 | A kind of data back up method, apparatus and system |
Also Published As
Publication number | Publication date |
---|---|
CN109429376A (en) | 2019-03-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109936511B (en) | Token obtaining method, device, server, terminal equipment and medium | |
CN108429631B (en) | Method and device for instantiating network service | |
CN112214313B (en) | Memory allocation method and related equipment | |
US20170006474A1 (en) | Method for sharing network and network element | |
CN108876689A (en) | Order processing method, apparatus, equipment and computer readable storage medium | |
CN110062374B (en) | Method and device for distributing numbers and SIM cards | |
CN106685894B (en) | Risk identification method, device and system | |
CN110753323B (en) | Card resource allocation method and server | |
CN106557404B (en) | Application control method and mobile terminal | |
CN111093160A (en) | Calling method, equipment and system | |
CN111726241B (en) | Network resource management method, system, network device and readable storage medium | |
CN112235474B (en) | Method, device and equipment for scheduling prepaid flow code number | |
CN108280024B (en) | Flow distribution strategy testing method and device and electronic equipment | |
CN111625358B (en) | Resource allocation method and device, electronic equipment and storage medium | |
CN107566543B (en) | Node identifier setting method and device | |
CN109429376B (en) | Resource release method and device | |
CN108984427B (en) | Memory processing method and device in equipment based on Shenwei architecture | |
CN103259817B (en) | Method for releasing resource and device | |
CN103634416A (en) | Equipment number management method and platform | |
EP3316133A1 (en) | Network device subscription management | |
CN107294724B (en) | Short message uplink verification method and device | |
CN109522092A (en) | A kind of cloud pipe platform receives pipe virtual machine method and apparatus | |
CN112995982B (en) | Method, device, server and storage medium for scheduling cloud SIM card | |
CN109982271B (en) | Method and device for scheduling short message service system resources | |
CN112509164A (en) | Attendance card-punching method, attendance card-punching device, attendance card-punching equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |