CN104022897A - Method for restricting command executing speed of switch - Google Patents

Method for restricting command executing speed of switch Download PDF

Info

Publication number
CN104022897A
CN104022897A CN201410225085.3A CN201410225085A CN104022897A CN 104022897 A CN104022897 A CN 104022897A CN 201410225085 A CN201410225085 A CN 201410225085A CN 104022897 A CN104022897 A CN 104022897A
Authority
CN
China
Prior art keywords
switch
order
speed
command execution
module
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.)
Granted
Application number
CN201410225085.3A
Other languages
Chinese (zh)
Other versions
CN104022897B (en
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.)
Huzhou Yinglie Intellectual Property Operation Co ltd
Original Assignee
Shanghai Feixun Data Communication 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 Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201410225085.3A priority Critical patent/CN104022897B/en
Publication of CN104022897A publication Critical patent/CN104022897A/en
Application granted granted Critical
Publication of CN104022897B publication Critical patent/CN104022897B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Computer And Data Communications (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides a method for restricting command executing speed of a switch, which comprises the steps of: setting a command executing speed threshold value of the switch; calculating current command executing speed of the switch; determining whether the current speed exceeds the threshold value, if yes, stopping command transmission from a switch system management module to a business module, and if not, continuing data transmission from the switch system management module to the business module. According to the method of the invention, the command executing speed threshold value of the switch is set, namely an upper limit of the command executing speed of the switch system is set. If the speed of the command received by the management module exceeds the threshold value, command transmission to the business module for processing is stopped, thereby reducing system load, and preventing severe conditions of damage, shutdown, program error skipping, halting, etc. in the switch system.

Description

The method of restriction switch command execution speed
Technical field
The present invention relates to a kind of method that limits switch command execution speed.
Background technology
The administration module of switch system is the order of being responsible for processing user's input, then resolves.After getting the information of order, if order is correct, will mails to business module corresponding to order, then carry out Business Processing by business module.After business module is finished dealing with, can reply administration module according to the result of processing.The correct order management module of carrying out can be received correctly and reply.
As shown in Figure 1, the execution of order needs twice transmission, and twice wait receives the process of replying.1 that is:, user's input command, then wait for replying of administration module; 2, administration module receives after command process and sends to business module, then latency services module is carried out and received and replys; 3, business module receives orders and processes rear and reply administration module, and last administration module is replied to user again.
Now, the normal problem existing is exactly user's high-frequency ground input command, also do not wait until that business module returns to reply and just send soon Article 2 and a large amount of order below, this makes communicating by letter between administration module and business module produce serious obstruction and business module overload operation, finally can have influence on the operation of other business procedure, seriously can cause the entanglement of switch system program, even occur crash problem.
Summary of the invention
The technical problem that the present invention need solve is to provide a kind of method of restriction switch command execution speed of the pressure of alleviating switch system.
For solving above-mentioned technical problem, the present invention has designed a kind of method that limits switch command execution speed, comprises the following steps: the critical value that switch fill order speed is set; Calculate the exectorial present speed of switch; Judge whether present speed exceedes described critical value, if so, switch system administration module stops sending order to business module, and if not, switch system administration module continues to send order to business module.
Further improve as the present invention, the method for described restriction switch command execution speed also comprises that the situation that present speed is exceeded to described critical value feeds back to user's step.
Further improve as the present invention, if present speed exceedes described critical value, switch system administration module is also made returning and is processed operation.
Further improve as the present invention, described in calculate the exectorial present speed of switch step comprise the following steps: utilize rolling counters forward management module to receive order, obtain receiving the numerical value of order; Get the system clock of switch system; Repeat above two steps, deduct old system clock with new system clock, convert out consuming time, deduct the numerical value of old reception order with the numerical value of new reception order, convert out numerical value poor of the order receiving in time-consuming process, then utilize difference and the exectorial present speed of switch that calculates consuming time of the numerical value of the order receiving in time-consuming process.
Further improve as the present invention, in user's configuration interface order line of switch, critical value is set.
The present invention arranges the critical value of switch fill order speed, i.e. the upper limit of the exectorial speed of switch system.If the speed of the order that administration module receives exceedes critical value, stop sending order to business module processing, to alleviate the pressure of system, avoid occurring the serious situations such as switch system wrecks, card machine, program error redirect, deadlock.
Brief description of the drawings
Fig. 1 is prior art command execution schematic flow sheet;
Fig. 2 is the schematic flow sheet that the present invention limits the method for switch command execution speed.
Embodiment
In order to make relevant technical staff in the field understand better technical scheme of the present invention, below in conjunction with the accompanying drawing of embodiment of the present invention, technical scheme in embodiment of the present invention is clearly and completely described, obviously, described execution mode is only the present invention's part execution mode, instead of whole execution modes.
The invention provides a kind of method that limits switch command execution speed, occur the situation of excess load processing command for limiting the business module of switch system.The system of at utmost protecting switch, exempts from and is damaged, and avoids occurring the serious problems such as card machine, program error redirect, deadlock, guarantees switch safe operation.
As shown in Figure 2, the method for the present embodiment restriction switch command execution speed, comprises following step:
Step 1: the step that the critical value of switch fill order speed is set, critical value is set is in the order line of user's configuration interface of switch and carry out, thereby for user provides command interface, described critical value can be arranged to different values according to the different disposal ability of switch.
Step 2: calculate the exectorial present speed of switch.In the present embodiment, the method for calculating the exectorial present speed of switch comprises: first utilize rolling counters forward management module to receive order, obtain receiving the numerical value of order; Get again the system clock (tich number) of switch system; Repeat above two steps, obtain two groups of data, the numerical value of the numerical value of old reception order and new reception order, old system clock and new system clock, deduct old system clock with new system clock, convert out consuming time, deduct the numerical value of old reception order with the numerical value of new reception order, convert out numerical value poor of the order receiving in time-consuming process, then utilize difference and the exectorial present speed of switch that calculates consuming time of the numerical value of the order receiving in time-consuming process.The system clock (tich number) that rolling counters forward of the present invention obtains receiving the numerical value of order and gets switch system is always in repetitive cycling, above-mentioned new and old two groups of data are also in real-time update, thereby the exectorial present speed of switch calculating is also ceaselessly upgrading.
Step 3: after obtaining the exectorial present speed of switch, can judge whether present speed exceedes described critical value, if so, switch system administration module stops sending order to business module, and carry out and return to operation, reduce the heavy burdens thereby can be business module; If not, switch system administration module continues to send order to business module,, the exectorial present speed of switch does not exceed described critical value, prove that business module is also within bearing the limit of power of processing command, thereby, according to normal procedure, switch system administration module can send to business module by order, is carried out and is processed by business module.
In the present embodiment, in the time that the exectorial present speed of switch exceedes described critical value, administration module also can feed back to user by this situation, plays forewarning function, after user learns, gets final product halt input or delays input command.
Use the present invention to limit the method for switch command execution speed, the implementation of order is: first, user is input command on switch, receive order by administration module, if present speed exceedes critical value, administration module returns, stops sending order to business module, thereby alleviate the pressure of business module, meanwhile, administration module also can be replied this situation to user, allows user know the situation.If present speed does not exceed critical value, administration module, according to normal procedure, sends order to business module, and business module receives command execution processing, then replys to administration module according to the result of processing, and administration module is replied to user again.
Below only expressed one embodiment of the present invention, it describes comparatively concrete and detailed, but can not therefore be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection range of patent of the present invention should be as the criterion with claims.

Claims (5)

1. a method that limits switch command execution speed, is characterized in that, comprises the following steps:
The critical value of switch fill order speed is set;
Calculate the exectorial present speed of switch;
Judge whether present speed exceedes described critical value, if so, switch system administration module stops sending order to business module, and if not, switch system administration module continues to send order to business module.
2. the method for restriction switch command execution speed according to claim 1, is characterized in that, the method for described restriction switch command execution speed also comprises that the situation that present speed is exceeded to described critical value feeds back to user's step.
3. the method for restriction switch command execution speed according to claim 1, is characterized in that, if present speed exceedes described critical value, switch system administration module is also made returning and processed operation.
4. the method for restriction switch command execution speed according to claim 1, is characterized in that,
The described step that calculates the exectorial present speed of switch comprises the following steps:
Utilize rolling counters forward management module to receive order, obtain receiving the numerical value of order;
Get the system clock of switch system;
Repeat above two steps, deduct old system clock with new system clock, convert out consuming time, deduct the numerical value of old reception order with the numerical value of new reception order, convert out numerical value poor of the order receiving in time-consuming process, then utilize difference and the exectorial present speed of switch that calculates consuming time of the numerical value of the order receiving in time-consuming process.
5. the method for restriction switch command execution speed according to claim 1, is characterized in that,
User's configuration interface order line at switch arranges critical value.
CN201410225085.3A 2014-05-26 2014-05-26 Limit the method that interchanger order executes speed Active CN104022897B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410225085.3A CN104022897B (en) 2014-05-26 2014-05-26 Limit the method that interchanger order executes speed

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410225085.3A CN104022897B (en) 2014-05-26 2014-05-26 Limit the method that interchanger order executes speed

Publications (2)

Publication Number Publication Date
CN104022897A true CN104022897A (en) 2014-09-03
CN104022897B CN104022897B (en) 2018-09-28

Family

ID=51439480

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410225085.3A Active CN104022897B (en) 2014-05-26 2014-05-26 Limit the method that interchanger order executes speed

Country Status (1)

Country Link
CN (1) CN104022897B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020143494A1 (en) * 2001-03-28 2002-10-03 Jeff Conrad System for time-bucketing of baselined data collector data
CN101299719A (en) * 2008-06-04 2008-11-05 北京星网锐捷网络技术有限公司 Detection processing method for data flow, central processing unit and switch
CN101600174A (en) * 2009-06-30 2009-12-09 中兴通讯股份有限公司 Flow control methods and equipment in a kind of file handling procedure
CN103812687A (en) * 2012-11-15 2014-05-21 华为技术有限公司 Protective method and device of processor

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020143494A1 (en) * 2001-03-28 2002-10-03 Jeff Conrad System for time-bucketing of baselined data collector data
CN101299719A (en) * 2008-06-04 2008-11-05 北京星网锐捷网络技术有限公司 Detection processing method for data flow, central processing unit and switch
CN101600174A (en) * 2009-06-30 2009-12-09 中兴通讯股份有限公司 Flow control methods and equipment in a kind of file handling procedure
CN103812687A (en) * 2012-11-15 2014-05-21 华为技术有限公司 Protective method and device of processor

Also Published As

Publication number Publication date
CN104022897B (en) 2018-09-28

Similar Documents

Publication Publication Date Title
MX2018010141A (en) Optimistic product order reservation system and method.
BR112016024153A2 (en) Method and system for implementing a wireless digital wallet
WO2014018556A3 (en) Messaging between web applications
WO2012034733A3 (en) Method and arrangement for handling data sets, data processing program and computer program product
MX2014008607A (en) Systems and methods for enabling and disabling operation of manufacturing machines.
EP4283443A3 (en) Robust radar-based gesture-recognition by user equipment
MX2021000359A (en) Control method for user equipment, and user equipment.
MY193270A (en) Method, system, and device for process triggering
MX2017017016A (en) Converter valve fault warning method and system.
WO2012106647A3 (en) System and method for interaction between e-mail/web browser and communication devices
WO2014182787A3 (en) Systems and methods for high fidelity multi-modal out-of-band biometric authentication
MX2020011144A (en) Automated authentication systems and methods including automated waste management system with automated weight ticket and authentication.
US20170134098A1 (en) Method and device for compensating phase deviation
EP3716083A3 (en) Secondary bus communication between devices in an automated transaction machine
SG10201805563WA (en) Method and system for conveyance of machine readable code data via payment network
MX341218B (en) Application monitoring.
CN104022897A (en) Method for restricting command executing speed of switch
CN104714675A (en) Gesture recognition method and device
CN103701154B (en) The machine unit automatic generation control target instruction target word receiving system of generating electricity by way of merging two or more grid systems
WO2013189421A3 (en) Distributed call ticket statistical method, device and system
MX352953B (en) Hardware key system for device protection.
TW201614425A (en) Methods and systems for notification management between an electronic device and a wearable electronic device, and related computer program prodcuts
WO2014085289A3 (en) Data expanse viewer for database systems
CN103632020A (en) Excel budgeting system
EP3915112A4 (en) A system and method for bidirectionally based electrical information storage, processing and communication

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201110

Address after: Room 10242, No. 260, Jiangshu Road, Xixing street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: Hangzhou Jiji Intellectual Property Operation Co.,Ltd.

Address before: 201616 Shanghai city Songjiang District Guangfulin road 4855 Lane 20, No. 90

Patentee before: Phicomm (Shanghai) Co.,Ltd.

EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20140903

Assignee: Hangzhou xiaobuzhixue Information Technology Co.,Ltd.

Assignor: Hangzhou Jiji Intellectual Property Operation Co.,Ltd.

Contract record no.: X2021330000454

Denomination of invention: Method of limiting command execution speed of switch

Granted publication date: 20180928

License type: Common License

Record date: 20211019

EE01 Entry into force of recordation of patent licensing contract
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20140903

Assignee: Hangzhou national software industry base Co.,Ltd.

Assignor: Hangzhou Jiji Intellectual Property Operation Co.,Ltd.

Contract record no.: X2021330000669

Denomination of invention: Method of limiting command execution speed of switch

Granted publication date: 20180928

License type: Common License

Record date: 20211103

EE01 Entry into force of recordation of patent licensing contract
TR01 Transfer of patent right

Effective date of registration: 20221229

Address after: 313000 room 1019, Xintiandi commercial office, Yishan street, Wuxing District, Huzhou, Zhejiang, China

Patentee after: Huzhou YingLie Intellectual Property Operation Co.,Ltd.

Address before: Room 10242, No. 260, Jiangshu Road, Xixing street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee before: Hangzhou Jiji Intellectual Property Operation Co.,Ltd.

TR01 Transfer of patent right