A kind of method of low-end switch being carried out remote cluster management
Technical field:
The invention belongs to the computer network data communications field, be specifically related to the solution of the low-end switch of management One's name is legion in the network management scheme.
Background technology:
Broadband IP network will be the basis of future telecommunication network, and it has represented the trend of future communications network.Present wideband IP network solution is mostly based on advanced person's ethernet technology framework, and the Ethernet switch with at a high speed exchange and routing function is the core force who constitutes Ethernet, thereby an important component part in managing the switch of these One's name is legions just ethernet network being managed.
The management of switch can be divided into serial ports (perhaps being called local management) and network interface (telemanagement) dual mode.
For the serial interface management mode, the user need directly link to each other management platform (as notebook computer) with switch by serial ports.This mode is applicable to high-end switch, but is not suitable for low-end switch, because low-end switch quantity is more, and the position relatively disperses, and the efficiency of management is low, and such switch is unpractical by serial interface management.
For the network interface way to manage, be by ICP/IP protocol, for each switch distributes an IP address, can manage all switches, it has advantages such as stable, safe, efficient.The network interface way to manage communicates by TCP/IP, needs system that abundant resource is provided.But to big-and-middle-sized network, be numerous switch distributing IP addresses, will take this valuable resource of a large amount of IP addresses; While can not be installed large-scale software because resource (particularly internal memory) is very limited, and therefore being not suitable for the complicated like this communication protocol of TCP/IP serves as that basic low-end switch to One's name is legion manages.
That Chinese invention patent 97198382 has been announced is a kind of " communication system of being made up of at least two little automatic switch-boards with clustering functionality ".Although this scheme relates to the cluster management of Private Branch Exchange PBX, this scheme is used for the communication of stored-program control exchange transmission sound, belong to phone (exchange or calling) system, and the present invention is used for network switch transmitting network data, belongs to the broadband IP network system.
Summary of the invention:
Safeguard complicated network, the keeper often will take much time and safeguard, the present invention has in mind for the network manager to be provided simple, intelligible operation interface, shield complicated operations, intelligent cluster management function is provided.The object of the invention provides a kind of by many functionally similar low-end switch in the network are divided into a management domain, reaches the method that switch of an operate services end just can be managed all low-end switch in the entire domain.
Technical scheme of the present invention is as follows:
A kind of method of low-end switch being carried out remote cluster management, be that many functionally similar low-end switch in the network are divided into a management domain as client, one runs on the stronger higher-end switch of CPU disposal ability and by a management agreement that is operated in management level the client exchange machine in this management domain is carried out remote cluster management as service end, described management agreement is divided into communication layers and two part of application management layer, it is network layer and transport layer that communication layers is positioned at the 3rd layer and the 4th layer of OSI seven layer protocol models, and this two-layer work is as a wholely handled together, be responsible for the communication between client and the service end; The application management layer is positioned at OSI seven layer protocol application of model layers, is responsible for the concrete management of service end to client.
In the said method, the landfall process of low-end switch on service end of the communication layers regulation client of described management agreement, when client device of new adding in network, it will send the logging request message, the address of this message is a unicast address, this message can only be received by neighbor device, neighbor device is after receiving this message, the information that adds oneself, send again, so repeat, received by a server device up to this message, set up topological structure between client device by this message server device, obtain the complete topology information of client device.
In the said method, described service end is preserved the configuration information of the client device of particular topology position, and described configuration information can upload to the PC main frame and back up, and also can download to service end from the PC main frame.After changing client device, equipment is installed back login automatically, and the application management layer of described management agreement is responsible for client device that regulation changes and is configured from the configuration information of the own position of server side searches.
In the said method, described service end is preserved the configuration information template of client device, and described configuration information template can upload to the PC main frame from service end and be configured, or downloads to service end after the configuration of PC main frame is finished.When change or newly-increased client device after, equipment is installed back login automatically, the application management layer of described management agreement is responsible for client device that regulation changes or increase newly and is obtained configuration information be configured from the configuration information template of service end.
Advantage of the present invention and good effect:
Cluster management method of the present invention is divided into client and service end with the network equipment, and client is simple, reliable, takies cpu resource and runs on low-end switch less; The service end complexity, intelligent operation is in the stronger higher-end switch of CPU disposal ability.Client provides the manageability of low-end switch, and can save the IP address of 90%-95%; Service end provides the function of cluster management, simplifies the configuration operation of loaded down with trivial details repeatability.
Cluster management method of the present invention, can realize all functions of traditional serial interface management, complete cluster management scheme is provided simultaneously, comprise Topology Discovery, based on template synchronously, location-based synchronously etc., the operation of its cluster that these are complicated is placed on service and brings in processing, makes the management of the network equipment become more convenient.Management agreement is supported the automatic discovery of client device, the equipment cascade, set up the topological structure between client device, make server obtain the complete topology information of client device, such as the connection status of equipment room, device address, device type, place level etc., and client device can obtain its neighbours (the directly subordinate equipment that links to each other) information, so just provides passage more flexibly for management.Profile system can upload to the PC main frame from service end with the device configuration information of template or particular topology position, or downloads to service end from the PC main frame.The user is according to the network planning, before installing, equipment on the PC main frame, finishes configuration file, download to service end, and selection is based on the cluster management mode of topology location, equipment is installed back login automatically, and carry out synchronously from the configuration information of the own position of server side searches, if there is no then from share template, obtain configuration information.Here it is based on the cluster management thought of receiving position.Configuration information is kept at service end, and when changing remote equipment, configuration information still can recover.
Cluster management method of the present invention, the mechanism that adopts communication layers and application management layer to be separated from each other adopts more rational login and is connected support mechanism in communication layers, reduced the message amount in the general communication effectively, and be embodied in: (1) abandons broadcasting packet.Owing to adopt broadcasting packet to make client when login, have very big randomness, may make a client device sign in to the situation of two server device, must select the affiliated server device of this client device in the artificially like this.Adopt unicast message in the cluster management method of the present invention, and this unicast message is merely able to be received by its neighbor device, equipment just can be found the service end of the unlatching service that distance is own nearest automatically like this, avoided if need artificial operation when two service ends are arranged in the same network segment, all are finished automatically.(2) network traffics that are used for connecting still less: cluster management method of the present invention, communication only limits to connect required minimal information set, promptly adopt management information service localization (service end), read again when adopting use for remote equipment (client) configuration information, reduce the connection of client transmission like this and kept the message transmission frequency, and reduced message length significantly.
Description of drawings:
Fig. 1 is the level schematic diagram of management agreement in the management method of the present invention;
Fig. 2 is the message structure of management agreement in the management method of the present invention;
Fig. 3 is for adopting a concrete access layer network structural representation of management method of the present invention.
Embodiment:
Further specify technical scheme of the present invention below by embodiment.
Low-end switch is carried out the method for remote cluster management, many functionally similar low-end switch in the network are divided into a management domain as client, one runs on the stronger higher-end switch of CPU disposal ability and by a management agreement that is operated in management level the client exchange machine in this management domain is carried out remote cluster management as service end, described management agreement is divided into communication layers and two part of application management layer, it is network layer and transport layer that communication layers is positioned at the 3rd layer and the 4th layer of OSI seven layer protocol models, and this two-layer work is as a wholely handled together, be responsible for the communication between client and the service end; The application management layer is positioned at OSI seven layer protocol application of model layers, is responsible for the concrete management of service end to client.
As shown in Figure 1, be the level schematic diagram of this management agreement, this management agreement is divided into communication layers-communication protocol and application management layer one management agreement two parts.It is network layer and transport layer that communication layers is positioned at the 3rd layer and the 4th layer of OSI seven layer protocol models, and this two-layer work is as a wholely handled together, is responsible for the maintenance, data information transmission of the connection login of equipment, the control that connects, connection etc.Communication layers is supported the burst transmission and the overtime retransmission mechanism of data message, increased the reliability of communication, and the concrete function of communication kernel and equipment is irrelevant, has improved the independence of communication protocol.The application management layer is positioned at OSI seven layer protocol application of model layers, is responsible for concrete application management, Template Manager for example, management by synchronization, backup management etc.
As shown in Figure 2, the message structure for management agreement comprises field: destination address, source address, type, protocol header, data, CRC.Type field is used to discern this agreement, is different from other Ethernet protocol.Protocol header is used to define the agreement built-in message type (for example be login message, or login response message, or data message) of the message of this agreement.
Automatically find new equipment:
When equipment of new adding in network, it will send the logging request message, contain information such as device type, user name, implementor name in this message.The address of this message is a unicast address, this message can only be received by neighbor device, neighbor device adds the information of oneself after receiving this message, send again, so repeat, received by a server device up to this message, by this message server device just known this message path (topology) information of process, also just known the information of this equipment, server sends a back message using to this new equipment, and expression is logined successfully.Send the HELLO message later between server and this new equipment mutually and safeguarding this connection.
Cluster management based on template:
Service end is passed through the control mode of username and password with configuration packet.A user name is represented a kind of configuration.The user can in the light of actual conditions divide into groups remote equipment, each group has same username and password, in order to prevent that logging device from can not find the situation of self user name, management agreement is provided with a default user name user, password user, and the logging device that can not find user name so just can sign in to default user name.The keeper at first is configured this template, is template with the configuration set information under self behind the remote equipment login service end, and the configuration information of this template is downloaded to remote equipment.
Remote equipment signs in to server with user name, password, and the identical equipment of user name, password is as same group, the keeper can by revise user name, password is realized adding a group, breaks away from a group and creates one and newly organize.
Synchronously:
The configuration information of remote equipment is stored in server end, and does not rely on remote equipment, when equipment of new adding, withdraw a remote equipment or replace a remote equipment, all extract configuration information from server end.Download to remote equipment with the configuration information of preserving on the server, come to finish in batches the process of configuration, be called synchronously.Can carry out in both cases synchronously: carry out synchronously when device logs arrives server, perhaps carry out synch command and carry out synchronously.
Management agreement is supported two kinds of methods of synchronization:
Based on template synchronously
The keeper at first is configured the template under the remote equipment at local (server end), then with the download of information of template to remote equipment, this process be called based on template synchronously.Based on template synchronously, be that the control by user name, password realizes.This synchronously can be at an equipment, and also many or all equipment synchronously depend on keeper's operation.
Based on topology location synchronously
Management agreement provides the management function based on topology location at the regulatory requirement of real network.The port that upper level equipment (upper level equipment is server) links to each other with subordinate equipment is called receiving port.Remote equipment is step by step upwards up to server, the uplink port of self and the equipment that passes through thereof the receiving port sequence constituted the topology location of an equipment.It is the configuration information of the remote equipment of index that management agreement can keep with this topology in service end.If the remote equipment on certain topology location damages like this, replace the configuration that new equipment will obtain the equipment that has damaged from service end automatically with a new equipment.Thereby can reduce a large amount of maintenance works.
The server backup function:
The preservation device configuration information of server end can upload to main frame, backs up.When changing server or other server carried out initial configuration, can recover current running environment and remote equipment configuration information fully.
As shown in Figure 3, be a large-scale sub-district, office building network access layer structure, there are thousands of users to insert.User Access Layer links to each other with μ 24 (server) by μ 1024 low-end switch (client).
Scheme 1:
The user finished configuration file according to the network planning on the PC main frame before equipment is installed, download to server (μ 24), and selected the cluster management mode based on template.μ 1024 low-end switch equipment are installed back login automatically, and from allocation list, search own under the configuration information of template carry out synchronously, if there is no then from share template, obtain configuration information, whole like this configuration effort moment finishes, and is very much conveniently.
Scheme 2:
The user at first carries out based on template remote equipment μ 1024 low-end switch synchronously.The user carries out particular arrangement at server (μ 24) to the remote equipment (for example certain μ 1024 in the building 3 of sub-district two) of specific position then.After configuration is finished, configuration information is saved in server, and selects cluster management mode based on topology location.When changing remote equipment, configuration information can download to new equipment.