Background technology
In digital home with various families communication products, computer product, consumer electronics product, according to all kinds of family digital demands, form home network, insert and social omnibearing information interaction, form family information, amusement, control service and informational function system by external network.
Home network is meant a kind of local area network (LAN) that the information equipment in family's category, communication equipment, amusement equipment, household electrical appliance, water power hot air heating gauge table, health care equipment, illuminator and safety system etc. are linked together and form, various terminal equipments are realized networking by home network, realize the management and service of diverse networkization, realize sharing of resource and service.
Home network is realized being connected of household internal network and external network by the home gateway service, domestic network system is extended to external networks such as community and the Internet, makes digital home become the elementary cell of intelligent dwelling sub-district and intelligent society.
Along with the equipment of linking home gateway is more and more, also more and more important to the management of equipment, also become increasingly complex simultaneously.Wherein, a job is exactly the network condition of wanting the running check networked devices, in the face of a large amount of equipment like this, investigates one by one if depend merely on manually to come, and that result is inconceivable, and work difficulty is big, inefficiency.
Author of the present invention has invented a kind of network management implementation method based on home gateway in the process of being engaged in home gateway product and plant maintenance thereof for a long time, can make that the network manager is more efficient, hommization manages the network equipment in the home gateway timely and conveniently.The advantage of this management platform has: support commonly used command under the linux system, support v1, the v2C of SNMP, support data backup, can recover all configurations after the system restart, can monitor that serial port reception data, data sync, SNMP act on behalf of running status, can realize online upgrading.
Summary of the invention
Problem at the described conventional digital family field existence of previous technique background, the invention provides a kind of network management implementation method based on home gateway, it is more efficient that this method can reach the network manager, hommization, the purpose that the network equipment in the home gateway is managed timely and conveniently.
In order to realize the purpose of this method, the technical scheme of employing is as follows:
A kind of network management implementation method based on home gateway is characterized in that being included as home gateway configuration net-snmp network management environment; The user manages home gateway by multiple management interface.
In the above-mentioned implementation method, for being included in, home gateway configuration net-snmp network management environment disposes cross compilation environment on the host, obtain the net-snmp network-management tool then and have the management local network device according to home gateway, WEB browses, video request program, digital video broadcasting is play attribute, write and comprise the home gateway local network device, WEB browses, video request program, digital video broadcasting is play the MIB (MIB of attribute, Management Information Base, management information bank) file, the executable file that compiles handle generation simultaneously at last is cured in the storage medium of home gateway.
In the above-mentioned implementation method, the user manages home gateway by multiple management interface and comprises that the user manages home gateway by serial ports or WEB management interface.
In the above-mentioned implementation method, the user manages home gateway by the serial interface management interface and comprises by the RS232 serial ports and carry out data communication between user and the home gateway, the inquiry that sends according to the user of serial data acquisition module or the configuration-direct operating state of returning the equipment of being managed in the home gateway and information or the data of configuration are saved in SNMP (SNMP then, Simple Network Management Protocol, Simple Network Management Protocol) in the MIB node.
In the above-mentioned implementation method, management interfaces such as WEB manage home gateway and are included in configuration BOA flush type WEB server in the home gateway; Undertaken being checked by the equipment state of being managed in the home gateway and being provided with by the WEB browser.
In the above-mentioned implementation method, the serial data acquisition module comprises that the serial data acquisition module sends to the equipment of being managed in the home gateway to the order of user's input, the equipment of being managed in the home gateway receives post command and judges whether this order is effective, invalidly then abandon, effectively then information is dealt into the serial data acquisition module, last serial data acquisition module returns to the information that the user receives.
In the above-mentioned implementation method, configuration BOA flush type WEB server comprises and obtains BOA flush type WEB server source file in home gateway, generate executable file at specific household gateway platform, configure the BOA embedded server, and dispose corresponding CGI(Common gateway interface) script, at last, being cured to home gateway gets on.
In the above-mentioned implementation method, undertaken being checked by the equipment state of being managed in the home gateway and setting comprises at first by the WEB browser, open the WEB browser, import corresponding network address, can on browser, see in the home gateway equipment running status of being managed and the parameter information of equipment, then, the user can come the equipment that quilt is managed in the configuring home gateway by corresponding button.
Compared with prior art, the present invention has following advantage and technique effect: the present invention manages the equipment of being managed in the home gateway by multiple management interface is provided, and comprises that serial ports, WEB management interface manage home gateway; The user can be by opening the WEB browser, import corresponding network address and on browser, view in the home gateway equipment running status of being managed and the parameter information of equipment, the user can come in the configuring home gateway equipment managed by corresponding button, can make therefore that network manager or domestic consumer are efficient more, hommization, timely and convenient managed devices in the home gateway be managed.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, enforcement of the present invention is described further, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.
The embodiment of the invention is applied to dynamic WEB technology in the network management by the BOA server, makes to utilize any WEB browser just can monitor the operating state of the network equipment, thereby realizes the network management of home gateway.Below be elaborated respectively.
Be to use system construction drawing of the present invention (only being a kind of embodiment of the present invention) as shown in Figure 1, home gateway configuration net-snmp network management environment mainly comprises two parts: user management interface section and home gateway part.Wherein the user management interface is used for providing management to link the managed device of home gateway to the user, can manage with multiple mode, comprising: serial interface management, WEB way to manage; Home gateway partly is used to receive the information of user's transmission to the home network managed devices, and resolves the back corresponding apparatus is operated.Home gateway partly comprises:
Receive various control modes: receive the user and operate the home network managed devices by different interactive modes.
Extract mib information: the information that the upper strata receives is resolved, and extract corresponding M IB information.
MIB service: be the consistent form display message that defines of the NMP of each home network managed device and standard.
MIB transport module: be used to transmit mib information to the SNMP proxy module.
SNMP proxy module: be used to receive mib information and the home network managed devices of being managed operated according to information.
The SNMP communication module: being used for to the network management home network managed device bag that transmits and receive data, using User Datagram Protoco (UDP) as the 4th layer of transport layer protocol, is a kind of connectionless service.
Be the SNMP proxy module in the home gateway network management as shown in Figure 2.The major function of SNMP proxy module is to realize SNMP agency's function, and the command line interface of standard is provided to the user.Command line interface makes the user to manage operation by local control desk, comprises configuration SNMP agency, system parameters etc. is operated, is provided with to the home gateway managed devices.
SNMP agency department is divided into the managed entity in the snmp management system, and management control operation to home network internal object equipment is translated in the management control operation of SNMP.Wherein, the SNMP adapter is finished the protocol processes of SNMP, comprises the disassembling and encapsulate of SNMP message, transmission, multi-protocols support, user safety authentication etc.
Acting on behalf of controlled entity can conduct interviews SNMP agency and management chain of command to the home gateway managed devices.Serial target control passage provides and the means of being managed the microcontroller communication on the piece for acting on behalf of controlled entity, and the communication frames form of this layer can define voluntarily.
OAMAgent method among the present invention is also supported following function:
1, supports commonly used command under the linux system;
2, support the V1 of SNMP, V2C;
3, support data backup, can recover all configurations after the system restart;
But 4 in-service monitoring serial ports receive data, data sync, SNMP agency's running status.
The user manages home gateway by the serial interface management interface and comprises by the RS232 serial ports and carry out data communication between user and the home gateway, then the inquiry that sends according to the user of serial data acquisition module or the configuration-direct operating state of returning the equipment of being managed in the home gateway and information or the data of configuration are saved in the MIB node of SNMP.
Be the serial data acquisition module as shown in Figure 3, the order that the serial data acquisition module is used to gather user's input sends to the equipment of being managed in the home gateway to order simultaneously, the equipment of being managed in the home gateway receives the order back and judges whether this order is effective, invalidly then abandon, effectively then information is dealt into the serial data acquisition module, last serial data acquisition module returns to the information that the user receives.The concrete execution in step of serial data acquisition module is as follows:
301: the serial data acquisition module sends the querying command word to the managed devices in the home gateway;
302: managed devices judges whether this order satisfies agreement after receiving querying command, and discontented football association view just forwards 303 to, otherwise, forward 304 to;
303: the command word to discontented football association view is carried out discard processing;
304: managed devices sends back to the serial data acquisition module to the information that collects;
305: the serial data acquisition module receives the information that the home network internal unit returns, and judges whether the information return satisfies agreement, if do not satisfy then forward 306 to, otherwise, forward 307 to;
306: ungratified information is carried out discard processing;
307: the serial data acquisition module is according to protocol analysis information and deposit in the MIB node of SNMP.
The WEB management interface manages home gateway and is included in configuration BOA flush type WEB server in the home gateway; Undertaken being checked by the equipment state of being managed in the home gateway and being provided with by the WEB browser.Be BOA server workflow diagram as shown in Figure 4.
BOA is a kind of WEB server that designs for embedded device specially, the memory headroom that this WEB server is occupied when memory space and operation all seldom, it is single-process server, only after finishing user's request, could respond another user's request, and can't concurrently respond, but this is enough in the embedded device application scenario.
BOA server workflow diagram is: browser is delivered to the WEB server with the data of user's input, the WEB server is given the CGI(Common gateway interface) program with data, after carrying out the CGI(Common gateway interface) program, may visit some configuration files that are stored in the home gateway the household internal managed devices, with the structured file of HTML form, send browser display back to through the WEB server and give the user at last.The migration process of BOA server:
1, decompress(ion) source code.Carry out tar xzf boa-***.tar.gz decompress(ion) earlier, enter catalogue boa/src then, need make an amendment several files of the inside.
2, cross compile BOA:./configure generates the Makefile file, be provided with according to the path of cross compile instrument actual installation and the instrument of use then, after setting the Makefile file, make is carried out in compiling, can successfully compile, just can successfully obtain executable program BOA at last.
3, configuration BOA: in order on home gateway, to move BOA, need configuration boa.conf, can consult related data about the detailed configuration mode of configuration file.At last amended configuration file boa.conf is deposited under home gateway system root file system/etc/boa catalogue, set up corresponding catalogue in the root file system according to being arranged among the boa.conf.As create the master catalogue/host/boa/WEB of html document, html web page is deposited under this catalogue, create CGI(Common gateway interface) script place catalogue/host/boa/cgi-bin, the script of CGI(Common gateway interface) is left under this catalogue, also will be with under mine.type file copy/host/boa catalogue.
One of ordinary skill in the art will appreciate that all or part of step in the whole bag of tricks of the foregoing description is to instruct relevant hardware to finish by program, this program can be stored in the computer-readable recording medium, storage medium can comprise: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc.
More than to a kind of network management implementation method that the embodiment of the invention provided based on home gateway, be described in detail, used specific case herein principle of the present invention and execution mode are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.