Advanced vector extension (AVX) instruction set execution unit control method and network equipment
By controlling the active state of the AVX instruction set execution unit according to the physical layer working status of the network device, the problem of the AVX instruction set needing to be restarted in a low-load state is solved, and the processing delay of the communication network system is reduced.
Patent Information
- Application Number
- CN202310353397.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-04
- Publication Date
- 2024-10-15
AI Technical Summary
In the physical layer signal processing of wireless communication base stations, the AVX instruction set execution unit may be turned off under low load conditions, resulting in the need to turn it on again when it is needed next time, increasing the processing time of scheduling tasks.
By flexibly controlling the active or inactive state of the AVX instruction set execution unit according to the physical layer working status of the network device, it ensures that the AVX instruction set execution unit is kept active in busy or normal states and avoids restarting.
It effectively reduces the small packet processing delay of the communication network system, improves the flexibility of AVX instruction set execution unit control, and reduces the time-consuming processing of scheduling tasks under low load conditions.
Smart Images

Figure CN118784585A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to an advanced vector extension AVX instruction set execution unit control method and network device. Background Art
[0002] The Advanced Vector Extensions (AVX) instruction set (also known as AVX512) and the Data Plane Development Kit (DPDK) are new technologies introduced to improve the processing performance of the X86 central processing unit (CPU). With the leap in the processing power of the X86 CPU, the physical layer signal processing of wireless communication base stations has also begun to widely use general-purpose processors based on the X86 architecture.
[0003] In order to further improve the capacity and processing power of the base station and reduce system consumption, DPDK technology is usually used in the physical layer software of the X86CPU. DPDK adopts a round-robin mode. After the program is started, it will enter a loop to query whether there are pending scheduling tasks. If there are pending scheduling tasks, the corresponding scheduling tasks will be processed. If there are no pending scheduling tasks, a certain amount of empty (NOP) instructions will be executed to reduce the negative pressure on the memory system caused by repeated queries of the DPDK space.
[0004] In the process of scheduling task processing, the AVX instruction set execution unit is usually used. However, in some cases, if the CPU does not use the AVX instruction set temporarily, the CPU may turn off the AVX instruction set execution unit, so that the AVX instruction set execution unit needs to be turned on again the next time it is needed, which increases the processing time of the scheduling task. Therefore, how to control the AVX instruction set execution unit is a technical problem that needs to be solved urgently. Summary of the invention
[0005] The present application provides an advanced vector extension AVX instruction set execution unit control method and a network device to achieve flexible control of the AVX instruction set execution unit.
[0006] In a first aspect, the present application provides an advanced vector extension AVX instruction set execution unit control method, which is applied to a network device, and the method includes:
[0007] Determine the working state of the physical layer of the network device according to whether there is a terminal connected to the network device, the working state being a busy state, an idle state or a normal state;
[0008] According to the working state of the physical layer, the AVX instruction set execution unit of the physical layer is kept in an active state or an inactive state.
[0009] In a possible implementation manner, determining the working state of the physical layer of the network device according to whether there is a terminal connected to the network device includes:
[0010] In the presence of a terminal connected to the network device, determining a processing load of the network device, and determining a working state of the physical layer according to the processing load;
[0011] In the case that there is no terminal connected to the network device, it is determined whether there is a terminal to be connected, and the working state of the physical layer is determined according to the determination result.
[0012] In a possible implementation manner, determining the processing load of the network device includes:
[0013] Determine the duration of the scheduling cycle of the network device and the processing duration of the network device for processing the scheduling task within the scheduling cycle;
[0014] The processing load is determined according to the duration of the scheduling period and the processing duration.
[0015] In a possible implementation manner, determining the working state of the physical layer according to the processing load includes:
[0016] When the processing load is greater than a preset threshold, determining that the working state of the physical layer is a busy state;
[0017] When the processing load is less than or equal to a preset threshold, it is determined that the working state of the physical layer is a normal state.
[0018] In a possible implementation manner, the determining whether there is a terminal to be accessed includes:
[0019] Determining whether a random access message is received within a preset time period;
[0020] In case of receiving the random access message, determining that the terminal to be accessed exists;
[0021] In a case where the random access message is not received, it is determined that the terminal to be accessed does not exist.
[0022] In a possible implementation manner, determining the working state of the physical layer according to the judgment result includes:
[0023] In a case where the judgment result indicates that the terminal to be accessed exists, determining that the working state of the physical layer is a normal state;
[0024] When the judgment result indicates that the terminal to be accessed does not exist, it is determined that the working state of the physical layer is an idle state.
[0025] In a possible implementation, keeping the AVX instruction set execution unit of the physical layer in an active state or an inactive state according to the working state of the physical layer includes:
[0026] When the working state of the physical layer is a busy state, keeping the AVX instruction set execution unit in the active state;
[0027] When the working state of the physical layer is a normal state, keeping the AVX instruction set execution unit in the active state;
[0028] When the working state of the physical layer is an idle state, the AVX instruction set execution unit is kept in the inactive state.
[0029] In a possible implementation, keeping the AVX instruction set execution unit in the active state includes:
[0030] Determine a state holding function corresponding to the AVX instruction set execution unit, wherein the state holding function includes AVX instructions;
[0031] According to the state keeping function, the AVX instruction set execution unit is kept in the active state.
[0032] In a second aspect, the present application provides a network device, including a memory, a transceiver, and a processor;
[0033] A memory for storing a computer program; a transceiver for transmitting and receiving data under the control of the processor; and a processor for reading the computer program in the memory and performing the following operations:
[0034] Determine the working state of the physical layer of the network device according to whether there is a terminal connected to the network device, the working state being a busy state, an idle state or a normal state;
[0035] According to the working state of the physical layer, the AVX instruction set execution unit of the physical layer is kept in an active state or an inactive state.
[0036] In a possible implementation manner, determining the working state of the physical layer of the network device according to whether there is a terminal connected to the network device includes:
[0037] In the presence of a terminal connected to the network device, determining a processing load of the network device, and determining a working state of the physical layer according to the processing load;
[0038] In the case that there is no terminal connected to the network device, it is determined whether there is a terminal to be connected, and the working state of the physical layer is determined according to the determination result.
[0039] In a possible implementation manner, determining the processing load of the network device includes:
[0040] Determine the duration of the scheduling cycle of the network device and the processing duration of the network device for processing the scheduling task within the scheduling cycle;
[0041] The processing load is determined according to the duration of the scheduling period and the processing duration.
[0042] In a possible implementation manner, determining the working state of the physical layer according to the processing load includes:
[0043] When the processing load is greater than a preset threshold, determining that the working state of the physical layer is a busy state;
[0044] When the processing load is less than or equal to a preset threshold, it is determined that the working state of the physical layer is a normal state.
[0045] In a possible implementation manner, the determining whether there is a terminal to be accessed includes:
[0046] Determining whether a random access message is received within a preset time period;
[0047] In case of receiving the random access message, determining that the terminal to be accessed exists;
[0048] In a case where the random access message is not received, it is determined that the terminal to be accessed does not exist.
[0049] In a possible implementation manner, determining the working state of the physical layer according to the judgment result includes:
[0050] In a case where the judgment result indicates that the terminal to be accessed exists, determining that the working state of the physical layer is a normal state;
[0051] When the judgment result indicates that the terminal to be accessed does not exist, it is determined that the working state of the physical layer is an idle state.
[0052] In a possible implementation, keeping the AVX instruction set execution unit of the physical layer in an active state or an inactive state according to the working state of the physical layer includes:
[0053] When the working state of the physical layer is a busy state, keeping the AVX instruction set execution unit in the active state;
[0054] When the working state of the physical layer is a normal state, keeping the AVX instruction set execution unit in the active state;
[0055] When the working state of the physical layer is an idle state, the AVX instruction set execution unit is kept in the inactive state.
[0056] In a possible implementation, keeping the AVX instruction set execution unit in the active state includes:
[0057] Determine a state holding function corresponding to the AVX instruction set execution unit, wherein the state holding function includes AVX instructions;
[0058] According to the state keeping function, the AVX instruction set execution unit is kept in the active state.
[0059] In a third aspect, the present application provides an AVX instruction set execution unit control device, the device comprising:
[0060] A determination module, configured to determine a working state of a physical layer of the network device according to whether there is a terminal connected to the network device, wherein the working state is a busy state, an idle state or a normal state;
[0061] A processing module is used to keep the AVX instruction set execution unit of the physical layer in an active state or an inactive state according to the working state of the physical layer.
[0062] In a possible implementation manner, the determining module is specifically configured to:
[0063] In the presence of a terminal connected to the network device, determining a processing load of the network device, and determining a working state of the physical layer according to the processing load;
[0064] In the case that there is no terminal connected to the network device, it is determined whether there is a terminal to be connected, and the working state of the physical layer is determined according to the determination result.
[0065] In a possible implementation manner, the determining module is specifically configured to:
[0066] Determine the duration of the scheduling cycle of the network device and the processing duration of the network device for processing the scheduling task within the scheduling cycle;
[0067] The processing load is determined according to the duration of the scheduling period and the processing duration.
[0068] In a possible implementation manner, the determining module is specifically configured to:
[0069] When the processing load is greater than a preset threshold, determining that the working state of the physical layer is a busy state;
[0070] When the processing load is less than or equal to a preset threshold, it is determined that the working state of the physical layer is a normal state.
[0071] In a possible implementation manner, the determining module is specifically configured to:
[0072] Determining whether a random access message is received within a preset time period;
[0073] In case of receiving the random access message, determining that the terminal to be accessed exists;
[0074] In a case where the random access message is not received, it is determined that the terminal to be accessed does not exist.
[0075] In a possible implementation manner, the determining module is specifically configured to:
[0076] In a case where the judgment result indicates that the terminal to be accessed exists, determining that the working state of the physical layer is a normal state;
[0077] When the judgment result indicates that the terminal to be accessed does not exist, it is determined that the working state of the physical layer is an idle state.
[0078] In a possible implementation manner, the processing module is specifically used to:
[0079] When the working state of the physical layer is a busy state, keeping the AVX instruction set execution unit in the active state;
[0080] When the working state of the physical layer is a normal state, keeping the AVX instruction set execution unit in the active state;
[0081] When the working state of the physical layer is an idle state, the AVX instruction set execution unit is kept in the inactive state.
[0082] In a possible implementation manner, the processing module is specifically used to:
[0083] Determine a state holding function corresponding to the AVX instruction set execution unit, wherein the state holding function includes AVX instructions;
[0084] According to the state keeping function, the AVX instruction set execution unit is kept in the active state.
[0085] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein the computer program is used to enable a computer to execute the AVX instruction set execution unit control method described in any one of the first aspects.
[0086] The AVX instruction set execution unit control method and network device provided by the present application first determine the working state of the physical layer of the network device according to whether there is a terminal connected to the network device, and the working state of the physical layer is a busy state, an idle state, or a normal state. Then, according to the working state of the physical layer, the AVX instruction set execution unit of the physical layer is kept in an active state or an inactive state. The scheme of the embodiment of the present application can flexibly control the control of the AVX instruction set execution unit according to the working state of the physical layer of the network device, and keep the AVX instruction set execution unit in an active state when the working state of the physical layer is in a busy state and a normal state, so that when the scheduling task involving the processing of the AVX instruction set execution unit is involved, there is no need to reopen the AVX instruction set execution unit, which further improves the flexibility of the control of the AVX instruction set execution unit and effectively reduces the packet processing delay of the communication network system. BRIEF DESCRIPTION OF THE DRAWINGS
[0087] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0088] Figure 1 A schematic diagram of the scheduling task processing flow provided in an embodiment of the present application;
[0089] Figure 2 A schematic diagram of the time consumption for scheduling task processing under different loads provided in an embodiment of the present application;
[0090] Figure 3 A schematic diagram of a process for a network device to process a scheduling task provided in an embodiment of the present application;
[0091] Figure 4 A flowchart of an AVX instruction set execution unit control method provided in an embodiment of the present application;
[0092] Figure 5 A schematic diagram of a process for determining the working state of the physical layer of a network device provided in an embodiment of the present application;
[0093] Figure 6A schematic diagram of the scheduling task processing flow provided in an embodiment of the present application;
[0094] Figure 7 A schematic diagram of the time consumption of scheduling task processing provided in an embodiment of the present application;
[0095] Figure 8 A schematic diagram of the structure of a network device provided in an embodiment of the present application;
[0096] Fig. 9 A schematic diagram of the structure of an AVX instruction set execution unit control device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0097] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in this application. Obviously, the described embodiments are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0098] With the leap in processing power of X86 processors, general-purpose processors based on X86 architecture have also been widely used in physical layer signal processing of wireless communication base stations. In order to further increase capacity and processing power and reduce system consumption, DPDK technology is usually used in physical layer software to significantly improve the processing power of multi-core processor systems.
[0099] In order to further improve the capacity and processing power of base stations and reduce system overhead, DPDK technology is usually used in the physical layer software of X86CPU. DPDK adopts a round-robin mode. After the program is started, it will enter a loop to check whether there are any pending scheduling tasks. For example, it can be combined with Figure 1 Understand the process.
[0100] Figure 1 The following is a schematic diagram of the scheduling task processing flow provided in the embodiment of the present application, such as Figure 1 As shown, including:
[0101] S101, initializing the operating environment.
[0102] S102, analyzing input parameters.
[0103] S103, initialize DPDK command line parameters (lcore) and port configuration.
[0104] S104, port and queue initialization.
[0105] S105, port startup.
[0106] S106, start the slave thread.
[0107] In the process of scheduling task processing, there can be one or more slave threads. Figure 1 A slave thread is used as an example to illustrate.
[0108] S107, reading the associated receiving and sending queue information.
[0109] During this process, you need to read the corresponding lcore information to complete the configuration, and then read the associated receive and send queue information.
[0110] S108, enter loop processing.
[0111] The loop processing is mainly a while loop, which receives the scheduled tasks in batches from the specified queue, and then processes the scheduled tasks in batches. In the loop, the network device's receiving and sending packet identifiers and other hardware notification identifiers are queried. If a data packet is received or there are other custom processing task flags, the corresponding packet processing and custom task processing are performed. Since the entire process is performed in user mode and no interrupts are used, the operating system overhead can be greatly reduced.
[0112] S109, check whether a new scheduling task is received, if so, execute S110, if not, execute S111.
[0113] S110, batch processing of new scheduling tasks.
[0114] If there are new scheduling tasks in this cycle, the network device will process the new scheduling tasks in batches. If a new scheduling task is received from a thread, the processing content is mainly the detection and demodulation of the uplink signal or the coding and modulation of the downlink data, etc. Involving more digital signal processing, in order to improve computing efficiency, the physical layer software usually uses single instruction multiple data (SIMD), AVX, AVX512 and other instructions as much as possible.
[0115] S111, execute the empty instruction, and execute S108.
[0116] If there is no new scheduling task in this cycle, the network device executes a certain amount of empty instructions to reduce the negative pressure on the memory system caused by repeated queries of the DPDK space. Empty instructions are also called no operation (NOP) empty instructions.
[0117] However, the above scheduling process may increase the processing time of the scheduling task when the load of the network device is low. Figure 2 and Figure 3 To understand.
[0118] Figure 2 A schematic diagram of the time consumption of scheduling task processing under different loads provided in an embodiment of the present application, Figure 3 A schematic diagram of the process of network device processing scheduling tasks provided in an embodiment of the present application.
[0119] Figure 2 The time consumption of scheduling tasks when the network device is in a high-load state and a low-load state is illustrated respectively. It takes 100us for the network device to process a scheduling task when it is in a high-load state, while it takes 250us for the network device to process the same scheduling task when it is in a low-load state, which is significantly higher than the time consumption of the network device to process the scheduling task when it is in a high-load state. For specific reasons, please refer to Figure 3 understand.
[0120] The network device processes scheduling tasks, including physical layer processing and L2 layer processing. In the process of processing scheduling tasks, physical layer processing often involves AVX instructions, so an AVX instruction execution unit is required.
[0121] like Figure 3 As shown, take the network device starting to process the scheduling task at time t1 as an example. When the network device is in a high-load state, the network device needs to process more scheduling tasks, which often involve the AVX instruction set. Therefore, the AVX instruction execution unit is in an active state, and the physical layer processing takes a short time, which is the time from time t1 to time t2. After the physical layer processing is completed, the L2 layer processing is performed, and the time required for the L2 layer processing process is the time from time t2 to time t3.
[0122] When the network device is in a low-load state, the network device needs to process fewer scheduling tasks, and the interval between two scheduling tasks is longer. In this case, the network device does not process scheduling tasks for a long time, and also does not use the AVX instruction execution unit for a long time. If the AVX instruction execution unit is not used for a long time, the network device may shut down the AVX instruction execution unit. During the processing of the next scheduling task, if an AVX instruction is involved, the AVX instruction execution unit needs to be restarted, and the scheduling task involving the AVX instruction is processed through the AVX instruction execution unit.
[0123] Since it takes extra time to start the AVX instruction execution unit, usually 50us-100us, the time required to process the scheduling task when the network device is under high load will also increase by an additional 50us-100us, that is, the processing time of some small data packets will increase by an additional 50us-100us. Figure 3As shown in the figure, when the network device is in a low load state, the time required for physical layer processing is the time from t1 to t4, and the time required for L2 layer processing is the time from t4 to t5. The time from t2 to t3 is almost equal to the time from t4 to t5. The time from t1 to t4 is 50us-100us longer than the time from t1 to t2.
[0124] Although the time difference of a single task is only 50us-100us, if the feedback time point is missed, the delay difference will increase further. In wireless communication systems, the length of a single time slot is 500us or 1000us. For example, Figure 3 In the example, t3 is a feedback time point. If the network device is in a high-load state, it can catch up with the feedback time point t3 after processing the scheduling task. However, if the network device is in a low-load state, it cannot provide feedback at t3 after processing the scheduling task. Therefore, it needs to wait for the next feedback time point to provide feedback, which will increase the delay difference to 500us or 1000us. For wireless communication systems with time division duplexing (TDD), such as TDD-LTE and TDD-NR, the switching timing is calculated in half frames. If a feedback time point is missed, the delay that may be directly affected may become 2.5ms or even 5ms; therefore, it is of great significance to reduce the processing delay of such sporadic scheduling.
[0125] Based on this, the embodiment of the present application provides an AVX instruction set execution unit control method, which implements the control of the AVX instruction set execution unit based on the working state of the physical layer of the network device, thereby reducing the time consumed by the network device to process scheduling tasks under low load. Figure 4 The solution of the embodiment of the present application is introduced.
[0126] Figure 4 A flow chart of an AVX instruction set execution unit control method provided in an embodiment of the present application, which is applied to a network device such as Figure 4 As shown, the method includes:
[0127] S41, determining the working state of the physical layer of the network device according to whether there is a terminal connected to the network device, wherein the working state is a busy state, an idle state or a normal state.
[0128] In the embodiment of the present application, the working states of the physical layer of the network device are divided into three states: busy state, idle state and normal state. The busy state refers to a state in which the processing load of the network device is relatively high, the idle state refers to a state in which the processing load of the network device is relatively low, and the normal state is a state between the busy state and the idle state.
[0129] For a network device, first determine whether there is a terminal connected to the network device. In the embodiment of the present application, the terminal connected to the network device includes a terminal in a connected state and a terminal in an inactive state. The network device itself can directly determine whether there is a terminal connected to the network device.
[0130] Combine the following Figure 5 This section describes how to determine the physical layer working status of a network device.
[0131] Figure 5 A flow chart of determining the working status of the physical layer of a network device provided in an embodiment of the present application, such as Figure 5 As shown, including:
[0132] S51, determine whether there is a terminal connected to the network device, if so, execute S52, if not, execute S55.
[0133] S52, determining the processing load of the network device.
[0134] In the case where there is a terminal connected to the network device, the network device may first determine the processing load of the network device, and determine the working state of the physical layer of the network device according to the processing load.
[0135] In a possible implementation, for a scheduling cycle, the network device may determine the duration of the scheduling cycle and the processing duration of the network device for processing the scheduling task within the scheduling cycle. Then, the processing load of the network device is determined according to the duration of the scheduling cycle and the processing duration of the network device for processing the scheduling task within the scheduling cycle. Optionally, the processing load of the network device may be determined by the ratio of the processing duration of the network device for processing the scheduling task within the scheduling cycle to the duration of the scheduling cycle.
[0136] In the physical layer software process of the network device, the processing load of the network device can be determined by adding a CPU load monitoring function. For the loop process of any scheduling cycle, run the CPU load monitoring function. In a scheduling cycle, when the network device starts the loop process and starts processing the scheduling task, record the starting timestamp counter (TimeStamp Counter, TSC); when the network device ends the processing of the scheduling task, record the ending TSC. Subtract the starting TSC from the ending TSC to get the processing time of the network device to process the scheduling task. In a scheduling cycle, the processing time of the network device to process each scheduling task can be obtained by the above method, and then accumulated to get the processing time of the network device to process all scheduling tasks in the scheduling cycle. Then, according to the processing time of the network device for processing the scheduling task in the scheduling cycle and the duration of the scheduling cycle, the processing load of the network device is obtained.
[0137] S53, determine whether the processing load is greater than a preset threshold, if so, execute S54, if not, execute S56.
[0138] After obtaining the processing load of the network device, the processing load of the network device can be compared with a preset threshold value to determine the working state of the physical layer of the network device. Wherein, when the processing load of the network device is greater than the preset threshold value, the working state of the physical layer of the network device is determined to be a busy state; when the processing load of the network device is less than or equal to the preset threshold value, the working state of the physical layer of the network device is determined to be a normal state.
[0139] Taking the preset threshold of 50% as an example, if the processing load of the network device is determined to be 40% within a scheduling cycle, the processing load is less than the preset threshold, so the working state of the physical layer of the network device is determined to be normal; if the processing load of the network device is determined to be 70% within a scheduling cycle, the processing load is greater than the preset threshold, so the working state of the physical layer of the network device is determined to be busy.
[0140] S54, determining that the working status is busy.
[0141] When there is a terminal connected to the network device and the processing load of the network device is greater than a preset threshold, it is determined that the working state of the physical layer of the network device is a busy state, indicating that the network device has more scheduling tasks to be processed.
[0142] S55, determine whether there is a terminal to be accessed, if yes, execute S56, if not, execute S57.
[0143] In the case that there is no terminal connected to the network device, it is necessary to further determine whether there is a terminal to be connected, so as to determine the working state of the physical layer of the network device according to the determination result, wherein the determination result is whether there is a terminal to be connected or not.
[0144] For a terminal in an idle state, the terminal needs to establish a connection with a network device through a random access process, and the random access process involves a random access message. Therefore, the network device can determine whether a random access message is received within a preset time length. If the network device receives a random access message within the preset time length, it means that a terminal is about to establish a connection with the network device, and it is determined that there is a terminal to be connected; if the network device does not receive a random access message within the preset time length, it means that no terminal will establish a connection with the network device within a certain time length, and it is determined that there is no terminal to be connected.
[0145] In a possible implementation, a timer can be maintained to determine whether there is a terminal to be accessed, and the name of the timer is, for example, TIMER_msg1. TIMER_msg1 continues to accumulate with the system time, and the frequency of accumulation and the value of each accumulation can be set as needed, for example, it can be set every 10ms+1, for example, it can be set every 10ms+2, for example, it can be set every 15ms+1, and so on. Taking the setting of every 10ms+1 as an example, if no random access message is received, the timer TIMER_msg1 is +1 every 10ms. When a random access message is received, the timer TIMER_msg1 is set to 0. Taking the preset duration of 50ms as an example, in the embodiment of the present application, if the timer TIMER_msg1<5, it is considered that there is a terminal to be accessed in the system, otherwise it is determined that there is no terminal to be accessed in the system.
[0146] S56, determining that the working state is a normal state.
[0147] When there is a terminal connected to the network device and the processing load of the network device is less than or equal to the preset threshold, it can be determined that the working state of the physical layer of the network device is normal; when there is no terminal connected to the network device and there is a terminal to be connected in the future, it can be determined that the working state of the physical layer of the network device is also normal. When the working state of the physical layer of the network device is normal, it means that the network device has pending scheduling tasks, or there may be new pending scheduling tasks in the future, but the number of pending scheduling tasks is relatively small compared to the busy state.
[0148] S57, determining that the working state is an idle state.
[0149] When there is no terminal connected to the network device and there is no terminal to be accessed in the future, the working state of the physical layer of the network device is determined to be idle, indicating that there is no pending scheduling task for the network device temporarily and there will be no pending scheduling task in the future.
[0150] S42, keeping the AVX instruction set execution unit of the physical layer in an active state or an inactive state according to the working state of the physical layer.
[0151] In the above embodiment, combined with Figure 5 How to determine the working state of the physical layer of a network device is described. After the working state of the physical layer of the network device is determined, an AVX instruction set execution unit of the physical layer can be kept in an active state or an inactive state according to the working state of the physical layer of the network device.
[0152] In the embodiment of the present application, the AVX instruction set execution unit being in an active state means that the AVX instruction set execution unit is in a startup state, and in the process of requiring the AVX instruction set execution unit to be in a scheduling task related to the AVX instruction, the processing of the scheduling task related to the AVX instruction can be performed without additionally performing the startup operation of the AVX instruction set execution unit. Correspondingly, the AVX instruction set execution unit being in an inactive state means that the AVX instruction set execution unit is in a closed state, and in the process of requiring the AVX instruction set execution unit to be in a scheduling task related to the AVX instruction, the startup operation of the AVX instruction set execution unit is additionally required to perform the processing of the scheduling task related to the AVX instruction.
[0153] When the working state of the physical layer of the network device is busy, the network device keeps the AVX instruction set execution unit in an active state. In the case where the working state of the physical layer is busy, the processing load of the network device is large and there are many scheduling tasks to be processed. The scheduling tasks to be processed often involve scheduling tasks related to AVX instructions, and the AVX instruction set execution unit needs to participate in the processing of scheduling tasks. Therefore, when the working state of the physical layer is busy, the AVX instruction set execution unit frequently participates in the processing of scheduling tasks, which can keep the AVX instruction set execution unit in an active state.
[0154] When the working state of the physical layer of the network device is idle, the network device keeps the AVX instruction set execution unit in an inactive state. When the working state of the physical layer is idle, it means that there is neither a terminal connected to the network device nor a terminal to be connected. The absence of a terminal connected to the network device means that the network device currently has no scheduling tasks to be processed; the absence of a terminal to be connected means that the network device will not add any new scheduling tasks in the future. Therefore, when the working state of the physical layer is idle, there is no need to use the AVX instruction set execution unit to process scheduling tasks. If the AVX instruction set execution unit does not participate in the processing of scheduling tasks within a certain period of time, the AVX instruction set execution unit will be turned off to keep the AVX instruction set execution unit in an inactive state.
[0155] When the working state of the physical layer of the network device is normal, the network device keeps the AVX instruction set execution unit in an active state. For the scenario where the working state of the physical layer is normal, there are two situations. One is that there is a terminal connected to the network device, and the processing load of the network device is less than or equal to the preset threshold. This situation indicates that the network device may have scheduling tasks to be processed, but there are fewer scheduling tasks to be processed; the other is that there is no terminal connected to the network device, and there is a terminal to be connected. This situation indicates that the network device may add new scheduling tasks in the future. Regardless of which situation it is, when the working state of the physical layer is normal, since the interval between scheduling tasks may be long, the AVX instruction set execution unit may be turned off when the scheduling task is not processed for a long time. When the AVX instruction set execution unit is required to process the scheduling task again, the additional opening of the AVX instruction set execution unit will increase the time consumption of the opening process. Therefore, for the case where the working state of the physical layer is normal, the AVX instruction set execution unit needs to be kept in an active state.
[0156] In a possible implementation, a state-keeping function corresponding to an AVX instruction set execution unit can be determined, and the state-keeping function is used to keep the AVX instruction set execution unit in an active state. In order to keep the AVX instruction set execution unit in an active state, the state-keeping function needs to include AVX instructions. Therefore, in the process of running the state-keeping function, the part involving AVX instructions needs to be processed accordingly using the AVX instruction set execution unit, so that the AVX instruction set execution unit can be kept in an active state. Further, for the state-keeping function, it is necessary to be as computationally intensive as possible, and computationally intensive means that each processing instruction of the state-keeping function contains AVX instructions as much as possible. In order to minimize the impact of running the state-keeping function on the load of the network device, when determining the state-keeping function, try to use less input and output space, and you can also set it to use the same space each time when running the state-keeping function, so as to reduce the occupancy of the cache in the network device.
[0157] The following is an introduction using a specific state-keeping function as an example. In a possible implementation, the content of the state-keeping function may be the inversion of a 16*16 complex matrix.
[0158] Specifically, first set the global variable input space AvxHoldFuncInputBuffer. The content stored in AvxHoldFuncInputBuffer is a 16*16 complex matrix, each element is a complex number, and the real and imaginary parts of each element are floating point types. Then, set the global variable output space AvxHoldFuncOutputBuffer. AvxHoldFuncOutputBuffer stores the result after inverting the complex matrix. Its storage method is the same as the input.
[0159] The Gaussian elimination method can be used to invert the complex matrix. The code is written using the vectorized instructions of AVX512. Gaussian elimination is a relatively efficient method for inverting a matrix. For any matrix A (with a dimension of n×n), the augmented matrix W of the matrix A is first constructed, where W = [A|E] and the matrix E is a unit matrix with a dimension of n×n. Through the above process, an augmented matrix W with a dimension of n×2n is obtained.
[0160] Then, the augmented matrix W is transformed into the form of [E|B]. Specifically, the augmented matrix W is first transformed from top to bottom, so that the square matrix of the first part of the augmented matrix W becomes an upper triangular matrix; then the row transformation is performed from bottom to top, so that the first part of the augmented matrix W becomes a diagonal matrix; each row in the previous step is multiplied by a fixed coefficient, so that the first part of the augmented matrix becomes a unit matrix; the second part B of the augmented matrix W after the transformation is the inverse matrix of the required matrix A.
[0161] The AVX state holding function for inverting the complex matrix requires 2k bytes of input space and 2k bytes of output space, which occupies less space and will not have much impact on the storage space of the network device.
[0162] In the above embodiment, the process of inverting a complex matrix is introduced by using Gaussian elimination method. It can be understood that the complex matrix can also be inverted by other possible methods. Gaussian elimination method is only an example and does not constitute a limitation on the inversion method. Inverting a complex matrix is also only an example of a state-keeping function. As long as the function includes AVX instructions, it can be set as a state-keeping function to keep the AVX instruction set execution unit in an active state.
[0163] Figure 6 The following is a schematic diagram of the scheduling task processing flow provided in the embodiment of the present application, such as Figure 6 As shown, including:
[0164] S601, initializing the operating environment.
[0165] S602, analyzing input parameters.
[0166] S603, initialize DPDK command line parameters (lcore) and port configuration.
[0167] S604, port and queue initialization.
[0168] S605, port startup.
[0169] S606, start the slave thread.
[0170] In the process of scheduling task processing, there can be one or more slave threads. Figure 6 A slave thread is used as an example to illustrate.
[0171] S607, read the associated receiving and sending queue information.
[0172] During this process, you need to read the corresponding lcore information to complete the configuration, and then read the associated receive and send queue information.
[0173] S608, enter loop processing.
[0174] The loop processing is mainly a while loop, which receives the scheduled tasks in batches from the specified queue, and then processes the scheduled tasks in batches. In the loop, the network device's receiving and sending packet identifiers and other hardware notification identifiers are queried. If a data packet is received or there are other custom processing task flags, the corresponding packet processing and custom task processing are performed. Since the entire process is performed in user mode and no interrupts are used, the operating system overhead can be greatly reduced.
[0175] S609, load calculation and physical layer working status maintenance.
[0176] In the physical layer software process of the network device, a status register may be added. The name of the status register is, for example, PhyWorkState. The status register PhyWorkState includes three states, namely, IDLE, NORMAL, and BUSY. The initial state of the status register PhyWorkState may be set to IDLE. Figure 5 The exemplary implementation method of determining the working state of the physical layer maintains a state register PhyWorkState and updates the state of the state register PhyWorkState.
[0177] S610, check whether a new scheduling task is received, if so, execute S611, if not, execute S612.
[0178] S611, batch processing of new scheduling tasks.
[0179] If there are new scheduling tasks in this cycle, the network device processes the new scheduling tasks in batches and executes S608.
[0180] S612, determine whether the working state of the physical layer is a normal state, if so, execute S613, if not, execute S614.
[0181] S613, execute the state preservation function, and execute S608.
[0182] The AVX instruction set execution unit is kept active through the state preservation function.
[0183] S614, execute the empty instruction, and then execute S608.
[0184] If there is no new scheduling task in this cycle, the network device executes a certain amount of NOP empty instructions.
[0185] Figure 7 The schematic diagram of the time consumption of scheduling task processing provided in the embodiment of the present application is as follows: Figure 7As shown, when the network device is under high load, for a certain scheduling task, the duration of physical layer processing is the duration from time t1 to time t2, and the duration of L2 layer processing is the duration from time t2 to time t3. When the network device is under low load, for the same scheduling task, when the AVX instruction set execution unit is kept in an active state through the state retention function, since there is no need to reopen the AVX instruction set execution unit, the duration of physical layer processing is also the duration from time t1 to time t2, and the duration of L2 layer processing is the duration from time t2 to time t3. Therefore, the processing time for the same scheduling task is basically the same when the network device is under high load and under low load.
[0186] In summary, the AVX instruction set execution unit control method provided in the embodiment of the present application first determines the working state of the physical layer of the network device according to whether there is a terminal connected to the network device, and the working state of the physical layer is a busy state, an idle state or a normal state, and then keeps the AVX instruction set execution unit of the physical layer in an active state or an inactive state according to the working state of the physical layer. The scheme of the embodiment of the present application can flexibly control the control of the AVX instruction set execution unit according to the working state of the physical layer of the network device, and keep the AVX instruction set execution unit in an active state when the working state of the physical layer is in a busy state and a normal state, so that when the scheduling task involving the processing of the AVX instruction set execution unit is involved, there is no need to reopen the AVX instruction set execution unit, further improving the flexibility of the AVX instruction set execution unit control, and effectively reducing the packet processing delay of the communication network system. The network device automatically identifies the working state of the physical layer, executes or does not execute the state maintenance function according to the situation, and does not increase the overall power consumption of the CPU in the network device. For the idle state, the CPU can still automatically adjust the main frequency normally, and the overall CPU processing capacity is not affected, and the peak performance remains unchanged.
[0187] Figure 8 A schematic diagram of the structure of a network device provided in an embodiment of the present application is shown in FIG. Figure 8 As shown, the network device includes a memory 820, a transceiver 800, and a processor 810, wherein:
[0188] The memory 820 is used to store computer programs; the transceiver 800 is used to send and receive data under the control of the processor 810; the processor 810 is used to read the computer program in the memory 820 and perform the following operations:
[0189] Determine the working state of the physical layer of the network device according to whether there is a terminal connected to the network device, the working state being a busy state, an idle state or a normal state;
[0190] According to the working state of the physical layer, the AVX instruction set execution unit of the physical layer is kept in an active state or an inactive state.
[0191] Specifically, the transceiver 800 is used to receive and send data under the control of the processor 810.
[0192] Among them, Figure 8 In the embodiment, the bus architecture may include any number of interconnected buses and bridges, specifically linking together various circuits of one or more processors represented by processor 810 and memory represented by memory 820. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface. The transceiver 800 may be a plurality of components, namely, a transmitter and a receiver, providing a unit for communicating with various other devices on a transmission medium, which may include transmission media such as wireless channels, wired channels, optical cables, etc. The processor 810 is responsible for managing the bus architecture and general processing, and the memory 820 may store data used by the processor 810 when performing operations.
[0193] Optionally, processor 810 may be a central processing unit (CPU), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or a complex programmable logic device (CPLD), and the processor may also adopt a multi-core architecture.
[0194] The processor calls the computer program stored in the memory to execute any of the methods provided in the embodiments of the present application according to the obtained executable instructions. The processor and the memory can also be arranged physically separately.
[0195] In a possible implementation manner, determining the working state of the physical layer of the network device according to whether there is a terminal connected to the network device includes:
[0196] In the presence of a terminal connected to the network device, determining a processing load of the network device, and determining a working state of the physical layer according to the processing load;
[0197] In the case that there is no terminal connected to the network device, it is determined whether there is a terminal to be connected, and the working state of the physical layer is determined according to the determination result.
[0198] In a possible implementation manner, determining the processing load of the network device includes:
[0199] Determine the duration of the scheduling cycle of the network device and the processing duration of the network device for processing the scheduling task within the scheduling cycle;
[0200] The processing load is determined according to the duration of the scheduling period and the processing duration.
[0201] In a possible implementation manner, determining the working state of the physical layer according to the processing load includes:
[0202] When the processing load is greater than a preset threshold, determining that the working state of the physical layer is a busy state;
[0203] When the processing load is less than or equal to a preset threshold, it is determined that the working state of the physical layer is a normal state.
[0204] In a possible implementation manner, the determining whether there is a terminal to be accessed includes:
[0205] Determining whether a random access message is received within a preset time period;
[0206] In case of receiving the random access message, determining that the terminal to be accessed exists;
[0207] In a case where the random access message is not received, it is determined that the terminal to be accessed does not exist.
[0208] In a possible implementation manner, determining the working state of the physical layer according to the judgment result includes:
[0209] In a case where the judgment result indicates that the terminal to be accessed exists, determining that the working state of the physical layer is a normal state;
[0210] When the judgment result indicates that the terminal to be accessed does not exist, it is determined that the working state of the physical layer is an idle state.
[0211] In a possible implementation, keeping the AVX instruction set execution unit of the physical layer in an active state or an inactive state according to the working state of the physical layer includes:
[0212] When the working state of the physical layer is a busy state, keeping the AVX instruction set execution unit in the active state;
[0213] When the working state of the physical layer is a normal state, keeping the AVX instruction set execution unit in the active state;
[0214] When the working state of the physical layer is an idle state, the AVX instruction set execution unit is kept in the inactive state.
[0215] In a possible implementation, keeping the AVX instruction set execution unit in the active state includes:
[0216] Determine a state holding function corresponding to the AVX instruction set execution unit, wherein the state holding function includes AVX instructions;
[0217] According to the state keeping function, the AVX instruction set execution unit is kept in the active state.
[0218] Fig. 9 A schematic diagram of the structure of the AVX instruction set execution unit control device provided in an embodiment of the present application, such as Fig. 9 As shown, the device comprises:
[0219] A determination module 91, configured to determine the working state of the physical layer of the network device according to whether there is a terminal connected to the network device, wherein the working state is a busy state, an idle state or a normal state;
[0220] The processing module 92 is used to keep the AVX instruction set execution unit of the physical layer in an active state or an inactive state according to the working state of the physical layer.
[0221] In a possible implementation manner, the determining module 91 is specifically configured to:
[0222] In the presence of a terminal connected to the network device, determining a processing load of the network device, and determining a working state of the physical layer according to the processing load;
[0223] In the case that there is no terminal connected to the network device, it is determined whether there is a terminal to be connected, and the working state of the physical layer is determined according to the determination result.
[0224] In a possible implementation manner, the determining module 91 is specifically configured to:
[0225] Determine the duration of the scheduling cycle of the network device and the processing duration of the network device for processing the scheduling task within the scheduling cycle;
[0226] The processing load is determined according to the duration of the scheduling period and the processing duration.
[0227] In a possible implementation manner, the determining module 91 is specifically configured to:
[0228] When the processing load is greater than a preset threshold, determining that the working state of the physical layer is a busy state;
[0229] When the processing load is less than or equal to a preset threshold, it is determined that the working state of the physical layer is a normal state.
[0230] In a possible implementation manner, the determining module 91 is specifically configured to:
[0231] Determining whether a random access message is received within a preset time period;
[0232] In case of receiving the random access message, determining that the terminal to be accessed exists;
[0233] In a case where the random access message is not received, it is determined that the terminal to be accessed does not exist.
[0234] In a possible implementation manner, the determining module 91 is specifically configured to:
[0235] In a case where the judgment result indicates that the terminal to be accessed exists, determining that the working state of the physical layer is a normal state;
[0236] When the judgment result indicates that the terminal to be accessed does not exist, it is determined that the working state of the physical layer is an idle state.
[0237] In a possible implementation manner, the processing module 92 is specifically configured to:
[0238] When the working state of the physical layer is a busy state, keeping the AVX instruction set execution unit in the active state;
[0239] When the working state of the physical layer is a normal state, keeping the AVX instruction set execution unit in the active state;
[0240] When the working state of the physical layer is an idle state, the AVX instruction set execution unit is kept in the inactive state.
[0241] In a possible implementation manner, the processing module 92 is specifically configured to:
[0242] Determine a state holding function corresponding to the AVX instruction set execution unit, wherein the state holding function includes AVX instructions;
[0243] According to the state keeping function, the AVX instruction set execution unit is kept in the active state.
[0244] Specifically, the above-mentioned AVX instruction set execution unit control device provided in the embodiment of the present application can implement all the method steps implemented by the method embodiment in which the above-mentioned execution subject is a network device, and can achieve the same technical effect. The parts and beneficial effects that are the same as the method embodiment in this embodiment will not be described in detail here.
[0245] It should be noted that the division of units / modules in the above embodiments of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, the functional units in the various embodiments of the present application may be integrated into a processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated units may be implemented in the form of hardware or in the form of software functional units.
[0246] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a processor-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program codes.
[0247] In some embodiments, a computer-readable storage medium is also provided, wherein the computer-readable storage medium stores a computer program, and the computer program is used to enable a computer to execute the AVX instruction set execution unit control method provided by the above-mentioned method embodiments.
[0248] Specifically, the above-mentioned computer-readable storage medium provided in the embodiment of the present application can implement all the method steps implemented by the above-mentioned method embodiments, and can achieve the same technical effect. The parts and beneficial effects of this embodiment that are the same as the method embodiment will not be described in detail here.
[0249] It should be noted that the computer-readable storage medium can be any available medium or data storage device that can be accessed by the processor, including but not limited to magnetic storage (such as floppy disks, hard disks, magnetic tapes, magneto-optical disks (MO), etc.), optical storage (such as CD, DVD, BD, HVD, etc.), and semiconductor storage (such as ROM, EPROM, EEPROM, non-volatile memory (NAND FLASH), solid-state drive (SSD)), etc.
[0250] It should also be noted that the terms "first", "second", etc. in the embodiments of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first" and "second" are generally of the same type, and the number of objects is not limited. For example, the first object can be one or more.
[0251] In the embodiments of the present application, the term "and / or" describes the association relationship of the associated objects, indicating that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.
[0252] In the embodiments of the present application, the term "plurality" refers to two or more than two, and other quantifiers are similar.
[0253] The technical solution provided in the embodiment of the present application can be applicable to a variety of systems, especially 5G systems. For example, the applicable system can be a global system of mobile communication (GSM) system, a code division multiple access (CDMA) system, a wideband code division multiple access (WCDMA) general packet radio service (GPRS) system, a long term evolution (LTE) system, a LTE frequency division duplex (FDD) system, a LTE time division duplex (TDD) system, an advanced long term evolution (LTE-A) system, a universal mobile telecommunication system (UMTS), a world-wide interoperability for microwave access (WiMAX) system, a 5G new air interface (NR) system, etc. These various systems include terminal equipment and network equipment. The system may also include a core network part, such as an evolved packet system (EPS), a 5G system (5GS), etc.
[0254] The terminal device involved in the embodiment of the present application may be a device that provides voice and / or data connectivity to a user, a handheld device with a wireless connection function, or other processing devices connected to a wireless modem. In different systems, the name of the terminal device may also be different. For example, in a 5G system, the terminal device may be called a user equipment (UE). A wireless terminal device can communicate with one or more core networks (CN) via a radio access network (RAN). The wireless terminal device may be a mobile terminal device, such as a mobile phone (or a "cellular" phone) and a computer with a mobile terminal device. For example, it may be a portable, pocket-sized, handheld, computer-built-in or vehicle-mounted mobile device that exchanges language and / or data with a wireless access network. For example, personal communication service (PCS) phones, cordless phones, session initiation protocol (SIP) phones, wireless local loop (WLL) stations, personal digital assistants (PDAs) and other devices. The wireless terminal device may also be referred to as a system, a subscriber unit, a subscriber station, a mobile station, a mobile station, a remote station, an access point, a remote terminal device, an access terminal device, a user terminal device, a user agent, and a user device, but is not limited in the embodiments of the present application.
[0255] The network device involved in the embodiment of the present application may be a base station, which may include multiple cells providing services for the terminal. Depending on the specific application scenario, the base station may also be called an access point, or may be a device in the access network that communicates with the wireless terminal device through one or more sectors on the air interface, or other names. The network device may be used to interchange received air frames with Internet Protocol (IP) packets, and serve as a router between the wireless terminal device and the rest of the access network, wherein the rest of the access network may include an Internet Protocol (IP) communication network. The network device may also coordinate the attribute management of the air interface. For example, the network device involved in the embodiments of the present application may be a network device (Base Transceiver Station, BTS) in the Global System for Mobile communications (Global System for Mobile communications, GSM) or Code Division Multiple Access (Code Division Multiple Access, CDMA), or a network device (NodeB) in Wide-band Code Division Multiple Access (WCDMA), or an evolutionary network device (evolutional Node B, eNB or e-NodeB) in the long term evolution (long term evolution, LTE) system, a 5G base station (gNB) in the 5G network architecture (next generation system), or a home evolved Node B (Home evolved Node B, HeNB), a relay node, a home base station (femto), a pico base station (pico), etc., which is not limited in the embodiments of the present application. In some network structures, the network device may include a centralized unit (CU) node and a distributed unit (DU) node, and the centralized unit and the distributed unit may also be arranged geographically separately.
[0256] Network devices and terminal devices can each use one or more antennas for multiple-input multiple-output (MIMO) transmission. MIMO transmission can be single-user MIMO (SU-MIMO) or multi-user MIMO (MU-MIMO). Depending on the form and number of antenna combinations, MIMO transmission can be 2D-MIMO, 3D-MIMO, FD-MIMO or massive-MIMO, or it can be diversity transmission, precoded transmission or beamforming transmission, etc.
[0257] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) that contain computer-usable program code.
[0258] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer executable instructions. These computer executable instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0259] These processor executable instructions may also be stored in a processor readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the processor readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0260] These processor-executable instructions may also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable device to implement the process. Figure 1A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0261] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A method for controlling an Advanced Vector Extension (AVX) instruction set execution unit, characterized in that: Applied to a network device, the method includes: Determining a working state of a physical layer of the network device according to whether there is a terminal connected to the network device, the working state being a busy state, an idle state, or a normal state; According to the working state of the physical layer, the AVX instruction set execution unit of the physical layer is kept in an active state or an inactive state.
2. The method according to claim 1, characterized in that The determining the working state of the physical layer of the network device according to whether there is a terminal connected to the network device includes: In the presence of a terminal connected to the network device, determining a processing load of the network device, and determining an operating state of the physical layer based on the processing load; In the case that there is no terminal connected to the network device, it is determined whether there is a terminal to be connected, and the working state of the physical layer is determined according to the determination result.
3. The method according to claim 2, characterized in that The determining the processing load of the network device includes: Determining a duration of a scheduling period of the network device and a processing duration of the network device for processing a scheduling task within the scheduling period; The processing load is determined according to the duration of the scheduling period and the processing duration.
4. The method according to claim 2, characterized in that The determining the working state of the physical layer according to the processing load includes: When the processing load is greater than a preset threshold, determining that the working state of the physical layer is a busy state; When the processing load is less than or equal to a preset threshold, it is determined that the working state of the physical layer is a normal state.
5. The method according to claim 2, characterized in that The determining whether there is a terminal to be accessed includes: Determining whether a random access message is received within a preset time period; When the random access message is received, determining that the terminal to be accessed exists; In a case where the random access message is not received, it is determined that the terminal to be accessed does not exist.
6. The method according to claim 2, characterized in that The determining the working state of the physical layer according to the judgment result includes: If the judgment result indicates that the terminal to be accessed exists, determining that the working state of the physical layer is a normal state; When the judgment result indicates that the terminal to be accessed does not exist, it is determined that the working state of the physical layer is an idle state.
7. The method according to any one of claims 1 to 6, characterized in that The maintaining the AVX instruction set execution unit of the physical layer in an active state or an inactive state according to the working state of the physical layer includes: When the working state of the physical layer is a busy state, keeping the AVX instruction set execution unit in the active state; When the working state of the physical layer is a normal state, keeping the AVX instruction set execution unit in the active state; When the working state of the physical layer is an idle state, the AVX instruction set execution unit is kept in the inactive state.
8. The method according to claim 7, characterized in that The maintaining the AVX instruction set execution unit in the active state includes: Determine a state holding function corresponding to the AVX instruction set execution unit, wherein the state holding function includes AVX instructions; According to the state maintaining function, the AVX instruction set execution unit is maintained in the active state.
9. A network device, characterized in that: Including memory, transceiver, processor; A memory for storing a computer program; a transceiver for transmitting and receiving data under the control of the processor; and a processor for reading the computer program in the memory and performing the following operations: Determining a working state of a physical layer of the network device according to whether there is a terminal connected to the network device, the working state being a busy state, an idle state, or a normal state; According to the working state of the physical layer, the AVX instruction set execution unit of the physical layer is kept in an active state or an inactive state.
10. The network device according to claim 9, characterized in that The determining the working state of the physical layer of the network device according to whether there is a terminal connected to the network device includes: In the presence of a terminal connected to the network device, determining a processing load of the network device, and determining an operating state of the physical layer based on the processing load; In the case that there is no terminal connected to the network device, it is determined whether there is a terminal to be connected, and the working state of the physical layer is determined according to the determination result.
11. The network device according to claim 10, wherein: The determining the processing load of the network device includes: Determining a duration of a scheduling period of the network device and a processing duration of the network device for processing a scheduling task within the scheduling period; The processing load is determined according to the duration of the scheduling period and the processing duration.
12. The network device according to claim 10, wherein: The determining the working state of the physical layer according to the processing load includes: When the processing load is greater than a preset threshold, determining that the working state of the physical layer is a busy state; When the processing load is less than or equal to a preset threshold, it is determined that the working state of the physical layer is a normal state.
13. The network device according to claim 10, wherein: The determining whether there is a terminal to be accessed includes: Determining whether a random access message is received within a preset time period; When the random access message is received, determining that the terminal to be accessed exists; In a case where the random access message is not received, it is determined that the terminal to be accessed does not exist.
14. The network device according to claim 10, wherein: The determining the working state of the physical layer according to the judgment result includes: If the judgment result indicates that the terminal to be accessed exists, determining that the working state of the physical layer is a normal state; When the judgment result indicates that the terminal to be accessed does not exist, it is determined that the working state of the physical layer is an idle state.
15. The network device according to any one of claims 9 to 14, characterized in that: The maintaining the AVX instruction set execution unit of the physical layer in an active state or an inactive state according to the working state of the physical layer includes: When the working state of the physical layer is a busy state, keeping the AVX instruction set execution unit in the active state; When the working state of the physical layer is a normal state, keeping the AVX instruction set execution unit in the active state; When the working state of the physical layer is an idle state, the AVX instruction set execution unit is kept in the inactive state.
16. The network device according to claim 15, characterized in that The maintaining the AVX instruction set execution unit in the active state includes: Determine a state holding function corresponding to the AVX instruction set execution unit, wherein the state holding function includes AVX instructions; According to the state maintaining function, the AVX instruction set execution unit is maintained in the active state.
17. An AVX instruction set execution unit control device, characterized in that: The device comprises: a determination module, configured to determine a working state of a physical layer of the network device according to whether there is a terminal connected to the network device, the working state being a busy state, an idle state, or a normal state; A processing module is used to keep the AVX instruction set execution unit of the physical layer in an active state or an inactive state according to the working state of the physical layer.
18. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and the computer program is used to enable a computer to execute the AVX instruction set execution unit control method according to any one of claims 1 to 8.
