A kind of control method of interchanger, system and the interchanger with the system
Technical field
The invention belongs to mobile communication technology network, it is related to a kind of control method and system, more particularly to a kind of exchange
Control method, system and the interchanger with the system of machine.
Background technique
For network management type interchanger in addition to functional area, serial ports is that single plate hardware debugging and positioning problems are the most frequently used, most basic
Interface and most common debugging interface.Generally interchanger front panel RJ45 or DB9 needle is connected to from the corresponding serial ports pin of CPU
Connector.In actual use, the string of interchanger must be connected to by serial port data line by desktop computer or laptop
On mouth connector.In the prior art, have and place one piece of liquid crystal display and five keys in interchanger front panel, be not necessarily to desktop computer
Or interchanger can be simply arranged in laptop.Smart phone has independent behaviour as PC
Make system, independent running space can voluntarily be installed the journey of the third party service providers such as software, game, navigation offer by user
Sequence has outstanding interpersonal interactive interface, etc..
These outstanding features, the use scope of present smart phone as possessed by smart phone have been covered with full generation
Boundary, the deep mode of production and life for changing people.
But the configuration method of existing switch needs external PC machine or laptop in configuration, using PC machine or
Laptop configures.And the instant existing interchanger with liquid crystal display, it is also desirable to it is configured by key thereon,
But due to the front panel limited area of interchanger, the key for configuration again cannot be too many, so can only simply be matched
It sets.
Therefore, how the control method and system of a kind of interchanger to be provided, solve it is in the prior art need to utilize it is external
PC machine or notebook configure interchanger, or can only pass through several key easy configuration interchangers limited in front panel etc.
Many disadvantages have become practitioner in the art's technical problem urgently to be resolved in fact.
Summary of the invention
In view of the foregoing deficiencies of prior art, the purpose of the present invention is to provide a kind of control method of interchanger,
System and interchanger with the system, need to configure in the prior art exchange using external PC machine or notebook for solving
Machine, or can only be by front panel the problem of limited several key easy configuration interchangers.
In order to achieve the above objects and other related objects, the present invention provides a kind of control method of interchanger, is applied to packet
The communication network of interchanger and mobile terminal is included, the control method of the interchanger is the following steps are included: enable interchanger and shifting
Dynamic terminal is shaken hands to establish communication connection;Judge whether the interchanger is in normal operating conditions, if so, performing the next step
Suddenly;If it is not, then showing the abnormal operation information of the interchanger;Configuring cipher key is inputted whether to judge the mobile terminal
With configuration permission;If so, output order input order is to enable user input configuration-direct to configure the work of the interchanger
Make attribute;The step of whether interchanger is in normal operating conditions judged if it is not, then returning;Wherein, judge the exchange
The judgment basis whether machine is in normal operating conditions is the data that whether can be sent mobile terminal according to the interchanger
Packet is complete, and inerrably from source address, i.e. mobile terminal is transferred to destination address, if so, indicating that interchanger is in works normally shape
State, if not, then it represents that interchanger is in abnormal operation.Optionally, the control method of the interchanger further includes display institute
State the normal operating conditions information of interchanger.
Optionally, the normal operating conditions information of the interchanger include the switch network port linking status,
The start-up course of the interchanger;The interchanger normal operating conditions information can be stored in the friendship in the form of text document
In the memory changed planes;The abnormal operation information of the interchanger includes the link interruption of the network port, the friendship
It changes planes power down, the interchanger packet loss.
Optionally, the control method of the interchanger further includes judging whether the interchanger is complete according to user's actual need
At configuration, if so, returning to the step of whether interchanger is in normal operating conditions judged;Refer to if it is not, then returning to output
Enable the step of input order is to enable user input working attributes of the configuration-direct to configure the interchanger.
Optionally, it configures the interchanger and refers to the working attributes for reconfiguring interchanger, the work category of the interchanger
Property includes switch name, switch pin, IP address, subnet mask, default gateway.
Another aspect of the present invention also provides a kind of control system of interchanger, applied to including interchanger and mobile terminal
Communication network, the control system of the interchanger includes: control module of shaking hands, for enable interchanger and mobile terminal shake hands with
Establish communication connection;First judgment module is connect with the control module of shaking hands, for judging whether the interchanger is in just
Normal working condition, if so, calling for inputting the input module of configuring cipher key and for judging whether the mobile terminal has
Configure the second judgment module of permission;If it is not, then calling first for showing the abnormal operation information of the interchanger
Display module;If second judgment module judges that the mobile terminal has configuration permission, continue to call defeated for exporting
Enter the order of configuration-direct and configures the command output module of the working attributes of the interchanger to enable user input configuration-direct;
If second judgment module judges that the mobile terminal does not have configuration permission, the first judgment module is re-called;
Wherein, the first judgment module is configured with for judging whether the interchanger is in the judgment basis of normal operating conditions,
The judgment basis is the data packet that whether can be sent mobile terminal according to the interchanger completely inerrably from source address,
I.e. mobile terminal is transferred to destination address, if so, indicating that interchanger is in normal operating conditions, if not, then it represents that interchanger
In abnormal operation.
Optionally, the control system of the interchanger further include respectively with the first judgment module and the second judgment module
Second display module of connection, second display module are used to show the normal operating conditions information of the interchanger.
Optionally, the control system of the interchanger further includes the third judgment module connecting with the input module, institute
Third judgment module is stated for judging whether the interchanger is completed to configure according to user's actual need, if so, re-calling
The first judgment module;If it is not, then re-calling the input module.
Another aspect of the invention also provides a kind of interchanger, and the interchanger includes: the control system of interchanger.
Optionally, the interchanger further include: the ethernet physical layer transmitting-receiving being connect with the control system of the interchanger
Module, for transmitting the data frame of the control system from the interchanger in a manner of bit stream.
As described above, the control method of interchanger of the invention, system and the interchanger with the system, have with following
Beneficial effect:
Control method, system and the interchanger with the system of interchanger of the present invention can pass through mobile terminal
The operating status of interchanger is solved, and configures and manage whenever and wherever possible interchanger without any data line.
Detailed description of the invention
Fig. 1 is shown as the control method flow diagram of interchanger of the invention.
Fig. 2 is shown as the theory structure schematic diagram of the control system of interchanger of the invention.
Fig. 3 is shown as the theory structure schematic diagram of interchanger of the invention.
Component label instructions
The control system of 1 interchanger
11 handshake modules
12 first judgment modules
13 first display modules
14 second display modules
15 command output modules
16 input modules
17 second judgment modules
18 third judgment modules
S1~S7 step
Specific embodiment
Illustrate embodiments of the present invention below by way of specific specific example, those skilled in the art can be by this specification
Other advantages and efficacy of the present invention can be easily understood for disclosed content.The present invention can also pass through in addition different specific realities
The mode of applying is embodied or practiced, the various details in this specification can also based on different viewpoints and application, without departing from
Various modifications or alterations are carried out under spirit of the invention.It should be noted that in the absence of conflict, following embodiment and implementation
Feature in example can be combined with each other.
It should be noted that illustrating the basic structure that only the invention is illustrated in a schematic way provided in following embodiment
Think, only shown in schema then with related component in the present invention rather than component count, shape and size when according to actual implementation
Draw, when actual implementation kenel, quantity and the ratio of each component can arbitrarily change for one kind, and its assembly layout kenel
It is likely more complexity.
Embodiment one
The present embodiment provides a kind of control methods of interchanger, applied to the communication network including interchanger and mobile terminal
Network.Referring to Fig. 1, being shown as the control method flow diagram of interchanger.As shown in Figure 1, the control method of the interchanger
Including the following steps:
S1 enables interchanger and mobile terminal shake hands to establish communication connection.In the present embodiment, the interchanger and movement
Terminal is shaken hands including three-way handshake:
Shake hands for the first time: the mobile terminal sends connection request to the interchanger by radio connection;
Second handshake, after the interchanger receives the connection request that the mobile terminal is sent, if interchanger is agreed to
Connection, then return to confirmation message;
Third time is shaken hands, the mobile terminal after receiving the confirmation message that the interchanger returns again to interchanger to
Another confirmation message is out to establish communication connection between the determination interchanger and the mobile terminal.
S2, judges whether the interchanger is in normal operating conditions, if so, performing the next step rapid S3, executes the step
Step S5 is transferred to after S3;If it is not, thening follow the steps S4, that is, show the abnormal operation information of the interchanger.In this implementation
In example, whether the judgment basis for judging whether the interchanger is in normal operating conditions can will be moved according to the interchanger
For the data packet that dynamic terminal is sent completely inerrably from source address, i.e. mobile terminal is transferred to destination address, if so, indicating exchange
Machine is in normal operating conditions, if not, then it represents that interchanger is in abnormal operation.
S3 shows the normal operating conditions information of the interchanger.The work state information of the interchanger refers to exchange
The various information that machine generates in normal course of operation, generally all can the preserving existence intersection property is changed planes in the form of text document memory
In, such as in Flash, by the dependent instruction of interchanger it is seen that.Generally, the normal operating conditions letter of the interchanger
Breath includes the information such as the start-up course of the linking status of the switch network port, the interchanger.
S4 shows the abnormal operation information of the interchanger.The abnormal operation information of the interchanger includes
The information such as the link interruption of the network port, the interchanger power down, the interchanger packet loss.
S5 inputs configuring cipher key and judges whether the mobile terminal there is configuration to weigh according to the password of input
Limit;If so, thening follow the steps S6;If it is not, then return step S2, i.e. return judge whether the interchanger is in normal work shape
The step of state.In the present embodiment, judge whether the mobile terminal has the foundation of configuration permission for the configuration of judgement input
Whether key and the web-privilege password Web being pre-stored in the interchanger are consistent, if unanimously, then it represents that and mobile terminal has configuration permission,
If inconsistent, then it represents that mobile terminal does not have configuration permission.It and be interchanger configuration permission is for switch management
With the consideration of safety.For example, built-in 16 grades of Permission Levels, the range of Permission Levels are from 0 to 15, often in cisco switch
Its password can be separately configured in a Permission Levels;Rank 15 possesses the permission of highest level, provides to the complete access right of interchanger
Limit;And the order and configuration that rank 0 can use are very limited.
S6, output order input order is to enable user input configuration-direct to configure the working attributes of the interchanger.?
In the present embodiment, the configuration interchanger refers to the working attributes for reconfiguring interchanger, the work category of the interchanger
Property includes switch name, switch pin, IP address, subnet mask, default gateway.Configuring the interchanger is to pass through input
The configuration that relevant configuration instructs to realize interchanger, for example, configuring the creation switch name instruction of certain Cisco's money interchanger
It is instructed with switch pin:
Switch (config) #username (switch name) password (switch pin).
S7 judges whether the interchanger is completed to configure according to user's actual need, if so, return step S2, that is, return
It returns and the step of whether interchanger is in normal operating conditions is judged;If it is not, then return step S6, i.e. return output order are defeated
The step of entering order to enable user input working attributes of the configuration-direct to configure the interchanger, until reaching, user is practical to be needed
Asking terminates the control method.
The control method of interchanger described in the present embodiment can understand the operating status of interchanger by mobile terminal, have no
Any data line is needed to configure and manage whenever and wherever possible interchanger.
Embodiment two
The present embodiment provides a kind of control systems 1 of interchanger, applied to the communication including interchanger and mobile terminal
Network, the mobile terminal are smart phone, tablet computer etc., and in the present embodiment, the mobile terminal is an intelligent hand
Machine.Referring to Fig. 2, being shown as the theory structure schematic diagram of the control system of interchanger.As shown in Fig. 2, the control of the interchanger
System 1 processed includes: handshake module 11, first judgment module 12, the first display module 13, the second display module 14, order output
Module 15, input module 16, the second judgment module 17 and third judgment module 18.
The control module 11 of shaking hands is for enabling interchanger and mobile terminal shake hands to establish communication connection.In the present embodiment
In, the interchanger and mobile terminal are shaken hands including three-way handshake:
Shake hands for the first time: the mobile terminal sends connection request to the interchanger by radio connection;
Second handshake, after the interchanger receives the connection request that the mobile terminal is sent, if interchanger is agreed to
Connection, then return to confirmation message;
Third time is shaken hands, the mobile terminal after receiving the confirmation message that the interchanger returns again to interchanger to
Another confirmation message is out to establish communication connection between the determination interchanger and the mobile terminal.
The handshake module 11 is for completing second handshake.In the present embodiment, it is wrapped in the control module 11 of shaking hands
Wireless communication unit, such as WIFI unit are included, the WIFI unit is configured with antenna, in order to wireless with the mobile terminal
Connection.In the present embodiment, the control module 11 of shaking hands is also used to the communication chain established between interchanger and mobile terminal
Road is maintained and is discharged, and the distribution when interchanger is communicated with multiple mobile terminals, to ruling resource.
The first judgment module 12 connecting with the handshake module 11 is for judging whether the interchanger is in normal work
Make state, if it is not, calling the first display module 13 for showing the abnormal operation information of the interchanger.The exchange
The abnormal operation information of machine includes the link interruption of the network port, the interchanger power down, the interchanger packet loss
Etc. information.If so, call the normal operating conditions information for showing the interchanger with first judgment module 12 and the
Second display module 14 of two judgment modules 17 connection, the command output module 15, the input module 16 and described second
Judgment module 17.The work state information of the interchanger refers to the various information that interchanger generates in normal course of operation,
Generally all can be in the memory that the preserving existence intersection property is changed planes in the form of text document, such as in Flash, referred to by the correlation of interchanger
Enable it is seen that.Generally, the normal operating conditions information of the interchanger includes the link shape of the switch network port
The information such as state, the start-up course of the interchanger.What the input module 16 was used to be exported according to the command output module 15
Order input configuring cipher key.Second judgment module 17 being connect with the command output module 15 and the input module 16
For judging whether the mobile terminal has configuration permission.In the present embodiment, the first judgment module 12, which prestores, sentences
Whether the interchanger that breaks is in the judgment basis of normal operating conditions, and whether which can according to the interchanger
For the data packet that mobile terminal is sent completely inerrably from source address, i.e. mobile terminal is transferred to destination address, if so, indicating
Interchanger is in normal operating conditions, if not, then it represents that interchanger is in abnormal operation.
When second judgment module 17 judges that the mobile terminal has configuration permission, then continue to call the order
Output module 15, the command output module 15 are used to export the order of input configuration-direct to enable user input configuration-direct
Configure the working attributes of the interchanger;Judge that the mobile terminal does not have configuration permission in second judgment module 17
When, that is, the first judgment module 12 is called, rejudges whether the interchanger is in normal operating conditions.In the present embodiment
In, second judgment module 17 prestores the foundation for judging whether the mobile terminal has configuration permission, which is to sentence
Whether the configuring cipher key of disconnected input and the web-privilege password Web being pre-stored in the interchanger are consistent, if unanimously, then it represents that mobile terminal
With configuration permission, if inconsistent, then it represents that mobile terminal does not have configuration permission.It and be interchanger configuration permission is
In switch management and the consideration of safety for example, built-in 16 grades of Permission Levels, the range of Permission Levels are in cisco switch
From 0 to 15, its password can be separately configured in each Permission Levels;Rank 15 possesses the permission of highest level, provides complete to interchanger
Full access authority;And the order and configuration that rank 0 can use are very limited.In the present embodiment, the configuration exchange
Machine refers to the working attributes for reconfiguring interchanger, the working attributes of the interchanger include switch name, switch pin,
IP address, subnet mask, default gateway.Configuring the interchanger is to realize matching for interchanger by the instruction of input relevant configuration
It sets, for example, configuring the creation switch name instruction of certain Cisco's money interchanger and switch pin instruction:
Switch (config) #username (switch name) password (switch pin).
In the present embodiment, if second judgment module 17 judges that the mobile terminal has configuration permission, continue
It calls the order for exporting input configuration-direct and configures the working attributes of the interchanger to enable user input configuration-direct
Command output module 15;If second judgment module 17 judges that the mobile terminal does not have configuration permission, adjust again
With the first judgment module 12.
The third judgment module 18 connecting with the input module 16 and the second judgment module 17 is used for according to user's reality
Whether interchanger described in demand estimation, which is completed, configures, if so, re-calling the first judgment module 12;If it is not, then again
The input module 16 is called to reconfigure the interchanger according to the configuration-direct inputted in the input module 16.
In the present embodiment, it shakes hands in the control system 1 of the interchanger control module 11, first judgment module 12,
One display module 13, the second display module 14, command output module 15, input module 16, the second judgment module 17 and third are sentenced
It is connected between disconnected module 18 using PCIE.
The control system of interchanger described in the present embodiment can make the operating status that interchanger is understood by mobile terminal, and
Interchanger is configured and managed whenever and wherever possible without any data line.
The present embodiment also provides a kind of interchanger 2, referring to Fig. 3, being shown as the theory structure schematic diagram of interchanger.Such as figure
Shown in 3, the interchanger 2 includes the control system 21 of interchanger described above, the control system company with the interchanger
The ethernet physical layer transceiver module 22 connect.The ethernet physical layer transceiver module 22 comes from for being transmitted in a manner of bit stream
The data frame of the control system 21 of the interchanger.
In conclusion the control method of interchanger of the present invention, system and the interchanger with the system can pass through
Mobile terminal understands the operating status of interchanger, and configures and manage whenever and wherever possible interchanger without any data line.So this
Invention effectively overcomes various shortcoming in the prior art and has high industrial utilization value.
The above-described embodiments merely illustrate the principles and effects of the present invention, and is not intended to limit the present invention.It is any ripe
The personage for knowing this technology all without departing from the spirit and scope of the present invention, carries out modifications and changes to above-described embodiment.Cause
This, institute is complete without departing from the spirit and technical ideas disclosed in the present invention by those of ordinary skill in the art such as
At all equivalent modifications or change, should be covered by the claims of the present invention.