A method and device for equalizing voice processing in multiple business modes and multiple boards of equipment
By designing multi-board devices, including business boards, simulation boards, IP voice boards and E1 voice boards, the processing and balanced allocation of multiple voice services is achieved, and the problem that existing equipment is difficult to deal with voice services in multiple services forms is solved, and the diversity of the system and resource utilization rate are improved.
Patent Information
- Application Number
- CN202411784755.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-06
- Publication Date
- 2025-03-14
- Estimated Expiration
- 2044-12-06
AI Technical Summary
Existing equipment is difficult to handle voice services in multiple business forms, resulting in insufficient utilization of system resources and imbalanced voice services, increasing product costs and difficulty in maintaining.
A multi-board device is designed, including a business board, an analog board, an IP voice board and an E1 voice board. Through the system resource management module and a traffic management module, the processing and balanced allocation of multiple voice services is realized.
Multi-service voice service processing has been realized, the diversity of the system and resource utilization rate have been improved, product costs and subsequent iteration costs have been reduced, and the stable and efficient operation of the equipment has been ensured.
Smart Images

Figure CN119254891B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of voice processing, and in particular to a method and device for equalizing voice processing applicable to equipment with multiple business forms and multiple boards. Background Art
[0002] Voice services are mainly divided into IP-based voice, E1-based voice and analog voice based on the carrier, and the corresponding protocols are SIP signaling, No. 7 signaling and analog signaling. SIP (Session Initiation Protocol) is a text-based application layer control protocol used to create, modify and release sessions of one or more participants. These sessions can be IP phones, multimedia conferences or multimedia distribution. SIP is flexible, easy to implement and easy to expand. my country uses 30-channel pulse code modulation PCM1, with a standard E1 rate of 2.048Mbit / s. A time division multiplexing frame of E1 (its length T=125us, i.e., a sampling period of 125 microseconds) is divided into 32 equal time slots, and the time slots are numbered CH0~CH31. Among them, time slot CH0 is used for frame synchronization, time slot CH16 is used to transmit signaling, and the remaining 30 time slots CH1~CH15 and CH17~CH31 are used as 30 voice channels. Each time slot transmits 8 bits, so a total of 256 bits are shared. 8000 frames are transmitted per second, so the data rate of PCM primary group E1 is 2.048Mbit / s. The current signal of analog voice is an analog signal. Voice information can be represented by the magnitude of voltage, current and frequency. Analog trunk line can be understood as a group of labeled wires connecting switches. Its function is to transmit each voice information to the other end without affecting each other. Analog trunk line can still use one telephone line to transmit one trunk, and use FXS and FXO ports to establish a connection.
[0003] Currently, most devices can only handle a single form of voice service (SIP voice, E1 voice or analog voice). To handle multiple voice service forms, devices need to be stacked, which increases product costs and makes maintenance difficult. In addition, multi-service devices have problems such as insufficient utilization of system resources and unbalanced voice services, which not only fails to fully utilize system resources but also causes inefficient business processing. Summary of the invention
[0004] Purpose of the invention: The purpose of the present invention is to provide a method and device for equalizing voice processing applicable to multiple business forms and multiple boards of a device, so as to solve the problem that a set of equipment can handle voice services of multiple business forms.
[0005] Technical solution: The present invention is a multi-service multi-board voice device applicable to equipment, comprising: a business board 1, a business board 2, an analog board 1, an analog board 2, an IP voice board 1, an IP voice board 2, an E1 voice board 1 and an E1 voice board 2; the business board 1 and the business board 2 are used to process system configuration management, business statistics and business processing; the analog board 1 and the analog board 2 are used to process analog voice; the IP voice board 1 and the IP voice board 2 are used to process SIP voice; the E1 voice board 1 and the E1 voice board 2 are used to process E1 voice; the business board 1 and the business board 2 are used to process system configuration management, business statistics and business processing; the analog board 1 and the analog board 2 are used to process analog voice; the IP voice board 1 and the IP voice board 2 are used to process SIP voice; the E1 voice board 1 and the E1 voice board 2 are used to process E1 voice; Service board_1 and service board_2 include: network system, network number management module, system resource management module, traffic management module, service processing module, and inter-board communication module; among which, the system resource management module includes CPU utilization and memory utilization; among which, service board_1 stores the data and configuration of service board_1 and service board_2; service board_1 and service board_2 transmit through inter-board communication; analog board_1, E1 voice board_1 and IP voice board_1 are mounted on service board_1, and analog board_2, E1 voice board_2 and IP voice board_2 are mounted on service board_2.
[0006] Furthermore, the network system and network number are a two-tuple structure; the network system and network number are configured through the local web page, CLI program and network management. The network system and network number in the two-tuple are both positive integers; among them, business board_1 stores the configuration of the network system and network number of business board_1 and business board_2; if business board_2 is configured, business board_1 sends the configuration to business board_2 through the inter-board communication program; if the corresponding configuration of the network system and network number of business board_2 changes, it is uploaded to business board_1.
[0007] Furthermore, in the system resource management module, business board_1 and business board_2 configure the CPU utilization threshold and memory utilization threshold through CLI or local web page; wherein, business board_1 stores the CPU utilization threshold and memory utilization threshold of business board_1 and business board_2; if the CPU utilization threshold or memory utilization threshold of business board_2 is configured, business board_1 sends it to business board_2 through the inter-board communication process; business board_2 regularly reports CPU utilization, memory utilization, CPU utilization threshold and memory utilization threshold to business board_1.
[0008] Furthermore, the traffic management module includes: a configuration module, a service processing module and a shared memory.
[0009] The present invention discloses a method for equalizing voice processing for multiple boards of a device with multiple business forms. The method is based on a multi-board voice device for multiple business forms of the device and can process SIP voice, E1 voice and analog voice. The method comprises the following steps: judging whether the voice service is processed by the business board 1 or the business board 2 according to the CPU utilization of the business board 1 and the business board 2 and the CPU utilization threshold comparison algorithm; if the CPU utilization of the business board 1 and the business board 2 are both less than the CPU utilization threshold, it cannot be judged whether the service is processed by the business board 1 or the business board 2; judging whether the voice service is processed by the business board 1 or the business board 2 again according to the memory utilization of the business board 1 and the business board 2 and the memory utilization threshold comparison algorithm; if the memory utilization of the business board 1 and the business board 2 are both less than the memory utilization threshold, it cannot be judged whether the service is processed by the business board 1 or the business board 2; finally judging whether the voice service is processed by the business board 1 or the business board 2 according to the comprehensive performance;
[0010] The voice service is processed by business board 1 or business board 2. First, the service type is determined to be SIP voice, E1 voice or analog voice according to the network system and network number management, and then the voice service is diverted to the IP voice board, E1 board or analog board corresponding to the business board for processing.
[0011] Furthermore, the CPU utilization and CPU utilization threshold comparison algorithm is as follows: Determine the CPU utilization and CPU utilization threshold of service board 1 and service board 2:
[0012] (a) U cpu_1 >=TH cpu_1 &&U cpu_2 >=TH cpu_2 : The CPU utilization of service board_1 is greater than or equal to the CPU utilization threshold of service board_1 and the CPU utilization of service board_2 is greater than or equal to the CPU utilization threshold of service board_2, then:
[0013] If the CPU utilization of service board 1 is less than or equal to the CPU utilization of service board 2, the call service is processed by service board 1.
[0014] If the CPU utilization of service board 1 is greater than that of service board 2, the call service is processed by service board 2.
[0015] Among them, TH cpu_1 The CPU utilization threshold configured for service board 1; TH cpu_2 The CPU utilization threshold configured for service board 2; U cpu_1 is the actual CPU usage of service board 1; U cpu_2 is the actual CPU usage of service board_2;
[0016] (b) U cpu_1 >=TH cpu_1 &&U cpu_2 <TH cpu_2 : If the CPU utilization of service board_1 is greater than or equal to the CPU utilization threshold of service board_1 and the CPU utilization of service board_2 is less than the CPU utilization threshold of service board_CPU, the call service is processed by service board_2;
[0017] (c) U cpu_1 <TH cpu_1 &&U cpu_2 >=TH cpu_2 : If the CPU utilization of service board_1 is less than the CPU utilization threshold of service board_1 and the CPU utilization of service board_2 is greater than or equal to the CPU utilization threshold of service board_2, the call service is processed by service board_1;
[0018] (d) U cpu_1 <TH cpu_1 &&U cpu_2 <TH cpu_2 : If the CPU utilization of business board_1 is less than the threshold of the CPU utilization of business board_1 and the CPU utilization of business board_2 is less than the threshold of the CPU utilization of business board_2, the memory utilization and the memory utilization threshold of business board_1 and business board_2 are obtained.
[0019] Furthermore, the memory utilization and memory utilization threshold comparison algorithm is as follows: Determine the size of the memory utilization and memory utilization threshold of the service board_1 and the service board_2:
[0020] (e) U mem_1 >=TH mem_1 &&U mem_2 >=TH mem_2 : The memory utilization of business board_1 is greater than or equal to the threshold of the memory utilization of business board_1 and the memory utilization of business board_2 is greater than or equal to the threshold of the memory utilization of business board_2, then: if the memory utilization of business board_1 is less than or equal to the memory utilization of business board_2, the call service is processed by business board_1; if the memory utilization of business board_1 is greater than the memory utilization of business board_2, the call service is processed by business board_2;
[0021] Among them, TH mem_1 Memory utilization threshold configured for service board_1; TH mem_2 Memory utilization threshold configured for service board 2; U mem_1 is the actual memory usage of business board_1; U mem_2is the actual memory usage of business board_2;
[0022] (f) U mem_1 >=TH mem_1 &&U mem_2 <TH mem_2 : If the memory utilization of service board_1 is greater than or equal to the threshold of the memory utilization of service board_1 and the memory utilization of service board_2 is less than the threshold of the memory utilization of service board_2, the call service is processed by service board_2;
[0023] (g) U mem_1 <TH mem_1 &&U mem_2 >=TH mem_2 : If the memory utilization of service board_1 is less than the threshold of the memory utilization of service board_1 and the memory utilization of service board_2 is greater than or equal to the threshold of the memory utilization of service board_2, the call service is processed by service board_1;
[0024] (h)U mem_1 <TH mem_1 &&U mem_2 <TH mem_2 : If the memory utilization of business board_1 is less than the threshold of the memory utilization of business board_1 and the memory utilization of business board_2 is less than the threshold of the memory utilization of business board_2, comprehensive business performance judgment business processing is performed.
[0025] Furthermore, the comprehensive business performance judgment business processing is as follows:
[0026] (S1) Get the U of business board 1 cpu_1 and U mem_1 ;
[0027] (S2) Get the U of business board 2 cpu_2 and U mem_2 ;
[0028] (S3) Calculate the network system and network number WH based on the called number n The value of n;
[0029] (S4) Obtain the network WH to which the called party belongs of business board_1 n Total traffic volume WH n total_1 and traffic usage WH n use_1 ;
[0030] (S5) Obtain the network WH to which the called party belongs of business board 2 n Total traffic volume WH n total_2 and traffic usage WHn use_2 ;
[0031] (S6) Calculate the overall performance of the business:
[0032] Comprehensive performance of service board_1 utilization: U cpu_1 +U mem_1 +(WH n use_1 ÷WH n total_1 ×100)
[0033] Comprehensive performance of service board_2 utilization: U cpu_2 +U mem_2 +(WH n use_2 ÷WH n total_2 ×100)
[0034] (S7) If the comprehensive performance of the utilization rate of the service board_1 is less than the comprehensive performance of the utilization rate of the service board_2:
[0035] U cpu_1 +U mem_1 +(WH n use_1 ÷WH n total_1 ×100) cpu_2 +U mem_2 +(WH n use_2 ÷WH n total_2 ×100)
[0036] Then business board_1 handles the business, that is, business board_1 handles the call flow;
[0037] If the overall performance of the utilization rate of business board_1 is greater than or equal to the overall performance of the utilization rate of business board_2:
[0038] U cpu_1 +U mem_1 +(WH n use_1 ÷WH n total_1 ×100)>=U cpu_2 +U mem_2 +(WH n use_2 ÷WH n total_2 ×100)
[0039] Business board_2 handles the business and the call flow.
[0040] Among them, WH n total_1 is the total amount of traffic allocated to the network system and network number n on service board 1; WH n total_2 The total amount of allocated traffic for the network system and network number n on service board_2; n use_1 is the used traffic volume of the network system and network number n on service board 1; WH n use_2 The used traffic volume of the network system and network number n on service board_2.
[0041] An electronic device described in the present invention includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is loaded into the processor, any one of the methods for voice processing and equalization applicable to multi-service forms and multi-boards of a device is implemented.
[0042] The present invention discloses a storage medium storing a computer program, wherein when the computer program is executed by a processor, any one of the above-mentioned voice processing equalization methods applicable to multi-service forms and multi-boards of a device is implemented.
[0043] Beneficial effects: Compared with the prior art, the present invention has the following significant advantages: multi-board multi-service form design, which can handle business call services of various network systems, improve the diversity of the system, reduce the number of equipment, reduce product costs and subsequent iteration costs, and improve product adaptability; the network system and network number allocation strategy and business balancing algorithm adopted can make full use of system resources, ensure the stability and fault tolerance of the system, can efficiently handle various services, reduce system congestion, make the equipment run stably and efficiently, and ensure smooth business. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 It is an overall schematic diagram of the device of the present invention;
[0045] Figure 2 It is a traffic volume management relationship diagram of the present invention;
[0046] Figure 3 It is the overall flow chart of voice service processing of the present invention;
[0047] Figure 4 It is a schematic diagram of business diversion based on network system and network number of the present invention. DETAILED DESCRIPTION
[0048] The technical solution of the present invention is further described below in conjunction with the accompanying drawings.
[0049] like Figure 1As shown, the embodiment of the present invention provides a multi-service multi-board voice device applicable to equipment, including: a service board_1, a service board_2, an analog board_1, an analog board_2, an IP voice board_1, an IP voice board_2, an E1 voice board_1 and an E1 voice board_2; the service board_1 and the service board_2 are used to process system configuration management, service statistics and service processing; the analog board_1 and the analog board_2 are used to process analog voice; the IP voice board_1 and the IP voice board_2 are used to process SIP voice; the E1 voice board_1 and the E1 voice board_2 are used to process E1 voice; the service board_1 and the service board_2 are used to process system configuration management, service statistics and service processing; the analog board_1 and the analog board_2 are used to process analog voice; the IP voice board_1 and the IP voice board_2 are used to process SIP voice; the E1 voice board_1 and the E1 voice board_2 are used to process E1 voice; Service board_1 and service board_2 include: network system, network number management module, system resource management module, traffic management module, service processing module, and inter-board communication module; among which, the system resource management module includes CPU utilization and memory utilization; among which, service board_1 stores the data and configuration of service board_1 and service board_2; service board_1 and service board_2 transmit through inter-board communication; analog board_1, E1 voice board_1 and IP voice board_1 are mounted on service board_1, and analog board_2, E1 voice board_2 and IP voice board_2 are mounted on service board_2.
[0050] Among them, the network system and network number are two-tuple structures; the network system and network number are configured through the local web page, CLI program and network management. The network system and network number in the two-tuple are positive integers; among them, business board_1 stores the configuration of the network system and network number of business board_1 and business board_2; if business board_2 is configured, business board_1 will send the configuration to business board_2 through the inter-board communication program; if the corresponding configuration of the network system and network number of business board_2 changes, it will be uploaded to business board_1.
[0051] Among them, in the system resource management module, business board_1 and business board_2 configure the CPU utilization threshold and memory utilization threshold through CLI or local web page; among them, business board_1 stores the CPU utilization threshold and memory utilization threshold of business board_1 and business board_2; if the CPU utilization threshold or memory utilization threshold of business board_2 is configured, business board_1 sends it to business board_2 through the inter-board communication process; business board_2 regularly reports CPU utilization, memory utilization, CPU utilization threshold and memory utilization threshold to business board_1.
[0052] The traffic management module includes: configuration module, service processing module and shared memory. Figure 2 As shown, the specific process is as follows:
[0053] The configuration module of business board_1 reads the configuration file to initialize the configuration, configures the total traffic volume of business board_1 and business board_2, and initializes the shared memory related to the traffic volume of business board_1. The shared memory of business board_1 stores all the total traffic volume, traffic usage and traffic idle volume of business board_1 and all the total traffic volume, traffic usage and traffic idle volume of business board_2. Business board_1 also sends the total traffic volume of business board_2 to business board_2 through the inter-board communication process. After receiving the configuration, business board_2 initializes the shared memory related to the traffic volume of business board_2. The shared memory of business board_2 only stores the total traffic volume, traffic usage and traffic idle volume corresponding to the network system and network number of business board_2.
[0054] During system operation, you can modify the total traffic volume corresponding to the network system and network number through the network management, CLI or local web page, update the shared memory of business board 1 and business board 2, and dynamically send the configuration to business board 2.
[0055] Business board_1 processes one service, updates the traffic usage of the network system and network number corresponding to the call in the shared memory of business board_1 by adding 1 and the idle volume of the voice channel by subtracting 1; when the call ends (normal hang-up, rejection, active hang-up, etc.), updates the traffic usage of the network system and network number corresponding to the call in the shared memory of business board_1 by subtracting 1 and the idle volume of the voice channel by 1.
[0056] Business board_2 processes one service, updates the traffic usage of the network system and network number corresponding to the call in the shared memory of business board_2 by adding 1 and the idle volume of the voice channel by subtracting 1; when the call ends (normal hang-up, rejection, active hang-up, etc.), updates the traffic usage of the network system and network number corresponding to the call in the shared memory of business board_2 by subtracting 1 and the idle volume of the voice channel by 1.
[0057] When business board_2 processes a call service or ends a call service, the traffic usage, traffic idleness and total traffic of the corresponding network system and network number of business board_2 are sent to business board_1 through the inter-board communication process. After business board_1 receives the update information, it updates the shared memory of business board_1.
[0058] When the idle traffic volume corresponding to a certain network system and network number of business board_1 and business board_2 is 0, the system will detect that the corresponding traffic usage of other network systems and network numbers is less than 50%, and will dynamically apply for a traffic resource. When the service ends, it will dynamically release it and update the corresponding configuration and shared memory at the same time.
[0059] like Figure 3As shown, the embodiment of the present invention provides a method for equalizing voice processing for multiple business forms and multiple boards of a device, based on a multi-business form and multiple board voice device for a device, capable of processing SIP voice, E1 voice and analog voice, including the following steps:
[0060] (1) The terminal initiates a call, and the call signaling enters the service board 1 (service board 1 is the board that receives and initially processes the signaling);
[0061] (2) Obtain the CPU utilization and CPU utilization threshold of business board 1 and business board 2;
[0062] (3) Determine the CPU utilization and CPU utilization threshold of business board 1 and business board 2:
[0063] (a) U cpu_1 >=TH cpu_1 &&U cpu_2 >=TH cpu_2 : The CPU utilization of service board_1 is greater than or equal to the CPU utilization threshold of service board_1 and the CPU utilization of service board_2 is greater than or equal to the CPU utilization threshold of service board_2, then:
[0064] If the CPU utilization of service board 1 is less than or equal to the CPU utilization of service board 2, the call service is processed by service board 1.
[0065] If the CPU utilization of service board 1 is greater than that of service board 2, the call service is processed by service board 2.
[0066] (b) U cpu_1 >=TH cpu_1 &&U cpu_2 <TH cpu_2 : If the CPU utilization of service board_1 is greater than or equal to the CPU utilization threshold of service board_1 and the CPU utilization of service board_2 is less than the CPU utilization threshold of service board_2, the call service is processed by service board_2;
[0067] (c) U cpu_1 <TH cpu_1 &&U cpu_2 >=TH cpu_2 : If the CPU utilization of service board_1 is less than the CPU utilization threshold of service board_1 and the CPU utilization of service board_2 is greater than or equal to the CPU utilization threshold of service board_2, the call service is processed by service board_1;
[0068] (d) U cpu_1 <TH cpu_1 &&U cpu_2<TH cpu_2 : If the CPU utilization of service board_1 is less than the threshold of the CPU utilization of service board_1 and the CPU utilization of service board_2 is less than the threshold of the CPU utilization of service board_2, proceed to step (4);
[0069] (4) Obtain the memory utilization and memory utilization threshold of business board 1 and business board 2;
[0070] (5) Determine the memory utilization and memory utilization threshold of business board 1 and business board 2:
[0071] (e) U mem_1 >=TH mem_1 &&U mem_2 >=TH mem_2 : The memory utilization of business board_1 is greater than or equal to the threshold of the memory utilization of business board_1 and the memory utilization of business board_2 is greater than or equal to the threshold of the memory utilization of business board_2, then:
[0072] If the memory utilization of service board_1 is less than or equal to the memory utilization of service board_2, the call service is processed by service board_1;
[0073] If the memory utilization of business board_1 is greater than that of business board_2, the call service is processed by business board_2;
[0074] (f) U mem_1 >=TH mem_1 &&U mem_2 <TH mem_2 : If the memory utilization of service board_1 is greater than or equal to the threshold of the memory utilization of service board_1 and the memory utilization of service board_2 is less than the threshold of the memory utilization of service board_2, the call service is processed by service board_2;
[0075] (g) U mem_1 <TH mem_1 &&U mem_2 >=TH mem_2 : If the memory utilization of service board_1 is less than the threshold of the memory utilization of service board_1 and the memory utilization of service board_2 is greater than or equal to the threshold of the memory utilization of service board_2, the call service is processed by service board_1;
[0076] (h)U mem_1 <TH mem_1 &&U mem_2 <TH mem_2 : If the memory utilization of the service board_1 is less than the threshold value of the memory utilization of the service board_1 and the memory utilization of the service board_2 is less than the threshold value of the memory utilization of the service board_2, then proceed to step (6);
[0077] (6) Determine business processing based on comprehensive business performance. Details are as follows:
[0078] (S1) Get the U of business board 1 cpu_1 and U mem_1 ;
[0079] (S2) Get the U of business board 2 cpu_2 and U mem_2 ;
[0080] (S3) Calculate the network system and network number WH based on the called number n The value of n;
[0081] (S4) Obtain the network WH to which the called party belongs of business board_1 n Total traffic volume WH n total_1 and traffic usage WH n use_1 ;
[0082] (S5) Obtain the network WH to which the called party belongs of business board 2 n Total traffic volume WH n total_2 and traffic usage WH n use_2 ;
[0083] (S6) Calculate the overall performance of the business:
[0084] Comprehensive performance of service board_1 utilization: U cpu_1 +U mem_1 +(WH n use_1 ÷WH n total_1 ×100)
[0085] Comprehensive performance of service board_2 utilization: U cpu_2 +U mem_2 +(WH n use_2 ÷WH n total_2 ×100)
[0086] (S7) If the comprehensive performance of the utilization rate of the service board_1 is less than the comprehensive performance of the utilization rate of the service board_2:
[0087] U cpu_1 +U mem_1 +(WH n use_1 ÷WH n total_1 ×100) cpu_2 +U mem_2 +(WH n use_2 ÷WH n total_2 ×100)
[0088] Then the service board_1 will handle the service, that is, the process of "service board_1 handles the call" will be entered;
[0089] If the overall performance of the utilization rate of business board_1 is greater than or equal to the overall performance of the utilization rate of business board_2:
[0090] U cpu_1 +U mem_1 +(WH n use_1 ÷WH n total_1 ×100)>=U cpu_2 +U mem_2 +(WH n use_2 ÷WH n total_2 ×100)
[0091] The business is then handled by business board_2, that is, entering the "business board_2 processes calls" processing flow.
[0092] Among them, Figure 4 As shown in the figure, the process of "Business board_1 processing call" is as follows:
[0093] (M1) Calculate the network system and network number of the called number according to the called number;
[0094] (M2) Determine the type of call based on the calculated network system and network number:
[0095] (Ma) If it is a SIP type call: Business Board_1 will hand over the call to IP Voice Board_1 for processing;
[0096] (Mb) If it is an E1 type call: Business Board_1 will hand over the call to E1 Voice Board_1 for processing;
[0097] (Mc) If it is an analog call: Business board_1 will hand over the call to analog board_1 for processing;
[0098] (Md) If the call type is other than (Ma) (Mb) (Mc): Service board 1 discards the message and records the log;
[0099] (M3) Business processing is completed.
[0100] The processing flow of "Business board_2 processing call" is as follows:
[0101] (Z1) Calculate the network system and network number of the called number according to the called number;
[0102] (Z2) Determine the type of call based on the calculated network system and network number:
[0103] (Za) If it is a SIP type call: Business Board_2 will hand over the call to IP Voice Board_2 for processing;
[0104] (Zb) If it is an E1 type call: Business Board_2 will hand over the call to E1 Voice Board_2 for processing;
[0105] (Zc) If it is an analog type call: Business Board_2 will hand over the call to Analog Board_2 for processing;
[0106] (Zd) If the call type is other than (Za), (Zb), (Zc): Service Board 2 discards the message and records the log;
[0107] (Z3) Business processing is completed.
[0108] An embodiment of the present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is loaded into the processor, it implements any one of the methods for voice processing and equalization applicable to multi-service-mode and multi-board devices.
[0109] An embodiment of the present invention further provides a storage medium storing a computer program. When the computer program is executed by a processor, any one of the above-mentioned voice processing equalization methods applicable to multiple service forms and multiple boards of a device is implemented.
Claims
1. A multi-service multi-card voice device suitable for equipment, characterized in that: include: Business board_1, business board_2, analog board_1, analog board_2, IP voice board_1, IP voice board_2, E1 voice board_1 and E1 voice board_2; business board_1 and business board_2 are used to process system configuration management, business statistics and business processing; analog board_1 and analog board_2 are used to process analog voice; IP voice board_1 and IP voice board_2 are used to process SIP voice; E1 voice board_1 and E1 voice board_2 are used to process E1 voice; Business board 1 and business board 2 include: network system, network number management module, system resource management module, traffic management module, business processing module, and inter-board communication module; among them, business board 1 stores the data and configuration of business board 1 and business board 2; business board 1 and business board 2 transmit through inter-board communication; analog board 1, E1 voice board 1 and IP voice board 1 are mounted on business board 1, and analog board 2, E1 voice board 2 and IP voice board 2 are mounted on business board 2; among them, system resource management module In the module, business board_1 and business board_2 configure the CPU utilization threshold and memory utilization threshold through CLI or local webpage; among them, business board_1 stores the CPU utilization threshold and memory utilization threshold of business board_1 and business board_2; if the CPU utilization threshold or memory utilization threshold of business board_2 is configured, business board_1 sends it to business board_2 through the inter-board communication process; business board_2 regularly reports CPU utilization, memory utilization, CPU utilization threshold and memory utilization threshold to business board_1.
2. A multi-service multi-card voice device applicable to equipment according to claim 1, characterized in that: The network system and network number are a two-tuple structure; the network system and network number are configured through the local web page, CLI program and network management; the network system and network number in the two-tuple are positive integers; among them, business board_1 stores the configuration of the network system and network number of business board_1 and business board_2; if business board_2 is configured, business board_1 will send the configuration to business board_2 through the inter-board communication program; if the corresponding configuration of the network system and network number of business board_2 changes, it will be uploaded to business board_1.
3. A multi-service multi-card voice device applicable to equipment according to claim 1, characterized in that: The traffic management module includes: a configuration module, a business processing module and a shared memory.
4. A method for equalizing voice processing applicable to multi-service and multi-board devices, characterized in that: The multi-service multi-board voice device applicable to equipment according to any one of claims 1 to 3 is capable of processing SIP voice, E1 voice and analog voice, and comprises the following steps: judging whether the voice service is processed by the service board 1 or the service board 2 according to the CPU utilization of the service board 1 and the service board 2 and the CPU utilization threshold comparison algorithm; if the CPU utilization of the service board 1 and the service board 2 are both less than the CPU utilization threshold, it cannot be judged whether the service is processed by the service board 1 or the service board 2, then judging whether the voice service is processed by the service board 1 or the service board 2 again according to the memory utilization of the service board 1 and the service board 2 and the memory utilization threshold comparison algorithm; if the memory utilization of the service board 1 and the service board 2 are both less than the memory utilization threshold, it cannot be judged whether the service is processed by the service board 1 or the service board 2, then finally judging whether the voice service is processed by the service board 1 or the service board 2 according to the comprehensive performance; The voice service is processed by business board 1 or business board 2. First, the service type is determined to be SIP voice, E1 voice or analog voice according to the network system and network number management, and then the voice service is diverted to the IP voice board, E1 voice board or analog board corresponding to the business board for processing.
5. According to the method for balancing voice processing in multiple service modes and multiple boards of a device as described in claim 4, the CPU utilization and CPU utilization threshold comparison algorithm are specifically as follows: Determine the CPU utilization and CPU utilization threshold of service board 1 and service board 2: (a) U cpu_1 >=TH cpu_1 &&U cpu_2 >=TH cpu_2 : The CPU utilization of service board_1 is greater than or equal to the CPU utilization threshold of service board_1 and the CPU utilization of service board_2 is greater than or equal to the CPU utilization threshold of service board_2, then: If the CPU utilization of service board 1 is less than or equal to the CPU utilization of service board 2, the call service is processed by service board 1. If the CPU utilization of service board 1 is greater than that of service board 2, the call service is processed by service board 2. in, TH cpu_1 The CPU utilization threshold configured for service board 1; TH cpu_2 The CPU utilization threshold configured for service board 2; U cpu_1 is the actual CPU usage of service board 1; U cpu_2 is the actual CPU usage of service board 2; (b) U cpu_1 >=TH cpu_1 &&U cpu_2 <TH cpu_2 : If the CPU utilization of service board_1 is greater than or equal to the CPU utilization threshold of service board_1 and the CPU utilization of service board_2 is less than the CPU utilization threshold of service board_CPU, the call service is processed by service board_2; (c) U cpu_1 <TH cpu_1 &&U cpu_2 >=TH cpu_2 : If the CPU utilization of service board_1 is less than the CPU utilization threshold of service board_1 and the CPU utilization of service board_2 is greater than or equal to the CPU utilization threshold of service board_2, the call service is processed by service board_1; (d) U cpu_1 <TH cpu_1 &&U cpu_2 <TH cpu_2 : If the CPU utilization of business board_1 is less than the threshold of the CPU utilization of business board_1 and the CPU utilization of business board_2 is less than the threshold of the CPU utilization of business board_2, the memory utilization and the memory utilization threshold of business board_1 and business board_2 are obtained.
6. According to the method for equalizing voice processing in multiple business modes and multiple boards of a device as described in claim 4, the memory utilization rate and the memory utilization rate threshold comparison algorithm are specifically as follows: Determine the size of the memory utilization rate and the memory utilization rate threshold of the business board_1 and the business board_2: (e) U mem_1 >=TH mem_1 &&U mem_2 >=TH mem_2 : The memory utilization of business board_1 is greater than or equal to the threshold of the memory utilization of business board_1 and the memory utilization of business board_2 is greater than or equal to the threshold of the memory utilization of business board_2, then: if the memory utilization of business board_1 is less than or equal to the memory utilization of business board_2, the call service is processed by business board_1; if the memory utilization of business board_1 is greater than the memory utilization of business board_2, the call service is processed by business board_2; in, TH mem_1 Memory utilization threshold configured for service board_1; TH mem_2 Memory utilization threshold configured for service board 2; U mem_1 is the actual memory usage of business board_1; U mem_2 is the actual memory usage of business board_2; (f) U mem_1 >=TH mem_1 &&U mem_2 <TH mem_2 : If the memory utilization of service board_1 is greater than or equal to the threshold of the memory utilization of service board_1 and the memory utilization of service board_2 is less than the threshold of the memory utilization of service board_2, the call service is processed by service board_2; (g) U mem_1 <TH mem_1 &&U mem_2 >=TH mem_2 : If the memory utilization of service board_1 is less than the threshold of the memory utilization of service board_1 and the memory utilization of service board_2 is greater than or equal to the threshold of the memory utilization of service board_2, the call service is processed by service board_1; (h)U mem_1 <TH mem_1 &&U mem_2 <TH mem_2 : If the memory utilization of business board_1 is less than the threshold of the memory utilization of business board_1 and the memory utilization of business board_2 is less than the threshold of the memory utilization of business board_2, comprehensive business performance judgment business processing is performed.
7. According to the method for equalizing voice processing in multiple service modes and multiple boards of a device as described in claim 4, the service processing is specifically judged by comprehensive service performance as follows: (S1) Get the U of business board 1 cpu_1 and U mem_1 ; (S2) Get the U of business board 2 cpu_2 and U mem_2 ; (S3) Calculate the network system and network number WH based on the called number n The value of n; (S4) Obtain the network WH to which the called party belongs of business board_1 n Total traffic volume WH n total_1 and traffic usage WH n use_1 ; (S5) Obtain the network WH to which the called party belongs of business board 2 n Total traffic volume WH n total_2 and traffic usage WH n use_2 ; (S6) Calculate the overall performance of the business: Comprehensive performance of service board_1 utilization: U cpu_1 +U mem_1 +(WH n use_1 ÷WH n total_1 ×100) Comprehensive performance of service board_2 utilization: U cpu_2 +U mem_2 +(WH n use_2 ÷WH n total_2 ×100) (S7) If the comprehensive performance of the utilization rate of the service board_1 is less than the comprehensive performance of the utilization rate of the service board_2: U cpu_1 +U mem_1 +(WH n use_1 ÷WH n total_1 ×100)<U cpu_2 +U mem_2 +(WH n use_2 ÷WH n total_2 ×100) Then business board_1 handles the business, that is, business board_1 handles the call flow; If the overall performance of the utilization rate of business board_1 is greater than or equal to the overall performance of the utilization rate of business board_2: U cpu_1 +U mem_1 +(WH n use_1 ÷WH n total_1 ×100)>=U cpu_2 +U mem_2 +(WH n use_2 ÷WH n total_2 ×100) Then business board_2 handles the business, and business board_2 handles the call flow; Among them, WH n total_1 is the total amount of traffic allocated to the network system and network number n on service board 1; WH n total_2 is the total amount of traffic allocated to the network system and network number n on service board 2; WH n use_1 is the used traffic volume of the network system and network number n on service board 1; WH n use_2 The used traffic volume of the network system and network number n on service board_2.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the computer program is loaded into the processor, it implements the voice processing equalization method applicable to multi-service forms and multi-boards of a device according to any one of claims 4 to 7.
9. A storage medium storing a computer program, characterized in that: When the computer program is executed by the processor, a voice processing equalization method applicable to multiple business forms and multiple boards of a device according to any one of claims 4 to 7 is implemented.
Citation Information
Patent Citations
Method and device for balancing loads of single boards
CN103763740A
Testing tool and testing method for detecting functions of circuit switching board card
CN106973139A