CN101247259A - Method for managing low-end switchboard - Google Patents

Method for managing low-end switchboard Download PDF

Info

Publication number
CN101247259A
CN101247259A CNA2007100801828A CN200710080182A CN101247259A CN 101247259 A CN101247259 A CN 101247259A CN A2007100801828 A CNA2007100801828 A CN A2007100801828A CN 200710080182 A CN200710080182 A CN 200710080182A CN 101247259 A CN101247259 A CN 101247259A
Authority
CN
China
Prior art keywords
end switch
low
client
server
switch
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
CNA2007100801828A
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.)
SHENZHEN NEW GREENNET TECHNOLOGIES Co Ltd
Original Assignee
SHENZHEN NEW GREENNET TECHNOLOGIES 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 SHENZHEN NEW GREENNET TECHNOLOGIES Co Ltd filed Critical SHENZHEN NEW GREENNET TECHNOLOGIES Co Ltd
Priority to CNA2007100801828A priority Critical patent/CN101247259A/en
Publication of CN101247259A publication Critical patent/CN101247259A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Communication Control (AREA)

Abstract

Method through management low terminal is provides according to the invention, which includes: logging in the high terminal switch which commands lines input control order at local; established link layer communication channel between the high terminal switch and the low terminal switch transmits the control command to the low terminal switch; and the low terminal switch analysis and execute the control command, and return the performed result to the high terminal switch for output to user. After using the invention, configure command of low terminal switch will not affect upper layer switch, improving flexibility of low terminal switch, and is suitable for the trend of increasingly enhancing switch kinds and increasingly perfect function.

Description

A kind of method of managing low-end switch
Technical field
The present invention relates to a kind of method of managing low-end switch, relate in particular to a kind of method of utilizing layer switch based on the link layer protocol managing low-end switch.
Background technology
Usually, the mode that switch is managed is divided into serial interface management and telecommunication (Telnet) way to manage.When the low-end switch quantity in a certain particular network was big, this dual mode all had problems.Particularly, the problem that serial interface management exists is that when low-end switch One's name is legion and physical location dispersion, the efficiency of management is very low; And the problem that the Telnet management exists is, because the low-end switch of some type is when configuration of IP address not, can't realize the Telnet management, therefore, need distribute an IP address for every low-end switch, this will take the IP address resource of a large amount of preciousnesses for larger network.
In order to address the above problem, people have developed the method that low-end switch is managed by link layer (need not configuration of IP address).For example publication number is to disclose a kind of method that switch is managed by data link layer in the Chinese patent application of CN02116390, and promptly the last layer switch of server end pair is inquired about and/or disposed with the low-end switch of its cascade by data link layer.But, because last layer switch all is solidificated in layer switch to the inquiry and/or the configuration order of low-end switch, along with being increased day by day by the kind of the low-end switch managed, function is perfect day by day, last layer switch need increase corresponding inquiry and/or configuration order at low-end switch newly developed, could realize the management to these low-end switch.
Therefore, need a kind of system and method that can manage low-end switch based on link layer protocol more flexibly.
Summary of the invention
The objective of the invention is to overcome the deficiencies in the prior art, and and then propose a kind ofly based on the link layer communications channel of between high-end switch and low-end switch, setting up, utilize the mode of Telnet or serial ports to send the method for user control command with the control low-end switch.
According to the present invention, a kind of like this method by managing low-end switch is provided, described method can comprise: sign in to described high-end switch, and at the local command line input of control commands; Link layer communications channel based on setting up between described high-end switch and described low-end switch is delivered to described low-end switch with described control command; And described low-end switch resolves and carries out described control command, and the result that will carry out turns back to described high-end switch, to export to the user.
According to an embodiment of the invention, sign in to described high-end switch in the mode of Telnet or serial ports.Wherein, the step of setting up described link layer communications channel between described high-end switch and described low-end switch can comprise: described low-end switch is registered to described high-end switch; And based on described registration, between described high-end switch and low-end switch, set up described link layer communications channel, wherein, described low-end switch has only when belonging to same VLAN with described high-end switch and can be registered to described high-end switch.
Set up communication channel by link layer protocol between high-end switch and low-end switch in the present invention, the use link layer that has therefore kept prior art is set up the advantage that communication channel does not need valuable IP address resource.In addition, the present invention is based on the link layer communications channel of being set up, send in order to control the order of low-end switch to high-end server by the communication protocol of another kind based on Telnet.Like this, last layer switch need not the query configuration command operation of low-end switch all is solidificated in layer switch like that to prior art, need not to understand the order of low-end switch, only the management control to low-end switch can be realized in the local command line interface that needs user (network manager) to be remotely logged into low-end switch.In addition, can not have influence on layer switch to the configuration order of low-end switch, the flexibility that has improved managing low-end switch is applicable to that the kind of the switch of being managed at present increases day by day, the trend that function is perfect day by day.
Description of drawings
Fig. 1 shows the data format that is used for setting up the communication protocol of link layer communications channel according to of the present invention between high-end switch and low-end switch;
Fig. 2 shows in the present invention the data format based on the communication protocol of Telnet that uses;
Fig. 3 shows the data format that the second communication agreement is carried on first communication protocol;
Fig. 4 is the data flow schematic diagram between high-end switch and the low-end switch; And
Fig. 5 is the exemplary process diagram of the realization high-end switch of the example according to the present invention to low-end switch control.
Embodiment
Preferred implementation of the present invention is described below with reference to accompanying drawings.
Usually, the existing method that low-end switch is managed all is based on client end/server end (C/S) pattern.Can follow a certain between the server and client side or various protocols communicates.In this article presented for purpose of illustration, utilize the link layer protocol that is called as GN.Link to communicate between the server and client side, correspondingly, high-end switch is called as the GN.Link server, and low-end switch is called as the GN.Link client.
The GN.Link message comprises destination address, source address, VLAN label, local area network (LAN) type and message content field, as shown in Figure 1.
After high-end switch and low-end switch connect, could manage control to it.Realize by link layer owing to connect,, when describing being connected of setting up between high-end switch and the low-end switch, only describe the interaction between the link layer (that is, GN.Link server and GN.Link client) therefore for the ease of understanding.
The process that connects by the GN.Link agreement between high-end switch and the low-end switch can comprise registration and two processes of handshake process.
In the location registration process process, after the GN.Link server is received logon message from the GN.Link client,, determine whether the Virtual Local Area Network under this client is in same Virtual Local Area Network with it at first according to the VLAN field in the message that receives.If the result who determines belongs to same Virtual Local Area Network, then the GN.Link server extracts and writes down the device-dependent message of this GN.Link client from the message content field of logon message, and send it back to it and should register response message, otherwise this logon message is abandoned.After the GN.Link client was received registration response message from the GN.Link server, the expression client succeeded in registration on server.In other words, the VLAN label in the GN.Link message can realize effectively that VLAN isolates, thereby has strengthened the fail safe of network.
Then, the GN.Link client sends a handshake message every preset time (for example 5 seconds) to the GN.Link server; The GN.Link server is then monitored the handshake message that sends from the GN.Link client, and after receiving the reception handshake message, sends the handshake response message to the GN.Link client.The GN.Link client is shaken hands successfully behind the handshake response message of receiving from the GN.Link server, and the connection between high-end switch and the low-end switch is set up successfully, has just set up the communication channel between high-end switch and the low-end switch.Then high-end switch is controlled and is managed low-end switch based on this communication channel of setting up.
According to one embodiment of the present invention, realize that based on the communication channel of above-mentioned foundation the method for high-end switch management control low-end switch also is based on C/S model, and its communication protocol of following is called as the GN.Tel agreement in this article.The GN.Tel agreement is based on the communication protocol of Telnet, that is, its user can sign in to its client or server end by the mode of Telnet or serial ports, and is carried on link layer protocol, for example above-mentioned GN.Link agreement.Particularly, the GN.Tel server is carried on the GN.Link client, and the GN.Tel client is carried on the GN.Link server.Like this, as user network device management person for example, when signing in to high-end switch by PC in the mode of Telnet (telnet) or serial ports, what see on described PC is exactly the GN.Tel client.
The GN.Tel client can be thought a character receiving terminal, and can receive from any command string of network device management person's input, for example, new line, '? ', ' TAB ', show history command, switch to privileged mode (CTRL_Z), enter debugging mode (CTRL_X/CTRL_Y/CTRL_Q) etc.The GN.Tel client at first encapsulates the command-line string that receives, formation is based on the message (being designated hereinafter simply as the GN.Tel message) of GN.Tel agreement, then this GN.Tel message is delivered to the GN.Link server end, sends to the GN.Link client that is positioned at low-end server after this message further having been encapsulated the message (being designated hereinafter simply as the GN.Link message) of formation based on the GN.Link agreement.
The data format of CN.Tel protocol massages as shown in Figure 2, carried the GN.Tel agreement the GN.Link protocol massages data format as shown in Figure 3.Wherein the CN.Tel protocol massages comprises heading and message body, and heading then comprises GN.Link head, administrative message head, GN.Tel head, mutual flag bit, withdraws from flag bit and follow-up flag bit.Wherein, it is interactive command that mutual flag bit is used to indicate the received message of equipment (high-end switch or low-end switch) that receives message, needs the user input commands character string; Withdrawing from flag bit is used to notify the message that equipment received that receives message for exiting command, requirement returns to the local command line interface of high-end switch from the local command line interface of low-end switch, withdraw from the reciprocal process of the switch of being managed with quilt, the order of key entry is carried out in this locality; Follow-up flag bit also has the character string of follow-up output in order to the notice high-end server.
The GN.Link client receives the GN.Link message from the GN.Tel client, and therefrom extracts the GN.Tel message of loading, gives the GN.Tel server then.
The GN.Tel server can be thought the passage of a bind command row resolver.The GN.Tel server will extract the character string that is encapsulated in wherein from the GN.Tel message that the GN.Link client receives, and the order line resolver that sends to low-end server is resolved.
When the order line resolver is resolved the character string that receives, the character string of exporting is buffered in the buffering area of GN.Tel server, that is, and the buffering area of low-end switch.When the string representation interactive command of order line resolver resolves, the GN.Tel server need be waited for the user inputs character string from the GN.Tel client.After receiving the user inputs character string, the GN.Tel server is provided with the mutual flag bit of GN.Tel header earlier, this is an interactive command in order to notice GN.Tel client, need the user inputs character string (promptly, need the user from high-end server input command character string), then the GN.Tel server is encapsulated as the GN.Tel message with the GN.Tel heading that sets and the character string in its buffering area; If the order of order line resolver resolves is for exiting command, then the GN.Tel server at first is provided with the flag bit that withdraws from of GN.Tel header, this is the exiting command of local command line interface that requires to return to from the local command line interface of low-end switch high-end switch in order to notice GN.Tel client, then the character string in GN.Tel heading and the GN.Tel client buffer district (that is the character string of user's input) is encapsulated as the GN.Tel message.
After the result that low-end server is resolved the order that receives according to its order line resolver carries out corresponding operation, the result of operation is sent to the buffering area of GN.Tel server, to send to high-end switch subsequently.
If string length to be sent in the buffering area of GN.Tel server is excessive, when having surpassed GN.Tel message big or small, the GN.Tel server need send to the GN.Tel client several times with character string.At this moment, the GN.Tel server at first is provided with the follow-up message flag position of GN.Tel header, the character string that also has follow-up output in order to notice GN.Tel client, then according to the character string segmentation in big young pathbreaker's buffering area of GN.Tel message, be encapsulated as a plurality of GN.Tel packets and one of them is delivered to the GN.Link client, send to the GN.Link server by physical interface further to encapsulate formation GN.Link message.
After the GN.Link server received the GN.Link message of GN.Link client transmission, the GN.Tel message that at first will be carried on the GN.Link message extracted, and gives GN.Tel client process then.GN.Tel determines whether to also have follow-up message by judging the flag bit of GN.Tel header.If also have follow-up message, then adopt the communication pattern request of asking-replying to continue to receive follow-up message.If when the GN.Tel server receives from the request of the follow-up message of GN.Tel client requirement continuation reception, continue to send subsequent packet to the GN.Te1 client according to above-mentioned steps.At last, character string " printing " output that the GN.Tel client encapsulates from the GN.Tel message that receives for example outputs on the PC of network device management person's use.Like this, the keeper just can operate and check the configuration of high-end switch and low-end switch by telnet on same computer.
Below with reference to Fig. 5, be example with user (network manager) to the command string that the high-end server input " shows historical ", concrete operations of the present invention are described.
At first at step s100, the user signs in on the high-end switch by network interface (that is, the telnet mode) or serial ports, and at this moment, what the user saw on its PC is exactly the GN.Tel client.
At step s200, the user keys in order in its local command line, makes high-end switch be cut into the GN.tel way to manage.For example, this moment, the user can be to the GN.Tel client input command " show XXXX " that is positioned at high-end switch.
At step s300, when the GN.Tel client receives order " show XXXX ", " show XXXX " is kept at its buffering area as character string.When running into the order final character, for example key operation constantly " carriage return ", " tab ", " upwards (downwards) direction ", then, " show XXXX+ carriage return " sent to the GN.Tel server end based on the link layer communications channel of between the GN.Link of the GN.Link of high-end switch server and low-end switch client, setting up.
At step s400, the order that the GN.Tel server end will receive is delivered to the order line resolver of low-end server and is resolved, then, on low-end server according to the result who resolves, carry out received order " show XXXX ", and execution result is sent to its output buffer.When described server output buffer is filled, execution result is delivered to the GN.Tel client that is positioned at high-end switch.
At step s500 and s600, the result that the GN.Tel client receives will output to user's login interface with the form of character string at last, that is, sign in on the PC interface of high-end switch.
Here, though the transfer of data between high-end switch and the low-end switch is described as directly carrying out between GN.Tel server and GN.Tel client, but as mentioned above, the link layer protocol set up between GN.Link server and the GN.Link client realizes because the transmission data are based on, therefore, it should be appreciated by those skilled in the art, the data flow that passes to low-end switch from high-end switch is in proper order: from " user " to " GN.Tel client ", arrive " GN.Link server " then, then, arrive " GN.Tel server " at last to " GN.Link client "; From low-end switch be: to " GN.Link client ", arrive " GN.Link server " from " GN.Tel server " then, then, arrive " user " at last, as shown in Figure 4 to " GN.Tel client " to the flow sequence that high-end switch transmits data.In addition, the packing of carrying out in each transmission course and the operation of unpacking are technique known, have therefore omitted their concrete operations.
From as can be seen above, effect according to high-end switch of the present invention only is, receive the order input and it is kept in buffering, when running into the order full stop, the order of buffering is sent to low-end switch, and then wait for the result that low-end switch is carried out, and described result is presented at the user signs in to interface on it.And the effect of low-end switch is to operate accordingly according to the command execution that receives, and the result of executable operations is sent to high-end switch.In other words, the order of user input is used in still finally that low-end switch carries out, and has just changed to the channel of low-end switch input command and has changed the whereabouts of exporting exectorial result, thereby satisfied the requirement of telemanagement.
More than with the form of example GN.Tel agreement of the present invention is carried on the GN.Link agreement, yet, the present invention does not limit to therewith, GN.Link agreement of the present invention can be carried on any can be on the link layer protocol that connects between high-end switch and the low-end switch.
Below only preferred implementation of the present invention is described with reference to accompanying drawing; those skilled in the art can be according to open and instruction of the present invention; the present invention is carried out various modifications and is equal to replacement, these modifications and be equal to replacement and should be understood that to fall within the scope of protection of the present invention.

Claims (9)

1. the method for a control and management low-end switch comprises:
Sign in to high-end switch, and at its local command line input of control commands;
Link layer communications channel based on setting up between described high-end switch and described low-end switch is delivered to described low-end switch with described control command; And
Described low-end switch is resolved also and is carried out described control command, and the result that will carry out turns back to described high-end switch, to export to the user.
2. the method for claim 1, wherein sign in to described high-end switch in the mode of Telnet or serial ports.
3. the step of the method for claim 1, wherein setting up described link layer communications channel between described high-end switch and described low-end switch comprises:
Described low-end switch is registered to described high-end switch; And
Based on described registration, between described high-end switch and low-end switch, set up described link layer communications channel,
Wherein, described low-end switch has only when belonging to same VLAN with described high-end switch and can be registered to described high-end switch.
4. the step of the method for claim 1, wherein setting up described link layer communications channel between described high-end switch and described low-end switch also comprises:
The step of between described high-end switch and low-end switch, shaking hands.
5. the method for claim 1, wherein described low-end switch utilizes its order line resolver that described control command is resolved, so that described low-end switch can be carried out corresponding operation based on the result of described parsing.
6. the form that the method for claim 1, wherein described control command is a character string.
7. method by the high-end switch managing low-end switch, described high-end switch comprises first server and second client, and described low-end switch comprises first client and second server, and described method comprises:
Set up communication channel by first communication protocol between described first server and described first client, wherein, described first communication protocol is based on the agreement of link layer;
To the described second client transmitting control commands;
Described second client receives described control command and it is encapsulated as first packet based on the second communication agreement, and sends it to described first server end, and wherein said second communication agreement is the agreement based on Telnet;
Described first server end sends to described first client after described first packet further is encapsulated as second packet based on described first communication protocol;
Described first client will be obtained described first packet that is packaged in wherein from described second packet, and will send it to described second server end; And
Described second server end obtains described control command from described first packet, so that described low-end switch is carried out corresponding order.
8. method as claimed in claim 7 comprises that also the user is to sign in to the step of described second client.
9. method as claimed in claim 7 also comprises:
The result that described low-end switch will be carried out described control command turns back to described high-end switch, to export to described user.
CNA2007100801828A 2007-02-14 2007-02-14 Method for managing low-end switchboard Pending CN101247259A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2007100801828A CN101247259A (en) 2007-02-14 2007-02-14 Method for managing low-end switchboard

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2007100801828A CN101247259A (en) 2007-02-14 2007-02-14 Method for managing low-end switchboard

Publications (1)

Publication Number Publication Date
CN101247259A true CN101247259A (en) 2008-08-20

Family

ID=39947486

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2007100801828A Pending CN101247259A (en) 2007-02-14 2007-02-14 Method for managing low-end switchboard

Country Status (1)

Country Link
CN (1) CN101247259A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105471651A (en) * 2015-12-04 2016-04-06 武汉烽火网络有限责任公司 VLAN synchronization method in two-layer network, local switch and remote switch
CN108616372A (en) * 2016-12-12 2018-10-02 中国航空工业集团公司西安航空计算技术研究所 FC switch status inquiry based on serial ports and control method
CN110912817A (en) * 2019-12-12 2020-03-24 太仓市同维电子有限公司 Production and test method for non-management type switch link aggregation

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105471651A (en) * 2015-12-04 2016-04-06 武汉烽火网络有限责任公司 VLAN synchronization method in two-layer network, local switch and remote switch
CN105471651B (en) * 2015-12-04 2019-03-08 烽火通信科技股份有限公司 VLAN synchronous method, local switch and distant-end switch in a kind of double layer network
CN108616372A (en) * 2016-12-12 2018-10-02 中国航空工业集团公司西安航空计算技术研究所 FC switch status inquiry based on serial ports and control method
CN110912817A (en) * 2019-12-12 2020-03-24 太仓市同维电子有限公司 Production and test method for non-management type switch link aggregation

Similar Documents

Publication Publication Date Title
CN103347013B (en) A kind of OpenFlow network system and method strengthening programmability
CN109561108B (en) Policy-based container network resource isolation control method
CN105765919B (en) It is used for transmission and receives the method and system of packet
US6233543B1 (en) Server and terminal emulator for persistent connection to a legacy host system with printer emulation
CN107786613A (en) Broadband Remote Access Server BRAS forwards implementation method and device
CN100550763C (en) The management method of the network equipment and network management system
CN101360090B (en) Application protocol recognition method
CN106301921A (en) Elephant flow transmission dispatching method based on tunnel and system
CN106375128A (en) Acceleration access method, device and equipment based on PPTP VPN (point to point tunneling protocol virtual private network)
CN110380969A (en) A kind of traffic scheduling method and system based on domain name
CN102546350A (en) Method and device for saving WAN (wide area network) bandwidth in IP (internet protocol) monitoring system
CN108093041A (en) Single channel VDI proxy servers and implementation method
CN101247259A (en) Method for managing low-end switchboard
CN106713024A (en) Batch cluster node management method and system and computer cluster management node
CN109587028A (en) A kind of method and apparatus controlling client traffic
CN1437358A (en) Relay management method of network equipment based on Telnet protocol
CN101242295A (en) A method for managing low-end switch
CN101621528B (en) Conversation system based on Ethernet switch cluster management and method for realizing conversation passage
CN104902007B (en) The method that PPPOE agreements multi-operator accesses shared link
CN108011825B (en) Multi-network equipment interconnection reality method and system based on software defined network
KR20040004724A (en) Wireless LAN service system providing proxy gateway and method thereof
CN113794715B (en) Virtual point-to-point network data transmitting method and system
CN101404606B (en) Packet tunnel packaging structure and network tunnel management method
CN101170502B (en) A method and system for realizing mutual access between stacking members
CN102820946B (en) A kind of method of transmission equipment and its proactive dissemination self information

Legal Events

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

Application publication date: 20080820