SELF-RECOVERING METHOD OF PHYSICAL LAYER OF BASE STATION AND BASE STATION APPARATUS

Information

  • Patent Application
  • 20240264876
  • Publication Number
    20240264876
  • Date Filed
    February 07, 2023
    a year ago
  • Date Published
    August 08, 2024
    4 months ago
  • Inventors
  • Original Assignees
    • Aespula Technology INC.
Abstract
A self-recovering method of a physical layer of a base station is executed by a processor of a base station apparatus. The processor executes steps of: (a) executing n tasks during a time period of a time slot in a normal mode; (b) recording statuses of the executed n tasks into the task status vector table; (c) determining whether all of the statuses of the tasks of a previous kth time slot recorded in the task status vector table are executed statuses; if yes, returning to the step (a); if not, executing tasks within the time period of the time slot in a load reduction mode during next p consecutive time slots, and then returning to step (a). The processor executes the task in the load reduction mode for self-recovering so that the base station apparatus can avoid crashing.
Description
BACKGROUND OF THE INVENTION
1. Field of the Invention

The present invention relates to a self-recovering method and an apparatus, especially a self-recovering method of a physical layer of a base station, and a base station apparatus.


2. Description of the Related Art

A base station is a cell site being a cellular-enabled mobile device site. The base station is used to receive data packages from mobile devices or transmit the data packages to the mobile devices.


Further, the base station needs to execute tasks when receiving the data packages from the mobile devices, and the base station executes n tasks during each time slot.


However, when the base station cannot execute n tasks within one time slot due to excessive workload, there will be multiple undone tasks during such one time slot. The undone tasks may negatively affect performance of the base station. Namely, if a number of the undone tasks is too many, the base station may crash. Therefore, the base station needs to be improved.


SUMMARY OF THE INVENTION

In view of the above-mentioned needs, the main purpose of the present invention is to provide a self-recovering method of a physical layer of a base station, and a base station apparatus. The base station apparatus includes a memory and a processor. The processor is electrically connected to the memory.


The memory stores a task status vector table.


The processor executes the self-recovering method of the physical layer of the base station, and the self-recovering method includes steps of:

    • (a) executing n tasks during a time period of a time slot in a normal mode;
    • (b) recording statuses of the executed n tasks into a task status vector table;
    • (c) determining whether all of the statuses of the tasks of a previous kth time slot recorded in the task status vector table are executed statuses;
    • when the statuses of the tasks of the previous kth time slot recorded in the task status vector table are all executed statuses, returning to the step (a);
    • when any one of the statuses of the tasks of the previous kth time slot recorded in the task status vector table is not the executed status, after executing tasks within the time period of the time slot in a load reduction mode during next p consecutive time slots, returning to the step (a).


Since the processor of the base station apparatus can execute the tasks in the load reduction mode during next p consecutive time slots, the base station apparatus can self-recover to avoid crashing.





BRIEF DESCRIPTION OF THE DRAWINGS


FIG. 1 is a flowchart of a self-recovering method of a physical layer of a base station of the present invention;



FIG. 2 is a block diagram of a base station apparatus of the present invention;



FIG. 3 is a schematic block diagram of the base station apparatus of the present invention; and



FIG. 4 is a schematic diagram of the self-recovering method of the present invention.





DETAILED DESCRIPTION OF THE INVENTION

In the following, the technical solutions in the embodiments of the present invention will be clearly and fully described with reference to the drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of, not all of, the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by a person of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.



FIG. 1 is a flowchart of a self-recovering method of a physical layer of a base station, which is executed by a base station apparatus. In an embodiment, the base station apparatus 1 may be a cell site for communicating with mobile devices.


Further with reference to FIG. 2, the base station apparatus 1 includes a memory 10 and a processor 20. The processor 20 is electrically connected to the memory 10.


With reference to FIG. 3, in the embodiment, the base station apparatus 1 includes a first layer 1a, and a second/third layer 1b. For example, the first layer 1a may be a physical layer, and the second/third layer 1b may be a medium access control (MAC) layer, a Radio Link Control (RLC) layer, a Packet Data Convergence Protocol (PDCP) layer, or a Radio Resource Control (RRC) layer.


The memory 10 and the processor 20 correspond to the first layer 1a, and the memory 10 stores a task status vector table 101. The first layer 1a further includes a self-recovery module 201, a thread pool 202, and a task pool 203. The self-recovery module 201 assigns parameters of the tasks to the task pool 203. The thread pool 202 can read tasks from the task pool 203, and execute the tasks. The thread pool 202 further records statuses of executed tasks in the task status vector table 101.


Moreover, the self-recovery module 201 of the processor 20 executes the self-recovering method, and the self-recovering method includes the following steps.


In step S101, the processor 20 executes n tasks during a time period of a time slot in a normal mode.


In step S102, the processor 20 records statuses of the executed n tasks into the task status vector table 101.


In step S103, the processor 20 determines whether all of the statuses of the tasks of a previous kth time slot recorded in the task status vector table 101 are executed statuses.


When the statuses of the tasks of the previous kth time slot recorded in the task status vector table 101 are all executed statuses, the processor 20 returns to execute the step S101.


In step S104, when any one of the statuses of the tasks of the previous kth time slot recorded in the task status vector table 101 is not the executed status, after the processor 20 executes tasks within the time period of the time slot in a load reduction mode during next p consecutive time slots, the processor 20 returns to execute the step S101.


For example, the task status vector table 101 is shown below. The task status vector table 101 records the statuses of the tasks of m time slots. The processor 20 is executing the tasks within the time slot X, and particularly is executing the second task having a task N.O. 1. Further, the previous kth time slot recorded in the task status vector table 101 has a slot N.O. X−k.












Task Status Vector Table











Slot N.O.
Task N.O.
status







X-m + 1
0
Executed




1
Executed




2
Executed




. . .
. . .




n-1
Executed



.
.
.



.
.
.



.
.
.



X-k
0
Executed




1
Executed




2
Unexecuted




. . .
. . .




n-1
Executed



.
.
.



.
.
.



.
.
.



X-1
0
Executed




1
Executed




2
Executed




. . .
. . .




n-1
Executed



X
0
Executed




1
Executing




2
Unexecuted




. . .
. . .




n-1
Unexecuted










In the task status vector table 101, it is obviously known that the statuses of the tasks of the previous kth time slot recorded in the task status vector table 101 have at least one task in an unexecuted status. For example, the third task of the previous kth time slot having a task N.O. 2 is in the unexecuted status.


With reference to FIG. 4, since the previous kth time slot recorded in the task status vector table 101 has at least one task in the unexecuted status, the processor 20 needs to execute the tasks in the load reduction mode during next p consecutive time slots. For example, the processor 20 executes the tasks in the load reduction mode from the slot X+1 to the slot X+p.


In the embodiment, p+k≤m. Further, when the processor 20 executes tasks in the load reduction mode, a workload for processing the tasks within the next p consecutive time slots is reduced. For example, when the workload is reduced, the processor 20 processes i tasks within the next p consecutive time slots in the load reduction mode, and the processor 20 further processes the at least one task in the unexecuted status during time periods after processing the i tasks within the next p consecutive time slots. In the embodiment, i is a positive integer, and i≤n.


For example, when the processor 20 executes tasks in the load reduction mode, the processor 20 further processes the at least one task of the previous kth time slot having the unexecuted status during the next p consecutive time slots.


Moreover, p is determined according to the statuses of the tasks of the previous kth time slot recorded in the task status vector table 101. In the embodiment, the smaller a number of the executed statuses of the tasks of the previous kth time slot recorded in the task status vector table 101 is, the greater p is. For example, if the statuses of the tasks of the previous kth time slot is recorded in the following Table 1, the number of the executed statuses may be n−3. Therefore, p may be determined to be 10.













TABLE 1







Slot N.O.
Task N.O.
status









X-k
0
Unexecuted




1
Unexecuted




. . .
. . .




n-4
Unexecuted




n-3
Executed




n-2
Executed




n-1
Executed










However, if the statuses of the tasks of the previous kth time slot are recorded in the following Table 2, the number of the executed statuses may be n−1. Namely, the number of the executed statuses recorded in Table 2 is greater than the number of the executed statuses recorded in Table 1. Therefore, in Table 2, p may be determined to be smaller than 10, and p may be 5.













TABLE 2







Slot N.O.
Task N.O.
status









X-k
0
Unexecuted




1
Executed




2
Executed




. . .
. . .




n-1
Executed










In conclusion, when the previous kth time slot has at least one unexecuted status, the processor 20 of the base station apparatus 1 can execute tasks in the load reduction mode for self-recovering so that the base station apparatus 1 can avoid crashing.


Even though numerous characteristics and advantages of the present invention have been set forth in the foregoing description, together with details of the structure and function of the invention, the disclosure is illustrative only. Changes may be made in detail, especially in matters of shape, size, and arrangement of parts within the principles of the invention to the full extent indicated by the broad general meaning of the terms in which the appended claims are expressed.

Claims
  • 1. A self-recovering method of a physical layer of a base station, executed by a processor of a base station apparatus, and comprising steps of: (a) executing n tasks during a time period of a time slot in a normal mode;(b) recording statuses of the executed n tasks into a task status vector table;(c) determining whether all of the statuses of the tasks of a previous kth time slot recorded in the task status vector table are executed statuses;when the statuses of the tasks of the previous kth time slot recorded in the task status vector table are all executed statuses, returning to the step (a);when any one of the statuses of the tasks of the previous kth time slot recorded in the task status vector table is not the executed status, executing tasks within the time period of the time slot in a load reduction mode during next p consecutive time slots, and returning to the step (a).
  • 2. The self-recovering method as claimed in claim 1, wherein the task status vector table is stored in a memory of the base station apparatus, and the task status vector table records the statuses of the tasks of m time slots; wherein n, k, p, and m are positive integers;wherein p+k≤m.
  • 3. The self-recovering method as claimed in claim 1, wherein when the processor executes tasks in the load reduction mode, a workload for processing the tasks within the next p consecutive time slots is reduced.
  • 4. The self-recovering method as claimed in claim 3, wherein when the workload is reduced, the processor executes i tasks within the next p consecutive time slots in the load reduction mode; wherein i is a positive integer, and i≤n.
  • 5. The self-recovering method as claimed in claim 1, wherein p is determined according to the statuses of the tasks of the previous kth time slot recorded in the task status vector table.
  • 6. The self-recovering method as claimed in claim 5, wherein the smaller a number of the executed statuses of the tasks of the previous kth time slot recorded in the task status vector table is, the greater p is.
  • 7. The self-recovering method as claimed in claim 1, wherein when the processor executes tasks in the load reduction mode, the processor further processes the at least one task of the previous kth time slot having the unexecuted status during the next p consecutive time slots.
  • 8. A base station apparatus, comprising: a memory, storing a task status vector table;a processor, electrically connected to the memory, and executing steps of:(a) executing n tasks during a time period of a time slot in a normal mode;(b) recording statuses of the executed n tasks into the task status vector table;(c) determining whether all of the statuses of the tasks of a previous kth time slot recorded in the task status vector table are executed statuses;when the statuses of the tasks of the previous kth time slot recorded in the task status vector table are all executed statuses, returning to the step (a);when any one of the statuses of the tasks of the previous kth time slot recorded in the task status vector table is not the executed status, executing tasks within the time period of the time slot in a load reduction mode during next p consecutive time slots, and returning to the step (a).
  • 9. The base station apparatus as claimed in claim 8, wherein the task status vector table records the statuses of the tasks of m time slots; wherein n, k, p, and m are positive integers;wherein p+k≤m.
  • 10. The base station apparatus as claimed in claim 8, wherein when the processor executes tasks in the load reduction mode, a workload for processing the tasks within the next p consecutive time slots is reduced.
  • 11. The base station apparatus as claimed in claim 10, wherein when the workload is reduced, the processor executes i tasks within the next p consecutive time slots in the load reduction mode; wherein i is a positive integer, and i≤n.
  • 12. The base station apparatus as claimed in claim 8, wherein p is determined according to the statuses of the tasks of the previous kth time slot recorded in the task status vector table.
  • 13. The base station apparatus as claimed in claim 12, wherein the smaller a number of the executed statuses of the tasks of the previous kth time slot recorded in the task status vector table is, the greater p is.
  • 14. The base station apparatus as claimed in claim 8, wherein when the processor executes tasks in the load reduction mode, the processor further processes the at least one task of the previous kth time slot having the unexecuted status during the next p consecutive time slots.