Summary of the invention
In view of this, the application provides a kind of block terminal collocation method and system, complicated to solve configuration, the inefficient problem of service fulfillment.
For solving the problems of the technologies described above, the technical scheme of the application is achieved in that
A kind of block terminal collocation method, the method comprises:
Terminal management server broadcast transmission is carried first of server identification information and is found message;
When block terminal receives the first discovery message of described terminal management server broadcast transmission, send second according to the server identification information carried in this first discovery message to described terminal management server and find message;
When described terminal management server receives described second discovery message, send the message carrying management channels configuration information to described block terminal;
When carrying the message of management channels configuration information described in described block terminal receives, be configured with access-in management passage according to described management channels configuration information in this locality;
Described block terminal sends registration request by described management channels to described terminal management server;
After described terminal management server receives described registration request, for described block terminal completes registration, send registration reply message to described block terminal; And obtain the terminal identification information of the service layer of described block terminal, be that described block terminal is selected and issuing service configuration file according to the terminal identification information of described service layer;
When described block terminal receives the business configuration file that described terminal management server issues, carry out business configuration with access service passage according to described business configuration file in this locality, and send the message having obtained business configuration file to described server terminal.
A kind of block terminal configuration-system, this system comprises: terminal management server and block terminal;
Described terminal management server, carries first of server identification information for broadcast transmission and finds message; When receiving the second discovery message of described block terminal transmission, send the message carrying management channels configuration information to described block terminal; After receiving the registration request of described block terminal transmission, for described block terminal completes registration, send registration reply message to described block terminal; And obtain the terminal identification information of the service layer of described block terminal, be that described block terminal is selected and issuing service configuration file according to the terminal identification information of described service layer;
Described block terminal, for receiving described terminal management server broadcast transmission first when finding message, first finds that the server identification information carried in message sends second to described terminal management server and finds message according to this; Receive described terminal management server send carry the message of management channels configuration information time, be configured with access-in management passage according to described management channels configuration information in this locality; And send registration request by described management channels to described terminal management server; When receiving the business configuration file that described terminal management server issues, carry out business configuration with access service passage according to described business configuration file in this locality, and send the message having obtained business configuration file to described server terminal.
From technical scheme above, in the application after block terminal access network, terminal management server finds this block terminal automatically, and issues management channels configuration information to block terminal, make block terminal automatically set up management channels, realize " namely insert and namely manage " effect; By management channels to this block terminal issuing service configuration file, the configuration making block terminal carry out service channel realizes the effect of " plug and play ", thus can avoid complicated human configuration, improves the efficiency of service fulfillment.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with accompanying drawing and according to embodiment, technical scheme of the present invention is described in detail.
In the application's specific embodiment, block terminal automatic configuration system comprises block terminal and terminal management server, wherein, can comprise one or more block terminal, also can comprise one or more terminal management server.
Be implemented as example with a terminal management server and a block terminal in the specific embodiment of the application, if also there is other-end management server and block terminal, its implementation is identical with concrete example.
Be block terminal collocation method schematic flow sheet in the embodiment of the present application see Fig. 1, Fig. 1.Concrete steps are:
Step 101, terminal management server broadcast transmission is carried first of server identification information and is found message.
In this step, first finds that message can be domain name system (Domain Name System, DNS) inquiry (queries) message; The DNS queries message of terminal management server regular broadcast group broadcast (multicast) DNS Protocol in management channels, the destination address of this message uses multicast address 01:00:5E:00:00:FB, UDP port is 5353, Queries fills in cpe_ptn_gw.local in territory, this message transmits in management channels, carries VLAN ID (VLAN) label of management channels.
Step 102, when block terminal receives the first discovery message of described terminal management server broadcast transmission, sends second according to the server identification information carried in this first discovery message to described terminal management server and finds message.
Block terminal, when receiving described first and finding message, determines that whether this block terminal is registered, if registered, directly abandon described first and finds message;
If unregistered, can determine whether that selection sends the terminal management server of terminal management server as this block terminal of this first discovery message according to this locality configuration; If do not select this terminal management server, continue to wait for that again receive other-end management server broadcast transmission first finds message; If select this terminal management server, then send second to this terminal management server and find message, to obtain management channels configuration information.
If block terminal selects certain terminal management server, then identify first of this terminal management server broadcast transmission the VLAN ID finding to carry in message, by the Management VLAN ID that identifies and this terminal management server mutual, to obtain the configuration that management channels configuration information carries out management channels.
DHCP (DynamicHost Configuration Protocol, DHCP) protocol interaction can be used between block terminal and terminal management server.
The second discovery message that block terminal sends can use DHCP to find, and (Discover) message realizes, in this message, be carried at the VLAN ID identified in the first discovery message, this message sends to described terminal management server by corresponding management channels; And carrying this message of field identification is the message finding that management channels configuration information sends.
Step 103, when described terminal management server receives described second discovery message, sends the message carrying management channels configuration information to described block terminal.
Terminal management server can use DHCP to provide (Offer) message to realize to the message carrying management channels configuration information that block terminal sends, in this message, carry management channels configuration information, management channels configuration information comprises the parameter such as IP address and alarm server address of block terminal; And to carry this message of field identification in this message be the message issuing management channels configuration information.
Step 104, when carrying the message of management channels configuration information described in described block terminal receives, is configured with access-in management passage according to described management channels configuration information in this locality; And send registration request by described management channels to described terminal management server.
Described block terminal is configured in this locality according to management channels configuration information, namely in local configuration management parameter, makes this block terminal complete the initialization of management channels, access-in management passage.
Be configured access-in management passage by management channels configuration information in this locality in this step, namely achieve the effect of namely inserting i.e. pipe.
Described registration request can be DHCP request message, carries the registration of described management parameters configuration information realization to described terminal management server in this DHCP request message.When sending message by management channels, all carry and find by first the VLAN ID that message identifies; And expanding DHCP request message, to carry this message of field identification be registration request.
Step 105, after described terminal management server receives described registration request, for described block terminal completes registration, sends the response message succeeded in registration to described block terminal; And obtain the terminal identification information of the service layer of described block terminal, be that described block terminal is selected and issuing service configuration file according to the terminal identification information of described service layer.
Terminal management server carries out certification according to the registration request received to described block terminal, if authentication success, the response message (ACK) succeeded in registration then is sent to described block terminal, if certification is unsuccessful, then send the unsuccessful response message of registration (NCK) to described block terminal.This response message can be DHCP response message, carries registration unsuccessful, or the information that succeeds in registration in this message according to authentication result.
If block terminal receives the unsuccessful response message of registration that described terminal management server sends, then process ends, or again sends registration request, specific implementation is according to actual disposition process.
In this step, described terminal management server obtains the terminal identification information of described block terminal, comprising:
Described terminal management server sends request the message of the terminal identification information of the service layer of block terminal to block terminal.
When described block terminal receives the message of the terminal identification information of the service layer of the request block terminal that described terminal management server sends, the terminal identification information of the service layer of this block terminal is carried in response message and sends to described terminal management server;
When described terminal management server receives the response message of described block terminal transmission, obtain in this response message the terminal identification information of the service layer of the described block terminal carried.
Wherein, the message of the terminal identification information of the service layer of described request block terminal, can use the request of SNMP request message realization to the terminal identification information of service layer.
Described business configuration file can be carried in SNMP setting (Set) message and be handed down to block terminal.Arrange in message at SNMP and identify this message for issuing service configuration file by carrying feature field.
The process that issues of business configuration file uses a SNMP to arrange message according to the size of business configuration file and realizes, many SNMP also can be used to arrange message and realize.
Terminal management server uses the management channels set up, by the terminal identification information of snmp protocol according to the service layer of registered block terminal, as the kind and quantity etc. of type, sequence number, interface, the business configuration file that this terminal is corresponding is searched in management database, use general business configuration template or the configuration file of personalization, the service parameter such as service port, VLAN, MPLS label, QoS/ACL rule of this block terminal is configured.
Step 106, when described block terminal receives the business configuration file that described terminal management server issues, carry out business configuration with access service passage according to described business configuration file in this locality, and send the message having obtained business configuration file to described server terminal.
Obtain the message of business configuration file, SNMP response message can be used to realize, and in this message, carried this message of field identification received business configuration file for notification terminal management server.
By above-mentioned realization, block terminal access service passage achieves the effect of plug and play.
The administrative message such as information and warning information is joined with the business transmitted between terminal management server after block terminal enters operating state.
Illustrate above, Multicast DNS Protocol can be adopted to realize terminal management server information broadcasting, adopt management channels configuration and the registration of the DHCP protocol realization block terminal of expansion, adopt the transmission of snmp management protocol realization service configuration information and warning information.
Based on same inventive concept, the application also proposes a kind of block terminal configuration-system.It is the schematic diagram of the system applying above-mentioned technology in the embodiment of the present application see Fig. 2, Fig. 2.This system comprises: terminal management server 201 and block terminal 202;
Terminal management server, carries first of server identification information for broadcast transmission and finds message; When receiving the second discovery message of block terminal 202 transmission, send the message carrying management channels configuration information to block terminal 202; After receiving the registration request of block terminal 202 transmission, for block terminal 202 completes registration, send registration reply message to block terminal 202; And obtain the terminal identification information of the service layer of block terminal 202, be that block terminal 202 is selected and issuing service configuration file according to the terminal identification information of described service layer;
Block terminal 202, for receiving terminal management server broadcast transmission first when finding message, first finds that the server identification information carried in message sends second to terminal management server and finds message according to this; Receive terminal management server send carry the message of management channels configuration information time, be configured with access-in management passage according to described management channels configuration information in this locality; And send registration request by described management channels to terminal management server; When receiving the business configuration file that terminal management server issues, carry out business configuration with access service passage according to described business configuration file in this locality, and send the message having obtained business configuration file to described server terminal.
Preferably, block terminal 202, if it is registered to be further used for this block terminal, when receiving the first discovery message of terminal management server broadcast transmission, directly abandons described first and finds message.
Preferably,
Terminal management server, during specifically for obtaining the terminal identification information of block terminal 202, sends request the message of the terminal identification information of the service layer of block terminal to block terminal 202; When receiving the response message of block terminal 202 transmission, obtain the terminal identification information of the service layer of the block terminal 202 carried in this response message;
Block terminal 202, when being further used for the message of the terminal identification information of the service layer receiving the request block terminal that terminal management server sends, the terminal identification information of the service layer of this block terminal being carried in response message and sending to terminal management server.
The unit of above-described embodiment can be integrated in one, and also can be separated deployment; A unit can be merged into, also can split into multiple subelement further.
In sum, the application is by after block terminal access network, and terminal management server finds this block terminal automatically, and issues management channels configuration information to block terminal, makes block terminal automatically set up management channels, realizes " namely insert and namely manage " effect; By management channels to this block terminal issuing service configuration file, the configuration making block terminal carry out service channel realizes the effect of " plug and play ", thus complicated human configuration can be avoided, improve the efficiency of service fulfillment, greatly reduce engineering difficulty, cost, there is important construction value.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment made, equivalent replacement, improvement etc., all should be included within the scope of protection of the invention.