CN103685067A - Method and device for dynamically switching egress port queue scheduling modes - Google Patents
Method and device for dynamically switching egress port queue scheduling modes Download PDFInfo
- Publication number
- CN103685067A CN103685067A CN201310610849.6A CN201310610849A CN103685067A CN 103685067 A CN103685067 A CN 103685067A CN 201310610849 A CN201310610849 A CN 201310610849A CN 103685067 A CN103685067 A CN 103685067A
- Authority
- CN
- China
- Prior art keywords
- port
- bitmap
- register
- queue scheduling
- port bitmap
- 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
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Disclosed is a method for dynamically switching egress port queue scheduling modes. The method includes: step 1, storing a port bitmap in a register, wherein the port bitmap is a port which is already linked successfully; step 2, removing the port bitmap from the register; step 3, configuring port queue scheduling modes; step 4, readding the stored port bitmap in the register. After the method is adopted, the register stores the port bitmap which is the port already linked successfully; when a user needs to switching the egress port queue scheduling modes, the port bitmap is removed from the register, in other words, the port which is already linked successfully is delinked, then the port queue scheduling modes are configured, and the port bitmap is readded in the register after configuration is completed, in other words, the port which is originally linked successfully is relinked. The whole process is quite short, normal service forwarding of the user is unaffected, and the problem that the egress port queue scheduling models cannot be switched dynamically is solved.
Description
Technical field
The present invention relates to switch technology field, particularly relate to a kind of method of dynamic switching egress port queue scheduling method.
Background technology
In switching equipment in early days, even have data traffic to pass through in the queue of egress port, also can be by the weighted value of egress port respective queue be become to 0 mode, the scheduling method of this queue is become to SP scheduling method (strict priority scheduling algorithm) from WRR scheduling method (weighting loop scheduling algorithm), and we are referred to as to support dynamically to switch the scheduling method of egress port queue.
When switch is used part exchange chip, due to what use, be new scheduling architecture, do not support dynamically to switch egress port queue scheduling method.If while having data traffic to pass through in the queue of egress port, now switch the scheduling method of egress port queue, will cause this port data flow obstructed, and no matter through how long, this port can not recover normal forwarding state automatically, only restarts switch and just can make this port recover normal.
User is according to the needs of oneself, in the time will changing the scheduling method of egress port queue, must be by artificial the cutting off of the flow of this port, even, the port lines of need to the source of pulling out giving out a contract for a project, can cause like this port link state in not having to connect for a long time, lose mass data bag, directly affect normally carrying out of important service.For this reason, the present invention is directed to this chip and propose a kind of method that solves this drawback, support dynamically to switch egress port queue scheduling method, user can be switched arbitrarily the scheduling method of egress port queue at any time according to the needs of oneself.
Summary of the invention
Based on this, be necessary to provide a kind of method of dynamic switching egress port queue scheduling method, comprising:
Step 1: preserve port bitmap in register, described port bitmap is for linking successful port;
Step 2: described port bitmap is removed from register;
Step 3: configured port queue scheduling pattern;
Step 4: the port bitmap of preservation is added back to described register again.
The present invention also provides a kind of device of dynamic switching egress port queue scheduling method, comprising:
Register, preserves port bitmap;
The interpolation of port bitmap removes unit, be connected with described register, described port bitmap is removed or add described register to, after described register is preserved port bitmap, remove described port bitmap, after Port Scheduling dispensing unit configured port queue scheduling pattern, described port bitmap is added back to described register;
Port Scheduling dispensing unit, removes unit with described port bitmap interpolation and is connected, configured port queue scheduling pattern.
Adopt after the inventive method, register is preserved port bitmap, linked successful port, when user need to be switched egress port queue scheduling method, port bitmap is removed from described register, linking successful port, go link, then configured port queue scheduling pattern, after completing configuration, again port bitmap is added back to described register, allow the successful port of original link again chain, whole process is very of short duration, the regular traffic that does not affect user forwards, solved the problem that can not dynamically switch egress port queue scheduling method.
Accompanying drawing explanation
Fig. 1 is the flow chart of an embodiment of method of dynamic switching egress port queue scheduling method provided by the invention;
Fig. 2 is the schematic diagram of an embodiment of device of dynamic switching egress port queue scheduling method provided by the invention.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is described in more detail.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
Consult Fig. 1, the method for the dynamic switching egress port queue scheduling method of an embodiment provided by the invention, comprising:
Step S10, preserves port bitmap in register, and port bitmap is for linking successful port;
Port bitmap, for linking successful port, in fact, is stored in the port in register, and system is success to link.
Step S20: port bitmap is removed from register;
Step S30: configured port queue scheduling pattern;
Configured port queue scheduling pattern is the switching of port queue scheduling method, port queue scheduling method comprises and is not limited to WRR scheduling method (weighting loop scheduling algorithm) and SP scheduling method (strict priority scheduling algorithm), for example current port queue scheduling method is WRR, think now that configured port queue scheduling pattern is SP, input a port switching queue scheduling mode command, be switched to SP pattern.
Step S40: the port bitmap of preservation is added back to register again.
Configure after port queue scheduling method, original port bitmap of preserving that do not switch is added back to register again, allow the successful port of original link again chain.
In addition, the present invention also provides a kind of device of dynamic switching egress port queue scheduling method, comprising:
Register 10, preserves port bitmap;
Port bitmap, for linking successful port, in fact, is stored in the port in register, and system is success to link.
The interpolation of port bitmap removes unit 20, be connected with described register, described port bitmap is removed or add described register to, after described register is preserved port bitmap, remove described port bitmap, after Port Scheduling dispensing unit configured port queue scheduling pattern, described port bitmap is added back to described register;
Port Scheduling dispensing unit 30, removes unit with the interpolation of port bitmap and is connected 20, configured port queue scheduling pattern.
Port queue scheduling method comprises and is not limited to WRR scheduling method (weighting loop scheduling algorithm) and SP scheduling method (strict priority scheduling algorithm), for example current port queue scheduling method is WRR, think now that configured port queue scheduling pattern is SP,, by Port Scheduling dispensing unit transmitting order to lower levels, be switched to SP pattern.
Adopt after the inventive method, register is preserved port bitmap, linked successful port, when user need to be switched egress port queue scheduling method, port bitmap is removed from described register, linking successful port, go link, then configured port queue scheduling pattern, after completing configuration, again port bitmap is added back to described register, allow the successful port of original link again chain, whole process is very of short duration, the regular traffic that does not affect user forwards, solved the problem that can not dynamically switch egress port queue scheduling method.
The above embodiment has only expressed several execution mode of the present invention, and 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 (2)
1. dynamically switch a method for egress port queue scheduling method, it is characterized in that, comprising:
Step 1: preserve port bitmap in register, described port bitmap is for linking successful port;
Step 2: described port bitmap is removed from register;
Step 3: configured port queue scheduling pattern;
Step 4: the port bitmap of preservation is added back to described register again.
2. dynamically switch a device for egress port queue scheduling method, it is characterized in that, comprising:
Register, preserves port bitmap;
The interpolation of port bitmap removes unit, be connected with described register, described port bitmap is removed or add described register to, after described register is preserved port bitmap, remove described port bitmap, after Port Scheduling dispensing unit configured port queue scheduling pattern, described port bitmap is added back to described register;
Port Scheduling dispensing unit, removes unit with described port bitmap interpolation and is connected, configured port queue scheduling pattern.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310610849.6A CN103685067B (en) | 2013-11-26 | 2013-11-26 | A kind of method and device of switching at runtime egress port queue scheduling methods |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310610849.6A CN103685067B (en) | 2013-11-26 | 2013-11-26 | A kind of method and device of switching at runtime egress port queue scheduling methods |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103685067A true CN103685067A (en) | 2014-03-26 |
CN103685067B CN103685067B (en) | 2018-03-06 |
Family
ID=50321421
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310610849.6A Expired - Fee Related CN103685067B (en) | 2013-11-26 | 2013-11-26 | A kind of method and device of switching at runtime egress port queue scheduling methods |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103685067B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1716906A (en) * | 2005-07-04 | 2006-01-04 | 清华大学 | Method for realizing comprehensive queue managing method based network processor platform |
CN1798092A (en) * | 2004-12-29 | 2006-07-05 | 中兴通讯股份有限公司 | Fast weighted polling dispatching method, and fast weighted polling despatcher and device |
CN101252536A (en) * | 2008-03-31 | 2008-08-27 | 清华大学 | Router multi-queue data pack buffer management and output queue scheduling system |
CN102437929A (en) * | 2011-12-16 | 2012-05-02 | 华为技术有限公司 | Method and device for de-queuing data in queue manager |
-
2013
- 2013-11-26 CN CN201310610849.6A patent/CN103685067B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1798092A (en) * | 2004-12-29 | 2006-07-05 | 中兴通讯股份有限公司 | Fast weighted polling dispatching method, and fast weighted polling despatcher and device |
CN1716906A (en) * | 2005-07-04 | 2006-01-04 | 清华大学 | Method for realizing comprehensive queue managing method based network processor platform |
CN101252536A (en) * | 2008-03-31 | 2008-08-27 | 清华大学 | Router multi-queue data pack buffer management and output queue scheduling system |
CN102437929A (en) * | 2011-12-16 | 2012-05-02 | 华为技术有限公司 | Method and device for de-queuing data in queue manager |
Also Published As
Publication number | Publication date |
---|---|
CN103685067B (en) | 2018-03-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10686658B1 (en) | Incremental update of the data plane of a hardware forwarding element | |
CN104796957B (en) | Multi-card multi-standby mobile terminal and its Subscriber Identity Module switching method and apparatus | |
CN108616950A (en) | Motion management method, equipment of the core network between Radio Access Network and base station | |
US20170329632A1 (en) | Device scheduling method, task manager and storage medium | |
US20150350049A1 (en) | Method and device for generating cnm | |
US20220004873A1 (en) | Techniques to manage training or trained models for deep learning applications | |
US10757039B2 (en) | Apparatus and method for routing data in a switch | |
CN106020962B (en) | A kind of course control method and terminal device | |
CN104158706A (en) | Method and device of loopback detection | |
US20180192306A1 (en) | Signal output apparatus, board, and signal output method | |
JP2015012580A5 (en) | Reception device, control method, and program | |
CN103685067A (en) | Method and device for dynamically switching egress port queue scheduling modes | |
CN105578505A (en) | State management method of wireless communication module and wireless communication module | |
CN108848015A (en) | Network connection method and device, intelligent equipment and user terminal | |
JP6111680B2 (en) | Signal processing apparatus and programmable logic device configuration method | |
US20170317924A1 (en) | Point-to-Multipoint Service Transmission Method and Apparatus | |
CN104780106B (en) | More example implementation methods and device | |
US10153947B2 (en) | Method, device and system for preventing network node aging | |
CN104038426A (en) | Network switch and data updating method | |
US20140315533A1 (en) | Method and Mobile Terminal for Activating InSIM Chip in Mobile Terminal | |
KR102364386B1 (en) | Electronic device for cyber physical systems and control method thereof | |
US20190369698A1 (en) | Methods and Apparatus for Adaptive Power Profiling in A Baseband Processing System | |
US10063420B2 (en) | Network control apparatus, network system, network control method, and program | |
CN105490909A (en) | Method and device for processing AVF in TRILL network | |
CN110139320A (en) | Service conflict processing method, device, medium and the terminal of more card communicating terminals |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | 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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20180306 Termination date: 20181126 |
|
CF01 | Termination of patent right due to non-payment of annual fee |