CN105100059A - Method, device and system for processing high-concurrent requests - Google Patents

Method, device and system for processing high-concurrent requests Download PDF

Info

Publication number
CN105100059A
CN105100059A CN201510317296.4A CN201510317296A CN105100059A CN 105100059 A CN105100059 A CN 105100059A CN 201510317296 A CN201510317296 A CN 201510317296A CN 105100059 A CN105100059 A CN 105100059A
Authority
CN
China
Prior art keywords
client
server
user
request
processing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510317296.4A
Other languages
Chinese (zh)
Inventor
林赞荣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201510317296.4A priority Critical patent/CN105100059A/en
Publication of CN105100059A publication Critical patent/CN105100059A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/02Network architectures or network communication protocols for network security for separating internal from external traffic, e.g. firewalls
    • H04L63/0227Filtering policies

Abstract

The invention discloses a method, device and system for processing high-concurrent requests, belonging to the technical field of communication. The method comprises the following steps that: S1, a server processes a request data command sent by a client side through three-stage filtering process layers having different functions; and S2, if the request data command cannot pass the current filtering process layer, the request service of the client side at this time is refused; a processing result is returned to the corresponding client side; and, if the request data command sequentially passes through the three-stage filtering process layers, the processing result is returned to the corresponding client side after the request service of the client side at this time is subjected to service logic processing. According to the scheme, an effective strategy is made according to different functions of the three-stage filtering process layers; user requests are filtered, so that the server can refuse access requests of malicious users while having super-high-concurrent requests; the stability and the availability of the server can be ensured according to the priority strategy of users; and furthermore, full-load operation is carried out in the processing capacity range of the server.

Description

A kind of large concurrent request processing method, Apparatus and system
Technical field
The present invention relates to communication technical field, particularly relate to a kind of large concurrent request processing method, Apparatus and system.
Background technology
Along with the development of computer network, netizen's radix constantly increases, more and more higher to the performance requirement of internet product server.The often malicious attack of a focus incident or certain user, will produce the request of paroxysmal super large concurrency, seriously exceed the load-bearing capacity of server, causes server to occur the stuck situations such as machine of even delaying.Therefore the solution needing a kind for the treatment of system deals with this situation.
Summary of the invention
The object of the invention is to propose a kind of large concurrent request processing method, Apparatus and system, according to the difference function of three-stage filtration processing layer, formulate effective strategy, filtration treatment is carried out to the request of user, make server under the situation of super large concurrency request, the access request of malicious user and the priority policy according to user can be refused, ensure stability and the availability of server, and oepration at full load within the scope of the disposal ability of server.
For reaching this object, the present invention by the following technical solutions:
A kind of large concurrent request processing method, comprising:
S1, server carry out the filtration treatment layer process of three grades of different functions to the request msg order that client sends;
If S2 is not by current filter processing layer, then refuses this request service of client and return result to relative client; If have passed three-stage filtration processing layer successively, then, after business logic processing being carried out to this request service of client, result is returned to relative client.
Wherein, the filtration treatment layer of described three grades of different functions, comprises single filter processing layer, cascade filtration processing layer and three-stage filtration processing layer;
Described single filter processing layer, for filtering for external condition, comprises server maximum concurrent processing number control strategy, IP address blacklist strategy and internal interface strategy;
Described cascade filtration processing layer, for processing for the data content that client user send, comprises data validation filtration, data integrity is filtered and data format filters;
Described three-stage filtration processor, for processing for the server resource needed for client user, normally can use by limiting to the service condition of various resource the user making only to meet the demands in advance, comprising designated equipment IMEI number strategy and user area hierarchical policy.
Wherein, before carrying out the process of cascade filtration processing layer, also comprise server according to the data format pre-set, resolve the data that client is sent;
Before carrying out the process of three-stage filtration processing layer, also comprise server and interface authentication verification is carried out to judge whether this user has the rights of using of this service to client, if authentication is not passed through, then refuse this request service of client and return result to relative client, otherwise then continuing subsequent operation;
According to the business function that client user asks, obtain the service resources needed for business function of this request of client.
Wherein, described server maximum concurrent processing number control strategy, is specially:
Pre-set server maximum process number threshold value A, server free threshold value is A*60%;
Server passes through user's number of request of the current present of counters count server, i.e. concurrent processing number B;
If B is greater than A, then refuses this request service of client and return result to relative client, otherwise then continuing subsequent operation;
Described IP address blacklist strategy, is specially:
Limit the access times A in the unit interval section of each client ip address, if exceed the upper limit, then this IP address is added blacklist, wherein blacklist needs periodic maintenance, or needs dynamic resolution except blacklist mechanism;
Every station server example can at local cache counter, for recording the access times B in the unit interval section of each IP address;
If B is greater than A, then refuses this request service of client and return result to relative client, otherwise then continuing subsequent operation; If there is the IP address of specific demand, as the IP address in IP white list, this filter operation can be skipped;
Described internal interface strategy, is specially:
Open to the user of assigned ip address access, if IP address does not mate, then refuse this request service of client and return result to relative client, otherwise then continuing subsequent operation;
Described data validation filters, and is specially:
For filtering illegal equipment vendors and unit type, server database safeguards equipment vendors and the unit type of a combined method, if user's uploading data content is not mated, then refuse this request service of client and return result to relative client, otherwise then continuing subsequent operation;
Described data integrity is filtered, and is specially:
Server, according to the data format pre-set, verification client is sent the integrality of data content, if do not mate, then refuses this request service of client and returns result to relative client, otherwise then continuing subsequent operation;
Described data format filters, and is specially:
For filtering cell-phone number form, equipment I MEI form, if illegal, then refuse this request service of client and return result to relative client, otherwise then continuing subsequent operation;
Described designated equipment IMEI number strategy, is specially:
If this request service of client user is the software release upgrade bag in FOTA project, the IMEI list of the scalable equipment specified by software release upgrade bag, if the IMEI number of subscriber equipment does not mate, then refuse this request service of client and return result to relative client, otherwise then continuing subsequent operation;
Described user area hierarchical policy, is specially:
If this request service of client user is the software release upgrade bag in FOTA project, the whole nation is divided into several region, then opens gradually the FOTA upgrading authority in these regions;
Server can first judge according to server free state threshold, if current server is in idle condition, then skips this strategy, continues subsequent treatment;
If current server is not in idle condition, then according to the location, IP address of user, whether match user has can operating right; If user is not mated, then refuse this request service of client and return result to relative client, otherwise then continuing subsequent operation.
Wherein, server return result to relative client before, also comprise:
Server carries out Data Format Transform to result.
A kind of large concurrent request processing unit, comprising:
Classified filtering unit, carries out the filtration treatment layer process of three grades of different functions to the request msg order that client sends for server;
Filter result processing unit, if for not by current filter processing layer, then refuse this request service of client and return result to relative client; If have passed three-stage filtration processing layer successively, then, after business logic processing being carried out to this request service of client, result is returned to relative client.
Wherein, the filtration treatment layer of described three grades of different functions, comprises single filter processing layer, cascade filtration processing layer and three-stage filtration processing layer;
Described single filter processing layer, for filtering for external condition, comprises server maximum concurrent processing number control strategy, IP address blacklist strategy and internal interface strategy;
Described cascade filtration processing layer, for processing for the data content that client user send, comprises data validation filtration, data integrity is filtered and data format filters;
Described three-stage filtration processor, for processing for the server resource needed for client user, normally can use by limiting to the service condition of various resource the user making only to meet the demands in advance, comprising designated equipment IMEI number strategy and user area hierarchical policy.
Wherein, before carrying out the process of cascade filtration processing layer, also comprise the first Data Analysis unit, for server according to the data format pre-set, resolve the data that client is sent;
Before carrying out the process of three-stage filtration processing layer, also comprise: interface authenticating unit and service resources acquiring unit, described interface authenticating unit, for server, interface authentication verification is carried out to judge whether this user has the rights of using of this service to client, if authentication is not passed through, then refuse this request service of client and return result to relative client, otherwise then continuing subsequent operation;
Described service resources acquiring unit, for the business function of asking according to client user, obtains the service resources needed for business function of this request of client.
Wherein, described server maximum concurrent processing number control strategy, is specially:
Pre-set server maximum process number threshold value A, server free threshold value is A*60%;
Server passes through user's number of request of the current present of counters count server, i.e. concurrent processing number B;
If B is greater than A, then refuses this request service of client and return result to relative client, otherwise then continuing subsequent operation;
Described IP address blacklist strategy, is specially:
Limit the access times A in the unit interval section of each client ip address, if exceed the upper limit, then this IP address is added blacklist, wherein blacklist needs periodic maintenance, or needs dynamic resolution except blacklist mechanism;
Every station server example can at local cache counter, for recording the access times B in the unit interval section of each IP address;
If B is greater than A, then refuses this request service of client and return result to relative client, otherwise then continuing subsequent operation; If there is the IP address of specific demand, as the IP address in IP white list, this filter operation can be skipped;
Described internal interface strategy, is specially:
Open to the user of assigned ip address access, if IP address does not mate, then refuse this request service of client and return result to relative client, otherwise then continuing subsequent operation;
Described data validation filters, and is specially:
For filtering illegal equipment vendors and unit type, server database safeguards equipment vendors and the unit type of a combined method, if user's uploading data content is not mated, then refuse this request service of client and return result to relative client, otherwise then continuing subsequent operation;
Described data integrity is filtered, and is specially:
Server, according to the data format pre-set, verification client is sent the integrality of data content, if do not mate, then refuses this request service of client and returns result to relative client, otherwise then continuing subsequent operation;
Described data format filters, and is specially:
For filtering cell-phone number form, equipment I MEI form, if illegal, then refuse this request service of client and return result to relative client, otherwise then continuing subsequent operation;
Described designated equipment IMEI number strategy, is specially:
If this request service of client user is the software release upgrade bag in FOTA project, the IMEI list of the scalable equipment specified by software release upgrade bag, if the IMEI number of subscriber equipment does not mate, then refuse this request service of client and return result to relative client, otherwise then continuing subsequent operation;
Described user area hierarchical policy, is specially:
If this request service of client user is the software release upgrade bag in FOTA project, the whole nation is divided into several region, then opens gradually the FOTA upgrading authority in these regions;
Server can first judge according to server free state threshold, if current server is in idle condition, then skips this strategy, continues subsequent treatment;
If current server is not in idle condition, then according to the location, IP address of user, whether match user has can operating right; If user is not mated, then refuse this request service of client and return result to relative client, otherwise then continuing subsequent operation;
Server return result to relative client before, also comprise the second Data Analysis unit, for server, Data Format Transform carried out to result.
A kind of large concurrent demand processing system, comprising: client and server;
Described client, for sending request data command to server, and reception server is to the result of request msg order;
Described server carries out the filtration treatment layer process of three grades of different functions to the request msg order that client sends; If not by current filter processing layer, then refuse this request service of client and return result to relative client; If have passed three-stage filtration processing layer successively, then, after business logic processing being carried out to this request service of client, result is returned to relative client.
Beneficial effect:
A kind of large concurrent request processing method of the present invention, comprising: S1, server carry out the filtration treatment layer process of three grades of different functions to the request msg order that client sends; If S2 is not by current filter processing layer, then refuses this request service of client and return result to relative client; If have passed three-stage filtration processing layer successively, then, after business logic processing being carried out to this request service of client, result is returned to relative client.This programme is according to the difference function of three-stage filtration processing layer, formulate effective strategy, filtration treatment is carried out to the request of user, make server under the situation of super large concurrency request, the access request of malicious user and the priority policy according to user can be refused, ensure stability and the availability of server, and oepration at full load within the scope of the disposal ability of server.By the permission of Servers installed maximum concurrent processing number threshold value, the user's request exceeding load is filtered, effectively can alleviate server stress, the oepration at full load within the scope of disposal ability of Deterministic service device.By IP address blacklist, the access request of disabled user effectively can be refused.By the control strategy to server service resource, realize user gradation, can effectively serve the higher colony of priority targetedly.
Accompanying drawing explanation
Fig. 1 is the hardware configuration schematic diagram of the mobile terminal realizing each embodiment of the present invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is the flow chart of a kind of large concurrent request processing method of embodiments of the invention one;
Fig. 4 is the flow chart of a kind of large concurrent request processing method of embodiments of the invention two;
The flow chart of a kind of large concurrent request processing method that Fig. 5 is embodiments of the invention three;
Fig. 6 is the exemplary block diagram of a kind of large concurrent request processing unit of embodiments of the invention four;
Fig. 7 is the exemplary block diagram of a kind of large concurrent request processing unit of embodiments of the invention five;
Fig. 8 is the exemplary block diagram of a kind of large concurrent request processing unit of embodiments of the invention six;
Fig. 9 is the exemplary block diagram of a kind of large concurrent demand processing system of embodiments of the invention seven.
The realization of the object of the invention, functional characteristics and advantage will in conjunction with the embodiments, are described further with reference to accompanying drawing.
Embodiment
Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.Mobile terminal can be implemented in a variety of manners.Such as, the terminal described in the present invention can comprise the such as mobile terminal of mobile phone, smart phone, notebook computer, digit broadcasting receiver, PDA (personal digital assistant), PAD (panel computer), PMP (portable media player), guider etc. and the fixed terminal of such as digital TV, desktop computer etc.Below, suppose that terminal is mobile terminal.But it will be appreciated by those skilled in the art that except the element except being used in particular for mobile object, structure according to the embodiment of the present invention also can be applied to the terminal of fixed type.
Fig. 1 is the hardware configuration signal of the mobile terminal realizing each embodiment of the present invention.
Mobile terminal 100 can comprise wireless communication unit 110, A/V (audio/video) input unit 120, user input unit 130, sensing cell 140, output unit 150, memory 160, interface unit 170, controller 180 and power subsystem 190 etc.Fig. 1 shows the mobile terminal with various assembly, it should be understood that, does not require to implement all assemblies illustrated.Can alternatively implement more or less assembly.Will be discussed in more detail below the element of mobile terminal.
Wireless communication unit 110 generally includes one or more assembly, and it allows the radio communication between mobile terminal 100 and wireless communication system or network.Such as, wireless communication unit can comprise at least one in broadcast reception module 111, mobile communication module 112, wireless Internet module 113, short range communication module 114 and positional information module 115.
Broadcast reception module 111 via broadcast channel from external broadcasting management server receiving broadcast signal and/or broadcast related information.Broadcast channel can comprise satellite channel and/or terrestrial channel.Broadcast management server can be generate and send the server of broadcast singal and/or broadcast related information or the broadcast singal generated before receiving and/or broadcast related information and send it to the server of terminal.Broadcast singal can comprise TV broadcast singal, radio signals, data broadcasting signal etc.And broadcast singal may further include the broadcast singal combined with TV or radio signals.Broadcast related information also can provide via mobile communications network, and in this case, broadcast related information can be received by mobile communication module 112.Broadcast singal can exist in a variety of manners, such as, it can exist with the form of the electronic service guidebooks (ESG) of the electronic program guides of DMB (DMB) (EPG), digital video broadcast-handheld (DVB-H) etc.Broadcast reception module 111 can by using the broadcast of various types of broadcast system Received signal strength.Especially, broadcast reception module 111 can by using such as multimedia broadcasting-ground (DMB-T), DMB-satellite (DMB-S), digital video broadcasting-hand-held (DVB-H), forward link media (MediaFLO ) the digit broadcasting system receiving digital broadcast of Radio Data System, received terrestrial digital broadcasting integrated service (ISDB-T) etc.Broadcast reception module 111 can be constructed to be applicable to providing the various broadcast system of broadcast singal and above-mentioned digit broadcasting system.The broadcast singal received via broadcast reception module 111 and/or broadcast related information can be stored in memory 160 (or storage medium of other type).
Radio signal is sent at least one in base station (such as, access point, Node B etc.), exterior terminal and server and/or receives radio signals from it by mobile communication module 112.Various types of data that such radio signal can comprise voice call signal, video calling signal or send according to text and/or Multimedia Message and/or receive.
Wireless Internet module 113 supports the Wi-Fi (Wireless Internet Access) of mobile terminal.This module can be inner or be externally couple to terminal.Wi-Fi (Wireless Internet Access) technology involved by this module can comprise WLAN (WLAN) (Wi-Fi), Wibro (WiMAX), Wimax (worldwide interoperability for microwave access), HSDPA (high-speed downlink packet access) etc.
Short range communication module 114 is the modules for supporting junction service.Some examples of short-range communication technology comprise bluetooth tM, radio-frequency (RF) identification (RFID), Infrared Data Association (IrDA), ultra broadband (UWB), purple honeybee tMetc..
Positional information module 115 is the modules of positional information for checking or obtain mobile terminal.The typical case of positional information module is GPS (global positioning system).According to current technology, GPS module 115 calculates from the range information of three or more satellite and correct time information and for the Information application triangulation calculated, thus calculates three-dimensional current location information according to longitude, latitude and pin-point accuracy.Current, the method for calculating location and temporal information uses three satellites and by the error of the position that uses an other satellite correction calculation to go out and temporal information.In addition, GPS module 115 can carry out computational speed information by Continuous plus current location information in real time.
A/V input unit 120 is for audio reception or vision signal.A/V input unit 120 can comprise camera 121 and microphone 1220, and the view data of camera 121 to the static images obtained by image capture apparatus in Video Capture pattern or image capture mode or video processes.Picture frame after process may be displayed on display module 151.Picture frame after camera 121 processes can be stored in memory 160 (or other storage medium) or via wireless communication unit 110 and send, and can provide two or more cameras 1210 according to the structure of mobile terminal.Such acoustic processing can via microphones sound (voice data) in telephone calling model, logging mode, speech recognition mode etc. operational mode, and can be voice data by microphone 122.Audio frequency (voice) data after process can be converted to the formatted output that can be sent to mobile communication base station via mobile communication module 112 when telephone calling model.Microphone 122 can be implemented various types of noise and eliminate (or suppress) algorithm and receiving and sending to eliminate (or suppression) noise or interference that produce in the process of audio signal.
User input unit 130 can generate key input data to control the various operations of mobile terminal according to the order of user's input.User input unit 130 allows user to input various types of information, and keyboard, the young sheet of pot, touch pad (such as, detecting the touch-sensitive assembly of the change of the resistance, pressure, electric capacity etc. that cause owing to being touched), roller, rocking bar etc. can be comprised.Especially, when touch pad is superimposed upon on display module 151 as a layer, touch-screen can be formed.
Sensing cell 140 detects the current state of mobile terminal 100, (such as, mobile terminal 100 open or close state), the position of mobile terminal 100, user for mobile terminal 100 contact (namely, touch input) presence or absence, the orientation of mobile terminal 100, the acceleration or deceleration of mobile terminal 100 move and direction etc., and generate order or the signal of the operation for controlling mobile terminal 100.Such as, when mobile terminal 100 is embodied as sliding-type mobile phone, sensing cell 140 can sense this sliding-type phone and open or close.In addition, whether whether sensing cell 140 can detect power subsystem 190 provides electric power or interface unit 170 to couple with external device (ED).Sensing cell 140 can comprise proximity transducer 1410 and will be described this in conjunction with touch-screen below.
Interface unit 170 is used as at least one external device (ED) and is connected the interface that can pass through with mobile terminal 100.Such as, external device (ED) can comprise wired or wireless head-band earphone port, external power source (or battery charger) port, wired or wireless FPDP, memory card port, for connecting the port, audio frequency I/O (I/O) port, video i/o port, ear port etc. of the device with identification module.Identification module can be that storage uses the various information of mobile terminal 100 for authentication of users and can comprise subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM) etc.In addition, the device (hereinafter referred to " recognition device ") with identification module can take the form of smart card, and therefore, recognition device can be connected with mobile terminal 100 via port or other jockey.Interface unit 170 may be used for receive from external device (ED) input (such as, data message, electric power etc.) and the input received be transferred to the one or more element in mobile terminal 100 or may be used for transmitting data between mobile terminal and external device (ED).
In addition, when mobile terminal 100 is connected with external base, interface unit 170 can be used as to allow by it electric power to be provided to the path of mobile terminal 100 from base or can be used as the path that allows to be transferred to mobile terminal by it from the various command signals of base input.The various command signal inputted from base or electric power can be used as and identify whether mobile terminal is arranged on the signal base exactly.Output unit 150 is constructed to provide output signal (such as, audio signal, vision signal, alarm signal, vibration signal etc.) with vision, audio frequency and/or tactile manner.Output unit 150 can comprise display module 151, dio Output Modules 152, alarm modules 153 etc.
Display module 151 may be displayed on the information of process in mobile terminal 100.Such as, when mobile terminal 100 is in telephone calling model, display module 151 can show with call or other communicate (such as, text messaging, multimedia file are downloaded etc.) be correlated with user interface (UI) or graphic user interface (GUI).When mobile terminal 100 is in video calling pattern or image capture mode, display module 151 can the image of display capture and/or the image of reception, UI or GUI that video or image and correlation function are shown etc.
Meanwhile, when display module 151 and touch pad as a layer superposed on one another to form touch-screen time, display module 151 can be used as input unit and output device.Display module 151 can comprise at least one in liquid crystal display (LCD), thin-film transistor LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc.Some in these displays can be constructed to transparence and watch from outside to allow user, and this can be called transparent display, and typical transparent display can be such as TOLED (transparent organic light emitting diode) display etc.According to the specific execution mode wanted, mobile terminal 100 can comprise two or more display modules (or other display unit), such as, mobile terminal can comprise outside display module (not shown) and inner display module (not shown).Touch-screen can be used for detecting touch input pressure and touch input position and touch and inputs area.
When dio Output Modules 152 can be under the isotypes such as call signal receiving mode, call mode, logging mode, speech recognition mode, broadcast reception mode at mobile terminal, voice data convert audio signals that is that wireless communication unit 110 is received or that store in memory 160 and exporting as sound.And dio Output Modules 152 can provide the audio frequency relevant to the specific function that mobile terminal 100 performs to export (such as, call signal receives sound, message sink sound etc.).Dio Output Modules 152 can comprise loud speaker, buzzer etc.
Alarm modules 153 can provide and export that event informed to mobile terminal 100.Typical event can comprise calling reception, message sink, key signals input, touch input etc.Except audio or video exports, alarm modules 153 can provide in a different manner and export with the generation of notification event.Such as, alarm modules 153 can provide output with the form of vibration, when receive calling, message or some other enter communication (incomingcommunication) time, alarm modules 153 can provide sense of touch to export (that is, vibrating) to notify to user.By providing such sense of touch to export, even if when the mobile phone of user is in the pocket of user, user also can identify the generation of various event.Alarm modules 153 also can provide the output of the generation of notification event via display module 151 or dio Output Modules 152.
Memory 160 software program that can store process and the control operation performed by controller 180 etc., or temporarily can store oneself through exporting the data (such as, telephone directory, message, still image, video etc.) that maybe will export.And, memory 160 can store about when touch be applied to touch-screen time the vibration of various modes that exports and the data of audio signal.
Memory 160 can comprise the storage medium of at least one type, described storage medium comprises flash memory, hard disk, multimedia card, card-type memory (such as, SD or DX memory etc.), random access storage device (RAM), static random-access memory (SRAM), read-only memory (ROM), Electrically Erasable Read Only Memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc.And mobile terminal 100 can be connected the memory function of execute store 160 network storage device with by network cooperates.
Controller 180 controls the overall operation of mobile terminal usually.Such as, controller 180 performs the control relevant to voice call, data communication, video calling etc. and process.In addition, controller 180 can comprise the multi-media module 1810 for reproducing (or playback) multi-medium data, and multi-media module 1810 can be configured in controller 180, or can be configured to be separated with controller 180.Controller 180 can pattern recognition process, is identified as character or image so that input is drawn in the handwriting input performed on the touchscreen or picture.
Power subsystem 190 receives external power or internal power and provides each element of operation and the suitable electric power needed for assembly under the control of controller 180.
Various execution mode described herein can to use such as computer software, the computer-readable medium of hardware or its any combination implements.For hardware implementation, execution mode described herein can by using application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), processor, controller, microcontroller, microprocessor, being designed at least one performed in the electronic unit of function described herein and implementing, in some cases, such execution mode can be implemented in controller 180.For implement software, the execution mode of such as process or function can be implemented with allowing the independent software module performing at least one function or operation.Software code can be implemented by the software application (or program) write with any suitable programming language, and software code can be stored in memory 160 and to be performed by controller 180.
So far, oneself is through the mobile terminal according to its functional description.Below, for the sake of brevity, by the slide type mobile terminal that describes in various types of mobile terminals of such as folded form, board-type, oscillating-type, slide type mobile terminal etc. exemplarily.Therefore, the present invention can be applied to the mobile terminal of any type, and is not limited to slide type mobile terminal.
Mobile terminal 100 as shown in Figure 1 can be constructed to utilize and send the such as wired and wireless communication system of data via frame or grouping and satellite-based communication system operates.
Describe wherein according to the communication system that mobile terminal of the present invention can operate referring now to Fig. 2.
Such communication system can use different air interfaces and/or physical layer.Such as, the air interface used by communication system comprises such as frequency division multiple access (FDMA), time division multiple access (TDMA), code division multiple access (CDMA) and universal mobile telecommunications system (UMTS) (especially, Long Term Evolution (LTE)), global system for mobile communications (GSM) etc.As non-limiting example, description below relates to cdma communication system, but such instruction is equally applicable to the system of other type.
With reference to figure 2, cdma wireless communication system can comprise multiple mobile terminal 100, multiple base station (BS) 270, base station controller (BSC) 275 and mobile switching centre (MSC) 280.MSC280 is constructed to form interface with Public Switched Telephony Network (PSTN) 290.MSC280 is also constructed to form interface with the BSC275 that can be couple to base station 270 via back haul link.Back haul link can construct according to any one in some interfaces that oneself knows, described interface comprises such as E1/T1, ATM, IP, PPP, frame relay, HDSL, ADSL or xDSL.Will be appreciated that system as shown in Figure 2 can comprise multiple BSC2750.
Each BS270 can serve one or more subregion (or region), by multidirectional antenna or point to specific direction each subregion of antenna cover radially away from BS270.Or each subregion can by two or more antenna covers for diversity reception.Each BS270 can be constructed to support multiple parallel compensate, and each parallel compensate has specific frequency spectrum (such as, 1.25MHz, 5MHz etc.).
Subregion can be called as CDMA Channel with intersecting of parallel compensate.BS270 also can be called as base station transceiver subsystem (BTS) or other equivalent terms.Under these circumstances, term " base station " may be used for broadly representing single BSC275 and at least one BS270.Base station also can be called as " cellular station ".Or each subregion of particular B S270 can be called as multiple cellular station.
As shown in Figure 2, broadcast singal is sent to the mobile terminal 100 at operate within systems by broadcsting transmitter (BT) 295.Broadcast reception module 111 as shown in Figure 1 is arranged on mobile terminal 100 and sentences the broadcast singal receiving and sent by BT295.In fig. 2, several global positioning system (GPS) satellite 300 is shown.Satellite 300 helps at least one in the multiple mobile terminal 100 in location.
In fig. 2, depict multiple satellite 300, but understand, the satellite of any number can be utilized to obtain useful locating information.GPS module 115 as shown in Figure 1 is constructed to coordinate to obtain the locating information wanted with satellite 300 usually.Substitute GPS tracking technique or outside GPS tracking technique, can use can other technology of position of tracking mobile terminal.In addition, at least one gps satellite 300 optionally or extraly can process satellite dmb transmission.
As a typical operation of wireless communication system, BS270 receives the reverse link signal from various mobile terminal 100.Mobile terminal 100 participates in call usually, information receiving and transmitting communicates with other type.Each reverse link signal that certain base station 270 receives is processed by particular B S270.The data obtained are forwarded to relevant BSC275.BSC provides call Resourse Distribute and comprises the mobile management function of coordination of the soft switching process between BS270.The data received also are routed to MSC280 by BSC275, and it is provided for the extra route service forming interface with PSTN290.Similarly, PSTN290 and MSC280 forms interface, and MSC and BSC275 forms interface, and BSC275 correspondingly control BS270 so that forward link signals is sent to mobile terminal 100.
Based on above-mentioned mobile terminal hardware configuration and communication system, each embodiment of the inventive method is proposed.
Touch operation method of the present invention, is specially adapted to narrow frame or Rimless mobile terminal, first the Touch Zone of mobile terminal is divided into special subregion and common subregion same as the prior art, and distributes an input equipment for each subregion; When receiving touch control operation, judging which subregion this touch control operation occurs in, when occurring in special subregion, then reporting touch control operation by the input equipment that special section post is corresponding, when occurring in common subregion, then report touch control operation by the input equipment that common section post is corresponding; Finally, the touch control operation that the input equipment that mobile terminal is corresponding to special section post reports carries out special processing, and the touch control operation that the input equipment corresponding to common section post reports, as prior art, carries out normal process.
Describedly special processing is carried out to touch control operation can be understood as unconventional process or improper process are carried out to touch control operation, as ignored this touch control operation, generating special efficacy according to this touch control operation, or other processing mode self-defining.For example, unconventional process or improper process, can do following understanding: further when user clicks a certain application icon, and normal process or conventional treatment start this application, and improper process or unconventional process are then to start this application.
Be described in detail below by way of specific embodiment.
Embodiment one
Fig. 3 is the flow chart of a kind of large concurrent request processing method of embodiments of the invention one.As shown in Figure 3, a kind of large concurrent request processing method of the present invention, comprising:
The filtration treatment layer process of three grades of different functions is carried out in the request msg order that S1, server 02 pair of client 01 send;
If S2 is not by current filter processing layer, then refuses this request service of client 01 and return result to relative client 01; If have passed three-stage filtration processing layer 50 successively, then, after business logic processing being carried out to this request service of client 01, result is returned to relative client 01.
This programme is according to the difference function of three-stage filtration processing layer 50, formulate effective strategy, filtration treatment is carried out to the request of user, make server 02 under the situation of super large concurrency request, the access request of malicious user and the priority policy according to user can be refused, ensure stability and the availability of server 02, and oepration at full load within the scope of the disposal ability of server 02.
In this programme, the filtration treatment layer of described three grades of different functions, comprises single filter processing layer 30, cascade filtration processing layer 40 and three-stage filtration processing layer 50;
Described single filter processing layer 30, for filtering for external condition, comprises server 02 maximum concurrent processing number control strategy, IP address blacklist strategy and internal interface strategy;
Described cascade filtration processing layer 40, for processing for the data content that client 01 user send, comprises data validation filtration, data integrity is filtered and data format filters;
Described three-stage filtration processor, for processing for server 02 resource needed for client 01 user, normally can use by limiting to the service condition of various resource the user making only to meet the demands in advance, comprising designated equipment IMEI number strategy and user area hierarchical policy.
The permission arranged by server 02 maximum concurrent processing number threshold value, is filtered the user's request exceeding load, effectively can alleviate server 02 pressure, Deterministic service device 02 oepration at full load within the scope of disposal ability.By IP address blacklist, the access request of disabled user effectively can be refused.By the control strategy to server 02 service resources, realize user gradation, can effectively serve the higher colony of priority targetedly.
Embodiment two
Fig. 4 is the flow chart of a kind of large concurrent request processing method of embodiments of the invention two.As shown in Figure 4, technical solutions according to the invention, before carrying out cascade filtration processing layer 40 process, also comprise server 02 according to the data format pre-set, and resolve the data that client 01 is sent.Server 02, according to the data format of making an appointment, resolves the data that client 01 is sent, as Json, XML, user-defined format etc.
Before carrying out three-stage filtration processing layer 50 process, also comprise server 02 pair of client 01 and carry out interface authentication verification to judge whether this user has the rights of using of this service, if authentication is not passed through, then refuse this request service of client 01 and return result to relative client 01, otherwise then continuing subsequent operation;
According to the business function that client 01 user asks, obtain the service resources needed for business function of this request of client 01.
It should be noted that, noun illustrates:
FOTA project, FOTA operation mainly refers to a kind of by air interface telemanagement, upgrades the method for firmware in terminal equipment.Operated by FOTA, not only can download upgrade application software, the operating system also can updated the equipment.Like this, FOTA operation enables equipment manufacturers be sent to by AKU in the terminal equipment of user by network thus upgrade to firmware, software, not only facilitates user, also for equipment manufacturers have saved cost.FOTA " (mobile terminal downloads software upgrading in the air); this is developed by REDBEND company and patented technology vCurrentMobile mobile terminal downloads software upgrading (FOTA) solution in the air, has been applied to the products of oneself by increasing manufacturer.Effectively reliably the mobile phone in user's hand is upgraded by the mode downloaded in the air.In this way, cell phone manufacturer can have the mobile phone of New function to market release and improve the satisfaction of user to its mobile phone with this more rapidly.The vCurrentMobile technology of RedBend software company can generate minimum renewal bag and carries out the renewal of 100% precise and safety to mobile phone thus saved the cost produced therefrom.The software upgrading bag generated unlike, vCurrentMobile with other FOTA solution can not hinder original image file, thus makes renewal process simple and rapidly.
This programme for FOTA project, will introduce server 02 flow process of present treatment system.The strategy of filtration treatment at different levels, need carry out suitable control according to practical business.
In this programme, described server 02 maximum concurrent processing number control strategy, is specially:
Pre-set server 02 maximum process number threshold value A, server 02 Tidle threshold is A*60%;
Server 02 passes through user's number of request of the current present of counters count server 02, i.e. concurrent processing number B;
If B is greater than A, then refuses this request service of client 01 and return result to relative client 01, otherwise then continuing subsequent operation.
Described IP address blacklist strategy, is specially:
Limit the access times A in the unit interval section of each client 01IP address, if exceed the upper limit, then this IP address is added blacklist, wherein blacklist needs periodic maintenance, or needs dynamic resolution except blacklist mechanism;
Every station server 02 example can at local cache counter, for recording the access times B in the unit interval section of each IP address;
If B is greater than A, then refuses this request service of client 01 and return result to relative client 01, otherwise then continuing subsequent operation.If Single-Server in the 5s 02 instance access upper limit is 100 times, if exceed the upper limit, then this IP address is added blacklist.If there is the IP address of specific demand, as the IP address in IP white list, this filter operation can be skipped.
IP address counter simple algorithm:
Method one: scheduled task process, every 5 seconds statistics once, if exceed 100, add blacklist, do not exceed 100 clearings.
Method two: lazy tupe+timed task process, server 02 judges process when receiving request:
If it is that before 5 seconds, then counter O reset, restarts record that the counter in buffer memory starts writing time;
If buffer memory Counter starts writing time apart from the present be less than 5 seconds, and counter is less than 100, then counter+1;
If buffer memory Counter starts writing time apart from the present be less than 5 seconds, and counter is more than or equal to 100, then refuse this operation, and this IP address is added blacklist.
Timed task: for removing the calculator do not discharged in buffer memory.
Described internal interface strategy, is specially:
Open to the user of assigned ip address access, if IP address does not mate, then refuse this request service of client 01 and return result to relative client 01, otherwise then continuing subsequent operation.
Described data validation filters, and is specially:
For filtering illegal equipment vendors and unit type, the equipment vendors of server 02 database maintenance one combined method and unit type, if user's uploading data content is not mated, then refuse this request service of client 01 and return result to relative client 01, otherwise then continuing subsequent operation.
Described data integrity is filtered, and is specially:
Server 02, according to the data format pre-set, verification client 01 is sent the integrality of data content, if do not mate, then refuses this request service of client 01 and returns result to relative client 01, otherwise then continuing subsequent operation.
Described data format filters, and is specially:
For filtering cell-phone number form, equipment I MEI form, if illegal, then refuse this request service of client 01 and return result to relative client 01, otherwise then continuing subsequent operation.
For the software release upgrade bag in FOTA project, described designated equipment IMEI number strategy, is specially:
If this request service of client 01 user is the software release upgrade bag in FOTA project, the IMEI list of the scalable equipment specified by software release upgrade bag, if the IMEI number of subscriber equipment does not mate, then refuse this request service of client 01 and return result to relative client 01, otherwise then continuing subsequent operation.
Described user area hierarchical policy, is specially:
If this request service of client 01 user is the software release upgrade bag in FOTA project, the whole nation is divided into several region, then opens gradually the FOTA upgrading authority in these regions;
Server 02 can first judge according to server 02 idle condition threshold value, if current server 02 is in idle condition, then skips this strategy, continues subsequent treatment;
If current server 02 is not in idle condition, then according to the location, IP address of user, whether match user has can operating right; If user is not mated, then refuse this request service of client 01 and return result to relative client 01, otherwise then continuing subsequent operation.
Such as: the whole nation is divided into 5 regions (A, B, C, D, E), the user at first open place, a-quadrant allows to carry out FOTA updating operation, after 1 week, open B region, opens gradually like this, after 5 weeks, finally reach the user FOTA upgrading authority in open national all regions.
Embodiment three
The flow chart of a kind of large concurrent request processing method that Fig. 5 is embodiments of the invention three.As shown in Figure 5, technical scheme of the present invention server 02 return result to relative client 01 before, also comprise:
Server 02 pair of result carries out Data Format Transform.
It should be noted that, embodiment four, embodiment five, embodiment six are device embodiments of the present invention, and embodiment seven is system embodiments of the present invention, and the content of not detailed description in device embodiment, system embodiment, refers to embodiment of the method.
Embodiment four
Fig. 6 is the exemplary block diagram of a kind of large concurrent request processing unit of embodiments of the invention four.As shown in Figure 6, a kind of large concurrent request processing unit of the present invention, comprising:
Classified filtering unit 10, three grades of different functional filtration treatment layer process are carried out in the request msg order sent for server 02 pair of client 01;
Filter result processing unit 20, if for not by current filter processing layer, then refuse this request service of client 01 and return result to relative client 01; If have passed three-stage filtration processing layer 50 successively, then, after business logic processing being carried out to this request service of client 01, result is returned to relative client 01.
This programme is according to the difference function of three-stage filtration processing layer 50, formulate effective strategy, filtration treatment is carried out to the request of user, make server 02 under the situation of super large concurrency request, the access request of malicious user and the priority policy according to user can be refused, ensure stability and the availability of server 02, and oepration at full load within the scope of the disposal ability of server 02.
In this programme, the filtration treatment layer of described three grades of different functions, comprises single filter processing layer 30, cascade filtration processing layer 40 and three-stage filtration processing layer 50;
Described single filter processing layer 30, for filtering for external condition, comprises server 02 maximum concurrent processing number control strategy, IP address blacklist strategy and internal interface strategy;
Described cascade filtration processing layer 40, for processing for the data content that client 01 user send, comprises data validation filtration, data integrity is filtered and data format filters;
Described three-stage filtration processor, for processing for server 02 resource needed for client 01 user, normally can use by limiting to the service condition of various resource the user making only to meet the demands in advance, comprising designated equipment IMEI number strategy and user area hierarchical policy.
The permission arranged by server 02 maximum concurrent processing number threshold value, is filtered the user's request exceeding load, effectively can alleviate server 02 pressure, Deterministic service device 02 oepration at full load within the scope of disposal ability.By IP address blacklist, the access request of disabled user effectively can be refused.By the control strategy to server 02 service resources, realize user gradation, can effectively serve the higher colony of priority targetedly.
Embodiment five
Fig. 7 is the exemplary block diagram of a kind of large concurrent request processing unit of embodiments of the invention five.As shown in Figure 7, technical solutions according to the invention also comprise the first Data Analysis unit 60 before carrying out cascade filtration processing layer 40 process, for server 02 according to the data format pre-set, resolve the data that client 01 is sent.Server 02, according to the data format of making an appointment, resolves the data that client 01 is sent, as Json, XML, user-defined format etc.
Before carrying out three-stage filtration processing layer 50 process, also comprise: interface authenticating unit 70 and service resources acquiring unit 80;
Described interface authenticating unit 70, interface authentication verification is carried out to judge whether this user has the rights of using of this service for server 02 pair of client 01, if authentication is not passed through, then refuse this request service of client 01 and return result to relative client 01, otherwise then continuing subsequent operation;
Described service resources acquiring unit 80, for the business function of asking according to client 01 user, obtains the service resources needed for business function of this request of client 01.
It should be noted that, noun illustrates:
FOTA project, FOTA operation mainly refers to a kind of by air interface telemanagement, upgrades the method for firmware in terminal equipment.Operated by FOTA, not only can download upgrade application software, the operating system also can updated the equipment.Like this, FOTA operation enables equipment manufacturers be sent to by AKU in the terminal equipment of user by network thus upgrade to firmware, software, not only facilitates user, also for equipment manufacturers have saved cost.FOTA " (mobile terminal downloads software upgrading in the air); this is developed by REDBEND company and patented technology vCurrentMobile mobile terminal downloads software upgrading (FOTA) solution in the air, has been applied to the products of oneself by increasing manufacturer.Effectively reliably the mobile phone in user's hand is upgraded by the mode downloaded in the air.In this way, cell phone manufacturer can have the mobile phone of New function to market release and improve the satisfaction of user to its mobile phone with this more rapidly.The vCurrentMobile technology of RedBend software company can generate minimum renewal bag and carries out the renewal of 100% precise and safety to mobile phone thus saved the cost produced therefrom.The software upgrading bag generated unlike, vCurrentMobile with other FOTA solution can not hinder original image file, thus makes renewal process simple and rapidly.
This programme for FOTA project, will introduce server 02 flow process of present treatment system.The strategy of filtration treatment at different levels, need carry out suitable control according to practical business.
In this programme, described server 02 maximum concurrent processing number control strategy, is specially:
Pre-set server 02 maximum process number threshold value A, server 02 Tidle threshold is A*60%;
Server 02 passes through user's number of request of the current present of counters count server 02, i.e. concurrent processing number B;
If B is greater than A, then refuses this request service of client 01 and return result to relative client 01, otherwise then continuing subsequent operation.
Described IP address blacklist strategy, is specially:
Limit the access times A in the unit interval section of each client 01IP address, if exceed the upper limit, then this IP address is added blacklist, wherein blacklist needs periodic maintenance, or needs dynamic resolution except blacklist mechanism;
Every station server 02 example can at local cache counter, for recording the access times B in the unit interval section of each IP address;
If B is greater than A, then refuses this request service of client 01 and return result to relative client 01, otherwise then continuing subsequent operation; If there is the IP address of specific demand, as the IP address in IP white list, this filter operation can be skipped.If Single-Server in the 5s 02 instance access upper limit is 100 times, if exceed the upper limit, then this IP address is added blacklist.If there is the IP address of specific demand, as the IP address in IP white list, this filter operation can be skipped.
IP address counter simple algorithm:
Method one: scheduled task process, every 5 seconds statistics once, if exceed 100, add blacklist, do not exceed 100 clearings.
Method two: lazy tupe+timed task process, server 02 judges process when receiving request:
If it is that before 5 seconds, then counter O reset, restarts record that the counter in buffer memory starts writing time;
If buffer memory Counter starts writing time apart from the present be less than 5 seconds, and counter is less than 100, then counter+1;
If buffer memory Counter starts writing time apart from the present be less than 5 seconds, and counter is more than or equal to 100, then refuse this operation, and this IP address is added blacklist.
Timed task: for removing the calculator do not discharged in buffer memory.
Described internal interface strategy, is specially:
Open to the user of assigned ip address access, if IP address does not mate, then refuse this request service of client 01 and return result to relative client 01, otherwise then continuing subsequent operation.
Described data validation filters, and is specially:
For filtering illegal equipment vendors and unit type, the equipment vendors of server 02 database maintenance one combined method and unit type, if user's uploading data content is not mated, then refuse this request service of client 01 and return result to relative client 01, otherwise then continuing subsequent operation.
Described data integrity is filtered, and is specially:
Server 02, according to the data format pre-set, verification client 01 is sent the integrality of data content, if do not mate, then refuses this request service of client 01 and returns result to relative client 01, otherwise then continuing subsequent operation.
Described data format filters, and is specially:
For filtering cell-phone number form, equipment I MEI form, if illegal, then refuse this request service of client 01 and return result to relative client 01, otherwise then continuing subsequent operation.
For the software release upgrade bag in FOTA project, described designated equipment IMEI number strategy, is specially:
If this request service of client 01 user is the software release upgrade bag in FOTA project, the IMEI list of the scalable equipment specified by software release upgrade bag, if the IMEI number of subscriber equipment does not mate, then refuse this request service of client 01 and return result to relative client 01, otherwise then continuing subsequent operation.
Described user area hierarchical policy, is specially:
If this request service of client 01 user is the software release upgrade bag in FOTA project, the whole nation is divided into several region, then opens gradually the FOTA upgrading authority in these regions;
Server 02 can first judge according to server 02 idle condition threshold value, if current server 02 is in idle condition, then skips this strategy, continues subsequent treatment;
If current server 02 is not in idle condition, then according to the location, IP address of user, whether match user has can operating right; If user is not mated, then refuse this request service of client 01 and return result to relative client 01, otherwise then continuing subsequent operation.Such as: the whole nation is divided into 5 regions (A, B, C, D, E), the user at first open place, a-quadrant allows to carry out FOTA updating operation, after 1 week, open B region, opens gradually like this, after 5 weeks, finally reach the user FOTA upgrading authority in open national all regions.
Embodiment six
Fig. 8 is the exemplary block diagram of a kind of large concurrent request processing unit of embodiments of the invention six.As shown in Figure 8, server 02 return result to relative client 01 before, also comprise the second Data Analysis unit 90, carry out Data Format Transform for server 02 pair of result.
Embodiment seven
Fig. 9 is the exemplary block diagram of a kind of large concurrent demand processing system of embodiments of the invention seven.As shown in Figure 9, a kind of large concurrent demand processing system of the present invention, comprising: client 01 and server 02;
Described client 01, for sending request data command to server 02, and the result of reception server 02 pair of request msg order;
The filtration treatment layer process of three grades of different functions is carried out in the request msg order that described server 02 pair of client 01 sends; If not by current filter processing layer, then refuse this request service of client 01 and return result to relative client 01; If have passed three-stage filtration processing layer 50 successively, then, after business logic processing being carried out to this request service of client 01, result is returned to relative client 01.
This programme is according to the difference function of three-stage filtration processing layer 50, formulate effective strategy, filtration treatment is carried out to the request of user, make server 02 under the situation of super large concurrency request, the access request of malicious user and the priority policy according to user can be refused, ensure stability and the availability of server 02, and oepration at full load within the scope of the disposal ability of server 02.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that above-described embodiment method can add required general hardware platform by software and realize, hardware can certainly be passed through, but in a lot of situation, the former is better execution mode.Based on such understanding, technical scheme of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product is stored in a storage medium (as ROM/RAM, magnetic disc, CD), comprising some instructions in order to make a station terminal equipment (can be mobile phone, computer, server 02, air conditioner, or the network equipment etc.) perform method described in each embodiment of the present invention.
These are only the preferred embodiments of the present invention; not thereby the scope of the claims of the present invention is limited; every utilize specification of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.

Claims (10)

1. a large concurrent request processing method, is characterized in that, comprising:
S1, server carry out the filtration treatment layer process of three grades of different functions to the request msg order that client sends;
If S2 is not by current filter processing layer, then refuses this request service of client and return result to relative client; If have passed three-stage filtration processing layer successively, then, after business logic processing being carried out to this request service of client, result is returned to relative client.
2. a kind of large concurrent request processing method according to claim 1, is characterized in that, the filtration treatment layer of described three grades of different functions, comprises single filter processing layer, cascade filtration processing layer and three-stage filtration processing layer;
Described single filter processing layer, for filtering for external condition, comprises server maximum concurrent processing number control strategy, IP address blacklist strategy and internal interface strategy;
Described cascade filtration processing layer, for processing for the data content that client user send, comprises data validation filtration, data integrity is filtered and data format filters;
Described three-stage filtration processor, for processing for the server resource needed for client user, normally can use by limiting to the service condition of various resource the user making only to meet the demands in advance, comprising designated equipment IMEI number strategy and user area hierarchical policy.
3. a kind of large concurrent request processing method according to claim 2, is characterized in that, before carrying out the process of cascade filtration processing layer, also comprises server according to the data format pre-set, and resolves the data that client is sent;
Before carrying out the process of three-stage filtration processing layer, also comprise server and interface authentication verification is carried out to judge whether this user has the rights of using of this service to client, if authentication is not passed through, then refuse this request service of client and return result to relative client, otherwise then continuing subsequent operation;
According to the business function that client user asks, obtain the service resources needed for business function of this request of client.
4. a kind of large concurrent request processing method according to claim 2, is characterized in that, described server maximum concurrent processing number control strategy, is specially:
Pre-set server maximum process number threshold value A, server free threshold value is A*60%;
Server passes through user's number of request of the current present of counters count server, i.e. concurrent processing number B;
If B is greater than A, then refuses this request service of client and return result to relative client, otherwise then continuing subsequent operation;
Described IP address blacklist strategy, is specially:
Limit the access times A in the unit interval section of each client ip address, if exceed the upper limit, then this IP address is added blacklist, wherein blacklist needs periodic maintenance, or needs dynamic resolution except blacklist mechanism;
Every station server example can at local cache counter, for recording the access times B in the unit interval section of each IP address;
If B is greater than A, then refuses this request service of client and return result to relative client, otherwise then continuing subsequent operation; If there is the IP address of specific demand, as the IP address in IP white list, this filter operation can be skipped;
Described internal interface strategy, is specially:
Open to the user of assigned ip address access, if IP address does not mate, then refuse this request service of client and return result to relative client, otherwise then continuing subsequent operation;
Described data validation filters, and is specially:
For filtering illegal equipment vendors and unit type, server database safeguards equipment vendors and the unit type of a combined method, if user's uploading data content is not mated, then refuse this request service of client and return result to relative client, otherwise then continuing subsequent operation;
Described data integrity is filtered, and is specially:
Server, according to the data format pre-set, verification client is sent the integrality of data content, if do not mate, then refuses this request service of client and returns result to relative client, otherwise then continuing subsequent operation;
Described data format filters, and is specially:
For filtering cell-phone number form, equipment I MEI form, if illegal, then refuse this request service of client and return result to relative client, otherwise then continuing subsequent operation;
Described designated equipment IMEI number strategy, is specially:
If this request service of client user is the software release upgrade bag in FOTA project, the IMEI list of the scalable equipment specified by software release upgrade bag, if the IMEI number of subscriber equipment does not mate, then refuse this request service of client and return result to relative client, otherwise then continuing subsequent operation;
Described user area hierarchical policy, is specially:
If this request service of client user is the software release upgrade bag in FOTA project, the whole nation is divided into several region, then opens gradually the FOTA upgrading authority in these regions;
Server can first judge according to server free state threshold, if current server is in idle condition, then skips this strategy, continues subsequent treatment;
If current server is not in idle condition, then according to the location, IP address of user, whether match user has can operating right; If user is not mated, then refuse this request service of client and return result to relative client, otherwise then continuing subsequent operation.
5. a kind of large concurrent request processing method according to claim 1, is characterized in that, server return result to relative client before, also comprise:
Server carries out Data Format Transform to result.
6. a large concurrent request processing unit, is characterized in that, comprising:
Classified filtering unit, carries out the filtration treatment layer process of three grades of different functions to the request msg order that client sends for server;
Filter result processing unit, if for not by current filter processing layer, then refuse this request service of client and return result to relative client; If have passed three-stage filtration processing layer successively, then, after business logic processing being carried out to this request service of client, result is returned to relative client.
7. a kind of large concurrent request processing unit according to claim 6, is characterized in that, the filtration treatment layer of described three grades of different functions, comprises single filter processing layer, cascade filtration processing layer and three-stage filtration processing layer;
Described single filter processing layer, for filtering for external condition, comprises server maximum concurrent processing number control strategy, IP address blacklist strategy and internal interface strategy;
Described cascade filtration processing layer, for processing for the data content that client user send, comprises data validation filtration, data integrity is filtered and data format filters;
Described three-stage filtration processor, for processing for the server resource needed for client user, normally can use by limiting to the service condition of various resource the user making only to meet the demands in advance, comprising designated equipment IMEI number strategy and user area hierarchical policy.
8. a kind of large concurrent request processing unit according to claim 7, it is characterized in that, before carrying out the process of cascade filtration processing layer, also comprise the first Data Analysis unit, for server according to the data format pre-set, resolve the data that client is sent;
Before carrying out the process of three-stage filtration processing layer, also comprise: interface authenticating unit and service resources acquiring unit, described interface authenticating unit, for server, interface authentication verification is carried out to judge whether this user has the rights of using of this service to client, if authentication is not passed through, then refuse this request service of client and return result to relative client, otherwise then continuing subsequent operation;
Described service resources acquiring unit, for the business function of asking according to client user, obtains the service resources needed for business function of this request of client.
9. a kind of large concurrent request processing unit according to claim 7, is characterized in that, described server maximum concurrent processing number control strategy, is specially:
Pre-set server maximum process number threshold value A, server free threshold value is A*60%;
Server passes through user's number of request of the current present of counters count server, i.e. concurrent processing number B;
If B is greater than A, then refuses this request service of client and return result to relative client, otherwise then continuing subsequent operation;
Described IP address blacklist strategy, is specially:
Limit the access times A in the unit interval section of each client ip address, if exceed the upper limit, then this IP address is added blacklist, wherein blacklist needs periodic maintenance, or needs dynamic resolution except blacklist mechanism;
Every station server example can at local cache counter, for recording the access times B in the unit interval section of each IP address;
If B is greater than A, then refuses this request service of client and return result to relative client, otherwise then continuing subsequent operation; If there is the IP address of specific demand, as the IP address in IP white list, this filter operation can be skipped;
Described internal interface strategy, is specially:
Open to the user of assigned ip address access, if IP address does not mate, then refuse this request service of client and return result to relative client, otherwise then continuing subsequent operation;
Described data validation filters, and is specially:
For filtering illegal equipment vendors and unit type, server database safeguards equipment vendors and the unit type of a combined method, if user's uploading data content is not mated, then refuse this request service of client and return result to relative client, otherwise then continuing subsequent operation;
Described data integrity is filtered, and is specially:
Server, according to the data format pre-set, verification client is sent the integrality of data content, if do not mate, then refuses this request service of client and returns result to relative client, otherwise then continuing subsequent operation;
Described data format filters, and is specially:
For filtering cell-phone number form, equipment I MEI form, if illegal, then refuse this request service of client and return result to relative client, otherwise then continuing subsequent operation;
Described designated equipment IMEI number strategy, is specially:
If this request service of client user is the software release upgrade bag in FOTA project, the IMEI list of the scalable equipment specified by software release upgrade bag, if the IMEI number of subscriber equipment does not mate, then refuse this request service of client and return result to relative client, otherwise then continuing subsequent operation;
Described user area hierarchical policy, is specially:
If this request service of client user is the software release upgrade bag in FOTA project, the whole nation is divided into several region, then opens gradually the FOTA upgrading authority in these regions;
Server can first judge according to server free state threshold, if current server is in idle condition, then skips this strategy, continues subsequent treatment;
If current server is not in idle condition, then according to the location, IP address of user, whether match user has can operating right; If user is not mated, then refuse this request service of client and return result to relative client, otherwise then continuing subsequent operation;
Server return result to relative client before, also comprise the second Data Analysis unit, for server, Data Format Transform carried out to result.
10. a large concurrent demand processing system, is characterized in that, comprising: client and server;
Described client, for sending request data command to server, and reception server is to the result of request msg order;
Described server carries out the filtration treatment layer process of three grades of different functions to the request msg order that client sends; If not by current filter processing layer, then refuse this request service of client and return result to relative client; If have passed three-stage filtration processing layer successively, then, after business logic processing being carried out to this request service of client, result is returned to relative client.
CN201510317296.4A 2015-06-10 2015-06-10 Method, device and system for processing high-concurrent requests Pending CN105100059A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510317296.4A CN105100059A (en) 2015-06-10 2015-06-10 Method, device and system for processing high-concurrent requests

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510317296.4A CN105100059A (en) 2015-06-10 2015-06-10 Method, device and system for processing high-concurrent requests

Publications (1)

Publication Number Publication Date
CN105100059A true CN105100059A (en) 2015-11-25

Family

ID=54579606

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510317296.4A Pending CN105100059A (en) 2015-06-10 2015-06-10 Method, device and system for processing high-concurrent requests

Country Status (1)

Country Link
CN (1) CN105100059A (en)

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105471892A (en) * 2015-12-28 2016-04-06 湖南蚁坊软件有限公司 User behavior frequency limiting method based on system resources
CN106506451A (en) * 2016-09-30 2017-03-15 百度在线网络技术(北京)有限公司 The processing method and processing device of malicious access
CN106790674A (en) * 2017-01-25 2017-05-31 杭州淘淘搜科技有限公司 A kind of Agent cluster service system and method based on ADSL
CN106936921A (en) * 2017-04-06 2017-07-07 福建新大陆软件工程有限公司 A kind of network request buffered method and system
CN107204977A (en) * 2017-05-23 2017-09-26 努比亚技术有限公司 Interface security method of calibration and device, computer-readable recording medium
CN107302459A (en) * 2017-07-03 2017-10-27 口碑控股有限公司 Method for processing business and system
CN108259526A (en) * 2016-12-28 2018-07-06 阿里巴巴集团控股有限公司 A kind of data transmission method and device
CN109087055A (en) * 2018-06-06 2018-12-25 北京达佳互联信息技术有限公司 The control method and device of service request
CN109284482A (en) * 2018-10-25 2019-01-29 百度在线网络技术(北京)有限公司 Write plateform system and the article dissemination method for writing platform
CN109461045A (en) * 2018-09-26 2019-03-12 中国平安人寿保险股份有限公司 Order method of payment, system, computer equipment and storage medium
CN109522472A (en) * 2018-09-30 2019-03-26 中国农业大学烟台研究院 A kind of user's intention estimation method
CN109729060A (en) * 2018-03-01 2019-05-07 中国平安财产保险股份有限公司 Processing method, device and the equipment that declaration form is singly requested out
CN110120963A (en) * 2018-02-06 2019-08-13 阿里巴巴集团控股有限公司 A kind of data processing method, device, equipment and machine readable media
CN111147509A (en) * 2019-12-30 2020-05-12 北京三快在线科技有限公司 Network isolation method, device, server and storage medium
CN113949563A (en) * 2021-10-15 2022-01-18 傲普(上海)新能源有限公司 Data server resource access control method based on strategy
CN115022171A (en) * 2022-06-16 2022-09-06 平安普惠企业管理有限公司 Optimization method and device for updating interface, electronic equipment and readable storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1495634A (en) * 2002-06-27 2004-05-12 上海汉唐科技有限公司 Server clustering load balancing method and system
US20040250127A1 (en) * 2003-06-03 2004-12-09 Scoredos Eric C. System for controlling client-server connection requests
CN1783834A (en) * 2004-11-29 2006-06-07 联想计算机系统技术服务有限公司 Digital control method for fire proof wall Internet protocol address cocurrent connection
US20060182108A1 (en) * 2000-12-21 2006-08-17 Krumel Andrew K Methods and systems using PLD-based network communication protocols
CN102231737A (en) * 2011-06-23 2011-11-02 成都市华为赛门铁克科技有限公司 IKE (Internet Key Exchange) consultation control method and equipment
WO2012099762A1 (en) * 2011-01-20 2012-07-26 Motorola Mobility, Inc. Wireless communication device, wireless communication system, and method of routing data in a wireless communication system
CN104023024A (en) * 2014-06-13 2014-09-03 中国民航信息网络股份有限公司 Network defense method and device
CN104270431A (en) * 2014-09-22 2015-01-07 广州华多网络科技有限公司 Method and device for concurrency control

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060182108A1 (en) * 2000-12-21 2006-08-17 Krumel Andrew K Methods and systems using PLD-based network communication protocols
CN1495634A (en) * 2002-06-27 2004-05-12 上海汉唐科技有限公司 Server clustering load balancing method and system
US20040250127A1 (en) * 2003-06-03 2004-12-09 Scoredos Eric C. System for controlling client-server connection requests
CN1783834A (en) * 2004-11-29 2006-06-07 联想计算机系统技术服务有限公司 Digital control method for fire proof wall Internet protocol address cocurrent connection
WO2012099762A1 (en) * 2011-01-20 2012-07-26 Motorola Mobility, Inc. Wireless communication device, wireless communication system, and method of routing data in a wireless communication system
CN102231737A (en) * 2011-06-23 2011-11-02 成都市华为赛门铁克科技有限公司 IKE (Internet Key Exchange) consultation control method and equipment
CN104023024A (en) * 2014-06-13 2014-09-03 中国民航信息网络股份有限公司 Network defense method and device
CN104270431A (en) * 2014-09-22 2015-01-07 广州华多网络科技有限公司 Method and device for concurrency control

Cited By (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105471892B (en) * 2015-12-28 2018-11-20 湖南蚁坊软件股份有限公司 A kind of user behavior frequency method for limiting based on system resource
CN105471892A (en) * 2015-12-28 2016-04-06 湖南蚁坊软件有限公司 User behavior frequency limiting method based on system resources
CN106506451A (en) * 2016-09-30 2017-03-15 百度在线网络技术(北京)有限公司 The processing method and processing device of malicious access
CN106506451B (en) * 2016-09-30 2019-08-27 百度在线网络技术(北京)有限公司 The processing method and processing device of malicious access
CN108259526B (en) * 2016-12-28 2021-04-27 阿里巴巴集团控股有限公司 Data transmission method and device
CN108259526A (en) * 2016-12-28 2018-07-06 阿里巴巴集团控股有限公司 A kind of data transmission method and device
CN106790674A (en) * 2017-01-25 2017-05-31 杭州淘淘搜科技有限公司 A kind of Agent cluster service system and method based on ADSL
CN106936921A (en) * 2017-04-06 2017-07-07 福建新大陆软件工程有限公司 A kind of network request buffered method and system
CN107204977A (en) * 2017-05-23 2017-09-26 努比亚技术有限公司 Interface security method of calibration and device, computer-readable recording medium
CN107204977B (en) * 2017-05-23 2020-11-06 努比亚技术有限公司 Interface security verification method and device and computer readable storage medium
CN107302459A (en) * 2017-07-03 2017-10-27 口碑控股有限公司 Method for processing business and system
CN110120963A (en) * 2018-02-06 2019-08-13 阿里巴巴集团控股有限公司 A kind of data processing method, device, equipment and machine readable media
CN109729060B (en) * 2018-03-01 2021-09-21 中国平安财产保险股份有限公司 Processing method, device and equipment for policy issuing request
CN109729060A (en) * 2018-03-01 2019-05-07 中国平安财产保险股份有限公司 Processing method, device and the equipment that declaration form is singly requested out
CN109087055A (en) * 2018-06-06 2018-12-25 北京达佳互联信息技术有限公司 The control method and device of service request
CN109461045A (en) * 2018-09-26 2019-03-12 中国平安人寿保险股份有限公司 Order method of payment, system, computer equipment and storage medium
CN109522472A (en) * 2018-09-30 2019-03-26 中国农业大学烟台研究院 A kind of user's intention estimation method
CN109284482A (en) * 2018-10-25 2019-01-29 百度在线网络技术(北京)有限公司 Write plateform system and the article dissemination method for writing platform
CN111147509A (en) * 2019-12-30 2020-05-12 北京三快在线科技有限公司 Network isolation method, device, server and storage medium
CN113949563A (en) * 2021-10-15 2022-01-18 傲普(上海)新能源有限公司 Data server resource access control method based on strategy
CN113949563B (en) * 2021-10-15 2023-10-10 傲普(上海)新能源有限公司 Policy-based data server resource access control method
CN115022171A (en) * 2022-06-16 2022-09-06 平安普惠企业管理有限公司 Optimization method and device for updating interface, electronic equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN105100059A (en) Method, device and system for processing high-concurrent requests
CN104883658B (en) The processing method of virtual card information and system
CN104899494A (en) Multifunctional key based operation control method and mobile terminal
CN105159533A (en) Mobile terminal and automatic verification code input method thereof
CN105100476A (en) Device and method for unlocking mobile terminal
CN104660912A (en) Photographing method and photographing device
CN104836915A (en) Method and device for processing screen projection display and mobile terminal
CN104869230A (en) Mobile terminal control method and apparatus
CN104883430A (en) Mobile terminal, processing method of unread superscripts of mobile terminal, and processing device of unread superscripts of mobile terminal
CN105187521A (en) Service processing device and method
CN105704282A (en) Detection method and apparatus for camera
CN104980588A (en) Method and apparatus for detecting state of mobile terminal
CN104899090A (en) Method, apparatus and mobile terminal for rapidly scheduling application process
CN104657181A (en) Method and device for mounting application program
CN105262821A (en) Interface management apparatus and method
CN104636030A (en) Method and device for starting application programs and mobile terminal
CN105159700A (en) Application self-start control apparatus and method
CN105094532A (en) Method and device for data access
CN106791123A (en) User terminal and application processing method
CN105227754A (en) Mobile terminal solution lock control system and method
CN105100412A (en) Method and device for eliminating terminal data
CN104883685A (en) Network access method and device
CN105095051A (en) Method and device for reminding working state of background application program
CN105764085A (en) Abnormal electricity consumption detection method and terminal
CN105101325A (en) Speech switching method, terminal, server and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20151125