CN105357058A - Method and device for switch port aggregation through physical button - Google Patents
Method and device for switch port aggregation through physical button Download PDFInfo
- Publication number
- CN105357058A CN105357058A CN201510893950.6A CN201510893950A CN105357058A CN 105357058 A CN105357058 A CN 105357058A CN 201510893950 A CN201510893950 A CN 201510893950A CN 105357058 A CN105357058 A CN 105357058A
- Authority
- CN
- China
- Prior art keywords
- configuration file
- physical button
- storage chip
- flash storage
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Input From Keyboards Or The Like (AREA)
Abstract
The invention provides a method and device for switch port aggregation through a physical button, and the method comprises the steps of adding an interruption processing function to a hardware interruption of an input/output tube pin corresponding to the physical button when initializing a switch; reading configuration files in a FLASH storage chip; setting an original state of a static state polymerization set at an upper linked port according to the configuration files; reading the configuration files in the FLASH storage chip when the physical button is pressed; and resetting the static state polymerization set. The device comprises an adding module, a first reading module, a setting module, a second reading module and an adding or deleting module. According to the method and device for switch port aggregation through the physical button, the physical button can be used to add or delete the fixed static state polymerization set directly; the method is direct to non management switches; the work efficiency is raised; and the maintenance cost is saved.
Description
Technical field
The present invention relates to the communications field, particularly relate to a kind of method and apparatus being realized switch ports themselves polymerization by physical button.
Background technology
In low and middle-end switch market, non-management switch has oneself living space.This type of switch does not provide software merit rating interface to user, generally just provides default configuration, does not provide management function.Our way was in the port trunking of software merit rating interface configurations in the past, and software merit rating interface comprises CLI, WEB even SNMP.Under non-management switch, this several mode all can not be supplied to user, so cannot complete the function arranging port trunking.But in some specific scene, first line of a couplet port is had to the demand of configuration aggregation port.Therefore, a kind of technical scheme realizing fixed port polymerizable functional for non-management switch is provided, becomes current problem demanding prompt solution.
Summary of the invention
In view of the above problems, the application describes a kind of method being realized switch ports themselves polymerization by physical button, and described method comprises step:
When described initialization switch, add interrupt processing function in the hardware interrupts of the I/O pin corresponding to described physical button;
Read the configuration file in FLASH storage chip;
The initial condition of the static polymerization group of first line of a couplet port is set according to described configuration file;
After user presses described physical button, read the described configuration file in described FLASH storage chip;
Reset described static polymerization group.
Preferably, the process resetting described static polymerization group comprises step:
Change described configuration file, and the described configuration file after change is saved in described FLASH storage chip;
Read current described configuration file;
Described static polymerization group is reset according to described configuration file.
Preferably, the process resetting described static polymerization group according to described configuration file comprises step: add according to described configuration file or delete described static polymerization group.
Preferably, the process of adding described static polymerization group comprises the described first line of a couplet port arrangement of two 10,000,000,000 in a described static polymerization group.
Preferably, described switch is non-management switch.
Present invention also offers a kind of equipment being realized switch ports themselves polymerization by physical button, described equipment comprises:
Add module, in order to add in the hardware interrupts of the I/O pin corresponding to interrupt processing function to described physical button;
First read module, is connected respectively at described interpolation module and FLASH storage chip, in order to read the described configuration file in FLASH storage chip;
Module is set, is connected with described first read module, in order to arrange the initial condition of the static polymerization group of first line of a couplet port according to described configuration file;
Second read module, is connected with described FLASH storage chip, is used to read described configuration file after user presses described physical button;
Add or removing module, be connected with described second read module and described FLASH storage chip respectively, in order to add or to delete described static polymerization group.
Preferably, described interpolation or removing module comprise:
Changing unit, is connected with described second read module and described FLASH storage chip respectively, in order to change described configuration file and to be saved in described FLASH storage chip by the described configuration file after change;
Reading unit, is connected with described changing unit, in order to read current described configuration file;
Setting unit, is connected with described reading unit, in order to add according to described configuration file or to delete described static polymerization group
Technique scheme tool has the following advantages or beneficial effect: the method and apparatus being realized switch ports themselves polymerization by physical button, mainly for the switch of non-management, directly provide physical button to add or delete fixing static polymerization group, very direct for non-management switch, improve operating efficiency, save maintenance cost.
Accompanying drawing explanation
With reference to appended accompanying drawing, to describe embodiments of the invention more fully.But, appended accompanying drawing only for illustration of and elaboration, do not form limitation of the scope of the invention.
Fig. 1 is a kind of flow chart one being realized the method for switch ports themselves polymerization by physical button of the present invention;
Fig. 2 be the present invention a kind of by physical button realize switch ports themselves polymerization the flowchart 2 of method;
Fig. 3 is a kind of structural representation one being realized the equipment of switch ports themselves polymerization by physical button of the present invention;
Fig. 4 is a kind of structural representation two being realized the equipment of switch ports themselves polymerization by physical button of the present invention.
Embodiment
Below in conjunction with the drawings and specific embodiments to the present invention a kind of by physical button realize switch ports themselves polymerization method and apparatus be described in detail.
Embodiment one
As shown in Figure 1, a kind of method being realized switch ports themselves polymerization by physical button, comprises step:
When initialization switch, add interrupt processing function in the hardware interrupts of GPIO (GeneralPurposeInputOutput, the universal input/output) pin corresponding to described physical button;
Read the configuration file (i.e. trunk configuration file) in FLASH storage chip;
The initial condition of the static polymerization group of first line of a couplet port is set;
After user presses described physical button, read the described trunk configuration file in described FLASH storage chip;
Add or delete described static polymerization group.
Specifically, when pbx switch initialization, first to add interrupt processing function in the hardware interrupts of the GPIO pin corresponding to described physical button.It is worthy of note, after user presses described physical button, described interrupt processing function can send an asynchronous signal to CPU, and CPU operates accordingly according to this asynchronous signal.After adding interrupt processing function, need to read trunk configuration file from FLASH storage chip, then the initial condition of static polymerization group is set according to this trunk configuration file.But after user presses described physical button, exchange opportunity calls the trunk configuration file in FLASH storage chip, and adds or deletion action described static polymerization group according to described trunk configuration file.
As shown in Figure 2, wherein, add or delete described static polymerization group and comprise step:
Change trunk configuration file, and the trunk configuration file after change is saved in described FLASH storage chip;
Read current trunk configuration file;
The state of the described static polymerization group of first line of a couplet port is set according to described trunk configuration file, namely adds or delete described static polymerization group.
Specifically, after user presses described physical button, exchange opportunity reads the trunk configuration file in FLASH storage chip, then changes described trunk configuration file, and is again stored in described FALSH storage chip by the trunk configuration file after change.Switch reads the trunk configuration file after change again, and resets the state of described static polymerization group according to described trunk configuration file.It is worthy of note, the state resetting described static polymerization group comprises adds or deletes described static polymerization group.If after switch starts, there is not described static polymerization group, corresponding to then original in FLASH storage chip trunk configuration file is do not arrange static polymerization group, trunk configuration file so after change is for arranging static polymerization group, so switch can carry out the setting of static polymerization group automatically after reading the trunk configuration file after changing; If after switch starts, described static polymerization group is there is in switch, corresponding to then original in FALSH storage chip trunk configuration file is arrange static polymerization group, trunk configuration file so after change is for deleting described static polymerization group, so switch can delete described static polymerization group after reading the trunk configuration file configuration file after changing.In addition, in the present embodiment, last configuration can be preserved after switch power-down rebooting, namely after switch power-down rebooting, the trunk configuration file that FLASH storage chip stores can not change, then restart rear described switch and call described trunk configuration file, achieve and preserve last configuration.
The present invention mainly provides a kind of method being realized switch ports themselves polymerization by physical button.Non-management switch does not provide management function to user, and after switch powers on, configuration would not be changed.But in some specific scene, first line of a couplet port is had to the demand of configuration aggregation port, some needs configured port aggregation group, some needs again to delete port trunking group.In this case, walk around software interface, the function directly realizing port trunking by physical button is that one is preferably selected.This non-management switch has two 10,000,000,000 upper united mouths, and the present invention provides a physical button in switch outside, presses this button, then software configures these two 10,000,000,000 mouthfuls automatically in a static polymerization group; Again press this button, software can delete this static polymerization group.
The method of switch ports themselves polymerization is realized by physical button, mainly for the switch of non-management, directly provide physical button to add or delete fixing static polymerization group, very direct for non-management switch, improve operating efficiency, save maintenance cost.
Embodiment two
According to a kind of method being realized switch ports themselves polymerization by physical button that embodiment one provides, the present embodiment proposes a kind of equipment being realized switch ports themselves polymerization by physical button.
As shown in Figure 3, a kind of equipment being realized switch ports themselves polymerization by physical button, being comprised:
Add module, in order to add in the hardware interrupts of the GPIO pin corresponding to interrupt processing function to described physical button;
First read module, is connected with described interpolation module and FLASH storage chip respectively, in order to read the trunk configuration file in FLASH storage chip;
Module is set, is connected with described first read module, in order to arrange the initial condition of the static polymerization group of first line of a couplet port according to described trunk configuration file;
Second read module, is connected with described FLASH storage chip, and after user presses described button, described second read module reads the described trunk configuration file in described FLASH storage chip;
Add or removing module, be connected with described second read module and described FLASH storage chip respectively, in order to add or to delete described static polymerization group;
Specifically, when pbx switch initialization, add module and add interrupt processing function to the GPIO (GeneralPurposeInputOutput corresponding to described physical button, universal input/output) pin hardware interrupts in, then the first read module reads the trunk configuration file in FLASH storage chip, and by arranging the initial condition of static polymerization group of module installation first line of a couplet port.After user presses described physical button, second read module reads the described trunk configuration file in described FLASH storage chip, finally by add or removing module adds or deletes described static polymerization group, thus achieve the configuration of physical button to the static polymerization group of non-management switch.
Wherein, as shown in Figure 4, described interpolation or removing module comprise:
Changing unit, is connected with described second read module and described FLASHA storage chip respectively, in order to change trunk configuration file, and is saved in described FLASH storage chip by the trunk configuration file after change;
Reading unit, is connected with described changing unit, in order to read current trunk configuration file;
Setting unit, with described reading unit, in order to arrange the state of the described static polymerization group of first line of a couplet port according to described trunk configuration file, namely adds or deletes described static polymerization group.
Specifically, read the described trunk configuration file in described FLASH storage chip when the second read module after, changing unit changes the state of trunk configuration file, and is saved in described FLASH storage chip.Then current trunk configuration file is read by reading unit, setting unit arranges the state of the described static polymerization group of first line of a couplet port according to described trunk configuration file, namely add or delete described static polymerization group, thus achieving the configuration of physical button to the static polymerization group of non-management switch.
Physical button realizes the equipment of switch ports themselves polymerization, be arranged on the switch of non-management, directly provide physical button to add or delete fixing static polymerization group, very direct for non-management switch, improve operating efficiency, save maintenance cost.
For a person skilled in the art, after reading above-mentioned explanation, various changes and modifications undoubtedly will be apparent.Therefore, appending claims should regard the whole change and correction of containing true intention of the present invention and scope as.In Claims scope, the scope of any and all equivalences and content, all should think and still belong to the intent and scope of the invention.
Claims (7)
1. realized a method for switch ports themselves polymerization by physical button, it is characterized in that, described method comprises step:
When described initialization switch, add interrupt processing function in the hardware interrupts of the I/O pin corresponding to described physical button;
Read the configuration file in FLASH storage chip;
The initial condition of the static polymerization group of first line of a couplet port is set according to described configuration file;
After user presses described physical button, read the described configuration file in described FLASH storage chip;
Reset described static polymerization group.
2. the method being realized switch ports themselves polymerization by physical button according to claim 1, it is characterized in that, the process resetting described static polymerization group comprises step:
Change described configuration file, and the described configuration file after change is saved in described FLASH storage chip;
Read current described configuration file;
Described static polymerization group is reset according to described configuration file.
3. the method being realized switch ports themselves polymerization by physical button according to claim 2, it is characterized in that, the process resetting described static polymerization group according to described configuration file comprises step: add according to described configuration file or delete described static polymerization group.
4. the method being realized switch ports themselves polymerization by physical button according to claim 3, it is characterized in that, the process of adding described static polymerization group comprises the described first line of a couplet port arrangement of two 10,000,000,000 in a described static polymerization group.
5. the method being realized switch ports themselves polymerization by physical button according to claim 1, it is characterized in that, described switch is non-management switch.
6. realized an equipment for switch ports themselves polymerization by physical button, it is characterized in that, described equipment comprises:
Add module, in order to add in the hardware interrupts of the I/O pin corresponding to interrupt processing function to described physical button;
First read module, is connected respectively at described interpolation module and FLASH storage chip, in order to read the described configuration file in FLASH storage chip;
Module is set, is connected with described first read module, in order to arrange the initial condition of the static polymerization group of first line of a couplet port according to described configuration file;
Second read module, is connected with described FLASH storage chip, is used to read described configuration file after user presses described physical button;
Add or removing module, be connected with described second read module and described FLASH storage chip respectively, in order to add or to delete described static polymerization group.
7. the equipment being realized switch ports themselves polymerization by physical button according to claim 6, it is characterized in that, described interpolation or removing module comprise:
Changing unit, is connected with described second read module and described FLASH storage chip respectively, in order to change described configuration file and to be saved in described FLASH storage chip by the described configuration file after change;
Reading unit, is connected with described changing unit, in order to read current described configuration file;
Setting unit, is connected with described reading unit, in order to add according to described configuration file or to delete described static polymerization group.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510893950.6A CN105357058B (en) | 2015-12-04 | 2015-12-04 | A kind of method and apparatus for realizing switch port polymerization by physical button |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510893950.6A CN105357058B (en) | 2015-12-04 | 2015-12-04 | A kind of method and apparatus for realizing switch port polymerization by physical button |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105357058A true CN105357058A (en) | 2016-02-24 |
CN105357058B CN105357058B (en) | 2018-07-31 |
Family
ID=55332934
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510893950.6A Active CN105357058B (en) | 2015-12-04 | 2015-12-04 | A kind of method and apparatus for realizing switch port polymerization by physical button |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105357058B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105656772A (en) * | 2016-03-09 | 2016-06-08 | 上海斐讯数据通信技术有限公司 | Interchanger port failover polymerization method and system |
CN107959624A (en) * | 2016-10-14 | 2018-04-24 | 雅马哈株式会社 | Communication relay set and method to set up |
CN110912817A (en) * | 2019-12-12 | 2020-03-24 | 太仓市同维电子有限公司 | Production and test method for non-management type switch link aggregation |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070101016A1 (en) * | 2005-10-27 | 2007-05-03 | Boyd William T | Method for confirming identity of a master node selected to control I/O fabric configuration in a multi-host environment |
CN101729262A (en) * | 2009-11-03 | 2010-06-09 | 福建星网锐捷网络有限公司 | Configuration method of non-webmaster type switchboard and non-webmaster type switchboard |
-
2015
- 2015-12-04 CN CN201510893950.6A patent/CN105357058B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070101016A1 (en) * | 2005-10-27 | 2007-05-03 | Boyd William T | Method for confirming identity of a master node selected to control I/O fabric configuration in a multi-host environment |
CN101729262A (en) * | 2009-11-03 | 2010-06-09 | 福建星网锐捷网络有限公司 | Configuration method of non-webmaster type switchboard and non-webmaster type switchboard |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105656772A (en) * | 2016-03-09 | 2016-06-08 | 上海斐讯数据通信技术有限公司 | Interchanger port failover polymerization method and system |
CN105656772B (en) * | 2016-03-09 | 2020-02-04 | 上海斐讯数据通信技术有限公司 | Method and system for aggregating failover of switch ports |
CN107959624A (en) * | 2016-10-14 | 2018-04-24 | 雅马哈株式会社 | Communication relay set and method to set up |
CN107959624B (en) * | 2016-10-14 | 2020-10-27 | 雅马哈株式会社 | Communication relay apparatus and setting method |
CN110912817A (en) * | 2019-12-12 | 2020-03-24 | 太仓市同维电子有限公司 | Production and test method for non-management type switch link aggregation |
Also Published As
Publication number | Publication date |
---|---|
CN105357058B (en) | 2018-07-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106604369B (en) | Terminal equipment with dual-mode switching function | |
AU2023201428B2 (en) | Picture data encoding method and apparatus and picture data decoding method and apparatus | |
JP5559026B2 (en) | Remote management in wireless wide area network using short message service | |
WO2017036156A1 (en) | Terminal reset control method, controller and system | |
CN105357058A (en) | Method and device for switch port aggregation through physical button | |
CN102014021A (en) | Method and device for controlling connection/disconnection of data link | |
CN103116801A (en) | Wireless secure digital (SD) card and implementation method of working mode switch thereof | |
CN103036975B (en) | virtual machine control method and device | |
CN104572485A (en) | Allocation method and device of memory shared by two systems | |
CN204731777U (en) | A kind of multi-function electronic device protective sleeve | |
CN103076961A (en) | Fast application switching method and system | |
CN203070331U (en) | Wireless SD card | |
WO2017107438A1 (en) | Method for controlling reporting of crash data, server and client | |
CN104572180B (en) | The firmware upgrade method and embedded system of a kind of embedded device | |
CN102567295A (en) | Font processing method and device for embedded device | |
CN205305081U (en) | Intelligence drive -by -wire earphone | |
CN205545488U (en) | Side key structure | |
US20120256497A1 (en) | Battery pack and power supply system with the same | |
CN104636287A (en) | Data acquisition device and mobile terminal | |
CN109413262B (en) | Wireless storage management system | |
CN112351465B (en) | Network mode switching method and device | |
CN208607655U (en) | A kind of Multi-channel extension system of single channel USB | |
CN211016967U (en) | Intelligent air switch | |
CN206627942U (en) | The switching device of CPU Starting mode | |
WO2016119283A1 (en) | Method for operating dual-system of terminal, and terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into 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: 20201104 Address after: 318015 no.2-3167, zone a, Nonggang City, no.2388, Donghuan Avenue, Hongjia street, Jiaojiang District, Taizhou City, Zhejiang Province Patentee after: Taizhou Jiji Intellectual Property Operation Co.,Ltd. Address before: 201616 Shanghai city Songjiang District Sixian Road No. 3666 Patentee before: Phicomm (Shanghai) Co.,Ltd. |